{"openapi":"3.1.0","info":{"title":"Point API","version":"0.1.0"},"tags":[{"name":"backoffice","description":"The operator’s surface: allow-listed, a sign-in within the last eighteen hours (by a code, Google or single sign-on) or this session’s use within them, every entry audited (spec/37; spec 73 §3.1)."}],"components":{"securitySchemes":{"bearerAuth":{"type":"http","scheme":"bearer","bearerFormat":"JWT","description":"Better Auth access token (its JWT plugin; spec/30 § API token verification)"}},"schemas":{"Health":{"type":"object","properties":{"status":{"type":"string","enum":["ok"]},"db":{"type":"string","enum":["ok"]},"assessment":{"type":"object","properties":{"ready":{"type":"boolean"},"canons":{"type":"array","items":{"type":"string"}},"packages":{"type":"array","items":{"type":"string"}},"refusals":{"type":"array","items":{"type":"object","properties":{"code":{"type":"string"},"at":{"type":"string"}},"required":["code","at"]}},"served":{"type":"array","items":{"type":"object","properties":{"workspace":{"type":"string"},"key":{"type":"string"},"version":{"type":["string","null"]},"package":{"type":["string","null"]}},"required":["workspace","key","version","package"]}}},"required":["ready","canons","packages","refusals","served"],"description":"What the assessments can ask: the canons and packages read, every refusal, the definition each workspace is served. Not ready answers 503, so a deploy that cannot ask is refused, never discovered on a page (2026-11-13)."},"rcoCatalogue":{"type":"object","properties":{"ready":{"type":"boolean"},"versions":{"type":"array","items":{"type":"string"}},"refusals":{"type":"array","items":{"type":"object","properties":{"code":{"type":"string"},"version":{"type":"string"},"at":{"type":"string"}},"required":["code","version","at"]}}},"required":["ready","versions","refusals"],"description":"The RCO catalogue versions held (spec 66), oldest first, and every refusal. None held answers 503: the form to record an RCO reads its themes and what the crew should consider from it."}},"required":["status","db","assessment","rcoCatalogue"]},"ErrorEnvelope":{"type":"object","properties":{"error":{"type":"object","properties":{"code":{"type":"string","example":"unauthenticated"},"message":{"type":"string"},"details":{"type":"object","additionalProperties":{}},"requestId":{"type":"string"}},"required":["code","message","requestId"]}},"required":["error"]},"Me":{"type":"object","properties":{"id":{"type":"string","format":"uuid"},"email":{"type":"string"},"emailVerified":{"type":"boolean"},"firstName":{"type":["string","null"]},"lastName":{"type":["string","null"]},"avatarUrl":{"type":["string","null"]},"preferences":{"$ref":"#/components/schemas/Preferences"},"organisation":{"$ref":"#/components/schemas/CurrentOrganisation"}},"required":["id","email","emailVerified","firstName","lastName","avatarUrl","preferences","organisation"]},"Preferences":{"type":"object","properties":{"theme":{"type":"string","enum":["system","light","dark","contrast"],"default":"system"},"textSize":{"type":"string","enum":["base","lg","xl"],"default":"base"},"reduceMotion":{"type":"string","enum":["system","always","never"],"default":"system"},"locale":{"type":"string","enum":["en-GB"],"default":"en-GB"},"density":{"type":"string","enum":["comfortable","compact"],"default":"comfortable"},"digestTime":{"type":"string","pattern":"^([01][0-9]|2[0-3]):[0-5][05]$","default":"07:00"},"digestDays":{"type":"string","enum":["weekdays","every-day"],"default":"weekdays"},"digestOff":{"type":"boolean","default":false},"extensions":{"type":"object","additionalProperties":{},"default":{}}},"additionalProperties":false},"CurrentOrganisation":{"type":["object","null"],"properties":{"id":{"type":"string","format":"uuid"},"slug":{"type":"string"},"name":{"type":"string"},"kind":{"$ref":"#/components/schemas/OrganisationKind"},"role":{"type":"string"}},"required":["id","slug","name","kind","role"]},"OrganisationKind":{"type":"string","enum":["duty_holder","service_provider"]},"PreferencesPatch":{"type":"object","properties":{"theme":{"type":"string","enum":["system","light","dark","contrast"]},"textSize":{"type":"string","enum":["base","lg","xl"]},"reduceMotion":{"type":"string","enum":["system","always","never"]},"locale":{"type":"string","enum":["en-GB"]},"density":{"type":"string","enum":["comfortable","compact"]},"digestTime":{"type":"string","pattern":"^([01][0-9]|2[0-3]):[0-5][05]$"},"digestDays":{"type":"string","enum":["weekdays","every-day"]},"digestOff":{"type":"boolean"},"extensions":{"type":"object","additionalProperties":{}}},"additionalProperties":false},"MyOrganisation":{"type":"object","properties":{"organisationId":{"type":"string","format":"uuid"},"slug":{"type":"string"},"name":{"type":"string"},"kind":{"$ref":"#/components/schemas/OrganisationKind"},"role":{"type":"string"},"archived":{"type":"boolean"}},"required":["organisationId","slug","name","kind","role","archived"]},"AuditPage":{"type":"object","properties":{"items":{"type":"array","items":{"$ref":"#/components/schemas/AuditItem"}},"nextCursor":{"type":["string","null"]},"hasMore":{"type":"boolean"}},"required":["items","nextCursor","hasMore"]},"AuditItem":{"type":"object","properties":{"id":{"type":"string","format":"uuid"},"action":{"type":"string"},"resourceType":{"type":"string"},"resourceId":{"type":["string","null"],"format":"uuid"},"metadata":{"type":"object","additionalProperties":{}},"actor":{"type":"object","properties":{"kind":{"type":"string"},"id":{"type":["string","null"]},"display":{"type":"string"}},"required":["kind","id","display"]},"occurredAt":{"type":"string"}},"required":["id","action","resourceType","resourceId","metadata","actor","occurredAt"]},"IdentitySession":{"type":"object","properties":{"id":{"type":"string","format":"uuid"},"authMethod":{"type":["string","null"]},"ipAddress":{"type":["string","null"]},"userAgent":{"type":["string","null"]},"state":{"type":"string"},"authenticatedAt":{"type":"string"},"expiresAt":{"type":["string","null"]},"endedAt":{"type":["string","null"]},"current":{"type":"boolean"}},"required":["id","authMethod","ipAddress","userAgent","state","authenticatedAt","expiresAt","endedAt","current"]},"OrganisationWithAccess":{"type":"object","properties":{"organisation":{"$ref":"#/components/schemas/Organisation"},"role":{"type":"string"},"permissions":{"type":"array","items":{"type":"string"}}},"required":["organisation","role","permissions"]},"Organisation":{"type":"object","properties":{"id":{"type":"string","format":"uuid"},"slug":{"type":"string"},"name":{"type":"string"},"kind":{"$ref":"#/components/schemas/OrganisationKind"},"plan":{"type":"string"},"requireMfa":{"type":"boolean"},"ssoEnabled":{"type":"boolean"},"ssoConnectionState":{"type":["string","null"]},"metadata":{"type":"object","additionalProperties":{"type":"string"}},"archived":{"type":"boolean"},"archivedAt":{"type":["string","null"]},"companyNumber":{"type":["string","null"]},"registeredOffice":{"type":["string","null"]},"officeAddress":{"type":["string","null"]},"officeUprn":{"type":["string","null"]},"onboardedAt":{"type":["string","null"]}},"required":["id","slug","name","kind","plan","requireMfa","ssoEnabled","ssoConnectionState","metadata","archived","archivedAt","companyNumber","registeredOffice","officeAddress","officeUprn","onboardedAt"]},"ProfilePatch":{"type":"object","properties":{"companyNumber":{"type":["string","null"],"pattern":"^[A-Za-z0-9]{8}$"},"registeredOffice":{"type":["string","null"],"minLength":1,"maxLength":500},"officeAddress":{"type":["string","null"],"minLength":1,"maxLength":500},"officeUprn":{"type":["string","null"],"pattern":"^\\d{1,12}$"},"onboarded":{"type":"boolean","enum":[true]}},"additionalProperties":false},"SecurityPatch":{"type":"object","properties":{"requireMfa":{"type":"boolean"}},"required":["requireMfa"],"additionalProperties":false},"SsoConnection":{"type":"object","properties":{"providerId":{"type":"string"},"domain":{"type":"string"},"verified":{"type":"boolean"}},"required":["providerId","domain","verified"]},"ArchiveRequest":{"type":"object","properties":{"reason":{"type":"string","maxLength":500}},"additionalProperties":false},"CompanyMatch":{"type":"object","properties":{"name":{"type":"string"},"number":{"type":"string"},"status":{"type":"string"},"registeredOffice":{"type":["string","null"]},"incorporatedOn":{"type":["string","null"]}},"required":["name","number","status","registeredOffice","incorporatedOn"]},"AddressMatch":{"type":"object","properties":{"address":{"type":"string"},"uprn":{"type":"string"},"postcode":{"type":["string","null"]}},"required":["address","uprn","postcode"]},"PremisesMatch":{"type":"object","properties":{"name":{"type":"string"},"address":{"type":"string"},"uprn":{"type":"string"},"postcode":{"type":["string","null"]},"addresses":{"type":"integer","minimum":1}},"required":["name","address","uprn","postcode","addresses"]},"Member":{"type":"object","properties":{"membershipId":{"type":"string","format":"uuid"},"identityId":{"type":"string","format":"uuid"},"email":{"type":"string"},"firstName":{"type":["string","null"]},"lastName":{"type":["string","null"]},"avatarUrl":{"type":["string","null"]},"role":{"type":"string"},"joinedAt":{"type":"string"}},"required":["membershipId","identityId","email","firstName","lastName","avatarUrl","role","joinedAt"]},"PendingInvitation":{"type":"object","properties":{"id":{"type":"string","format":"uuid"},"email":{"type":"string"},"role":{"type":"string"},"access":{"type":["string","null"]},"expiresAt":{"type":"string"},"createdAt":{"type":"string"},"invitedBy":{"type":["object","null"],"properties":{"identityId":{"type":"string","format":"uuid"},"firstName":{"type":["string","null"]},"lastName":{"type":["string","null"]}},"required":["identityId","firstName","lastName"]}},"required":["id","email","role","access","expiresAt","createdAt","invitedBy"]},"TeamSummary":{"allOf":[{"$ref":"#/components/schemas/Team"},{"type":"object","properties":{"memberCount":{"type":"integer"}},"required":["memberCount"]}]},"Team":{"type":"object","properties":{"id":{"type":"string","format":"uuid"},"name":{"type":"string"},"description":{"type":["string","null"]},"archived":{"type":"boolean"},"createdAt":{"type":"string"}},"required":["id","name","description","archived","createdAt"]},"CreateTeam":{"type":"object","properties":{"name":{"type":"string","minLength":1,"maxLength":120},"description":{"type":["string","null"],"maxLength":500}},"required":["name"],"additionalProperties":false},"TeamDetail":{"type":"object","properties":{"team":{"$ref":"#/components/schemas/Team"},"members":{"type":["array","null"],"items":{"$ref":"#/components/schemas/TeamMember"}},"canManage":{"type":"boolean"}},"required":["team","members","canManage"]},"TeamMember":{"type":"object","properties":{"identityId":{"type":"string","format":"uuid"},"email":{"type":"string"},"firstName":{"type":["string","null"]},"lastName":{"type":["string","null"]},"avatarUrl":{"type":["string","null"]},"teamRole":{"type":"string","enum":["lead","member"]},"addedAt":{"type":"string"}},"required":["identityId","email","firstName","lastName","avatarUrl","teamRole","addedAt"]},"TeamPatch":{"type":"object","properties":{"name":{"type":"string","minLength":1,"maxLength":120},"description":{"type":["string","null"],"maxLength":500}},"additionalProperties":false},"TeamMembership":{"type":"object","properties":{"id":{"type":"string","format":"uuid"},"teamId":{"type":"string","format":"uuid"},"identityId":{"type":"string","format":"uuid"},"teamRole":{"type":"string","enum":["lead","member"]},"archived":{"type":"boolean"}},"required":["id","teamId","identityId","teamRole","archived"]},"AddTeamMember":{"type":"object","properties":{"identityId":{"type":"string","format":"uuid"},"teamRole":{"type":"string","enum":["lead","member"]}},"required":["identityId","teamRole"],"additionalProperties":false},"TeamRoleChange":{"type":"object","properties":{"teamRole":{"type":"string","enum":["lead","member"]}},"required":["teamRole"],"additionalProperties":false},"ResourcePage":{"type":"object","properties":{"items":{"type":"array","items":{"$ref":"#/components/schemas/Resource"}},"nextCursor":{"type":["string","null"]},"hasMore":{"type":"boolean"}},"required":["items","nextCursor","hasMore"]},"Resource":{"type":"object","properties":{"id":{"type":"string","format":"uuid"},"type":{"type":"string"},"name":{"type":"string"},"parentId":{"type":["string","null"],"format":"uuid"},"attributes":{"type":"object","additionalProperties":{}},"archived":{"type":"boolean"},"archivedAt":{"type":["string","null"]},"tombstoned":{"type":"boolean"},"createdAt":{"type":"string"},"updatedAt":{"type":"string"}},"required":["id","type","name","parentId","attributes","archived","archivedAt","tombstoned","createdAt","updatedAt"]},"CreateResource":{"type":"object","properties":{"type":{"$ref":"#/components/schemas/ResourceType"},"name":{"type":"string","minLength":1,"maxLength":200},"attributes":{"type":"object","additionalProperties":{}},"parentId":{"type":"string","format":"uuid"},"registrationId":{"type":"string","format":"uuid"}},"required":["type","name"],"additionalProperties":false},"ResourceType":{"type":"string","maxLength":60,"enum":["asset","building","group","person","post","risk","site"],"example":"asset"},"ResourceDetail":{"type":"object","properties":{"resource":{"$ref":"#/components/schemas/Resource"},"access":{"$ref":"#/components/schemas/ResourceAccess"},"parent":{"type":["object","null"],"properties":{"id":{"type":"string","format":"uuid"},"name":{"type":"string"}},"required":["id","name"]},"shared":{"type":"boolean"}},"required":["resource","access","parent","shared"]},"ResourceAccess":{"type":"object","properties":{"level":{"$ref":"#/components/schemas/GrantLevel"},"via":{"type":"string"},"inheritedFrom":{"type":["object","null"],"properties":{"id":{"type":"string","format":"uuid"},"name":{"type":"string"}},"required":["id","name"]},"mayUpdate":{"type":"boolean"}},"required":["level","via","inheritedFrom","mayUpdate"]},"GrantLevel":{"type":["string","null"],"enum":["none","viewer","contributor","editor","manager",null]},"ResourcePatch":{"type":"object","properties":{"name":{"type":"string","minLength":1,"maxLength":200},"attributes":{"type":"object","additionalProperties":{}}},"additionalProperties":false},"ArchiveResource":{"type":"object","properties":{"reason":{"type":"string","maxLength":500}},"additionalProperties":false},"MoveResource":{"type":"object","properties":{"toParentId":{"type":["string","null"],"format":"uuid","description":"Where it goes; null takes it out of a folder to the top (spec 58 §9.1)."}},"required":["toParentId"],"additionalProperties":false},"MoveGain":{"type":"object","properties":{"subjectKind":{"type":"string"},"subjectId":{"type":"string"},"label":{"type":"string"},"level":{"type":"string"},"setOn":{"type":"object","properties":{"id":{"type":"string"},"name":{"type":"string"}},"required":["id","name"]}},"required":["subjectKind","subjectId","label","level","setOn"]},"TombstoneResource":{"type":"object","properties":{"erasureRequestId":{"type":"string","format":"uuid"}},"required":["erasureRequestId"],"additionalProperties":false},"Grant":{"type":"object","properties":{"id":{"type":"string","format":"uuid"},"resourceId":{"type":"string","format":"uuid"},"subjectKind":{"type":"string","enum":["identity","team"]},"subjectId":{"type":"string","format":"uuid"},"level":{"$ref":"#/components/schemas/GrantLevel"},"alsoCheck":{"type":"boolean"},"subjectLabel":{"type":"string"},"subjectSecondary":{"type":["string","null"]},"grantedAt":{"type":"string"}},"required":["id","resourceId","subjectKind","subjectId","level","alsoCheck","subjectLabel","subjectSecondary","grantedAt"]},"InheritedGrant":{"allOf":[{"$ref":"#/components/schemas/Grant"},{"type":"object","properties":{"fromResource":{"type":"object","properties":{"id":{"type":"string","format":"uuid"},"name":{"type":"string"}},"required":["id","name"]}},"required":["fromResource"]}]},"SetGrant":{"type":"object","properties":{"subjectKind":{"type":"string","enum":["identity","team"]},"subjectId":{"type":"string","format":"uuid"},"level":{"$ref":"#/components/schemas/GrantLevel"},"alsoCheck":{"type":"boolean"}},"required":["subjectKind","subjectId","level"],"additionalProperties":false},"RevokedGrant":{"type":"object","properties":{"id":{"type":"string","format":"uuid"},"resourceId":{"type":"string","format":"uuid"},"revoked":{"type":"boolean","enum":[true]}},"required":["id","resourceId","revoked"]},"SavedVersion":{"type":"object","properties":{"version":{"$ref":"#/components/schemas/Version"},"entry":{"$ref":"#/components/schemas/TrailEntry"},"warnings":{"type":"array","items":{"$ref":"#/components/schemas/DocumentProblem"}}},"required":["version","entry","warnings"]},"Version":{"type":"object","properties":{"id":{"type":"string","format":"uuid"},"version":{"type":"integer"},"hash":{"type":"string","description":"sha-256, lowercase hex, of the canonical bytes, computed by the frame."},"createdAt":{"type":"string"},"publishedAt":{"type":["string","null"]}},"required":["id","version","hash","createdAt","publishedAt"]},"TrailEntry":{"type":"object","properties":{"seq":{"type":"integer"},"versionId":{"type":"string","format":"uuid"},"hash":{"type":"string"},"at":{"type":"string"},"actorIdentityId":{"type":"string","format":"uuid"},"headline":{"type":"string"},"words":{"type":"string"},"acknowledged":{"type":"array","items":{"type":"string"}},"changes":{"type":"array","items":{}},"said":{"type":"array","items":{}}},"required":["seq","versionId","hash","at","actorIdentityId","headline","changes"]},"DocumentProblem":{"type":"object","properties":{"id":{"type":"string"},"rule":{"type":"string"},"message":{"type":"string"},"severity":{"type":"string","enum":["error","warning"]}},"required":["rule","message","severity"]},"SaveVersionBody":{"type":"object","properties":{"document":{"type":"object","description":"The whole document, as the resource type writes it."},"words":{"type":"string","maxLength":2000,"description":"The person’s own words about this save, if any."},"acknowledged":{"type":"array","items":{"type":"string","minLength":1,"maxLength":100},"maxItems":20,"description":"The warnings the person acknowledged as they saved. Only a warning the saved document carries is kept; any other is refused."},"said":{"type":"array","items":{"type":"object","additionalProperties":{}},"maxItems":20,"description":"What the person’s tool said beside the save, kept with its trail entry as it came and never read by the frame."}}},"Trail":{"type":"object","properties":{"items":{"type":"array","items":{"allOf":[{"$ref":"#/components/schemas/TrailEntry"},{"type":"object","properties":{"actor":{"type":"object","properties":{"kind":{"type":"string"},"id":{"type":["string","null"]},"display":{"type":"string"}},"required":["kind","id","display"]}},"required":["actor"]}]}}},"required":["items"]},"VersionRecord":{"type":"object","properties":{"version":{"$ref":"#/components/schemas/Version"},"versions":{"type":"array","items":{"$ref":"#/components/schemas/Version"},"description":"Every version with this content, oldest first."},"hash":{"type":"string"},"audit":{"type":"array","items":{"type":"object","additionalProperties":{}}},"trail":{"type":"array","items":{"allOf":[{"$ref":"#/components/schemas/TrailEntry"},{"type":"object","properties":{"actor":{"type":"object","properties":{"kind":{"type":"string"},"id":{"type":["string","null"]},"display":{"type":"string"}},"required":["kind","id","display"]}},"required":["actor"]}]}}},"required":["version","versions","hash","audit","trail"]},"StartedUpload":{"type":"object","properties":{"uploadId":{"type":"string","format":"uuid"},"upload":{"type":["object","null"],"properties":{"method":{"type":"string","enum":["PUT"]},"url":{"type":"string"},"headers":{"type":"object","additionalProperties":{"type":"string"}}},"required":["method","url","headers"],"description":"Where to PUT the bytes, and with what headers; null to PUT them to this API’s upload route."},"expiresAt":{"type":"string"}},"required":["uploadId","upload","expiresAt"]},"StartUpload":{"type":"object","properties":{"resourceId":{"type":"string","format":"uuid","description":"The resource the file is for; absent, the organisation itself."},"mediaType":{"type":"string","maxLength":200,"description":"What the browser says the file is; an empty string if it cannot say."},"size":{"type":"integer","exclusiveMinimum":0}},"required":["mediaType","size"],"additionalProperties":false},"Media":{"type":"object","properties":{"id":{"type":"string","format":"uuid","description":"The attachment: this file on this subject."},"mediaId":{"type":"string","format":"uuid"},"reference":{"type":"string","description":"What a document names the file by: `sha256:` and the hex digest."},"hash":{"type":"string"},"kind":{"type":"string","enum":["image","pdf","document"]},"mediaType":{"type":"string"},"size":{"type":"integer"},"filename":{"type":"string"},"caption":{"type":["string","null"]},"width":{"type":["integer","null"]},"height":{"type":["integer","null"]},"pageCount":{"type":["integer","null"]},"previews":{"type":"boolean","description":"Whether `thumb` and `display` previews can be fetched."},"status":{"type":"string","enum":["active","archived","erased"]},"archivedAt":{"type":["string","null"]},"createdBy":{"type":["string","null"],"format":"uuid"},"createdAt":{"type":"string"}},"required":["id","mediaId","reference","hash","kind","mediaType","size","filename","caption","width","height","pageCount","previews","status","archivedAt","createdBy","createdAt"]},"CompleteUpload":{"type":"object","properties":{"resourceId":{"type":"string","format":"uuid"},"filename":{"type":"string","maxLength":1000},"caption":{"type":"string","maxLength":2000}},"required":["filename"],"additionalProperties":false},"AppointmentsOn":{"type":"object","properties":{"resource":{"type":"object","properties":{"id":{"type":"string","format":"uuid"},"name":{"type":"string"}},"required":["id","name"]},"appointments":{"type":"array","items":{"$ref":"#/components/schemas/Appointment"}},"roles":{"type":"array","items":{"$ref":"#/components/schemas/AppointmentRole"}},"mayRecord":{"type":"boolean"}},"required":["resource","appointments","roles","mayRecord"]},"Appointment":{"type":"object","properties":{"id":{"type":"string","format":"uuid"},"resourceId":{"type":"string","format":"uuid"},"roleKey":{"type":"string"},"roleLabel":{"type":"string"},"appointee":{"oneOf":[{"type":"object","properties":{"kind":{"type":"string","enum":["organisation"]},"organisationId":{"type":"string","format":"uuid"},"name":{"type":["string","null"]}},"required":["kind","organisationId","name"]},{"type":"object","properties":{"kind":{"type":"string","enum":["person"]},"personId":{"type":"string","format":"uuid"},"erased":{"type":"boolean"}},"required":["kind","personId","erased"]},{"type":"object","properties":{"kind":{"type":"string","enum":["words"]},"words":{"type":"string"}},"required":["kind","words"]}]},"basis":{"type":"string","enum":["lease","contract","letter","statute","other"]},"basisReference":{"type":["string","null"]},"fromOn":{"type":"string"},"toOn":{"type":["string","null"]},"inForce":{"type":"boolean"},"recordedAt":{"type":"string"}},"required":["id","resourceId","roleKey","roleLabel","appointee","basis","basisReference","fromOn","toOn","inForce","recordedAt"]},"AppointmentRole":{"type":"object","properties":{"key":{"type":"string"},"label":{"type":"string"}},"required":["key","label"],"additionalProperties":{}},"AppointmentsSummary":{"type":"object","properties":{"resource":{"type":"object","properties":{"id":{"type":"string","format":"uuid"},"name":{"type":"string"}},"required":["id","name"]},"appointments":{"type":"array","items":{"allOf":[{"$ref":"#/components/schemas/Appointment"},{"type":"object","properties":{"appointeeName":{"type":"string"},"basisWords":{"type":"string"},"law":{"type":["string","null"]}},"required":["appointeeName","basisWords","law"]}]}},"cautions":{"type":"array","items":{"type":"object","properties":{"id":{"type":"string"},"words":{"type":"string"},"because":{"type":"string"}},"required":["id","words","because"]}},"higherRisk":{"type":"string","enum":["yes","no","unknown"]},"roles":{"type":"array","items":{"$ref":"#/components/schemas/AppointmentRole"}},"mayRecord":{"type":"boolean"}},"required":["resource","appointments","cautions","higherRisk","roles","mayRecord"]},"RecordAppointment":{"type":"object","properties":{"roleKey":{"type":"string","minLength":1,"maxLength":80},"appointee":{"oneOf":[{"type":"object","properties":{"kind":{"type":"string","enum":["organisation"]},"organisationId":{"type":"string","format":"uuid"}},"required":["kind","organisationId"],"additionalProperties":false},{"type":"object","properties":{"kind":{"type":"string","enum":["person"]},"personId":{"type":"string","format":"uuid"}},"required":["kind","personId"],"additionalProperties":false},{"type":"object","properties":{"kind":{"type":"string","enum":["words"]},"words":{"type":"string","minLength":1,"maxLength":200}},"required":["kind","words"],"additionalProperties":false}]},"basis":{"type":"string","enum":["lease","contract","letter","statute","other"]},"basisReference":{"type":"string","maxLength":160},"fromOn":{"type":"string","pattern":"^\\d{4}-\\d{2}-\\d{2}$"}},"required":["roleKey","appointee","basis"],"additionalProperties":false},"EndAppointment":{"type":"object","properties":{"toOn":{"type":"string","pattern":"^\\d{4}-\\d{2}-\\d{2}$"}},"additionalProperties":false},"PeopleRecordedHere":{"type":"object","properties":{"place":{"type":"object","properties":{"id":{"type":"string","format":"uuid"},"name":{"type":"string"}},"required":["id","name"]},"spaces":{"type":"array","items":{"$ref":"#/components/schemas/Space"}},"publishedHash":{"type":["string","null"]},"people":{"type":"array","items":{"type":"object","properties":{"id":{"type":"string","format":"uuid"},"displayName":{"type":["string","null"]},"unidentified":{"type":"boolean"},"tombstoned":{"type":"boolean"},"here":{"type":"array","items":{"$ref":"#/components/schemas/Residency"}}},"required":["id","displayName","unidentified","tombstoned","here"]}},"mayRecord":{"type":"boolean"}},"required":["place","spaces","publishedHash","people","mayRecord"]},"Space":{"type":"object","properties":{"id":{"type":"string"},"name":{"type":"string"},"storey":{"type":["string","null"]}},"required":["id","name","storey"]},"Residency":{"type":"object","properties":{"id":{"type":"string","format":"uuid"},"placeId":{"type":"string","format":"uuid"},"placeName":{"type":["string","null"]},"spaceId":{"type":"string"},"spaceName":{"type":["string","null"]},"role":{"type":"string"},"roleLabel":{"type":"string"},"fromDate":{"type":"string"},"toDate":{"type":["string","null"]},"authoredAgainst":{"type":"string"},"current":{"type":"boolean"},"identifiedOn":{"type":["string","null"]},"moveOut":{"type":["object","null"],"properties":{"expectedOn":{"type":["string","null"]},"answer":{"type":"string","enum":["expected","not-yet"]},"asked":{"type":"boolean"},"escalated":{"type":"boolean"},"movingTo":{"type":["object","null"],"properties":{"residencyId":{"type":"string","format":"uuid"},"placeId":{"type":"string","format":"uuid"},"placeName":{"type":["string","null"]},"spaceName":{"type":["string","null"]},"fromDate":{"type":"string"}},"required":["residencyId","placeId","placeName","spaceName","fromDate"]}},"required":["expectedOn","answer","asked","escalated","movingTo"]}},"required":["id","placeId","placeName","spaceId","spaceName","role","roleLabel","fromDate","toDate","authoredAgainst","current","identifiedOn","moveOut"]},"Person":{"type":"object","properties":{"id":{"type":"string","format":"uuid"},"displayName":{"type":["string","null"]},"unidentified":{"type":"boolean"},"tombstoned":{"type":"boolean"},"recordedAs":{"type":"string"},"place":{"type":["object","null"],"properties":{"id":{"type":"string","format":"uuid"},"name":{"type":"string"}},"required":["id","name"]},"facts":{"type":"array","items":{"$ref":"#/components/schemas/Fact"}},"residencies":{"type":"array","items":{"$ref":"#/components/schemas/Residency"}},"mayUpdate":{"type":"boolean"}},"required":["id","displayName","unidentified","tombstoned","recordedAs","place","facts","residencies","mayUpdate"]},"Fact":{"type":"object","properties":{"id":{"type":"string","format":"uuid"},"kind":{"type":"string"},"label":{"type":"string"},"value":{"type":["string","null"]},"givenBy":{"type":"string"},"givenByLabel":{"type":"string"},"givenOn":{"type":"string"},"source":{"type":"string"},"sourceLabel":{"type":"string"},"recordedAt":{"type":"string"},"withdrawnAt":{"type":["string","null"]}},"required":["id","kind","label","value","givenBy","givenByLabel","givenOn","source","sourceLabel","recordedAt","withdrawnAt"]},"RecordPerson":{"type":"object","properties":{"displayName":{"type":["string","null"],"minLength":1,"maxLength":200},"spaceId":{"type":"string","minLength":1,"maxLength":200},"role":{"type":"string","minLength":1,"maxLength":40},"fromDate":{"type":"string","pattern":"^\\d{4}-\\d{2}-\\d{2}$","example":"2026-10-02"}},"required":["displayName","spaceId","role"],"additionalProperties":false},"PeopleFound":{"type":"object","properties":{"items":{"type":"array","items":{"type":"object","properties":{"id":{"type":"string","format":"uuid"},"recordedAs":{"type":"string"},"place":{"type":["object","null"],"properties":{"id":{"type":"string","format":"uuid"},"name":{"type":"string"}},"required":["id","name"]},"tombstoned":{"type":"boolean"}},"required":["id","recordedAs","place","tombstoned"]}}},"required":["items"]},"Reads":{"type":"object","properties":{"items":{"type":"array","items":{"type":"object","properties":{"readAt":{"type":"string"},"resourceId":{"type":"string","format":"uuid"},"reader":{"type":"object","properties":{"id":{"type":"string","format":"uuid"},"display":{"type":"string"}},"required":["id","display"]},"what":{"type":"string","enum":["list","record"]},"funnel":{"type":"string"},"reason":{"type":["string","null"]}},"required":["readAt","resourceId","reader","what","funnel","reason"]}}},"required":["items"]},"NamePerson":{"type":"object","properties":{"displayName":{"type":"string","minLength":1,"maxLength":200}},"required":["displayName"],"additionalProperties":false},"GiveFact":{"type":"object","properties":{"kind":{"type":"string","minLength":1,"maxLength":60,"example":"person:language"},"value":{"type":"string","minLength":1,"maxLength":2000},"givenBy":{"type":"string","minLength":1,"maxLength":40,"example":"the-person"},"givenOn":{"type":"string","pattern":"^\\d{4}-\\d{2}-\\d{2}$","example":"2026-10-02"},"source":{"type":"string","minLength":1,"maxLength":40,"example":"in-person"}},"required":["kind","value","givenBy","source"],"additionalProperties":false},"OpenResidency":{"type":"object","properties":{"spaceId":{"type":"string","minLength":1,"maxLength":200},"role":{"type":"string","minLength":1,"maxLength":40},"fromDate":{"type":"string","pattern":"^\\d{4}-\\d{2}-\\d{2}$","example":"2026-10-02"}},"required":["spaceId","role"],"additionalProperties":false},"MoveOut":{"type":"object","properties":{"answer":{"type":"string","enum":["expected","not-yet"]},"expectedOn":{"type":["string","null"],"pattern":"^\\d{4}-\\d{2}-\\d{2}$","example":"2026-10-02"}},"required":["answer"],"additionalProperties":false},"CloseResidency":{"type":"object","properties":{"toDate":{"type":"string","pattern":"^\\d{4}-\\d{2}-\\d{2}$","example":"2026-10-02"}},"additionalProperties":false},"MovePerson":{"type":"object","properties":{"toParentId":{"type":"string","format":"uuid"},"spaceId":{"type":"string","minLength":1,"maxLength":200},"role":{"type":"string","minLength":1,"maxLength":40},"fromDate":{"type":"string","pattern":"^\\d{4}-\\d{2}-\\d{2}$","example":"2026-10-02"}},"required":["toParentId","spaceId"],"additionalProperties":false},"Parties":{"type":"object","properties":{"personId":{"type":"string","format":"uuid"},"parties":{"type":"array","items":{"$ref":"#/components/schemas/Party"}},"mayRecord":{"type":"boolean"}},"required":["personId","parties","mayRecord"]},"Party":{"type":"object","properties":{"id":{"type":"string","format":"uuid"},"handle":{"type":"string","format":"uuid"},"standing":{"type":"string"},"standingLabel":{"type":"string"},"authority":{"type":"boolean"},"basis":{"type":["string","null"]},"basisLabel":{"type":["string","null"]},"words":{"type":["string","null"]},"personRef":{"type":["string","null"],"format":"uuid"},"organisation":{"type":["object","null"],"properties":{"id":{"type":"string","format":"uuid"},"name":{"type":"string"}},"required":["id","name"]},"evidence":{"type":["string","null"]},"fromDate":{"type":"string"},"toDate":{"type":["string","null"]},"validFrom":{"type":"string"},"validTo":{"type":["string","null"]},"current":{"type":"boolean"},"recordedAt":{"type":"string"}},"required":["id","handle","standing","standingLabel","authority","basis","basisLabel","words","personRef","organisation","evidence","fromDate","toDate","validFrom","validTo","current","recordedAt"]},"PartyInput":{"type":"object","properties":{"standing":{"type":"string","minLength":1,"maxLength":40,"example":"delegated"},"basis":{"type":["string","null"],"minLength":1,"maxLength":40},"words":{"type":"string","minLength":1,"maxLength":120,"example":"a daughter"},"personRef":{"type":["string","null"],"format":"uuid"},"orgId":{"type":["string","null"],"format":"uuid"},"evidence":{"type":["string","null"],"minLength":1,"maxLength":120},"fromDate":{"type":"string","pattern":"^\\d{4}-\\d{2}-\\d{2}$","example":"2026-10-10"},"toDate":{"type":["string","null"],"pattern":"^\\d{4}-\\d{2}-\\d{2}$","example":"2026-10-10"}},"required":["standing","words"],"additionalProperties":false},"EndParty":{"type":"object","properties":{"on":{"type":"string","pattern":"^\\d{4}-\\d{2}-\\d{2}$","example":"2026-10-10"}},"additionalProperties":false},"Statements":{"type":"object","properties":{"personId":{"type":"string","format":"uuid"},"parties":{"type":"array","items":{"$ref":"#/components/schemas/Party"}},"consents":{"type":"array","items":{"$ref":"#/components/schemas/Consent"}},"decisions":{"type":"array","items":{"$ref":"#/components/schemas/Decision"}},"standing":{"type":"array","items":{"type":"object","properties":{"residencyId":{"type":"string","format":"uuid"},"scope":{"type":"string"},"mayShare":{"type":"boolean"},"words":{"type":["string","null"]}},"required":["residencyId","scope","mayShare","words"]}},"mayRecord":{"type":"boolean"}},"required":["personId","parties","consents","decisions","standing","mayRecord"]},"Consent":{"type":"object","properties":{"id":{"type":"string","format":"uuid"},"residencyId":{"type":"string","format":"uuid"},"processHandle":{"type":["string","null"],"format":"uuid"},"scope":{"type":"string"},"scopeLabel":{"type":"string"},"status":{"type":"string"},"statusLabel":{"type":"string"},"party":{"$ref":"#/components/schemas/PartyRef"},"relayedBy":{"allOf":[{"$ref":"#/components/schemas/PartyRef"},{"type":["object","null"]}]},"how":{"type":"string"},"howLabel":{"type":"string"},"channel":{"type":"string"},"channelLabel":{"type":"string"},"informed":{"type":"string"},"informedLabel":{"type":"string"},"words":{"type":["string","null"]},"evidence":{"type":["string","null"]},"on":{"type":"string"},"reviewOn":{"type":["string","null"]},"closedOn":{"type":["string","null"]},"open":{"type":"boolean"}},"required":["id","residencyId","processHandle","scope","scopeLabel","status","statusLabel","party","relayedBy","how","howLabel","channel","channelLabel","informed","informedLabel","words","evidence","on","reviewOn","closedOn","open"]},"PartyRef":{"type":"object","properties":{"id":{"type":"string","format":"uuid"},"handle":{"type":"string","format":"uuid"},"standing":{"type":"string"},"standingLabel":{"type":"string"},"words":{"type":["string","null"]},"current":{"type":"boolean"}},"required":["id","handle","standing","standingLabel","words","current"]},"Decision":{"type":"object","properties":{"id":{"type":"string","format":"uuid"},"residencyId":{"type":"string","format":"uuid"},"scope":{"type":"string"},"scopeLabel":{"type":"string"},"words":{"type":["string","null"]},"informed":{"type":"string"},"informedLabel":{"type":"string"},"evidence":{"type":["string","null"]},"on":{"type":"string"},"reviewOn":{"type":"string"},"reviews":{"type":["string","null"],"format":"uuid"},"outcome":{"type":["string","null"]},"outcomeLabel":{"type":["string","null"]},"closedOn":{"type":["string","null"]},"open":{"type":"boolean"},"notConsent":{"type":"boolean","enum":[true]}},"required":["id","residencyId","scope","scopeLabel","words","informed","informedLabel","evidence","on","reviewOn","reviews","outcome","outcomeLabel","closedOn","open","notConsent"]},"Statement":{"anyOf":[{"$ref":"#/components/schemas/Consent"},{"$ref":"#/components/schemas/Decision"}]},"StatementInput":{"oneOf":[{"type":"object","properties":{"kind":{"type":"string","enum":["consent"]},"residencyId":{"type":"string","format":"uuid"},"scope":{"type":"string","minLength":1,"maxLength":40,"example":"share-planning"},"status":{"type":"string","minLength":1,"maxLength":40,"example":"given"},"party":{"type":"string","minLength":1,"maxLength":40,"example":"self"},"relayedBy":{"type":["string","null"],"format":"uuid"},"how":{"type":"string","minLength":1,"maxLength":40,"example":"verbal-witnessed"},"channel":{"type":"string","minLength":1,"maxLength":40,"example":"in-person"},"informed":{"type":"string","minLength":1,"maxLength":40,"example":"yes"},"words":{"type":["string","null"],"minLength":1,"maxLength":500},"evidence":{"type":["string","null"],"minLength":1,"maxLength":120},"on":{"type":"string","pattern":"^\\d{4}-\\d{2}-\\d{2}$","example":"2026-10-10"},"reviewOn":{"type":["string","null"],"pattern":"^\\d{4}-\\d{2}-\\d{2}$","example":"2026-10-10"}},"required":["kind","residencyId","scope","status","party","how","channel","informed"],"additionalProperties":false},{"type":"object","properties":{"kind":{"type":"string","enum":["decision"]},"residencyId":{"type":"string","format":"uuid"},"scope":{"type":"string","minLength":1,"maxLength":40,"example":"share-planning"},"words":{"type":"string","minLength":1,"maxLength":500},"reviewOn":{"type":"string","pattern":"^\\d{4}-\\d{2}-\\d{2}$","example":"2026-10-10"},"informed":{"type":"string","minLength":1,"maxLength":40,"example":"unable"},"evidence":{"type":["string","null"],"minLength":1,"maxLength":120},"on":{"type":"string","pattern":"^\\d{4}-\\d{2}-\\d{2}$","example":"2026-10-10"}},"required":["kind","residencyId","scope","words","reviewOn","informed"],"additionalProperties":false}]},"ReviewDecision":{"type":"object","properties":{"outcome":{"type":"string","minLength":1,"maxLength":40,"example":"kept"},"words":{"type":"string","minLength":1,"maxLength":500},"reviewOn":{"type":["string","null"],"pattern":"^\\d{4}-\\d{2}-\\d{2}$","example":"2026-10-10"},"informed":{"type":"string","minLength":1,"maxLength":40},"on":{"type":"string","pattern":"^\\d{4}-\\d{2}-\\d{2}$","example":"2026-10-10"}},"required":["outcome","words"],"additionalProperties":false},"StatementsSummary":{"type":"object","properties":{"residencies":{"type":"number"},"scopes":{"type":"object","additionalProperties":{"type":"object","properties":{"given":{"type":"number"},"refused":{"type":"number"},"withdrawn":{"type":"number"},"notAsked":{"type":"number"},"decisionsUnderReview":{"type":"number"}},"required":["given","refused","withdrawn","notAsked","decisionsUnderReview"]}},"decisionsUnderReview":{"type":"number"}},"required":["residencies","scopes","decisionsUnderReview"]},"ConsentColumn":{"type":"object","properties":{"items":{"type":"array","items":{"type":"object","properties":{"residencyId":{"type":"string","format":"uuid"},"personId":{"type":"string","format":"uuid"},"status":{"type":["string","null"]},"decisionUnderReview":{"type":"boolean"}},"required":["residencyId","personId","status","decisionUnderReview"]}}},"required":["items"]},"PlanExists":{"type":"object","properties":{"exists":{"type":"boolean"},"mayRead":{"type":"boolean"}},"required":["exists","mayRead"]},"PlanAnswer":{"type":"object","properties":{"residencyId":{"type":"string","format":"uuid"},"processHandle":{"type":"string","format":"uuid"},"identifiedOn":{"type":["string","null"]},"plan":{"$ref":"#/components/schemas/Plan"},"consent":{"type":"object","properties":{"assess":{"type":"string","enum":["given","refused","withdrawn","none"]},"sharePlanning":{"type":"string","enum":["given","refused","withdrawn","none"]},"assessRefusedOn":{"type":["string","null"]}},"required":["assess","sharePlanning","assessRefusedOn"]},"may":{"type":"object","properties":{"recordAssessment":{"type":"boolean"},"agree":{"type":"boolean"},"decline":{"type":"boolean"},"review":{"type":"boolean"},"giveCopy":{"type":"boolean"},"bindRoute":{"type":"boolean"}},"required":["recordAssessment","agree","decline","review","giveCopy","bindRoute"]},"mayRecord":{"type":"boolean"}},"required":["residencyId","processHandle","identifiedOn","plan","consent","may","mayRecord"]},"Plan":{"type":["object","null"],"properties":{"handle":{"type":"string","format":"uuid"},"processHandle":{"type":["string","null"],"format":"uuid"},"cycle":{"type":"integer"},"agreedIn":{"type":["integer","null"]},"versionId":{"type":"string","format":"uuid"},"residencyId":{"type":"string","format":"uuid"},"stage":{"type":"string"},"stageLabel":{"type":"string"},"stageLine":{"type":"string"},"identifiedOn":{"type":"string"},"assessedOn":{"type":["string","null"]},"assessedBy":{"type":["string","null"]},"assessmentRef":{"type":["string","null"]},"needs":{"type":"array","items":{"type":"string"}},"needsLine":{"type":"string"},"routeHandle":{"type":["string","null"],"format":"uuid"},"alternativeRouteHandle":{"type":["string","null"],"format":"uuid"},"walked":{"type":"boolean"},"steps":{"type":"array","items":{"type":"object","properties":{"sentence":{"type":"string"},"help":{"type":"array","items":{"type":"string"}},"aids":{"type":"array","items":{"type":"string"}}},"required":["sentence","help","aids"]}},"destination":{"type":["string","null"]},"alternative":{"type":["object","null"],"properties":{"steps":{"type":"array","items":{"type":"object","properties":{"sentence":{"type":"string"},"help":{"type":"array","items":{"type":"string"}},"aids":{"type":"array","items":{"type":"string"}}},"required":["sentence","help","aids"]}},"destination":{"type":"string"}},"required":["steps","destination"]},"instructions":{"type":["string","null"]},"agreedOn":{"type":["string","null"]},"agreedWith":{"$ref":"#/components/schemas/PlanPartyRef"},"declinedOn":{"type":["string","null"]},"declinedBy":{"$ref":"#/components/schemas/PlanPartyRef"},"declinedWhy":{"type":["string","null"]},"copyGivenOn":{"type":["string","null"]},"copyGivenHow":{"type":["string","null"]},"copyLine":{"type":["string","null"]},"reviewDue":{"type":["string","null"]},"reviewReason":{"type":"string"},"reviewReasonLabel":{"type":"string"},"withdrawnOn":{"type":["string","null"]},"withdrawnWhy":{"type":["string","null"]},"suspended":{"type":["object","null"],"properties":{"on":{"type":"string"},"reason":{"type":"string"},"reasonLabel":{"type":"string"},"words":{"type":["string","null"]}},"required":["on","reason","reasonLabel","words"]},"resumedOn":{"type":["string","null"]},"snapshotHash":{"type":["string","null"]},"takenOn":{"type":["string","null"]},"drift":{"type":"array","items":{"type":"string"}},"emptied":{"type":"boolean"},"validFrom":{"type":"string"}},"required":["handle","processHandle","cycle","agreedIn","versionId","residencyId","stage","stageLabel","stageLine","identifiedOn","assessedOn","assessedBy","assessmentRef","needs","needsLine","routeHandle","alternativeRouteHandle","walked","steps","destination","alternative","instructions","agreedOn","agreedWith","declinedOn","declinedBy","declinedWhy","copyGivenOn","copyGivenHow","copyLine","reviewDue","reviewReason","reviewReasonLabel","withdrawnOn","withdrawnWhy","suspended","resumedOn","snapshotHash","takenOn","drift","emptied","validFrom"]},"PlanPartyRef":{"type":["object","null"],"properties":{"id":{"type":"string","format":"uuid"},"handle":{"type":"string","format":"uuid"},"standing":{"type":"string"},"standingLabel":{"type":"string"},"words":{"type":["string","null"]},"current":{"type":"boolean"}},"required":["id","handle","standing","standingLabel","words","current"]},"PlanHistory":{"type":"object","properties":{"items":{"type":"array","items":{"$ref":"#/components/schemas/Plan"}}},"required":["items"]},"ResidencyIdentified":{"type":"object","properties":{"residencyId":{"type":"string","format":"uuid"},"identifiedOn":{"type":"string"}},"required":["residencyId","identifiedOn"]},"PlanOn":{"type":"object","properties":{"on":{"type":"string","pattern":"^\\d{4}-\\d{2}-\\d{2}$","example":"2026-10-10"}},"additionalProperties":false},"PlanAssessment":{"type":"object","properties":{"on":{"type":"string","pattern":"^\\d{4}-\\d{2}-\\d{2}$","example":"2026-10-10"},"by":{"type":"string","minLength":1,"maxLength":80,"example":"the assessor"},"ref":{"type":["string","null"],"minLength":1,"maxLength":200}},"required":["by"],"additionalProperties":false},"PlanAgree":{"type":"object","properties":{"needs":{"type":"array","items":{"type":"string","minLength":1,"maxLength":40},"maxItems":10},"route":{"type":["string","null"],"format":"uuid"},"alternative":{"type":["string","null"],"format":"uuid"},"walked":{"type":["object","null"],"properties":{"steps":{"type":"array","items":{"type":"object","additionalProperties":{}},"minItems":1,"maxItems":50},"destinationKind":{"type":["string","null"],"minLength":1,"maxLength":40},"destinationRef":{"type":["string","null"],"minLength":1,"maxLength":200},"joinsHandle":{"type":["string","null"],"format":"uuid"},"joinsAt":{"type":["string","null"],"minLength":1,"maxLength":200}},"required":["steps"],"additionalProperties":false},"help":{"type":"array","items":{"type":"object","properties":{"at":{"type":"string","minLength":1,"maxLength":80},"kind":{"type":"string","minLength":1,"maxLength":40},"ref":{"type":"string","minLength":1,"maxLength":80},"words":{"type":"string","minLength":1,"maxLength":120}},"required":["at","kind"],"additionalProperties":false},"maxItems":20},"instructions":{"type":["string","null"],"minLength":1,"maxLength":2000},"by":{"type":"string","minLength":1,"maxLength":40,"example":"self"},"on":{"type":"string","pattern":"^\\d{4}-\\d{2}-\\d{2}$","example":"2026-10-10"}},"required":["needs","by"],"additionalProperties":false},"PlanDecline":{"type":"object","properties":{"by":{"type":["string","null"],"minLength":1,"maxLength":40},"why":{"type":["string","null"],"minLength":1,"maxLength":200},"on":{"type":"string","pattern":"^\\d{4}-\\d{2}-\\d{2}$","example":"2026-10-10"}},"additionalProperties":false},"PlanCopy":{"type":"object","properties":{"how":{"type":"string","minLength":1,"maxLength":40,"example":"paper"},"on":{"type":"string","pattern":"^\\d{4}-\\d{2}-\\d{2}$","example":"2026-10-10"}},"required":["how"],"additionalProperties":false},"PlanReview":{"type":"object","properties":{"needs":{"type":"array","items":{"type":"string","minLength":1,"maxLength":40},"maxItems":10},"route":{"type":["string","null"],"format":"uuid"},"alternative":{"type":["string","null"],"format":"uuid"},"walked":{"type":["object","null"],"properties":{"steps":{"type":"array","items":{"type":"object","additionalProperties":{}},"minItems":1,"maxItems":50},"destinationKind":{"type":["string","null"],"minLength":1,"maxLength":40},"destinationRef":{"type":["string","null"],"minLength":1,"maxLength":200},"joinsHandle":{"type":["string","null"],"format":"uuid"},"joinsAt":{"type":["string","null"],"minLength":1,"maxLength":200}},"required":["steps"],"additionalProperties":false},"help":{"type":"array","items":{"type":"object","properties":{"at":{"type":"string","minLength":1,"maxLength":80},"kind":{"type":"string","minLength":1,"maxLength":40},"ref":{"type":"string","minLength":1,"maxLength":80},"words":{"type":"string","minLength":1,"maxLength":120}},"required":["at","kind"],"additionalProperties":false},"maxItems":20},"instructions":{"type":["string","null"],"minLength":1,"maxLength":2000},"by":{"type":"string","minLength":1,"maxLength":40,"example":"self"},"on":{"type":"string","pattern":"^\\d{4}-\\d{2}-\\d{2}$","example":"2026-10-10"},"reason":{"type":"string","minLength":1,"maxLength":40,"example":"change"}},"required":["needs","by","reason"],"additionalProperties":false},"PlanBindRoute":{"type":"object","properties":{"route":{"type":["string","null"],"minLength":1,"maxLength":80},"role":{"type":"string","enum":["primary","alternative"]}},"required":["route"],"additionalProperties":false},"PlansSummary":{"type":"object","properties":{"stages":{"type":"object","additionalProperties":{"type":"number"}},"reviewsDueWithin30Days":{"type":"number"},"openPlans":{"type":"number"}},"required":["stages","reviewsDueWithin30Days","openPlans"]},"PlanColumn":{"type":"object","properties":{"items":{"type":"array","items":{"type":"object","properties":{"residencyId":{"type":"string","format":"uuid"},"personId":{"type":"string","format":"uuid"},"stage":{"type":["string","null"]},"stageLabel":{"type":["string","null"]},"reviewDue":{"type":["string","null"]},"daily":{"type":["string","null"]}},"required":["residencyId","personId","stage","stageLabel","reviewDue","daily"]}}},"required":["items"]},"Extract":{"type":"object","properties":{"rows":{"type":"array","items":{"type":"object","properties":{"residencyId":{"type":"string","format":"uuid"},"flat":{"type":"string"},"storey":{"type":["string","null"]},"assistance":{"type":"string"},"statementExists":{"type":"boolean"},"consent":{"type":"object","properties":{"standing":{"type":"string"},"standingLabel":{"type":"string"},"how":{"type":"string"},"howLabel":{"type":"string"},"on":{"type":"string"},"passedOn":{"type":"boolean"}},"required":["standing","standingLabel","how","howLabel","on","passedOn"]}},"required":["residencyId","flat","storey","assistance","statementExists","consent"]}}},"required":["rows"]},"ExtractGivenAnswer":{"type":"object","properties":{"factId":{"type":"string","format":"uuid"},"rows":{"type":"number"}},"required":["factId","rows"]},"ExtractGiven":{"type":"object","properties":{"how":{"type":"string","minLength":1,"maxLength":160,"example":"Given electronically"},"to":{"type":["string","null"],"minLength":1,"maxLength":120},"on":{"type":"string","pattern":"^\\d{4}-\\d{2}-\\d{2}$","example":"2026-10-10"}},"required":["how"],"additionalProperties":false},"AssetsInTheRegister":{"type":"object","properties":{"place":{"type":"object","properties":{"id":{"type":"string","format":"uuid"},"name":{"type":"string"}},"required":["id","name"]},"spaces":{"type":"array","items":{"type":"object","properties":{"id":{"type":"string"},"name":{"type":"string"},"storey":{"type":["string","null"]}},"required":["id","name","storey"]}},"publishedHash":{"type":["string","null"]},"assets":{"type":"array","items":{"type":"object","properties":{"id":{"type":"string","format":"uuid"},"kind":{"type":"string"},"kindLabel":{"type":"string"},"label":{"type":["string","null"]},"serial":{"type":["string","null"]},"name":{"type":"string"},"keptIn":{"type":"object","properties":{"id":{"type":"string"},"name":{"type":["string","null"]}},"required":["id","name"]},"for":{"type":"array","items":{"type":"object","properties":{"id":{"type":"string"},"name":{"type":["string","null"]}},"required":["id","name"]}},"recordedAgainst":{"type":"object","properties":{"hash":{"type":"string"},"version":{"type":["integer","null"]},"current":{"type":"boolean"}},"required":["hash","version","current"]},"placeId":{"type":"string","format":"uuid"},"retired":{"type":["object","null"],"properties":{"at":{"type":"string"},"reason":{"type":"string"}},"required":["at","reason"]},"group":{"type":"string"},"person":{"type":["object","null"],"properties":{"assignmentId":{"type":"string","format":"uuid"},"residencyId":{"type":"string","format":"uuid"},"space":{"type":"object","properties":{"id":{"type":"string"},"name":{"type":["string","null"]}},"required":["id","name"]},"name":{"type":["string","null"]},"masked":{"type":"boolean"},"words":{"type":"string"},"from":{"type":"string"}},"required":["assignmentId","residencyId","space","name","masked","words","from"]},"status":{"type":"object","properties":{"inUse":{"type":"boolean"},"because":{"type":["string","null"]},"at":{"type":["string","null"]}},"required":["inUse","because","at"]},"register":{"type":"object","properties":{"labels":{"type":"array","items":{"type":"object","properties":{"code":{"type":"string"},"point":{"type":"boolean"}},"required":["code","point"]}},"model":{"type":["string","null"]},"values":{"type":"array","items":{"type":"string"}},"upkeep":{"type":"array","items":{"type":"object","properties":{"id":{"type":"string","format":"uuid"},"kind":{"type":"string","enum":["check","service"]},"name":{"type":"string"},"due":{"type":"object","properties":{"state":{"type":"string","enum":["late","after_use","today","this_week","later","when_used"]},"on":{"type":["string","null"]},"at":{"type":["string","null"]},"lastDone":{"type":["string","null"]},"usedAt":{"type":["string","null"]}},"required":["state","on","at","lastDone","usedAt"]}},"required":["id","kind","name","due"]}}},"required":["labels","model","values","upkeep"]}},"required":["id","kind","kindLabel","label","serial","name","keptIn","for","recordedAgainst","placeId","retired","group","person","status","register"]}},"mayAdd":{"type":"boolean"},"kinds":{"type":"array","items":{"type":"object","properties":{"key":{"type":"string"},"label":{"type":"string"}},"required":["key","label"]}},"types":{"type":"array","items":{"type":"object","properties":{"key":{"type":"string"},"label":{"type":"string"},"group":{"type":"string"},"hint":{"type":"string"},"fields":{"type":"array","items":{"type":"object","properties":{"key":{"type":"string"},"label":{"type":"string"},"kind":{"type":"string","enum":["text","number","yes_no","choice","date"]},"required":{"type":"boolean"},"unit":{"type":"string"},"choices":{"type":"array","items":{"type":"string"}},"hint":{"type":"string"}},"required":["key","label","kind"]}},"modelFields":{"type":["array","null"],"items":{"type":"object","properties":{"key":{"type":"string"},"label":{"type":"string"},"kind":{"type":"string","enum":["text","number","yes_no","choice","date"]},"required":{"type":"boolean"},"unit":{"type":"string"},"choices":{"type":"array","items":{"type":"string"}},"hint":{"type":"string"}},"required":["key","label","kind"]}}},"required":["key","label","group","hint","fields","modelFields"]}},"groups":{"type":"array","items":{"type":"string"}},"usedMostHere":{"type":"array","items":{"type":"string"}}},"required":["place","spaces","publishedHash","assets","mayAdd","kinds","types","groups","usedMostHere"]},"AddingAnAsset":{"type":"object","properties":{"place":{"type":"object","properties":{"id":{"type":"string","format":"uuid"},"name":{"type":"string"}},"required":["id","name"]},"spaces":{"type":"array","items":{"type":"object","properties":{"id":{"type":"string"},"name":{"type":"string"},"storey":{"type":["string","null"]}},"required":["id","name","storey"]}},"type":{"type":"object","properties":{"key":{"type":"string"},"label":{"type":"string"},"group":{"type":"string"},"hint":{"type":"string"},"fields":{"type":"array","items":{"type":"object","properties":{"key":{"type":"string"},"label":{"type":"string"},"kind":{"type":"string","enum":["text","number","yes_no","choice","date"]},"required":{"type":"boolean"},"unit":{"type":"string"},"choices":{"type":"array","items":{"type":"string"}},"hint":{"type":"string"}},"required":["key","label","kind"]}},"modelFields":{"type":["array","null"],"items":{"type":"object","properties":{"key":{"type":"string"},"label":{"type":"string"},"kind":{"type":"string","enum":["text","number","yes_no","choice","date"]},"required":{"type":"boolean"},"unit":{"type":"string"},"choices":{"type":"array","items":{"type":"string"}},"hint":{"type":"string"}},"required":["key","label","kind"]}}},"required":["key","label","group","hint","fields","modelFields"]},"models":{"type":"array","items":{"type":"object","properties":{"id":{"type":"string","format":"uuid"},"name":{"type":"string"},"maker":{"type":["string","null"]}},"required":["id","name","maker"]}},"suggestions":{"type":"array","items":{"type":"object","properties":{"key":{"type":"string"},"label":{"type":"string"},"kind":{"type":"string","enum":["check","service"]},"every":{"type":["object","null"],"properties":{"n":{"type":"integer"},"unit":{"type":"string","enum":["hour","day","week","month","year"]}},"required":["n","unit"]},"afterUse":{"type":"boolean"},"lines":{"type":"array","items":{"type":"string"}},"source":{"type":["string","null"]}},"required":["key","label","kind","every","afterUse","lines","source"]}},"checklists":{"type":"array","items":{"type":"object","properties":{"id":{"type":"string","format":"uuid"},"version":{"type":"integer"},"kind":{"type":"string"},"kindLabel":{"type":"string"},"name":{"type":"string"},"lines":{"type":"integer"},"fromPoint":{"type":"boolean"}},"required":["id","version","kind","kindLabel","name","lines","fromPoint"]}},"competences":{"type":"array","items":{"type":"object","properties":{"key":{"type":"string"},"label":{"type":"string"}},"required":["key","label"]}}},"required":["place","spaces","type","models","suggestions","checklists","competences"]},"WhomAnAssetMayBeFor":{"type":"object","properties":{"people":{"type":"array","items":{"type":"object","properties":{"residencyId":{"type":"string","format":"uuid"},"words":{"type":"string"},"space":{"type":"object","properties":{"id":{"type":"string"},"name":{"type":["string","null"]}},"required":["id","name"]}},"required":["residencyId","words","space"]}},"hidden":{"type":"integer"}},"required":["people","hidden"]},"AssetInTheRegister":{"type":"object","properties":{"id":{"type":"string","format":"uuid"},"kind":{"type":"string"},"kindLabel":{"type":"string"},"label":{"type":["string","null"]},"serial":{"type":["string","null"]},"name":{"type":"string"},"keptIn":{"type":"object","properties":{"id":{"type":"string"},"name":{"type":["string","null"]}},"required":["id","name"]},"for":{"type":"array","items":{"type":"object","properties":{"id":{"type":"string"},"name":{"type":["string","null"]}},"required":["id","name"]}},"recordedAgainst":{"type":"object","properties":{"hash":{"type":"string"},"version":{"type":["integer","null"]},"current":{"type":"boolean"}},"required":["hash","version","current"]},"placeId":{"type":"string","format":"uuid"},"retired":{"type":["object","null"],"properties":{"at":{"type":"string"},"reason":{"type":"string"}},"required":["at","reason"]},"group":{"type":"string"},"person":{"type":["object","null"],"properties":{"assignmentId":{"type":"string","format":"uuid"},"residencyId":{"type":"string","format":"uuid"},"space":{"type":"object","properties":{"id":{"type":"string"},"name":{"type":["string","null"]}},"required":["id","name"]},"name":{"type":["string","null"]},"masked":{"type":"boolean"},"words":{"type":"string"},"from":{"type":"string"}},"required":["assignmentId","residencyId","space","name","masked","words","from"]},"status":{"type":"object","properties":{"inUse":{"type":"boolean"},"because":{"type":["string","null"]},"at":{"type":["string","null"]}},"required":["inUse","because","at"]},"place":{"type":"object","properties":{"id":{"type":"string","format":"uuid"},"name":{"type":"string"}},"required":["id","name"]},"spaces":{"type":"array","items":{"type":"object","properties":{"id":{"type":"string"},"name":{"type":"string"},"storey":{"type":["string","null"]}},"required":["id","name","storey"]}},"mayUpdate":{"type":"boolean"},"type":{"type":["object","null"],"properties":{"key":{"type":"string"},"label":{"type":"string"},"group":{"type":"string"},"hint":{"type":"string"},"fields":{"type":"array","items":{"type":"object","properties":{"key":{"type":"string"},"label":{"type":"string"},"kind":{"type":"string","enum":["text","number","yes_no","choice","date"]},"required":{"type":"boolean"},"unit":{"type":"string"},"choices":{"type":"array","items":{"type":"string"}},"hint":{"type":"string"}},"required":["key","label","kind"]}},"modelFields":{"type":["array","null"],"items":{"type":"object","properties":{"key":{"type":"string"},"label":{"type":"string"},"kind":{"type":"string","enum":["text","number","yes_no","choice","date"]},"required":{"type":"boolean"},"unit":{"type":"string"},"choices":{"type":"array","items":{"type":"string"}},"hint":{"type":"string"}},"required":["key","label","kind"]}}},"required":["key","label","group","hint","fields","modelFields"]},"values":{"type":"array","items":{"type":"object","properties":{"key":{"type":"string"},"label":{"type":"string"},"kind":{"type":"string"},"value":{"anyOf":[{"type":"string"},{"type":"number"},{"type":"boolean"}]},"words":{"type":"string"}},"required":["key","label","kind","value","words"]}},"providedBy":{"type":["string","null"]},"inUseSince":{"type":["string","null"]},"model":{"type":["object","null"],"properties":{"id":{"type":"string","format":"uuid"},"name":{"type":"string"},"maker":{"type":["string","null"]},"values":{"type":"array","items":{"type":"object","properties":{"key":{"type":"string"},"label":{"type":"string"},"kind":{"type":"string"},"value":{"anyOf":[{"type":"string"},{"type":"number"},{"type":"boolean"}]},"words":{"type":"string"}},"required":["key","label","kind","value","words"]}}},"required":["id","name","maker","values"]},"models":{"type":"array","items":{"type":"object","properties":{"id":{"type":"string","format":"uuid"},"name":{"type":"string"},"maker":{"type":["string","null"]}},"required":["id","name","maker"]}},"labels":{"type":"array","items":{"type":"object","properties":{"id":{"type":"string","format":"uuid"},"code":{"type":"string"},"whose":{"type":"string"},"point":{"type":"boolean"},"shopBarcode":{"type":"boolean"},"warning":{"type":["string","null"]},"addedAt":{"type":"string"},"ended":{"type":["object","null"],"properties":{"at":{"type":"string"},"because":{"type":"string"}},"required":["at","because"]}},"required":["id","code","whose","point","shopBarcode","warning","addedAt","ended"]}},"files":{"type":"array","items":{"type":"object","properties":{"id":{"type":"string","format":"uuid"},"kind":{"type":"string","enum":["photo","document"]},"filename":{"type":["string","null"]},"mediaType":{"type":"string"},"madeAt":{"type":"string"}},"required":["id","kind","filename","mediaType","madeAt"]}},"history":{"type":"array","items":{"type":"object","properties":{"at":{"type":"string"},"words":{"type":"string"},"by":{"type":["string","null"]}},"required":["at","words","by"]}},"warnings":{"type":"array","items":{"type":"string"}},"upkeep":{"type":"array","items":{"$ref":"#/components/schemas/AssetCheckOrService"}},"suggestions":{"type":"array","items":{"type":"object","properties":{"key":{"type":"string"},"label":{"type":"string"},"kind":{"type":"string","enum":["check","service"]},"every":{"type":["object","null"],"properties":{"n":{"type":"integer"},"unit":{"type":"string","enum":["hour","day","week","month","year"]}},"required":["n","unit"]},"afterUse":{"type":"boolean"},"lines":{"type":"array","items":{"type":"string"}},"source":{"type":["string","null"]}},"required":["key","label","kind","every","afterUse","lines","source"]}},"checklists":{"type":"array","items":{"type":"object","properties":{"id":{"type":"string","format":"uuid"},"version":{"type":"integer"},"kind":{"type":"string"},"kindLabel":{"type":"string"},"name":{"type":"string"},"lines":{"type":"integer"},"fromPoint":{"type":"boolean"}},"required":["id","version","kind","kindLabel","name","lines","fromPoint"]}},"competences":{"type":"array","items":{"type":"object","properties":{"key":{"type":"string"},"label":{"type":"string"}},"required":["key","label"]}},"checks":{"type":"array","items":{"type":"object","properties":{"id":{"type":"string","format":"uuid"},"upkeepName":{"type":"string"},"doneAt":{"type":"string"},"by":{"type":["string","null"]},"problems":{"type":"integer"},"found":{"type":"integer"}},"required":["id","upkeepName","doneAt","by","problems","found"]}},"lastUse":{"type":["object","null"],"properties":{"at":{"type":"string"},"by":{"type":["string","null"]}},"required":["at","by"]},"mayCheck":{"type":"boolean"}},"required":["id","kind","kindLabel","label","serial","name","keptIn","for","recordedAgainst","placeId","retired","group","person","status","place","spaces","mayUpdate","type","values","providedBy","inUseSince","model","models","labels","files","history","warnings","upkeep","suggestions","checklists","competences","checks","lastUse","mayCheck"]},"AssetCheckOrService":{"type":"object","properties":{"id":{"type":"string","format":"uuid"},"version":{"type":"integer"},"kind":{"type":"string","enum":["check","service"]},"name":{"type":"string"},"fromSuggestion":{"type":["string","null"]},"every":{"type":["object","null"],"properties":{"n":{"type":"integer"},"unit":{"type":"string","enum":["hour","day","week","month","year"]}},"required":["n","unit"]},"afterUse":{"type":"boolean"},"checklist":{"type":["object","null"],"properties":{"id":{"type":"string","format":"uuid"},"version":{"type":"integer"},"name":{"type":"string"},"lines":{"type":"integer"}},"required":["id","version","name","lines"]},"competence":{"type":["object","null"],"properties":{"value":{"type":"string"},"words":{"type":"string"},"staffing":{"type":"boolean"}},"required":["value","words","staffing"]},"countsAs":{"type":["object","null"],"properties":{"id":{"type":"string","format":"uuid"},"name":{"type":"string"}},"required":["id","name"]},"source":{"type":"string","enum":["maker_manual","maker_schedule","own"]},"firstDue":{"type":["string","null"]},"agreed":{"type":"object","properties":{"by":{"type":["string","null"]},"at":{"type":"string"}},"required":["by","at"]},"due":{"type":"object","properties":{"state":{"type":"string","enum":["late","after_use","today","this_week","later","when_used"]},"on":{"type":["string","null"]},"at":{"type":["string","null"]},"lastDone":{"type":["string","null"]},"usedAt":{"type":["string","null"]}},"required":["state","on","at","lastDone","usedAt"]},"lastCheck":{"type":["object","null"],"properties":{"id":{"type":"string","format":"uuid"},"at":{"type":"string"},"by":{"type":["string","null"]},"problems":{"type":"integer"},"found":{"type":"integer"}},"required":["id","at","by","problems","found"]},"task":{"type":["object","null"],"properties":{"key":{"type":"string"},"title":{"type":"string"},"dueOn":{"type":"string"}},"required":["key","title","dueOn"]}},"required":["id","version","kind","name","fromSuggestion","every","afterUse","checklist","competence","countsAs","source","firstDue","agreed","due","lastCheck","task"]},"AddAssetToTheRegister":{"type":"object","properties":{"kind":{"type":"string","minLength":1,"maxLength":60,"example":"asset:evac-chair"},"label":{"type":"string","maxLength":200},"serial":{"type":"string","maxLength":200},"keptIn":{"type":"string","minLength":1,"maxLength":200},"for":{"type":"array","items":{"type":"string","minLength":1,"maxLength":200},"maxItems":200},"forPerson":{"type":"string","format":"uuid"},"values":{"type":"object","additionalProperties":{"anyOf":[{"type":"string","maxLength":500},{"type":"number"},{"type":"boolean"},{"type":"null"}]}},"modelId":{"type":"string","format":"uuid"},"newModel":{"type":"object","properties":{"name":{"type":"string","maxLength":200},"maker":{"type":"string","maxLength":200},"values":{"type":"object","additionalProperties":{"anyOf":[{"type":"string","maxLength":500},{"type":"number"},{"type":"boolean"},{"type":"null"}]}}},"required":["name"],"additionalProperties":false},"providedBy":{"type":"string","maxLength":400},"inUseSince":{"type":"string","maxLength":10},"assetLabel":{"anyOf":[{"type":"object","properties":{"point":{"type":"boolean","enum":[true]}},"required":["point"],"additionalProperties":false},{"type":"object","properties":{"code":{"type":"string","maxLength":200},"whose":{"type":"string","maxLength":200}},"required":["code","whose"],"additionalProperties":false}]},"authoredAgainst":{"type":"string","pattern":"^[0-9a-f]{64}$"},"upkeep":{"type":"array","items":{"type":"object","properties":{"fromSuggestion":{"type":"string","maxLength":60},"kind":{"type":"string","enum":["check","service"]},"name":{"type":"string","maxLength":200},"everyN":{"type":["integer","null"]},"everyUnit":{"type":["string","null"],"enum":["hour","day","week","month","year",null]},"afterUse":{"type":"boolean"},"checklistId":{"type":"string","format":"uuid"},"competence":{"type":["string","null"],"maxLength":200},"countsAs":{"type":["string","null"],"maxLength":60},"source":{"type":"string","enum":["maker_manual","maker_schedule","own"]},"firstDue":{"type":["string","null"],"maxLength":10},"agreed":{"type":"boolean","enum":[true]}},"required":["agreed"],"additionalProperties":false},"maxItems":20}},"required":["keptIn","for"],"additionalProperties":false},"AssetFoundByLabel":{"type":"object","properties":{"assetId":{"type":"string","format":"uuid"}},"required":["assetId"]},"RelabelAsset":{"type":"object","properties":{"label":{"type":"string","maxLength":200},"serial":{"type":"string","maxLength":200}},"additionalProperties":false},"MoveAsset":{"type":"object","properties":{"keptIn":{"type":"string","minLength":1,"maxLength":200}},"required":["keptIn"],"additionalProperties":false},"ReassignAsset":{"type":"object","properties":{"for":{"type":"array","items":{"type":"string","minLength":1,"maxLength":200},"maxItems":200}},"required":["for"],"additionalProperties":false},"AssetFor":{"oneOf":[{"type":"object","properties":{"kind":{"type":"string","enum":["nobody"]}},"required":["kind"],"additionalProperties":false},{"type":"object","properties":{"kind":{"type":"string","enum":["spaces"]},"spaces":{"type":"array","items":{"type":"string","minLength":1,"maxLength":200},"maxItems":200}},"required":["kind","spaces"],"additionalProperties":false},{"type":"object","properties":{"kind":{"type":"string","enum":["person"]},"residencyId":{"type":"string","format":"uuid"}},"required":["kind","residencyId"],"additionalProperties":false}]},"AssetDetails":{"type":"object","properties":{"values":{"type":"object","additionalProperties":{"anyOf":[{"type":"string","maxLength":500},{"type":"number"},{"type":"boolean"},{"type":"null"}]}},"providedBy":{"type":"string","maxLength":400},"inUseSince":{"type":"string","maxLength":10},"modelId":{"type":["string","null"],"format":"uuid"},"newModel":{"type":"object","properties":{"name":{"type":"string","maxLength":200},"maker":{"type":"string","maxLength":200},"values":{"type":"object","additionalProperties":{"anyOf":[{"type":"string","maxLength":500},{"type":"number"},{"type":"boolean"},{"type":"null"}]}}},"required":["name"],"additionalProperties":false}},"additionalProperties":false},"AssetModelValues":{"type":"object","properties":{"values":{"type":"object","additionalProperties":{"anyOf":[{"type":"string","maxLength":500},{"type":"number"},{"type":"boolean"},{"type":"null"}]}}},"required":["values"],"additionalProperties":false},"AssetLabel":{"anyOf":[{"type":"object","properties":{"point":{"type":"boolean","enum":[true]}},"required":["point"],"additionalProperties":false},{"type":"object","properties":{"code":{"type":"string","maxLength":200},"whose":{"type":"string","maxLength":200}},"required":["code","whose"],"additionalProperties":false}]},"AssetLabelEnded":{"type":"object","properties":{"because":{"type":"string","minLength":1,"maxLength":1000}},"required":["because"],"additionalProperties":false},"AssetStatus":{"type":"object","properties":{"because":{"type":"string","maxLength":1000}},"additionalProperties":false},"RetireAsset":{"type":"object","properties":{"reason":{"type":"string","minLength":1,"maxLength":1000}},"required":["reason"],"additionalProperties":false},"AssetUploadStart":{"type":"object","properties":{"mediaType":{"type":"string","maxLength":200},"size":{"type":"integer","exclusiveMinimum":0}},"required":["mediaType","size"],"additionalProperties":false},"AssetFileMade":{"type":"object","properties":{"id":{"type":"string","format":"uuid"}},"required":["id"]},"AssetUploadComplete":{"type":"object","properties":{"filename":{"type":"string","maxLength":1000},"kind":{"type":"string","enum":["photo","document"]}},"required":["filename","kind"],"additionalProperties":false},"WhatIsDueInAPlace":{"type":"object","properties":{"place":{"type":"object","properties":{"id":{"type":"string","format":"uuid"},"name":{"type":"string"}},"required":["id","name"]},"assets":{"type":"array","items":{"type":"object","properties":{"id":{"type":"string","format":"uuid"},"name":{"type":"string"},"keptIn":{"type":["string","null"]},"labels":{"type":"array","items":{"type":"string"}},"inUse":{"type":"boolean"},"upkeep":{"type":"array","items":{"allOf":[{"$ref":"#/components/schemas/AssetCheckOrService"},{"type":"object","properties":{"lines":{"type":["array","null"],"items":{"type":"string"}},"problems":{"type":["array","null"],"items":{"type":"string"}}},"required":["lines","problems"]}]}}},"required":["id","name","keptIn","labels","inUse","upkeep"]}}},"required":["place","assets"]},"AnAssetPlacesChecklists":{"type":"object","properties":{"place":{"type":"object","properties":{"id":{"type":"string","format":"uuid"},"name":{"type":"string"}},"required":["id","name"]},"checklists":{"type":"array","items":{"type":"object","properties":{"id":{"type":"string","format":"uuid"},"version":{"type":"integer"},"kind":{"type":"string"},"kindLabel":{"type":"string"},"name":{"type":"string"},"lines":{"type":"integer"},"fromPoint":{"type":"boolean"}},"required":["id","version","kind","kindLabel","name","lines","fromPoint"]}},"mayAdd":{"type":"boolean"}},"required":["place","checklists","mayAdd"]},"AnAssetPlacesChecklist":{"type":"object","properties":{"id":{"type":"string","format":"uuid"},"version":{"type":"integer"},"kind":{"type":"string"},"kindLabel":{"type":"string"},"name":{"type":"string"},"lines":{"type":"integer"},"fromPoint":{"type":"boolean"},"place":{"type":"object","properties":{"id":{"type":"string","format":"uuid"},"name":{"type":"string"}},"required":["id","name"]},"lineTexts":{"type":"array","items":{"type":"string"}},"problems":{"type":"array","items":{"type":"string"}},"madeAt":{"type":"string"},"madeBy":{"type":["string","null"]},"versions":{"type":"array","items":{"type":"object","properties":{"version":{"type":"integer"},"madeAt":{"type":"string"},"madeBy":{"type":["string","null"]}},"required":["version","madeAt","madeBy"]}},"points":{"type":["object","null"],"properties":{"lines":{"type":"array","items":{"type":"string"}},"problems":{"type":"array","items":{"type":"string"}},"catalogueVersion":{"type":"integer"}},"required":["lines","problems","catalogueVersion"]},"usedFor":{"type":"array","items":{"type":"object","properties":{"id":{"type":"string","format":"uuid"},"name":{"type":"string"}},"required":["id","name"]}},"mayChange":{"type":"boolean"}},"required":["id","version","kind","kindLabel","name","lines","fromPoint","place","lineTexts","problems","madeAt","madeBy","versions","points","usedFor","mayChange"]},"MakeAChecklist":{"type":"object","properties":{"kind":{"type":"string","minLength":1,"maxLength":60},"name":{"type":"string","maxLength":200},"lines":{"type":"array","items":{"type":"string","maxLength":400},"maxItems":100},"problems":{"type":"array","items":{"type":"string","maxLength":200},"maxItems":50}},"required":["kind","name","lines","problems"],"additionalProperties":false},"SaveAChecklist":{"type":"object","properties":{"from":{"type":"integer","minimum":1},"name":{"type":"string","maxLength":200},"lines":{"type":"array","items":{"type":"string","maxLength":400},"maxItems":100},"problems":{"type":"array","items":{"type":"string","maxLength":200},"maxItems":50}},"required":["from","lines","problems"],"additionalProperties":false},"CheckOrServiceAgreed":{"type":"object","properties":{"upkeepId":{"type":"string","format":"uuid"},"version":{"type":"integer"}},"required":["upkeepId","version"]},"AgreeACheckOrService":{"type":"object","properties":{"upkeepId":{"type":"string","format":"uuid"},"fromSuggestion":{"type":"string","maxLength":60},"kind":{"type":"string","enum":["check","service"]},"name":{"type":"string","maxLength":200},"everyN":{"type":["integer","null"]},"everyUnit":{"type":["string","null"],"enum":["hour","day","week","month","year",null]},"afterUse":{"type":"boolean"},"checklistId":{"type":"string","format":"uuid"},"competence":{"type":["string","null"],"maxLength":200},"countsAs":{"type":["string","null"],"maxLength":60},"source":{"type":"string","enum":["maker_manual","maker_schedule","own"]},"firstDue":{"type":["string","null"],"maxLength":10},"agreed":{"type":"boolean","enum":[true]}},"required":["agreed"],"additionalProperties":false},"DoingACheck":{"type":"object","properties":{"asset":{"type":"object","properties":{"id":{"type":"string","format":"uuid"},"name":{"type":"string"},"keptIn":{"type":["string","null"]},"place":{"type":"object","properties":{"id":{"type":"string","format":"uuid"},"name":{"type":"string"}},"required":["id","name"]},"person":{"type":["object","null"],"properties":{"assignmentId":{"type":"string","format":"uuid"},"residencyId":{"type":"string","format":"uuid"},"space":{"type":"object","properties":{"id":{"type":"string"},"name":{"type":["string","null"]}},"required":["id","name"]},"name":{"type":["string","null"]},"masked":{"type":"boolean"},"words":{"type":"string"},"from":{"type":"string"}},"required":["assignmentId","residencyId","space","name","masked","words","from"]},"kindLabel":{"type":"string"},"inUse":{"type":"boolean"}},"required":["id","name","keptIn","place","person","kindLabel","inUse"]},"upkeep":{"type":"object","properties":{"id":{"type":"string","format":"uuid"},"version":{"type":"integer"},"name":{"type":"string"}},"required":["id","version","name"]},"checklist":{"type":"object","properties":{"id":{"type":"string","format":"uuid"},"version":{"type":"integer"},"name":{"type":"string"},"lines":{"type":"array","items":{"type":"string"}},"problems":{"type":"array","items":{"type":"string"}}},"required":["id","version","name","lines","problems"]},"competence":{"type":"object","properties":{"needed":{"type":["string","null"]},"words":{"type":"string"}},"required":["needed","words"]},"signer":{"type":"string"}},"required":["asset","upkeep","checklist","competence","signer"]},"AssetUsed":{"type":"object","properties":{"id":{"type":"string","format":"uuid"},"at":{"type":"string"}},"required":["id","at"]},"ASignedCheck":{"type":"object","properties":{"id":{"type":"string","format":"uuid"},"asset":{"type":"object","properties":{"id":{"type":"string","format":"uuid"},"name":{"type":"string"},"keptIn":{"type":["string","null"]},"place":{"type":"object","properties":{"id":{"type":"string","format":"uuid"},"name":{"type":"string"}},"required":["id","name"]},"person":{"type":["object","null"],"properties":{"assignmentId":{"type":"string","format":"uuid"},"residencyId":{"type":"string","format":"uuid"},"space":{"type":"object","properties":{"id":{"type":"string"},"name":{"type":["string","null"]}},"required":["id","name"]},"name":{"type":["string","null"]},"masked":{"type":"boolean"},"words":{"type":"string"},"from":{"type":"string"}},"required":["assignmentId","residencyId","space","name","masked","words","from"]}},"required":["id","name","keptIn","place","person"]},"upkeep":{"type":"object","properties":{"id":{"type":"string","format":"uuid"},"version":{"type":"integer"},"name":{"type":"string"}},"required":["id","version","name"]},"checklist":{"type":"object","properties":{"id":{"type":"string","format":"uuid"},"version":{"type":"integer"},"name":{"type":"string"},"madeAt":{"type":"string"}},"required":["id","version","name","madeAt"]},"answers":{"type":"array","items":{"type":"object","properties":{"line":{"type":"string"},"answer":{"type":"string","enum":["ok","problem"]},"problem":{"type":["string","null"]},"words":{"type":["string","null"]},"photos":{"type":"array","items":{"type":"string"}},"hidden":{"type":"boolean"},"taskKey":{"type":["string","null"]}},"required":["line","answer","problem","words","photos","hidden","taskKey"]}},"found":{"type":"array","items":{"type":"object","properties":{"words":{"type":["string","null"]},"photos":{"type":"array","items":{"type":"string"}},"hidden":{"type":"boolean"},"taskKey":{"type":["string","null"]}},"required":["words","photos","hidden","taskKey"]}},"doneAt":{"type":"string"},"receivedAt":{"type":"string"},"apart":{"type":"boolean"},"device":{"type":"string"},"signedHow":{"type":"string","enum":["tick"]},"signedBy":{"type":"string"},"competence":{"type":"object","properties":{"needed":{"type":["string","null"]},"words":{"type":"string"}},"required":["needed","words"]},"tookOutOfUse":{"type":"boolean"},"problems":{"type":"integer"},"notes":{"type":"array","items":{"type":"object","properties":{"id":{"type":"string","format":"uuid"},"words":{"type":["string","null"]},"erased":{"type":"boolean"},"hidden":{"type":"boolean"},"at":{"type":"string"},"by":{"type":["string","null"]}},"required":["id","words","erased","hidden","at","by"]}},"mayNote":{"type":"boolean"}},"required":["id","asset","upkeep","checklist","answers","found","doneAt","receivedAt","apart","device","signedHow","signedBy","competence","tookOutOfUse","problems","notes","mayNote"]},"SignACheck":{"type":"object","properties":{"id":{"type":"string","format":"uuid"},"upkeepId":{"type":"string","format":"uuid"},"checklistVersion":{"type":"integer","minimum":1},"answers":{"type":"array","items":{"type":"object","properties":{"answer":{"type":"string","enum":["ok","problem"]},"problem":{"type":["string","null"],"maxLength":200},"words":{"type":["string","null"],"maxLength":4000},"photos":{"type":"array","items":{"type":"string","format":"uuid"},"maxItems":20}},"required":["answer"],"additionalProperties":false},"minItems":1,"maxItems":100},"found":{"type":"array","items":{"type":"object","properties":{"words":{"type":["string","null"],"maxLength":4000},"photos":{"type":"array","items":{"type":"string","format":"uuid"},"maxItems":20}},"additionalProperties":false},"maxItems":40},"doneAt":{"type":"string","maxLength":40},"device":{"type":"string","maxLength":400},"signedHow":{"type":"string","enum":["tick"]},"takeOutOfUse":{"type":"boolean"}},"required":["id","upkeepId","checklistVersion","answers","doneAt","device","signedHow"],"additionalProperties":false},"NoteOnACheck":{"type":"object","properties":{"words":{"type":"string","maxLength":4000}},"required":["words"],"additionalProperties":false},"CheckPhotoUploadStart":{"type":"object","properties":{"mediaType":{"type":"string","maxLength":200},"size":{"type":"integer","exclusiveMinimum":0}},"required":["mediaType","size"],"additionalProperties":false},"CheckPhotoKept":{"type":"object","properties":{"mediaId":{"type":"string","format":"uuid"}},"required":["mediaId"]},"AssetSettings":{"type":"object","properties":{"remindChecks":{"type":"boolean"},"stated":{"type":"boolean"},"mayUpdate":{"type":"boolean"}},"required":["remindChecks","stated","mayUpdate"]},"SetAssetSettings":{"type":"object","properties":{"remindChecks":{"type":"boolean"}},"required":["remindChecks"],"additionalProperties":false},"Boards":{"type":"object","properties":{"against":{"type":["string","null"]},"boards":{"type":"array","items":{"type":"object","properties":{"board":{"type":"string"},"category":{"type":"string"},"origin":{"type":"string"},"hidden":{"type":"integer","minimum":0},"against":{"type":"string"},"pegs":{"type":"array","items":{"type":"object","properties":{"id":{"type":"string"},"level":{"type":"string","enum":["red","amber","green"]}},"required":["id","level"]}}},"required":["board","against","pegs"]}},"red":{"type":"object","additionalProperties":{"type":"integer","minimum":0}},"origins":{"type":"array","items":{"type":"string"}},"categories":{"type":"array","items":{"type":"object","properties":{"category":{"type":"string"},"words":{"type":"string"}},"required":["category","words"]}},"assessmentExists":{"type":"array","items":{"type":"string"}}},"required":["against","boards","red","origins","categories","assessmentExists"]},"SpaceRecords":{"type":"object","properties":{"spaces":{"type":"array","items":{"type":"object","properties":{"spaceId":{"type":"string"},"name":{"type":["string","null"]},"withdrawn":{"type":["boolean","null"]},"people":{"type":"integer","minimum":0},"risks":{"type":"object","properties":{"red":{"type":"integer","minimum":0},"amber":{"type":"integer","minimum":0},"green":{"type":"integer","minimum":0}},"required":["red","amber","green"]},"assets":{"type":"integer","minimum":0},"rcos":{"type":"integer","minimum":0},"guests":{"type":"integer","minimum":0},"words":{"type":"string","example":"1 person · 1 red risk"}},"required":["spaceId","name","withdrawn","people","risks","assets","rcos","guests","words"]}}},"required":["spaces"]},"RisksHere":{"type":"object","properties":{"place":{"type":"object","properties":{"id":{"type":"string","format":"uuid"},"name":{"type":"string"}},"required":["id","name"]},"spaces":{"type":"array","items":{"type":"object","properties":{"id":{"type":"string"},"name":{"type":"string"},"storey":{"type":["string","null"]}},"required":["id","name","storey"]}},"statuses":{"type":"array","items":{"type":"object","properties":{"id":{"type":"string","format":"uuid"},"origin":{"type":"string","enum":["assessed"]},"assessed":{"type":["object","null"],"properties":{"status":{"type":"string"},"words":{"type":"string"},"signedOn":{"type":["string","null"]},"handle":{"type":"string","format":"uuid"}},"required":["status","words","signedOn","handle"]},"processRecordId":{"type":["string","null"],"format":"uuid"},"kind":{"type":["object","null"],"properties":{"id":{"type":"string"},"words":{"type":"string"},"board":{"type":"string"},"category":{"type":["string","null"]},"categoryWords":{"type":["string","null"]},"considerations":{"type":"array","items":{"type":"string"}},"sharing":{"type":"string"},"stage":{"type":"string"}},"required":["id","words","board","category","categoryWords","considerations","sharing","stage"]},"boards":{"type":"array","items":{"type":"string"}},"consideration":{"type":["string","null"]},"subject":{"type":"object","properties":{"kind":{"type":"string","enum":["space","person","residency"]},"spaceId":{"type":["string","null"]},"personId":{"type":["string","null"],"format":"uuid"},"residencyId":{"type":["string","null"],"format":"uuid"},"label":{"type":"string"}},"required":["kind","spaceId","personId","residencyId","label"]},"level":{"type":"string"},"levelWord":{"type":"string"},"set":{"type":"object","properties":{"at":{"type":"string"},"by":{"type":"object","properties":{"id":{"type":"string","format":"uuid"},"display":{"type":"string"}},"required":["id","display"]}},"required":["at","by"]},"latest":{"type":"object","properties":{"id":{"type":"string","format":"uuid"},"act":{"type":"string","enum":["set","raised","lowered","ended"]},"level":{"type":["string","null"]},"source":{"type":"string"},"sourceLabel":{"type":"string"},"reviewOn":{"type":["string","null"]},"at":{"type":"string"},"by":{"type":"object","properties":{"id":{"type":"string","format":"uuid"},"display":{"type":"string"}},"required":["id","display"]}},"required":["id","act","level","source","sourceLabel","reviewOn","at","by"]},"reviewOn":{"type":"string"},"overdue":{"type":"boolean"},"appliesTo":{"type":"array","items":{"type":"string"}}},"required":["id","origin","assessed","processRecordId","kind","boards","consideration","subject","level","levelWord","set","latest","reviewOn","overdue","appliesTo"]}},"effective":{"type":"object","additionalProperties":{"type":"string"}}},"required":["place","spaces","statuses","effective"]},"ResidencyRisks":{"type":"object","properties":{"residency":{"type":"object","properties":{"id":{"type":"string","format":"uuid"},"personId":{"type":"string","format":"uuid"},"placeId":{"type":"string","format":"uuid"},"spaceId":{"type":"string"},"current":{"type":"boolean"}},"required":["id","personId","placeId","spaceId","current"]},"statuses":{"type":"array","items":{"type":"object","properties":{"id":{"type":"string","format":"uuid"},"origin":{"type":"string","enum":["assessed"]},"assessed":{"type":["object","null"],"properties":{"status":{"type":"string"},"words":{"type":"string"},"signedOn":{"type":["string","null"]},"handle":{"type":"string","format":"uuid"}},"required":["status","words","signedOn","handle"]},"processRecordId":{"type":["string","null"],"format":"uuid"},"kind":{"type":["object","null"],"properties":{"id":{"type":"string"},"words":{"type":"string"},"board":{"type":"string"},"category":{"type":["string","null"]},"categoryWords":{"type":["string","null"]},"considerations":{"type":"array","items":{"type":"string"}},"sharing":{"type":"string"},"stage":{"type":"string"}},"required":["id","words","board","category","categoryWords","considerations","sharing","stage"]},"boards":{"type":"array","items":{"type":"string"}},"consideration":{"type":["string","null"]},"subject":{"type":"object","properties":{"kind":{"type":"string","enum":["space","person","residency"]},"spaceId":{"type":["string","null"]},"personId":{"type":["string","null"],"format":"uuid"},"residencyId":{"type":["string","null"],"format":"uuid"},"label":{"type":"string"}},"required":["kind","spaceId","personId","residencyId","label"]},"level":{"type":"string"},"levelWord":{"type":"string"},"set":{"type":"object","properties":{"at":{"type":"string"},"by":{"type":"object","properties":{"id":{"type":"string","format":"uuid"},"display":{"type":"string"}},"required":["id","display"]}},"required":["at","by"]},"latest":{"type":"object","properties":{"id":{"type":"string","format":"uuid"},"act":{"type":"string","enum":["set","raised","lowered","ended"]},"level":{"type":["string","null"]},"source":{"type":"string"},"sourceLabel":{"type":"string"},"reviewOn":{"type":["string","null"]},"at":{"type":"string"},"by":{"type":"object","properties":{"id":{"type":"string","format":"uuid"},"display":{"type":"string"}},"required":["id","display"]}},"required":["id","act","level","source","sourceLabel","reviewOn","at","by"]},"reviewOn":{"type":"string"},"overdue":{"type":"boolean"},"appliesTo":{"type":"array","items":{"type":"string"}},"reason":{"type":["string","null"]}},"required":["id","origin","assessed","processRecordId","kind","boards","consideration","subject","level","levelWord","set","latest","reviewOn","overdue","appliesTo","reason"]}}},"required":["residency","statuses"]},"Risk":{"type":"object","properties":{"id":{"type":"string","format":"uuid"},"origin":{"type":"string","enum":["assessed"]},"assessed":{"type":["object","null"],"properties":{"status":{"type":"string"},"words":{"type":"string"},"signedOn":{"type":["string","null"]},"handle":{"type":"string","format":"uuid"}},"required":["status","words","signedOn","handle"]},"processRecordId":{"type":["string","null"],"format":"uuid"},"kind":{"type":["object","null"],"properties":{"id":{"type":"string"},"words":{"type":"string"},"board":{"type":"string"},"category":{"type":["string","null"]},"categoryWords":{"type":["string","null"]},"considerations":{"type":"array","items":{"type":"string"}},"sharing":{"type":"string"},"stage":{"type":"string"}},"required":["id","words","board","category","categoryWords","considerations","sharing","stage"]},"boards":{"type":"array","items":{"type":"string"}},"consideration":{"type":["string","null"]},"subject":{"type":"object","properties":{"kind":{"type":"string","enum":["space","person","residency"]},"spaceId":{"type":["string","null"]},"personId":{"type":["string","null"],"format":"uuid"},"residencyId":{"type":["string","null"],"format":"uuid"},"label":{"type":"string"}},"required":["kind","spaceId","personId","residencyId","label"]},"level":{"type":"string"},"levelWord":{"type":"string"},"set":{"type":"object","properties":{"at":{"type":"string"},"by":{"type":"object","properties":{"id":{"type":"string","format":"uuid"},"display":{"type":"string"}},"required":["id","display"]}},"required":["at","by"]},"latest":{"type":"object","properties":{"id":{"type":"string","format":"uuid"},"act":{"type":"string","enum":["set","raised","lowered","ended"]},"level":{"type":["string","null"]},"source":{"type":"string"},"sourceLabel":{"type":"string"},"reviewOn":{"type":["string","null"]},"at":{"type":"string"},"by":{"type":"object","properties":{"id":{"type":"string","format":"uuid"},"display":{"type":"string"}},"required":["id","display"]}},"required":["id","act","level","source","sourceLabel","reviewOn","at","by"]},"reviewOn":{"type":"string"},"overdue":{"type":"boolean"},"appliesTo":{"type":"array","items":{"type":"string"}},"place":{"type":"object","properties":{"id":{"type":"string","format":"uuid"},"name":{"type":"string"}},"required":["id","name"]},"ended":{"type":"boolean"},"entries":{"type":"array","items":{"type":"object","properties":{"id":{"type":"string","format":"uuid"},"act":{"type":"string","enum":["set","raised","lowered","ended"]},"level":{"type":["string","null"]},"source":{"type":"string"},"sourceLabel":{"type":"string"},"reviewOn":{"type":["string","null"]},"at":{"type":"string"},"by":{"type":"object","properties":{"id":{"type":"string","format":"uuid"},"display":{"type":"string"}},"required":["id","display"]},"reason":{"type":["string","null"]},"consideration":{"type":["string","null"]}},"required":["id","act","level","source","sourceLabel","reviewOn","at","by","reason","consideration"]}}},"required":["id","origin","assessed","processRecordId","kind","boards","consideration","subject","level","levelWord","set","latest","reviewOn","overdue","appliesTo","place","ended","entries"]},"RcoForm":{"type":"object","properties":{"placeId":{"type":"string","format":"uuid"},"place":{"type":"string"},"kinds":{"type":"array","items":{"type":"object","properties":{"key":{"type":"string"},"words":{"type":"string"},"says":{"type":"string"},"built":{"type":"boolean"},"offered":{"type":"boolean"},"seenTitle":{"type":"string"},"whereNote":{"type":["string","null"]},"mayBeTied":{"type":"boolean"}},"required":["key","words","says","built","offered","seenTitle","whereNote","mayBeTied"]}},"spaces":{"type":"array","items":{"type":"object","properties":{"id":{"type":"string"},"name":{"type":"string"},"storey":{"type":["string","null"]},"home":{"type":"boolean"},"people":{"type":"array","items":{"type":"object","properties":{"residencyId":{"type":"string"},"personId":{"type":"string"},"name":{"type":"string"},"rcos":{"type":"array","items":{"type":"object","properties":{"kind":{"type":"string"},"rcoId":{"type":"string"},"locked":{"type":"boolean"},"decidedOn":{"type":["string","null"]}},"required":["kind","rcoId","locked","decidedOn"]}},"plan":{"type":"object","properties":{"key":{"type":"string","enum":["none","open","signed-off","declined","closed"]},"handle":{"type":["string","null"]},"stage":{"type":["string","null"]},"on":{"type":["string","null"]}},"required":["key","handle","stage","on"]},"saidNo":{"type":"array","items":{"type":"object","properties":{"kind":{"type":"string"},"on":{"type":"string"}},"required":["kind","on"]}}},"required":["residencyId","personId","name","rcos","plan","saidNo"]}},"occupants":{"type":"array","items":{"type":"object","properties":{"occupant":{"type":"integer"},"rcoId":{"type":"string"},"kind":{"type":"string"}},"required":["occupant","rcoId","kind"]}},"nextOccupant":{"type":"integer"},"selfNumbered":{"type":"array","items":{"type":"integer"}},"places":{"type":"array","items":{"type":"object","properties":{"kind":{"type":"string"},"rcoId":{"type":"string"},"tiedTo":{"type":["string","null"]}},"required":["kind","rcoId","tiedTo"]}}},"required":["id","name","storey","home","people","occupants","nextOccupant","selfNumbered","places"]}},"existing":{"type":"object","additionalProperties":{"type":"object","properties":{"reasons":{"type":"array","items":{"type":"string"}},"considerations":{"type":"array","items":{"type":"string"}},"catalogue":{"type":"string"},"colour":{"type":["string","null"],"enum":["red","amber",null]},"exit":{"type":["object","null"],"properties":{"key":{"type":"string"},"until":{"type":["string","null"]},"why":{"type":["string","null"]}},"required":["key","until","why"]},"state":{"type":"string","enum":["waiting","cleared"]}},"required":["reasons","considerations","catalogue","colour","exit","state"]}},"start":{"type":"object","properties":{"from":{"type":"string","enum":["place","space","person","rco","stay"]},"node":{"type":["string","null"]},"at":{"type":["string","null"]},"kind":{"type":"string"},"spaceId":{"type":["string","null"]},"who":{"anyOf":[{"type":"object","properties":{"residencyId":{"type":"string"}},"required":["residencyId"]},{"type":"object","properties":{"occupant":{"type":"integer"}},"required":["occupant"]},{"type":"object","properties":{"stayId":{"type":"string"}},"required":["stayId"]},{"type":"null"}]},"rcoId":{"type":["string","null"]},"reasons":{"type":"array","items":{"type":"string"}},"considerations":{"type":"array","items":{"type":"string"}},"stay":{"type":["object","null"],"properties":{"id":{"type":"string"},"label":{"type":"string"},"from":{"type":"string"},"until":{"type":"string"},"sent":{"type":"boolean"},"much":{"type":"object","additionalProperties":{"type":"string","enum":["a-little","a-lot"]}},"sentBy":{"type":["object","null"],"properties":{"name":{"type":["string","null"]},"footing":{"type":"string"},"line":{"type":"string"}},"required":["name","footing","line"]}},"required":["id","label","from","until","sent","much","sentBy"]},"source":{"type":["string","null"]}},"required":["from","node","at","kind","spaceId","who","rcoId","reasons","considerations","stay","source"]},"choices":{"type":"object","properties":{"reasons":{"type":"object","additionalProperties":{"type":"array","items":{"type":"object","properties":{"value":{"type":"string"},"label":{"type":"string"}},"required":["value","label"]}}},"sources":{"type":"array","items":{"type":"object","properties":{"value":{"type":"string"},"label":{"type":"string"},"short":{"type":"string"}},"required":["value","label","short"]}},"colours":{"type":"object","additionalProperties":{"type":"array","items":{"type":"object","properties":{"value":{"type":"string","enum":["red","amber"]},"label":{"type":"string"},"reads":{"type":"string"}},"required":["value","label","reads"]}}},"exits":{"type":"array","items":{"type":"object","properties":{"value":{"type":"string"},"label":{"type":"string"},"does":{"type":"string"}},"required":["value","label","does"]}},"noneNeededWhy":{"type":"array","items":{"type":"object","properties":{"value":{"type":"string"},"label":{"type":"string"}},"required":["value","label"]}},"reviewMonths":{"type":"array","items":{"type":"integer"}},"defaultReviewMonths":{"type":"integer"},"standings":{"type":"array","items":{"type":"object","properties":{"value":{"type":"string"},"label":{"type":"string"}},"required":["value","label"]}},"catalogues":{"type":"array","items":{"type":"object","properties":{"version":{"type":"string"},"kinds":{"type":"object","additionalProperties":{"type":"object","properties":{"draft":{"type":"boolean"},"themes":{"type":"array","items":{"type":"object","properties":{"key":{"type":"string"},"words":{"type":"string"},"means":{"type":"string"},"from":{"type":["string","null"]},"isNew":{"type":"boolean"},"appliesTo":{"type":"array","items":{"type":"string"}},"considerations":{"type":"array","items":{"type":"object","properties":{"key":{"type":"string"},"words":{"type":"string"},"signed":{"type":"boolean"}},"required":["key","words","signed"]}}},"required":["key","words","means","from","isNew","appliesTo","considerations"]}}},"required":["draft","themes"]}}},"required":["version","kinds"]}},"catalogue":{"type":"string"}},"required":["reasons","sources","colours","exits","noneNeededWhy","reviewMonths","defaultReviewMonths","standings","catalogues","catalogue"]},"umbrella":{"type":"object","properties":{"says":{"type":"string"},"law":{"type":"string"}},"required":["says","law"]},"umbrellas":{"type":"object","additionalProperties":{"type":"object","properties":{"says":{"type":"string"},"law":{"type":"string"}},"required":["says","law"]}},"mayDecide":{"type":"boolean"},"you":{"type":"object","properties":{"id":{"type":"string"},"display":{"type":"string"}},"required":["id","display"]}},"required":["placeId","place","kinds","spaces","existing","start","choices","umbrella","umbrellas","mayDecide","you"]},"RecordedRco":{"type":"object","properties":{"rcoId":{"type":"string","format":"uuid"}},"required":["rcoId"]},"RecordRco":{"type":"object","properties":{"kind":{"type":"string","pattern":"^[a-z][a-z0-9:-]{0,60}$"},"spaceId":{"type":"string","minLength":1,"maxLength":200},"node":{"type":"string","pattern":"^[a-z][a-z0-9:-]{0,60}$"},"residencyId":{"type":"string","format":"uuid"},"occupant":{"type":"integer","minimum":1},"newOccupant":{"type":"boolean"},"rcoId":{"type":"string","format":"uuid"},"stayId":{"type":"string","format":"uuid"},"endsLocked":{"type":"string","format":"uuid"},"reasons":{"type":"array","items":{"type":"string","pattern":"^[a-z][a-z0-9:-]{0,60}$"},"maxItems":20},"considerations":{"type":"array","items":{"type":"string","pattern":"^[a-z][a-z-]{0,60}\\.[a-z][a-z-]{0,60}$"},"maxItems":40},"remove":{"type":"array","items":{"type":"string","pattern":"^[a-z][a-z0-9:-]{0,60}$"},"maxItems":20},"change":{"type":"array","items":{"type":"string","pattern":"^[a-z][a-z0-9:-]{0,60}$"},"maxItems":20},"source":{"type":"string","pattern":"^[a-z][a-z0-9:-]{0,60}$"},"note":{"type":"string","maxLength":2000},"notAccepted":{"type":"array","items":{"type":"string","format":"uuid"},"maxItems":20},"colour":{"type":"string","pattern":"^[a-z][a-z0-9:-]{0,60}$"},"exit":{"type":"object","properties":{"key":{"type":"string","pattern":"^[a-z][a-z0-9:-]{0,60}$"},"until":{"type":"string","pattern":"^\\d{4}-\\d{2}-\\d{2}$","example":"2026-11-19"},"why":{"type":"string","pattern":"^[a-z][a-z0-9:-]{0,60}$"}},"required":["key"],"additionalProperties":false},"decide":{"type":"object","properties":{"standing":{"type":"string","maxLength":80},"reviewMonths":{"type":"integer"},"restart":{"type":"boolean"}},"required":["standing"],"additionalProperties":false}},"required":["kind","spaceId","reasons","exit"],"additionalProperties":false},"RcosHere":{"type":"object","properties":{"items":{"type":"array","items":{"$ref":"#/components/schemas/Rco"}},"mayRecord":{"type":"boolean"},"space":{"type":["object","null"],"properties":{"id":{"type":"string"},"name":{"type":"string"},"storey":{"type":["string","null"]}},"required":["id","name","storey"]},"people":{"type":["integer","null"]},"read":{"type":["object","null"],"properties":{"space":{"type":"string"},"storey":{"type":["string","null"]},"headline":{"type":"string"},"occupants":{"type":"array","items":{"type":"object","properties":{"label":{"type":"string"},"observed":{"type":"array","items":{"type":"string"}},"consider":{"type":"array","items":{"type":"string"}}},"required":["label","observed","consider"]}},"obstructions":{"type":"array","items":{"type":"string"}},"obstructionsConsider":{"type":"array","items":{"type":"string"}},"dangers":{"type":"array","items":{"type":"string"}},"dangersConsider":{"type":"array","items":{"type":"string"}},"days":{"type":"array","items":{"type":"string"}},"by":{"type":["string","null"]},"waiting":{"type":"array","items":{"type":"string"}},"shared":{"type":"boolean"},"draft":{"type":"boolean"}},"required":["space","storey","headline","occupants","obstructions","obstructionsConsider","dangers","dangersConsider","days","by","waiting","shared","draft"]}},"required":["items","mayRecord","space","people","read"]},"Rco":{"type":"object","properties":{"id":{"type":"string","format":"uuid"},"placeId":{"type":"string","format":"uuid"},"place":{"type":"string"},"kind":{"type":"object","properties":{"key":{"type":"string"},"words":{"type":"string"}},"required":["key","words"]},"space":{"type":"object","properties":{"id":{"type":"string"},"name":{"type":"string"},"storey":{"type":["string","null"]}},"required":["id","name","storey"]},"scope":{"type":"string"},"who":{"anyOf":[{"type":"object","properties":{"kind":{"type":"string","enum":["person"]},"residencyId":{"type":"string"},"personId":{"type":"string"},"name":{"type":["string","null"]},"label":{"type":"string"}},"required":["kind","residencyId","personId","name","label"]},{"type":"object","properties":{"kind":{"type":"string","enum":["occupant"]},"occupant":{"type":"integer"},"label":{"type":"string"}},"required":["kind","occupant","label"]},{"type":"object","properties":{"kind":{"type":"string","enum":["space"]},"label":{"type":"string"},"tied":{"type":["object","null"],"properties":{"residencyId":{"type":"string"},"personId":{"type":"string"},"name":{"type":["string","null"]}},"required":["residencyId","personId","name"]}},"required":["kind","label","tied"]},{"type":"object","properties":{"kind":{"type":"string","enum":["guest"]},"stayId":{"type":"string"},"name":{"type":["string","null"]},"label":{"type":"string"}},"required":["kind","stayId","name","label"]}]},"eyebrow":{"type":"string"},"colour":{"type":["object","null"],"properties":{"key":{"type":"string","enum":["red","amber"]},"words":{"type":"string"},"reads":{"type":"string"}},"required":["key","words","reads"]},"reasons":{"type":"array","items":{"type":"object","properties":{"key":{"type":"string"},"words":{"type":"string"},"source":{"type":"object","properties":{"key":{"type":"string"},"words":{"type":"string"}},"required":["key","words"]},"on":{"type":"string"},"note":{"type":["string","null"]},"fromInterim":{"type":"boolean"}},"required":["key","words","source","on","note","fromInterim"]}},"lines":{"type":"array","items":{"type":"object","properties":{"id":{"type":"string","format":"uuid"},"n":{"type":"integer"},"key":{"type":"string"},"words":{"type":"string"},"considerations":{"type":"array","items":{"type":"object","properties":{"key":{"type":"string"},"words":{"type":"string"},"signed":{"type":"boolean"}},"required":["key","words","signed"]}},"source":{"type":"object","properties":{"key":{"type":"string"},"words":{"type":"string"}},"required":["key","words"]},"on":{"type":"string"},"by":{"type":"object","properties":{"id":{"type":"string"},"display":{"type":"string"}},"required":["id","display"]},"note":{"type":["string","null"]},"fromInterim":{"type":"boolean"},"state":{"type":"string","enum":["waiting","in-force","closed","replaced","not-accepted"]},"decided":{"type":["object","null"],"properties":{"on":{"type":"string"},"by":{"type":"object","properties":{"id":{"type":"string"},"display":{"type":"string"}},"required":["id","display"]}},"required":["on","by"]},"closing":{"type":["object","null"],"properties":{"id":{"type":"string","format":"uuid"},"on":{"type":"string"},"by":{"type":"object","properties":{"id":{"type":"string"},"display":{"type":"string"}},"required":["id","display"]},"decided":{"type":"boolean"},"reason":{"type":["string","null"]}},"required":["id","on","by","decided","reason"]},"replaces":{"type":["integer","null"]},"replacedBy":{"type":["object","null"],"properties":{"n":{"type":"integer"},"decided":{"type":"boolean"},"on":{"type":"string"}},"required":["n","decided","on"]},"notAccepted":{"type":["object","null"],"properties":{"on":{"type":"string"},"by":{"type":"object","properties":{"id":{"type":"string"},"display":{"type":"string"}},"required":["id","display"]}},"required":["on","by"]},"closesNotAccepted":{"type":"array","items":{"type":"object","properties":{"on":{"type":"string"},"by":{"type":"object","properties":{"id":{"type":"string"},"display":{"type":"string"}},"required":["id","display"]},"notAccepted":{"type":"object","properties":{"on":{"type":"string"},"by":{"type":"object","properties":{"id":{"type":"string"},"display":{"type":"string"}},"required":["id","display"]}},"required":["on","by"]}},"required":["on","by","notAccepted"]}}},"required":["id","n","key","words","considerations","source","on","by","note","fromInterim","state","decided","closing","replaces","replacedBy","notAccepted","closesNotAccepted"]}},"observations":{"type":"array","items":{"type":"object","properties":{"id":{"type":"string","format":"uuid"},"n":{"type":"integer"},"on":{"type":"string"},"by":{"type":"object","properties":{"id":{"type":"string"},"display":{"type":"string"}},"required":["id","display"]},"source":{"type":"object","properties":{"key":{"type":"string"},"words":{"type":"string"}},"required":["key","words"]},"note":{"type":["string","null"]},"adds":{"type":"array","items":{"type":"object","properties":{"line":{"type":"string","format":"uuid"},"key":{"type":"string"},"words":{"type":"string"},"considerations":{"type":"array","items":{"type":"string"}},"state":{"type":"string","enum":["waiting","in-force","closed","replaced","not-accepted"]}},"required":["line","key","words","considerations","state"]}},"changes":{"type":"array","items":{"type":"object","properties":{"line":{"type":"string","format":"uuid"},"key":{"type":"string"},"words":{"type":"string"},"considerations":{"type":"array","items":{"type":"string"}},"state":{"type":"string","enum":["waiting","in-force","closed","replaced","not-accepted"]}},"required":["line","key","words","considerations","state"]}},"removes":{"type":"array","items":{"type":"object","properties":{"id":{"type":"string","format":"uuid"},"key":{"type":"string"},"words":{"type":"string"},"notAccepted":{"type":"boolean"}},"required":["id","key","words","notAccepted"]}},"state":{"type":"string","enum":["waiting","decided"]},"decided":{"type":["object","null"],"properties":{"on":{"type":"string"},"by":{"type":"object","properties":{"id":{"type":"string"},"display":{"type":"string"}},"required":["id","display"]},"standing":{"type":"object","properties":{"key":{"type":"string"},"words":{"type":"string"}},"required":["key","words"]}},"required":["on","by","standing"]}},"required":["id","n","on","by","source","note","adds","changes","removes","state","decided"]}},"review":{"type":["object","null"],"properties":{"on":{"type":"string"},"months":{"type":"integer"}},"required":["on","months"]},"considerations":{"type":"array","items":{"type":"object","properties":{"key":{"type":"string"},"theme":{"type":"string"},"themeWords":{"type":"string"},"words":{"type":"string"},"signed":{"type":"boolean"},"on":{"type":"string"}},"required":["key","theme","themeWords","words","signed","on"]}},"catalogue":{"type":["object","null"],"properties":{"version":{"type":"string"},"draft":{"type":"boolean"}},"required":["version","draft"]},"state":{"type":"string","enum":["waiting","cleared","ended"]},"changeWaiting":{"type":"boolean"},"waiting":{"type":["object","null"],"properties":{"since":{"type":"string"},"days":{"type":"integer"}},"required":["since","days"]},"clearedOn":{"type":["string","null"]},"decision":{"type":["object","null"],"properties":{"act":{"type":"string","enum":["decided","confirmed"]},"on":{"type":"string"},"by":{"type":"object","properties":{"id":{"type":"string"},"display":{"type":"string"}},"required":["id","display"]},"standing":{"type":"object","properties":{"key":{"type":"string"},"words":{"type":"string"}},"required":["key","words"]},"reviewMonths":{"type":"integer"},"reviewOn":{"type":"string"}},"required":["act","on","by","standing","reviewMonths","reviewOn"]},"overdue":{"type":"boolean"},"read":{"type":"object","properties":{"space":{"type":"string"},"storey":{"type":["string","null"]},"colour":{"type":["string","null"],"enum":["red","amber",null]},"headline":{"type":"string"},"observed":{"type":"array","items":{"type":"string"}},"rung":{"type":"string","enum":["Observed, not assessed"]},"observedOn":{"type":["string","null"]},"by":{"type":"string"},"consider":{"type":"array","items":{"type":"object","properties":{"key":{"type":"string"},"words":{"type":"string"},"signed":{"type":"boolean"}},"required":["key","words","signed"]}},"draft":{"type":"boolean"}},"required":["space","storey","colour","headline","observed","rung","observedOn","by","consider","draft"]},"shared":{"type":"boolean"},"plan":{"type":["object","null"],"properties":{"key":{"type":"string","enum":["none","open","signed-off","declined","closed"]},"handle":{"type":["string","null"]},"stage":{"type":["string","null"]},"on":{"type":["string","null"]},"tried":{"type":"string"}},"required":["key","handle","stage","on","tried"]},"exit":{"type":["object","null"],"properties":{"key":{"type":"string"},"words":{"type":"string"},"does":{"type":"string"},"until":{"type":["string","null"]},"why":{"type":["object","null"],"properties":{"key":{"type":"string"},"words":{"type":"string"}},"required":["key","words"]},"dueToEnd":{"type":"boolean"},"progress":{"type":"array","items":{"type":"object","properties":{"words":{"type":"string"},"done":{"type":"boolean"}},"required":["words","done"]}},"folder":{"type":["object","null"],"properties":{"personId":{"type":"string"},"handle":{"type":"string"}},"required":["personId","handle"]},"job":{"type":["object","null"],"properties":{"key":{"type":"string"},"words":{"type":"string"},"what":{"type":"string"},"owner":{"type":["object","null"],"properties":{"kind":{"type":"string","enum":["member","team"]},"id":{"type":"string"},"name":{"type":"string"}},"required":["kind","id","name"]},"owedBy":{"type":"string"},"raisedOn":{"type":"string"},"dueOn":{"type":["string","null"]},"state":{"type":"string","enum":["open","overdue","done","declined"]},"closedOn":{"type":["string","null"]}},"required":["key","words","what","owner","owedBy","raisedOn","dueOn","state","closedOn"]},"waitingFor":{"type":["object","null"],"properties":{"key":{"type":"string"},"words":{"type":"string"}},"required":["key","words"]}},"required":["key","words","does","until","why","dueToEnd","progress","folder","job","waitingFor"]},"jobChoices":{"type":["object","null"],"properties":{"members":{"type":"array","items":{"type":"object","properties":{"id":{"type":"string"},"name":{"type":"string"}},"required":["id","name"]}},"teams":{"type":"array","items":{"type":"object","properties":{"id":{"type":"string"},"name":{"type":"string"}},"required":["id","name"]}}},"required":["members","teams"]},"stillTrue":{"type":"boolean"},"changedSince":{"type":"array","items":{"type":"string"}},"history":{"type":"array","items":{"type":"object","properties":{"at":{"type":"string"},"words":{"type":"string"},"note":{"type":["string","null"]},"closeReason":{"type":["string","null"]}},"required":["at","words","note","closeReason"]}},"notes":{"type":"array","items":{"type":"object","properties":{"words":{"type":"string"},"on":{"type":"string"},"by":{"type":"object","properties":{"id":{"type":"string"},"display":{"type":"string"}},"required":["id","display"]}},"required":["words","on","by"]}},"ending":{"type":["object","null"],"properties":{"how":{"type":"string","enum":["replaced","ended","subject-ended"]},"words":{"type":"string"},"reason":{"type":["string","null"]},"by":{"type":"object","properties":{"id":{"type":"string"},"display":{"type":"string"}},"required":["id","display"]},"on":{"type":"string"}},"required":["how","words","reason","by","on"]},"umbrella":{"type":"object","properties":{"says":{"type":"string"},"law":{"type":"string"}},"required":["says","law"]},"may":{"type":"object","properties":{"record":{"type":"boolean"},"decide":{"type":"boolean"}},"required":["record","decide"]},"notShared":{"type":["object","null"],"properties":{"on":{"type":"string"}},"required":["on"]},"locked":{"type":"boolean"},"stay":{"type":["object","null"],"properties":{"id":{"type":"string"},"from":{"type":"string"},"until":{"type":"string"},"here":{"type":"boolean"},"share":{"type":"boolean"},"source":{"type":"string","enum":["member","point-personal"]},"state":{"type":"string","enum":["waiting","in","ended"]},"sentBy":{"type":["object","null"],"properties":{"name":{"type":["string","null"]},"footing":{"type":"string"},"line":{"type":"string"}},"required":["name","footing","line"]}},"required":["id","from","until","here","share","source","state","sentBy"]},"actions":{"type":["array","null"],"items":{"$ref":"#/components/schemas/RcoAction"}},"suggested":{"type":["array","null"],"items":{"type":"object","properties":{"key":{"type":"string"},"words":{"type":"string"},"handle":{"type":["string","null"]}},"required":["key","words","handle"]}}},"required":["id","placeId","place","kind","space","scope","who","eyebrow","colour","reasons","lines","observations","review","considerations","catalogue","state","changeWaiting","waiting","clearedOn","decision","overdue","read","shared","plan","exit","jobChoices","stillTrue","changedSince","history","notes","ending","umbrella","may","notShared","locked","stay","actions","suggested"]},"RcoAction":{"type":"object","properties":{"handle":{"type":"string"},"id":{"type":"string"},"kind":{"type":"string","enum":["arrange","ask"]},"suggestion":{"type":["object","null"],"properties":{"key":{"type":"string"},"words":{"type":"string"}},"required":["key","words"]},"who":{"type":["object","null"],"properties":{"kind":{"type":"string","enum":["post","member","person","stay","words"]},"id":{"type":["string","null"]},"name":{"type":"string"},"named":{"type":"boolean"},"gone":{"type":["string","null"]}},"required":["kind","id","name","named","gone"]},"asset":{"type":["object","null"],"properties":{"id":{"type":"string"},"name":{"type":"string"}},"required":["id","name"]},"to":{"type":["object","null"],"properties":{"kind":{"type":"string","enum":["refuge","exit"]},"thing":{"type":"string"},"name":{"type":"string"}},"required":["kind","thing","name"]},"note":{"type":["string","null"]},"state":{"type":"object","properties":{"key":{"type":"string","enum":["open","done","crossed-out"]},"words":{"type":"string"}},"required":["key","words"]},"on":{"type":"string"},"by":{"type":"object","properties":{"id":{"type":"string"},"display":{"type":"string"}},"required":["id","display"]}},"required":["handle","id","kind","suggestion","who","asset","to","note","state","on","by"]},"ResidencyRcos":{"type":"object","properties":{"items":{"type":"array","items":{"$ref":"#/components/schemas/Rco"}},"mayRecord":{"type":"boolean"},"offer":{"$ref":"#/components/schemas/RcoOffer"},"mayDecide":{"type":"boolean"}},"required":["items","mayRecord","offer","mayDecide"]},"RcoOffer":{"type":["object","null"],"properties":{"residencyId":{"type":"string","format":"uuid"},"personId":{"type":"string","format":"uuid"},"name":{"type":["string","null"]},"space":{"type":"object","properties":{"id":{"type":"string"},"name":{"type":"string"},"storey":{"type":["string","null"]}},"required":["id","name","storey"]},"occupants":{"type":"array","items":{"type":"object","properties":{"rcoId":{"type":"string","format":"uuid"},"colour":{"type":["object","null"],"properties":{"key":{"type":"string"},"words":{"type":"string"}},"required":["key","words"]},"kind":{"type":"string"},"observed":{"type":"array","items":{"type":"string"}},"since":{"type":"string"},"next":{"type":["string","null"]},"state":{"type":"string","enum":["waiting","cleared"]},"occupant":{"type":"integer"},"label":{"type":"string"},"also":{"type":"array","items":{"type":"object","properties":{"rcoId":{"type":"string","format":"uuid"},"colour":{"type":["object","null"],"properties":{"key":{"type":"string"},"words":{"type":"string"}},"required":["key","words"]},"kind":{"type":"string"},"observed":{"type":"array","items":{"type":"string"}},"since":{"type":"string"},"next":{"type":["string","null"]},"state":{"type":"string","enum":["waiting","cleared"]}},"required":["rcoId","colour","kind","observed","since","next","state"]}}},"required":["rcoId","colour","kind","observed","since","next","state","occupant","label","also"]}},"already":{"type":["object","null"],"properties":{"rcoId":{"type":"string","format":"uuid"}},"required":["rcoId"]},"words":{"type":"object","properties":{"eyebrow":{"type":"string"},"title":{"type":"string"},"says":{"type":"string"},"neither":{"type":"string"},"thisIs":{"type":"string"},"notNow":{"type":"string"},"line":{"type":"string"},"already":{"type":["string","null"]}},"required":["eyebrow","title","says","neither","thisIs","notNow","line","already"]}},"required":["residencyId","personId","name","space","occupants","already","words"]},"IdentifiedRco":{"type":"object","properties":{"rcoId":{"type":"string","format":"uuid"},"waiting":{"type":"boolean"},"mayDecide":{"type":"boolean"}},"required":["rcoId","waiting","mayDecide"]},"IdentifyRco":{"type":"object","properties":{"rcoId":{"type":"string","format":"uuid"},"decide":{"type":"object","properties":{"standing":{"type":"string","maxLength":80},"reviewMonths":{"type":"integer"}},"required":["standing","reviewMonths"],"additionalProperties":false}},"required":["rcoId"],"additionalProperties":false},"AnsweredRco":{"type":"object","properties":{"answered":{"type":"integer"}},"required":["answered"]},"NeitherRco":{"type":"object","properties":{"rcoIds":{"type":"array","items":{"type":"string","format":"uuid"},"minItems":1,"maxItems":50}},"required":["rcoIds"],"additionalProperties":false},"StillTrue":{"type":"object","properties":{"standing":{"type":"string","maxLength":80},"reviewMonths":{"type":"integer"}},"required":["standing"],"additionalProperties":false},"EndRco":{"type":"object","properties":{"reason":{"type":"string","pattern":"^[a-z][a-z0-9:-]{0,60}$"},"words":{"type":"string","maxLength":2000}},"required":["reason"],"additionalProperties":false},"RcoActionInput":{"type":"object","properties":{"handle":{"type":"string","format":"uuid"},"kind":{"type":"string","enum":["arrange","ask"]},"suggestion":{"type":"string","pattern":"^[a-z][a-z-]{0,60}\\.[a-z][a-z-]{0,60}$"},"state":{"type":"string","enum":["open","done","crossed-out"]},"who":{"anyOf":[{"type":"object","properties":{"kind":{"type":"string","enum":["post","member","person","stay"]},"id":{"type":"string","format":"uuid"}},"required":["kind","id"],"additionalProperties":false},{"type":"object","properties":{"kind":{"type":"string","enum":["words"]},"words":{"type":"string","maxLength":200}},"required":["kind","words"],"additionalProperties":false},{"type":"null"}]},"assetId":{"type":["string","null"],"format":"uuid"},"to":{"type":["object","null"],"properties":{"kind":{"type":"string","enum":["refuge","exit"]},"thing":{"type":"string","minLength":1,"maxLength":200}},"required":["kind","thing"],"additionalProperties":false},"note":{"type":["string","null"],"maxLength":400}},"additionalProperties":false},"RcoActionChoices":{"type":"object","properties":{"posts":{"type":"array","items":{"type":"object","properties":{"id":{"type":"string"},"name":{"type":"string"}},"required":["id","name"]}},"members":{"type":"array","items":{"type":"object","properties":{"id":{"type":"string"},"name":{"type":"string"}},"required":["id","name"]}},"assets":{"type":"array","items":{"type":"object","properties":{"id":{"type":"string"},"name":{"type":"string"}},"required":["id","name"]}},"places":{"type":"array","items":{"type":"object","properties":{"thing":{"type":"string"},"name":{"type":"string"}},"required":["thing","name"]}},"people":{"type":"array","items":{"type":"object","properties":{"id":{"type":"string"},"name":{"type":"string"},"space":{"type":"string"}},"required":["id","name","space"]}},"guests":{"type":"array","items":{"type":"object","properties":{"id":{"type":"string"},"name":{"type":"string"},"space":{"type":"string"}},"required":["id","name","space"]}}},"required":["posts","members","assets","places","people","guests"]},"RcoRegister":{"type":"object","properties":{"places":{"type":"array","items":{"type":"object","properties":{"id":{"type":"string","format":"uuid"},"name":{"type":"string"}},"required":["id","name"]}},"showing":{"type":["string","null"],"format":"uuid"},"mayRecord":{"type":["boolean","null"]},"inForce":{"type":"array","items":{"$ref":"#/components/schemas/RcoRegisterRow"}},"ended":{"type":"array","items":{"$ref":"#/components/schemas/RcoRegisterRow"}},"counts":{"type":"object","properties":{"inForce":{"type":"integer"},"waiting":{"type":"integer"},"overdue":{"type":"integer"},"ended":{"type":"integer"}},"required":["inForce","waiting","overdue","ended"]}},"required":["places","showing","mayRecord","inForce","ended","counts"]},"RcoRegisterRow":{"type":"object","properties":{"id":{"type":"string","format":"uuid"},"placeId":{"type":"string","format":"uuid"},"place":{"type":"string"},"spaceId":{"type":"string"},"space":{"type":"string"},"storey":{"type":["string","null"]},"kind":{"type":"object","properties":{"key":{"type":"string"},"words":{"type":"string"}},"required":["key","words"]},"who":{"type":"object","properties":{"kind":{"type":"string","enum":["person","occupant","space","guest"]},"label":{"type":"string"},"personId":{"type":["string","null"]}},"required":["kind","label","personId"]},"colour":{"type":["object","null"],"properties":{"key":{"type":"string"},"words":{"type":"string"},"reads":{"type":"string"}},"required":["key","words","reads"]},"state":{"type":"string","enum":["waiting","cleared","ended"]},"changeWaiting":{"type":"boolean"},"waitingDays":{"type":["integer","null"]},"clearedOn":{"type":["string","null"]},"reviewOn":{"type":["string","null"]},"overdue":{"type":"boolean"},"next":{"type":["object","null"],"properties":{"exit":{"type":"object","properties":{"key":{"type":"string"},"words":{"type":"string"}},"required":["key","words"]},"job":{"type":["object","null"],"properties":{"words":{"type":"string"},"state":{"type":"string","enum":["open","overdue","done","declined"]},"dueOn":{"type":["string","null"]},"closedOn":{"type":["string","null"]}},"required":["words","state","dueOn","closedOn"]},"waitingFor":{"type":["object","null"],"properties":{"key":{"type":"string"},"words":{"type":"string"}},"required":["key","words"]},"noneNeeded":{"type":["object","null"],"properties":{"why":{"type":["string","null"]},"until":{"type":["string","null"]},"dueToEnd":{"type":"boolean"}},"required":["why","until","dueToEnd"]}},"required":["exit","job","waitingFor","noneNeeded"],"description":"What happens next: the exit, and the job it raised with its state; none needed, with why and until when."},"mayDecide":{"type":"boolean"},"ending":{"type":["object","null"],"properties":{"how":{"type":"string"},"words":{"type":"string"},"reason":{"type":["string","null"]},"by":{"type":"object","properties":{"id":{"type":"string"},"display":{"type":"string"}},"required":["id","display"]},"on":{"type":"string"}},"required":["how","words","reason","by","on"]}},"required":["id","placeId","place","spaceId","space","storey","kind","who","colour","state","changeWaiting","waitingDays","clearedOn","reviewOn","overdue","next","mayDecide","ending"]},"RcoPermission":{"type":"object","properties":{"personId":{"type":"string","format":"uuid"},"residencyId":{"type":"string","format":"uuid"},"domains":{"type":"array","items":{"type":"object","properties":{"domain":{"type":"string"},"label":{"type":"string"},"gist":{"type":"string"},"standing":{"type":"string","enum":["yes","no","not-answered"]},"answer":{"$ref":"#/components/schemas/RcoPermissionAnswer"}},"required":["domain","label","gist","standing","answer"]}},"reachingOut":{"type":"object","properties":{"state":{"type":"string","enum":["not-started","trying","reached","cannot-decide","no-contact"]},"label":{"type":"string"},"openedId":{"type":["string","null"]},"openedAt":{"type":["string","null"]},"cause":{"type":["string","null"]},"openedBy":{"type":["string","null"]},"openedByName":{"type":["string","null"]},"lookAgainOn":{"type":["string","null"]},"lookAgainBy":{"type":["string","null"]},"attempts":{"type":"integer"},"reachedOn":{"type":["string","null"]},"cannotDecide":{"type":["object","null"],"properties":{"entryId":{"type":"string"},"on":{"type":"string"},"partyId":{"type":["string","null"]},"reviewOn":{"type":["string","null"]},"by":{"type":["string","null"]}},"required":["entryId","on","partyId","reviewOn","by"]},"cannotDecideParty":{"allOf":[{"$ref":"#/components/schemas/RcoPermissionAnsweredBy"},{"type":["object","null"]}]},"noContact":{"type":["object","null"],"properties":{"on":{"type":"string"},"by":{"type":["string","null"]}},"required":["on","by"]}},"required":["state","label","openedId","openedAt","cause","openedBy","openedByName","lookAgainOn","lookAgainBy","attempts","reachedOn","cannotDecide","cannotDecideParty","noContact"]},"entries":{"type":"array","items":{"type":"object","properties":{"id":{"type":"string"},"kind":{"type":"string","enum":["opened","attempt","cannot-decide","no-contact","kept","notified","acknowledged"]},"rcoId":{"type":["string","null"]},"on":{"type":"string"},"byName":{"type":"string"},"title":{"type":"string"},"lookAgainOn":{"type":["string","null"]},"reviewOn":{"type":["string","null"]},"party":{"allOf":[{"$ref":"#/components/schemas/RcoPermissionAnsweredBy"},{"type":["object","null"]}]},"sealed":{"type":"boolean"}},"required":["id","kind","rcoId","on","byName","title","lookAgainOn","reviewOn","party","sealed"]}},"authorities":{"type":"array","items":{"$ref":"#/components/schemas/RcoPermissionAnsweredBy"}},"mayRecord":{"type":"boolean"},"mayOpen":{"type":"boolean"},"mayTry":{"type":"boolean"},"mayCannotDecide":{"type":"boolean"},"notices":{"type":"array","items":{"type":"object","properties":{"rcoId":{"type":"string"},"kind":{"type":"string"},"domain":{"type":"string"},"answeredOn":{"type":"string"},"decidedOn":{"type":"string"},"decidedBy":{"type":["string","null"]}},"required":["rcoId","kind","domain","answeredOn","decidedOn","decidedBy"]}},"toAcknowledge":{"type":"array","items":{"$ref":"#/components/schemas/RcoPermissionAnswer"}}},"required":["personId","residencyId","domains","reachingOut","entries","authorities","mayRecord","mayOpen","mayTry","mayCannotDecide","notices","toAcknowledge"]},"RcoPermissionAnswer":{"type":["object","null"],"properties":{"id":{"type":"string","format":"uuid"},"residencyId":{"type":"string","format":"uuid"},"domain":{"type":"string"},"domainLabel":{"type":"string"},"answer":{"type":"string"},"answerLabel":{"type":"string"},"party":{"$ref":"#/components/schemas/RcoPermissionAnsweredBy"},"how":{"type":"string"},"howLabel":{"type":"string"},"riskExplained":{"type":["boolean","null"]},"explained":{"type":["string","null"]},"on":{"type":"string"},"recordedBy":{"type":["string","null"]},"recordedByName":{"type":"string"},"inTheApp":{"type":"boolean"},"acknowledged":{"type":["object","null"],"properties":{"on":{"type":"string"},"byName":{"type":"string"}},"required":["on","byName"]},"recordedAt":{"type":"string"},"closedOn":{"type":["string","null"]},"open":{"type":"boolean"}},"required":["id","residencyId","domain","domainLabel","answer","answerLabel","party","how","howLabel","riskExplained","explained","on","recordedBy","recordedByName","inTheApp","acknowledged","recordedAt","closedOn","open"]},"RcoPermissionAnsweredBy":{"type":"object","properties":{"id":{"type":"string","format":"uuid"},"handle":{"type":"string","format":"uuid"},"standing":{"type":"string"},"standingLabel":{"type":"string"},"words":{"type":["string","null"]},"current":{"type":"boolean"}},"required":["id","handle","standing","standingLabel","words","current"]},"RcoPermissionOpened":{"type":"object","properties":{"entryId":{"type":"string","format":"uuid"},"residencyId":{"type":"string","format":"uuid"},"cause":{"type":"string"},"openedAt":{"type":"string"},"state":{"type":"string"}},"required":["entryId","residencyId","cause","openedAt","state"]},"RcoPermissionOpen":{"type":"object","properties":{},"additionalProperties":false},"RcoPermissionAnswers":{"type":"object","properties":{"answers":{"type":"array","items":{"$ref":"#/components/schemas/RcoPermissionAnswer"}}},"required":["answers"]},"RcoPermissionAnswersInput":{"type":"object","properties":{"party":{"type":"string","minLength":1,"maxLength":40,"example":"self"},"how":{"type":"string","minLength":1,"maxLength":40,"example":"verbal-unwitnessed"},"on":{"type":"string","pattern":"^\\d{4}-\\d{2}-\\d{2}$","example":"2026-11-21"},"answers":{"type":"array","items":{"type":"object","properties":{"domain":{"type":"string","minLength":1,"maxLength":40,"example":"rco-getting-out"},"answer":{"type":"string","minLength":1,"maxLength":40,"example":"no"},"riskExplained":{"type":["boolean","null"]},"explained":{"type":["string","null"],"maxLength":2000}},"required":["domain","answer"],"additionalProperties":false},"minItems":1,"maxItems":2}},"required":["party","how","answers"],"additionalProperties":false},"RcoPermissionEntry":{"type":"object","properties":{"entryId":{"type":"string","format":"uuid"}},"required":["entryId"]},"RcoPermissionAttemptInput":{"type":"object","properties":{"channel":{"type":"string","minLength":1,"maxLength":40,"example":"phone"},"outcome":{"type":"string","minLength":1,"maxLength":40,"example":"no-answer"},"on":{"type":"string","pattern":"^\\d{4}-\\d{2}-\\d{2}$","example":"2026-11-21"},"lookAgainOn":{"type":["string","null"],"pattern":"^\\d{4}-\\d{2}-\\d{2}$","example":"2026-11-21"},"words":{"type":["string","null"],"maxLength":2000}},"required":["channel","outcome"],"additionalProperties":false},"RcoPermissionCannotDecideInput":{"type":"object","properties":{"on":{"type":"string","pattern":"^\\d{4}-\\d{2}-\\d{2}$","example":"2026-11-21"},"party":{"type":["string","null"],"minLength":1,"maxLength":40},"words":{"type":["string","null"],"maxLength":2000},"reviewOn":{"type":["string","null"],"pattern":"^\\d{4}-\\d{2}-\\d{2}$","example":"2026-11-21"}},"additionalProperties":false},"RcoPermissionNoContactInput":{"type":"object","properties":{"words":{"type":"string","maxLength":2000,"description":"The conclusion, in words (sealed); required."}},"required":["words"],"additionalProperties":false},"RcoPermissionKeptInput":{"type":"object","properties":{"rcoId":{"type":"string","format":"uuid"}},"required":["rcoId"],"additionalProperties":false},"RcoPermissionNotifiedInput":{"type":"object","properties":{"rcoId":{"type":"string","format":"uuid"},"channel":{"type":"string","minLength":1,"maxLength":40,"example":"in-person"},"on":{"type":"string","pattern":"^\\d{4}-\\d{2}-\\d{2}$","example":"2026-11-21"}},"required":["rcoId","channel"],"additionalProperties":false},"RcoPermissionAcknowledgeInput":{"type":"object","properties":{"answerId":{"type":"string","format":"uuid"}},"required":["answerId"],"additionalProperties":false},"RcoAcceptance":{"type":"object","properties":{"words":{"type":"object","properties":{"statement":{"type":"string"},"law":{"type":"string"},"version":{"type":"string"},"kinds":{"type":"array","items":{"type":"object","properties":{"key":{"type":"string"},"words":{"type":"string"}},"required":["key","words"]}}},"required":["statement","law","version","kinds"]},"accepted":{"$ref":"#/components/schemas/RcoAccepted"},"mayAccept":{"type":"boolean"}},"required":["words","accepted","mayAccept"]},"RcoAccepted":{"type":["object","null"],"properties":{"id":{"type":"string","format":"uuid"},"wordsVersion":{"type":"string"},"organisationKind":{"type":"string"},"acceptedBy":{"type":"string","format":"uuid"},"acceptedByName":{"type":"string"},"acceptedOn":{"type":"string","pattern":"^\\d{4}-\\d{2}-\\d{2}$","example":"2026-11-21"}},"required":["id","wordsVersion","organisationKind","acceptedBy","acceptedByName","acceptedOn"]},"RcoAcceptanceInput":{"type":"object","properties":{"wordsVersion":{"type":"string","pattern":"^[0-9a-f]{16}$","example":"0123456789abcdef"},"organisationKind":{"type":"string","minLength":1,"maxLength":40,"example":"other"},"privacyNoticeConfirmed":{"type":"boolean"}},"required":["wordsVersion","organisationKind","privacyNoticeConfirmed"],"additionalProperties":false},"RcoPermissionCounts":{"type":"object","properties":{"places":{"type":"integer"},"counts":{"type":"object","properties":{"reached":{"type":"integer"},"domains":{"type":"array","items":{"type":"object","properties":{"domain":{"type":"string"},"label":{"type":"string"},"yes":{"type":"integer"},"no":{"type":"integer"}},"required":["domain","label","yes","no"]}},"noContact":{"type":"object","properties":{"people":{"type":"integer"},"attempts":{"type":"integer"}},"required":["people","attempts"]},"cannotDecide":{"type":"integer"},"trying":{"type":"object","properties":{"people":{"type":"integer"},"pastDate":{"type":"integer"}},"required":["people","pastDate"]}},"required":["reached","domains","noContact","cannotDecide","trying"]}},"required":["places","counts"]},"Occupancy":{"type":"object","properties":{"kinds":{"type":"array","items":{"type":"string","enum":["residents","guests","care","pupils","staff"]}},"updatedAt":{"type":["string","null"]},"mayUpdate":{"type":"boolean"}},"required":["kinds","updatedAt","mayUpdate"]},"PostsHere":{"type":"object","properties":{"place":{"type":"object","properties":{"id":{"type":"string","format":"uuid"},"name":{"type":"string"}},"required":["id","name"]},"scopes":{"type":"array","items":{"type":"object","properties":{"kind":{"type":"string"},"id":{"type":"string"},"name":{"type":["string","null"]}},"required":["kind","id","name"]}},"publishedHash":{"type":["string","null"]},"posts":{"type":"array","items":{"type":"object","properties":{"id":{"type":"string","format":"uuid"},"parentId":{"type":"string","format":"uuid"},"name":{"type":"string"},"roleKey":{"type":"string"},"roleLabel":{"type":"string"},"roleWords":{"type":["string","null"]},"place":{"type":"object","properties":{"kind":{"type":"string"},"id":{"type":"string"},"name":{"type":["string","null"]}},"required":["kind","id","name"]},"headcount":{"type":"integer"},"cover":{"$ref":"#/components/schemas/PostCover"},"coverWords":{"type":"string"},"provider":{"type":"object","properties":{"kind":{"type":"string","enum":["own","appointment","words"]},"name":{"type":"string"},"appointmentId":{"type":"string","format":"uuid"}},"required":["kind","name"]},"reach":{"type":["string","null"]},"requires":{"type":"array","items":{"type":"object","properties":{"key":{"type":"string"},"label":{"type":"string"}},"required":["key","label"]}},"fromOn":{"type":"string"},"toOn":{"type":["string","null"]},"open":{"type":"boolean"},"recordedAgainst":{"type":"object","properties":{"hash":{"type":"string"},"current":{"type":"boolean"}},"required":["hash","current"]},"filled":{"type":"integer"},"competences":{"type":"array","items":{"type":"object","properties":{"key":{"type":"string"},"label":{"type":"string"},"holding":{"type":"integer"},"expired":{"type":"integer"}},"required":["key","label","holding","expired"]}}},"required":["id","parentId","name","roleKey","roleLabel","roleWords","place","headcount","cover","coverWords","provider","reach","requires","fromOn","toOn","open","recordedAgainst","filled","competences"]}},"providers":{"type":"array","items":{"type":"object","properties":{"appointmentId":{"type":"string","format":"uuid"},"name":{"type":"string"},"roleKey":{"type":"string"}},"required":["appointmentId","name","roleKey"]}},"domains":{"type":"array","items":{"type":"string"}},"catalogue":{"type":"object","properties":{"roles":{"type":"array","items":{"type":"object","properties":{"key":{"type":"string"},"label":{"type":"string"},"domains":{"type":"array","items":{"type":"string"}}},"required":["key","label","domains"],"additionalProperties":{}}},"competences":{"type":"array","items":{"type":"object","properties":{"key":{"type":"string"},"label":{"type":"string"},"domains":{"type":"array","items":{"type":"string"}}},"required":["key","label","domains"],"additionalProperties":{}}}},"required":["roles","competences"]},"mayAdd":{"type":"boolean"}},"required":["place","scopes","publishedHash","posts","providers","domains","catalogue","mayAdd"]},"PostCover":{"anyOf":[{"type":"object","properties":{"pattern":{"type":"string"}},"required":["pattern"]},{"type":"object","properties":{"hours":{"type":"array","items":{"type":"object","properties":{"days":{"type":"array","items":{"type":"string"}},"from":{"type":"string"},"to":{"type":"string"}},"required":["days","from","to"]}}},"required":["hours"]}]},"Post":{"type":"object","properties":{"id":{"type":"string","format":"uuid"},"parentId":{"type":"string","format":"uuid"},"name":{"type":"string"},"roleKey":{"type":"string"},"roleLabel":{"type":"string"},"roleWords":{"type":["string","null"]},"place":{"type":"object","properties":{"kind":{"type":"string"},"id":{"type":"string"},"name":{"type":["string","null"]}},"required":["kind","id","name"]},"headcount":{"type":"integer"},"cover":{"$ref":"#/components/schemas/PostCover"},"coverWords":{"type":"string"},"provider":{"type":"object","properties":{"kind":{"type":"string","enum":["own","appointment","words"]},"name":{"type":"string"},"appointmentId":{"type":"string","format":"uuid"}},"required":["kind","name"]},"reach":{"type":["string","null"]},"requires":{"type":"array","items":{"type":"object","properties":{"key":{"type":"string"},"label":{"type":"string"}},"required":["key","label"]}},"fromOn":{"type":"string"},"toOn":{"type":["string","null"]},"open":{"type":"boolean"},"recordedAgainst":{"type":"object","properties":{"hash":{"type":"string"},"current":{"type":"boolean"}},"required":["hash","current"]},"filled":{"type":"integer"},"competences":{"type":"array","items":{"type":"object","properties":{"key":{"type":"string"},"label":{"type":"string"},"holding":{"type":"integer"},"expired":{"type":"integer"}},"required":["key","label","holding","expired"]}},"parent":{"type":"object","properties":{"id":{"type":"string","format":"uuid"},"name":{"type":"string"}},"required":["id","name"]},"fillings":{"type":"array","items":{"type":"object","properties":{"id":{"type":"string","format":"uuid"},"personId":{"type":"string","format":"uuid"},"name":{"type":["string","null"]},"kind":{"type":"string","enum":["regular","relief","agency"]},"fromOn":{"type":"string"},"toOn":{"type":["string","null"]},"current":{"type":"boolean"},"holds":{"type":"array","items":{"type":"object","properties":{"key":{"type":"string"},"label":{"type":"string"},"state":{"type":"string","enum":["holds","expired","none"]},"expiresOn":{"type":["string","null"]}},"required":["key","label","state","expiresOn"]}}},"required":["id","personId","name","kind","fromOn","toOn","current","holds"]}},"mayUpdate":{"type":"boolean"}},"required":["id","parentId","name","roleKey","roleLabel","roleWords","place","headcount","cover","coverWords","provider","reach","requires","fromOn","toOn","open","recordedAgainst","filled","competences","parent","fillings","mayUpdate"]},"OpenPost":{"type":"object","properties":{"roleKey":{"type":"string","minLength":1,"maxLength":80},"roleWords":{"type":"string","maxLength":200},"scopeKind":{"type":"string","minLength":1,"maxLength":20},"scopeId":{"type":"string","minLength":1,"maxLength":200},"headcount":{"type":"integer"},"cover":{},"provider":{"oneOf":[{"type":"object","properties":{"kind":{"type":"string","enum":["own"]}},"required":["kind"],"additionalProperties":false},{"type":"object","properties":{"kind":{"type":"string","enum":["appointment"]},"appointmentId":{"type":"string","format":"uuid"}},"required":["kind","appointmentId"],"additionalProperties":false},{"type":"object","properties":{"kind":{"type":"string","enum":["words"]},"words":{"type":"string","maxLength":400}},"required":["kind","words"],"additionalProperties":false}]},"reach":{"type":"string","maxLength":400},"requires":{"type":"array","items":{"type":"string","minLength":1,"maxLength":80},"maxItems":20},"fromOn":{"type":"string","pattern":"^\\d{4}-\\d{2}-\\d{2}$"}},"required":["roleKey","scopeKind","scopeId","headcount","provider","requires"],"additionalProperties":false},"ClosePost":{"type":"object","properties":{"toOn":{"type":"string","pattern":"^\\d{4}-\\d{2}-\\d{2}$"}},"additionalProperties":false},"FillPost":{"type":"object","properties":{"personId":{"type":"string","format":"uuid"},"kind":{"type":"string","enum":["regular","relief","agency"]},"fromOn":{"type":"string","pattern":"^\\d{4}-\\d{2}-\\d{2}$"}},"required":["personId","kind"],"additionalProperties":false},"EndFilling":{"type":"object","properties":{"toOn":{"type":"string","pattern":"^\\d{4}-\\d{2}-\\d{2}$"}},"additionalProperties":false},"Cover":{"type":"object","properties":{"when":{"type":"object","properties":{"at":{"type":["string","null"]},"part":{"type":"string","enum":["day","night"]}},"required":["at","part"]},"places":{"type":"array","items":{"type":"object","properties":{"id":{"type":"string"},"kind":{"type":"string"},"name":{"type":"string"},"rows":{"type":"array","items":{"type":"object","properties":{"postId":{"type":"string","format":"uuid"},"name":{"type":"string"},"roleLabel":{"type":"string"},"scopeKind":{"type":"string"},"scopeId":{"type":"string"},"headcount":{"type":"integer"},"filled":{"type":"integer"},"coverWords":{"type":"string"},"reach":{"type":["string","null"]},"provider":{"type":"string"},"competences":{"type":"array","items":{"type":"object","properties":{"key":{"type":"string"},"label":{"type":"string"},"holding":{"type":"integer"},"expired":{"type":"integer"}},"required":["key","label","holding","expired"]}}},"required":["postId","name","roleLabel","scopeKind","scopeId","headcount","filled","coverWords","reach","provider","competences"]}},"signals":{"type":"array","items":{"type":"object","properties":{"tag":{"type":"string"},"words":{"type":"string"},"basis":{"type":"array","items":{"type":"string"}}},"required":["tag","words","basis"]}}},"required":["id","kind","name","rows","signals"]}}},"required":["when","places"]},"Competences":{"type":"object","properties":{"person":{"type":"object","properties":{"id":{"type":"string","format":"uuid"},"parentId":{"type":["string","null"],"format":"uuid"}},"required":["id","parentId"]},"attestations":{"type":"array","items":{"type":"object","properties":{"id":{"type":"string","format":"uuid"},"competenceKey":{"type":"string"},"label":{"type":"string"},"fromOn":{"type":"string"},"expiresOn":{"type":["string","null"]},"reference":{"type":["string","null"]},"state":{"type":"string","enum":["current","expired","withdrawn"]}},"required":["id","competenceKey","label","fromOn","expiresOn","reference","state"]}},"competences":{"type":"array","items":{"type":"object","properties":{"key":{"type":"string"},"label":{"type":"string"},"domains":{"type":"array","items":{"type":"string"}}},"required":["key","label","domains"],"additionalProperties":{}}},"mayRecord":{"type":"boolean"}},"required":["person","attestations","competences","mayRecord"]},"Attestation":{"type":"object","properties":{"id":{"type":"string","format":"uuid"},"competenceKey":{"type":"string"},"label":{"type":"string"},"fromOn":{"type":"string"},"expiresOn":{"type":["string","null"]},"reference":{"type":["string","null"]},"state":{"type":"string","enum":["current","expired","withdrawn"]}},"required":["id","competenceKey","label","fromOn","expiresOn","reference","state"]},"Attest":{"type":"object","properties":{"competenceKey":{"type":"string","minLength":1,"maxLength":80},"fromOn":{"type":"string","pattern":"^\\d{4}-\\d{2}-\\d{2}$"},"expiresOn":{"type":"string","pattern":"^\\d{4}-\\d{2}-\\d{2}$"},"reference":{"type":"string","maxLength":400}},"required":["competenceKey"],"additionalProperties":false},"Facts":{"type":"object","properties":{"facts":{"type":"array","items":{"$ref":"#/components/schemas/Fact"}}},"required":["facts"]},"EffectiveFact":{"type":"object","properties":{"kind":{"type":"string"},"at":{"type":"object","properties":{"scopeKind":{"type":"string"},"scopeId":{"type":"string"},"name":{"type":"string"}},"required":["scopeKind","scopeId","name"]},"effective":{"type":["object","null"],"properties":{"value":{},"factId":{"type":"string","format":"uuid"},"from":{"type":"object","properties":{"scopeKind":{"type":"string"},"scopeId":{"type":"string"},"name":{"type":"string"}},"required":["scopeKind","scopeId","name"]},"validFrom":{"type":"string"},"line":{"type":"string"}},"required":["factId","from","validFrom","line"]}},"required":["kind","at","effective"]},"FactsSummary":{"type":"object","properties":{"place":{"type":"object","properties":{"id":{"type":"string"},"name":{"type":"string"}},"required":["id","name"]},"scopes":{"type":"array","items":{"type":"object","properties":{"kind":{"type":"string"},"id":{"type":"string"},"name":{"type":"string"},"sectionId":{"type":["string","null"]},"position":{"type":["number","null"]}},"required":["kind","id","name","sectionId","position"]}},"storeys":{"type":"integer"},"open":{"type":"array","items":{"$ref":"#/components/schemas/Fact"}},"effective":{"type":"array","items":{"type":"object","properties":{"kind":{"type":"string"},"scopeKind":{"type":"string"},"scopeId":{"type":"string"},"name":{"type":"string"},"setHere":{"type":"boolean"},"effective":{"type":["object","null"],"properties":{"value":{},"factId":{"type":"string","format":"uuid"},"from":{"type":"object","properties":{"scopeKind":{"type":"string"},"scopeId":{"type":"string"},"name":{"type":"string"}},"required":["scopeKind","scopeId","name"]},"validFrom":{"type":"string"}},"required":["factId","from","validFrom"]},"sentence":{"type":"string"}},"required":["kind","scopeKind","scopeId","name","setHere","effective","sentence"]}},"headline":{"type":"string"},"cautions":{"type":"array","items":{"type":"object","properties":{"kind":{"type":"string"},"elementId":{"type":"string"},"text":{"type":"string"}},"required":["kind","elementId","text"]}},"scopeTest":{"anyOf":[{"type":"object","properties":{"specified":{"type":"boolean"},"reasons":{"type":"array","items":{"type":"string"}}},"required":["specified","reasons"]},{"type":"object","properties":{"unknown":{"type":"boolean","enum":[true]},"missing":{"type":"array","items":{"type":"string"}}},"required":["unknown","missing"]}]},"scopeStatement":{"type":"string"},"consequences":{"type":"array","items":{"type":"object","properties":{"choice":{"type":"string"},"whole":{"type":"array","items":{"type":"string"}},"part":{"type":"array","items":{"type":"string"}}},"required":["choice","whole","part"]}},"reviews":{"type":"array","items":{"type":"object","properties":{"factId":{"type":"string","format":"uuid"},"kind":{"type":"string"},"scopeKind":{"type":"string"},"scopeId":{"type":"string"},"name":{"type":"string"},"what":{"type":"string"},"on":{"type":"string"},"overdue":{"type":"boolean"}},"required":["factId","kind","scopeKind","scopeId","name","what","on","overdue"]}},"offThePlan":{"type":"array","items":{"$ref":"#/components/schemas/Fact"}},"publishedHash":{"type":["string","null"]},"mayRecord":{"type":"boolean"},"choices":{"type":"object","additionalProperties":{"type":"array","items":{"type":"object","properties":{"key":{"type":"string"},"label":{"type":"string"}},"required":["key","label"]}}},"noNames":{"type":"string"}},"required":["place","scopes","storeys","open","effective","headline","cautions","scopeTest","scopeStatement","consequences","reviews","offThePlan","publishedHash","mayRecord","choices","noNames"]},"RecordedFact":{"type":"object","properties":{"fact":{"$ref":"#/components/schemas/Fact"},"closed":{"allOf":[{"$ref":"#/components/schemas/Fact"},{"type":["object","null"]}]}},"required":["fact","closed"]},"RecordFact":{"type":"object","properties":{"kind":{"type":"string","minLength":1,"maxLength":80},"scopeKind":{"type":"string","minLength":1,"maxLength":20,"description":"The kind of place: the place itself, a section, a storey or a space, as the tool names them."},"scope":{"type":"string","minLength":1,"maxLength":200,"description":"The place’s id in the published document."},"value":{"type":"object","additionalProperties":{}},"validFrom":{"type":"string","pattern":"^\\d{4}-\\d{2}-\\d{2}$"},"basis":{"type":"string","maxLength":20},"basisSource":{"type":"object","additionalProperties":{}}},"required":["kind","scopeKind","scope","value"],"additionalProperties":false},"CloseFact":{"type":"object","properties":{"validTo":{"type":"string","pattern":"^\\d{4}-\\d{2}-\\d{2}$"}},"additionalProperties":false},"Confirmed":{"type":"object","properties":{"confirmation":{"$ref":"#/components/schemas/Confirmation"},"changedTo":{"allOf":[{"$ref":"#/components/schemas/Fact"},{"type":["object","null"]}]}},"required":["confirmation","changedTo"]},"Confirmation":{"type":"object","properties":{"id":{"type":"string","format":"uuid"},"planHandle":{"type":"string"},"target":{},"verdict":{"type":"string"},"seen":{"type":"boolean"},"changedTo":{"type":["string","null"]},"changedWords":{"type":["string","null"]},"confirmedBy":{"type":"string"},"confirmedAt":{"type":"string"},"authoredAgainst":{"type":"string"}},"required":["id","planHandle","verdict","seen","changedTo","changedWords","confirmedBy","confirmedAt","authoredAgainst"]},"ConfirmFact":{"type":"object","properties":{"planHandle":{"type":"string","minLength":1,"maxLength":64},"target":{"anyOf":[{"type":"object","properties":{"kind":{"type":"string","enum":["fact"]},"factId":{"type":"string","minLength":1,"maxLength":64}},"required":["kind","factId"],"additionalProperties":false},{"type":"object","properties":{"kind":{"type":"string","enum":["drawn"]},"thingId":{"type":"string","minLength":1,"maxLength":200},"field":{"type":"string","minLength":1,"maxLength":80},"value":{}},"required":["kind","thingId","field"],"additionalProperties":false},{"type":"object","properties":{"kind":{"type":"string","enum":["route"]},"handle":{"type":"string","minLength":1,"maxLength":64}},"required":["kind","handle"],"additionalProperties":false}]},"verdict":{"type":"string","minLength":1,"maxLength":20},"seen":{"type":"boolean"},"changedTo":{"type":"object","properties":{"value":{"type":"object","additionalProperties":{}},"validFrom":{"type":"string","pattern":"^\\d{4}-\\d{2}-\\d{2}$"}},"required":["value"],"additionalProperties":false},"changedWords":{"type":"string","minLength":1,"maxLength":500}},"required":["planHandle","target","verdict","seen"],"additionalProperties":false},"Confirmations":{"type":"object","properties":{"confirmations":{"type":"array","items":{"$ref":"#/components/schemas/Confirmation"}}},"required":["confirmations"]},"AssessmentFacts":{"type":"object","properties":{"package":{"type":"string"},"scope":{"type":"string"},"mayRecord":{"type":"boolean"},"rows":{"type":"array","items":{"type":"object","properties":{"key":{"type":"string"},"number":{"type":"string"},"part":{"type":"string"},"partTitle":{"type":"string"},"section":{"type":"string"},"sectionTitle":{"type":"string"},"prompt":{"type":"string"},"meaning":{"type":["string","null"]},"lookFor":{"type":["string","null"]},"input":{"type":"string"},"options":{"type":"array","items":{"type":"object","properties":{"index":{"type":"number"},"label":{"type":"string"},"notEstablished":{"type":"boolean"}},"required":["index","label","notEstablished"]}},"dependsOn":{"type":["object","null"],"properties":{"question":{"type":"string"},"when":{"type":"string"},"leadNumber":{"type":["string","null"]},"waitsFor":{"type":"array","items":{"type":"string"}}},"required":["question","when","leadNumber","waitsFor"]},"way":{"type":"string"},"tier":{"type":"string"},"mustHave":{"type":"boolean"},"asked":{"type":"boolean"},"answer":{"type":["object","null"],"properties":{"factId":{"type":"string"},"options":{"type":"array","items":{"type":"number"}},"labels":{"type":"array","items":{"type":"string"}},"note":{"type":["string","null"]},"basis":{"type":"string"},"basisSource":{"type":["object","null"],"additionalProperties":{}},"basisLine":{"type":"string"},"recordedAt":{"type":"string"},"validFrom":{"type":"string"}},"required":["factId","options","labels","note","basis","basisSource","basisLine","recordedAt","validFrom"]},"held":{"type":["object","null"],"properties":{"options":{"type":"array","items":{"type":"number"}},"from":{"type":"string"},"basisLine":{"type":"string"}},"required":["options","from","basisLine"]},"check":{"type":["object","null"],"properties":{"why":{"type":"string"},"held":{"type":["object","null"],"properties":{"options":{"type":"array","items":{"type":"number"}},"from":{"type":"string"},"basisLine":{"type":"string"}},"required":["options","from","basisLine"]}},"required":["why","held"]},"offers":{"type":"array","items":{"type":"object","properties":{"id":{"type":"string"},"options":{"type":"array","items":{"type":"number"}},"labels":{"type":"array","items":{"type":"string"}},"basisLine":{"type":"string"},"offeredBy":{"type":"string"},"offeredAt":{"type":"string"}},"required":["id","options","labels","basisLine","offeredBy","offeredAt"]}}},"required":["key","number","part","partTitle","section","sectionTitle","prompt","meaning","lookFor","input","options","dependsOn","way","tier","mustHave","asked","answer","held","check","offers"]}},"counts":{"type":"object","properties":{"asked":{"type":"number"},"answered":{"type":"number"},"toCheck":{"type":"number"}},"required":["asked","answered","toCheck"]}},"required":["package","scope","mayRecord","rows","counts"]},"AssessmentFactAnswer":{"type":"object","properties":{"question":{"type":"string","minLength":1,"maxLength":120},"options":{"type":"array","items":{"type":"integer","minimum":0,"maximum":40},"minItems":1,"maxItems":20},"note":{"type":"string","maxLength":500},"basis":{"type":"string","maxLength":20},"basisSource":{"type":"object","additionalProperties":{}},"validFrom":{"type":"string","pattern":"^\\d{4}-\\d{2}-\\d{2}$"}},"required":["question","options"],"additionalProperties":false},"FactOffer":{"type":"object","properties":{"id":{"type":"string","format":"uuid"},"kind":{"type":"string"},"scopeKind":{"type":"string"},"scopeId":{"type":"string"},"value":{},"basis":{"type":"string"},"basisSource":{"type":["object","null"],"additionalProperties":{}},"offeredAs":{"type":"string"},"offeredBy":{"type":"string"},"offeredAt":{"type":"string"},"state":{"type":"string"},"factId":{"type":["string","null"]}},"required":["id","kind","scopeKind","scopeId","basis","basisSource","offeredAs","offeredBy","offeredAt","state","factId"]},"AssessmentFactOffer":{"type":"object","properties":{"question":{"type":"string","minLength":1,"maxLength":120},"options":{"type":"array","items":{"type":"integer","minimum":0,"maximum":40},"minItems":1,"maxItems":20},"note":{"type":"string","maxLength":500},"basis":{"type":"string","maxLength":20},"basisSource":{"type":"object","additionalProperties":{}},"validFrom":{"type":"string","pattern":"^\\d{4}-\\d{2}-\\d{2}$"}},"required":["question","options"],"additionalProperties":false},"TakenOffer":{"type":"object","properties":{"offer":{"$ref":"#/components/schemas/FactOffer"},"fact":{"$ref":"#/components/schemas/Fact"}},"required":["offer","fact"]},"TakeOffer":{"type":"object","properties":{"validFrom":{"type":"string","pattern":"^\\d{4}-\\d{2}-\\d{2}$"},"basis":{"type":"string","maxLength":20},"basisSource":{"type":"object","additionalProperties":{}}},"additionalProperties":false},"DeclineOffer":{"type":"object","properties":{"because":{"type":"string","maxLength":500}},"additionalProperties":false},"Walk":{"type":"object","properties":{"package":{"type":"string"},"resourceId":{"type":"string"},"residencyId":{"type":"string"},"spaceId":{"type":"string"},"planHandle":{"type":["string","null"]},"needs":{"type":"array","items":{"type":"object","properties":{"key":{"type":"string"},"words":{"type":"string"}},"required":["key","words"]}},"primary":{"type":["object","null"],"properties":{"handle":{"type":"string"},"suited":{"type":"boolean"},"since":{"type":"string"},"ruling":{"type":["object","null"],"properties":{"verdict":{"type":"string"},"seen":{"type":"boolean"},"on":{"type":"string"},"words":{"type":["string","null"]}},"required":["verdict","seen","on","words"]},"problems":{"type":"array","items":{"type":"object","properties":{"factId":{"type":"string"},"number":{"type":"string"},"label":{"type":"string"}},"required":["factId","number","label"]}}},"required":["handle","suited","since","ruling","problems"]},"alternative":{"type":["object","null"],"properties":{"handle":{"type":"string"},"suited":{"type":"boolean"},"since":{"type":"string"},"ruling":{"type":["object","null"],"properties":{"verdict":{"type":"string"},"seen":{"type":"boolean"},"on":{"type":"string"},"words":{"type":["string","null"]}},"required":["verdict","seen","on","words"]},"problems":{"type":"array","items":{"type":"object","properties":{"factId":{"type":"string"},"number":{"type":"string"},"label":{"type":"string"}},"required":["factId","number","label"]}}},"required":["handle","suited","since","ruling","problems"]},"sections":{"type":"array","items":{"type":"object","properties":{"key":{"type":"string"},"title":{"type":"string"},"why":{"type":"string","enum":["core","need","must"]},"words":{"type":["string","null"]}},"required":["key","title","why","words"]}},"rows":{"type":"array","items":{"type":"object","properties":{"key":{"type":"string"},"number":{"type":"string"},"part":{"type":"string"},"partTitle":{"type":"string"},"section":{"type":"string"},"sectionTitle":{"type":"string"},"prompt":{"type":"string"},"meaning":{"type":["string","null"]},"lookFor":{"type":["string","null"]},"input":{"type":"string"},"options":{"type":"array","items":{"type":"object","properties":{"index":{"type":"number"},"label":{"type":"string"},"notEstablished":{"type":"boolean"}},"required":["index","label","notEstablished"]}},"dependsOn":{"type":["object","null"],"properties":{"question":{"type":"string"},"when":{"type":"string"},"leadNumber":{"type":["string","null"]},"waitsFor":{"type":"array","items":{"type":"string"}}},"required":["question","when","leadNumber","waitsFor"]},"way":{"type":"string"},"tier":{"type":"string"},"mustHave":{"type":"boolean"},"asked":{"type":"boolean"},"about":{"type":"string"},"on":{"type":"string","enum":["route","place"]},"answer":{"type":["object","null"],"properties":{"factId":{"type":"string"},"options":{"type":"array","items":{"type":"number"}},"labels":{"type":"array","items":{"type":"string"}},"note":{"type":["string","null"]},"basis":{"type":"string"},"basisLine":{"type":"string"},"validFrom":{"type":"string"}},"required":["factId","options","labels","note","basis","basisLine","validFrom"]},"ruling":{"type":["object","null"],"properties":{"verdict":{"type":"string"},"seen":{"type":"boolean"},"on":{"type":"string"},"words":{"type":["string","null"]}},"required":["verdict","seen","on","words"]},"placeSays":{"type":["object","null"],"properties":{"labels":{"type":"array","items":{"type":"string"}},"basisLine":{"type":"string"}},"required":["labels","basisLine"]},"proposal":{"type":["object","null"],"properties":{"id":{"type":"string"},"kindLabel":{"type":"string"},"state":{"type":"string","enum":["open","accepted","declined","withdrawn"]},"declinedBecause":{"type":["string","null"]},"decidedByName":{"type":["string","null"]}},"required":["id","kindLabel","state","declinedBecause","decidedByName"]}},"required":["key","number","part","partTitle","section","sectionTitle","prompt","meaning","lookFor","input","options","dependsOn","way","tier","mustHave","asked","about","on","answer","ruling","placeSays","proposal"]}},"records":{"type":"array","items":{"type":"object","properties":{"key":{"type":"string"},"number":{"type":"string"},"part":{"type":"string"},"partTitle":{"type":"string"},"section":{"type":"string"},"sectionTitle":{"type":"string"},"prompt":{"type":"string"},"meaning":{"type":["string","null"]},"lookFor":{"type":["string","null"]},"input":{"type":"string"},"options":{"type":"array","items":{"type":"object","properties":{"index":{"type":"number"},"label":{"type":"string"},"notEstablished":{"type":"boolean"}},"required":["index","label","notEstablished"]}},"dependsOn":{"type":["object","null"],"properties":{"question":{"type":"string"},"when":{"type":"string"},"leadNumber":{"type":["string","null"]},"waitsFor":{"type":"array","items":{"type":"string"}}},"required":["question","when","leadNumber","waitsFor"]},"way":{"type":"string"},"tier":{"type":"string"},"mustHave":{"type":"boolean"},"asked":{"type":"boolean"},"about":{"type":"string"},"on":{"type":"string","enum":["route","place"]},"answer":{"type":["object","null"],"properties":{"factId":{"type":"string"},"options":{"type":"array","items":{"type":"number"}},"labels":{"type":"array","items":{"type":"string"}},"note":{"type":["string","null"]},"basis":{"type":"string"},"basisLine":{"type":"string"},"validFrom":{"type":"string"}},"required":["factId","options","labels","note","basis","basisLine","validFrom"]},"ruling":{"type":["object","null"],"properties":{"verdict":{"type":"string"},"seen":{"type":"boolean"},"on":{"type":"string"},"words":{"type":["string","null"]}},"required":["verdict","seen","on","words"]},"placeSays":{"type":["object","null"],"properties":{"labels":{"type":"array","items":{"type":"string"}},"basisLine":{"type":"string"}},"required":["labels","basisLine"]},"proposal":{"type":["object","null"],"properties":{"id":{"type":"string"},"kindLabel":{"type":"string"},"state":{"type":"string","enum":["open","accepted","declined","withdrawn"]},"declinedBecause":{"type":["string","null"]},"decidedByName":{"type":["string","null"]}},"required":["id","kindLabel","state","declinedBecause","decidedByName"]}},"required":["key","number","part","partTitle","section","sectionTitle","prompt","meaning","lookFor","input","options","dependsOn","way","tier","mustHave","asked","about","on","answer","ruling","placeSays","proposal"]}},"counts":{"type":"object","properties":{"asked":{"type":"number"},"ruled":{"type":"number"},"coreLeft":{"type":"number"}},"required":["asked","ruled","coreLeft"]},"secondSet":{"type":"object","properties":{"sealed":{"type":["object","null"],"properties":{"answerSetId":{"type":"string"},"sealedOn":{"type":"string"}},"required":["answerSetId","sealedOn"]},"blockers":{"type":"array","items":{"type":"string","enum":["no_plan","no_route","route_not_ruled"]}},"left":{"type":"array","items":{"type":"object","properties":{"key":{"type":"string"},"number":{"type":"string"},"prompt":{"type":"string"},"why":{"type":"string"}},"required":["key","number","prompt","why"]}}},"required":["sealed","blockers","left"]}},"required":["package","resourceId","residencyId","spaceId","planHandle","needs","primary","alternative","sections","rows","records","counts","secondSet"]},"WalkAnswer":{"type":"object","properties":{"question":{"type":"string","minLength":1,"maxLength":120},"options":{"type":"array","items":{"type":"integer","minimum":0,"maximum":40},"minItems":1,"maxItems":20},"note":{"type":"string","maxLength":500},"basisSource":{"type":"object","additionalProperties":{}},"basis":{"type":"string","minLength":1,"maxLength":20},"package":{"type":"string","maxLength":20}},"required":["question","options","basis"],"additionalProperties":false},"SecondSetSealed":{"type":"object","properties":{"answerSetId":{"type":"string"},"hash":{"type":"string"},"sealedOn":{"type":"string"}},"required":["answerSetId","hash","sealedOn"]},"ModelProposals":{"type":"object","properties":{"proposals":{"type":"array","items":{"allOf":[{"$ref":"#/components/schemas/ModelProposal"},{"type":"object","properties":{"raisedByName":{"type":"string"},"decidedByName":{"type":["string","null"]},"drawnSince":{"type":"boolean"},"placeName":{"type":"string"}},"required":["raisedByName","decidedByName","drawnSince","placeName"]}]}},"mayDecide":{"type":"boolean"}},"required":["proposals","mayDecide"]},"ModelProposal":{"type":"object","properties":{"id":{"type":"string","format":"uuid"},"kind":{"type":"string"},"kindLabel":{"type":"string"},"scopeKind":{"type":"string"},"scopeId":{"type":"string"},"words":{"type":"string"},"factId":{"type":["string","null"]},"raisedVia":{"type":"string"},"raisedBy":{"type":"string"},"raisedAt":{"type":"string"},"authoredAgainst":{"type":"string"},"state":{"type":"string","enum":["open","accepted","declined","withdrawn"]},"decidedBy":{"type":["string","null"]},"decidedAt":{"type":["string","null"]},"declinedBecause":{"type":["string","null"]},"acceptedIn":{"type":["string","null"]}},"required":["id","kind","kindLabel","scopeKind","scopeId","words","factId","raisedVia","raisedBy","raisedAt","authoredAgainst","state","decidedBy","decidedAt","declinedBecause","acceptedIn"]},"DeclineProposal":{"type":"object","properties":{"because":{"type":"string","maxLength":500}},"additionalProperties":false},"PlanHeadings":{"type":"object","properties":{"package":{"type":"string"},"planHandle":{"type":["string","null"]},"mayRecord":{"type":"boolean"},"mayEnd":{"type":"boolean"},"status":{"type":"string"},"ruling":{"type":"object","properties":{"finished":{"type":["object","null"],"properties":{"outcome":{"type":"string"},"outcomeWords":{"type":"string"},"level":{"type":"string"},"reason":{"type":["string","null"]},"on":{"type":"string"},"byName":{"type":"string"}},"required":["outcome","outcomeWords","level","reason","on","byName"]},"signedOff":{"type":["object","null"],"properties":{"level":{"type":"string"},"changed":{"type":"boolean"},"reason":{"type":["string","null"]},"standing":{"type":"string"},"standingWords":{"type":"string"},"on":{"type":"string"},"byName":{"type":"string"}},"required":["level","changed","reason","standing","standingWords","on","byName"]}},"required":["finished","signedOff"]},"routes":{"type":"object","properties":{"primary":{"type":["object","null"],"properties":{"handle":{"type":"string"},"name":{"type":"string"},"suited":{"type":"boolean"},"bound":{"type":"boolean"}},"required":["handle","name","suited","bound"]},"alternative":{"type":["object","null"],"properties":{"handle":{"type":"string"},"name":{"type":"string"},"suited":{"type":"boolean"},"bound":{"type":"boolean"}},"required":["handle","name","suited","bound"]},"residencyId":{"type":"string"}},"required":["primary","alternative","residencyId"]},"mayFinish":{"type":"boolean"},"maySignOff":{"type":"boolean"},"secondSetSealed":{"type":"boolean"},"headings":{"type":"array","items":{"type":"object","properties":{"key":{"type":"string"},"title":{"type":"string"},"named":{"type":["string","null"]},"state":{"type":"string","enum":["not_started","in_progress","done","held","nothing"]},"considerations":{"type":"array","items":{"type":"object","properties":{"id":{"type":"string"},"text":{"type":"string"},"advice":{"type":"string"},"aroseFrom":{"type":"array","items":{"type":"object","properties":{"question_set_key":{"type":"string"},"group_key":{"type":"string"},"question_key":{"type":"string"},"part":{"type":"string"},"outcome":{"type":"string"},"answers":{"type":"array","items":{"type":"string"}},"value":{"type":"number"}},"required":["question_set_key","group_key","question_key","outcome","answers"]}},"coveredBy":{"type":"array","items":{"type":"string"}}},"required":["id","text","advice","aroseFrom","coveredBy"]}},"offered":{"type":"array","items":{"type":"object","properties":{"id":{"type":"string"},"heading":{"type":"string"},"kind":{"type":"string","enum":["provision","promise","undertaking","accommodation","acceptance"]},"thing":{"type":["object","null"],"properties":{"key":{"type":"string"},"words":{"type":"string"},"id":{"type":"string"},"name":{"type":["string","null"]},"gone":{"type":"boolean"}},"required":["key","words","id","name","gone"]},"covers":{"type":"array","items":{"type":"string"}},"words":{"type":["string","null"]},"who":{"type":["string","null"]},"forAuthority":{"type":["string","null"]},"helper":{"type":["object","null"],"properties":{"kind":{"type":"string","enum":["post","person","stay","words"]},"id":{"type":["string","null"]},"name":{"type":["string","null"]},"agreed":{"type":["object","null"],"properties":{"how":{"type":"string","enum":["in-person","letter","phone","email"]},"on":{"type":"string"}},"required":["how","on"]}},"required":["kind","id","name","agreed"]},"hours":{"type":["string","null"]},"toAsk":{"type":"boolean"},"ended":{"type":["object","null"],"properties":{"by":{"type":"string","enum":["helper","helped","assessor"]},"why":{"type":["string","null"]},"on":{"type":"string"}},"required":["by","why","on"]},"lapsed":{"type":["string","null"]},"terms":{"type":["object","null"],"properties":{"does":{"type":"array","items":{"type":"object","properties":{"key":{"type":"string"},"words":{"type":"string"}},"required":["key","words"]}},"doesWords":{"type":["string","null"]},"competence":{"type":["object","null"],"properties":{"value":{"type":"string"},"words":{"type":"string"},"staffing":{"type":"boolean"}},"required":["value","words","staffing"]},"firstOrBackup":{"type":["string","null"],"enum":["first","backup",null]},"told":{"type":"object","properties":{"how":{"type":["string","null"],"enum":["alarm","staff-call","pager-or-app",null]},"words":{"type":["string","null"]}},"required":["how","words"]},"practised":{"type":"object","properties":{"on":{"type":["string","null"]},"words":{"type":["string","null"]}},"required":["on","words"]},"recordedOn":{"type":"string"}},"required":["does","doesWords","competence","firstOrBackup","told","practised","recordedOn"]},"assisting":{"type":["object","null"],"properties":{"where":{"type":["string","null"],"enum":["same-storey","another-storey",null]},"count":{"type":["number","null"]},"ownPlan":{"type":["string","null"]}},"required":["where","count","ownPlan"]},"dueOn":{"type":["string","null"]},"recordedOn":{"type":"string"},"recordedByName":{"type":"string"},"keepable":{"type":"boolean"},"why":{"type":["string","null"]},"coversNow":{"type":"array","items":{"type":"string"}}},"required":["id","heading","kind","thing","covers","words","who","forAuthority","helper","hours","toAsk","ended","lapsed","terms","assisting","dueOn","recordedOn","recordedByName","keepable","why","coversNow"]}},"answers":{"type":"array","items":{"type":"object","properties":{"id":{"type":"string"},"heading":{"type":"string"},"kind":{"type":"string","enum":["provision","promise","undertaking","accommodation","acceptance"]},"thing":{"type":["object","null"],"properties":{"key":{"type":"string"},"words":{"type":"string"},"id":{"type":"string"},"name":{"type":["string","null"]},"gone":{"type":"boolean"}},"required":["key","words","id","name","gone"]},"covers":{"type":"array","items":{"type":"string"}},"words":{"type":["string","null"]},"who":{"type":["string","null"]},"forAuthority":{"type":["string","null"]},"helper":{"type":["object","null"],"properties":{"kind":{"type":"string","enum":["post","person","stay","words"]},"id":{"type":["string","null"]},"name":{"type":["string","null"]},"agreed":{"type":["object","null"],"properties":{"how":{"type":"string","enum":["in-person","letter","phone","email"]},"on":{"type":"string"}},"required":["how","on"]}},"required":["kind","id","name","agreed"]},"hours":{"type":["string","null"]},"toAsk":{"type":"boolean"},"ended":{"type":["object","null"],"properties":{"by":{"type":"string","enum":["helper","helped","assessor"]},"why":{"type":["string","null"]},"on":{"type":"string"}},"required":["by","why","on"]},"lapsed":{"type":["string","null"]},"terms":{"type":["object","null"],"properties":{"does":{"type":"array","items":{"type":"object","properties":{"key":{"type":"string"},"words":{"type":"string"}},"required":["key","words"]}},"doesWords":{"type":["string","null"]},"competence":{"type":["object","null"],"properties":{"value":{"type":"string"},"words":{"type":"string"},"staffing":{"type":"boolean"}},"required":["value","words","staffing"]},"firstOrBackup":{"type":["string","null"],"enum":["first","backup",null]},"told":{"type":"object","properties":{"how":{"type":["string","null"],"enum":["alarm","staff-call","pager-or-app",null]},"words":{"type":["string","null"]}},"required":["how","words"]},"practised":{"type":"object","properties":{"on":{"type":["string","null"]},"words":{"type":["string","null"]}},"required":["on","words"]},"recordedOn":{"type":"string"}},"required":["does","doesWords","competence","firstOrBackup","told","practised","recordedOn"]},"assisting":{"type":["object","null"],"properties":{"where":{"type":["string","null"],"enum":["same-storey","another-storey",null]},"count":{"type":["number","null"]},"ownPlan":{"type":["string","null"]}},"required":["where","count","ownPlan"]},"dueOn":{"type":["string","null"]},"recordedOn":{"type":"string"},"recordedByName":{"type":"string"},"here":{"type":"boolean"}},"required":["id","heading","kind","thing","covers","words","who","forAuthority","helper","hours","toAsk","ended","lapsed","terms","assisting","dueOn","recordedOn","recordedByName","here"]}},"held":{"type":["object","null"],"properties":{"id":{"type":"string"},"words":{"type":["string","null"]},"forAuthority":{"type":["string","null"]},"on":{"type":"string"},"byName":{"type":"string"}},"required":["id","words","forAuthority","on","byName"]},"hours":{"type":["object","null"],"properties":{"open":{"type":"array","items":{"type":"string"}}},"required":["open"]},"offers":{"type":"array","items":{"type":"object","properties":{"id":{"type":"string"},"answer":{"type":"object","properties":{"kind":{"type":"string"},"covers":{"type":"array","items":{"type":"string"}},"words":{"type":["string","null"]},"who":{"type":["string","null"]}},"required":["kind","covers","words","who"]},"source":{"type":"object","properties":{"kind":{"type":"string"},"words":{"type":["string","null"]},"mediaId":{"type":["string","null"]}},"required":["kind","words","mediaId"]},"offeredAs":{"type":"string","enum":["person","assistant"]},"offeredByName":{"type":"string"},"offeredOn":{"type":"string"}},"required":["id","answer","source","offeredAs","offeredByName","offeredOn"]}},"may":{"type":"object","properties":{"provision":{"type":"array","items":{"type":"object","properties":{"thing":{"type":"string"},"words":{"type":"string"},"candidates":{"type":"array","items":{"type":"object","properties":{"id":{"type":"string"},"name":{"type":"string"}},"required":["id","name"]}}},"required":["thing","words","candidates"]}},"otherwise":{"type":"array","items":{"type":"object","properties":{"answer":{"type":"string","enum":["promise","undertaking","accommodation","acceptance"]},"words":{"type":"string"}},"required":["answer"]}}},"required":["provision","otherwise"]}},"required":["key","title","named","state","considerations","offered","answers","held","hours","offers","may"]}},"unplaced":{"type":"array","items":{"type":"object","properties":{"id":{"type":"string"},"text":{"type":"string"},"advice":{"type":"string"},"aroseFrom":{"type":"array","items":{"type":"object","properties":{"question_set_key":{"type":"string"},"group_key":{"type":"string"},"question_key":{"type":"string"},"part":{"type":"string"},"outcome":{"type":"string"},"answers":{"type":"array","items":{"type":"string"}},"value":{"type":"number"}},"required":["question_set_key","group_key","question_key","outcome","answers"]}},"coveredBy":{"type":"array","items":{"type":"string"}}},"required":["id","text","advice","aroseFrom","coveredBy"]}},"counts":{"type":"object","properties":{"done":{"type":"number"},"of":{"type":"number"},"nothing":{"type":"number"}},"required":["done","of","nothing"]}},"required":["package","planHandle","mayRecord","mayEnd","status","ruling","routes","mayFinish","maySignOff","secondSetSealed","headings","unplaced","counts"]},"HeadingAnswerMade":{"type":"object","properties":{"id":{"type":"string"}},"required":["id"]},"HeadingAnswer":{"type":"object","properties":{"heading":{"type":"string","minLength":1,"maxLength":40},"kind":{"type":"string","minLength":1,"maxLength":20},"thing":{"type":"string","minLength":1,"maxLength":40},"thingId":{"type":"string","minLength":1,"maxLength":200},"covers":{"type":"array","items":{"type":"string","minLength":1,"maxLength":200},"maxItems":200},"words":{"type":"string","maxLength":1000},"who":{"type":"string","maxLength":200},"dueOn":{"type":"string","maxLength":10},"forAuthority":{"type":"string","maxLength":300},"helper":{"oneOf":[{"type":"object","properties":{"kind":{"type":"string","enum":["post"]},"postId":{"type":"string","format":"uuid"}},"required":["kind","postId"],"additionalProperties":false},{"type":"object","properties":{"kind":{"type":"string","enum":["person"]},"personId":{"type":"string","format":"uuid"},"agreedHow":{"type":"string","maxLength":20},"agreedOn":{"type":"string","maxLength":10},"toAsk":{"type":"boolean"}},"required":["kind","personId"],"additionalProperties":false},{"type":"object","properties":{"kind":{"type":"string","enum":["stay"]},"stayId":{"type":"string","format":"uuid"},"agreedHow":{"type":"string","maxLength":20},"agreedOn":{"type":"string","maxLength":10},"toAsk":{"type":"boolean"}},"required":["kind","stayId"],"additionalProperties":false},{"type":"object","properties":{"kind":{"type":"string","enum":["words"]},"who":{"type":"string","maxLength":200},"agreedHow":{"type":"string","maxLength":20},"agreedOn":{"type":"string","maxLength":10},"toAsk":{"type":"boolean"}},"required":["kind","who"],"additionalProperties":false}]},"cover":{"type":"object","additionalProperties":{}},"terms":{"$ref":"#/components/schemas/UndertakingTerms"}},"required":["heading","kind"],"additionalProperties":false},"UndertakingTerms":{"type":"object","properties":{"does":{"type":"array","items":{"type":"string","minLength":1,"maxLength":40},"maxItems":20},"doesWords":{"type":"string","maxLength":1000},"competence":{"type":"string","maxLength":200},"competenceWords":{"type":"string","maxLength":200},"firstOrBackup":{"type":"string","maxLength":20},"toldHow":{"type":"string","maxLength":40},"toldWords":{"type":"string","maxLength":1000},"practisedOn":{"type":"string","maxLength":10},"practisedWords":{"type":"string","maxLength":1000}},"additionalProperties":false},"HeadingsLocked":{"type":"object","properties":{"relocked":{"type":"boolean","enum":[true]},"unchanged":{"type":"boolean"}},"required":["relocked","unchanged"]},"HeadingsLock":{"type":"object","properties":{},"additionalProperties":false},"HeadingHold":{"type":"object","properties":{"heading":{"type":"string","minLength":1,"maxLength":40},"words":{"type":"string","maxLength":1000},"forAuthority":{"type":"string","maxLength":300}},"required":["heading"],"additionalProperties":false},"HelpEnded":{"type":"object","properties":{"by":{"type":"string","enum":["helper","helped","assessor"]},"why":{"type":"string","maxLength":1000},"on":{"type":"string","maxLength":10}},"required":["by","why"],"additionalProperties":false},"HelperAnswered":{"oneOf":[{"type":"object","properties":{"answer":{"type":"string","enum":["yes"]},"agreedHow":{"type":"string","maxLength":20},"agreedOn":{"type":"string","maxLength":10}},"required":["answer","agreedHow","agreedOn"],"additionalProperties":false},{"type":"object","properties":{"answer":{"type":"string","enum":["no"]},"why":{"type":"string","maxLength":1000},"on":{"type":"string","maxLength":10}},"required":["answer","why"],"additionalProperties":false}]},"PlanFinished":{"type":"object","properties":{"outcome":{"type":"string","enum":["self","helped","no-safe-method","not-established"]},"level":{"type":"string","enum":["red","amber","green"]},"reason":{"type":"string","maxLength":1000}},"required":["outcome","level","reason"],"additionalProperties":false},"PlanSignedOff":{"type":"object","properties":{"standing":{"type":"string","minLength":1,"maxLength":60},"cites":{"type":"string","format":"uuid"},"level":{"type":"string","enum":["red","amber","green"]},"reason":{"type":"string","maxLength":1000},"overrules":{"type":"array","items":{"type":"object","properties":{"key":{"type":"string","minLength":1,"maxLength":240},"reason":{"type":"string","maxLength":1000}},"required":["key","reason"],"additionalProperties":false},"maxItems":100},"reviewMonths":{"type":"integer"},"reviewReason":{"type":"string","maxLength":1000}},"required":["standing"],"additionalProperties":false},"HelpsGiven":{"type":"object","properties":{"helps":{"type":"array","items":{"type":"object","properties":{"answerId":{"type":"string"},"helped":{"type":"object","properties":{"personId":{"type":"string"},"name":{"type":["string","null"]},"place":{"type":"string"}},"required":["personId","name","place"]},"hours":{"type":["string","null"]},"since":{"type":"string"},"terms":{"type":["object","null"],"properties":{"does":{"type":"array","items":{"type":"object","properties":{"key":{"type":"string"},"words":{"type":"string"}},"required":["key","words"]}},"doesWords":{"type":["string","null"]},"competence":{"type":["object","null"],"properties":{"value":{"type":"string"},"words":{"type":"string"},"staffing":{"type":"boolean"}},"required":["value","words","staffing"]},"firstOrBackup":{"type":["string","null"],"enum":["first","backup",null]},"told":{"type":"object","properties":{"how":{"type":["string","null"],"enum":["alarm","staff-call","pager-or-app",null]},"words":{"type":["string","null"]}},"required":["how","words"]},"practised":{"type":"object","properties":{"on":{"type":["string","null"]},"words":{"type":["string","null"]}},"required":["on","words"]},"recordedOn":{"type":"string"}},"required":["does","doesWords","competence","firstOrBackup","told","practised","recordedOn"]}},"required":["answerId","helped","hours","since","terms"]}}},"required":["helps"]},"AssistingHere":{"type":"object","properties":{"place":{"type":"object","properties":{"id":{"type":"string"},"name":{"type":"string"}},"required":["id","name"]},"groups":{"type":"object","properties":{"staff":{"type":"array","items":{"type":"object","properties":{"key":{"type":"string"},"kind":{"type":"string","enum":["post","person","stay","words"]},"id":{"type":["string","null"]},"name":{"type":["string","null"]},"hidden":{"type":"boolean"},"hours":{"type":["string","null"]},"count":{"type":["number","null"]},"ownPlan":{"type":["string","null"]},"assists":{"type":"array","items":{"type":"object","properties":{"answerId":{"type":"string"},"personId":{"type":["string","null"]},"name":{"type":["string","null"]},"hidden":{"type":"boolean"},"handle":{"type":["string","null"]},"heading":{"type":["object","null"],"properties":{"key":{"type":"string"},"title":{"type":"string"}},"required":["key","title"]},"hours":{"type":["string","null"]},"toAsk":{"type":"boolean"},"where":{"type":["string","null"],"enum":["same-storey","another-storey",null]},"terms":{"type":["object","null"],"properties":{"does":{"type":"array","items":{"type":"object","properties":{"key":{"type":"string"},"words":{"type":"string"}},"required":["key","words"]}},"doesWords":{"type":["string","null"]},"competence":{"type":["object","null"],"properties":{"value":{"type":"string"},"words":{"type":"string"},"staffing":{"type":"boolean"}},"required":["value","words","staffing"]},"firstOrBackup":{"type":["string","null"],"enum":["first","backup",null]},"told":{"type":"object","properties":{"how":{"type":["string","null"],"enum":["alarm","staff-call","pager-or-app",null]},"words":{"type":["string","null"]}},"required":["how","words"]},"practised":{"type":"object","properties":{"on":{"type":["string","null"]},"words":{"type":["string","null"]}},"required":["on","words"]},"recordedOn":{"type":"string"}},"required":["does","doesWords","competence","firstOrBackup","told","practised","recordedOn"]}},"required":["answerId","personId","name","hidden","handle","heading","hours","toAsk","where","terms"]}}},"required":["key","kind","id","name","hidden","hours","count","ownPlan","assists"]}},"living":{"type":"array","items":{"type":"object","properties":{"key":{"type":"string"},"kind":{"type":"string","enum":["post","person","stay","words"]},"id":{"type":["string","null"]},"name":{"type":["string","null"]},"hidden":{"type":"boolean"},"hours":{"type":["string","null"]},"count":{"type":["number","null"]},"ownPlan":{"type":["string","null"]},"assists":{"type":"array","items":{"type":"object","properties":{"answerId":{"type":"string"},"personId":{"type":["string","null"]},"name":{"type":["string","null"]},"hidden":{"type":"boolean"},"handle":{"type":["string","null"]},"heading":{"type":["object","null"],"properties":{"key":{"type":"string"},"title":{"type":"string"}},"required":["key","title"]},"hours":{"type":["string","null"]},"toAsk":{"type":"boolean"},"where":{"type":["string","null"],"enum":["same-storey","another-storey",null]},"terms":{"type":["object","null"],"properties":{"does":{"type":"array","items":{"type":"object","properties":{"key":{"type":"string"},"words":{"type":"string"}},"required":["key","words"]}},"doesWords":{"type":["string","null"]},"competence":{"type":["object","null"],"properties":{"value":{"type":"string"},"words":{"type":"string"},"staffing":{"type":"boolean"}},"required":["value","words","staffing"]},"firstOrBackup":{"type":["string","null"],"enum":["first","backup",null]},"told":{"type":"object","properties":{"how":{"type":["string","null"],"enum":["alarm","staff-call","pager-or-app",null]},"words":{"type":["string","null"]}},"required":["how","words"]},"practised":{"type":"object","properties":{"on":{"type":["string","null"]},"words":{"type":["string","null"]}},"required":["on","words"]},"recordedOn":{"type":"string"}},"required":["does","doesWords","competence","firstOrBackup","told","practised","recordedOn"]}},"required":["answerId","personId","name","hidden","handle","heading","hours","toAsk","where","terms"]}}},"required":["key","kind","id","name","hidden","hours","count","ownPlan","assists"]}},"guests":{"type":"array","items":{"type":"object","properties":{"key":{"type":"string"},"kind":{"type":"string","enum":["post","person","stay","words"]},"id":{"type":["string","null"]},"name":{"type":["string","null"]},"hidden":{"type":"boolean"},"hours":{"type":["string","null"]},"count":{"type":["number","null"]},"ownPlan":{"type":["string","null"]},"assists":{"type":"array","items":{"type":"object","properties":{"answerId":{"type":"string"},"personId":{"type":["string","null"]},"name":{"type":["string","null"]},"hidden":{"type":"boolean"},"handle":{"type":["string","null"]},"heading":{"type":["object","null"],"properties":{"key":{"type":"string"},"title":{"type":"string"}},"required":["key","title"]},"hours":{"type":["string","null"]},"toAsk":{"type":"boolean"},"where":{"type":["string","null"],"enum":["same-storey","another-storey",null]},"terms":{"type":["object","null"],"properties":{"does":{"type":"array","items":{"type":"object","properties":{"key":{"type":"string"},"words":{"type":"string"}},"required":["key","words"]}},"doesWords":{"type":["string","null"]},"competence":{"type":["object","null"],"properties":{"value":{"type":"string"},"words":{"type":"string"},"staffing":{"type":"boolean"}},"required":["value","words","staffing"]},"firstOrBackup":{"type":["string","null"],"enum":["first","backup",null]},"told":{"type":"object","properties":{"how":{"type":["string","null"],"enum":["alarm","staff-call","pager-or-app",null]},"words":{"type":["string","null"]}},"required":["how","words"]},"practised":{"type":"object","properties":{"on":{"type":["string","null"]},"words":{"type":["string","null"]}},"required":["on","words"]},"recordedOn":{"type":"string"}},"required":["does","doesWords","competence","firstOrBackup","told","practised","recordedOn"]}},"required":["answerId","personId","name","hidden","handle","heading","hours","toAsk","where","terms"]}}},"required":["key","kind","id","name","hidden","hours","count","ownPlan","assists"]}},"others":{"type":"array","items":{"type":"object","properties":{"key":{"type":"string"},"kind":{"type":"string","enum":["post","person","stay","words"]},"id":{"type":["string","null"]},"name":{"type":["string","null"]},"hidden":{"type":"boolean"},"hours":{"type":["string","null"]},"count":{"type":["number","null"]},"ownPlan":{"type":["string","null"]},"assists":{"type":"array","items":{"type":"object","properties":{"answerId":{"type":"string"},"personId":{"type":["string","null"]},"name":{"type":["string","null"]},"hidden":{"type":"boolean"},"handle":{"type":["string","null"]},"heading":{"type":["object","null"],"properties":{"key":{"type":"string"},"title":{"type":"string"}},"required":["key","title"]},"hours":{"type":["string","null"]},"toAsk":{"type":"boolean"},"where":{"type":["string","null"],"enum":["same-storey","another-storey",null]},"terms":{"type":["object","null"],"properties":{"does":{"type":"array","items":{"type":"object","properties":{"key":{"type":"string"},"words":{"type":"string"}},"required":["key","words"]}},"doesWords":{"type":["string","null"]},"competence":{"type":["object","null"],"properties":{"value":{"type":"string"},"words":{"type":"string"},"staffing":{"type":"boolean"}},"required":["value","words","staffing"]},"firstOrBackup":{"type":["string","null"],"enum":["first","backup",null]},"told":{"type":"object","properties":{"how":{"type":["string","null"],"enum":["alarm","staff-call","pager-or-app",null]},"words":{"type":["string","null"]}},"required":["how","words"]},"practised":{"type":"object","properties":{"on":{"type":["string","null"]},"words":{"type":["string","null"]}},"required":["on","words"]},"recordedOn":{"type":"string"}},"required":["does","doesWords","competence","firstOrBackup","told","practised","recordedOn"]}},"required":["answerId","personId","name","hidden","handle","heading","hours","toAsk","where","terms"]}}},"required":["key","kind","id","name","hidden","hours","count","ownPlan","assists"]}}},"required":["staff","living","guests","others"]}},"required":["place","groups"]},"Jobs":{"type":"object","properties":{"jobs":{"type":"array","items":{"type":"object","properties":{"key":{"type":"string"},"kind":{"type":"string","enum":["promise","not_established","proposal","thing_gone","record_gap","referral","help_ended","ask_helper","raised","hand","rco","permission","flat","app-note","link-requests","move-out","book-out","chat","route-check","public-page","stay-waiting","message-surge","flat-answers","problem_seen","check_problem","service_due","asset_moved_out","invitation-make","invitation-look","invitation-again","invitation-yearly","invitation-times","invitation-wait","invitation-book","invitation-visit","invitation-question","invitation-cancel","invitation-rearrange","invitation-arrange","invitation-check","findings-task","contact"]},"owedBy":{"type":"string"},"what":{"type":"string"},"dueOn":{"type":["string","null"]},"raisedOn":{"type":"string"},"about":{"type":["object","null"],"properties":{"personId":{"type":"string"},"personName":{"type":["string","null"]},"residencyId":{"type":"string"},"handle":{"type":["string","null"]},"heading":{"type":["string","null"]}},"required":["personId","personName","residencyId","handle","heading"]},"where":{"type":["string","null"]},"closed":{"type":["object","null"],"properties":{"state":{"type":"string","enum":["done","declined","no_longer_needed"]},"words":{"type":["string","null"]},"on":{"type":"string"},"byName":{"type":"string"}},"required":["state","words","on","byName"]},"hand":{"type":["string","null"],"enum":["ask","fit","record","book","other",null]},"status":{"type":"string","enum":["open","in_hand","booked","waiting"]},"owner":{"type":["object","null"],"properties":{"kind":{"type":"string","enum":["member","team","words"]},"id":{"type":["string","null"]},"name":{"type":"string"}},"required":["kind","id","name"]},"blocks":{"type":"boolean"},"overruled":{"type":["object","null"],"properties":{"reason":{"type":["string","null"]},"on":{"type":"string"},"byName":{"type":"string"}},"required":["reason","on","byName"]},"raised":{"type":"object","properties":{"owedBy":{"type":"string"},"dueOn":{"type":["string","null"]}},"required":["owedBy","dueOn"]},"trail":{"type":"array","items":{"type":"object","properties":{"id":{"type":"string"},"kind":{"type":"string","enum":["note","status","owner","due","blocks","overrule","taken","brief","done_when","title","start","priority","signed_off","repeat"]},"at":{"type":"string"},"byName":{"type":"string"},"source":{"type":"string","enum":["member","assessor-default"]},"words":{"type":["string","null"]},"status":{"type":["string","null"],"enum":["open","in_hand","booked","waiting",null]},"owner":{"type":["object","null"],"properties":{"kind":{"type":"string","enum":["member","team","words"]},"id":{"type":["string","null"]},"name":{"type":"string"}},"required":["kind","id","name"]},"dueOn":{"type":["string","null"]},"blocks":{"type":["boolean","null"]},"by":{"type":"string"},"startOn":{"type":["string","null"]},"priority":{"type":["string","null"],"enum":["low","medium","high","urgent",null]},"repeats":{"type":["string","null"],"enum":["none","monthly","six_monthly","yearly",null]}},"required":["id","kind","at","byName","source","words","status","owner","dueOn","blocks","by","startOn","priority","repeats"]}},"brief":{"type":["string","null"]},"doneWhen":{"type":["string","null"]},"startOn":{"type":["string","null"]},"priority":{"type":"string","enum":["low","medium","high","urgent"]},"parentKey":{"type":["string","null"]},"steps":{"type":"array","items":{"type":"string"}},"subjects":{"type":"array","items":{"type":"object","properties":{"kind":{"type":"string","enum":["building","person","rpeep","rpeep-v2","flat","space","asset","post"]},"id":{"type":"string"},"since":{"type":"string"},"name":{"type":["string","null"]},"personId":{"type":"string"},"workedOut":{"type":"boolean","enum":[true]}},"required":["kind","id","since"]}},"involved":{"type":"array","items":{"type":"object","properties":{"kind":{"type":"string","enum":["member","team"]},"id":{"type":"string"},"name":{"type":"string"}},"required":["kind","id","name"]}},"signer":{"type":["object","null"],"properties":{"kind":{"type":"string","enum":["member","team"]},"id":{"type":"string"},"name":{"type":"string"}},"required":["kind","id","name"]},"signedOff":{"type":["object","null"],"properties":{"on":{"type":"string"},"byName":{"type":"string"}},"required":["on","byName"]},"repeats":{"type":"string","enum":["none","monthly","six_monthly","yearly"]},"repeatOf":{"type":["string","null"]},"reminders":{"type":"array","items":{"type":"object","properties":{"id":{"type":"string"},"daysBefore":{"type":"integer"},"to":{"type":"string","enum":["owner","involved","member"]},"member":{"type":["object","null"],"properties":{"kind":{"type":"string","enum":["member","team"]},"id":{"type":"string"},"name":{"type":"string"}},"required":["kind","id","name"]},"sendsOn":{"type":["string","null"]},"since":{"type":"string"}},"required":["id","daysBefore","to","member","sendsOn","since"]}},"files":{"type":"array","items":{"type":"object","properties":{"id":{"type":"string"},"mediaId":{"type":"string"},"reference":{"type":"string"},"filename":{"type":["string","null"]},"kind":{"type":"string"},"mediaType":{"type":"string"},"size":{"type":"integer"},"at":{"type":"string"},"byName":{"type":"string"}},"required":["id","mediaId","reference","filename","kind","mediaType","size","at","byName"]}},"links":{"type":"array","items":{"type":"object","properties":{"id":{"type":"string"},"url":{"type":["string","null"]},"label":{"type":["string","null"]},"at":{"type":"string"},"byName":{"type":"string"}},"required":["id","url","label","at","byName"]}},"tags":{"type":"array","items":{"type":"string"}},"waitsFor":{"type":"array","items":{"type":"object","properties":{"key":{"type":"string"},"what":{"type":"string"},"closed":{"type":"boolean"},"hidden":{"type":"boolean"},"workedOut":{"type":"boolean","enum":[true]}},"required":["key","what","closed"]}},"waitedOnBy":{"type":"array","items":{"type":"string"}},"waitsOpen":{"type":"integer"},"readySince":{"type":["string","null"]},"stepsTotal":{"type":"integer"},"stepsDone":{"type":"integer"},"peopleHidden":{"type":"integer"},"stepsHidden":{"type":"integer"},"stepsHiddenOpen":{"type":"integer"},"noLongerRaised":{"type":"boolean"},"noLongerRaisedWords":{"type":["string","null"]},"rco":{"type":"object","properties":{"id":{"type":"string"},"standing":{"type":"boolean"}},"required":["id","standing"]},"flat":{"type":"object","properties":{"answerRowId":{"type":"string"}},"required":["answerRowId"]},"appNote":{"type":"object","properties":{"noteRowId":{"type":"string"}},"required":["noteRowId"]},"linkRequests":{"type":"object","properties":{"kind":{"type":"string","enum":["link","speak"]},"waiting":{"type":"integer"}},"required":["kind","waiting"]},"moveOut":{"type":"object","properties":{"rowId":{"type":"string"},"residencyId":{"type":"string"},"expectedOn":{"type":"string"},"escalated":{"type":"boolean"},"moving":{"type":"boolean"}},"required":["rowId","residencyId","expectedOn","escalated","moving"]},"stay":{"type":"object","properties":{"stayId":{"type":"string"},"dueAt":{"type":"string"},"escalated":{"type":"boolean"}},"required":["stayId","dueAt","escalated"]},"chat":{"type":"object","properties":{"conversationId":{"type":"string"},"kind":{"type":"string","enum":["resident","representative","guest"]}},"required":["conversationId","kind"]},"routeCheck":{"type":"object","properties":{"handle":{"type":"string"},"setId":{"type":"string"},"checks":{"type":"integer"},"signedOff":{"type":"boolean"}},"required":["handle","setId","checks","signedOff"]},"publicPage":{"type":"object","properties":{"version":{"type":"integer"},"lines":{"type":"array","items":{"type":"string","enum":["strategy","lift","whereToGo","parts"]}}},"required":["version","lines"]},"waiting":{"type":"object","properties":{"stayId":{"type":"string"},"lapsesAt":{"type":"string"}},"required":["stayId","lapsesAt"]},"surge":{"type":"object","properties":{"placeId":{"type":"string"},"count":{"type":"integer"}},"required":["placeId","count"]},"checkProblem":{"type":"object","properties":{"recordId":{"type":"string"},"assetId":{"type":"string"},"problem":{"type":["string","null"]},"line":{"type":["string","null"]},"words":{"type":["string","null"]},"wordsAboutPersonId":{"type":["string","null"]},"photos":{"type":"array","items":{"type":"string"}},"hidden":{"type":"boolean","enum":[true]}},"required":["recordId","assetId","problem","line","words","wordsAboutPersonId","photos"]},"service":{"type":"object","properties":{"upkeepId":{"type":"string"},"assetId":{"type":"string"},"name":{"type":"string"},"brief":{"type":"string"}},"required":["upkeepId","assetId","name","brief"]},"assetMovedOut":{"type":"object","properties":{"assetId":{"type":"string"},"residencyId":{"type":"string"},"asset":{"type":"string"},"who":{"type":"string"}},"required":["assetId","residencyId","asset","who"]},"fed":{"type":"object","properties":{"by":{"type":"string"},"facts":{"type":"object","additionalProperties":{"anyOf":[{"type":"string"},{"type":"number"},{"type":"null"}]}}},"required":["by","facts"]},"report":{"type":"object","properties":{"asks":{"type":"array","items":{"type":"string"}},"said":{"type":["string","null"]},"given":{"type":"boolean","enum":[true]},"waiting":{"type":["object","null"],"properties":{"id":{"type":"string"},"reporterId":{"type":"string"},"byName":{"type":"string"},"at":{"type":"string"},"sentence":{"type":["string","null"]}},"required":["id","reporterId","byName","at","sentence"]},"sentBack":{"type":["object","null"],"properties":{"reporterId":{"type":"string"},"byName":{"type":"string"},"at":{"type":"string"},"reason":{"type":["string","null"]}},"required":["reporterId","byName","at","reason"]}},"required":["asks"]},"personWords":{"type":["string","null"]},"flatAnswers":{"type":"object","properties":{"waiting":{"type":"integer"}},"required":["waiting"]},"contact":{"type":"object","properties":{"id":{"type":"string"},"first":{"type":"string"},"mode":{"type":"string","enum":["visit","call","letter"]},"purpose":{"type":["string","null"]},"jobKey":{"type":["string","null"]},"titled":{"type":"boolean"},"handle":{"type":["string","null"]},"threadId":{"type":["string","null"]},"day":{"type":"string"},"time":{"type":["string","null"]},"going":{"type":"object","properties":{"kind":{"type":"string","enum":["member","team"]},"id":{"type":"string"},"name":{"type":"string"}},"required":["kind","id","name"]},"present":{"type":"object","properties":{"person":{"type":"boolean"},"parties":{"type":"array","items":{"type":"object","properties":{"id":{"type":"string"},"words":{"type":"string"}},"required":["id","words"]}},"words":{"type":["string","null"]}},"required":["person","parties","words"]},"toldOn":{"type":["string","null"]},"outcome":{"type":["object","null"],"properties":{"outcome":{"type":"string","enum":["happened","didnt_happen"]},"words":{"type":["string","null"]},"at":{"type":"string"},"byName":{"type":"string"}},"required":["outcome","words","at","byName"]},"moves":{"type":"array","items":{"type":"object","properties":{"fromDay":{"type":"string"},"fromTime":{"type":["string","null"]},"at":{"type":"string"},"byName":{"type":"string"}},"required":["fromDay","fromTime","at","byName"]}}},"required":["id","first","mode","purpose","jobKey","titled","handle","threadId","day","time","going","present","toldOn","outcome","moves"]},"permission":{"type":"object","properties":{"job":{"type":"string","enum":["reach","review","keep","notice","app-answer","app-answer-for"]},"notice":{"type":"object","properties":{"kind":{"type":"string"},"domain":{"type":"string"},"answeredOn":{"type":"string"},"decidedOn":{"type":"string"}},"required":["kind","domain","answeredOn","decidedOn"]}},"required":["job"]}},"required":["key","kind","owedBy","what","dueOn","raisedOn","about","where","closed","hand","status","owner","blocks","overruled","raised","trail","brief","doneWhen","startOn","priority","parentKey","steps","subjects","involved","signer","signedOff","repeats","repeatOf","reminders","files","links","tags","waitsFor","waitedOnBy","waitsOpen","readySince","stepsTotal","stepsDone","peopleHidden","stepsHidden","stepsHiddenOpen","noLongerRaised","noLongerRaisedWords"]}},"mayClose":{"type":"boolean"}},"required":["jobs","mayClose"]},"JobClosed":{"type":"object","properties":{"key":{"type":"string"},"next":{"type":"string"}},"required":["key"]},"JobClose":{"type":"object","properties":{"key":{"type":"string","minLength":1,"maxLength":240},"state":{"type":"string","minLength":1,"maxLength":20},"words":{"type":"string","maxLength":1000},"closeSteps":{"type":"boolean"},"confirmWaits":{"type":"boolean"}},"required":["key","state"],"additionalProperties":false},"JobEntryMade":{"type":"object","properties":{"id":{"type":"string"},"key":{"type":"string"}},"required":["id","key"]},"ResourceJobEntry":{"type":"object","properties":{"kind":{"type":"string","minLength":1,"maxLength":20},"owner":{"type":"object","properties":{"kind":{"type":"string","minLength":1,"maxLength":20},"id":{"type":"string","maxLength":60},"words":{"type":"string","maxLength":200}},"required":["kind"],"additionalProperties":false},"dueOn":{"type":"string","maxLength":10},"words":{"type":"string","maxLength":4000},"status":{"type":"string","maxLength":20},"startOn":{"type":"string","maxLength":10},"priority":{"type":"string","maxLength":20},"repeats":{"type":"string","maxLength":20},"blocks":{"type":"boolean"}},"required":["kind"],"additionalProperties":false},"TaskDone":{"type":"object","properties":{"key":{"type":"string"}},"required":["key"]},"TaskRaised":{"type":"object","properties":{"title":{"type":"string","maxLength":200},"kind":{"type":"string","minLength":1,"maxLength":20},"brief":{"type":"string","maxLength":4000},"doneWhen":{"type":"string","maxLength":1000},"owner":{"type":"object","properties":{"kind":{"type":"string","minLength":1,"maxLength":20},"id":{"type":"string","maxLength":60},"words":{"type":"string","maxLength":200}},"required":["kind"],"additionalProperties":false},"dueOn":{"type":"string","maxLength":10},"startOn":{"type":"string","maxLength":10},"priority":{"type":"string","maxLength":20},"subjects":{"type":"array","items":{"type":"object","properties":{"kind":{"type":"string","minLength":1,"maxLength":20},"id":{"type":"string","minLength":1,"maxLength":200}},"required":["kind","id"],"additionalProperties":false},"maxItems":20}},"required":["title"],"additionalProperties":false},"TaskCard":{"type":"object","properties":{"job":{"type":"object","properties":{"key":{"type":"string"},"kind":{"type":"string","enum":["promise","not_established","proposal","thing_gone","record_gap","referral","help_ended","ask_helper","raised","hand","rco","permission","flat","app-note","link-requests","move-out","book-out","chat","route-check","public-page","stay-waiting","message-surge","flat-answers","problem_seen","check_problem","service_due","asset_moved_out","invitation-make","invitation-look","invitation-again","invitation-yearly","invitation-times","invitation-wait","invitation-book","invitation-visit","invitation-question","invitation-cancel","invitation-rearrange","invitation-arrange","invitation-check","findings-task","contact"]},"owedBy":{"type":"string"},"what":{"type":"string"},"dueOn":{"type":["string","null"]},"raisedOn":{"type":"string"},"about":{"type":["object","null"],"properties":{"personId":{"type":"string"},"personName":{"type":["string","null"]},"residencyId":{"type":"string"},"handle":{"type":["string","null"]},"heading":{"type":["string","null"]}},"required":["personId","personName","residencyId","handle","heading"]},"where":{"type":["string","null"]},"closed":{"type":["object","null"],"properties":{"state":{"type":"string","enum":["done","declined","no_longer_needed"]},"words":{"type":["string","null"]},"on":{"type":"string"},"byName":{"type":"string"}},"required":["state","words","on","byName"]},"hand":{"type":["string","null"],"enum":["ask","fit","record","book","other",null]},"status":{"type":"string","enum":["open","in_hand","booked","waiting"]},"owner":{"type":["object","null"],"properties":{"kind":{"type":"string","enum":["member","team","words"]},"id":{"type":["string","null"]},"name":{"type":"string"}},"required":["kind","id","name"]},"blocks":{"type":"boolean"},"overruled":{"type":["object","null"],"properties":{"reason":{"type":["string","null"]},"on":{"type":"string"},"byName":{"type":"string"}},"required":["reason","on","byName"]},"raised":{"type":"object","properties":{"owedBy":{"type":"string"},"dueOn":{"type":["string","null"]}},"required":["owedBy","dueOn"]},"trail":{"type":"array","items":{"type":"object","properties":{"id":{"type":"string"},"kind":{"type":"string","enum":["note","status","owner","due","blocks","overrule","taken","brief","done_when","title","start","priority","signed_off","repeat"]},"at":{"type":"string"},"byName":{"type":"string"},"source":{"type":"string","enum":["member","assessor-default"]},"words":{"type":["string","null"]},"status":{"type":["string","null"],"enum":["open","in_hand","booked","waiting",null]},"owner":{"type":["object","null"],"properties":{"kind":{"type":"string","enum":["member","team","words"]},"id":{"type":["string","null"]},"name":{"type":"string"}},"required":["kind","id","name"]},"dueOn":{"type":["string","null"]},"blocks":{"type":["boolean","null"]},"by":{"type":"string"},"startOn":{"type":["string","null"]},"priority":{"type":["string","null"],"enum":["low","medium","high","urgent",null]},"repeats":{"type":["string","null"],"enum":["none","monthly","six_monthly","yearly",null]}},"required":["id","kind","at","byName","source","words","status","owner","dueOn","blocks","by","startOn","priority","repeats"]}},"brief":{"type":["string","null"]},"doneWhen":{"type":["string","null"]},"startOn":{"type":["string","null"]},"priority":{"type":"string","enum":["low","medium","high","urgent"]},"parentKey":{"type":["string","null"]},"steps":{"type":"array","items":{"type":"string"}},"subjects":{"type":"array","items":{"type":"object","properties":{"kind":{"type":"string","enum":["building","person","rpeep","rpeep-v2","flat","space","asset","post"]},"id":{"type":"string"},"since":{"type":"string"},"name":{"type":["string","null"]},"personId":{"type":"string"},"workedOut":{"type":"boolean","enum":[true]}},"required":["kind","id","since"]}},"involved":{"type":"array","items":{"type":"object","properties":{"kind":{"type":"string","enum":["member","team"]},"id":{"type":"string"},"name":{"type":"string"}},"required":["kind","id","name"]}},"signer":{"type":["object","null"],"properties":{"kind":{"type":"string","enum":["member","team"]},"id":{"type":"string"},"name":{"type":"string"}},"required":["kind","id","name"]},"signedOff":{"type":["object","null"],"properties":{"on":{"type":"string"},"byName":{"type":"string"}},"required":["on","byName"]},"repeats":{"type":"string","enum":["none","monthly","six_monthly","yearly"]},"repeatOf":{"type":["string","null"]},"reminders":{"type":"array","items":{"type":"object","properties":{"id":{"type":"string"},"daysBefore":{"type":"integer"},"to":{"type":"string","enum":["owner","involved","member"]},"member":{"type":["object","null"],"properties":{"kind":{"type":"string","enum":["member","team"]},"id":{"type":"string"},"name":{"type":"string"}},"required":["kind","id","name"]},"sendsOn":{"type":["string","null"]},"since":{"type":"string"}},"required":["id","daysBefore","to","member","sendsOn","since"]}},"files":{"type":"array","items":{"type":"object","properties":{"id":{"type":"string"},"mediaId":{"type":"string"},"reference":{"type":"string"},"filename":{"type":["string","null"]},"kind":{"type":"string"},"mediaType":{"type":"string"},"size":{"type":"integer"},"at":{"type":"string"},"byName":{"type":"string"}},"required":["id","mediaId","reference","filename","kind","mediaType","size","at","byName"]}},"links":{"type":"array","items":{"type":"object","properties":{"id":{"type":"string"},"url":{"type":["string","null"]},"label":{"type":["string","null"]},"at":{"type":"string"},"byName":{"type":"string"}},"required":["id","url","label","at","byName"]}},"tags":{"type":"array","items":{"type":"string"}},"waitsFor":{"type":"array","items":{"type":"object","properties":{"key":{"type":"string"},"what":{"type":"string"},"closed":{"type":"boolean"},"hidden":{"type":"boolean"},"workedOut":{"type":"boolean","enum":[true]}},"required":["key","what","closed"]}},"waitedOnBy":{"type":"array","items":{"type":"string"}},"waitsOpen":{"type":"integer"},"readySince":{"type":["string","null"]},"stepsTotal":{"type":"integer"},"stepsDone":{"type":"integer"},"peopleHidden":{"type":"integer"},"stepsHidden":{"type":"integer"},"stepsHiddenOpen":{"type":"integer"},"noLongerRaised":{"type":"boolean"},"noLongerRaisedWords":{"type":["string","null"]},"rco":{"type":"object","properties":{"id":{"type":"string"},"standing":{"type":"boolean"}},"required":["id","standing"]},"flat":{"type":"object","properties":{"answerRowId":{"type":"string"}},"required":["answerRowId"]},"appNote":{"type":"object","properties":{"noteRowId":{"type":"string"}},"required":["noteRowId"]},"linkRequests":{"type":"object","properties":{"kind":{"type":"string","enum":["link","speak"]},"waiting":{"type":"integer"}},"required":["kind","waiting"]},"moveOut":{"type":"object","properties":{"rowId":{"type":"string"},"residencyId":{"type":"string"},"expectedOn":{"type":"string"},"escalated":{"type":"boolean"},"moving":{"type":"boolean"}},"required":["rowId","residencyId","expectedOn","escalated","moving"]},"stay":{"type":"object","properties":{"stayId":{"type":"string"},"dueAt":{"type":"string"},"escalated":{"type":"boolean"}},"required":["stayId","dueAt","escalated"]},"chat":{"type":"object","properties":{"conversationId":{"type":"string"},"kind":{"type":"string","enum":["resident","representative","guest"]}},"required":["conversationId","kind"]},"routeCheck":{"type":"object","properties":{"handle":{"type":"string"},"setId":{"type":"string"},"checks":{"type":"integer"},"signedOff":{"type":"boolean"}},"required":["handle","setId","checks","signedOff"]},"publicPage":{"type":"object","properties":{"version":{"type":"integer"},"lines":{"type":"array","items":{"type":"string","enum":["strategy","lift","whereToGo","parts"]}}},"required":["version","lines"]},"waiting":{"type":"object","properties":{"stayId":{"type":"string"},"lapsesAt":{"type":"string"}},"required":["stayId","lapsesAt"]},"surge":{"type":"object","properties":{"placeId":{"type":"string"},"count":{"type":"integer"}},"required":["placeId","count"]},"checkProblem":{"type":"object","properties":{"recordId":{"type":"string"},"assetId":{"type":"string"},"problem":{"type":["string","null"]},"line":{"type":["string","null"]},"words":{"type":["string","null"]},"wordsAboutPersonId":{"type":["string","null"]},"photos":{"type":"array","items":{"type":"string"}},"hidden":{"type":"boolean","enum":[true]}},"required":["recordId","assetId","problem","line","words","wordsAboutPersonId","photos"]},"service":{"type":"object","properties":{"upkeepId":{"type":"string"},"assetId":{"type":"string"},"name":{"type":"string"},"brief":{"type":"string"}},"required":["upkeepId","assetId","name","brief"]},"assetMovedOut":{"type":"object","properties":{"assetId":{"type":"string"},"residencyId":{"type":"string"},"asset":{"type":"string"},"who":{"type":"string"}},"required":["assetId","residencyId","asset","who"]},"fed":{"type":"object","properties":{"by":{"type":"string"},"facts":{"type":"object","additionalProperties":{"anyOf":[{"type":"string"},{"type":"number"},{"type":"null"}]}}},"required":["by","facts"]},"report":{"type":"object","properties":{"asks":{"type":"array","items":{"type":"string"}},"said":{"type":["string","null"]},"given":{"type":"boolean","enum":[true]},"waiting":{"type":["object","null"],"properties":{"id":{"type":"string"},"reporterId":{"type":"string"},"byName":{"type":"string"},"at":{"type":"string"},"sentence":{"type":["string","null"]}},"required":["id","reporterId","byName","at","sentence"]},"sentBack":{"type":["object","null"],"properties":{"reporterId":{"type":"string"},"byName":{"type":"string"},"at":{"type":"string"},"reason":{"type":["string","null"]}},"required":["reporterId","byName","at","reason"]}},"required":["asks"]},"personWords":{"type":["string","null"]},"flatAnswers":{"type":"object","properties":{"waiting":{"type":"integer"}},"required":["waiting"]},"contact":{"type":"object","properties":{"id":{"type":"string"},"first":{"type":"string"},"mode":{"type":"string","enum":["visit","call","letter"]},"purpose":{"type":["string","null"]},"jobKey":{"type":["string","null"]},"titled":{"type":"boolean"},"handle":{"type":["string","null"]},"threadId":{"type":["string","null"]},"day":{"type":"string"},"time":{"type":["string","null"]},"going":{"type":"object","properties":{"kind":{"type":"string","enum":["member","team"]},"id":{"type":"string"},"name":{"type":"string"}},"required":["kind","id","name"]},"present":{"type":"object","properties":{"person":{"type":"boolean"},"parties":{"type":"array","items":{"type":"object","properties":{"id":{"type":"string"},"words":{"type":"string"}},"required":["id","words"]}},"words":{"type":["string","null"]}},"required":["person","parties","words"]},"toldOn":{"type":["string","null"]},"outcome":{"type":["object","null"],"properties":{"outcome":{"type":"string","enum":["happened","didnt_happen"]},"words":{"type":["string","null"]},"at":{"type":"string"},"byName":{"type":"string"}},"required":["outcome","words","at","byName"]},"moves":{"type":"array","items":{"type":"object","properties":{"fromDay":{"type":"string"},"fromTime":{"type":["string","null"]},"at":{"type":"string"},"byName":{"type":"string"}},"required":["fromDay","fromTime","at","byName"]}}},"required":["id","first","mode","purpose","jobKey","titled","handle","threadId","day","time","going","present","toldOn","outcome","moves"]},"permission":{"type":"object","properties":{"job":{"type":"string","enum":["reach","review","keep","notice","app-answer","app-answer-for"]},"notice":{"type":"object","properties":{"kind":{"type":"string"},"domain":{"type":"string"},"answeredOn":{"type":"string"},"decidedOn":{"type":"string"}},"required":["kind","domain","answeredOn","decidedOn"]}},"required":["job"]}},"required":["key","kind","owedBy","what","dueOn","raisedOn","about","where","closed","hand","status","owner","blocks","overruled","raised","trail","brief","doneWhen","startOn","priority","parentKey","steps","subjects","involved","signer","signedOff","repeats","repeatOf","reminders","files","links","tags","waitsFor","waitedOnBy","waitsOpen","readySince","stepsTotal","stepsDone","peopleHidden","stepsHidden","stepsHiddenOpen","noLongerRaised","noLongerRaisedWords"]},"steps":{"type":"array","items":{"type":"object","properties":{"key":{"type":"string"},"kind":{"type":"string","enum":["promise","not_established","proposal","thing_gone","record_gap","referral","help_ended","ask_helper","raised","hand","rco","permission","flat","app-note","link-requests","move-out","book-out","chat","route-check","public-page","stay-waiting","message-surge","flat-answers","problem_seen","check_problem","service_due","asset_moved_out","invitation-make","invitation-look","invitation-again","invitation-yearly","invitation-times","invitation-wait","invitation-book","invitation-visit","invitation-question","invitation-cancel","invitation-rearrange","invitation-arrange","invitation-check","findings-task","contact"]},"owedBy":{"type":"string"},"what":{"type":"string"},"dueOn":{"type":["string","null"]},"raisedOn":{"type":"string"},"about":{"type":["object","null"],"properties":{"personId":{"type":"string"},"personName":{"type":["string","null"]},"residencyId":{"type":"string"},"handle":{"type":["string","null"]},"heading":{"type":["string","null"]}},"required":["personId","personName","residencyId","handle","heading"]},"where":{"type":["string","null"]},"closed":{"type":["object","null"],"properties":{"state":{"type":"string","enum":["done","declined","no_longer_needed"]},"words":{"type":["string","null"]},"on":{"type":"string"},"byName":{"type":"string"}},"required":["state","words","on","byName"]},"hand":{"type":["string","null"],"enum":["ask","fit","record","book","other",null]},"status":{"type":"string","enum":["open","in_hand","booked","waiting"]},"owner":{"type":["object","null"],"properties":{"kind":{"type":"string","enum":["member","team","words"]},"id":{"type":["string","null"]},"name":{"type":"string"}},"required":["kind","id","name"]},"blocks":{"type":"boolean"},"overruled":{"type":["object","null"],"properties":{"reason":{"type":["string","null"]},"on":{"type":"string"},"byName":{"type":"string"}},"required":["reason","on","byName"]},"raised":{"type":"object","properties":{"owedBy":{"type":"string"},"dueOn":{"type":["string","null"]}},"required":["owedBy","dueOn"]},"trail":{"type":"array","items":{"type":"object","properties":{"id":{"type":"string"},"kind":{"type":"string","enum":["note","status","owner","due","blocks","overrule","taken","brief","done_when","title","start","priority","signed_off","repeat"]},"at":{"type":"string"},"byName":{"type":"string"},"source":{"type":"string","enum":["member","assessor-default"]},"words":{"type":["string","null"]},"status":{"type":["string","null"],"enum":["open","in_hand","booked","waiting",null]},"owner":{"type":["object","null"],"properties":{"kind":{"type":"string","enum":["member","team","words"]},"id":{"type":["string","null"]},"name":{"type":"string"}},"required":["kind","id","name"]},"dueOn":{"type":["string","null"]},"blocks":{"type":["boolean","null"]},"by":{"type":"string"},"startOn":{"type":["string","null"]},"priority":{"type":["string","null"],"enum":["low","medium","high","urgent",null]},"repeats":{"type":["string","null"],"enum":["none","monthly","six_monthly","yearly",null]}},"required":["id","kind","at","byName","source","words","status","owner","dueOn","blocks","by","startOn","priority","repeats"]}},"brief":{"type":["string","null"]},"doneWhen":{"type":["string","null"]},"startOn":{"type":["string","null"]},"priority":{"type":"string","enum":["low","medium","high","urgent"]},"parentKey":{"type":["string","null"]},"steps":{"type":"array","items":{"type":"string"}},"subjects":{"type":"array","items":{"type":"object","properties":{"kind":{"type":"string","enum":["building","person","rpeep","rpeep-v2","flat","space","asset","post"]},"id":{"type":"string"},"since":{"type":"string"},"name":{"type":["string","null"]},"personId":{"type":"string"},"workedOut":{"type":"boolean","enum":[true]}},"required":["kind","id","since"]}},"involved":{"type":"array","items":{"type":"object","properties":{"kind":{"type":"string","enum":["member","team"]},"id":{"type":"string"},"name":{"type":"string"}},"required":["kind","id","name"]}},"signer":{"type":["object","null"],"properties":{"kind":{"type":"string","enum":["member","team"]},"id":{"type":"string"},"name":{"type":"string"}},"required":["kind","id","name"]},"signedOff":{"type":["object","null"],"properties":{"on":{"type":"string"},"byName":{"type":"string"}},"required":["on","byName"]},"repeats":{"type":"string","enum":["none","monthly","six_monthly","yearly"]},"repeatOf":{"type":["string","null"]},"reminders":{"type":"array","items":{"type":"object","properties":{"id":{"type":"string"},"daysBefore":{"type":"integer"},"to":{"type":"string","enum":["owner","involved","member"]},"member":{"type":["object","null"],"properties":{"kind":{"type":"string","enum":["member","team"]},"id":{"type":"string"},"name":{"type":"string"}},"required":["kind","id","name"]},"sendsOn":{"type":["string","null"]},"since":{"type":"string"}},"required":["id","daysBefore","to","member","sendsOn","since"]}},"files":{"type":"array","items":{"type":"object","properties":{"id":{"type":"string"},"mediaId":{"type":"string"},"reference":{"type":"string"},"filename":{"type":["string","null"]},"kind":{"type":"string"},"mediaType":{"type":"string"},"size":{"type":"integer"},"at":{"type":"string"},"byName":{"type":"string"}},"required":["id","mediaId","reference","filename","kind","mediaType","size","at","byName"]}},"links":{"type":"array","items":{"type":"object","properties":{"id":{"type":"string"},"url":{"type":["string","null"]},"label":{"type":["string","null"]},"at":{"type":"string"},"byName":{"type":"string"}},"required":["id","url","label","at","byName"]}},"tags":{"type":"array","items":{"type":"string"}},"waitsFor":{"type":"array","items":{"type":"object","properties":{"key":{"type":"string"},"what":{"type":"string"},"closed":{"type":"boolean"},"hidden":{"type":"boolean"},"workedOut":{"type":"boolean","enum":[true]}},"required":["key","what","closed"]}},"waitedOnBy":{"type":"array","items":{"type":"string"}},"waitsOpen":{"type":"integer"},"readySince":{"type":["string","null"]},"stepsTotal":{"type":"integer"},"stepsDone":{"type":"integer"},"peopleHidden":{"type":"integer"},"stepsHidden":{"type":"integer"},"stepsHiddenOpen":{"type":"integer"},"noLongerRaised":{"type":"boolean"},"noLongerRaisedWords":{"type":["string","null"]},"rco":{"type":"object","properties":{"id":{"type":"string"},"standing":{"type":"boolean"}},"required":["id","standing"]},"flat":{"type":"object","properties":{"answerRowId":{"type":"string"}},"required":["answerRowId"]},"appNote":{"type":"object","properties":{"noteRowId":{"type":"string"}},"required":["noteRowId"]},"linkRequests":{"type":"object","properties":{"kind":{"type":"string","enum":["link","speak"]},"waiting":{"type":"integer"}},"required":["kind","waiting"]},"moveOut":{"type":"object","properties":{"rowId":{"type":"string"},"residencyId":{"type":"string"},"expectedOn":{"type":"string"},"escalated":{"type":"boolean"},"moving":{"type":"boolean"}},"required":["rowId","residencyId","expectedOn","escalated","moving"]},"stay":{"type":"object","properties":{"stayId":{"type":"string"},"dueAt":{"type":"string"},"escalated":{"type":"boolean"}},"required":["stayId","dueAt","escalated"]},"chat":{"type":"object","properties":{"conversationId":{"type":"string"},"kind":{"type":"string","enum":["resident","representative","guest"]}},"required":["conversationId","kind"]},"routeCheck":{"type":"object","properties":{"handle":{"type":"string"},"setId":{"type":"string"},"checks":{"type":"integer"},"signedOff":{"type":"boolean"}},"required":["handle","setId","checks","signedOff"]},"publicPage":{"type":"object","properties":{"version":{"type":"integer"},"lines":{"type":"array","items":{"type":"string","enum":["strategy","lift","whereToGo","parts"]}}},"required":["version","lines"]},"waiting":{"type":"object","properties":{"stayId":{"type":"string"},"lapsesAt":{"type":"string"}},"required":["stayId","lapsesAt"]},"surge":{"type":"object","properties":{"placeId":{"type":"string"},"count":{"type":"integer"}},"required":["placeId","count"]},"checkProblem":{"type":"object","properties":{"recordId":{"type":"string"},"assetId":{"type":"string"},"problem":{"type":["string","null"]},"line":{"type":["string","null"]},"words":{"type":["string","null"]},"wordsAboutPersonId":{"type":["string","null"]},"photos":{"type":"array","items":{"type":"string"}},"hidden":{"type":"boolean","enum":[true]}},"required":["recordId","assetId","problem","line","words","wordsAboutPersonId","photos"]},"service":{"type":"object","properties":{"upkeepId":{"type":"string"},"assetId":{"type":"string"},"name":{"type":"string"},"brief":{"type":"string"}},"required":["upkeepId","assetId","name","brief"]},"assetMovedOut":{"type":"object","properties":{"assetId":{"type":"string"},"residencyId":{"type":"string"},"asset":{"type":"string"},"who":{"type":"string"}},"required":["assetId","residencyId","asset","who"]},"fed":{"type":"object","properties":{"by":{"type":"string"},"facts":{"type":"object","additionalProperties":{"anyOf":[{"type":"string"},{"type":"number"},{"type":"null"}]}}},"required":["by","facts"]},"report":{"type":"object","properties":{"asks":{"type":"array","items":{"type":"string"}},"said":{"type":["string","null"]},"given":{"type":"boolean","enum":[true]},"waiting":{"type":["object","null"],"properties":{"id":{"type":"string"},"reporterId":{"type":"string"},"byName":{"type":"string"},"at":{"type":"string"},"sentence":{"type":["string","null"]}},"required":["id","reporterId","byName","at","sentence"]},"sentBack":{"type":["object","null"],"properties":{"reporterId":{"type":"string"},"byName":{"type":"string"},"at":{"type":"string"},"reason":{"type":["string","null"]}},"required":["reporterId","byName","at","reason"]}},"required":["asks"]},"personWords":{"type":["string","null"]},"flatAnswers":{"type":"object","properties":{"waiting":{"type":"integer"}},"required":["waiting"]},"contact":{"type":"object","properties":{"id":{"type":"string"},"first":{"type":"string"},"mode":{"type":"string","enum":["visit","call","letter"]},"purpose":{"type":["string","null"]},"jobKey":{"type":["string","null"]},"titled":{"type":"boolean"},"handle":{"type":["string","null"]},"threadId":{"type":["string","null"]},"day":{"type":"string"},"time":{"type":["string","null"]},"going":{"type":"object","properties":{"kind":{"type":"string","enum":["member","team"]},"id":{"type":"string"},"name":{"type":"string"}},"required":["kind","id","name"]},"present":{"type":"object","properties":{"person":{"type":"boolean"},"parties":{"type":"array","items":{"type":"object","properties":{"id":{"type":"string"},"words":{"type":"string"}},"required":["id","words"]}},"words":{"type":["string","null"]}},"required":["person","parties","words"]},"toldOn":{"type":["string","null"]},"outcome":{"type":["object","null"],"properties":{"outcome":{"type":"string","enum":["happened","didnt_happen"]},"words":{"type":["string","null"]},"at":{"type":"string"},"byName":{"type":"string"}},"required":["outcome","words","at","byName"]},"moves":{"type":"array","items":{"type":"object","properties":{"fromDay":{"type":"string"},"fromTime":{"type":["string","null"]},"at":{"type":"string"},"byName":{"type":"string"}},"required":["fromDay","fromTime","at","byName"]}}},"required":["id","first","mode","purpose","jobKey","titled","handle","threadId","day","time","going","present","toldOn","outcome","moves"]},"permission":{"type":"object","properties":{"job":{"type":"string","enum":["reach","review","keep","notice","app-answer","app-answer-for"]},"notice":{"type":"object","properties":{"kind":{"type":"string"},"domain":{"type":"string"},"answeredOn":{"type":"string"},"decidedOn":{"type":"string"}},"required":["kind","domain","answeredOn","decidedOn"]}},"required":["job"]}},"required":["key","kind","owedBy","what","dueOn","raisedOn","about","where","closed","hand","status","owner","blocks","overruled","raised","trail","brief","doneWhen","startOn","priority","parentKey","steps","subjects","involved","signer","signedOff","repeats","repeatOf","reminders","files","links","tags","waitsFor","waitedOnBy","waitsOpen","readySince","stepsTotal","stepsDone","peopleHidden","stepsHidden","stepsHiddenOpen","noLongerRaised","noLongerRaisedWords"]}},"mayAct":{"type":"boolean"},"may":{"type":"object","properties":{"edit":{"type":"boolean"},"comment":{"type":"boolean"},"attach":{"type":"boolean"},"close":{"type":"boolean"},"signOff":{"type":"boolean"},"tick":{"type":"array","items":{"type":"string"}},"report":{"type":["string","null"],"enum":["record","task",null]},"takeIn":{"type":"boolean"}},"required":["edit","comment","attach","close","signOff","tick","report","takeIn"]},"reach":{"type":"boolean"},"place":{"type":"object","properties":{"id":{"type":"string"},"name":{"type":"string"}},"required":["id","name"]},"stepsHidden":{"type":"integer"},"stepsHiddenOpen":{"type":"integer"},"peopleHidden":{"type":"integer"},"remindable":{"type":"array","items":{"type":"object","properties":{"id":{"type":"string"},"name":{"type":"string"}},"required":["id","name"]}}},"required":["job","steps","mayAct","may","reach","place","stepsHidden","stepsHiddenOpen","peopleHidden","remindable"]},"TaskStep":{"type":"object","properties":{"title":{"type":"string","maxLength":200},"kind":{"type":"string","minLength":1,"maxLength":20},"brief":{"type":"string","maxLength":4000},"doneWhen":{"type":"string","maxLength":1000},"owner":{"type":"object","properties":{"kind":{"type":"string","minLength":1,"maxLength":20},"id":{"type":"string","maxLength":60},"words":{"type":"string","maxLength":200}},"required":["kind"],"additionalProperties":false},"dueOn":{"type":"string","maxLength":10},"startOn":{"type":"string","maxLength":10},"priority":{"type":"string","maxLength":20}},"required":["title"],"additionalProperties":false},"TaskPerson":{"type":"object","properties":{"role":{"type":"string","minLength":1,"maxLength":20},"who":{"type":"object","properties":{"kind":{"type":"string","minLength":1,"maxLength":20},"id":{"type":"string","maxLength":60}},"required":["kind","id"],"additionalProperties":false}},"required":["role","who"],"additionalProperties":false},"TaskPartAdded":{"type":"object","properties":{"id":{"type":"string"},"key":{"type":"string"}},"required":["id","key"]},"TaskReminder":{"type":"object","properties":{"daysBefore":{"type":"integer"},"to":{"type":"string","minLength":1,"maxLength":20},"memberId":{"type":"string","maxLength":60}},"required":["daysBefore","to"],"additionalProperties":false},"TaskFile":{"type":"object","properties":{"attachmentId":{"type":"string","minLength":1,"maxLength":60}},"required":["attachmentId"],"additionalProperties":false},"TaskUploadStart":{"type":"object","properties":{"mediaType":{"type":"string","maxLength":200},"size":{"type":"integer","exclusiveMinimum":0}},"required":["mediaType","size"],"additionalProperties":false},"TaskUploadComplete":{"type":"object","properties":{"filename":{"type":"string","maxLength":1000}},"required":["filename"],"additionalProperties":false},"TaskLink":{"type":"object","properties":{"url":{"type":"string","minLength":1,"maxLength":2000},"label":{"type":"string","maxLength":200}},"required":["url"],"additionalProperties":false},"TaskTag":{"type":"object","properties":{"tag":{"type":"string","maxLength":200}},"required":["tag"],"additionalProperties":false},"TaskWait":{"type":"object","properties":{"waitsFor":{"type":"string","minLength":1,"maxLength":240}},"required":["waitsFor"],"additionalProperties":false},"TaskTags":{"type":"object","properties":{"tags":{"type":"array","items":{"type":"string"}}},"required":["tags"]},"TaskSubjectChoices":{"type":"object","properties":{"choices":{"type":"array","items":{"type":"object","properties":{"kind":{"type":"string","enum":["building","person","rpeep","rpeep-v2","flat","space","asset","post"]},"id":{"type":"string"},"name":{"type":["string","null"]},"personId":{"type":"string"}},"required":["kind","id","name"]}}},"required":["choices"]},"ProcessJobs":{"type":"object","properties":{"jobs":{"type":"array","items":{"type":"object","properties":{"key":{"type":"string"},"kind":{"type":"string","enum":["promise","not_established","proposal","thing_gone","record_gap","referral","help_ended","ask_helper","raised","hand","rco","permission","flat","app-note","link-requests","move-out","book-out","chat","route-check","public-page","stay-waiting","message-surge","flat-answers","problem_seen","check_problem","service_due","asset_moved_out","invitation-make","invitation-look","invitation-again","invitation-yearly","invitation-times","invitation-wait","invitation-book","invitation-visit","invitation-question","invitation-cancel","invitation-rearrange","invitation-arrange","invitation-check","findings-task","contact"]},"owedBy":{"type":"string"},"what":{"type":"string"},"dueOn":{"type":["string","null"]},"raisedOn":{"type":"string"},"about":{"type":["object","null"],"properties":{"personId":{"type":"string"},"personName":{"type":["string","null"]},"residencyId":{"type":"string"},"handle":{"type":["string","null"]},"heading":{"type":["string","null"]}},"required":["personId","personName","residencyId","handle","heading"]},"where":{"type":["string","null"]},"closed":{"type":["object","null"],"properties":{"state":{"type":"string","enum":["done","declined","no_longer_needed"]},"words":{"type":["string","null"]},"on":{"type":"string"},"byName":{"type":"string"}},"required":["state","words","on","byName"]},"hand":{"type":["string","null"],"enum":["ask","fit","record","book","other",null]},"status":{"type":"string","enum":["open","in_hand","booked","waiting"]},"owner":{"type":["object","null"],"properties":{"kind":{"type":"string","enum":["member","team","words"]},"id":{"type":["string","null"]},"name":{"type":"string"}},"required":["kind","id","name"]},"blocks":{"type":"boolean"},"overruled":{"type":["object","null"],"properties":{"reason":{"type":["string","null"]},"on":{"type":"string"},"byName":{"type":"string"}},"required":["reason","on","byName"]},"raised":{"type":"object","properties":{"owedBy":{"type":"string"},"dueOn":{"type":["string","null"]}},"required":["owedBy","dueOn"]},"trail":{"type":"array","items":{"type":"object","properties":{"id":{"type":"string"},"kind":{"type":"string","enum":["note","status","owner","due","blocks","overrule","taken","brief","done_when","title","start","priority","signed_off","repeat"]},"at":{"type":"string"},"byName":{"type":"string"},"source":{"type":"string","enum":["member","assessor-default"]},"words":{"type":["string","null"]},"status":{"type":["string","null"],"enum":["open","in_hand","booked","waiting",null]},"owner":{"type":["object","null"],"properties":{"kind":{"type":"string","enum":["member","team","words"]},"id":{"type":["string","null"]},"name":{"type":"string"}},"required":["kind","id","name"]},"dueOn":{"type":["string","null"]},"blocks":{"type":["boolean","null"]},"by":{"type":"string"},"startOn":{"type":["string","null"]},"priority":{"type":["string","null"],"enum":["low","medium","high","urgent",null]},"repeats":{"type":["string","null"],"enum":["none","monthly","six_monthly","yearly",null]}},"required":["id","kind","at","byName","source","words","status","owner","dueOn","blocks","by","startOn","priority","repeats"]}},"brief":{"type":["string","null"]},"doneWhen":{"type":["string","null"]},"startOn":{"type":["string","null"]},"priority":{"type":"string","enum":["low","medium","high","urgent"]},"parentKey":{"type":["string","null"]},"steps":{"type":"array","items":{"type":"string"}},"subjects":{"type":"array","items":{"type":"object","properties":{"kind":{"type":"string","enum":["building","person","rpeep","rpeep-v2","flat","space","asset","post"]},"id":{"type":"string"},"since":{"type":"string"},"name":{"type":["string","null"]},"personId":{"type":"string"},"workedOut":{"type":"boolean","enum":[true]}},"required":["kind","id","since"]}},"involved":{"type":"array","items":{"type":"object","properties":{"kind":{"type":"string","enum":["member","team"]},"id":{"type":"string"},"name":{"type":"string"}},"required":["kind","id","name"]}},"signer":{"type":["object","null"],"properties":{"kind":{"type":"string","enum":["member","team"]},"id":{"type":"string"},"name":{"type":"string"}},"required":["kind","id","name"]},"signedOff":{"type":["object","null"],"properties":{"on":{"type":"string"},"byName":{"type":"string"}},"required":["on","byName"]},"repeats":{"type":"string","enum":["none","monthly","six_monthly","yearly"]},"repeatOf":{"type":["string","null"]},"reminders":{"type":"array","items":{"type":"object","properties":{"id":{"type":"string"},"daysBefore":{"type":"integer"},"to":{"type":"string","enum":["owner","involved","member"]},"member":{"type":["object","null"],"properties":{"kind":{"type":"string","enum":["member","team"]},"id":{"type":"string"},"name":{"type":"string"}},"required":["kind","id","name"]},"sendsOn":{"type":["string","null"]},"since":{"type":"string"}},"required":["id","daysBefore","to","member","sendsOn","since"]}},"files":{"type":"array","items":{"type":"object","properties":{"id":{"type":"string"},"mediaId":{"type":"string"},"reference":{"type":"string"},"filename":{"type":["string","null"]},"kind":{"type":"string"},"mediaType":{"type":"string"},"size":{"type":"integer"},"at":{"type":"string"},"byName":{"type":"string"}},"required":["id","mediaId","reference","filename","kind","mediaType","size","at","byName"]}},"links":{"type":"array","items":{"type":"object","properties":{"id":{"type":"string"},"url":{"type":["string","null"]},"label":{"type":["string","null"]},"at":{"type":"string"},"byName":{"type":"string"}},"required":["id","url","label","at","byName"]}},"tags":{"type":"array","items":{"type":"string"}},"waitsFor":{"type":"array","items":{"type":"object","properties":{"key":{"type":"string"},"what":{"type":"string"},"closed":{"type":"boolean"},"hidden":{"type":"boolean"},"workedOut":{"type":"boolean","enum":[true]}},"required":["key","what","closed"]}},"waitedOnBy":{"type":"array","items":{"type":"string"}},"waitsOpen":{"type":"integer"},"readySince":{"type":["string","null"]},"stepsTotal":{"type":"integer"},"stepsDone":{"type":"integer"},"peopleHidden":{"type":"integer"},"stepsHidden":{"type":"integer"},"stepsHiddenOpen":{"type":"integer"},"noLongerRaised":{"type":"boolean"},"noLongerRaisedWords":{"type":["string","null"]},"rco":{"type":"object","properties":{"id":{"type":"string"},"standing":{"type":"boolean"}},"required":["id","standing"]},"flat":{"type":"object","properties":{"answerRowId":{"type":"string"}},"required":["answerRowId"]},"appNote":{"type":"object","properties":{"noteRowId":{"type":"string"}},"required":["noteRowId"]},"linkRequests":{"type":"object","properties":{"kind":{"type":"string","enum":["link","speak"]},"waiting":{"type":"integer"}},"required":["kind","waiting"]},"moveOut":{"type":"object","properties":{"rowId":{"type":"string"},"residencyId":{"type":"string"},"expectedOn":{"type":"string"},"escalated":{"type":"boolean"},"moving":{"type":"boolean"}},"required":["rowId","residencyId","expectedOn","escalated","moving"]},"stay":{"type":"object","properties":{"stayId":{"type":"string"},"dueAt":{"type":"string"},"escalated":{"type":"boolean"}},"required":["stayId","dueAt","escalated"]},"chat":{"type":"object","properties":{"conversationId":{"type":"string"},"kind":{"type":"string","enum":["resident","representative","guest"]}},"required":["conversationId","kind"]},"routeCheck":{"type":"object","properties":{"handle":{"type":"string"},"setId":{"type":"string"},"checks":{"type":"integer"},"signedOff":{"type":"boolean"}},"required":["handle","setId","checks","signedOff"]},"publicPage":{"type":"object","properties":{"version":{"type":"integer"},"lines":{"type":"array","items":{"type":"string","enum":["strategy","lift","whereToGo","parts"]}}},"required":["version","lines"]},"waiting":{"type":"object","properties":{"stayId":{"type":"string"},"lapsesAt":{"type":"string"}},"required":["stayId","lapsesAt"]},"surge":{"type":"object","properties":{"placeId":{"type":"string"},"count":{"type":"integer"}},"required":["placeId","count"]},"checkProblem":{"type":"object","properties":{"recordId":{"type":"string"},"assetId":{"type":"string"},"problem":{"type":["string","null"]},"line":{"type":["string","null"]},"words":{"type":["string","null"]},"wordsAboutPersonId":{"type":["string","null"]},"photos":{"type":"array","items":{"type":"string"}},"hidden":{"type":"boolean","enum":[true]}},"required":["recordId","assetId","problem","line","words","wordsAboutPersonId","photos"]},"service":{"type":"object","properties":{"upkeepId":{"type":"string"},"assetId":{"type":"string"},"name":{"type":"string"},"brief":{"type":"string"}},"required":["upkeepId","assetId","name","brief"]},"assetMovedOut":{"type":"object","properties":{"assetId":{"type":"string"},"residencyId":{"type":"string"},"asset":{"type":"string"},"who":{"type":"string"}},"required":["assetId","residencyId","asset","who"]},"fed":{"type":"object","properties":{"by":{"type":"string"},"facts":{"type":"object","additionalProperties":{"anyOf":[{"type":"string"},{"type":"number"},{"type":"null"}]}}},"required":["by","facts"]},"report":{"type":"object","properties":{"asks":{"type":"array","items":{"type":"string"}},"said":{"type":["string","null"]},"given":{"type":"boolean","enum":[true]},"waiting":{"type":["object","null"],"properties":{"id":{"type":"string"},"reporterId":{"type":"string"},"byName":{"type":"string"},"at":{"type":"string"},"sentence":{"type":["string","null"]}},"required":["id","reporterId","byName","at","sentence"]},"sentBack":{"type":["object","null"],"properties":{"reporterId":{"type":"string"},"byName":{"type":"string"},"at":{"type":"string"},"reason":{"type":["string","null"]}},"required":["reporterId","byName","at","reason"]}},"required":["asks"]},"personWords":{"type":["string","null"]},"flatAnswers":{"type":"object","properties":{"waiting":{"type":"integer"}},"required":["waiting"]},"contact":{"type":"object","properties":{"id":{"type":"string"},"first":{"type":"string"},"mode":{"type":"string","enum":["visit","call","letter"]},"purpose":{"type":["string","null"]},"jobKey":{"type":["string","null"]},"titled":{"type":"boolean"},"handle":{"type":["string","null"]},"threadId":{"type":["string","null"]},"day":{"type":"string"},"time":{"type":["string","null"]},"going":{"type":"object","properties":{"kind":{"type":"string","enum":["member","team"]},"id":{"type":"string"},"name":{"type":"string"}},"required":["kind","id","name"]},"present":{"type":"object","properties":{"person":{"type":"boolean"},"parties":{"type":"array","items":{"type":"object","properties":{"id":{"type":"string"},"words":{"type":"string"}},"required":["id","words"]}},"words":{"type":["string","null"]}},"required":["person","parties","words"]},"toldOn":{"type":["string","null"]},"outcome":{"type":["object","null"],"properties":{"outcome":{"type":"string","enum":["happened","didnt_happen"]},"words":{"type":["string","null"]},"at":{"type":"string"},"byName":{"type":"string"}},"required":["outcome","words","at","byName"]},"moves":{"type":"array","items":{"type":"object","properties":{"fromDay":{"type":"string"},"fromTime":{"type":["string","null"]},"at":{"type":"string"},"byName":{"type":"string"}},"required":["fromDay","fromTime","at","byName"]}}},"required":["id","first","mode","purpose","jobKey","titled","handle","threadId","day","time","going","present","toldOn","outcome","moves"]},"permission":{"type":"object","properties":{"job":{"type":"string","enum":["reach","review","keep","notice","app-answer","app-answer-for"]},"notice":{"type":"object","properties":{"kind":{"type":"string"},"domain":{"type":"string"},"answeredOn":{"type":"string"},"decidedOn":{"type":"string"}},"required":["kind","domain","answeredOn","decidedOn"]}},"required":["job"]}},"required":["key","kind","owedBy","what","dueOn","raisedOn","about","where","closed","hand","status","owner","blocks","overruled","raised","trail","brief","doneWhen","startOn","priority","parentKey","steps","subjects","involved","signer","signedOff","repeats","repeatOf","reminders","files","links","tags","waitsFor","waitedOnBy","waitsOpen","readySince","stepsTotal","stepsDone","peopleHidden","stepsHidden","stepsHiddenOpen","noLongerRaised","noLongerRaisedWords"]}},"mayAct":{"type":"boolean"}},"required":["jobs","mayAct"]},"JobEntry":{"type":"object","properties":{"kind":{"type":"string","minLength":1,"maxLength":20},"words":{"type":"string","maxLength":1000},"status":{"type":"string","maxLength":20},"owner":{"type":"object","properties":{"kind":{"type":"string","minLength":1,"maxLength":20},"id":{"type":"string","maxLength":60},"words":{"type":"string","maxLength":200}},"required":["kind"],"additionalProperties":false},"dueOn":{"type":"string","maxLength":10},"blocks":{"type":"boolean"}},"required":["kind"],"additionalProperties":false},"JobAdded":{"type":"object","properties":{"kind":{"type":"string","minLength":1,"maxLength":20},"words":{"type":"string","maxLength":1000},"owner":{"type":"object","properties":{"kind":{"type":"string","minLength":1,"maxLength":20},"id":{"type":"string","maxLength":60},"words":{"type":"string","maxLength":200}},"required":["kind"],"additionalProperties":false},"dueOn":{"type":"string","maxLength":10},"blocks":{"type":"boolean"}},"required":["kind","words"],"additionalProperties":false},"JobLinks":{"type":"object","properties":{"links":{"type":"array","items":{"type":"object","properties":{"id":{"type":"string"},"key":{"type":"string"},"email":{"type":["string","null"]},"sentTo":{"type":["string","null"]},"madeAt":{"type":"string"},"byName":{"type":"string"},"expiresAt":{"type":"string"},"revokedAt":{"type":["string","null"]},"state":{"type":"string","enum":["live","expired","revoked"]}},"required":["id","key","email","sentTo","madeAt","byName","expiresAt","revokedAt","state"]}},"received":{"type":"array","items":{"type":"object","properties":{"id":{"type":"string"},"key":{"type":"string"},"linkId":{"type":"string"},"from":{"type":["string","null"]},"note":{"type":["string","null"]},"done":{"type":"boolean"},"receivedAt":{"type":"string"},"taken":{"type":["object","null"],"properties":{"at":{"type":"string"},"byName":{"type":"string"}},"required":["at","byName"]}},"required":["id","key","linkId","from","note","done","receivedAt","taken"]}},"mayAct":{"type":"boolean"},"maySend":{"type":"boolean"}},"required":["links","received","mayAct","maySend"]},"JobLinkSent":{"type":"object","properties":{"id":{"type":"string"},"expiresAt":{"type":"string"}},"required":["id","expiresAt"]},"JobLinkSend":{"type":"object","properties":{"email":{"type":"string","maxLength":400}},"required":["email"],"additionalProperties":false},"JobLinkRevoked":{"type":"object","properties":{"id":{"type":"string"}},"required":["id"]},"JobReceivedTaken":{"type":"object","properties":{"id":{"type":"string"},"key":{"type":"string"}},"required":["id","key"]},"LinkPage":{"type":"object","properties":{"what":{"type":"string"},"place":{"type":"string"},"dueOn":{"type":["string","null"]},"expiresOn":{"type":"string"}},"required":["what","place","dueOn","expiresOn"]},"LinkReceived":{"type":"object","properties":{"received":{"type":"boolean","enum":[true]}},"required":["received"]},"LinkReceive":{"type":"object","properties":{"note":{"type":"string","maxLength":4000},"done":{"type":"boolean"}},"additionalProperties":false},"Contacts":{"type":"object","properties":{"contacts":{"type":"array","items":{"$ref":"#/components/schemas/Contact"}},"mayAct":{"type":"boolean"}},"required":["contacts","mayAct"]},"Contact":{"type":"object","properties":{"id":{"type":"string"},"residencyId":{"type":"string"},"handle":{"type":["string","null"]},"purpose":{"type":["string","null"]},"jobKey":{"type":["string","null"]},"jobWhat":{"type":["string","null"]},"mode":{"type":"string","enum":["visit","call","letter"]},"day":{"type":"string"},"time":{"type":["string","null"]},"startsAt":{"type":["string","null"]},"going":{"type":"object","properties":{"kind":{"type":"string","enum":["member","team"]},"id":{"type":"string"},"name":{"type":"string"}},"required":["kind","id","name"]},"present":{"type":"object","properties":{"person":{"type":"boolean"},"parties":{"type":"array","items":{"type":"object","properties":{"id":{"type":"string"},"words":{"type":"string"}},"required":["id","words"]}},"words":{"type":["string","null"]}},"required":["person","parties","words"]},"toldOn":{"type":["string","null"]},"madeAt":{"type":"string"},"madeByName":{"type":"string"},"outcome":{"type":["object","null"],"properties":{"outcome":{"type":"string","enum":["happened","didnt_happen","moved"]},"words":{"type":["string","null"]},"movedTo":{"type":["string","null"]},"at":{"type":"string"},"byName":{"type":"string"}},"required":["outcome","words","movedTo","at","byName"]},"movedFrom":{"type":["string","null"]}},"required":["id","residencyId","handle","purpose","jobKey","jobWhat","mode","day","time","startsAt","going","present","toldOn","madeAt","madeByName","outcome","movedFrom"]},"ContactPlanned":{"type":"object","properties":{"id":{"type":"string"}},"required":["id"]},"ContactPlan":{"type":"object","properties":{"handle":{"type":"string","format":"uuid"},"residencyId":{"type":"string","format":"uuid"},"purpose":{"type":"string","maxLength":20},"jobKey":{"type":"string","maxLength":240},"threadId":{"type":"string","format":"uuid"},"what":{"type":"string","maxLength":200},"mode":{"type":"string","maxLength":20},"day":{"type":"string","maxLength":10},"time":{"type":"string","maxLength":5},"going":{"type":"object","properties":{"kind":{"type":"string","minLength":1,"maxLength":20},"id":{"type":"string","maxLength":60}},"required":["kind"],"additionalProperties":false},"present":{"type":"object","properties":{"person":{"type":"boolean"},"parties":{"type":"array","items":{"type":"string","maxLength":60},"maxItems":20},"words":{"type":"string","maxLength":200}},"additionalProperties":false},"toldOn":{"type":"string","maxLength":10}},"additionalProperties":false},"ContactToldOn":{"type":"object","properties":{"id":{"type":"string"},"toldOn":{"type":"string"}},"required":["id","toldOn"]},"ContactTold":{"type":"object","properties":{"toldOn":{"type":"string","maxLength":10}},"additionalProperties":false},"ContactRecorded":{"type":"object","properties":{"id":{"type":"string"},"movedTo":{"type":["string","null"]}},"required":["id","movedTo"]},"ContactRecord":{"type":"object","properties":{"outcome":{"type":"string","minLength":1,"maxLength":20},"words":{"type":"string","maxLength":1000},"to":{"type":"object","properties":{"mode":{"type":"string","maxLength":20},"day":{"type":"string","maxLength":10},"time":{"type":"string","maxLength":5},"going":{"type":"object","properties":{"kind":{"type":"string","minLength":1,"maxLength":20},"id":{"type":"string","maxLength":60}},"required":["kind"],"additionalProperties":false},"present":{"type":"object","properties":{"person":{"type":"boolean"},"parties":{"type":"array","items":{"type":"string","maxLength":60},"maxItems":20},"words":{"type":"string","maxLength":200}},"additionalProperties":false},"toldOn":{"type":"string","maxLength":10}},"additionalProperties":false}},"required":["outcome"],"additionalProperties":false},"V2Threads":{"type":"object","properties":{"threads":{"type":"array","items":{"type":"object","properties":{"id":{"type":"string"},"residencyId":{"type":"string"},"openedAt":{"type":"string"},"closedAt":{"type":["string","null"]},"status":{"type":"string","enum":["waiting","answered","booked","closed"]}},"required":["id","residencyId","openedAt","closedAt","status"]}},"mayStart":{"type":"boolean"}},"required":["threads","mayStart"]},"V2Started":{"type":"object","properties":{"id":{"type":"string"}},"required":["id"]},"V2Start":{"type":"object","properties":{"residencyId":{"type":"string","format":"uuid"},"owner":{"type":"object","properties":{"kind":{"type":"string","maxLength":20},"id":{"type":"string","maxLength":60}},"required":["kind"],"additionalProperties":false}},"required":["residencyId","owner"],"additionalProperties":false},"V2Home":{"type":"object","properties":{"id":{"type":"string"},"personId":{"type":"string"},"residencyId":{"type":"string"},"owner":{"type":"object","properties":{"kind":{"type":"string","enum":["member","team"]},"id":{"type":"string"},"name":{"type":"string"}},"required":["kind","id","name"]},"openedAt":{"type":"string"},"openedByName":{"type":"string"},"closedAt":{"type":["string","null"]},"closedWhy":{"type":["string","null"]},"status":{"type":"string","enum":["waiting","answered","booked","closed"]},"next":{"type":"object","properties":{"kind":{"type":"string"},"words":{"type":["string","null"]},"dueOn":{"type":["string","null"]}},"required":["kind","words","dueOn"]},"invitation":{},"tries":{"type":"array","items":{}},"answers":{"type":"array","items":{}},"standing":{},"slots":{},"pick":{},"booking":{},"moving":{},"visit":{},"notReached":{"type":"array","items":{}},"towardNotReached":{"type":"object","properties":{"tries":{"type":"number"},"ways":{"type":"number"},"firstAt":{"type":["string","null"]},"days":{"type":"number"},"met":{"type":"boolean"},"needs":{"type":"object","properties":{"tries":{"type":"number"},"ways":{"type":"number"},"days":{"type":"number"}},"required":["tries","ways","days"]}},"required":["tries","ways","firstAt","days","met","needs"]},"mayAct":{"type":"boolean"}},"required":["id","personId","residencyId","owner","openedAt","openedByName","closedAt","closedWhy","status","next","tries","answers","notReached","towardNotReached","mayAct"]},"InvitationPreview":{"type":"object","properties":{"to":{"type":"object","properties":{"kind":{"type":"string","enum":["self","party"]},"partyId":{"type":["string","null"]},"name":{"type":"string"}},"required":["kind","partyId","name"]},"ways":{"type":"array","items":{"type":"object","properties":{"how":{"type":"string"},"may":{"type":"boolean"},"why":{"type":["string","null"]},"ask":{"type":["string","null"],"enum":["email","address",null]},"note":{"type":["string","null"]}},"required":["how","may","why","ask","note"]}},"emailTo":{"type":["string","null"]},"words":{"type":"object","properties":{"version":{"type":"number"},"language":{"type":"string"},"blocks":{"type":"array","items":{"type":"object","properties":{"kind":{"type":"string","enum":["heading","paragraph"]},"label":{"type":"string"},"text":{"type":"string"}},"required":["kind","text"]}}},"required":["version","language","blocks"]}},"required":["to","ways","emailTo","words"]},"InvitationLetter":{"type":"object","properties":{"kind":{"type":"string","enum":["offer","second","visit"]},"format":{"type":"string","enum":["standard","large"]},"address":{"type":"array","items":{"type":"string"}},"blocks":{"type":"array","items":{"type":"object","properties":{"kind":{"type":"string","enum":["heading","paragraph"]},"label":{"type":"string"},"text":{"type":"string"}},"required":["kind","text"]}},"foot":{"type":"string"},"qr":{"type":["object","null"],"properties":{"address":{"type":"string"},"words":{"type":"string"}},"required":["address","words"]}},"required":["kind","format","address","blocks","foot","qr"]},"InvitationTried":{"type":"object","properties":{"invitationId":{"type":"string"},"publicId":{"type":"string"},"tryNo":{"type":"number"},"outcome":{"type":"string"},"letter":{}},"required":["invitationId","publicId","tryNo","outcome"]},"InvitationTry":{"type":"object","properties":{"how":{"type":"string","maxLength":20},"answerer":{"type":"string","maxLength":60},"language":{"type":"string","maxLength":10},"format":{"type":"string","maxLength":20},"visitor":{"type":"string","maxLength":60},"slots":{"type":"array","items":{"type":"string","maxLength":40},"maxItems":10},"to":{"type":"string","maxLength":60},"outcome":{"type":"string","maxLength":20}},"required":["how"],"additionalProperties":false},"InvitationSlotsOffered":{"type":"object","properties":{"setNo":{"type":"number"}},"required":["setNo"]},"InvitationSlots":{"type":"object","properties":{"slots":{"type":"array","items":{"type":"string","maxLength":40},"maxItems":10}},"required":["slots"],"additionalProperties":false},"InvitationAnswered":{"type":"object","properties":{"id":{"type":"string"},"stands":{"type":"boolean"},"statementId":{"type":["string","null"]}},"required":["id","stands","statementId"]},"InvitationAnswer":{"type":"object","properties":{"answer":{"type":"string","maxLength":20},"by":{"type":"string","maxLength":60},"via":{"type":"string","maxLength":20},"at":{"type":"string","maxLength":40},"askAgain":{"type":"string","maxLength":7},"words":{"type":"string","maxLength":1000}},"required":["answer","via"],"additionalProperties":false},"InvitationPicked":{"type":"object","properties":{"id":{"type":"string"}},"required":["id"]},"InvitationPick":{"type":"object","properties":{"slot":{"type":["string","null"],"maxLength":40},"suggested":{"type":"array","items":{"type":"object","properties":{"day":{"type":"string","maxLength":10},"part":{"type":"string","maxLength":20}},"required":["day","part"],"additionalProperties":false},"maxItems":10},"place":{"type":"string","maxLength":20},"placeWords":{"type":"string","maxLength":400},"withWords":{"type":"string","maxLength":400},"words":{"type":"string","maxLength":1000},"by":{"type":"string","maxLength":60},"via":{"type":"string","maxLength":20}},"required":["place","via"],"additionalProperties":false},"InvitationBooked":{"type":"object","properties":{"id":{"type":"string"},"contactId":{"type":"string"},"movedFromContactId":{"type":["string","null"]}},"required":["id","contactId","movedFromContactId"]},"InvitationBook":{"type":"object","properties":{},"additionalProperties":false},"InvitationTimeConfirmed":{"type":"object","properties":{"id":{"type":"string"}},"required":["id"]},"InvitationConfirmedTime":{"type":"object","properties":{"slot":{"type":"string","maxLength":40},"place":{"type":"string","maxLength":20},"placeWords":{"type":"string","maxLength":400},"withWords":{"type":"string","maxLength":400},"words":{"type":"string","maxLength":1000},"by":{"type":"string","maxLength":60},"via":{"type":"string","maxLength":20}},"required":["slot","place","via"],"additionalProperties":false},"InvitationVisit":{"type":"object","properties":{"threadId":{"type":"string"},"personId":{"type":"string"},"booking":{"type":["object","null"],"properties":{"id":{"type":"string"},"contactId":{"type":"string"},"visitAt":{"type":"string"},"today":{"type":"boolean"}},"required":["id","contactId","visitAt","today"]},"visitor":{"type":["object","null"],"properties":{"id":{"type":"string"},"name":{"type":"string"}},"required":["id","name"]},"youVisit":{"type":"boolean"},"place":{"type":"string"},"where":{"type":"object","properties":{"kind":{"type":"string","enum":["home","else"]},"words":{"type":["string","null"]}},"required":["kind","words"]},"forVisitor":{"type":["string","null"]},"wanted":{"type":["string","null"]},"agreeing":{"type":"array","items":{"type":"object","properties":{"id":{"type":"string"},"name":{"type":"string"},"basis":{"type":"string","enum":["lpa-health-welfare","deputy"]}},"required":["id","name","basis"]}},"words":{"type":"object","properties":{"version":{"type":"number"},"language":{"type":"string"},"blocks":{"type":"array","items":{"type":"object","properties":{"kind":{"type":"string","enum":["heading","paragraph"]},"label":{"type":"string"},"text":{"type":"string"}},"required":["kind","text"]}}},"required":["version","language","blocks"]},"outcome":{},"moving":{"type":"boolean"},"mayAct":{"type":"boolean"}},"required":["threadId","personId","booking","visitor","youVisit","place","where","forVisitor","wanted","agreeing","words","moving","mayAct"]},"InvitationVisitRecorded":{"type":"object","properties":{"id":{"type":"string"},"outcome":{"type":"string"},"statementId":{"type":["string","null"]},"moveId":{"type":["string","null"]}},"required":["id","outcome","statementId","moveId"]},"InvitationVisitOutcome":{"type":"object","properties":{"bookingId":{"type":"string","maxLength":60},"outcome":{"type":"string","maxLength":30},"by":{"type":"string","maxLength":60},"words":{"type":"string","maxLength":1000},"visitingInstead":{"type":"boolean","enum":[true]}},"required":["bookingId","outcome"],"additionalProperties":false},"InvitationInPerson":{"type":"object","properties":{"threadId":{"type":"string"},"personId":{"type":"string"},"place":{"type":"string"},"you":{"type":"object","properties":{"id":{"type":"string"},"name":{"type":"string"}},"required":["id","name"]},"blocked":{"type":["string","null"],"enum":["booked","started","closed","erased","ended","read",null]},"offerAtDoor":{"type":"boolean"},"forVisitor":{"type":["string","null"]},"wanted":{"type":["string","null"]},"agreeing":{"type":"array","items":{"type":"object","properties":{"id":{"type":"string"},"name":{"type":"string"},"basis":{"type":"string","enum":["lpa-health-welfare","deputy"]}},"required":["id","name","basis"]}},"words":{"type":"object","properties":{"version":{"type":"number"},"language":{"type":"string"},"blocks":{"type":"array","items":{"type":"object","properties":{"kind":{"type":"string","enum":["heading","paragraph"]},"label":{"type":"string"},"text":{"type":"string"}},"required":["kind","text"]}}},"required":["version","language","blocks"]},"mayAct":{"type":"boolean"}},"required":["threadId","personId","place","you","blocked","offerAtDoor","forVisitor","wanted","agreeing","words","mayAct"]},"InvitationInPersonRecorded":{"type":"object","properties":{"id":{"type":"string"},"outcome":{"type":"string"},"statementId":{"type":["string","null"]},"contactId":{"type":"string"},"offerMade":{"type":"boolean"}},"required":["id","outcome","statementId","contactId","offerMade"]},"InvitationInPersonOutcome":{"type":"object","properties":{"outcome":{"type":"string","maxLength":30},"by":{"type":"string","maxLength":60},"words":{"type":"string","maxLength":1000}},"required":["outcome"],"additionalProperties":false},"InvitationMoving":{"type":"object","properties":{"id":{"type":"string"},"setNo":{"type":["number","null"]}},"required":["id","setNo"]},"InvitationMove":{"type":"object","properties":{"slots":{"type":"array","items":{"type":"string","maxLength":40},"maxItems":10}},"additionalProperties":false},"PartyContacts":{"type":"object","properties":{"handle":{"type":"string"},"name":{"type":["object","null"],"properties":{"value":{"type":"string"},"source":{"type":"string"},"at":{"type":"string"}},"required":["value","source","at"]},"email":{"type":["object","null"],"properties":{"value":{"type":"string"},"source":{"type":"string"},"at":{"type":"string"}},"required":["value","source","at"]},"address":{"type":["object","null"],"properties":{"lines":{"type":"array","items":{"type":"string"}},"source":{"type":"string"},"at":{"type":"string"}},"required":["lines","source","at"]},"fromPointRequest":{"type":["string","null"]}},"required":["handle","name","email","address","fromPointRequest"]},"PartyContactsRecorded":{"type":"object","properties":{"recorded":{"type":"array","items":{"type":"string"}}},"required":["recorded"]},"PartyContactsRecord":{"type":"object","properties":{"name":{"type":["string","null"],"maxLength":400},"email":{"type":["string","null"],"maxLength":400},"address":{"type":["array","null"],"items":{"type":"string","maxLength":400},"maxItems":10},"source":{"type":"string","maxLength":40}},"required":["source"],"additionalProperties":false},"GetPointPage":{"type":"object","properties":{"draft":{"type":["object","null"],"properties":{"displayName":{"type":"string"},"title":{"type":"string"},"words":{"type":"string"},"contact":{"type":["string","null"]},"savedAt":{"type":"string"},"savedByName":{"type":"string"}},"required":["displayName","title","words","contact","savedAt","savedByName"]},"published":{"type":["object","null"],"properties":{"version":{"type":"number"},"publishedAt":{"type":"string"},"publishedByName":{"type":"string"},"page":{"type":"object","properties":{"displayName":{"type":"string"},"title":{"type":"string"},"words":{"type":"string"},"contact":{"type":["string","null"]}},"required":["displayName","title","words","contact"]}},"required":["version","publishedAt","publishedByName","page"]},"default":{"type":"object","properties":{"displayName":{"type":"string"},"title":{"type":"string"},"words":{"type":"string"},"contact":{"type":["string","null"]}},"required":["displayName","title","words","contact"]},"mayEdit":{"type":"boolean"}},"required":["draft","published","default","mayEdit"]},"GetPointDraftSaved":{"type":"object","properties":{"savedAt":{"type":"string"}},"required":["savedAt"]},"GetPointDraft":{"type":"object","properties":{"displayName":{"type":"string","maxLength":400},"title":{"type":"string","maxLength":400},"words":{"type":"string","maxLength":4000},"contact":{"type":["string","null"],"maxLength":400}},"required":["displayName","title","words"],"additionalProperties":false},"GetPointPublished":{"type":"object","properties":{"version":{"type":"number"}},"required":["version"]},"InvitationNotReachedRecorded":{"type":"object","properties":{"id":{"type":"string"}},"required":["id"]},"InvitationNotReached":{"type":"object","properties":{"words":{"type":"string","maxLength":1000}},"additionalProperties":false},"InvitationsOfAPlace":{"type":"object","properties":{"offers":{"type":"array","items":{}}},"required":["offers"]},"V2Sitting":{"type":"object","properties":{"threadId":{"type":"string"},"personId":{"type":"string"},"step":{"type":"string"},"mayBegin":{"type":"boolean"},"mayAct":{"type":"boolean"},"catalogue":{"type":["object","null"],"properties":{"version":{"type":"string"},"draft":{"type":"boolean"}},"required":["version","draft"]},"gateAnswers":{"type":"array","items":{"type":"object","properties":{"key":{"type":"string"},"words":{"type":"string"}},"required":["key","words"]}},"parts":{"type":"array","items":{}},"sitting":{},"lock":{},"history":{"type":"array","items":{}}},"required":["threadId","personId","step","mayBegin","mayAct","catalogue","gateAnswers","parts","history"]},"V2SittingBegun":{"type":"object","properties":{"id":{"type":"string"},"version":{"type":"string"},"draft":{"type":"boolean"}},"required":["id","version","draft"]},"V2SittingEmpty":{"type":"object","properties":{},"additionalProperties":false},"V2SittingAnswered":{"type":"object","properties":{"id":{"type":"string"},"changed":{"type":"boolean"},"next":{"type":["string","null"]},"complete":{"type":"boolean"}},"required":["id","changed","next","complete"]},"V2SittingAnswer":{"type":"object","properties":{"key":{"type":"string","maxLength":120},"answers":{"type":"array","items":{"type":"string","maxLength":60},"maxItems":40},"gate":{"type":"string","maxLength":20},"items":{"type":"array","items":{"type":"string","maxLength":120},"maxItems":40},"voice":{"type":"string","maxLength":20}},"required":["key"],"additionalProperties":false},"V2SittingPartSet":{"type":"object","properties":{"id":{"type":"string"}},"required":["id"]},"V2SittingPart":{"type":"object","properties":{"part":{"type":"string","maxLength":20},"notAsked":{"type":"boolean"},"words":{"type":"string","maxLength":1000}},"required":["part","notAsked"],"additionalProperties":false},"V2SittingStopped":{"type":"object","properties":{"id":{"type":"string"}},"required":["id"]},"V2SittingStop":{"type":"object","properties":{"words":{"type":"string","maxLength":1000}},"additionalProperties":false},"V2SittingCarriedOn":{"type":"object","properties":{"id":{"type":"string"}},"required":["id"]},"V2SittingLocked":{"type":"object","properties":{"id":{"type":"string"},"answersSha256":{"type":"string"},"draft":{"type":"boolean"},"signable":{"type":"boolean"},"raised":{"type":"number"},"heldOpen":{"type":"number"}},"required":["id","answersSha256","draft","signable","raised","heldOpen"]},"V2SittingUnlocked":{"type":"object","properties":{"id":{"type":"string"},"corrects":{"type":"string"},"carried":{"type":"number"}},"required":["id","corrects","carried"]},"V2SittingUnlock":{"type":"object","properties":{"reason":{"type":"string","maxLength":1000}},"additionalProperties":false},"V2SittingLock":{"type":"object","properties":{"threadId":{"type":"string"},"sittingId":{"type":"string"},"version":{"type":"string"},"draft":{"type":"boolean"},"signable":{"type":"boolean"},"at":{"type":"string"},"byName":{"type":"string"},"catalogueSha256":{"type":"string"},"answersSha256":{"type":"string"},"raised":{"type":"array","items":{}},"heldOpen":{"type":"array","items":{}},"checks":{"type":"array","items":{}}},"required":["threadId","sittingId","version","draft","signable","at","byName","catalogueSha256","answersSha256","raised","heldOpen","checks"]},"V2Findings":{"type":"object","properties":{"threadId":{"type":"string"},"sittingId":{"type":"string"},"lockId":{"type":"string"},"version":{"type":"string"},"draft":{"type":"boolean"},"at":{"type":"string"},"byName":{"type":"string"},"versionNotHeld":{"type":"boolean"},"recorded":{"type":"boolean"},"found":{"type":"array","items":{}},"heldOpen":{"type":"array","items":{}},"planned":{"type":"integer"},"notCarried":{"type":["object","null"],"properties":{"fromVersion":{"type":"string"}},"required":["fromVersion"]},"requirements":{"type":"array","items":{}},"gaps":{"type":"array","items":{}},"gapLabel":{"type":"string"}},"required":["threadId","sittingId","lockId","version","draft","at","byName","versionNotHeld","recorded","found","heldOpen","planned","notCarried","requirements","gaps","gapLabel"]},"V2Consideration":{"type":"object","properties":{"threadId":{"type":"string"},"sittingId":{"type":"string"},"lockId":{"type":"string"},"version":{"type":"string"},"draft":{"type":"boolean"},"key":{"type":"string"},"position":{"type":"integer"},"name":{"type":"string"},"shortName":{"type":["string","null"]},"line":{"type":"string"},"words":{"type":"string"},"stage":{"type":"object","properties":{"key":{"type":"string"},"title":{"type":"string"}},"required":["key","title"]},"under":{"type":"string"},"questions":{"type":"array","items":{"type":"object","properties":{"key":{"type":"string"},"shortLabel":{"type":"string"}},"required":["key","shortLabel"]}},"kind":{"type":"string","enum":["tasks","things","people","later"]},"state":{"type":"string","enum":["not-started","in-progress","planned"]},"why":{"type":"array","items":{}},"places":{"type":"array","items":{}},"thingsToDo":{"type":"array","items":{}},"inTheAlarm":{"type":"array","items":{"type":"object","properties":{"words":{"type":"string"}},"required":["words"]}},"whoHelps":{},"chair":{},"trainings":{"type":"array","items":{}},"planned":{"type":["object","null"],"properties":{"byName":{"type":"string"},"at":{"type":"string"}},"required":["byName","at"]},"gaps":{"type":"array","items":{}},"gapLabel":{"type":"string"},"count":{"type":"object","properties":{"planned":{"type":"integer"},"of":{"type":"integer"}},"required":["planned","of"]},"next":{"type":["object","null"],"properties":{"key":{"type":"string"},"name":{"type":"string"},"kind":{"type":"string","enum":["tasks","things","people","later"]}},"required":["key","name","kind"]}},"required":["threadId","sittingId","lockId","version","draft","key","position","name","shortName","line","words","stage","under","questions","kind","state","why","places","thingsToDo","inTheAlarm","trainings","planned","gaps","gapLabel","count","next"]},"V2ThingsToDoAnswered":{"type":"object","properties":{"rows":{"type":"array","items":{"type":"string"}},"changed":{"type":"boolean"},"reopened":{"type":"boolean"}},"required":["rows","changed","reopened"]},"V2ThingsToDo":{"type":"object","properties":{"answers":{"type":"array","items":{"type":"object","properties":{"preparation":{"type":"integer","minimum":0,"maximum":200},"answer":{"type":"string","enum":["added","not_needed"]},"reason":{"type":["string","null"],"maxLength":2000}},"required":["preparation","answer"],"additionalProperties":false},"minItems":1,"maxItems":60}},"required":["answers"],"additionalProperties":false},"V2Placed":{"type":"object","properties":{"id":{"type":["string","null"]},"changed":{"type":"boolean"},"reopened":{"type":"boolean"},"taskKey":{"type":["string","null"]}},"required":["id","changed","reopened","taskKey"]},"V2Place":{"type":"object","properties":{"preparation":{"type":"integer","minimum":0,"maximum":200},"state":{"type":"string","enum":["in_place","to_be_got","said_in_place","not_decided"]},"kind":{"type":["string","null"],"maxLength":120},"assetId":{"type":["string","null"],"format":"uuid"}},"required":["preparation","state"],"additionalProperties":false},"V2ChairAnswered":{"type":"object","properties":{"id":{"type":"string"},"changed":{"type":"boolean"},"reopened":{"type":"boolean"},"taskKey":{"type":["string","null"]}},"required":["id","changed","reopened","taskKey"]},"V2ChairQuestion":{"type":"object","properties":{"question":{"type":"string","enum":["chair","trained"]},"answer":{"type":"string","enum":["yes","no","not_known"]}},"required":["question","answer"],"additionalProperties":false},"V2WhoHelped":{"type":"object","properties":{"id":{"type":["string","null"]},"changed":{"type":"boolean"},"reopened":{"type":"boolean"}},"required":["id","changed","reopened"]},"V2WhoHelps":{"type":"object","properties":{"time":{"type":"string","enum":["day","night"]},"role":{"type":"string","enum":["first","backup"]},"state":{"type":"string","enum":["post","assistant","not_decided","none"]},"postId":{"type":["string","null"],"format":"uuid"},"assistantHandle":{"type":["string","null"],"format":"uuid"}},"required":["time","role","state"],"additionalProperties":false},"V2GapRecorded":{"type":"object","properties":{"id":{"type":"string"},"supersedes":{"type":["string","null"]},"lookAgainKey":{"type":"string"}},"required":["id","supersedes","lookAgainKey"]},"V2GapConsidered":{"type":"object","properties":{"gap":{"type":"string","minLength":1,"maxLength":420},"weighed":{"type":["string","null"],"maxLength":2000},"steps":{"type":["string","null"],"maxLength":2000},"offered":{"type":["string","null"],"maxLength":2000},"said":{"type":["string","null"],"maxLength":2000},"lookAgainOn":{"type":["string","null"],"maxLength":20}},"required":["gap"],"additionalProperties":false},"V2Reported":{"type":"object","properties":{"id":{"type":"string"},"taskKey":{"type":"string"},"closed":{"type":"boolean"},"answer":{"type":["string","null"],"enum":["yes","no","not_known",null]},"putRightKey":{"type":["string","null"]},"lookAgainOn":{"type":["string","null"]}},"required":["id","taskKey","closed","answer","putRightKey","lookAgainOn"]},"V2Report":{"type":"object","properties":{"task":{"type":"string","minLength":1,"maxLength":220},"answer":{"type":["string","null"],"maxLength":20},"what":{"type":["string","null"],"maxLength":2000},"where":{"type":["string","null"],"maxLength":2000},"who":{"type":["string","null"],"maxLength":2000},"on":{"type":["string","null"],"maxLength":2000},"day":{"type":["string","null"],"maxLength":20},"agreed":{"type":["string","null"],"maxLength":2000},"found":{"type":["string","null"],"maxLength":2000},"note":{"type":["string","null"],"maxLength":2000},"lookAgainOn":{"type":["string","null"],"maxLength":20},"putRight":{"type":["object","null"],"properties":{"owner":{"type":["string","null"],"maxLength":60},"dueOn":{"type":["string","null"],"maxLength":20}},"additionalProperties":false},"closeSteps":{"type":"boolean"},"confirmWaits":{"type":"boolean"}},"required":["task"],"additionalProperties":false},"V2ThingReported":{"type":"object","properties":{"id":{"type":"string"},"taskKey":{"type":"string"},"closed":{"type":"boolean"},"choice":{"type":"string","enum":["there_now","in_the_assets"]},"state":{"type":"string","enum":["in_place","said_in_place"]},"assetId":{"type":["string","null"]},"placeRowId":{"type":"string"}},"required":["id","taskKey","closed","choice","state","assetId","placeRowId"]},"V2ThingReport":{"type":"object","properties":{"task":{"type":"string","minLength":1,"maxLength":220},"choice":{"type":["string","null"],"maxLength":40},"keptIn":{"type":["string","null"],"maxLength":200},"name":{"type":["string","null"],"maxLength":2000},"where":{"type":["string","null"],"maxLength":2000},"assetId":{"type":["string","null"],"format":"uuid"},"modelId":{"type":["string","null"],"format":"uuid"},"serial":{"type":["string","null"],"maxLength":2000},"providedBy":{"type":["string","null"],"maxLength":2000},"values":{"type":["object","null"],"additionalProperties":{"type":"string","maxLength":2000}},"mustBe":{"type":["array","null"],"items":{"type":["string","null"],"maxLength":20},"maxItems":20},"putRight":{"type":["object","null"],"properties":{"owner":{"type":["string","null"],"maxLength":60},"dueOn":{"type":["string","null"],"maxLength":20}},"additionalProperties":false},"note":{"type":["string","null"],"maxLength":2000},"closeSteps":{"type":"boolean"},"confirmWaits":{"type":"boolean"}},"required":["task"],"additionalProperties":false},"V2ReportCorrected":{"type":"object","properties":{"id":{"type":"string"},"corrects":{"type":"string"}},"required":["id","corrects"]},"V2ReportCorrection":{"type":"object","properties":{"corrects":{"type":"string","format":"uuid"},"what":{"type":["string","null"],"maxLength":2000},"where":{"type":["string","null"],"maxLength":2000},"who":{"type":["string","null"],"maxLength":2000},"on":{"type":["string","null"],"maxLength":2000},"day":{"type":["string","null"],"maxLength":20},"agreed":{"type":["string","null"],"maxLength":2000},"found":{"type":["string","null"],"maxLength":2000},"note":{"type":["string","null"],"maxLength":2000},"answer":{"type":["string","null"],"maxLength":20},"lookAgainOn":{"type":["string","null"],"maxLength":20},"putRight":{"type":["object","null"],"properties":{"owner":{"type":["string","null"],"maxLength":60},"dueOn":{"type":["string","null"],"maxLength":20}},"additionalProperties":false}},"required":["corrects"],"additionalProperties":false},"V2ThingReportChanged":{"type":"object","properties":{"id":{"type":"string"},"corrects":{"type":"string"}},"required":["id","corrects"]},"V2ThingReportChange":{"type":"object","properties":{"corrects":{"type":"string","format":"uuid"},"name":{"type":["string","null"],"maxLength":2000},"keptIn":{"type":["string","null"],"maxLength":200}},"required":["corrects"],"additionalProperties":false},"V2WhoHelpsReportChanged":{"type":"object","properties":{"id":{"type":"string"},"corrects":{"type":"string"},"times":{"type":"array","items":{"type":"string","enum":["day","night"]}},"left":{"type":"array","items":{"type":"string","enum":["day","night"]}},"role":{"type":"string","enum":["first","backup"]}},"required":["id","corrects","times","left","role"]},"V2WhoHelpsReportChange":{"type":"object","properties":{"helper":{"type":"object","properties":{"kind":{"type":"string","enum":["post","assistant","new"]},"postId":{"type":["string","null"],"format":"uuid"},"handle":{"type":["string","null"],"format":"uuid"},"agreed":{"$ref":"#/components/schemas/V2AssistingAnswer"},"assistant":{"$ref":"#/components/schemas/V2AssistingAdd"}},"required":["kind"],"additionalProperties":false},"times":{"type":["array","null"],"items":{"type":"string","maxLength":10},"maxItems":2},"agreed":{"type":["string","null"],"maxLength":2000},"note":{"type":["string","null"],"maxLength":2000},"corrects":{"type":"string","format":"uuid"}},"required":["helper","corrects"],"additionalProperties":false},"V2AssistingAnswer":{"type":["object","null"],"properties":{"answer":{"type":"string","maxLength":20},"how":{"type":"string","maxLength":20},"on":{"type":"string","maxLength":10},"party":{"type":"string","maxLength":64}},"required":["answer"],"additionalProperties":false},"V2AssistingAdd":{"type":["object","null"],"properties":{"cover":{},"does":{"type":"array","items":{"type":"string","maxLength":40},"maxItems":20},"doesWords":{"type":"string","maxLength":2000},"competence":{"type":"string","maxLength":120},"competenceWords":{"type":"string","maxLength":400},"firstOrBackup":{"type":"string","maxLength":20},"toldHow":{"type":"string","maxLength":40},"toldWords":{"type":"string","maxLength":2000},"practisedOn":{"type":"string","maxLength":10},"practisedWords":{"type":"string","maxLength":2000},"who":{"type":"object","properties":{"kind":{"type":"string","maxLength":20},"postId":{"type":"string","maxLength":64},"residencyId":{"type":"string","maxLength":64},"stayId":{"type":"string","maxLength":64},"name":{"type":"string","maxLength":400},"relation":{"type":"string","maxLength":400},"reach":{"type":"string","maxLength":400}},"required":["kind"],"additionalProperties":false},"agreed":{"$ref":"#/components/schemas/V2AssistingAnswer"},"maySeePlan":{"$ref":"#/components/schemas/V2AssistingAnswer"}},"required":["who"],"additionalProperties":false},"V2WhoHelpsReported":{"type":"object","properties":{"id":{"type":"string"},"taskKey":{"type":"string"},"closed":{"type":"boolean"},"times":{"type":"array","items":{"type":"string","enum":["day","night"]}},"left":{"type":"array","items":{"type":"string","enum":["day","night"]}},"role":{"type":"string","enum":["first","backup"]},"helper":{"type":"object","properties":{"kind":{"type":"string","enum":["post","assistant"]},"postId":{"type":"string"},"handle":{"type":"string"},"added":{"type":"boolean"}},"required":["kind"]}},"required":["id","taskKey","closed","times","left","role","helper"]},"V2WhoHelpsReport":{"type":"object","properties":{"task":{"type":"string","minLength":1,"maxLength":220},"helper":{"type":"object","properties":{"kind":{"type":"string","enum":["post","assistant","new"]},"postId":{"type":["string","null"],"format":"uuid"},"handle":{"type":["string","null"],"format":"uuid"},"agreed":{"$ref":"#/components/schemas/V2AssistingAnswer"},"assistant":{"$ref":"#/components/schemas/V2AssistingAdd"}},"required":["kind"],"additionalProperties":false},"times":{"type":["array","null"],"items":{"type":"string","maxLength":10},"maxItems":2},"agreed":{"type":["string","null"],"maxLength":2000},"note":{"type":["string","null"],"maxLength":2000},"closeSteps":{"type":"boolean"},"confirmWaits":{"type":"boolean"}},"required":["task","helper"],"additionalProperties":false},"V2TrainingReported":{"type":"object","properties":{"id":{"type":"string"},"taskKey":{"type":"string"},"closed":{"type":"boolean"},"attestationId":{"type":"string"}},"required":["id","taskKey","closed","attestationId"]},"V2TrainingReport":{"type":"object","properties":{"task":{"type":"string","minLength":1,"maxLength":220},"personId":{"type":["string","null"],"format":"uuid"},"fromOn":{"type":["string","null"],"maxLength":20},"expiresOn":{"type":["string","null"],"maxLength":20},"reference":{"type":["string","null"],"maxLength":400},"note":{"type":["string","null"],"maxLength":2000},"closeSteps":{"type":"boolean"},"confirmWaits":{"type":"boolean"}},"required":["task"],"additionalProperties":false},"V2Planned":{"type":"object","properties":{"id":{"type":"string"},"changed":{"type":"boolean"}},"required":["id","changed"]},"V2SittingNoted":{"type":"object","properties":{"id":{"type":["string","null"]},"changed":{"type":"boolean"}},"required":["id","changed"]},"V2SittingNote":{"type":"object","properties":{"key":{"type":"string","maxLength":120},"words":{"type":"string","maxLength":8000}},"required":["key","words"],"additionalProperties":false},"V2SittingPhotosAgreed":{"type":"object","properties":{"id":{"type":"string"}},"required":["id"]},"V2SittingPhotosAgreement":{"type":"object","properties":{"agreed":{"type":"boolean"}},"required":["agreed"],"additionalProperties":false},"V2SittingPhotoUploadStart":{"type":"object","properties":{"key":{"type":"string","maxLength":120},"mediaType":{"type":"string","maxLength":200},"size":{"type":"integer","exclusiveMinimum":0}},"required":["key","mediaType","size"],"additionalProperties":false},"V2SittingPhotoAdded":{"type":"object","properties":{"id":{"type":"string"},"sha256":{"type":"string"},"added":{"type":"boolean"}},"required":["id","sha256","added"]},"V2SittingPhotoUploadComplete":{"type":"object","properties":{"key":{"type":"string","maxLength":120},"source":{"type":"string","enum":["camera","files"]},"caption":{"type":"string","maxLength":1000}},"required":["key","source"],"additionalProperties":false},"V2SittingPhotoArchived":{"type":"object","properties":{"id":{"type":"string"}},"required":["id"]},"V2GivenReportForm":{"type":"object","properties":{"taskKey":{"type":"string"},"place":{"type":"string"},"what":{"type":"string"},"verb":{"type":"string"},"waits":{"type":["string","null"]},"words":{"type":["object","null"],"properties":{"fields":{"type":"array","items":{"type":"object","properties":{"name":{"type":"string","enum":["what","where","who","on","day","agreed","found"]},"label":{"type":"string"},"required":{"type":"string","enum":["always","unless-yes"]},"kind":{"type":"string","enum":["text","day"]},"hint":{"type":["string","null"]}},"required":["name","label","required","kind","hint"]}},"lookAgain":{"type":"boolean"}},"required":["fields","lookAgain"]},"thing":{"type":["object","null"],"properties":{"kindWords":{"type":"string"},"inRegister":{"type":"boolean"},"typeLabel":{"type":["string","null"]},"spaces":{"type":"array","items":{"type":"object","properties":{"id":{"type":"string"},"name":{"type":"string"}},"required":["id","name"]}},"homeSpaceId":{"type":["string","null"]},"assets":{"type":["array","null"],"items":{"type":"object","properties":{"id":{"type":"string"},"name":{"type":"string"},"keptIn":{"type":["string","null"]},"for":{"type":"string"},"inUse":{"type":"boolean"},"model":{"type":["string","null"]},"facts":{"type":"array","items":{"type":"string"}}},"required":["id","name","keptIn","for","inUse","model","facts"]}},"models":{"type":"array","items":{"type":"object","properties":{"id":{"type":"string"},"name":{"type":"string"},"maker":{"type":["string","null"]}},"required":["id","name","maker"]}},"required":{"type":"array","items":{"type":"object","properties":{"key":{"type":"string"},"label":{"type":"string"},"kind":{"type":"string","enum":["text","number","yes_no","choice","date"]},"required":{"type":"boolean"},"unit":{"type":"string"},"choices":{"type":"array","items":{"type":"string"}},"hint":{"type":"string"}},"required":["key","label","kind"]}},"facts":{"type":"array","items":{"type":"object","properties":{"index":{"type":"integer"},"words":{"type":"string"}},"required":["index","words"]}},"factsTotal":{"type":"integer"}},"required":["kindWords","inRegister","typeLabel","spaces","homeSpaceId","assets","models","required","facts","factsTotal"]},"waiting":{"type":["object","null"],"properties":{"byName":{"type":"string"},"at":{"type":"string"},"sentence":{"type":["string","null"]},"mine":{"type":"boolean"}},"required":["byName","at","sentence","mine"]},"sentBack":{"type":["object","null"],"properties":{"byName":{"type":"string"},"at":{"type":"string"},"reason":{"type":["string","null"]}},"required":["byName","at","reason"]}},"required":["taskKey","place","what","verb","waits","words","thing","waiting","sentBack"]},"V2GivenReported":{"type":"object","properties":{"taskKey":{"type":"string"},"closed":{"type":"boolean"},"waiting":{"type":"boolean"},"words":{"type":"string"}},"required":["taskKey","closed","waiting","words"]},"V2GivenReport":{"type":"object","properties":{"answer":{"type":["string","null"],"maxLength":20},"what":{"type":["string","null"],"maxLength":2000},"where":{"type":["string","null"],"maxLength":2000},"who":{"type":["string","null"],"maxLength":2000},"on":{"type":["string","null"],"maxLength":2000},"day":{"type":["string","null"],"maxLength":20},"agreed":{"type":["string","null"],"maxLength":2000},"found":{"type":["string","null"],"maxLength":2000},"note":{"type":["string","null"],"maxLength":2000},"lookAgainOn":{"type":["string","null"],"maxLength":20},"putRight":{"type":["object","null"],"properties":{"owner":{"type":["string","null"],"maxLength":60},"dueOn":{"type":["string","null"],"maxLength":20}},"additionalProperties":false},"closeSteps":{"type":"boolean"},"confirmWaits":{"type":"boolean"}},"additionalProperties":false},"V2GivenThingReported":{"type":"object","properties":{"taskKey":{"type":"string"},"closed":{"type":"boolean"},"words":{"type":"string"}},"required":["taskKey","closed","words"]},"V2GivenThingReport":{"type":"object","properties":{"choice":{"type":["string","null"],"maxLength":40},"keptIn":{"type":["string","null"],"maxLength":200},"name":{"type":["string","null"],"maxLength":2000},"where":{"type":["string","null"],"maxLength":2000},"assetId":{"type":["string","null"],"format":"uuid"},"modelId":{"type":["string","null"],"format":"uuid"},"serial":{"type":["string","null"],"maxLength":2000},"providedBy":{"type":["string","null"],"maxLength":2000},"values":{"type":["object","null"],"additionalProperties":{"type":"string","maxLength":2000}},"mustBe":{"type":["array","null"],"items":{"type":["string","null"],"maxLength":20},"maxItems":20},"putRight":{"type":["object","null"],"properties":{"owner":{"type":["string","null"],"maxLength":60},"dueOn":{"type":["string","null"],"maxLength":20}},"additionalProperties":false},"note":{"type":["string","null"],"maxLength":2000},"closeSteps":{"type":"boolean"},"confirmWaits":{"type":"boolean"}},"additionalProperties":false},"V2TakenIn":{"type":"object","properties":{"id":{"type":"string"},"taskKey":{"type":"string"},"closed":{"type":"boolean"},"answer":{"type":["string","null"],"enum":["yes","no","not_known",null]},"putRightKey":{"type":["string","null"]},"lookAgainOn":{"type":["string","null"]},"waitingId":{"type":"string"},"decisionId":{"type":"string"}},"required":["id","taskKey","closed","answer","putRightKey","lookAgainOn","waitingId","decisionId"]},"V2TakeIn":{"type":"object","properties":{"answer":{"type":["string","null"],"maxLength":20},"what":{"type":["string","null"],"maxLength":2000},"where":{"type":["string","null"],"maxLength":2000},"who":{"type":["string","null"],"maxLength":2000},"on":{"type":["string","null"],"maxLength":2000},"day":{"type":["string","null"],"maxLength":20},"agreed":{"type":["string","null"],"maxLength":2000},"found":{"type":["string","null"],"maxLength":2000},"note":{"type":["string","null"],"maxLength":2000},"lookAgainOn":{"type":["string","null"],"maxLength":20},"putRight":{"type":["object","null"],"properties":{"owner":{"type":["string","null"],"maxLength":60},"dueOn":{"type":["string","null"],"maxLength":20}},"additionalProperties":false},"closeSteps":{"type":"boolean"},"confirmWaits":{"type":"boolean"}},"additionalProperties":false},"V2SentBack":{"type":"object","properties":{"waitingId":{"type":"string"},"decisionId":{"type":"string"}},"required":["waitingId","decisionId"]},"V2SendBack":{"type":"object","properties":{"reason":{"type":["string","null"],"maxLength":2000}},"additionalProperties":false},"V2About":{"type":"object","properties":{"threadId":{"type":"string"},"lockId":{"type":"string"},"version":{"type":"string"},"firstName":{"type":"string"},"mayAct":{"type":"boolean"},"about":{"type":["object","null"],"properties":{"id":{"type":"string"},"source":{"type":"string","enum":["assistant","findings","corrected"]},"paragraph":{"type":["string","null"]},"emptied":{"type":"boolean"},"fallback":{"type":["string","null"]},"corrected":{"type":["object","null"],"properties":{"byName":{"type":"string"},"at":{"type":"string"}},"required":["byName","at"]},"carried":{"type":"boolean"},"versions":{"type":"integer"}},"required":["id","source","paragraph","emptied","fallback","corrected","carried","versions"]},"findings":{"type":"array","items":{"type":"string"}}},"required":["threadId","lockId","version","firstName","mayAct","about","findings"]},"V2AboutMake":{"type":"object","properties":{},"additionalProperties":false},"V2AboutCorrection":{"type":"object","properties":{"words":{"type":"string","maxLength":4000},"basedOn":{"type":"string","maxLength":64}},"required":["words","basedOn"],"additionalProperties":false},"V2Suggestions":{"type":"object","properties":{"threadId":{"type":"string"},"lockId":{"type":"string"},"key":{"type":"string"},"mayAsk":{"type":"boolean"},"latest":{"type":["object","null"],"properties":{"id":{"type":"string"},"outcome":{"type":"string","enum":["suggested","nothing","no-model","failed"]},"at":{"type":"string"},"made":{"type":"integer"}},"required":["id","outcome","at","made"]},"suggestions":{"type":"array","items":{"type":"object","properties":{"id":{"type":"string"},"kind":{"type":"string","enum":["thing","who","not_needed","note"]},"preparation":{"type":["integer","null"]},"state":{"type":["string","null"]},"kindKey":{"type":["string","null"]},"assetId":{"type":["string","null"]},"time":{"type":["string","null"],"enum":["day","night",null]},"postId":{"type":["string","null"]},"handle":{"type":["string","null"]},"words":{"type":["string","null"]},"madeAt":{"type":"string"},"answer":{"type":["object","null"],"properties":{"answer":{"type":"string","enum":["accepted","changed","declined","noted"]},"byName":{"type":"string"},"at":{"type":"string"}},"required":["answer","byName","at"]},"overtaken":{"type":"boolean"}},"required":["id","kind","preparation","state","kindKey","assetId","time","postId","handle","words","madeAt","answer","overtaken"]}}},"required":["threadId","lockId","key","mayAsk","latest","suggestions"]},"V2SuggestionsAsk":{"type":"object","properties":{},"additionalProperties":false},"V2SuggestionAnswered":{"type":"object","properties":{"answer":{"type":"string","enum":["accepted","changed","declined","noted"]},"appliedRow":{"type":["string","null"]},"view":{"$ref":"#/components/schemas/V2Suggestions"}},"required":["answer","appliedRow","view"]},"V2SuggestionAnswer":{"type":"object","properties":{"answer":{"type":"string","maxLength":20}},"required":["answer"],"additionalProperties":false},"V2AssistingOfResidency":{"type":"object","properties":{"personId":{"type":"string"},"residencyId":{"type":"string"},"assistants":{"type":"array","items":{}}},"required":["personId","residencyId","assistants"]},"V2AssistingAdded":{"type":"object","properties":{"handle":{"type":"string"},"id":{"type":"string"}},"required":["handle","id"]},"V2AssistingWritten":{"type":"object","properties":{"id":{"type":"string"}},"required":["id"]},"V2AssistingTerms":{"type":"object","properties":{"cover":{},"does":{"type":"array","items":{"type":"string","maxLength":40},"maxItems":20},"doesWords":{"type":"string","maxLength":2000},"competence":{"type":"string","maxLength":120},"competenceWords":{"type":"string","maxLength":400},"firstOrBackup":{"type":"string","maxLength":20},"toldHow":{"type":"string","maxLength":40},"toldWords":{"type":"string","maxLength":2000},"practisedOn":{"type":"string","maxLength":10},"practisedWords":{"type":"string","maxLength":2000}},"additionalProperties":false},"V2AssistingEnd":{"type":"object","properties":{"by":{"type":"string","maxLength":20},"on":{"type":"string","maxLength":10},"why":{"type":"string","maxLength":2000}},"required":["by"],"additionalProperties":false},"V2AssistingOfPlace":{"type":"object","properties":{"placeId":{"type":"string"},"groups":{"type":"object","properties":{"staff":{"type":"array","items":{}},"living":{"type":"array","items":{}},"guests":{"type":"array","items":{}},"others":{"type":"array","items":{}}},"required":["staff","living","guests","others"]}},"required":["placeId","groups"]},"ReviewCycle":{"type":"object","properties":{"signedOff":{"type":"boolean"},"due":{"type":["string","null"]},"daysToGo":{"type":["integer","null"]},"bookTheReview":{"type":"boolean"},"reviewContact":{"type":["object","null"],"properties":{"id":{"type":"string"},"day":{"type":"string"},"done":{"type":"boolean"}},"required":["id","day","done"]},"cycles":{"type":"array","items":{"type":"object","properties":{"cycle":{"type":"integer"},"openedOn":{"type":"string"},"reasonLabel":{"type":["string","null"]},"change":{"type":["object","null"],"properties":{"id":{"type":"string"},"kindLabel":{"type":"string"}},"required":["id","kindLabel"]},"signedOffOn":{"type":["string","null"]},"level":{"type":["string","null"],"enum":["red","amber","green",null]},"reviewMonths":{"type":["integer","null"]},"reviewReason":{"type":["string","null"]},"status":{"type":"string","enum":["working","in-force","superseded","closed"]}},"required":["cycle","openedOn","reasonLabel","change","signedOffOn","level","reviewMonths","reviewReason","status"]}},"changes":{"type":"array","items":{"type":"object","properties":{"id":{"type":"string"},"kind":{"type":"string","enum":["fall","hospital","moved","needs","helper-gone","asked","other"]},"kindLabel":{"type":"string"},"words":{"type":["string","null"]},"noticedOn":{"type":"string"},"choice":{"type":"string","enum":["review_now","next_review"]},"cycle":{"type":["integer","null"]},"madeAt":{"type":"string"},"madeByName":{"type":"string"}},"required":["id","kind","kindLabel","words","noticedOn","choice","cycle","madeAt","madeByName"]}},"suspended":{"type":"boolean"},"closed":{"type":"boolean"},"mayAct":{"type":"boolean"},"mayReviewNow":{"type":"boolean"}},"required":["signedOff","due","daysToGo","bookTheReview","reviewContact","cycles","changes","suspended","closed","mayAct","mayReviewNow"]},"ChangeMade":{"type":"object","properties":{"id":{"type":"string"},"choice":{"type":"string","enum":["review_now","next_review"]},"review":{"type":["object","null"],"properties":{"versionId":{"type":"string"},"cycle":{"type":"integer"}},"required":["versionId","cycle"]}},"required":["id","choice","review"]},"ChangeRecorded":{"type":"object","properties":{"kind":{"type":"string","minLength":1,"maxLength":40},"words":{"type":"string","maxLength":500},"noticedOn":{"type":"string","maxLength":10},"choice":{"type":"string","minLength":1,"maxLength":40}},"required":["kind","words","choice"],"additionalProperties":false},"ProcessSummaries":{"type":"object","properties":{"handle":{"type":"string"},"answerSetId":{"type":"string"},"mayAct":{"type":"boolean"},"locked":{"type":"boolean"},"about":{"$ref":"#/components/schemas/ProcessSummary"},"raises":{"$ref":"#/components/schemas/ProcessSummary"},"added":{"type":"array","items":{"$ref":"#/components/schemas/ProcessSummary"}},"drafting":{"$ref":"#/components/schemas/ProcessDrafting"},"mechanical":{"type":"object","properties":{"answers":{"type":"array","items":{"type":"object","properties":{"key":{"type":"string"},"question":{"type":"string"},"label":{"type":["string","null"]},"answer":{"type":"string"},"part":{"type":["object","null"],"properties":{"key":{"type":"string"},"title":{"type":"string"},"number":{"type":"integer"}},"required":["key","title","number"]},"section":{"type":["object","null"],"properties":{"code":{"type":"string"},"title":{"type":"string"}},"required":["code","title"]},"number":{"type":["string","null"]}},"required":["key","question","label","answer","part","section","number"]}},"rest":{"type":"object","properties":{"raisedNothing":{"type":"integer"},"couldNotBeEstablished":{"type":"integer"},"notApplicable":{"type":"integer"}},"required":["raisedNothing","couldNotBeEstablished","notApplicable"]},"considerations":{"type":"array","items":{"type":"object","properties":{"key":{"type":"string"},"words":{"type":"string"},"raisedBy":{"type":"array","items":{"type":"string"}},"group":{"type":"string"}},"required":["key","words","raisedBy","group"]}}},"required":["answers","rest","considerations"]}},"required":["handle","answerSetId","mayAct","locked","about","raises","added","drafting","mechanical"]},"ProcessSummary":{"type":["object","null"],"properties":{"id":{"type":"string"},"kind":{"type":"string","enum":["about","raises"]},"source":{"type":"string","enum":["assistant","template","edited"]},"draftedBy":{"type":"string","enum":["assistant","template"]},"modelId":{"type":["string","null"]},"edits":{"type":["string","null"]},"madeAt":{"type":"string"},"madeByName":{"type":"string"},"emptied":{"type":"boolean"},"paragraph":{"type":["string","null"]},"sentences":{"type":["array","null"],"items":{"type":"object","properties":{"text":{"type":"string"},"cites":{"type":"array","items":{"type":"string"}}},"required":["text","cites"]}},"cites":{"type":"array","items":{"type":"string"}},"lines":{"type":["array","null"],"items":{"type":"object","properties":{"key":{"type":"string"},"group":{"type":"string"},"text":{"type":"string"},"answers":{"type":"array","items":{"type":"string"}}},"required":["key","group","text","answers"]}},"adds":{"type":["string","null"]},"confirmed":{"type":["object","null"],"properties":{"byName":{"type":"string"},"at":{"type":"string"}},"required":["byName","at"]},"seenAtSignOff":{"type":"array","items":{"type":"object","properties":{"byName":{"type":"string"},"at":{"type":"string"}},"required":["byName","at"]}}},"required":["id","kind","source","draftedBy","modelId","edits","madeAt","madeByName","emptied","paragraph","sentences","cites","lines","adds","confirmed","seenAtSignOff"]},"ProcessDrafting":{"type":"object","properties":{"waiting":{"type":"boolean"},"trigger":{"type":["string","null"]},"since":{"type":["string","null"]},"last":{"type":["object","null"],"properties":{"outcome":{"type":"string","enum":["drafted","template","nothing","superseded","failed"]},"why":{"type":["string","null"]},"at":{"type":"string"}},"required":["outcome","why","at"]}},"required":["waiting","trigger","since","last"]},"SummariesDraft":{"type":"object","properties":{},"additionalProperties":false},"SummaryEdited":{"type":"object","properties":{"paragraph":{"type":"string","maxLength":2000},"lines":{"type":"array","items":{"type":"object","properties":{"key":{"type":"string","minLength":1,"maxLength":240},"text":{"type":"string","maxLength":500}},"required":["key","text"],"additionalProperties":false},"maxItems":200}},"additionalProperties":false},"SoftLocks":{"type":"object","properties":{"handle":{"type":"string"},"cycle":{"type":"integer"},"signedOff":{"type":"boolean"},"mayAct":{"type":"boolean"},"locks":{"type":"array","items":{"type":"object","properties":{"lock":{"type":"string"},"words":{"type":"string"},"unlockable":{"type":"boolean"},"unlocked":{"type":["object","null"],"properties":{"byName":{"type":"string"},"at":{"type":"string"},"unlockId":{"type":"string"},"reason":{"type":["string","null"]}},"required":["byName","at","unlockId","reason"]}},"required":["lock","words","unlockable","unlocked"]}},"checking":{"type":"array","items":{"type":"object","properties":{"lock":{"type":"string"},"kind":{"type":"string"},"ref":{"type":"string"},"words":{"type":"string"},"flagId":{"type":"string"},"mayCheck":{"type":"boolean"},"since":{"type":"object","properties":{"byName":{"type":"string"},"at":{"type":"string"},"unlockId":{"type":"string"},"lock":{"type":"string"},"words":{"type":"string"},"reason":{"type":["string","null"]}},"required":["byName","at","unlockId","lock","words","reason"]}},"required":["lock","kind","ref","words","flagId","mayCheck","since"]}},"unlocks":{"type":"array","items":{"type":"object","properties":{"byName":{"type":"string"},"at":{"type":"string"},"id":{"type":"string"},"lock":{"type":"string"},"words":{"type":"string"},"reason":{"type":["string","null"]},"relocked":{"type":["object","null"],"properties":{"byName":{"type":"string"},"at":{"type":"string"},"unchanged":{"type":"boolean"}},"required":["byName","at","unchanged"]},"flagged":{"type":"array","items":{"type":"object","properties":{"lock":{"type":"string"},"kind":{"type":"string"},"ref":{"type":"string"},"words":{"type":"string"},"flagId":{"type":"string"},"cleared":{"type":["object","null"],"properties":{"byName":{"type":"string"},"at":{"type":"string"},"how":{"type":"string","enum":["relock_unchanged","still_holds","changed","covered_unchanged"]}},"required":["byName","at","how"]}},"required":["lock","kind","ref","words","flagId","cleared"]}}},"required":["byName","at","id","lock","words","reason","relocked","flagged"]}}},"required":["handle","cycle","signedOff","mayAct","locks","checking","unlocks"]},"AnswerCorrections":{"type":"object","properties":{"handle":{"type":"string"},"cycle":{"type":"integer"},"current":{"type":["object","null"],"properties":{"answerSetId":{"type":"string"},"sealedOn":{"type":"string"}},"required":["answerSetId","sealedOn"]},"first":{"type":["object","null"],"properties":{"answerSetId":{"type":"string"},"sealedOn":{"type":"string"}},"required":["answerSetId","sealedOn"]},"corrections":{"type":"array","items":{"type":"object","properties":{"answerSetId":{"type":"string"},"supersedes":{"type":"string"},"sealedOn":{"type":"string"},"sealedByName":{"type":"string"},"unlocked":{"type":["object","null"],"properties":{"byName":{"type":"string"},"at":{"type":"string"},"reason":{"type":["string","null"]}},"required":["byName","at","reason"]},"unchanged":{"type":"boolean"},"changes":{"type":"array","items":{"type":"object","properties":{"section":{"type":"string"},"set":{"type":"string"},"key":{"type":"string"},"question":{"type":"string"},"from":{"type":["string","null"]},"to":{"type":["string","null"]}},"required":["section","set","key","question","from","to"]}},"notAsked":{"type":"array","items":{"type":"object","properties":{"section":{"type":"string"},"from":{"type":["string","null"]},"to":{"type":["string","null"]}},"required":["section","from","to"]}}},"required":["answerSetId","supersedes","sealedOn","sealedByName","unlocked","unchanged","changes","notAsked"]}}},"required":["handle","cycle","current","first","corrections"]},"UnlockPreview":{"type":"object","properties":{"lock":{"type":"string"},"words":{"type":"string"},"follows":{"type":"array","items":{"type":"object","properties":{"lock":{"type":"string"},"words":{"type":"string"},"items":{"type":"array","items":{"type":"object","properties":{"lock":{"type":"string"},"kind":{"type":"string"},"ref":{"type":"string"},"words":{"type":"string"}},"required":["lock","kind","ref","words"]}}},"required":["lock","words","items"]}},"consequences":{"type":"string"},"seen":{"type":"string"}},"required":["lock","words","follows","consequences","seen"]},"SoftUnlock":{"type":"object","properties":{"reason":{"type":"string","maxLength":1000},"seen":{"type":"string","maxLength":200}},"additionalProperties":false},"StillHolds":{"type":"object","properties":{},"additionalProperties":false},"JobSuggestions":{"type":"object","properties":{"handle":{"type":"string"},"answerSetId":{"type":"string"},"mayAct":{"type":"boolean"},"suggestions":{"type":"array","items":{"$ref":"#/components/schemas/JobSuggestion"}},"counts":{"type":"object","properties":{"open":{"type":"integer"},"accepted":{"type":"integer"},"declined":{"type":"integer"}},"required":["open","accepted","declined"]}},"required":["handle","answerSetId","mayAct","suggestions","counts"]},"JobSuggestion":{"type":"object","properties":{"id":{"type":"string"},"words":{"type":"string"},"kind":{"type":"string","enum":["ask","fit","record","book","other"]},"state":{"type":"string","enum":["open","taken","declined","closed"]},"offeredOn":{"type":"string"},"from":{"type":"array","items":{"type":"object","properties":{"key":{"type":"string"},"kind":{"type":"string","enum":["consideration","missing"]},"words":{"type":"string"}},"required":["key","kind","words"]}},"job":{"type":["string","null"]},"decidedByName":{"type":["string","null"]},"declinedBecause":{"type":["string","null"]}},"required":["id","words","kind","state","offeredOn","from","job","decidedByName","declinedBecause"]},"JobSuggestionsMade":{"allOf":[{"$ref":"#/components/schemas/JobSuggestions"},{"type":"object","properties":{"outcome":{"type":"object","properties":{"made":{"type":"integer"},"duplicates":{"type":"integer"},"none":{"type":["string","null"],"enum":["no-model","nothing-raised","failed","refused",null]}},"required":["made","duplicates","none"]}},"required":["outcome"]}]},"JobSuggestionsAsked":{"type":"object","properties":{},"additionalProperties":false},"JobSuggestionAccepted":{"allOf":[{"$ref":"#/components/schemas/JobSuggestions"},{"type":"object","properties":{"job":{"type":"string"}},"required":["job"]}]},"JobSuggestionDeclined":{"type":"object","properties":{"why":{"type":"string","maxLength":1000}},"additionalProperties":false},"Provision":{"type":"object","properties":{"handle":{"type":"string"},"answerSetId":{"type":"string"},"placeId":{"type":"string"},"planHandle":{"type":["string","null"]},"home":{"type":["string","null"]},"storey":{"type":["string","null"]},"mayAct":{"type":"boolean"},"offers":{"type":"array","items":{"type":"object","properties":{"key":{"type":"string"},"title":{"type":"string"},"held":{"type":"array","items":{"type":"object","properties":{"id":{"type":"string"},"what":{"type":"string"},"basis":{"type":"string"},"basisLine":{"type":"string"},"target":{},"from":{"type":"string","enum":["thing","answer"]},"state":{"type":["string","null"]},"hours":{"type":["string","null"]},"ruling":{"type":["object","null"],"properties":{"verdict":{"type":"string","enum":["still_true","changed","not_established"]},"seen":{"type":"boolean"},"on":{"type":"string"},"at":{"type":"string"},"words":{"type":["string","null"]},"byName":{"type":"string"}},"required":["verdict","seen","on","at","words","byName"]}},"required":["id","what","basis","basisLine","from","state","hours","ruling"]}},"none":{"type":["object","null"],"properties":{"state":{"type":"string","enum":["open","left","offered"]},"on":{"type":["string","null"]},"byName":{"type":["string","null"]},"record":{"anyOf":[{"type":"object","properties":{"kind":{"type":"string","enum":["question"]},"question":{"type":"string"},"number":{"type":"string"},"prompt":{"type":"string"},"options":{"type":"array","items":{"type":"object","properties":{"index":{"type":"integer"},"label":{"type":"string"}},"required":["index","label"]}}},"required":["kind","question","number","prompt","options"]},{"type":"object","properties":{"kind":{"type":"string","enum":["elsewhere"]},"where":{"type":"string"}},"required":["kind","where"]},{"type":"null"}]}},"required":["state","on","byName","record"]},"settled":{"type":"boolean"}},"required":["key","title","held","none","settled"]}},"counts":{"type":"object","additionalProperties":{"type":"integer"}},"done":{"type":"boolean"},"summary":{"type":"string"}},"required":["handle","answerSetId","placeId","planHandle","home","storey","mayAct","offers","counts","done","summary"]},"ProvisionConfirm":{"type":"object","properties":{"item":{"type":"string","minLength":1,"maxLength":300},"verdict":{"type":"string","minLength":1,"maxLength":20},"seen":{"type":"boolean"},"changedWords":{"type":"string","minLength":1,"maxLength":500}},"required":["item","verdict","seen"],"additionalProperties":false},"ProvisionRecord":{"type":"object","properties":{"offer":{"type":"string","minLength":1,"maxLength":40},"option":{"type":"integer","minimum":0,"maximum":50},"basis":{"type":"string","minLength":1,"maxLength":10},"note":{"type":"string","maxLength":500}},"required":["offer"],"additionalProperties":false},"ProvisionLeave":{"type":"object","properties":{"offer":{"type":"string","minLength":1,"maxLength":40}},"required":["offer"],"additionalProperties":false},"Assignment":{"type":"object","properties":{"assignedTo":{"type":["object","null"],"properties":{"kind":{"type":"string","enum":["member","team"]},"id":{"type":"string"},"name":{"type":"string"},"since":{"type":"string"},"byName":{"type":"string"}},"required":["kind","id","name","since","byName"]},"assessor":{"type":["object","null"],"properties":{"id":{"type":"string"},"name":{"type":"string"}},"required":["id","name"]},"followers":{"type":"array","items":{"type":"object","properties":{"id":{"type":"string"},"name":{"type":"string"},"since":{"type":"string"}},"required":["id","name","since"]}},"following":{"type":"boolean"},"alone":{"type":"boolean"},"closed":{"type":"boolean"},"mayReassign":{"type":"boolean"},"mayFollow":{"type":"boolean"},"choices":{"type":"object","properties":{"members":{"type":"array","items":{"type":"object","properties":{"id":{"type":"string"},"name":{"type":"string"}},"required":["id","name"]}},"teams":{"type":"array","items":{"type":"object","properties":{"id":{"type":"string"},"name":{"type":"string"}},"required":["id","name"]}}},"required":["members","teams"]}},"required":["assignedTo","assessor","followers","following","alone","closed","mayReassign","mayFollow","choices"]},"ReassignMade":{"type":"object","properties":{"id":{"type":"string"},"assignedTo":{"type":"object","properties":{"kind":{"type":"string","enum":["member","team"]},"id":{"type":"string"}},"required":["kind","id"]},"followed":{"type":"boolean"}},"required":["id","assignedTo","followed"]},"Reassigned":{"type":"object","properties":{"kind":{"type":"string","minLength":1,"maxLength":20},"id":{"type":"string","minLength":1,"maxLength":64}},"required":["kind","id"],"additionalProperties":false},"FollowMade":{"type":"object","properties":{"id":{"type":"string"}},"required":["id"]},"Follow":{"type":"object","properties":{},"additionalProperties":false},"HomeDay":{"type":"object","properties":{"whose":{"type":"string","enum":["mine","teams","all"]},"resourceId":{"type":["string","null"]},"parts":{"type":"array","items":{"type":"object","properties":{"key":{"type":"string"},"part":{"description":"The tool’s part, in its own shape."}},"required":["key"]}}},"required":["whose","resourceId","parts"]},"NoticeList":{"type":"object","properties":{"seenAt":{"type":["string","null"]},"items":{"type":"array","items":{"$ref":"#/components/schemas/Notice"}},"next":{"type":["string","null"],"description":"The next page, as `before`, when there may be more."},"upTo":{"type":["string","null"],"description":"The newest notice this page decided on: what opening the bell marks seen up to."}},"required":["seenAt","items","next","upTo"]},"Notice":{"type":"object","properties":{"id":{"type":"string"},"line":{"type":"string","description":"What happened, in the tool’s words for this member."},"href":{"type":"string","description":"Where it leads, in the web app."},"where":{"type":"string","description":"The name of the place it happened."},"at":{"type":"string"},"isNew":{"type":"boolean","description":"After the member last opened the bell."}},"required":["id","line","href","where","at","isNew"]},"NoticeCount":{"type":"object","properties":{"count":{"type":"integer"}},"required":["count"]},"NoticesSeen":{"type":"object","properties":{"seenAt":{"type":["string","null"]}},"required":["seenAt"]},"NoticesSeenBody":{"type":"object","properties":{"upTo":{"type":"string","format":"date-time","description":"The time of the newest line the bell showed."}},"required":["upTo"]},"MessagesWaiting":{"type":"object","properties":{"places":{"type":"array","items":{"type":"object","properties":{"placeId":{"type":"string"},"name":{"type":"string"},"unassigned":{"type":"integer"},"forYou":{"type":"integer"},"unanswered":{"type":"integer"},"total":{"type":"integer"}},"required":["placeId","name","unassigned","forYou","unanswered","total"]}},"total":{"type":"integer"}},"required":["places","total"]},"OfferMade":{"type":"object","properties":{"id":{"type":"string"}},"required":["id"]},"OfferSource":{"oneOf":[{"type":"object","properties":{"kind":{"type":"string","enum":["document"]},"words":{"type":"string","maxLength":500}},"required":["kind","words"],"additionalProperties":false},{"type":"object","properties":{"kind":{"type":"string","enum":["photo"]},"mediaId":{"type":"string","format":"uuid"}},"required":["kind","mediaId"],"additionalProperties":false},{"type":"object","properties":{"kind":{"type":"string","enum":["words"]},"words":{"type":"string","maxLength":500}},"required":["kind","words"],"additionalProperties":false}]},"Route":{"type":"object","properties":{"scopeKind":{"type":"string","minLength":1,"maxLength":80},"scopeId":{"type":"string","minLength":1,"maxLength":200},"role":{"type":"string","minLength":1,"maxLength":80},"needs":{"type":"array","items":{"type":"string","minLength":1,"maxLength":80},"maxItems":20},"destinationKind":{"type":"string","minLength":1,"maxLength":80},"destinationRef":{"type":"string","minLength":1,"maxLength":200},"joinsHandle":{"type":"string","maxLength":80},"joinsAt":{"type":"string","minLength":1,"maxLength":200},"steps":{"type":"array","items":{},"maxItems":200},"instructions":{"type":"string","maxLength":2000},"walkedOn":{"type":"string","minLength":1,"maxLength":20},"walkedBy":{"type":"string","maxLength":2000},"validFrom":{"type":"string","minLength":1,"maxLength":20}},"required":["scopeKind","scopeId","role","steps"],"additionalProperties":false},"Offer":{"type":"object","properties":{"id":{"type":"string"},"kind":{"type":"string","enum":["answer","route","job"]},"residencyId":{"type":["string","null"]},"processHandle":{"type":["string","null"]},"heading":{"type":["string","null"]},"offered":{},"source":{"type":"object","properties":{"kind":{"type":"string","enum":["document","photo","words"]},"words":{"type":["string","null"]},"mediaId":{"type":["string","null"]}},"required":["kind","words","mediaId"]},"offeredAs":{"type":"string","enum":["person","assistant"]},"offeredByName":{"type":"string"},"offeredOn":{"type":"string"},"state":{"type":"string","enum":["open","taken","declined","closed"]},"declinedBecause":{"type":["string","null"]},"resultRef":{"type":["string","null"]}},"required":["id","kind","residencyId","processHandle","heading","source","offeredAs","offeredByName","offeredOn","state","declinedBecause","resultRef"]},"OfferTaken":{"type":"object","properties":{"id":{"type":"string"},"resultRef":{"type":"string"}},"required":["id","resultRef"]},"ProcessLeft":{"type":"object","properties":{"handle":{"type":"string"},"personId":{"type":"string"},"status":{"type":"string"},"closed":{"type":"boolean"},"items":{"type":"array","items":{"type":"object","properties":{"key":{"type":"string"},"label":{"type":"string"},"state":{"type":"string","enum":["done","open","waiting"]},"line":{"type":"string"},"heading":{"type":["object","null"],"properties":{"key":{"type":"string"},"title":{"type":"string"}},"required":["key","title"]},"rests":{"type":"array","items":{"type":"object","properties":{"kind":{"type":"string","enum":["statement","answer-set","second-set","consideration","answer","hold","offer","route","ruling","plan"]},"id":{"type":"string"},"words":{"type":["string","null"]}},"required":["kind","id","words"]}}},"required":["key","label","state","line","heading","rests"]}},"counts":{"type":"object","properties":{"done":{"type":"number"},"open":{"type":"number"},"waiting":{"type":"number"}},"required":["done","open","waiting"]},"next":{"type":["string","null"]}},"required":["handle","personId","status","closed","items","counts","next"]},"AssistantConversation":{"type":"object","properties":{"subject":{"type":"object","properties":{"kind":{"type":"string","pattern":"^[a-z][a-z0-9-]{0,39}$"},"id":{"type":"string","format":"uuid"},"parentId":{"type":"string","format":"uuid"}},"required":["kind","id"],"additionalProperties":false},"messages":{"type":"array","items":{},"minItems":1,"maxItems":200}},"required":["subject","messages"]},"AssistantTool":{"type":"object","properties":{"name":{"type":"string"},"method":{"type":"string"},"path":{"type":"string"},"summary":{"type":"string"},"may":{"type":"string","enum":["read","offer"]},"parameters":{},"body":{}},"required":["name","method","path","summary","may"]},"WidePlan":{"type":"object","properties":{"version":{"type":"string","enum":["full","authority"]},"routes":{"type":"array","items":{"type":"object","properties":{"handle":{"type":"string"},"primary":{"type":"array","items":{"type":"object","properties":{"flat":{"type":"string"},"storey":{"type":["string","null"]},"personId":{"type":["string","null"]},"personName":{"type":["string","null"]}},"required":["flat","storey","personId","personName"]}},"alternative":{"type":"array","items":{"type":"object","properties":{"flat":{"type":"string"},"storey":{"type":["string","null"]},"personId":{"type":["string","null"]},"personName":{"type":["string","null"]}},"required":["flat","storey","personId","personName"]}}},"required":["handle","primary","alternative"]}},"equipment":{"type":"array","items":{"type":"object","properties":{"thing":{"type":"string"},"words":{"type":"string"},"name":{"type":"string"},"reliedOnBy":{"type":"array","items":{"type":"object","properties":{"flat":{"type":"string"},"storey":{"type":["string","null"]},"personId":{"type":["string","null"]},"personName":{"type":["string","null"]}},"required":["flat","storey","personId","personName"]}}},"required":["thing","words","name","reliedOnBy"]}},"undertakings":{"type":"array","items":{"type":"object","properties":{"who":{"type":["string","null"]},"hours":{"type":["string","null"]},"words":{"type":["string","null"]},"for":{"type":"object","properties":{"flat":{"type":"string"},"storey":{"type":["string","null"]},"personId":{"type":["string","null"]},"personName":{"type":["string","null"]}},"required":["flat","storey","personId","personName"]}},"required":["who","hours","words","for"]}},"gaps":{"type":"array","items":{"type":"object","properties":{"heading":{"type":"string"},"words":{"type":["string","null"]},"for":{"type":"object","properties":{"flat":{"type":"string"},"storey":{"type":["string","null"]},"personId":{"type":["string","null"]},"personName":{"type":["string","null"]}},"required":["flat","storey","personId","personName"]}},"required":["heading","words","for"]}},"withoutSecondWay":{"type":"array","items":{"type":"object","properties":{"flat":{"type":"string"},"storey":{"type":["string","null"]},"personId":{"type":["string","null"]},"personName":{"type":["string","null"]}},"required":["flat","storey","personId","personName"]}}},"required":["version","routes","equipment","undertakings","gaps","withoutSecondWay"]},"AuthorityInformation":{"anyOf":[{"type":"object","properties":{"shared":{"type":"boolean","enum":[false]},"why":{"type":"string","enum":["no_consent","no_plan","not_signed_off"]}},"required":["shared","why"]},{"type":"object","properties":{"shared":{"type":"boolean","enum":[true]},"flat":{"type":"string"},"storey":{"type":["string","null"]},"assistance":{"type":"string"},"planAgreed":{"type":"boolean"},"secondWayOut":{"type":"boolean"},"whereTheyWillBe":{"type":"array","items":{"type":"string"}},"accepted":{"type":"array","items":{"type":"string"}},"consent":{"type":"object","properties":{"standingLabel":{"type":"string"},"howLabel":{"type":"string"},"on":{"type":"string"}},"required":["standingLabel","howLabel","on"]}},"required":["shared","flat","storey","assistance","planAgreed","secondWayOut","whereTheyWillBe","accepted","consent"]}]},"Designations":{"type":"object","properties":{"designations":{"type":"array","items":{"$ref":"#/components/schemas/DesignationVersion"}},"ended":{"type":"array","items":{"$ref":"#/components/schemas/DesignationVersion"}},"applies":{"type":"object","properties":{"people":{"type":"object","properties":{"group":{"type":"string"},"why":{"type":"string"},"missing":{"type":"array","items":{"type":"string"}},"line":{"type":"string"}},"required":["group","why","line"]},"responders":{"type":"object","properties":{"group":{"type":"string"},"why":{"type":"string"},"missing":{"type":"array","items":{"type":"string"}},"line":{"type":"string"}},"required":["group","why","line"]}},"required":["people","responders"]},"headline":{"type":"string"},"exits":{"type":"array","items":{"type":"object","properties":{"id":{"type":"string"},"name":{"type":"string"}},"required":["id","name"]}},"posts":{"type":"array","items":{"type":"object","properties":{"id":{"type":"string"},"name":{"type":"string"}},"required":["id","name"]}},"choices":{"type":"object","properties":{"kinds":{"type":"array","items":{"type":"object","properties":{"key":{"type":"string"},"screen":{"type":"string"},"hint":{"type":"string"},"fixed":{"type":"boolean"},"rollCall":{"type":"boolean"},"audience":{"type":"string"},"family":{"type":"string"}},"required":["key","screen","hint","fixed","rollCall","audience","family"]}},"roles":{"type":"array","items":{"type":"object","properties":{"key":{"type":"string"},"label":{"type":"string"}},"required":["key","label"]}},"designatedBy":{"type":"array","items":{"type":"object","properties":{"key":{"type":"string"},"label":{"type":"string"}},"required":["key","label"]}}},"required":["kinds","roles","designatedBy"]},"publishedHash":{"type":["string","null"]},"mayRecord":{"type":"boolean"},"noNames":{"type":"string"}},"required":["designations","ended","applies","headline","exits","posts","choices","publishedHash","mayRecord","noNames"]},"DesignationVersion":{"type":"object","properties":{"id":{"type":"string","format":"uuid"},"handle":{"type":"string","format":"uuid"},"kind":{"type":"string"},"kindLine":{"type":"string"},"role":{"type":"string"},"roleWords":{"type":"string"},"title":{"type":"string"},"label":{"type":["string","null"]},"description":{"type":["string","null"]},"position":{"type":["object","null"],"properties":{"easting":{"type":"integer"},"northing":{"type":"integer"}},"required":["easting","northing"]},"grid":{"type":["string","null"]},"placement":{"type":["string","null"]},"distanceMetres":{"type":["integer","null"]},"serves":{"type":"array","items":{"type":"string"}},"servedDoors":{"type":"array","items":{"type":"object","properties":{"id":{"type":"string"},"name":{"type":["string","null"]}},"required":["id","name"]}},"servesLine":{"type":"string"},"designatedBy":{"type":"string"},"designatedOn":{"type":"string"},"designatedLine":{"type":"string"},"reference":{"type":["string","null"]},"signed":{"type":"boolean"},"signedWords":{"type":"string"},"rollCallPostId":{"type":["string","null"]},"rollCallMethod":{"type":["string","null"]},"rollCallLine":{"type":["string","null"]},"validFrom":{"type":"string"},"validTo":{"type":["string","null"]},"authoredAgainst":{"type":"string"},"recordedAt":{"type":"string"},"cautions":{"type":"array","items":{"type":"string"}}},"required":["id","handle","kind","kindLine","role","roleWords","title","label","description","position","grid","placement","distanceMetres","serves","servedDoors","servesLine","designatedBy","designatedOn","designatedLine","reference","signed","signedWords","rollCallPostId","rollCallMethod","rollCallLine","validFrom","validTo","authoredAgainst","recordedAt","cautions"]},"DesignationHistory":{"type":"object","properties":{"versions":{"type":"array","items":{"$ref":"#/components/schemas/DesignationVersion"}}},"required":["versions"]},"RecordedDesignation":{"type":"object","properties":{"designation":{"$ref":"#/components/schemas/DesignationVersion"},"closed":{"allOf":[{"$ref":"#/components/schemas/DesignationVersion"},{"type":["object","null"]}]}},"required":["designation","closed"]},"Designation":{"type":"object","properties":{"kind":{"type":"string","minLength":1,"maxLength":80},"role":{"type":"string","minLength":1,"maxLength":80},"label":{"type":"string","maxLength":2000},"description":{"type":"string","maxLength":2000},"easting":{"type":"number"},"northing":{"type":"number"},"serves":{"type":"array","items":{"type":"string","maxLength":200},"maxItems":200},"designatedBy":{"type":"string","minLength":1,"maxLength":80},"designatedOn":{"type":"string","minLength":1,"maxLength":20},"reference":{"type":"string","maxLength":2000},"signed":{"type":"boolean"},"rollCallPostId":{"type":"string","maxLength":80},"rollCallMethod":{"type":"string","maxLength":2000},"validFrom":{"type":"string","minLength":1,"maxLength":20}},"required":["kind","role","serves","designatedBy","designatedOn","signed"],"additionalProperties":false},"EndDesignation":{"type":"object","properties":{"validTo":{"type":"string","minLength":1,"maxLength":20}},"additionalProperties":false},"PublicPage":{"type":"object","properties":{"draft":{"$ref":"#/components/schemas/PublicPageDraft"},"live":{"allOf":[{"$ref":"#/components/schemas/PublicPageVersion"},{"type":["object","null"],"properties":{"page":{"type":"object","properties":{"version":{"type":"integer"},"approvedOn":{"type":"string"},"name":{"type":"object","properties":{"text":{"type":"string"},"source":{"$ref":"#/components/schemas/PublicPageSource"}},"required":["text","source"]},"address":{"type":"array","items":{"type":"object","properties":{"text":{"type":"string"},"source":{"$ref":"#/components/schemas/PublicPageSource"}},"required":["text","source"]}},"strategy":{"type":"array","items":{"type":"object","properties":{"text":{"type":"string"},"source":{"$ref":"#/components/schemas/PublicPageSource"}},"required":["text","source"]}},"whatToDo":{"type":"array","items":{"type":"object","properties":{"text":{"type":"string"},"source":{"$ref":"#/components/schemas/PublicPageSource"}},"required":["text","source"]}},"whereToGo":{"type":"array","items":{"type":"object","properties":{"text":{"type":"string"},"source":{"$ref":"#/components/schemas/PublicPageSource"}},"required":["text","source"]}}},"required":["version","approvedOn","name","address","strategy","whatToDo","whereToGo"]}},"required":["page"]}]},"ref":{"type":["string","null"]},"mayPublish":{"type":"boolean"},"limits":{"type":"object","properties":{"lines":{"type":"integer"},"characters":{"type":"integer"},"name":{"type":"integer"},"addressLines":{"type":"integer"},"addressCharacters":{"type":"integer"}},"required":["lines","characters","name","addressLines","addressCharacters"]}},"required":["draft","live","ref","mayPublish","limits"]},"PublicPageDraft":{"type":"object","properties":{"name":{"type":"object","properties":{"text":{"type":"string"},"source":{"$ref":"#/components/schemas/PublicPageSource"}},"required":["text","source"]},"address":{"type":"array","items":{"type":"object","properties":{"text":{"type":"string"},"source":{"$ref":"#/components/schemas/PublicPageSource"}},"required":["text","source"]}},"strategy":{"type":"array","items":{"type":"object","properties":{"text":{"type":"string"},"source":{"$ref":"#/components/schemas/PublicPageSource"}},"required":["text","source"]}},"strategyBlank":{"type":["string","null"]},"whatToDo":{"type":"array","items":{"type":"object","properties":{"text":{"type":"string"},"source":{"$ref":"#/components/schemas/PublicPageSource"}},"required":["text","source"]}},"whereToGo":{"type":"array","items":{"type":"object","properties":{"text":{"type":"string"},"source":{"$ref":"#/components/schemas/PublicPageSource"}},"required":["text","source"]}},"parts":{"type":"array","items":{"type":"object","properties":{"place":{"type":"string"},"strategy":{"type":"string"},"line":{"type":["string","null"]}},"required":["place","strategy","line"]}}},"required":["name","address","strategy","strategyBlank","whatToDo","whereToGo","parts"]},"PublicPageSource":{"oneOf":[{"type":"object","properties":{"kind":{"type":"string","enum":["name"]}},"required":["kind"]},{"type":"object","properties":{"kind":{"type":"string","enum":["address"]}},"required":["kind"]},{"type":"object","properties":{"kind":{"type":"string","enum":["strategy"]}},"required":["kind"]},{"type":"object","properties":{"kind":{"type":"string","enum":["instructions"]}},"required":["kind"]},{"type":"object","properties":{"kind":{"type":"string","enum":["starting"]}},"required":["kind"]},{"type":"object","properties":{"kind":{"type":"string","enum":["assembly-point"]},"label":{"type":["string","null"]}},"required":["kind","label"]},{"type":"object","properties":{"kind":{"type":"string","enum":["written"]}},"required":["kind"]}]},"PublicPageVersion":{"type":"object","properties":{"version":{"type":"integer"},"hash":{"type":"string"},"approvedOn":{"type":"string"},"publishedAt":{"type":"string"},"publishedBy":{"type":"object","properties":{"id":{"type":"string","format":"uuid"},"name":{"type":"string"}},"required":["id","name"]}},"required":["version","hash","approvedOn","publishedAt","publishedBy"]},"PublicPagePublished":{"allOf":[{"$ref":"#/components/schemas/PublicPageVersion"},{"type":"object","properties":{"ref":{"type":"string"}},"required":["ref"]}]},"PublicPagePublish":{"type":"object","properties":{"name":{"type":"string","maxLength":2000},"address":{"type":"array","items":{"type":"string","maxLength":2000},"maxItems":200},"strategy":{"type":"array","items":{"type":"string","maxLength":2000},"maxItems":200},"whatToDo":{"type":"array","items":{"type":"string","maxLength":2000},"maxItems":200},"whereToGo":{"type":"array","items":{"type":"string","maxLength":2000},"maxItems":200}},"required":["strategy","whatToDo","whereToGo"],"additionalProperties":false},"PublicPageVersions":{"type":"object","properties":{"versions":{"type":"array","items":{"$ref":"#/components/schemas/PublicPageVersion"}}},"required":["versions"]},"PublicPageVersionOpened":{"allOf":[{"$ref":"#/components/schemas/PublicPageVersion"},{"type":"object","properties":{"page":{"$ref":"#/components/schemas/PublicPageDocument"}},"required":["page"]}]},"PublicPageDocument":{"type":"object","properties":{"version":{"type":"integer"},"name":{"type":"string"},"address":{"type":"array","items":{"type":"string"}},"strategy":{"type":"array","items":{"type":"object","properties":{"text":{"type":"string"}},"required":["text"]}},"whatToDo":{"type":"array","items":{"type":"object","properties":{"text":{"type":"string"}},"required":["text"]}},"whereToGo":{"type":"array","items":{"type":"object","properties":{"text":{"type":"string"}},"required":["text"]}},"approvedOn":{"type":"string"}},"required":["version","name","address","strategy","whatToDo","whereToGo","approvedOn"]},"PageCodeHere":{"type":"object","properties":{"code":{"$ref":"#/components/schemas/PageCode"},"published":{"type":"boolean"},"mayMake":{"type":"boolean"}},"required":["code","published","mayMake"]},"PageCode":{"type":["object","null"],"properties":{"id":{"type":"string","format":"uuid"},"code":{"type":"string"},"link":{"type":"string"},"madeAt":{"type":"string"},"madeBy":{"type":"object","properties":{"id":{"type":"string","format":"uuid"},"name":{"type":"string"}},"required":["id","name"]}},"required":["id","code","link","madeAt","madeBy"]},"LinkCard":{"type":"object","properties":{"personId":{"type":"string","format":"uuid"},"residencyId":{"type":"string","format":"uuid"},"open":{"type":"boolean"},"state":{"type":"string","enum":["unlinked","waiting","linked","suspended"]},"link":{"type":["object","null"],"properties":{"id":{"type":"string","format":"uuid"},"state":{"type":"string","enum":["linked","suspended"]},"proof":{"type":"string","enum":["flat","person"]},"door":{"type":"string"},"doorWords":{"type":"string"},"since":{"type":"string"},"madeBy":{"type":["object","null"],"properties":{"id":{"type":"string","format":"uuid"},"name":{"type":"string"}},"required":["id","name"]},"note":{"type":["string","null"]},"suspended":{"type":["object","null"],"properties":{"on":{"type":"string"},"by":{"type":["object","null"],"properties":{"id":{"type":"string","format":"uuid"},"name":{"type":"string"}},"required":["id","name"]},"reason":{"type":["string","null"]}},"required":["on","by","reason"]}},"required":["id","state","proof","door","doorWords","since","madeBy","note","suspended"]},"ended":{"type":["object","null"],"properties":{"on":{"type":"string"}},"required":["on"]},"requests":{"type":"array","items":{"type":"object","properties":{"id":{"type":"string","format":"uuid"},"receivedAt":{"type":"string"},"emailConfirmedAt":{"type":"string"},"fresh":{"type":"boolean"},"emptied":{"type":"boolean"},"flat":{"type":"string"},"name":{"type":"string"},"emailMasked":{"type":"string"},"matchesRecord":{"type":"boolean"}},"required":["id","receivedAt","emailConfirmedAt","fresh","emptied","flat","name","emailMasked","matchesRecord"]}},"email":{"type":["object","null"],"properties":{"masked":{"type":"string"},"givenByLabel":{"type":"string"},"sourceLabel":{"type":"string"},"givenOn":{"type":"string"},"recordedBy":{"type":["object","null"],"properties":{"id":{"type":"string","format":"uuid"},"name":{"type":"string"}},"required":["id","name"]}},"required":["masked","givenByLabel","sourceLabel","givenOn","recordedBy"]},"mayLink":{"type":"boolean"},"maySuspend":{"type":"boolean"},"mayDecide":{"type":"boolean"},"lives":{"type":"object","additionalProperties":{"type":"string"}},"speakers":{"type":"array","items":{"type":"object","properties":{"id":{"type":"string","format":"uuid"},"state":{"type":"string","enum":["linked","suspended"]},"actorName":{"type":["string","null"]},"actsForName":{"type":["string","null"]},"footing":{"type":["string","null"]},"footingWords":{"type":["string","null"]},"partyWords":{"type":["string","null"]},"partyHandle":{"type":["string","null"],"format":"uuid"},"checkedOn":{"type":["string","null"]},"checkedBy":{"type":["object","null"],"properties":{"id":{"type":"string","format":"uuid"},"name":{"type":"string"}},"required":["id","name"]},"suspended":{"type":["object","null"],"properties":{"on":{"type":"string"},"by":{"type":["object","null"],"properties":{"id":{"type":"string","format":"uuid"},"name":{"type":"string"}},"required":["id","name"]},"reason":{"type":["string","null"]}},"required":["on","by","reason"]},"maySuspend":{"type":"boolean"}},"required":["id","state","actorName","actsForName","footing","footingWords","partyWords","partyHandle","checkedOn","checkedBy","suspended","maySuspend"]}}},"required":["personId","residencyId","open","state","link","ended","requests","email","mayLink","maySuspend","mayDecide","lives","speakers"]},"LinkCodeMade":{"type":"object","properties":{"codeId":{"type":"string","format":"uuid"},"door":{"type":"string","enum":["in-person","email","letter"]},"purpose":{"type":"string","enum":["own","speak"]},"madeAt":{"type":"string"},"expiresAt":{"type":"string"},"lives":{"type":"string"},"place":{"type":"string"},"flat":{"type":"string"},"code":{"type":"string"},"link":{"type":"string"},"sentTo":{"type":"string"}},"required":["codeId","door","purpose","madeAt","expiresAt","lives","place","flat"]},"MakeLinkCode":{"type":"object","properties":{"door":{"type":"string","minLength":1,"maxLength":20,"example":"in-person","description":"`in-person` (10 minutes), `email` (24 hours) or `letter` (30 days)."},"purpose":{"type":"string","minLength":1,"maxLength":20,"example":"own","description":"What it is for (spec 78 #2): `own` (the person’s own link; the default) or `speak` (someone to speak for them)."}},"required":["door"],"additionalProperties":false},"LinkSuspended":{"type":"object","properties":{"id":{"type":"string","format":"uuid"}},"required":["id"]},"SuspendLink":{"type":"object","properties":{"reason":{"type":"string","maxLength":2000}},"required":["reason"],"additionalProperties":false},"LinkRequests":{"type":"object","properties":{"placeId":{"type":"string","format":"uuid"},"requests":{"type":"array","items":{"type":"object","properties":{"id":{"type":"string","format":"uuid"},"receivedAt":{"type":"string"},"emailConfirmedAt":{"type":"string"},"fresh":{"type":"boolean"},"emptied":{"type":"boolean"},"flat":{"type":"string"},"name":{"type":"string"},"email":{"type":"string"},"emailMasked":{"type":"string"},"suggestions":{"type":"array","items":{"type":"object","properties":{"personId":{"type":"string","format":"uuid"},"residencyId":{"type":"string","format":"uuid"},"because":{"type":"array","items":{"type":"string","enum":["email","flat"]}}},"required":["personId","residencyId","because"]}}},"required":["id","receivedAt","emailConfirmedAt","fresh","emptied","flat","name","email","emailMasked","suggestions"]}},"residencies":{"type":"array","items":{"type":"object","properties":{"residencyId":{"type":"string","format":"uuid"},"personId":{"type":"string","format":"uuid"},"name":{"type":["string","null"]},"unidentified":{"type":"boolean"},"flat":{"type":"string"}},"required":["residencyId","personId","name","unidentified","flat"]}},"mayDecide":{"type":"boolean"}},"required":["placeId","requests","residencies","mayDecide"]},"LinkRequestAccepted":{"type":"object","properties":{"id":{"type":"string","format":"uuid"},"personId":{"type":"string","format":"uuid"}},"required":["id","personId"]},"AcceptLinkRequest":{"type":"object","properties":{"residencyId":{"type":"string","format":"uuid"},"note":{"type":"string","maxLength":2000}},"required":["residencyId","note"],"additionalProperties":false},"LinkRequestRefused":{"type":"object","properties":{"id":{"type":"string","format":"uuid"}},"required":["id"]},"Messages":{"type":"object","properties":{"placeId":{"type":"string","format":"uuid"},"messages":{"type":"array","items":{"type":"object","properties":{"id":{"type":"string","format":"uuid"},"on":{"type":"string"},"receivedAt":{"type":"string"},"flat":{"type":"string"},"aboutName":{"type":"string"},"actorName":{"type":"string"},"footing":{"type":"string"},"footingWords":{"type":"string"},"line":{"type":"string"},"text":{"type":["string","null"]},"spaceId":{"type":["string","null"]},"spaceName":{"type":["string","null"]},"seen":{"type":["object","null"],"properties":{"on":{"type":"string"},"by":{"type":"string"}},"required":["on","by"]},"state":{"type":"string","enum":["open","dealt"]},"assignee":{"type":["object","null"],"properties":{"kind":{"type":"string","enum":["member","team"]},"id":{"type":"string","format":"uuid"},"name":{"type":"string"}},"required":["kind","id","name"]},"forYou":{"type":"boolean"},"dealt":{"type":["object","null"],"properties":{"by":{"type":"string"},"on":{"type":"string"}},"required":["by","on"]},"stateWords":{"type":"string"}},"required":["id","on","receivedAt","flat","aboutName","actorName","footing","footingWords","line","text","spaceId","spaceName","seen","state","assignee","forYou","dealt","stateWords"]}},"unseen":{"type":"integer"},"maySee":{"type":"boolean"},"textShown":{"type":"boolean"},"show":{"type":"string","enum":["open","mine","all"]},"counts":{"type":"object","properties":{"open":{"type":"integer"},"mine":{"type":"integer"},"all":{"type":"integer"}},"required":["open","mine","all"]},"choices":{"type":"object","properties":{"members":{"type":"array","items":{"type":"object","properties":{"id":{"type":"string","format":"uuid"},"name":{"type":"string"}},"required":["id","name"]}},"teams":{"type":"array","items":{"type":"object","properties":{"id":{"type":"string","format":"uuid"},"name":{"type":"string"}},"required":["id","name"]}}},"required":["members","teams"]}},"required":["placeId","messages","unseen","maySee","textShown","show","counts","choices"]},"MessageSeen":{"type":"object","properties":{"id":{"type":"string","format":"uuid"},"seenAt":{"type":"string"}},"required":["id","seenAt"]},"MessageActed":{"type":"object","properties":{"id":{"type":"string","format":"uuid"},"eventId":{"type":"string","format":"uuid"},"at":{"type":"string"}},"required":["id","eventId","at"]},"AssignMessageRequest":{"type":"object","properties":{"to":{"type":"object","properties":{"kind":{"type":"string","enum":["member","team"]},"id":{"type":"string","format":"uuid"}},"required":["kind","id"],"additionalProperties":false}},"required":["to"],"additionalProperties":false},"SpeakRequests":{"type":"object","properties":{"placeId":{"type":"string","format":"uuid"},"requests":{"type":"array","items":{"type":"object","properties":{"id":{"type":"string","format":"uuid"},"receivedAt":{"type":"string"},"door":{"type":"string"},"doorWords":{"type":"string"},"footing":{"type":"string"},"footingWords":{"type":"string"},"residencyId":{"type":["string","null"],"format":"uuid"},"actorName":{"type":"string"},"actsForName":{"type":"string"},"flat":{"type":["string","null"]},"email":{"type":["string","null"]},"emailConfirmedAt":{"type":["string","null"]},"emptied":{"type":"boolean"}},"required":["id","receivedAt","door","doorWords","footing","footingWords","residencyId","actorName","actsForName","flat","email","emailConfirmedAt","emptied"]}},"residencies":{"type":"array","items":{"type":"object","properties":{"residencyId":{"type":"string","format":"uuid"},"personId":{"type":"string","format":"uuid"},"name":{"type":["string","null"]},"unidentified":{"type":"boolean"},"flat":{"type":"string"}},"required":["residencyId","personId","name","unidentified","flat"]}},"mayDecide":{"type":"boolean"}},"required":["placeId","requests","residencies","mayDecide"]},"SpeakRequestChecked":{"type":"object","properties":{"id":{"type":"string","format":"uuid"},"personId":{"type":"string","format":"uuid"},"partyId":{"type":"string","format":"uuid"}},"required":["id","personId","partyId"]},"CheckSpeakRequest":{"type":"object","properties":{"residencyId":{"type":"string","format":"uuid"},"footing":{"type":"string","minLength":1,"maxLength":40,"example":"their-yes","description":"`their-yes`, `lpa-health-welfare` or `deputy-health-welfare`: what the member checked."},"basis":{"type":"string","maxLength":20,"example":"verbal","description":"For their yes: `verbal` (spoken) or `written`."},"words":{"type":"string","maxLength":2000,"example":"Her daughter","description":"Who they are to the person, by role; never a name."},"confirmed":{"type":"boolean","description":"The member confirmed it with the person (their yes), or saw the document (an LPA or a deputy)."},"on":{"type":"string","maxLength":10},"mismatchConfirmed":{"type":"boolean","description":"The member confirms a second time that this is whom they mean, though the flat or name she gave differs (spec 78 #11)."}},"required":["footing","words","confirmed"],"additionalProperties":false},"SpeakRequestRefused":{"type":"object","properties":{"id":{"type":"string","format":"uuid"}},"required":["id"]},"RefuseSpeakRequest":{"type":"object","properties":{"reason":{"type":"string","maxLength":2000}},"required":["reason"],"additionalProperties":false},"FlatCodes":{"type":"object","properties":{"placeId":{"type":"string","format":"uuid"},"placeName":{"type":"string"},"published":{"type":"boolean"},"mayMake":{"type":"boolean"},"places":{"type":"array","items":{"type":"object","properties":{"spaceId":{"type":"string"},"name":{"type":"string"},"home":{"type":"boolean"},"people":{"type":"integer"},"state":{"type":"string","enum":["open","none"]},"codeId":{"type":["string","null"],"format":"uuid"},"madeAt":{"type":["string","null"]},"madeBy":{"type":["object","null"],"properties":{"id":{"type":"string","format":"uuid"},"name":{"type":"string"}},"required":["id","name"]},"issued":{"type":"integer"}},"required":["spaceId","name","home","people","state","codeId","madeAt","madeBy","issued"]}}},"required":["placeId","placeName","published","mayMake","places"]},"FlatCodesMade":{"type":"object","properties":{"made":{"type":"integer"},"already":{"type":"integer"}},"required":["made","already"]},"FlatCodesToPrint":{"type":"object","properties":{"placeId":{"type":"string","format":"uuid"},"without":{"type":"integer"},"sheets":{"type":"array","items":{"type":"object","properties":{"spaceId":{"type":"string"},"flat":{"type":"string"},"place":{"type":"string"},"code":{"type":"string"},"link":{"type":"string"}},"required":["spaceId","flat","place","code","link"]}}},"required":["placeId","without","sheets"]},"FlatCodeMade":{"type":"object","properties":{"codeId":{"type":"string","format":"uuid"},"spaceId":{"type":"string"},"replaced":{"type":"boolean"}},"required":["codeId","spaceId","replaced"]},"FlatAnswers":{"type":"object","properties":{"placeId":{"type":"string","format":"uuid"},"placeName":{"type":"string"},"mayDecide":{"type":"boolean"},"waiting":{"type":"array","items":{"type":"object","properties":{"id":{"type":"string","format":"uuid"},"spaceId":{"type":"string"},"flat":{"type":"string"},"answer":{"type":"string","enum":["fine","need-help","not-sure"]},"receivedAt":{"type":"string"},"raised":{"type":["object","null"],"properties":{"flat":{"type":"string"},"name":{"type":["string","null"]}},"required":["flat","name"]},"emptied":{"type":"boolean"},"decision":{"type":["string","null"],"enum":["accepted","recorded","not-needed","check",null]},"decidedAt":{"type":["string","null"]},"decidedBy":{"type":["object","null"],"properties":{"id":{"type":"string","format":"uuid"},"name":{"type":"string"}},"required":["id","name"]},"open":{"type":"boolean"},"sentAt":{"type":["string","null"]},"takenBack":{"type":["object","null"],"properties":{"at":{"type":"string"},"answer":{"type":"string","enum":["fine"]}},"required":["at","answer"]},"followsDecided":{"type":["object","null"],"properties":{"answerId":{"type":"string","format":"uuid"},"decidedAt":{"type":"string"},"decision":{"type":"string","enum":["accepted","recorded","not-needed","check"]}},"required":["answerId","decidedAt","decision"]}},"required":["id","spaceId","flat","answer","receivedAt","raised","emptied","decision","decidedAt","decidedBy","open","sentAt","takenBack","followsDecided"]}},"decided":{"type":"array","items":{"type":"object","properties":{"id":{"type":"string","format":"uuid"},"spaceId":{"type":"string"},"flat":{"type":"string"},"answer":{"type":"string","enum":["fine","need-help","not-sure"]},"receivedAt":{"type":"string"},"raised":{"type":["object","null"],"properties":{"flat":{"type":"string"},"name":{"type":["string","null"]}},"required":["flat","name"]},"emptied":{"type":"boolean"},"decision":{"type":["string","null"],"enum":["accepted","recorded","not-needed","check",null]},"decidedAt":{"type":["string","null"]},"decidedBy":{"type":["object","null"],"properties":{"id":{"type":"string","format":"uuid"},"name":{"type":"string"}},"required":["id","name"]},"open":{"type":"boolean"},"sentAt":{"type":["string","null"]},"takenBack":{"type":["object","null"],"properties":{"at":{"type":"string"},"answer":{"type":"string","enum":["fine"]}},"required":["at","answer"]},"followsDecided":{"type":["object","null"],"properties":{"answerId":{"type":"string","format":"uuid"},"decidedAt":{"type":"string"},"decision":{"type":"string","enum":["accepted","recorded","not-needed","check"]}},"required":["answerId","decidedAt","decision"]}},"required":["id","spaceId","flat","answer","receivedAt","raised","emptied","decision","decidedAt","decidedBy","open","sentAt","takenBack","followsDecided"]}},"flats":{"type":"array","items":{"type":"object","properties":{"spaceId":{"type":"string"},"flat":{"type":"string"},"needHelp":{"type":"integer"},"notSure":{"type":"integer"},"fine":{"type":"integer"},"line":{"type":"string"}},"required":["spaceId","flat","needHelp","notSure","fine","line"]}},"notHeard":{"type":"array","items":{"type":"object","properties":{"spaceId":{"type":"string"},"flat":{"type":"string"},"madeAt":{"type":"string"}},"required":["spaceId","flat","madeAt"]}}},"required":["placeId","placeName","mayDecide","waiting","decided","flats","notHeard"]},"FlatAnswersWaiting":{"type":"object","properties":{"waiting":{"type":"integer"}},"required":["waiting"]},"FlatAnswerDecided":{"type":"object","properties":{"id":{"type":"string","format":"uuid"},"decision":{"type":"string","enum":["recorded","not-needed","check"]}},"required":["id","decision"]},"DecideFlatAnswer":{"type":"object","properties":{"decision":{"type":"string","minLength":1,"maxLength":20,"example":"recorded","description":"`recorded`, `not-needed` or `check`."}},"required":["decision"],"additionalProperties":false},"StaysHere":{"type":"object","properties":{"guests":{"type":"boolean"},"mayAdd":{"type":"boolean"},"waiting":{"type":"array","items":{"$ref":"#/components/schemas/Stay"}},"here":{"type":"array","items":{"$ref":"#/components/schemas/Stay"}},"expected":{"type":"array","items":{"$ref":"#/components/schemas/Stay"}},"declined":{"type":"array","items":{"$ref":"#/components/schemas/Stay"}},"spaces":{"type":"array","items":{"type":"object","properties":{"id":{"type":"string"},"name":{"type":"string"},"storey":{"type":["string","null"]}},"required":["id","name","storey"]}}},"required":["guests","mayAdd","waiting","here","expected","declined","spaces"]},"Stay":{"type":"object","properties":{"id":{"type":"string","format":"uuid"},"space":{"type":"object","properties":{"id":{"type":"string"},"name":{"type":"string"},"storey":{"type":["string","null"]}},"required":["id","name","storey"]},"from":{"type":"string"},"until":{"type":"string"},"name":{"type":["string","null"]},"label":{"type":"string"},"share":{"type":"boolean"},"source":{"type":"string","enum":["member","point-personal"]},"state":{"type":"string","enum":["waiting","in","ended"]},"waiting":{"type":["object","null"],"properties":{"since":{"type":"string"},"minutes":{"type":"integer"},"notConfirmed":{"type":"boolean"}},"required":["since","minutes","notConfirmed"]},"here":{"type":"boolean"},"expected":{"type":"boolean"},"ended":{"type":["object","null"],"properties":{"on":{"type":"string"},"how":{"type":"string","enum":["end-time","left","member","lapsed","declined","guests-off"]},"reason":{"type":["string","null"]}},"required":["on","how"]},"rcoId":{"type":["string","null"]},"sentBy":{"$ref":"#/components/schemas/StaySentBy"},"endsByItself":{"type":"boolean"},"bookOut":{"type":["object","null"],"properties":{"due":{"type":"boolean"},"dueAt":{"type":"string"},"escalated":{"type":"boolean"}},"required":["due","dueAt","escalated"]}},"required":["id","space","from","until","name","label","share","source","state","waiting","here","expected","ended","rcoId","sentBy","endsByItself","bookOut"]},"StaySentBy":{"type":["object","null"],"properties":{"name":{"type":["string","null"]},"footing":{"type":"string"},"line":{"type":"string"}},"required":["name","footing","line"]},"AddGuest":{"type":"object","properties":{"spaceId":{"type":"string","minLength":1,"maxLength":200},"from":{"type":"string","maxLength":40},"until":{"type":"string","maxLength":40},"firstName":{"type":["string","null"],"maxLength":40},"share":{"type":"boolean"},"endsByItself":{"type":"boolean"}},"required":["spaceId","from","until"],"additionalProperties":false},"AcceptStay":{"type":"object","properties":{"endsByItself":{"type":"boolean"}},"additionalProperties":false},"StaysDeclined":{"type":"object","properties":{"declined":{"type":"integer"}},"required":["declined"]},"DeclineStays":{"type":"object","properties":{"stayIds":{"type":"array","items":{"type":"string","format":"uuid"},"minItems":1,"maxItems":100},"reason":{"type":"string","maxLength":2000}},"required":["stayIds","reason"],"additionalProperties":false},"StillHere":{"type":"object","properties":{"until":{"type":"string","maxLength":40}},"required":["until"],"additionalProperties":false},"WhosHere":{"type":"object","properties":{"place":{"type":"object","properties":{"id":{"type":"string"},"name":{"type":"string"}},"required":["id","name"]},"at":{"type":"string"},"hasGuests":{"type":"boolean"},"occupancy":{"type":"object","properties":{"living":{"type":"integer"},"guestsHere":{"type":"integer"},"guestsExpected":{"type":"integer"},"here":{"type":"integer"}},"required":["living","guestsHere","guestsExpected","here"]},"waiting":{"type":"array","items":{"$ref":"#/components/schemas/Stay"}},"guests":{"type":"object","properties":{"here":{"type":"array","items":{"$ref":"#/components/schemas/Stay"}},"expected":{"type":"array","items":{"$ref":"#/components/schemas/Stay"}}},"required":["here","expected"]},"needHelp":{"type":"array","items":{"type":"object","properties":{"rcoId":{"type":"string"},"who":{"type":"object","properties":{"kind":{"type":"string","enum":["person","occupant","guest"]},"label":{"type":"string"},"personId":{"type":["string","null"]}},"required":["kind","label","personId"]},"space":{"type":"object","properties":{"id":{"type":"string"},"name":{"type":"string"},"storey":{"type":["string","null"]}},"required":["id","name","storey"]},"state":{"type":"string","enum":["waiting","cleared","ended"]},"colour":{"type":["object","null"],"properties":{"key":{"type":"string","enum":["red","amber"]},"words":{"type":"string"},"reads":{"type":"string"}},"required":["key","words","reads"]},"headline":{"type":["string","null"]},"considerations":{"type":"array","items":{"type":"object","properties":{"key":{"type":"string"},"words":{"type":"string"}},"required":["key","words"]}},"stay":{"type":["object","null"],"properties":{"from":{"type":"string"},"until":{"type":"string"},"here":{"type":"boolean"}},"required":["from","until","here"]},"actions":{"type":["array","null"],"items":{"$ref":"#/components/schemas/RcoAction"}},"suggested":{"type":["array","null"],"items":{"type":"object","properties":{"key":{"type":"string"},"words":{"type":"string"},"handle":{"type":["string","null"]}},"required":["key","words","handle"]}},"shared":{"type":"boolean"}},"required":["rcoId","who","space","state","colour","headline","considerations","stay","actions","suggested","shared"]}},"mayAdd":{"type":"boolean"}},"required":["place","at","hasGuests","occupancy","waiting","guests","needHelp","mayAdd"]},"RoomCodes":{"type":"object","properties":{"placeId":{"type":"string"},"placeName":{"type":"string"},"guests":{"type":"boolean"},"published":{"type":"boolean"},"rooms":{"type":"array","items":{"type":"object","properties":{"spaceId":{"type":"string"},"name":{"type":"string"},"storey":{"type":["string","null"]},"state":{"type":"string","enum":["open","none"]},"codeId":{"type":["string","null"]},"madeAt":{"type":["string","null"]},"madeBy":{"type":["object","null"],"properties":{"id":{"type":"string"},"name":{"type":"string"}},"required":["id","name"]},"issued":{"type":"integer"}},"required":["spaceId","name","storey","state","codeId","madeAt","madeBy","issued"]}},"mayMake":{"type":"boolean"}},"required":["placeId","placeName","guests","published","rooms","mayMake"]},"MadeRoomCode":{"type":"object","properties":{"codeId":{"type":"string"},"spaceId":{"type":"string"},"replaced":{"type":"boolean"}},"required":["codeId","spaceId","replaced"]},"RoomPrintable":{"type":"object","properties":{"placeId":{"type":"string"},"sheets":{"type":"array","items":{"type":"object","properties":{"spaceId":{"type":"string"},"room":{"type":"string"},"place":{"type":"string"},"code":{"type":"string"},"link":{"type":"string"}},"required":["spaceId","room","place","code","link"]}},"without":{"type":"integer"}},"required":["placeId","sheets","without"]},"ChatInbox":{"type":"object","properties":{"placeId":{"type":"string","format":"uuid"},"conversations":{"type":"array","items":{"type":"object","properties":{"id":{"type":"string","format":"uuid"},"kind":{"type":"string","enum":["resident","representative","guest"]},"who":{"type":"object","properties":{"name":{"type":"string"},"role":{"type":"string"},"where":{"type":["string","null"]},"personId":{"type":["string","null"],"format":"uuid"},"residencyId":{"type":["string","null"],"format":"uuid"}},"required":["name","role","where","personId","residencyId"]},"live":{"type":"boolean"},"lastAt":{"type":["string","null"]},"lastBy":{"type":["string","null"],"enum":["person","member",null]},"waiting":{"type":["object","null"],"properties":{"since":{"type":"string"},"replyBy":{"type":"string"},"overdue":{"type":"boolean"}},"required":["since","replyBy","overdue"]},"messages":{"type":"integer"}},"required":["id","kind","who","live","lastAt","lastBy","waiting","messages"]}},"unanswered":{"type":"integer"},"mayWrite":{"type":"boolean"},"replyTime":{"type":"object","properties":{"replyWithin":{"type":"string","enum":["hour","four-hours","working-day","two-working-days"]},"words":{"type":"string"}},"required":["replyWithin","words"]},"startable":{"type":"array","items":{"type":"object","properties":{"thread":{"anyOf":[{"type":"object","properties":{"linkId":{"type":"string"}},"required":["linkId"]},{"type":"object","properties":{"stayRowId":{"type":"string","format":"uuid"}},"required":["stayRowId"]}]},"kind":{"type":"string","enum":["resident","representative","guest"]},"who":{"type":"object","properties":{"name":{"type":"string"},"role":{"type":"string"},"where":{"type":["string","null"]},"personId":{"type":["string","null"],"format":"uuid"},"residencyId":{"type":["string","null"],"format":"uuid"}},"required":["name","role","where","personId","residencyId"]}},"required":["thread","kind","who"]}}},"required":["placeId","conversations","unanswered","mayWrite","replyTime","startable"]},"ChatWritten":{"type":"object","properties":{"id":{"type":"string","format":"uuid"},"messageRowId":{"type":"string","format":"uuid"}},"required":["id","messageRowId"]},"ChatStart":{"type":"object","properties":{"linkId":{"type":"string","maxLength":40,"description":"A link linked at the proof *the person* (their own, or of someone who speaks for them)."},"stayRowId":{"type":"string","format":"uuid","description":"An accepted guest’s stay sent from Point Personal."},"words":{"type":"string","maxLength":4000}},"required":["words"],"additionalProperties":false},"ChatConversation":{"type":"object","properties":{"id":{"type":"string","format":"uuid"},"placeId":{"type":"string","format":"uuid"},"kind":{"type":"string","enum":["resident","representative","guest"]},"who":{"type":"object","properties":{"name":{"type":"string"},"role":{"type":"string"},"where":{"type":["string","null"]},"personId":{"type":["string","null"],"format":"uuid"},"residencyId":{"type":["string","null"],"format":"uuid"}},"required":["name","role","where","personId","residencyId"]},"live":{"type":"boolean"},"closed":{"type":["string","null"]},"messages":{"type":"array","items":{"type":"object","properties":{"id":{"type":"string","format":"uuid"},"author":{"type":"string","enum":["person","member"]},"by":{"type":"string"},"yours":{"type":"boolean"},"at":{"type":"string"},"words":{"type":["string","null"]},"photo":{"type":["object","null"],"properties":{"ref":{"type":"string"},"width":{"type":"integer"},"height":{"type":"integer"}},"required":["ref","width","height"]},"photoUnreadable":{"type":"boolean"},"emptied":{"type":"boolean"}},"required":["id","author","by","yours","at","words","photo","photoUnreadable","emptied"]}},"waiting":{"type":["object","null"],"properties":{"since":{"type":"string"},"replyBy":{"type":"string"},"overdue":{"type":"boolean"}},"required":["since","replyBy","overdue"]},"replyTime":{"type":"object","properties":{"replyWithin":{"type":"string","enum":["hour","four-hours","working-day","two-working-days"]},"words":{"type":"string"}},"required":["replyWithin","words"]},"organisation":{"type":"string"}},"required":["id","placeId","kind","who","live","closed","messages","waiting","replyTime","organisation"]},"ChatReply":{"type":"object","properties":{"words":{"type":"string","maxLength":4000,"description":"The words as typed; 1 to 2,000 characters once trimmed, plain text and new lines."}},"required":["words"],"additionalProperties":false},"ChatReplyTime":{"type":"object","properties":{"replyWithin":{"type":"string","enum":["hour","four-hours","working-day","two-working-days"]},"words":{"type":"string"},"stated":{"type":"boolean"},"updatedAt":{"type":["string","null"]},"mayUpdate":{"type":"boolean"}},"required":["replyWithin","words","stated","updatedAt","mayUpdate"]},"SetChatReplyTime":{"type":"object","properties":{"replyWithin":{"type":"string","maxLength":40}},"required":["replyWithin"],"additionalProperties":false},"AppNotes":{"type":"object","properties":{"personId":{"type":"string","format":"uuid"},"residencyId":{"type":"string","format":"uuid"},"notes":{"type":"array","items":{"$ref":"#/components/schemas/AppNote"}},"mayAcknowledge":{"type":"boolean"},"wordsShown":{"type":"boolean"}},"required":["personId","residencyId","notes","mayAcknowledge","wordsShown"]},"AppNote":{"type":"object","properties":{"id":{"type":"string","format":"uuid"},"on":{"type":"string"},"receivedAt":{"type":"string"},"words":{"type":["string","null"]},"acknowledged":{"type":["object","null"],"properties":{"on":{"type":"string"},"by":{"type":"string"}},"required":["on","by"]},"from":{"type":["object","null"],"properties":{"words":{"type":["string","null"]},"footing":{"type":["string","null"],"enum":["their-yes","lpa-health-welfare","deputy-health-welfare",null]}},"required":["words","footing"]}},"required":["id","on","receivedAt","words","acknowledged","from"]},"AppNoteAcknowledged":{"type":"object","properties":{"id":{"type":"string","format":"uuid"},"acknowledgedAt":{"type":"string"}},"required":["id","acknowledgedAt"]},"Routes":{"type":"object","properties":{"routes":{"type":"array","items":{"$ref":"#/components/schemas/RouteVersion"}},"ended":{"type":"array","items":{"$ref":"#/components/schemas/RouteVersion"}},"asks":{"type":"array","items":{"$ref":"#/components/schemas/RouteAsks"}},"summary":{"type":"string"},"places":{"type":"array","items":{"type":"object","properties":{"kind":{"type":"string"},"id":{"type":"string"},"name":{"type":"string"}},"required":["kind","id","name"]}},"storeys":{"type":"array","items":{"type":"object","properties":{"position":{"type":"integer"},"name":{"type":"string"}},"required":["position","name"]}},"levels":{"type":"array","items":{"type":"object","properties":{"id":{"type":"string"},"name":{"type":"string"},"position":{"type":"integer"}},"required":["id","name","position"]}},"things":{"type":"array","items":{"type":"object","properties":{"id":{"type":"string"},"kind":{"type":"string"},"name":{"type":"string"},"storey":{"type":["string","null"]},"positions":{"type":"array","items":{"type":"integer"}}},"required":["id","kind","name","storey","positions"]}},"assemblyPoints":{"type":"array","items":{"type":"object","properties":{"handle":{"type":"string"},"title":{"type":"string"}},"required":["handle","title"]}},"choices":{"type":"object","properties":{"verbs":{"type":"array","items":{"type":"object","properties":{"key":{"type":"string"},"label":{"type":"string"},"hint":{"type":"string"}},"required":["key","label","hint"]}},"destinations":{"type":"array","items":{"type":"object","properties":{"key":{"type":"string"},"label":{"type":"string"},"hint":{"type":"string"},"ref":{"type":["string","null"]}},"required":["key","label","hint","ref"]}},"needs":{"type":"array","items":{"type":"object","properties":{"key":{"type":"string"},"label":{"type":"string"}},"required":["key","label"]}},"measures":{"type":"array","items":{"type":"object","properties":{"key":{"type":"string"},"label":{"type":"string"},"unit":{"type":"string"}},"required":["key","label","unit"]}},"roles":{"type":"array","items":{"type":"object","properties":{"key":{"type":"string"},"label":{"type":"string"}},"required":["key","label"]}}},"required":["verbs","destinations","needs","measures","roles"]},"publishedHash":{"type":["string","null"]},"mayRecord":{"type":"boolean"},"noNames":{"type":"string"}},"required":["routes","ended","asks","summary","places","storeys","levels","things","assemblyPoints","choices","publishedHash","mayRecord","noNames"]},"RouteVersion":{"type":"object","properties":{"id":{"type":"string","format":"uuid"},"handle":{"type":"string","format":"uuid"},"scopeKind":{"type":"string"},"scopeId":{"type":"string"},"scope":{"type":"string"},"from":{"type":"string"},"role":{"type":"string"},"roleWords":{"type":"string"},"needs":{"type":"array","items":{"type":"string"}},"needsWords":{"type":"string"},"destinationKind":{"type":"string"},"destinationRef":{"type":["string","null"]},"destination":{"type":"string"},"joinsHandle":{"type":["string","null"]},"joinsAt":{"type":["string","null"]},"joins":{"type":["string","null"]},"steps":{"type":"array","items":{"$ref":"#/components/schemas/RouteStep"}},"edges":{"type":"array","items":{"type":"string"}},"sentences":{"type":"array","items":{"type":"string"}},"instructions":{"type":["string","null"]},"walkedOn":{"type":["string","null"]},"walkedBy":{"type":["string","null"]},"walked":{"type":"string"},"authoredAgainst":{"type":"string"},"version":{"type":"string"},"validFrom":{"type":"string"},"validTo":{"type":["string","null"]},"recordedAt":{"type":"string"},"cautions":{"type":"array","items":{"type":"string"}}},"required":["id","handle","scopeKind","scopeId","scope","from","role","roleWords","needs","needsWords","destinationKind","destinationRef","destination","joinsHandle","joinsAt","joins","steps","edges","sentences","instructions","walkedOn","walkedBy","walked","authoredAgainst","version","validFrom","validTo","recordedAt","cautions"]},"RouteStep":{"type":"object","properties":{"verb":{"type":"string"},"thing":{"type":"object","properties":{"id":{"type":"string"},"words":{"type":"string"},"at":{"$ref":"#/components/schemas/RoutePoint"},"storeyId":{"type":"string"},"parentId":{"type":"string"},"designation":{"type":"string"}}},"measures":{"type":"array","items":{"$ref":"#/components/schemas/RouteMeasure"}},"note":{"type":"string"},"node":{"type":"string"},"edge":{"type":"object","properties":{"handle":{"type":"string"},"version":{"type":"string"}},"required":["handle","version"]}},"required":["verb","thing"]},"RoutePoint":{"type":"object","properties":{"x":{"type":"number"},"y":{"type":"number"}},"required":["x","y"]},"RouteMeasure":{"type":"object","properties":{"kind":{"type":"string"},"value":{"type":"number"},"status":{"type":"string"},"original":{"type":"number"}},"required":["kind","value","status"]},"RouteAsks":{"type":"object","properties":{"scopeKind":{"type":"string"},"scopeId":{"type":"string"},"name":{"type":"string"},"strategy":{"type":["string","null"]},"line":{"type":"string"},"asks":{"type":"array","items":{"type":"object","properties":{"role":{"type":"string"},"kind":{"type":"string"},"present":{"type":"boolean"},"line":{"type":"string"}},"required":["role","kind","present","line"]}}},"required":["scopeKind","scopeId","name","strategy","line","asks"]},"RoutesSummary":{"type":"object","properties":{"asks":{"type":"array","items":{"$ref":"#/components/schemas/RouteAsks"}},"line":{"type":"string"}},"required":["asks","line"]},"RoutesResolved":{"type":"object","properties":{"places":{"type":"array","items":{"type":"object","properties":{"placeId":{"type":"string"},"place":{"type":"string"},"primary":{"$ref":"#/components/schemas/RouteWay"},"alternative":{"$ref":"#/components/schemas/RouteWay"},"overlay":{"type":["object","null"],"properties":{"through":{"type":"array","items":{"$ref":"#/components/schemas/RouteStop"}},"steps":{"type":"array","items":{"type":"integer"}},"alternative":{"type":"object","properties":{"through":{"type":"array","items":{"$ref":"#/components/schemas/RouteStop"}},"steps":{"type":"array","items":{"type":"integer"}}},"required":["through","steps"]}},"required":["through","steps"]},"facts":{"type":["object","null"],"properties":{"toStair":{"type":["object","null"],"properties":{"value":{"type":"number"},"status":{"type":"string"}},"required":["value","status"]},"stairToExit":{"type":["object","null"],"properties":{"value":{"type":"number"},"status":{"type":"string"}},"required":["value","status"]},"flights":{"type":["object","null"],"properties":{"value":{"type":"number"},"status":{"type":"string"}},"required":["value","status"]},"narrowest":{"type":["object","null"],"properties":{"value":{"type":"number"},"status":{"type":"string"}},"required":["value","status"]},"second":{"type":"object","properties":{"recorded":{"type":"boolean"},"otherStair":{"type":["boolean","null"]}},"required":["recorded","otherStair"]},"exits":{"type":"array","items":{"type":"string"}},"refuges":{"type":"array","items":{"type":"string"}}},"required":["toStair","stairToExit","flights","narrowest","second","exits","refuges"]}},"required":["placeId","place","primary","alternative","overlay","facts"]}},"mayRecord":{"type":"boolean"},"needs":{"type":"array","items":{"type":"object","properties":{"key":{"type":"string"},"label":{"type":"string"}},"required":["key","label"]}}},"required":["places","mayRecord","needs"]},"RouteWay":{"type":["object","null"],"properties":{"handle":{"type":"string"},"name":{"type":"string"},"from":{"type":"string"},"inherited":{"type":"boolean"},"steps":{"type":"array","items":{"type":"object","properties":{"number":{"type":"integer"},"origin":{"type":"string"},"verb":{"type":"string"},"thingId":{"type":["string","null"]},"node":{"type":["string","null"]},"edge":{"type":["object","null"],"properties":{"handle":{"type":"string"},"version":{"type":"string"},"from":{"type":"string"}},"required":["handle","version","from"]},"sentence":{"type":"string"},"editorSentence":{"type":"string"},"measures":{"type":"array","items":{"$ref":"#/components/schemas/RouteMeasureReading"}},"facts":{"type":"array","items":{"type":"string"}},"aids":{"type":"array","items":{"type":"string"}}},"required":["number","origin","verb","thingId","node","edge","sentence","editorSentence","measures","facts","aids"]}},"destination":{"type":"string"},"instructions":{"type":"array","items":{"type":"string"}},"totals":{"type":"array","items":{"type":"string"}},"totalsProposed":{"type":"array","items":{"type":"string"}},"cautions":{"type":"array","items":{"type":"string"}},"broken":{"type":["string","null"]}},"required":["handle","name","from","inherited","steps","destination","instructions","totals","totalsProposed","cautions","broken"]},"RouteMeasureReading":{"type":"object","properties":{"kind":{"type":"string"},"proposed":{"type":["number","null"]},"recorded":{"allOf":[{"$ref":"#/components/schemas/RouteMeasure"},{"type":["object","null"]}]},"value":{"type":"number"},"status":{"type":"string"},"words":{"type":"string"},"proposedWords":{"type":["string","null"]}},"required":["kind","proposed","recorded","value","status","words","proposedWords"]},"RouteStop":{"anyOf":[{"type":"object","properties":{"id":{"type":"string"}},"required":["id"]},{"type":"object","properties":{"at":{"type":"object","properties":{"x":{"type":"number"},"y":{"type":"number"}},"required":["x","y"]},"storey":{"type":"string"}},"required":["at","storey"]}]},"RouteHistory":{"type":"object","properties":{"versions":{"type":"array","items":{"$ref":"#/components/schemas/RouteVersion"}},"changes":{"type":"array","items":{"type":"string"}}},"required":["versions","changes"]},"RouteDraft":{"type":"object","properties":{"steps":{"type":"array","items":{"type":["object","null"],"properties":{"sentence":{"type":"string"},"measures":{"type":"array","items":{"$ref":"#/components/schemas/RouteMeasureReading"}},"facts":{"type":"array","items":{"type":"string"}},"node":{"type":["string","null"]},"edge":{"type":["string","null"]}},"required":["sentence","measures","facts","node","edge"]}},"destination":{"type":["string","null"]},"joins":{"type":["string","null"]},"cautions":{"type":"array","items":{"type":"string"}},"refusal":{"type":["object","null"],"properties":{"code":{"type":"string"},"field":{"type":["string","null"]},"message":{"type":"string"}},"required":["code","field","message"]}},"required":["steps","destination","joins","cautions","refusal"]},"RouteDraftBody":{"type":"object","properties":{"scopeKind":{"type":"string","minLength":1,"maxLength":80},"scopeId":{"type":"string","minLength":1,"maxLength":200},"role":{"type":"string","minLength":1,"maxLength":80},"needs":{"type":"array","items":{"type":"string","minLength":1,"maxLength":80},"maxItems":20},"destinationKind":{"type":"string","minLength":1,"maxLength":80},"destinationRef":{"type":"string","minLength":1,"maxLength":200},"joinsHandle":{"type":"string","maxLength":80},"joinsAt":{"type":"string","minLength":1,"maxLength":200},"steps":{"type":"array","items":{},"maxItems":200},"instructions":{"type":"string","maxLength":2000},"walkedOn":{"type":"string","minLength":1,"maxLength":20},"walkedBy":{"type":"string","maxLength":2000},"validFrom":{"type":"string","minLength":1,"maxLength":20},"handle":{"type":"string","maxLength":80}},"required":["steps"],"additionalProperties":false},"RecordedRoute":{"type":"object","properties":{"route":{"$ref":"#/components/schemas/RouteVersion"},"closed":{"allOf":[{"$ref":"#/components/schemas/RouteVersion"},{"type":["object","null"]}]}},"required":["route","closed"]},"RouteWalk":{"type":"object","properties":{"walkedOn":{"type":"string","minLength":1,"maxLength":20},"walkedBy":{"type":"string","maxLength":2000}},"additionalProperties":false},"RouteEnd":{"type":"object","properties":{"validTo":{"type":"string","minLength":1,"maxLength":20}},"additionalProperties":false},"RouteGraph":{"type":"object","properties":{"storeys":{"type":"array","items":{"type":"object","properties":{"id":{"type":"string"},"name":{"type":"string"},"position":{"type":["integer","null"]}},"required":["id","name","position"]}},"storeyId":{"type":["string","null"]},"nodes":{"type":"array","items":{"$ref":"#/components/schemas/RouteNode"}},"edges":{"type":"array","items":{"$ref":"#/components/schemas/RouteEdge"}},"things":{"type":"array","items":{"type":"object","properties":{"id":{"type":"string"},"kind":{"type":"string"},"name":{"type":"string"},"storeyId":{"type":["string","null"]}},"required":["id","kind","name","storeyId"]}},"mayRecord":{"type":"boolean"},"noNames":{"type":"string"}},"required":["storeys","storeyId","nodes","edges","things","mayRecord","noNames"]},"RouteNode":{"type":"object","properties":{"handle":{"type":"string","format":"uuid"},"version":{"type":"string","format":"uuid"},"kind":{"type":"string"},"thingKind":{"type":["string","null"]},"thingId":{"type":["string","null"]},"storeyId":{"type":["string","null"]},"storey":{"type":["string","null"]},"at":{"allOf":[{"$ref":"#/components/schemas/RoutePoint"},{"type":["object","null"]}]},"parentId":{"type":["string","null"]},"parent":{"type":["string","null"]},"words":{"type":["string","null"]},"name":{"type":"string"},"nothingDrawn":{"type":"boolean"},"withdrawn":{"type":"boolean"},"mark":{"type":["string","null"]},"note":{"type":["string","null"]},"shownToDrawer":{"type":"boolean"},"boundFromMark":{"type":["string","null"]},"recordedBy":{"type":"string"},"recordedOn":{"type":"string"},"versions":{"type":"array","items":{"type":"object","properties":{"version":{"type":"string","format":"uuid"},"kind":{"type":"string"},"name":{"type":"string"},"validFrom":{"type":"string"},"validTo":{"type":["string","null"]},"recordedBy":{"type":"string"}},"required":["version","kind","name","validFrom","validTo","recordedBy"]}}},"required":["handle","version","kind","thingKind","thingId","storeyId","storey","at","parentId","parent","words","name","nothingDrawn","withdrawn","mark","note","shownToDrawer","boundFromMark","recordedBy","recordedOn","versions"]},"RouteEdge":{"type":"object","properties":{"handle":{"type":"string","format":"uuid"},"version":{"type":"string","format":"uuid"},"from":{"type":"string","format":"uuid"},"to":{"type":"string","format":"uuid"},"verb":{"type":"string"},"sentence":{"type":"string"},"fromName":{"type":"string"},"toName":{"type":"string"},"measures":{"type":"array","items":{"type":"object","properties":{"kind":{"type":"string"},"value":{"type":"number"},"status":{"type":"string"},"original":{"type":["number","null"]},"words":{"type":"string"}},"required":["kind","value","status","original","words"]}},"recordedBy":{"type":"string"},"recordedOn":{"type":"string"},"versions":{"type":"array","items":{"type":"object","properties":{"version":{"type":"string","format":"uuid"},"measures":{"type":"array","items":{"type":"string"}},"validFrom":{"type":"string"},"validTo":{"type":["string","null"]},"recordedBy":{"type":"string"}},"required":["version","measures","validFrom","validTo","recordedBy"]}}},"required":["handle","version","from","to","verb","sentence","fromName","toName","measures","recordedBy","recordedOn","versions"]},"RouteEdgesFrom":{"type":"object","properties":{"node":{"$ref":"#/components/schemas/RouteNode"},"edges":{"type":"array","items":{"$ref":"#/components/schemas/RouteEdge"}}},"required":["node","edges"]},"RecordedRouteNode":{"type":"object","properties":{"node":{"$ref":"#/components/schemas/RouteNode"},"created":{"type":"boolean"}},"required":["node","created"]},"RouteNodeBody":{"type":"object","properties":{"thing":{}},"additionalProperties":false},"RouteBindBody":{"type":"object","properties":{"thing":{"type":"object","properties":{"id":{"type":"string","minLength":1,"maxLength":200}},"required":["id"],"additionalProperties":false}},"required":["thing"],"additionalProperties":false},"RouteUnbindBody":{"type":"object","properties":{},"additionalProperties":false},"RecordedRouteEdge":{"type":"object","properties":{"edge":{"$ref":"#/components/schemas/RouteEdge"},"created":{"type":"boolean"}},"required":["edge","created"]},"RouteEdgeBody":{"type":"object","properties":{"from":{"type":"string","maxLength":80},"to":{"type":"string","maxLength":80},"verb":{"type":"string","minLength":1,"maxLength":80},"measures":{"type":"array","items":{},"maxItems":10}},"required":["from","to","verb"],"additionalProperties":false},"RouteMeasuresLanded":{"type":"object","properties":{"edge":{"$ref":"#/components/schemas/RouteEdge"},"changed":{"type":"boolean"}},"required":["edge","changed"]},"RouteMeasuresBody":{"type":"object","properties":{"measures":{"type":"array","items":{},"maxItems":10}},"required":["measures"],"additionalProperties":false},"AssessmentDefinitions":{"type":"object","properties":{"definitions":{"type":"array","items":{"type":"object","properties":{"key":{"type":"string","minLength":1,"maxLength":80},"version":{"type":"string"},"canonVersion":{"type":"string"},"displayName":{"type":"string"},"purpose":{"type":"string"},"workspace":{"type":"string","minLength":1,"maxLength":80},"domain":{"type":"string","minLength":1,"maxLength":80},"subjectKinds":{"type":"array","items":{"type":"string","minLength":1,"maxLength":80}}},"required":["key","version","canonVersion","displayName","purpose","workspace","domain","subjectKinds"]}},"subjects":{"type":"array","items":{"type":"object","properties":{"kind":{"type":"string","minLength":1,"maxLength":80},"id":{"type":"string","minLength":1,"maxLength":200},"name":{"type":"string"},"storey":{"type":["string","null"]}},"required":["kind","id","name","storey"]}},"refused":{"type":["object","null"],"properties":{"code":{"type":"string"},"file":{"type":"string"}},"required":["code","file"]}},"required":["definitions","subjects","refused"]},"AssessmentProcesses":{"type":"object","properties":{"processes":{"type":"array","items":{"type":"object","properties":{"kind":{"type":"string","enum":["process"]},"handle":{"type":"string","format":"uuid"},"status":{"type":"string","minLength":1,"maxLength":80},"statusWords":{"type":"string"},"workspace":{"type":"string","minLength":1,"maxLength":80},"domain":{"type":"string","minLength":1,"maxLength":80},"openedOn":{"type":"string","pattern":"^\\d{4}-\\d{2}-\\d{2}$","example":"2026-10-18"},"personId":{"type":["string","null"],"format":"uuid"},"definition":{"type":"object","properties":{"key":{"type":"string","minLength":1,"maxLength":80},"displayName":{"type":"string"}},"required":["key","displayName"]},"subject":{"type":"object","properties":{"kind":{"type":"string","minLength":1,"maxLength":80},"id":{"type":"string","minLength":1,"maxLength":200},"name":{"type":"string"},"storey":{"type":["string","null"]}},"required":["kind","id","name","storey"]},"existsOnly":{"type":"boolean"},"assessorRoleWords":{"type":["string","null"]},"sealedOn":{"type":["string","null"]},"signedOffOn":{"type":["string","null"]}},"required":["kind","handle","status","statusWords","workspace","domain","openedOn","personId","definition","subject","existsOnly","assessorRoleWords","sealedOn","signedOffOn"]}},"drafts":{"type":"array","items":{"type":"object","properties":{"kind":{"type":"string","enum":["draft"]},"id":{"type":"string","format":"uuid"},"definition":{"type":"object","properties":{"key":{"type":"string","minLength":1,"maxLength":80},"displayName":{"type":"string"}},"required":["key","displayName"]},"subject":{"type":"object","properties":{"kind":{"type":"string","minLength":1,"maxLength":80},"id":{"type":"string","minLength":1,"maxLength":200},"name":{"type":"string"},"storey":{"type":["string","null"]}},"required":["kind","id","name","storey"]},"assessorRoleWords":{"type":"string"},"openedOn":{"type":"string","pattern":"^\\d{4}-\\d{2}-\\d{2}$","example":"2026-10-18"},"abandoned":{"type":"boolean"}},"required":["kind","id","definition","subject","assessorRoleWords","openedOn","abandoned"]}},"mayRun":{"type":"boolean"}},"required":["processes","drafts","mayRun"]},"AssessmentRun":{"type":"object","properties":{"id":{"type":"string","format":"uuid"},"definition":{"type":"object","properties":{"key":{"type":"string","minLength":1,"maxLength":80},"version":{"type":"string"},"canonVersion":{"type":"string"},"displayName":{"type":"string"},"intro":{"type":"string"},"domain":{"type":"string","minLength":1,"maxLength":80},"workspace":{"type":"string","minLength":1,"maxLength":80},"sittingVersion":{"type":["string","null"]},"reasons":{"type":"array","items":{"type":"object","properties":{"key":{"type":"string","minLength":1,"maxLength":80},"label":{"type":"string"},"freeText":{"type":"boolean"}},"required":["key","label","freeText"]}}},"required":["key","version","canonVersion","displayName","intro","domain","workspace","sittingVersion","reasons"]},"subject":{"type":"object","properties":{"kind":{"type":"string","minLength":1,"maxLength":80},"id":{"type":"string","minLength":1,"maxLength":200},"name":{"type":"string"},"storey":{"type":["string","null"]}},"required":["kind","id","name","storey"]},"assessorRole":{"type":"string","minLength":1,"maxLength":80},"assessorRoleWords":{"type":"string"},"authoredAgainst":{"type":"string"},"openedOn":{"type":"string","pattern":"^\\d{4}-\\d{2}-\\d{2}$","example":"2026-10-18"},"steps":{"type":"array","items":{"anyOf":[{"type":"object","properties":{"kind":{"type":"string","enum":["screen"]},"key":{"type":"string"},"section":{"type":["string","null"]},"questionSetKey":{"type":"string","minLength":1,"maxLength":80},"groupKey":{"type":"string","minLength":1,"maxLength":80},"group":{"type":["string","null"]},"prompt":{"type":"string"},"screenType":{"type":"string","minLength":1,"maxLength":80},"answer":{"type":["string","null"]},"gate":{"type":["object","null"],"properties":{"heading":{"type":"string"},"summary":{"type":"string"},"go":{"type":"string"},"no":{"type":"string"},"kind":{"type":"string","minLength":1,"maxLength":80}},"required":["heading","summary","go","no","kind"]}},"required":["kind","key","section","questionSetKey","groupKey","group","prompt","screenType","answer","gate"]},{"type":"object","properties":{"kind":{"type":"string","enum":["question"]},"key":{"type":"string"},"section":{"type":["string","null"]},"questionSetKey":{"type":"string","minLength":1,"maxLength":80},"groupKey":{"type":"string","minLength":1,"maxLength":80},"questionKey":{"type":"string","minLength":1,"maxLength":80},"group":{"type":["string","null"]},"shortLabel":{"type":["string","null"]},"prompt":{"type":"string"},"plainMeaning":{"type":["string","null"]},"evidencePrompt":{"type":["string","null"]},"input":{"type":"object","properties":{"type":{"type":"string","minLength":1,"maxLength":80},"unit":{"type":["string","null"]}},"required":["type","unit"]},"control":{"type":"string","enum":["check-group","radio-group"]},"options":{"type":"array","items":{"type":"object","properties":{"index":{"type":"integer"},"label":{"type":"string"},"couldNotEstablish":{"type":"boolean"}},"required":["index","label","couldNotEstablish"]}},"state":{"type":"string","minLength":1,"maxLength":80},"answer":{"type":["object","null"],"properties":{"outcome":{"type":"string","minLength":1,"maxLength":80},"options":{"type":"array","items":{"type":"integer"}},"value":{"type":["number","null"]},"reason":{"type":["string","null"]},"acceptedProposal":{"type":"boolean"}},"required":["outcome","options","value","reason","acceptedProposal"]},"proposal":{"type":["object","null"],"properties":{"words":{"type":"string"},"value":{"anyOf":[{"type":"string"},{"type":"number"},{"type":"boolean"},{"type":"array","items":{"type":"string"}},{"type":"object","additionalProperties":{"type":"array","items":{"type":"string"}}}]},"provenance":{"type":"object","properties":{"from":{"type":"string","minLength":1,"maxLength":80},"against":{"type":"string"},"id":{"type":"string"}},"required":["from","against"]},"option":{"type":["integer","null"]},"unit":{"type":["string","null"]}},"required":["words","value","provenance","option","unit"]},"earlier":{"type":["object","null"],"properties":{"sealedOn":{"type":"string","pattern":"^\\d{4}-\\d{2}-\\d{2}$","example":"2026-10-18"},"words":{"type":"string"}},"required":["sealedOn","words"]},"number":{"type":["string","null"]},"voice":{"type":["string","null"],"minLength":1,"maxLength":80},"provenance":{"type":["object","null"],"properties":{"why":{"type":"string"},"matters":{"type":"string"},"basis":{"type":"array","items":{"type":"object","properties":{"kind":{"type":"string","minLength":1,"maxLength":80},"ref":{"type":"string"},"tier":{"type":["string","null"]}},"required":["kind","ref","tier"]}}},"required":["why","matters","basis"]},"legal":{"type":["string","null"]}},"required":["kind","key","section","questionSetKey","groupKey","questionKey","group","shortLabel","prompt","plainMeaning","evidencePrompt","input","control","options","state","answer","proposal","earlier","number","voice","provenance","legal"]}]}},"next":{"type":["string","null"]},"coverage":{"type":"object","properties":{"answered":{"type":"integer"},"screenedOut":{"type":"integer"},"total":{"type":"integer"}},"required":["answered","screenedOut","total"]},"done":{"type":"boolean"},"scopeConfirmed":{"type":"boolean"},"mayAbandon":{"type":"boolean"},"bound":{"type":["object","null"],"properties":{"personId":{"type":"string","format":"uuid"},"handle":{"type":"string","format":"uuid"}},"required":["personId","handle"]},"parts":{"type":"array","items":{"type":"object","properties":{"key":{"type":"string","minLength":1,"maxLength":80},"displayName":{"type":"string"},"about":{"type":"string","enum":["person","place"]},"reached":{"type":"integer"},"total":{"type":"integer"},"notAsked":{"type":["string","null"]},"mayBeNotAsked":{"type":"boolean"}},"required":["key","displayName","about","reached","total","notAsked","mayBeNotAsked"]}},"package":{"type":["object","null"],"properties":{"version":{"type":"string"},"voice":{"type":"string","minLength":1,"maxLength":80},"header":{"type":["string","null"]},"parts":{"type":"array","items":{"type":"object","properties":{"key":{"type":"string","minLength":1,"maxLength":80},"title":{"type":"string"},"introduction":{"type":["string","null"]}},"required":["key","title","introduction"]}},"sections":{"type":"array","items":{"type":"object","properties":{"questionSetKey":{"type":"string","minLength":1,"maxLength":80},"part":{"type":"string","minLength":1,"maxLength":80},"code":{"type":"string"},"title":{"type":"string"},"introduction":{"type":["string","null"]},"intro":{"type":["string","null"]},"safeguarding":{"type":["string","null"]},"status":{"type":"string","enum":["done","nothing-here","in-progress","to-do"]},"reached":{"type":"integer"},"total":{"type":"integer"}},"required":["questionSetKey","part","code","title","introduction","intro","safeguarding","status","reached","total"]}}},"required":["version","voice","header","parts","sections"]}},"required":["id","definition","subject","assessorRole","assessorRoleWords","authoredAgainst","openedOn","steps","next","coverage","done","scopeConfirmed","mayAbandon","bound","parts","package"]},"OpenAssessmentRun":{"type":"object","properties":{"definition":{"type":"string","minLength":1,"maxLength":80},"subject":{"type":"object","properties":{"kind":{"type":"string","minLength":1,"maxLength":80},"id":{"type":"string","minLength":1,"maxLength":200}},"required":["kind","id"],"additionalProperties":false},"assessorRole":{"type":"string","minLength":1,"maxLength":80}},"required":["definition","subject","assessorRole"],"additionalProperties":false},"AssessmentAnswer":{"oneOf":[{"type":"object","properties":{"act":{"type":"string","enum":["screen"]},"questionSetKey":{"type":"string","minLength":1,"maxLength":80},"groupKey":{"type":"string","minLength":1,"maxLength":80},"result":{"type":"string","minLength":1,"maxLength":80}},"required":["act","questionSetKey","groupKey","result"],"additionalProperties":false},{"type":"object","properties":{"act":{"type":"string","enum":["answer"]},"questionSetKey":{"type":"string","minLength":1,"maxLength":80},"groupKey":{"type":"string","minLength":1,"maxLength":80},"questionKey":{"type":"string","minLength":1,"maxLength":80},"options":{"type":"array","items":{"type":"integer","minimum":0},"minItems":1,"maxItems":40},"value":{"type":"number"}},"required":["act","questionSetKey","groupKey","questionKey","options"],"additionalProperties":false},{"type":"object","properties":{"act":{"type":"string","enum":["accept-proposal"]},"questionSetKey":{"type":"string","minLength":1,"maxLength":80},"groupKey":{"type":"string","minLength":1,"maxLength":80},"questionKey":{"type":"string","minLength":1,"maxLength":80}},"required":["act","questionSetKey","groupKey","questionKey"],"additionalProperties":false},{"type":"object","properties":{"act":{"type":"string","enum":["not-established"]},"questionSetKey":{"type":"string","minLength":1,"maxLength":80},"groupKey":{"type":"string","minLength":1,"maxLength":80},"questionKey":{"type":"string","minLength":1,"maxLength":80},"reason":{"type":"object","properties":{"key":{"type":"string","minLength":1,"maxLength":80},"text":{"type":"string","maxLength":500}},"required":["key"],"additionalProperties":false}},"required":["act","questionSetKey","groupKey","questionKey"],"additionalProperties":false},{"type":"object","properties":{"act":{"type":"string","enum":["not-applicable"]},"questionSetKey":{"type":"string","minLength":1,"maxLength":80},"groupKey":{"type":"string","minLength":1,"maxLength":80},"questionKey":{"type":"string","minLength":1,"maxLength":80},"reason":{"type":"string","maxLength":300}},"required":["act","questionSetKey","groupKey","questionKey","reason"],"additionalProperties":false},{"type":"object","properties":{"act":{"type":"string","enum":["not-asked"]},"section":{"type":"string","minLength":1,"maxLength":80},"words":{"type":"string","maxLength":300}},"required":["act","section","words"],"additionalProperties":false},{"type":"object","properties":{"act":{"type":"string","enum":["ask-after-all"]},"section":{"type":"string","minLength":1,"maxLength":80}},"required":["act","section"],"additionalProperties":false},{"type":"object","properties":{"act":{"type":"string","enum":["voice"]},"voice":{"type":"string","minLength":1,"maxLength":80}},"required":["act","voice"],"additionalProperties":false}]},"AssessmentRunAbandoned":{"type":"object","properties":{"abandoned":{"type":"boolean","enum":[true]}},"required":["abandoned"]},"AssessmentSealed":{"type":"object","properties":{"answerSetId":{"type":"string","format":"uuid"},"hash":{"type":"string"},"processHandle":{"type":"string","format":"uuid"}},"required":["answerSetId","hash","processHandle"]},"AssessmentProcess":{"type":"object","properties":{"handle":{"type":"string","format":"uuid"},"versionId":{"type":"string","format":"uuid"},"status":{"type":"string","minLength":1,"maxLength":80},"statusWords":{"type":"string"},"workspace":{"type":"string","minLength":1,"maxLength":80},"domain":{"type":"string","minLength":1,"maxLength":80},"definition":{"type":"object","properties":{"key":{"type":"string","minLength":1,"maxLength":80},"version":{"type":"string"},"displayName":{"type":"string"}},"required":["key","version","displayName"]},"subject":{"type":"object","properties":{"kind":{"type":"string","minLength":1,"maxLength":80},"id":{"type":"string","minLength":1,"maxLength":200},"name":{"type":"string"},"storey":{"type":["string","null"]}},"required":["kind","id","name","storey"]},"answerSet":{"type":"object","properties":{"id":{"type":"string","format":"uuid"},"sealedOn":{"type":"string","pattern":"^\\d{4}-\\d{2}-\\d{2}$","example":"2026-10-18"},"hash":{"type":"string"},"assessorRole":{"type":"string","minLength":1,"maxLength":80},"assessorRoleWords":{"type":"string"},"authoredAgainst":{"type":"string"},"emptied":{"type":"boolean"},"coverage":{"type":"object","properties":{"answered":{"type":"integer"},"total":{"type":"integer"}},"required":["answered","total"]},"answers":{"type":"array","items":{"type":"object","properties":{"question":{"type":"string"},"answer":{"type":"string"}},"required":["question","answer"]}},"parts":{"type":"array","items":{"type":"object","properties":{"questionSetKey":{"type":"string","minLength":1,"maxLength":80},"groupKey":{"type":"string","minLength":1,"maxLength":80},"name":{"type":"string"},"reading":{"type":"string","minLength":1,"maxLength":80},"words":{"type":"string"},"counts":{"type":"object","properties":{"answered":{"type":"integer"},"notEstablished":{"type":"integer"},"notApplicable":{"type":"integer"},"notAsked":{"type":"integer"},"total":{"type":"integer"}},"required":["answered","notEstablished","notApplicable","notAsked","total"]},"notAsked":{"type":"array","items":{"type":"object","properties":{"question":{"type":"string"},"lead":{"type":"string"},"answer":{"type":"string"}},"required":["question","lead","answer"]}}},"required":["questionSetKey","groupKey","name","reading","words","counts","notAsked"]}}},"required":["id","sealedOn","hash","assessorRole","assessorRoleWords","authoredAgainst","emptied","coverage","answers","parts"]},"ranBy":{"type":"object","properties":{"id":{"type":"string","format":"uuid"},"display":{"type":"string"}},"required":["id","display"]},"responses":{"type":"array","items":{"type":"object","properties":{"considerationKey":{"type":"string","minLength":1,"maxLength":80},"response":{"type":"string","minLength":1,"maxLength":80},"responseWords":{"type":"string"},"reason":{"type":["string","null"]},"on":{"type":"string","pattern":"^\\d{4}-\\d{2}-\\d{2}$","example":"2026-10-18"},"by":{"type":"object","properties":{"id":{"type":"string","format":"uuid"},"display":{"type":"string"}},"required":["id","display"]},"definitionVersion":{"type":"string"}},"required":["considerationKey","response","responseWords","reason","on","by","definitionVersion"]}},"acts":{"type":"array","items":{"type":"object","properties":{"considerationKey":{"type":"string","minLength":1,"maxLength":80},"offer":{"type":"object","properties":{"tool":{"type":"string","minLength":1,"maxLength":80},"kind":{"type":"string","minLength":1,"maxLength":80},"index":{"type":"integer"},"level":{"type":"string","minLength":1,"maxLength":80},"scope":{"type":"object","properties":{"kind":{"type":"string","minLength":1,"maxLength":80},"id":{"type":"string","minLength":1,"maxLength":200}},"required":["kind","id"]},"chosen":{"type":"integer"},"words":{"type":"string"}},"required":["tool","kind","index","words"]},"outcome":{"type":"string","minLength":1,"maxLength":80},"value":{},"reason":{"type":["string","null"]},"result":{"type":["object","null"],"properties":{"tool":{"type":"string","minLength":1,"maxLength":80},"id":{"type":"string","format":"uuid"}},"required":["tool","id"]},"on":{"type":"string","pattern":"^\\d{4}-\\d{2}-\\d{2}$","example":"2026-10-18"},"by":{"type":"object","properties":{"id":{"type":"string","format":"uuid"},"display":{"type":"string"}},"required":["id","display"]}},"required":["considerationKey","offer","outcome","reason","result","on","by"]}},"recorded":{"type":["object","null"],"properties":{"on":{"type":"string","pattern":"^\\d{4}-\\d{2}-\\d{2}$","example":"2026-10-18"},"by":{"type":"object","properties":{"id":{"type":"string","format":"uuid"},"display":{"type":"string"}},"required":["id","display"]}},"required":["on","by"]},"ready":{"type":["object","null"],"properties":{"on":{"type":"string","pattern":"^\\d{4}-\\d{2}-\\d{2}$","example":"2026-10-18"},"by":{"type":"object","properties":{"id":{"type":"string","format":"uuid"},"display":{"type":"string"}},"required":["id","display"]}},"required":["on","by"]},"signedOff":{"type":["object","null"],"properties":{"on":{"type":"string","pattern":"^\\d{4}-\\d{2}-\\d{2}$","example":"2026-10-18"},"by":{"type":"object","properties":{"id":{"type":"string","format":"uuid"},"display":{"type":"string"}},"required":["id","display"]},"standing":{"type":"string","minLength":1,"maxLength":80},"standingWords":{"type":"string"},"cites":{"type":["string","null"],"format":"uuid"}},"required":["on","by","standing","standingWords","cites"]},"supersededBy":{"type":["string","null"],"format":"uuid"},"may":{"type":"object","properties":{"respond":{"type":"boolean"},"record":{"type":"boolean"},"ready":{"type":"boolean"},"signOff":{"type":"boolean"}},"required":["respond","record","ready","signOff"]}},"required":["handle","versionId","status","statusWords","workspace","domain","definition","subject","answerSet","ranBy","responses","acts","recorded","ready","signedOff","supersededBy","may"]},"AssessmentConsiderations":{"type":"object","properties":{"considerations":{"type":"array","items":{"type":"object","properties":{"key":{"type":"string","minLength":1,"maxLength":80},"topic":{"type":"string","minLength":1,"maxLength":80},"text":{"type":"string"},"advice":{"type":"string"},"source":{"type":"string","minLength":1,"maxLength":80},"aroseFrom":{"type":"array","items":{"type":"object","properties":{"question_set_key":{"type":"string","minLength":1,"maxLength":80},"group_key":{"type":"string","minLength":1,"maxLength":80},"question_key":{"type":"string","minLength":1,"maxLength":80},"part":{"type":"string","minLength":1,"maxLength":80},"outcome":{"type":"string","minLength":1,"maxLength":80},"answers":{"type":"array","items":{"type":"string"}},"value":{"type":"number"}},"required":["question_set_key","group_key","question_key","outcome","answers"]}},"offers":{"type":"array","items":{"type":"object","properties":{"tool":{"type":"string","minLength":1,"maxLength":80},"kind":{"type":"string","minLength":1,"maxLength":80},"index":{"type":"integer"},"scope":{"type":"string","minLength":1,"maxLength":80},"words":{"type":"string"}},"required":["tool","kind","index","words"]}},"definition":{"type":"object","properties":{"key":{"type":"string","minLength":1,"maxLength":80},"version":{"type":"string"}},"required":["key","version"]}},"required":["key","topic","text","advice","source","aroseFrom","offers","definition"]}},"unmet":{"type":"array","items":{"type":"string"}},"topics":{"type":"array","items":{"type":"object","properties":{"key":{"type":"string","minLength":1,"maxLength":80},"label":{"type":"string"}},"required":["key","label"]}}},"required":["considerations","unmet","topics"]},"AssessmentResponse":{"type":"object","properties":{"consideration":{"type":"string","minLength":1,"maxLength":80},"response":{"type":"string","minLength":1,"maxLength":80},"reason":{"type":"string","maxLength":500}},"required":["consideration","response"],"additionalProperties":false},"AssessmentAct":{"type":"object","properties":{"consideration":{"type":"string","minLength":1,"maxLength":80},"offer":{"type":"integer","minimum":0},"outcome":{"type":"string","minLength":1,"maxLength":80},"level":{"type":"string","minLength":1,"maxLength":80},"value":{},"reason":{"type":"string","maxLength":500}},"required":["consideration","offer","outcome"],"additionalProperties":false},"AssessmentSignOff":{"type":"object","properties":{"standing":{"type":"string","minLength":1,"maxLength":80},"cites":{"type":"string","format":"uuid"}},"required":["standing"],"additionalProperties":false},"ProcessOnResidencyPreview":{"type":"object","properties":{"definition":{"type":"object","properties":{"key":{"type":"string","minLength":1,"maxLength":80},"version":{"type":"string"},"canonVersion":{"type":["string","null"]},"displayName":{"type":"string"},"served":{"type":"boolean"},"domain":{"type":"string","minLength":1,"maxLength":80}},"required":["key","version","canonVersion","displayName","served","domain"]},"open":{"type":["object","null"],"properties":{"handle":{"type":"string","format":"uuid"}},"required":["handle"]},"stands":{"type":["object","null"],"properties":{"handle":{"type":"string","format":"uuid"},"openedOn":{"type":"string","pattern":"^\\d{4}-\\d{2}-\\d{2}$","example":"2026-10-18"},"signedOffOn":{"type":["string","null"],"pattern":"^\\d{4}-\\d{2}-\\d{2}$","example":"2026-10-18"}},"required":["handle","openedOn","signedOffOn"]}},"required":["definition","open","stands"]},"ProcessesEarlierOnResidency":{"type":"object","properties":{"earlier":{"type":"array","items":{"type":"object","properties":{"handle":{"type":"string","format":"uuid"},"openedOn":{"type":"string","pattern":"^\\d{4}-\\d{2}-\\d{2}$","example":"2026-10-18"},"signedOffOn":{"type":["string","null"],"pattern":"^\\d{4}-\\d{2}-\\d{2}$","example":"2026-10-18"},"closed":{"type":"object","properties":{"as":{"type":"string","enum":["declined","withdrawn","retired"]},"on":{"type":"string","pattern":"^\\d{4}-\\d{2}-\\d{2}$","example":"2026-10-18"},"reasonLabel":{"type":["string","null"]}},"required":["as","on","reasonLabel"]}},"required":["handle","openedOn","signedOffOn","closed"]}}},"required":["earlier"]},"ProcessOpenedOnResidency":{"type":"object","properties":{"handle":{"type":"string","format":"uuid"}},"required":["handle"]},"OpenProcessOnResidency":{"type":"object","properties":{"workspace":{"type":"string","minLength":1,"maxLength":80}},"required":["workspace"]},"ProcessOutline":{"type":"object","properties":{"handle":{"type":"string","format":"uuid"},"versionId":{"type":"string","format":"uuid"},"versionIds":{"type":"array","items":{"type":"string","format":"uuid"}},"placeId":{"type":"string","format":"uuid"},"residencyId":{"type":"string","format":"uuid"},"workspace":{"type":"string","minLength":1,"maxLength":80},"domain":{"type":"string","minLength":1,"maxLength":80},"status":{"type":"string","minLength":1,"maxLength":80},"statusWords":{"type":"string"},"definition":{"type":"object","properties":{"key":{"type":"string","minLength":1,"maxLength":80},"version":{"type":"string"},"canonVersion":{"type":["string","null"]},"displayName":{"type":"string"},"served":{"type":"boolean"},"domain":{"type":"string","minLength":1,"maxLength":80}},"required":["key","version","canonVersion","displayName","served","domain"]},"created":{"type":"object","properties":{"on":{"type":"string","pattern":"^\\d{4}-\\d{2}-\\d{2}$","example":"2026-10-18"},"at":{"type":"string"},"by":{"type":"object","properties":{"id":{"type":"string"},"display":{"type":"string"}},"required":["id","display"]}},"required":["on","at","by"]},"ended":{"type":["object","null"],"properties":{"on":{"type":"string","pattern":"^\\d{4}-\\d{2}-\\d{2}$","example":"2026-10-18"}},"required":["on"]},"closed":{"type":["object","null"],"properties":{"as":{"type":"string","enum":["declined","withdrawn","retired"]},"on":{"type":"string","pattern":"^\\d{4}-\\d{2}-\\d{2}$","example":"2026-10-18"},"reason":{"type":["string","null"]},"reasonLabel":{"type":["string","null"]},"words":{"type":["string","null"]}},"required":["as","on","reason","reasonLabel","words"]},"suspended":{"type":["object","null"],"properties":{"on":{"type":"string","pattern":"^\\d{4}-\\d{2}-\\d{2}$","example":"2026-10-18"},"reason":{"type":"string"},"reasonLabel":{"type":"string"},"words":{"type":["string","null"]}},"required":["on","reason","reasonLabel","words"]},"resumedOn":{"type":["string","null"],"pattern":"^\\d{4}-\\d{2}-\\d{2}$","example":"2026-10-18"},"cycle":{"type":"integer"},"cycles":{"type":"array","items":{"type":"object","properties":{"cycle":{"type":"integer"},"openedOn":{"type":"string","pattern":"^\\d{4}-\\d{2}-\\d{2}$","example":"2026-10-18"},"openedBy":{"type":"object","properties":{"id":{"type":"string"},"display":{"type":"string"}},"required":["id","display"]},"reason":{"type":["string","null"]},"reasonLabel":{"type":["string","null"]},"words":{"type":["string","null"]},"signedOffOn":{"type":["string","null"],"pattern":"^\\d{4}-\\d{2}-\\d{2}$","example":"2026-10-18"},"status":{"type":"string","enum":["working","in-force","superseded","closed"]}},"required":["cycle","openedOn","openedBy","reason","reasonLabel","words","signedOffOn","status"]}},"inForce":{"type":["integer","null"]},"working":{"type":["integer","null"]},"answerSet":{"type":["object","null"],"properties":{"id":{"type":"string","format":"uuid"},"sealedOn":{"type":"string","pattern":"^\\d{4}-\\d{2}-\\d{2}$","example":"2026-10-18"},"hash":{"type":"string"}},"required":["id","sealedOn","hash"]},"draft":{"type":["object","null"],"properties":{"id":{"type":"string","format":"uuid"},"openedOn":{"type":"string","pattern":"^\\d{4}-\\d{2}-\\d{2}$","example":"2026-10-18"}},"required":["id","openedOn"]},"recordedOn":{"type":["string","null"],"pattern":"^\\d{4}-\\d{2}-\\d{2}$","example":"2026-10-18"},"readyOn":{"type":["string","null"],"pattern":"^\\d{4}-\\d{2}-\\d{2}$","example":"2026-10-18"},"signedOff":{"type":["object","null"],"properties":{"on":{"type":"string","pattern":"^\\d{4}-\\d{2}-\\d{2}$","example":"2026-10-18"},"by":{"type":"object","properties":{"id":{"type":"string"},"display":{"type":"string"}},"required":["id","display"]},"standing":{"type":"string"}},"required":["on","by","standing"]},"may":{"type":"object","properties":{"update":{"type":"boolean"}},"required":["update"]}},"required":["handle","versionId","versionIds","placeId","residencyId","workspace","domain","status","statusWords","definition","created","ended","closed","suspended","resumedOn","cycle","cycles","inForce","working","answerSet","draft","recordedOn","readyOn","signedOff","may"]},"ProcessAnswered":{"type":"object","properties":{"handle":{"type":"string","format":"uuid"},"answer":{"type":"string","enum":["given","declined"]},"ended":{"type":"boolean"}},"required":["handle","answer","ended"]},"ProcessAnswer":{"type":"object","properties":{"answer":{"type":"string","minLength":1,"maxLength":80},"party":{"type":"string","minLength":1,"maxLength":80},"channel":{"type":"string","minLength":1,"maxLength":80},"informed":{"type":["string","null"],"minLength":1,"maxLength":80},"on":{"type":"string","format":"date"},"words":{"type":["string","null"],"maxLength":500}},"required":["answer","party","channel"]},"ProcessWithdrawn":{"type":"object","properties":{"handle":{"type":"string","format":"uuid"},"draftsClosed":{"type":"integer"}},"required":["handle","draftsClosed"]},"ProcessWithdrawal":{"type":"object","properties":{"party":{"type":"string","minLength":1,"maxLength":80},"channel":{"type":"string","minLength":1,"maxLength":80},"informed":{"type":["string","null"],"minLength":1,"maxLength":80},"on":{"type":"string","format":"date"},"words":{"type":["string","null"],"maxLength":500}},"required":["party","channel"]},"ProcessRetired":{"type":"object","properties":{"handle":{"type":"string","format":"uuid"},"draftsClosed":{"type":"integer"},"answersClosed":{"type":"integer"},"offersClosed":{"type":"integer"},"bandsEnded":{"type":"integer"}},"required":["handle","draftsClosed","answersClosed","offersClosed","bandsEnded"]},"ProcessRetire":{"type":"object","properties":{"reason":{"type":"string","minLength":1,"maxLength":80},"words":{"type":["string","null"],"minLength":1,"maxLength":500},"on":{"type":"string","pattern":"^\\d{4}-\\d{2}-\\d{2}$","example":"2026-10-18"}},"required":["reason"],"additionalProperties":false},"ProcessMoved":{"type":"object","properties":{"handle":{"type":"string","format":"uuid"},"versionId":{"type":"string","format":"uuid"}},"required":["handle","versionId"]},"ProcessSuspend":{"type":"object","properties":{"reason":{"type":"string","minLength":1,"maxLength":80},"words":{"type":["string","null"],"minLength":1,"maxLength":500},"on":{"type":"string","pattern":"^\\d{4}-\\d{2}-\\d{2}$","example":"2026-10-18"}},"required":["reason"],"additionalProperties":false},"ProcessResume":{"type":"object","properties":{"on":{"type":"string","pattern":"^\\d{4}-\\d{2}-\\d{2}$","example":"2026-10-18"}},"additionalProperties":false},"ProcessReviewed":{"type":"object","properties":{"handle":{"type":"string","format":"uuid"},"versionId":{"type":"string","format":"uuid"},"cycle":{"type":"integer"}},"required":["handle","versionId","cycle"]},"ProcessReview":{"type":"object","properties":{"reason":{"type":"string","minLength":1,"maxLength":80},"words":{"type":"string","minLength":1,"maxLength":500}},"required":["reason","words"],"additionalProperties":false},"ProcessAssessLanding":{"type":"object","properties":{"handle":{"type":"string","format":"uuid"},"definition":{"type":"object","properties":{"key":{"type":"string"},"version":{"type":"string"},"canonVersion":{"type":["string","null"]},"displayName":{"type":"string"},"served":{"type":"boolean"},"asked":{"type":"boolean"},"outline":{"type":"object","properties":{"sections":{"type":"array","items":{"type":"object","properties":{"key":{"type":["string","null"]},"displayName":{"type":["string","null"]},"reuse":{"type":["string","null"]},"subject":{"type":["string","null"]},"sets":{"type":"array","items":{"type":"object","properties":{"key":{"type":"string"},"label":{"type":"string"},"questions":{"type":"integer"}},"required":["key","label","questions"]}}},"required":["key","displayName","reuse","subject","sets"]}}},"required":["sections"]}},"required":["key","version","canonVersion","displayName","served","asked","outline"]},"recordVersion":{"type":"string"},"known":{"type":"array","items":{"type":"object","properties":{"tag":{"type":"string"},"about":{"type":"string"},"words":{"type":"string"}},"required":["tag","about","words"]}},"draft":{"type":["object","null"],"properties":{"id":{"type":"string","format":"uuid"},"openedOn":{"type":"string"},"answered":{"type":["integer","null"]},"total":{"type":["integer","null"]}},"required":["id","openedOn","answered","total"]},"consent":{"type":["string","null"],"enum":["given","refused","withdrawn",null]},"ended":{"type":"boolean"},"sealed":{"type":["object","null"],"properties":{"on":{"type":"string"},"hash":{"type":"string"}},"required":["on","hash"]},"correcting":{"type":["object","null"],"properties":{"since":{"type":"string"},"reason":{"type":["string","null"]}},"required":["since","reason"]},"mayStart":{"type":"boolean"}},"required":["handle","definition","recordVersion","known","draft","consent","ended","sealed","correcting","mayStart"]},"ProcessSealedSection":{"type":"object","properties":{"handle":{"type":"string","format":"uuid"},"section":{"type":"object","properties":{"key":{"type":"string"},"displayName":{"type":"string"},"about":{"type":"string","enum":["person","place"]},"walked":{"type":"boolean"},"notAsked":{"type":["string","null"]}},"required":["key","displayName","about","walked","notAsked"]},"sealedOn":{"type":"string"},"sealedBy":{"type":"object","properties":{"id":{"type":"string"},"display":{"type":"string"}},"required":["id","display"]},"sets":{"type":"array","items":{"type":"object","properties":{"key":{"type":"string"},"label":{"type":"string"},"answers":{"type":"array","items":{"type":"object","properties":{"key":{"type":"string"},"question":{"type":"string"},"answer":{"type":"string"}},"required":["key","question","answer"]}}},"required":["key","label","answers"]}}},"required":["handle","section","sealedOn","sealedBy","sets"]},"ProcessStartedOnResidency":{"type":"object","properties":{"runId":{"type":"string","format":"uuid"},"placeId":{"type":"string","format":"uuid"},"carriedOn":{"type":"boolean"}},"required":["runId","placeId","carriedOn"]},"ProcessStartOnResidency":{"type":"object","properties":{"assessorRole":{"type":"string","minLength":1,"maxLength":80}}},"QuoteType":{"type":"object","properties":{"key":{"type":"string"},"label":{"type":"string"},"resourceType":{"type":"string"},"inputs":{"type":"object","additionalProperties":{}}},"required":["key","label","resourceType","inputs"]},"Quote":{"type":"object","properties":{"id":{"type":"string","format":"uuid"},"type":{"type":"string"},"amountMinor":{"type":"integer"},"currency":{"type":"string"},"capacity":{"type":"object","additionalProperties":{}},"summary":{"type":"string"},"status":{"type":"string","enum":["open","paid","expired"]},"expiresAt":{"type":"string"}},"required":["id","type","amountMinor","currency","capacity","summary","status","expiresAt"]},"QuoteRequest":{"type":"object","properties":{"type":{"type":"string","minLength":1,"maxLength":60},"inputs":{"type":"object","additionalProperties":{}}},"required":["type","inputs"],"additionalProperties":false},"CheckoutStart":{"oneOf":[{"type":"object","properties":{"mode":{"type":"string","enum":["checkout"]},"url":{"type":"string"}},"required":["mode","url"]},{"type":"object","properties":{"mode":{"type":"string","enum":["invoiced"]},"registrations":{"type":"array","items":{"$ref":"#/components/schemas/RegistrationReceipt"}}},"required":["mode","registrations"]},{"type":"object","properties":{"mode":{"type":"string","enum":["charged"]},"registrations":{"type":"array","items":{"$ref":"#/components/schemas/RegistrationReceipt"}}},"required":["mode","registrations"]},{"type":"object","properties":{"mode":{"type":"string","enum":["payment_required"]},"url":{"type":["string","null"]},"registrations":{"type":"array","items":{"$ref":"#/components/schemas/RegistrationReceipt"}}},"required":["mode","url","registrations"]}]},"RegistrationReceipt":{"type":"object","properties":{"id":{"type":"string","format":"uuid"},"number":{"type":["string","null"]},"summary":{"type":"string"},"status":{"type":"string"},"startsAt":{"type":["string","null"]},"paidUntil":{"type":["string","null"]}},"required":["id","number","summary","status","startsAt","paidUntil"]},"CheckoutRequest":{"type":"object","properties":{"quoteIds":{"type":"array","items":{"type":"string","format":"uuid"},"minItems":1,"maxItems":50}},"required":["quoteIds"],"additionalProperties":false},"Registration":{"type":"object","properties":{"id":{"type":"string","format":"uuid"},"number":{"type":["string","null"]},"status":{"type":"string","enum":["pending_payment","active","true_up_required","refunded","lapsed","cancelled"]},"quoteType":{"type":"string"},"summary":{"type":"string"},"amountMinor":{"type":"integer"},"currency":{"type":"string"},"capacity":{"type":"object","additionalProperties":{}},"startsAt":{"type":["string","null"]},"paidUntil":{"type":["string","null"]},"refundedAt":{"type":["string","null"]},"lastCheckAt":{"type":["string","null"]},"resourceType":{"type":"string"},"resource":{"type":["object","null"],"properties":{"id":{"type":"string","format":"uuid"},"name":{"type":["string","null"]}},"required":["id","name"]},"trueUp":{"type":["object","null"],"properties":{"amountMinor":{"type":"integer"},"capacity":{"type":"object","additionalProperties":{}},"summary":{"type":"string"}},"required":["amountMinor","capacity","summary"]},"prefill":{"type":["object","null"],"properties":{"name":{"type":"string"},"attributes":{"type":"object","additionalProperties":{}}}}},"required":["id","number","status","quoteType","summary","amountMinor","currency","capacity","startsAt","paidUntil","refundedAt","lastCheckAt","resourceType","resource","trueUp","prefill"]},"RegistrationCertificate":{"type":"object","properties":{"number":{"type":["string","null"]},"status":{"type":"string","enum":["pending_payment","active","true_up_required","refunded","lapsed","cancelled"]},"valid":{"type":"boolean"},"resourceName":{"type":["string","null"]},"organisationName":{"type":"string"},"summary":{"type":"string"},"issuedAt":{"type":["string","null"]},"validUntil":{"type":["string","null"]},"lines":{"type":"array","items":{"type":"string"}}},"required":["number","status","valid","resourceName","organisationName","summary","issuedAt","validUntil","lines"]},"TrueUpStart":{"oneOf":[{"type":"object","properties":{"mode":{"type":"string","enum":["charged"]},"registration":{"$ref":"#/components/schemas/RegistrationReceipt"}},"required":["mode","registration"]},{"type":"object","properties":{"mode":{"type":"string","enum":["payment_required"]},"url":{"type":["string","null"]}},"required":["mode","url"]}]},"PublicCheckoutRequest":{"type":"object","properties":{"quoteIds":{"type":"array","items":{"type":"string","format":"uuid"},"minItems":1,"maxItems":50},"invoiceTo":{"type":"object","properties":{"email":{"type":"string","maxLength":254,"format":"email"},"responsibleParty":{"type":"string","minLength":1,"maxLength":120}},"required":["email","responsibleParty"],"additionalProperties":false},"cancelUrl":{"type":"string","maxLength":2000,"format":"uri"}},"required":["quoteIds"],"additionalProperties":false},"CheckoutStatus":{"oneOf":[{"type":"object","properties":{"state":{"type":"string","enum":["unpaid"]},"emailDomain":{"type":["string","null"]}},"required":["state","emailDomain"]},{"type":"object","properties":{"state":{"type":"string","enum":["processing"]},"emailDomain":{"type":["string","null"]}},"required":["state","emailDomain"]},{"type":"object","properties":{"state":{"type":"string","enum":["issued"]},"emailDomain":{"type":["string","null"]},"registrations":{"type":"array","items":{"$ref":"#/components/schemas/RegistrationReceipt"}},"newCustomer":{"type":"boolean"}},"required":["state","emailDomain","registrations","newCustomer"]}]},"PublicPageServed":{"type":"object","properties":{"page":{"$ref":"#/components/schemas/PublicPageDocument"},"link":{"type":["string","null"]}},"required":["page","link"]},"ProviderLookup":{"type":"object","properties":{"id":{"type":"string","format":"uuid"},"name":{"type":"string"}},"required":["id","name"]},"EngagementList":{"type":"object","properties":{"items":{"type":"array","items":{"$ref":"#/components/schemas/Engagement"}}},"required":["items"]},"Engagement":{"type":"object","properties":{"id":{"type":"string","format":"uuid"},"title":{"type":"string"},"status":{"type":"string","enum":["active","ended"]},"side":{"type":"string","enum":["client","provider"]},"counterpart":{"$ref":"#/components/schemas/Counterpart"},"sharedCount":{"type":"integer"},"createdAt":{"type":"string"},"endedAt":{"type":["string","null"]},"endedReason":{"type":["string","null"]}},"required":["id","title","status","side","counterpart","sharedCount","createdAt","endedAt","endedReason"]},"Counterpart":{"type":"object","properties":{"organisationId":{"type":"string","format":"uuid"},"name":{"type":"string"},"slug":{"type":"string"},"kind":{"type":"string"}},"required":["organisationId","name","slug","kind"]},"CreateEngagement":{"type":"object","properties":{"providerSlug":{"type":"string","minLength":1,"maxLength":120},"title":{"type":"string","minLength":1,"maxLength":200}},"required":["providerSlug","title"],"additionalProperties":false},"EngagementDetail":{"type":"object","properties":{"engagement":{"$ref":"#/components/schemas/Engagement"},"shares":{"type":"array","items":{"$ref":"#/components/schemas/SharedResource"}}},"required":["engagement","shares"]},"SharedResource":{"type":"object","properties":{"shareId":{"type":"string","format":"uuid"},"resourceId":{"type":"string","format":"uuid"},"name":{"type":"string"},"sharedAt":{"type":"string"}},"required":["shareId","resourceId","name","sharedAt"]},"EndEngagement":{"type":"object","properties":{"reason":{"type":"string","maxLength":500}},"additionalProperties":false},"Share":{"type":"object","properties":{"id":{"type":"string","format":"uuid"},"engagementId":{"type":"string","format":"uuid"},"resourceId":{"type":"string","format":"uuid"},"sharedAt":{"type":"string"}},"required":["id","engagementId","resourceId","sharedAt"]},"ShareResource":{"type":"object","properties":{"resourceId":{"type":"string","format":"uuid"}},"required":["resourceId"],"additionalProperties":false},"SharedProjection":{"type":"object","properties":{"id":{"type":"string","format":"uuid"},"type":{"type":"string"},"name":{"type":"string"},"attributes":{"type":"object","additionalProperties":{}},"status":{"type":"string"}},"required":["id","type","name","attributes","status"],"additionalProperties":false},"ReceivedMaterial":{"type":"object","properties":{"id":{"type":"string","format":"uuid"},"kind":{"type":"string"},"payload":{"type":"object","additionalProperties":{}},"fromOrgId":{"type":"string","format":"uuid"},"engagementId":{"type":["string","null"],"format":"uuid"},"relatedResourceId":{"type":["string","null"],"format":"uuid"},"receivedAt":{"type":"string"}},"required":["id","kind","payload","fromOrgId","engagementId","relatedResourceId","receivedAt"]},"ReturnMaterial":{"type":"object","properties":{"kind":{"type":"string","minLength":1,"maxLength":60,"description":"A slug naming what this is, e.g. `report`.","example":"report"},"payload":{"type":"object","additionalProperties":{}},"relatedResourceId":{"type":"string","format":"uuid"}},"required":["kind","payload"],"additionalProperties":false},"ErasureRequestDetail":{"type":"object","properties":{"request":{"$ref":"#/components/schemas/ErasureRequest"},"subject":{"type":"object","properties":{"type":{"type":"string"},"id":{"type":"string","format":"uuid"},"display":{"type":"string"}},"required":["type","id","display"]},"tombstonedResources":{"type":"array","items":{"type":"object","properties":{"id":{"type":"string","format":"uuid"},"name":{"type":"string"}},"required":["id","name"]}}},"required":["request","subject","tombstonedResources"]},"ErasureRequest":{"type":"object","properties":{"id":{"type":"string","format":"uuid"},"organisationId":{"type":"string","format":"uuid"},"subjectType":{"type":"string"},"subjectId":{"type":"string","format":"uuid"},"requestedVia":{"type":"string"},"requestedAt":{"type":"string"},"responseDueAt":{"type":"string"},"status":{"type":"string","enum":["received","under_review","actioned","refused"]},"decision":{"type":["string","null"]},"lawfulBasisForRetention":{"type":["string","null"]},"actionedAt":{"type":["string","null"]},"createdAt":{"type":"string"}},"required":["id","organisationId","subjectType","subjectId","requestedVia","requestedAt","responseDueAt","status","decision","lawfulBasisForRetention","actionedAt","createdAt"]},"NewErasureRequest":{"type":"object","properties":{"subjectType":{"type":"string","enum":["identity","resource"]},"subjectId":{"type":"string","format":"uuid"},"requestedVia":{"type":"string","enum":["in_app","email","post","other"]},"requestedAt":{"type":"string","format":"date-time"}},"required":["subjectType","subjectId","requestedVia"],"additionalProperties":false},"ReviewErasureRequest":{"type":"object","properties":{"decision":{"type":"string","maxLength":2000}},"additionalProperties":false},"ErasureDecision":{"type":"object","properties":{"decision":{"type":"string","minLength":1,"maxLength":2000},"lawfulBasisForRetention":{"type":"string","maxLength":2000}},"required":["decision"],"additionalProperties":false},"OrganisationExport":{"type":"object","properties":{"format":{"type":"string","enum":["point-organisation-export"]},"version":{"type":"number","enum":[1]},"generatedAt":{"type":"string"},"organisationId":{"type":"string","format":"uuid"},"sections":{"type":"object","additionalProperties":{"type":"array","items":{}}}},"required":["format","version","generatedAt","organisationId","sections"]},"BackofficeOrganisation":{"type":"object","properties":{"id":{"type":"string","format":"uuid"},"slug":{"type":"string"},"name":{"type":"string"},"kind":{"type":"string"},"plan":{"type":"string"},"status":{"type":"string"},"activeMembers":{"type":"integer"},"ssoConnectionState":{"type":["string","null"]},"createdAt":{"type":"string"},"archivedAt":{"type":["string","null"]}},"required":["id","slug","name","kind","plan","status","activeMembers","ssoConnectionState","createdAt","archivedAt"],"additionalProperties":false},"BackofficeIdentity":{"type":"object","properties":{"id":{"type":"string","format":"uuid"},"email":{"type":"string"},"name":{"type":["string","null"]},"status":{"type":"string"},"activeMemberships":{"type":"integer"},"createdAt":{"type":"string"},"tombstoned":{"type":"boolean"}},"required":["id","email","name","status","activeMemberships","createdAt","tombstoned"],"additionalProperties":false},"BackofficePurgeRun":{"type":"object","properties":{"id":{"type":"string","format":"uuid"},"initiatedBy":{"type":"string"},"dryRun":{"type":"boolean"},"startedAt":{"type":"string"},"finishedAt":{"type":["string","null"]},"summary":{"type":"object","additionalProperties":{}}},"required":["id","initiatedBy","dryRun","startedAt","finishedAt","summary"],"additionalProperties":false},"PurgeRequest":{"type":"object","properties":{"dryRun":{"type":"boolean","default":true},"confirm":{"type":"string","description":"Must be exactly `purge` for a real run."}},"additionalProperties":false},"BackofficeBillingEvent":{"type":"object","properties":{"id":{"type":"string"},"provider":{"type":"string"},"type":{"type":"string"},"organisationId":{"type":["string","null"],"format":"uuid"},"receivedAt":{"type":"string"},"processedAt":{"type":["string","null"]}},"required":["id","provider","type","organisationId","receivedAt","processedAt"],"additionalProperties":false},"BackofficeRegistration":{"type":"object","properties":{"id":{"type":"string","format":"uuid"},"number":{"type":["string","null"]},"status":{"type":"string","enum":["pending_payment","active","true_up_required","refunded","lapsed","cancelled"]},"organisationId":{"type":"string","format":"uuid"},"organisationName":{"type":"string"},"billingMode":{"type":"string","enum":["self_serve","invoiced"]},"summary":{"type":"string"},"amountMinor":{"type":"integer"},"currency":{"type":"string"},"linked":{"type":"boolean"},"startsAt":{"type":["string","null"]},"paidUntil":{"type":["string","null"]},"refundedAt":{"type":["string","null"]},"createdAt":{"type":"string"},"refundableUntil":{"type":["string","null"]},"refundable":{"type":"boolean"}},"required":["id","number","status","organisationId","organisationName","billingMode","summary","amountMinor","currency","linked","startsAt","paidUntil","refundedAt","createdAt","refundableUntil","refundable"],"additionalProperties":false},"BackofficeBillingAttention":{"type":"object","properties":{"id":{"type":"string","format":"uuid"},"action":{"type":"string"},"reason":{"type":["string","null"]},"organisationId":{"type":["string","null"],"format":"uuid"},"occurredAt":{"type":"string"}},"required":["id","action","reason","organisationId","occurredAt"],"additionalProperties":false},"BillingModeRequest":{"type":"object","properties":{"mode":{"type":"string","enum":["self_serve","invoiced"]}},"required":["mode"],"additionalProperties":false},"OperatorErasureRequest":{"type":"object","properties":{"subjectType":{"type":"string","enum":["identity","resource"]},"subjectId":{"type":"string","format":"uuid"},"requestedVia":{"type":"string","enum":["in_app","email","post","other"]},"requestedAt":{"type":"string","format":"date-time"},"organisationId":{"type":"string","format":"uuid"}},"required":["subjectType","subjectId","requestedVia","organisationId"],"additionalProperties":false},"CatalogueVersion":{"type":"object","properties":{"version":{"type":"string"},"status":{"type":"string","enum":["draft","signed"]},"startedFrom":{"type":["string","null"]},"madeBy":{"type":["string","null"]},"madeAt":{"type":"string"},"signedBy":{"type":["string","null"]},"signedAt":{"type":["string","null"]},"fingerprint":{"type":["string","null"]},"listedInCode":{"type":"boolean"},"held":{"type":"boolean"},"refused":{"type":["string","null"]},"counts":{"type":"object","properties":{"questions":{"type":"integer"},"answers":{"type":"integer"},"findings":{"type":"integer"},"requirements":{"type":"integer"},"preparations":{"type":"integer"},"responses":{"type":"integer"},"words":{"type":"integer"}},"required":["questions","answers","findings","requirements","preparations","responses","words"]}},"required":["version","status","startedFrom","madeBy","madeAt","signedBy","signedAt","fingerprint","listedInCode","held","refused","counts"],"additionalProperties":false},"CatalogueOutline":{"type":"object","properties":{"version":{"type":"string"},"domains":{"type":"array","items":{"type":"object","properties":{"id":{"type":"string"},"words":{"type":"array","items":{"type":"object","properties":{"row":{"type":"integer"},"field":{"type":"string"},"voice":{"type":"string"},"words":{"type":"string"},"status":{"type":"string"},"editable":{"type":"boolean"}},"required":["row","field","voice","words","status","editable"]}}},"required":["id","words"]}},"sections":{"type":"array","items":{"type":"object","properties":{"id":{"type":"string"},"domain":{"type":["string","null"]},"title":{"type":["string","null"]}},"required":["id","domain","title"]}},"section":{"type":["object","null"],"properties":{"id":{"type":"string"},"words":{"type":"array","items":{"type":"object","properties":{"row":{"type":"integer"},"field":{"type":"string"},"voice":{"type":"string"},"words":{"type":"string"},"status":{"type":"string"},"editable":{"type":"boolean"}},"required":["row","field","voice","words","status","editable"]}},"gates":{"type":"array","items":{"type":"object","properties":{"id":{"type":"string"},"words":{"type":"array","items":{"type":"object","properties":{"row":{"type":"integer"},"field":{"type":"string"},"voice":{"type":"string"},"words":{"type":"string"},"status":{"type":"string"},"editable":{"type":"boolean"}},"required":["row","field","voice","words","status","editable"]}}},"required":["id","words"]}},"questions":{"type":"array","items":{"type":"object","properties":{"id":{"type":"string"},"words":{"type":"array","items":{"type":"object","properties":{"row":{"type":"integer"},"field":{"type":"string"},"voice":{"type":"string"},"words":{"type":"string"},"status":{"type":"string"},"editable":{"type":"boolean"}},"required":["row","field","voice","words","status","editable"]}},"assessorOnly":{"type":"boolean"},"answers":{"type":"array","items":{"type":"object","properties":{"id":{"type":"string"},"words":{"type":"array","items":{"type":"object","properties":{"row":{"type":"integer"},"field":{"type":"string"},"voice":{"type":"string"},"words":{"type":"string"},"status":{"type":"string"},"editable":{"type":"boolean"}},"required":["row","field","voice","words","status","editable"]}},"marks":{"type":"array","items":{"type":"string","enum":["no_need","reassuring","declined","not_seen"]}},"findings":{"type":"array","items":{"type":"string"}}},"required":["id","words","marks","findings"]}}},"required":["id","words","assessorOnly","answers"]}},"findings":{"type":"array","items":{"type":"object","properties":{"id":{"type":"string"},"words":{"type":"array","items":{"type":"object","properties":{"row":{"type":"integer"},"field":{"type":"string"},"voice":{"type":"string"},"words":{"type":"string"},"status":{"type":"string"},"editable":{"type":"boolean"}},"required":["row","field","voice","words","status","editable"]}},"requirements":{"type":"array","items":{"type":"string"}}},"required":["id","words","requirements"]}},"requirements":{"type":"array","items":{"type":"object","properties":{"id":{"type":"string"},"words":{"type":"array","items":{"type":"object","properties":{"row":{"type":"integer"},"field":{"type":"string"},"voice":{"type":"string"},"words":{"type":"string"},"status":{"type":"string"},"editable":{"type":"boolean"}},"required":["row","field","voice","words","status","editable"]}},"stage":{"type":"string"},"stageTitle":{"type":["string","null"]},"preparations":{"type":"array","items":{"type":"object","properties":{"id":{"type":"string"},"words":{"type":"array","items":{"type":"object","properties":{"row":{"type":"integer"},"field":{"type":"string"},"voice":{"type":"string"},"words":{"type":"string"},"status":{"type":"string"},"editable":{"type":"boolean"}},"required":["row","field","voice","words","status","editable"]}},"verb":{"type":"string"},"kinds":{"type":"array","items":{"type":"string"}}},"required":["id","words","verb","kinds"]}},"responses":{"type":"array","items":{"type":"object","properties":{"id":{"type":"string"},"words":{"type":"array","items":{"type":"object","properties":{"row":{"type":"integer"},"field":{"type":"string"},"voice":{"type":"string"},"words":{"type":"string"},"status":{"type":"string"},"editable":{"type":"boolean"}},"required":["row","field","voice","words","status","editable"]}},"kinds":{"type":"array","items":{"type":"string"}}},"required":["id","words","kinds"]}}},"required":["id","words","stage","stageTitle","preparations","responses"]}},"kinds":{"type":"array","items":{"type":"object","properties":{"id":{"type":"string"},"words":{"type":"array","items":{"type":"object","properties":{"row":{"type":"integer"},"field":{"type":"string"},"voice":{"type":"string"},"words":{"type":"string"},"status":{"type":"string"},"editable":{"type":"boolean"}},"required":["row","field","voice","words","status","editable"]}}},"required":["id","words"]}}},"required":["id","words","gates","questions","findings","requirements","kinds"]}},"required":["version","domains","sections","section"]},"CatalogueChecks":{"type":"object","properties":{"version":{"type":"string"},"startedFrom":{"type":["string","null"]},"problems":{"type":"array","items":{"type":"object","properties":{"code":{"type":"string"},"table":{"type":"string"},"key":{"type":"string"},"column":{"type":"string"},"value":{"type":"string"}},"required":["code","table","key"]}},"counts":{"type":"object","additionalProperties":{"type":"object","properties":{"now":{"type":"integer"},"before":{"type":"integer"}},"required":["now","before"]}}},"required":["version","startedFrom","problems","counts"]},"CatalogueWordingMade":{"type":"object","properties":{"version":{"type":"string"},"startedFrom":{"type":"string"},"changes":{"type":"array","items":{"type":"object","properties":{"row":{"type":"integer"},"table":{"type":"string"},"id":{"type":"string"},"field":{"type":"string"},"voice":{"type":"string"},"before":{"type":"string"},"after":{"type":"string"}},"required":["row","table","id","field","voice","before","after"]}},"checks":{"$ref":"#/components/schemas/CatalogueChecks"}},"required":["version","startedFrom","changes","checks"]},"CatalogueWordingRequest":{"type":"object","properties":{"changes":{"type":"array","items":{"anyOf":[{"type":"object","properties":{"row":{"type":"integer","exclusiveMinimum":0},"words":{"type":"string","maxLength":4000}},"required":["row","words"],"additionalProperties":false},{"type":"object","properties":{"table":{"type":"string","maxLength":40},"id":{"type":"string","maxLength":200},"field":{"type":"string","maxLength":80},"voice":{"type":"string","maxLength":40},"words":{"type":"string","maxLength":4000}},"required":["table","id","field","voice","words"],"additionalProperties":false}]},"minItems":1,"maxItems":500}},"required":["changes"],"additionalProperties":false},"CatalogueSigned":{"type":"object","properties":{"version":{"type":"string"},"fingerprint":{"type":"string"},"listedInCode":{"type":"boolean"},"held":{"type":"boolean"}},"required":["version","fingerprint","listedInCode","held"]},"CatalogueSignRequest":{"type":"object","properties":{"confirm":{"type":"string","maxLength":20,"description":"The version, typed again."}},"required":["confirm"],"additionalProperties":false},"TunnelAnswer":{"type":"object","properties":{"kind":{"type":"string"},"v":{"type":"integer"},"re":{"type":"string"},"data":{"type":"object","additionalProperties":{}}},"required":["kind","v","re","data"]}},"parameters":{}},"paths":{"/health":{"get":{"tags":["system"],"summary":"Service health","responses":{"200":{"description":"Postgres is reachable and the assessments can ask.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Health"}}}},"503":{"description":"Postgres is unreachable (`db_unreachable`); or the assessments cannot ask (`assessment_not_ready`, what is refused in `details`); or no RCO catalogue is held (`rco_catalogue_not_ready`).","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorEnvelope"}}}}}}},"/me":{"get":{"tags":["me"],"summary":"The signed-in identity, its preferences and current organisation","security":[{"bearerAuth":[]}],"responses":{"200":{"description":"The identity.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Me"}}}},"401":{"description":"Missing or invalid access token (`unauthenticated`).","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorEnvelope"}}}},"404":{"description":"Identity not found.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorEnvelope"}}}}}}},"/me/preferences":{"patch":{"tags":["me"],"summary":"Merge preference changes (spec/34)","security":[{"bearerAuth":[]}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/PreferencesPatch"}}}},"responses":{"200":{"description":"The merged preferences.","content":{"application/json":{"schema":{"type":"object","properties":{"preferences":{"$ref":"#/components/schemas/Preferences"}},"required":["preferences"]}}}},"401":{"description":"Missing or invalid access token (`unauthenticated`).","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorEnvelope"}}}},"422":{"description":"Invalid preferences.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorEnvelope"}}}}}}},"/me/organisations":{"get":{"tags":["me"],"summary":"The identity’s memberships, from Better Auth’s member rows","security":[{"bearerAuth":[]}],"responses":{"200":{"description":"Memberships.","content":{"application/json":{"schema":{"type":"object","properties":{"items":{"type":"array","items":{"$ref":"#/components/schemas/MyOrganisation"}}},"required":["items"]}}}},"401":{"description":"Missing or invalid access token (`unauthenticated`).","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorEnvelope"}}}}}}},"/me/audit":{"get":{"tags":["me"],"summary":"The identity-scoped audit trail, newest first","security":[{"bearerAuth":[]}],"parameters":[{"schema":{"type":"string"},"required":false,"name":"cursor","in":"query"},{"schema":{"type":"integer","minimum":1,"maximum":200,"default":50},"required":false,"name":"limit","in":"query"}],"responses":{"200":{"description":"A page of audit entries.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/AuditPage"}}}},"401":{"description":"Missing or invalid access token (`unauthenticated`).","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorEnvelope"}}}},"422":{"description":"Invalid cursor.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorEnvelope"}}}}}}},"/me/sessions":{"get":{"tags":["me"],"summary":"Recent sign-ins: when, how, from which IP address and device","security":[{"bearerAuth":[]}],"responses":{"200":{"description":"Sessions, newest first.","content":{"application/json":{"schema":{"type":"object","properties":{"items":{"type":"array","items":{"$ref":"#/components/schemas/IdentitySession"}}},"required":["items"]}}}},"401":{"description":"Missing or invalid access token (`unauthenticated`).","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorEnvelope"}}}}}}},"/organisations/current":{"get":{"tags":["organisation"],"summary":"The current organisation with the caller’s role and permissions","security":[{"bearerAuth":[]}],"responses":{"200":{"description":"The organisation.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/OrganisationWithAccess"}}}},"401":{"description":"Missing or invalid access token (`unauthenticated`).","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorEnvelope"}}}},"403":{"description":"No organisation in the token (`no_organisation_context`), or not permitted (`forbidden`).","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorEnvelope"}}}},"404":{"description":"Not found, or not visible to the caller.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorEnvelope"}}}},"422":{"description":"Invalid request.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorEnvelope"}}}}}}},"/organisations/current/profile":{"patch":{"tags":["organisation"],"summary":"Who the organisation is: its company number, registered office and office address; onboarding finished (spec 73 §3.6)","security":[{"bearerAuth":[]}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ProfilePatch"}}}},"responses":{"200":{"description":"The organisation.","content":{"application/json":{"schema":{"type":"object","properties":{"organisation":{"$ref":"#/components/schemas/Organisation"}},"required":["organisation"]}}}},"401":{"description":"Missing or invalid access token (`unauthenticated`).","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorEnvelope"}}}},"403":{"description":"No organisation in the token (`no_organisation_context`), or not permitted (`forbidden`).","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorEnvelope"}}}},"404":{"description":"Not found, or not visible to the caller.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorEnvelope"}}}},"422":{"description":"Invalid request.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorEnvelope"}}}}}}},"/organisations/current/security":{"patch":{"tags":["organisation"],"summary":"Security settings (require MFA: stored, not yet enforced)","security":[{"bearerAuth":[]}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/SecurityPatch"}}}},"responses":{"200":{"description":"The organisation.","content":{"application/json":{"schema":{"type":"object","properties":{"organisation":{"$ref":"#/components/schemas/Organisation"}},"required":["organisation"]}}}},"401":{"description":"Missing or invalid access token (`unauthenticated`).","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorEnvelope"}}}},"403":{"description":"No organisation in the token (`no_organisation_context`), or not permitted (`forbidden`).","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorEnvelope"}}}},"404":{"description":"Not found, or not visible to the caller.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorEnvelope"}}}},"422":{"description":"Invalid request.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorEnvelope"}}}}}}},"/organisations/current/sso":{"get":{"tags":["organisation"],"summary":"The organisation’s SSO connections: provider, domain, whether the domain is proved","security":[{"bearerAuth":[]}],"responses":{"200":{"description":"Connections.","content":{"application/json":{"schema":{"type":"object","properties":{"items":{"type":"array","items":{"$ref":"#/components/schemas/SsoConnection"}}},"required":["items"]}}}},"401":{"description":"Missing or invalid access token (`unauthenticated`).","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorEnvelope"}}}},"403":{"description":"No organisation in the token (`no_organisation_context`), or not permitted (`forbidden`).","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorEnvelope"}}}},"404":{"description":"Not found, or not visible to the caller.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorEnvelope"}}}},"422":{"description":"Invalid request.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorEnvelope"}}}}}}},"/organisations/current/archive":{"post":{"tags":["organisation"],"summary":"Archive the organisation (owner; recent sign-in required)","security":[{"bearerAuth":[]}],"requestBody":{"required":false,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ArchiveRequest"}}}},"responses":{"200":{"description":"The archived organisation.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Organisation"}}}},"401":{"description":"Missing or invalid access token (`unauthenticated`).","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorEnvelope"}}}},"403":{"description":"No organisation in the token (`no_organisation_context`), or not permitted (`forbidden`).","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorEnvelope"}}}},"404":{"description":"Not found, or not visible to the caller.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorEnvelope"}}}},"422":{"description":"Invalid request.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorEnvelope"}}}}}}},"/organisations/current/restore":{"post":{"tags":["organisation"],"summary":"Restore an archived organisation (owner)","security":[{"bearerAuth":[]}],"responses":{"200":{"description":"The restored organisation.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Organisation"}}}},"401":{"description":"Missing or invalid access token (`unauthenticated`).","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorEnvelope"}}}},"403":{"description":"No organisation in the token (`no_organisation_context`), or not permitted (`forbidden`).","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorEnvelope"}}}},"404":{"description":"Not found, or not visible to the caller.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorEnvelope"}}}},"422":{"description":"Invalid request.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorEnvelope"}}}}}}},"/lookups/companies":{"get":{"tags":["lookups"],"summary":"Search Companies House by name or number (spec 73 §3.6)","security":[{"bearerAuth":[]}],"parameters":[{"schema":{"type":"string","minLength":2,"maxLength":100,"description":"What was typed: a name, a number, an address or a postcode."},"required":true,"description":"What was typed: a name, a number, an address or a postcode.","name":"q","in":"query"}],"responses":{"200":{"description":"The companies found, the closest first.","content":{"application/json":{"schema":{"type":"object","properties":{"items":{"type":"array","items":{"$ref":"#/components/schemas/CompanyMatch"}}},"required":["items"]}}}},"401":{"description":"Missing or invalid access token (`unauthenticated`).","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorEnvelope"}}}},"422":{"description":"Invalid request: a search is two to a hundred characters.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorEnvelope"}}}},"429":{"description":"`rate_limited`: too many searches by this person in ten minutes.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorEnvelope"}}}},"501":{"description":"`lookup_not_configured`: the lookup has no key on this server.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorEnvelope"}}}},"502":{"description":"`lookup_unavailable`: the service did not answer.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorEnvelope"}}}}}}},"/lookups/addresses":{"get":{"tags":["lookups"],"summary":"Search Ordnance Survey for an address or a postcode (spec 73 §3.6)","security":[{"bearerAuth":[]}],"parameters":[{"schema":{"type":"string","minLength":2,"maxLength":100,"description":"What was typed: a name, a number, an address or a postcode."},"required":true,"description":"What was typed: a name, a number, an address or a postcode.","name":"q","in":"query"}],"responses":{"200":{"description":"The addresses found.","content":{"application/json":{"schema":{"type":"object","properties":{"items":{"type":"array","items":{"$ref":"#/components/schemas/AddressMatch"}}},"required":["items"]}}}},"401":{"description":"Missing or invalid access token (`unauthenticated`).","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorEnvelope"}}}},"422":{"description":"Invalid request: a search is two to a hundred characters.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorEnvelope"}}}},"429":{"description":"`rate_limited`: too many searches by this person in ten minutes.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorEnvelope"}}}},"501":{"description":"`lookup_not_configured`: the lookup has no key on this server.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorEnvelope"}}}},"502":{"description":"`lookup_unavailable`: the service did not answer.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorEnvelope"}}}}}}},"/lookups/premises":{"get":{"tags":["lookups"],"summary":"Search Ordnance Survey for a place, with the addresses inside it (spec 73 §4.1)","security":[{"bearerAuth":[]}],"parameters":[{"schema":{"type":"string","minLength":2,"maxLength":100,"description":"What was typed: a name, a number, an address or a postcode."},"required":true,"description":"What was typed: a name, a number, an address or a postcode.","name":"q","in":"query"}],"responses":{"200":{"description":"The places found, each with how many addresses it holds.","content":{"application/json":{"schema":{"type":"object","properties":{"items":{"type":"array","items":{"$ref":"#/components/schemas/PremisesMatch"}}},"required":["items"]}}}},"401":{"description":"Missing or invalid access token (`unauthenticated`).","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorEnvelope"}}}},"422":{"description":"Invalid request: a search is two to a hundred characters.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorEnvelope"}}}},"429":{"description":"`rate_limited`: too many searches by this person in ten minutes.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorEnvelope"}}}},"501":{"description":"`lookup_not_configured`: the lookup has no key on this server.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorEnvelope"}}}},"502":{"description":"`lookup_unavailable`: the service did not answer.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorEnvelope"}}}}}}},"/organisations/current/members":{"get":{"tags":["members"],"summary":"The members, with their names and roles","security":[{"bearerAuth":[]}],"responses":{"200":{"description":"Members.","content":{"application/json":{"schema":{"type":"object","properties":{"items":{"type":"array","items":{"$ref":"#/components/schemas/Member"}}},"required":["items"]}}}},"401":{"description":"Missing or invalid access token (`unauthenticated`).","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorEnvelope"}}}},"403":{"description":"No organisation in the token (`no_organisation_context`), or not permitted (`forbidden`).","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorEnvelope"}}}},"404":{"description":"Not found, or not visible to the caller.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorEnvelope"}}}},"422":{"description":"Invalid request.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorEnvelope"}}}}}}},"/organisations/current/invitations":{"get":{"tags":["invitations"],"summary":"Pending invitations with inviter and expiry","security":[{"bearerAuth":[]}],"responses":{"200":{"description":"Pending invitations.","content":{"application/json":{"schema":{"type":"object","properties":{"items":{"type":"array","items":{"$ref":"#/components/schemas/PendingInvitation"}}},"required":["items"]}}}},"401":{"description":"Missing or invalid access token (`unauthenticated`).","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorEnvelope"}}}},"403":{"description":"No organisation in the token (`no_organisation_context`), or not permitted (`forbidden`).","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorEnvelope"}}}},"404":{"description":"Not found, or not visible to the caller.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorEnvelope"}}}},"422":{"description":"Invalid request.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorEnvelope"}}}}}}},"/organisations/current/teams":{"get":{"tags":["teams"],"summary":"Teams with member counts; `include=archived` adds archived teams","security":[{"bearerAuth":[]}],"parameters":[{"schema":{"type":"string","enum":["archived"]},"required":false,"name":"include","in":"query"}],"responses":{"200":{"description":"Teams.","content":{"application/json":{"schema":{"type":"object","properties":{"items":{"type":"array","items":{"$ref":"#/components/schemas/TeamSummary"}}},"required":["items"]}}}},"401":{"description":"Missing or invalid access token (`unauthenticated`).","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorEnvelope"}}}},"403":{"description":"No organisation in the token (`no_organisation_context`), or not permitted (`forbidden`).","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorEnvelope"}}}},"404":{"description":"Not found, or not visible to the caller.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorEnvelope"}}}},"422":{"description":"Invalid request.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorEnvelope"}}}}}},"post":{"tags":["teams"],"summary":"Create a team; the creator joins as lead","security":[{"bearerAuth":[]}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/CreateTeam"}}}},"responses":{"201":{"description":"The team.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Team"}}}},"401":{"description":"Missing or invalid access token (`unauthenticated`).","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorEnvelope"}}}},"403":{"description":"No organisation in the token (`no_organisation_context`), or not permitted (`forbidden`).","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorEnvelope"}}}},"404":{"description":"Not found, or not visible to the caller.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorEnvelope"}}}},"409":{"description":"`team_name_taken`.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorEnvelope"}}}},"422":{"description":"Invalid request.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorEnvelope"}}}}}}},"/organisations/current/teams/{teamId}":{"get":{"tags":["teams"],"summary":"A team; its members are listed for those who can manage it","security":[{"bearerAuth":[]}],"parameters":[{"schema":{"type":"string","format":"uuid"},"required":true,"name":"teamId","in":"path"}],"responses":{"200":{"description":"The team.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/TeamDetail"}}}},"401":{"description":"Missing or invalid access token (`unauthenticated`).","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorEnvelope"}}}},"403":{"description":"No organisation in the token (`no_organisation_context`), or not permitted (`forbidden`).","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorEnvelope"}}}},"404":{"description":"Not found, or not visible to the caller.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorEnvelope"}}}},"422":{"description":"Invalid request.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorEnvelope"}}}}}},"patch":{"tags":["teams"],"summary":"Rename or describe a team (teams:manage or its lead)","security":[{"bearerAuth":[]}],"parameters":[{"schema":{"type":"string","format":"uuid"},"required":true,"name":"teamId","in":"path"}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/TeamPatch"}}}},"responses":{"200":{"description":"The team.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Team"}}}},"401":{"description":"Missing or invalid access token (`unauthenticated`).","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorEnvelope"}}}},"403":{"description":"No organisation in the token (`no_organisation_context`), or not permitted (`forbidden`).","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorEnvelope"}}}},"404":{"description":"Not found, or not visible to the caller.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorEnvelope"}}}},"409":{"description":"`team_name_taken` or `team_archived`.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorEnvelope"}}}},"422":{"description":"Invalid request.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorEnvelope"}}}}}}},"/organisations/current/teams/{teamId}/archive":{"post":{"tags":["teams"],"summary":"Archive a team (its grants stay but are ignored)","security":[{"bearerAuth":[]}],"parameters":[{"schema":{"type":"string","format":"uuid"},"required":true,"name":"teamId","in":"path"}],"responses":{"200":{"description":"The team.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Team"}}}},"401":{"description":"Missing or invalid access token (`unauthenticated`).","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorEnvelope"}}}},"403":{"description":"No organisation in the token (`no_organisation_context`), or not permitted (`forbidden`).","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorEnvelope"}}}},"404":{"description":"Not found, or not visible to the caller.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorEnvelope"}}}},"422":{"description":"Invalid request.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorEnvelope"}}}}}}},"/organisations/current/teams/{teamId}/restore":{"post":{"tags":["teams"],"summary":"Restore an archived team","security":[{"bearerAuth":[]}],"parameters":[{"schema":{"type":"string","format":"uuid"},"required":true,"name":"teamId","in":"path"}],"responses":{"200":{"description":"The team.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Team"}}}},"401":{"description":"Missing or invalid access token (`unauthenticated`).","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorEnvelope"}}}},"403":{"description":"No organisation in the token (`no_organisation_context`), or not permitted (`forbidden`).","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorEnvelope"}}}},"404":{"description":"Not found, or not visible to the caller.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorEnvelope"}}}},"409":{"description":"`team_name_taken`.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorEnvelope"}}}},"422":{"description":"Invalid request.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorEnvelope"}}}}}}},"/organisations/current/teams/{teamId}/members":{"post":{"tags":["teams"],"summary":"Add an active member of the organisation to the team","security":[{"bearerAuth":[]}],"parameters":[{"schema":{"type":"string","format":"uuid"},"required":true,"name":"teamId","in":"path"}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/AddTeamMember"}}}},"responses":{"201":{"description":"The team membership.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/TeamMembership"}}}},"401":{"description":"Missing or invalid access token (`unauthenticated`).","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorEnvelope"}}}},"403":{"description":"No organisation in the token (`no_organisation_context`), or not permitted (`forbidden`).","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorEnvelope"}}}},"404":{"description":"Not found, or not visible to the caller.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorEnvelope"}}}},"409":{"description":"`already_team_member` or `team_archived`.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorEnvelope"}}}},"422":{"description":"Invalid request.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorEnvelope"}}}}}}},"/organisations/current/teams/{teamId}/members/{identityId}":{"patch":{"tags":["teams"],"summary":"Change a team member’s role; a team keeps at least one lead","security":[{"bearerAuth":[]}],"parameters":[{"schema":{"type":"string","format":"uuid"},"required":true,"name":"teamId","in":"path"},{"schema":{"type":"string","format":"uuid"},"required":true,"name":"identityId","in":"path"}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/TeamRoleChange"}}}},"responses":{"200":{"description":"The team membership.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/TeamMembership"}}}},"401":{"description":"Missing or invalid access token (`unauthenticated`).","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorEnvelope"}}}},"403":{"description":"No organisation in the token (`no_organisation_context`), or not permitted (`forbidden`).","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorEnvelope"}}}},"404":{"description":"Not found, or not visible to the caller.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorEnvelope"}}}},"409":{"description":"`last_lead`.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorEnvelope"}}}},"422":{"description":"Invalid request.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorEnvelope"}}}}}},"delete":{"tags":["teams"],"summary":"Remove someone from the team (archives the row)","security":[{"bearerAuth":[]}],"parameters":[{"schema":{"type":"string","format":"uuid"},"required":true,"name":"teamId","in":"path"},{"schema":{"type":"string","format":"uuid"},"required":true,"name":"identityId","in":"path"}],"responses":{"200":{"description":"The archived team membership.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/TeamMembership"}}}},"401":{"description":"Missing or invalid access token (`unauthenticated`).","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorEnvelope"}}}},"403":{"description":"No organisation in the token (`no_organisation_context`), or not permitted (`forbidden`).","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorEnvelope"}}}},"404":{"description":"Not found, or not visible to the caller.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorEnvelope"}}}},"409":{"description":"`last_lead`.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorEnvelope"}}}},"422":{"description":"Invalid request.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorEnvelope"}}}}}}},"/organisations/current/resources":{"get":{"tags":["resources"],"summary":"Resources you can read, newest name first; `include=archived` adds archived ones","security":[{"bearerAuth":[]}],"parameters":[{"schema":{"type":"string","maxLength":60},"required":false,"name":"type","in":"query"},{"schema":{"type":"string","maxLength":200},"required":false,"name":"q","in":"query"},{"schema":{"type":"string"},"required":false,"name":"cursor","in":"query"},{"schema":{"type":"string","enum":["archived"]},"required":false,"name":"include","in":"query"},{"schema":{"type":"string","format":"uuid"},"required":false,"name":"parent","in":"query"},{"schema":{"type":"integer","minimum":1,"maximum":200,"default":50},"required":false,"name":"limit","in":"query"}],"responses":{"200":{"description":"A page of resources.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ResourcePage"}}}},"401":{"description":"Missing or invalid access token (`unauthenticated`).","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorEnvelope"}}}},"403":{"description":"No organisation in the token (`no_organisation_context`), or not permitted (`forbidden`).","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorEnvelope"}}}},"404":{"description":"Not found, or not visible to the caller.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorEnvelope"}}}},"422":{"description":"Invalid request.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorEnvelope"}}}}}},"post":{"tags":["resources"],"summary":"Create a resource; the creator gets a manager grant","security":[{"bearerAuth":[]}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/CreateResource"}}}},"responses":{"201":{"description":"The resource.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Resource"}}}},"401":{"description":"Missing or invalid access token (`unauthenticated`).","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorEnvelope"}}}},"403":{"description":"No organisation in the token (`no_organisation_context`), or not permitted (`forbidden`).","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorEnvelope"}}}},"404":{"description":"Not found, or not visible to the caller.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorEnvelope"}}}},"409":{"description":"`registration_already_linked` or `registration_not_linkable`.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorEnvelope"}}}},"422":{"description":"Invalid body, `unknown_resource_type`, `invalid_attributes`, `cannot_contain`, `too_deep`, `registration_not_found`, `registration_wrong_type` or `registration_needs_top_level`.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorEnvelope"}}}}}}},"/organisations/current/resources/{resourceId}":{"get":{"tags":["resources"],"summary":"A resource, your level on it and how you got it","security":[{"bearerAuth":[]}],"parameters":[{"schema":{"type":"string","format":"uuid"},"required":true,"name":"resourceId","in":"path"}],"responses":{"200":{"description":"The resource.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ResourceDetail"}}}},"401":{"description":"Missing or invalid access token (`unauthenticated`).","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorEnvelope"}}}},"403":{"description":"No organisation in the token (`no_organisation_context`), or not permitted (`forbidden`).","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorEnvelope"}}}},"404":{"description":"Not found, or not visible to the caller.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorEnvelope"}}}},"422":{"description":"Invalid request.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorEnvelope"}}}}}},"patch":{"tags":["resources"],"summary":"Rename a resource or change its attributes","security":[{"bearerAuth":[]}],"parameters":[{"schema":{"type":"string","format":"uuid"},"required":true,"name":"resourceId","in":"path"}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ResourcePatch"}}}},"responses":{"200":{"description":"The resource.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Resource"}}}},"401":{"description":"Missing or invalid access token (`unauthenticated`).","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorEnvelope"}}}},"403":{"description":"No organisation in the token (`no_organisation_context`), or not permitted (`forbidden`).","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorEnvelope"}}}},"404":{"description":"Not found, or not visible to the caller.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorEnvelope"}}}},"409":{"description":"The resource is tombstoned.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorEnvelope"}}}},"422":{"description":"Invalid request.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorEnvelope"}}}}}}},"/organisations/current/resources/{resourceId}/archive":{"post":{"tags":["resources"],"summary":"Archive a resource; its grants stay but are inert","security":[{"bearerAuth":[]}],"parameters":[{"schema":{"type":"string","format":"uuid"},"required":true,"name":"resourceId","in":"path"}],"requestBody":{"required":false,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ArchiveResource"}}}},"responses":{"200":{"description":"The archived resource.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Resource"}}}},"401":{"description":"Missing or invalid access token (`unauthenticated`).","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorEnvelope"}}}},"403":{"description":"No organisation in the token (`no_organisation_context`), or not permitted (`forbidden`).","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorEnvelope"}}}},"404":{"description":"Not found, or not visible to the caller.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorEnvelope"}}}},"422":{"description":"Invalid request.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorEnvelope"}}}}}}},"/organisations/current/resources/{resourceId}/restore":{"post":{"tags":["resources"],"summary":"Restore an archived resource","security":[{"bearerAuth":[]}],"parameters":[{"schema":{"type":"string","format":"uuid"},"required":true,"name":"resourceId","in":"path"}],"responses":{"200":{"description":"The restored resource.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Resource"}}}},"401":{"description":"Missing or invalid access token (`unauthenticated`).","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorEnvelope"}}}},"403":{"description":"No organisation in the token (`no_organisation_context`), or not permitted (`forbidden`).","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorEnvelope"}}}},"404":{"description":"Not found, or not visible to the caller.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorEnvelope"}}}},"422":{"description":"Invalid request.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorEnvelope"}}}}}}},"/organisations/current/resources/{resourceId}/move":{"post":{"tags":["resources"],"summary":"Move a resource to another parent, into a folder from the top, or out of a folder to the top; `update` on it and on both sides","security":[{"bearerAuth":[]}],"parameters":[{"schema":{"type":"string","format":"uuid"},"required":true,"name":"resourceId","in":"path"}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/MoveResource"}}}},"responses":{"200":{"description":"The resource, where it now sits.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Resource"}}}},"401":{"description":"Missing or invalid access token (`unauthenticated`).","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorEnvelope"}}}},"403":{"description":"No organisation in the token (`no_organisation_context`), or not permitted (`forbidden`).","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorEnvelope"}}}},"404":{"description":"Not found, or not visible to the caller.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorEnvelope"}}}},"409":{"description":"`already_there`, `target_not_live`, `kept_where_it_is` or `tombstoned`.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorEnvelope"}}}},"422":{"description":"Invalid body, `not_nested`, `not_in_a_folder`, `cannot_contain`, `would_contain_itself` or `too_deep`.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorEnvelope"}}}}}}},"/organisations/current/resources/{resourceId}/move-preview":{"get":{"tags":["resources"],"summary":"Who would gain access if it moved there (spec 58 §9.3); `update` on it, `read` on the destination","security":[{"bearerAuth":[]}],"parameters":[{"schema":{"type":"string","format":"uuid"},"required":true,"name":"resourceId","in":"path"},{"schema":{"type":"string","format":"uuid"},"required":false,"name":"toParentId","in":"query"}],"responses":{"200":{"description":"Each person or team who would reach it there and not here, nearest grant first.","content":{"application/json":{"schema":{"type":"object","properties":{"items":{"type":"array","items":{"$ref":"#/components/schemas/MoveGain"}}},"required":["items"]}}}},"401":{"description":"Missing or invalid access token (`unauthenticated`).","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorEnvelope"}}}},"403":{"description":"No organisation in the token (`no_organisation_context`), or not permitted (`forbidden`).","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorEnvelope"}}}},"404":{"description":"Not found, or not visible to the caller.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorEnvelope"}}}},"422":{"description":"Invalid request.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorEnvelope"}}}}}}},"/organisations/current/resources/{resourceId}/tombstone":{"post":{"tags":["resources"],"summary":"Redact a resource under an erasure request (`erasure:action`); not recoverable","security":[{"bearerAuth":[]}],"parameters":[{"schema":{"type":"string","format":"uuid"},"required":true,"name":"resourceId","in":"path"}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/TombstoneResource"}}}},"responses":{"200":{"description":"The tombstoned resource.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Resource"}}}},"401":{"description":"Missing or invalid access token (`unauthenticated`).","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorEnvelope"}}}},"403":{"description":"No organisation in the token (`no_organisation_context`), or not permitted (`forbidden`).","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorEnvelope"}}}},"404":{"description":"Not found, or not visible to the caller.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorEnvelope"}}}},"409":{"description":"`not_tombstonable`, or already tombstoned.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorEnvelope"}}}},"422":{"description":"Invalid request.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorEnvelope"}}}}}}},"/organisations/current/resources/{resourceId}/grants":{"get":{"tags":["resources"],"summary":"Who can reach this resource, and how much","security":[{"bearerAuth":[]}],"parameters":[{"schema":{"type":"string","format":"uuid"},"required":true,"name":"resourceId","in":"path"}],"responses":{"200":{"description":"Grants on this resource, and those reaching it from what it sits inside, nearest first.","content":{"application/json":{"schema":{"type":"object","properties":{"items":{"type":"array","items":{"$ref":"#/components/schemas/Grant"}},"inherited":{"type":"array","items":{"$ref":"#/components/schemas/InheritedGrant"}}},"required":["items","inherited"]}}}},"401":{"description":"Missing or invalid access token (`unauthenticated`).","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorEnvelope"}}}},"403":{"description":"No organisation in the token (`no_organisation_context`), or not permitted (`forbidden`).","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorEnvelope"}}}},"404":{"description":"Not found, or not visible to the caller.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorEnvelope"}}}},"422":{"description":"Invalid request.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorEnvelope"}}}}}},"post":{"tags":["resources"],"summary":"Grant a person or team access; an existing grant has its level replaced","security":[{"bearerAuth":[]}],"parameters":[{"schema":{"type":"string","format":"uuid"},"required":true,"name":"resourceId","in":"path"}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/SetGrant"}}}},"responses":{"201":{"description":"The grant.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Grant"}}}},"401":{"description":"Missing or invalid access token (`unauthenticated`).","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorEnvelope"}}}},"403":{"description":"No organisation in the token (`no_organisation_context`), or not permitted (`forbidden`).","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorEnvelope"}}}},"404":{"description":"Not found, or not visible to the caller.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorEnvelope"}}}},"422":{"description":"`invalid_grant_subject`, `invalid_grant_level`, `invalid_grant_subject_kind` or `also_check_beside_level`.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorEnvelope"}}}}}}},"/organisations/current/resources/{resourceId}/grants/{grantId}":{"delete":{"tags":["resources"],"summary":"Revoke access (archives the grant)","security":[{"bearerAuth":[]}],"parameters":[{"schema":{"type":"string","format":"uuid"},"required":true,"name":"resourceId","in":"path"},{"schema":{"type":"string","format":"uuid"},"required":true,"name":"grantId","in":"path"}],"responses":{"200":{"description":"The revoked grant.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/RevokedGrant"}}}},"401":{"description":"Missing or invalid access token (`unauthenticated`).","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorEnvelope"}}}},"403":{"description":"No organisation in the token (`no_organisation_context`), or not permitted (`forbidden`).","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorEnvelope"}}}},"404":{"description":"Not found, or not visible to the caller.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorEnvelope"}}}},"422":{"description":"Invalid request.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorEnvelope"}}}}}}},"/organisations/current/resources/{resourceId}/versions":{"post":{"tags":["versions"],"summary":"Save a version: the whole document and the person’s words; the server works out what changed","security":[{"bearerAuth":[]}],"parameters":[{"schema":{"type":"string","format":"uuid"},"required":true,"name":"resourceId","in":"path"}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/SaveVersionBody"}}}},"responses":{"201":{"description":"The version, its trail entry, and any warnings.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/SavedVersion"}}}},"401":{"description":"Missing or invalid access token (`unauthenticated`).","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorEnvelope"}}}},"403":{"description":"No organisation in the token (`no_organisation_context`), or not permitted (`forbidden`).","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorEnvelope"}}}},"404":{"description":"Not found, or not visible to the caller.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorEnvelope"}}}},"409":{"description":"`nothing_changed`, `ratchet_regressed` (with `details.problems`), or `version_conflict`.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorEnvelope"}}}},"413":{"description":"`document_too_large`: the request is over 6 MiB.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorEnvelope"}}}},"422":{"description":"`invalid_document` or `not_publishable` (with `details.problems`), `unknown_acknowledgement` (with `details.acknowledged`), `document_too_large`, or `words_too_long`.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorEnvelope"}}}}}},"get":{"tags":["versions"],"summary":"The resource’s versions, newest first","security":[{"bearerAuth":[]}],"parameters":[{"schema":{"type":"string","format":"uuid"},"required":true,"name":"resourceId","in":"path"}],"responses":{"200":{"description":"Newest first.","content":{"application/json":{"schema":{"type":"object","properties":{"items":{"type":"array","items":{"allOf":[{"$ref":"#/components/schemas/Version"},{"type":"object","properties":{"createdBy":{"type":["object","null"],"properties":{"kind":{"type":"string"},"id":{"type":["string","null"]},"display":{"type":"string"}},"required":["kind","id","display"]}},"required":["createdBy"]}]}}},"required":["items"]}}}},"401":{"description":"Missing or invalid access token (`unauthenticated`).","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorEnvelope"}}}},"403":{"description":"No organisation in the token (`no_organisation_context`), or not permitted (`forbidden`).","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorEnvelope"}}}},"404":{"description":"Not found, or not visible to the caller.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorEnvelope"}}}},"422":{"description":"Invalid request.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorEnvelope"}}}}}}},"/organisations/current/resources/{resourceId}/versions/publish":{"post":{"tags":["versions"],"summary":"Publish: a save of the document ratcheted, its version marked published in the same transaction","security":[{"bearerAuth":[]}],"parameters":[{"schema":{"type":"string","format":"uuid"},"required":true,"name":"resourceId","in":"path"}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/SaveVersionBody"}}}},"responses":{"201":{"description":"The version, its trail entry, and any warnings.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/SavedVersion"}}}},"401":{"description":"Missing or invalid access token (`unauthenticated`).","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorEnvelope"}}}},"403":{"description":"No organisation in the token (`no_organisation_context`), or not permitted (`forbidden`).","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorEnvelope"}}}},"404":{"description":"Not found, or not visible to the caller.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorEnvelope"}}}},"409":{"description":"`nothing_changed`, `ratchet_regressed` (with `details.problems`), or `version_conflict`.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorEnvelope"}}}},"413":{"description":"`document_too_large`: the request is over 6 MiB.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorEnvelope"}}}},"422":{"description":"`invalid_document` or `not_publishable` (with `details.problems`), `unknown_acknowledgement` (with `details.acknowledged`), `document_too_large`, or `words_too_long`.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorEnvelope"}}}}}}},"/organisations/current/resources/{resourceId}/trail":{"get":{"tags":["versions"],"summary":"The resource’s trail, oldest first: what each save changed, and who made it, named now","security":[{"bearerAuth":[]}],"parameters":[{"schema":{"type":"string","format":"uuid"},"required":true,"name":"resourceId","in":"path"}],"responses":{"200":{"description":"Oldest first.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Trail"}}}},"401":{"description":"Missing or invalid access token (`unauthenticated`).","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorEnvelope"}}}},"403":{"description":"No organisation in the token (`no_organisation_context`), or not permitted (`forbidden`).","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorEnvelope"}}}},"404":{"description":"Not found, or not visible to the caller.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorEnvelope"}}}},"422":{"description":"Invalid request.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorEnvelope"}}}}}}},"/organisations/current/resources/{resourceId}/versions/{version}/record":{"get":{"tags":["versions"],"summary":"The version’s record: the audit rows carrying its hash beside its trail entries (M8), and every version with that content","security":[{"bearerAuth":[]}],"parameters":[{"schema":{"type":"string","format":"uuid"},"required":true,"name":"resourceId","in":"path"},{"schema":{"type":"string","pattern":"^(latest|published|[1-9][0-9]{0,8})$","description":"A version number, `latest`, or `published` (the newest published)."},"required":true,"description":"A version number, `latest`, or `published` (the newest published).","name":"version","in":"path"}],"responses":{"200":{"description":"Both halves, joined on the hash and scoped to this resource.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/VersionRecord"}}}},"401":{"description":"Missing or invalid access token (`unauthenticated`).","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorEnvelope"}}}},"403":{"description":"No organisation in the token (`no_organisation_context`), or not permitted (`forbidden`).","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorEnvelope"}}}},"404":{"description":"Not found, or not visible to the caller.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorEnvelope"}}}},"422":{"description":"Invalid request.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorEnvelope"}}}}}}},"/organisations/current/resources/{resourceId}/versions/{version}":{"get":{"tags":["versions"],"summary":"A version’s document, byte for byte as it was saved and hashed","security":[{"bearerAuth":[]}],"parameters":[{"schema":{"type":"string","format":"uuid"},"required":true,"name":"resourceId","in":"path"},{"schema":{"type":"string","pattern":"^(latest|published|[1-9][0-9]{0,8})$","description":"A version number, `latest`, or `published` (the newest published)."},"required":true,"description":"A version number, `latest`, or `published` (the newest published).","name":"version","in":"path"}],"responses":{"200":{"description":"The canonical bytes; `ETag` and `X-Content-SHA256` carry their hash.","content":{"application/json":{"schema":{}}}},"401":{"description":"Missing or invalid access token (`unauthenticated`).","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorEnvelope"}}}},"403":{"description":"No organisation in the token (`no_organisation_context`), or not permitted (`forbidden`).","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorEnvelope"}}}},"404":{"description":"Not found, or not visible to the caller.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorEnvelope"}}}},"422":{"description":"Invalid request.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorEnvelope"}}}}}}},"/organisations/current/resources/{resourceId}/versions/{version}/render":{"get":{"tags":["versions"],"summary":"The version drawn, as SVG, under a policy that lets it do nothing but draw","security":[{"bearerAuth":[]}],"parameters":[{"schema":{"type":"string","format":"uuid"},"required":true,"name":"resourceId","in":"path"},{"schema":{"type":"string","pattern":"^(latest|published|[1-9][0-9]{0,8})$","description":"A version number, `latest`, or `published` (the newest published)."},"required":true,"description":"A version number, `latest`, or `published` (the newest published).","name":"version","in":"path"},{"schema":{"type":"string","pattern":"^[a-z][a-z0-9_-]{0,31}(:[a-z0-9_-]{1,32})?$","description":"Another drawing of the version, in its type’s own words; the type answers 404 for one it has not got."},"required":false,"description":"Another drawing of the version, in its type’s own words; the type answers 404 for one it has not got.","name":"view","in":"query"}],"responses":{"200":{"description":"An SVG. Show it as an image, never inline.","content":{"image/svg+xml":{"schema":{"type":"string"}}}},"401":{"description":"Missing or invalid access token (`unauthenticated`).","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorEnvelope"}}}},"403":{"description":"No organisation in the token (`no_organisation_context`), or not permitted (`forbidden`).","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorEnvelope"}}}},"404":{"description":"Not found, or not visible to the caller.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorEnvelope"}}}},"422":{"description":"Invalid request.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorEnvelope"}}}}}}},"/organisations/current/resources/{resourceId}/lookup":{"get":{"tags":["versions"],"summary":"Ask a service outside something while drawing the resource; the type decides what may be asked and adds what the service needs","security":[{"bearerAuth":[]}],"parameters":[{"schema":{"type":"string","format":"uuid"},"required":true,"name":"resourceId","in":"path"},{"schema":{"type":"string","maxLength":2048,"description":"The path asked for, from its first `/`, with its query."},"required":false,"description":"The path asked for, from its first `/`, with its query.","name":"path","in":"query"}],"responses":{"200":{"description":"What the service answered, as it answered it.","content":{"application/json":{"schema":{}}}},"401":{"description":"Missing or invalid access token (`unauthenticated`).","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorEnvelope"}}}},"403":{"description":"No organisation in the token (`no_organisation_context`), or not permitted (`forbidden`).","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorEnvelope"}}}},"404":{"description":"Not found, or not visible to the caller.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorEnvelope"}}}},"422":{"description":"Invalid request.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorEnvelope"}}}},"429":{"description":"`rate_limited`: too many lookups by this person in ten minutes; or the type’s own allowance, in its words.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorEnvelope"}}}}}}},"/organisations/current/resources/{resourceId}/evidence":{"post":{"tags":["versions"],"summary":"The resource’s evidence package: a signed BagIt bag of its documents, their trail and its audit, as one archive","description":"Verify one with `pnpm evidence:verify <file>` against the keyring in packages/lifecycle/src/evidence/keys.ts.","security":[{"bearerAuth":[]}],"parameters":[{"schema":{"type":"string","format":"uuid"},"required":true,"name":"resourceId","in":"path"}],"responses":{"200":{"description":"A POSIX tar archive holding one BagIt bag.","content":{"application/x-tar":{"schema":{"type":"string","format":"binary"}}}},"401":{"description":"Missing or invalid access token (`unauthenticated`).","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorEnvelope"}}}},"403":{"description":"No organisation in the token (`no_organisation_context`), or not permitted (`forbidden`).","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorEnvelope"}}}},"404":{"description":"Not found, or not visible to the caller.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorEnvelope"}}}},"422":{"description":"Invalid request.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorEnvelope"}}}},"503":{"description":"`evidence_unavailable`: no signing key is set up, or it does not match the keyring.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorEnvelope"}}}}}}},"/organisations/current/media/uploads":{"post":{"tags":["media"],"summary":"Start an upload: where to put the bytes of a file for a resource or the organisation","security":[{"bearerAuth":[]}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/StartUpload"}}}},"responses":{"201":{"description":"Where to put the bytes.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/StartedUpload"}}}},"401":{"description":"Missing or invalid access token (`unauthenticated`).","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorEnvelope"}}}},"403":{"description":"No organisation in the token (`no_organisation_context`), or not permitted (`forbidden`).","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorEnvelope"}}}},"404":{"description":"Not found, or not visible to the caller.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorEnvelope"}}}},"422":{"description":"Invalid body, `unsupported_media` or `media_too_large`.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorEnvelope"}}}},"503":{"description":"`media_unavailable`: where files are kept has not been set up.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorEnvelope"}}}}}}},"/organisations/current/media/uploads/{uploadId}":{"put":{"tags":["media"],"summary":"An upload’s bytes, through the API, where the store takes none of its own (development)","security":[{"bearerAuth":[]}],"parameters":[{"schema":{"type":"string","format":"uuid"},"required":true,"name":"uploadId","in":"path"},{"schema":{"type":"string","format":"uuid","description":"The resource the file is for; absent, the organisation itself."},"required":false,"description":"The resource the file is for; absent, the organisation itself.","name":"resourceId","in":"query"}],"responses":{"204":{"description":"Received."},"401":{"description":"Missing or invalid access token (`unauthenticated`).","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorEnvelope"}}}},"403":{"description":"No organisation in the token (`no_organisation_context`), or not permitted (`forbidden`).","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorEnvelope"}}}},"404":{"description":"Not found, or not visible to the caller.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorEnvelope"}}}},"409":{"description":"`upload_direct`: put the bytes where the upload said to.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorEnvelope"}}}},"413":{"description":"`media_too_large`.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorEnvelope"}}}},"422":{"description":"Invalid request.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorEnvelope"}}}}}}},"/organisations/current/media/uploads/{uploadId}/complete":{"post":{"tags":["media"],"summary":"Complete an upload: the API reads the bytes, names them by their sha-256, keeps them and attaches them","description":"The bytes’ own signature decides what the file is. The same bytes on the same subject are the same attachment.","security":[{"bearerAuth":[]}],"parameters":[{"schema":{"type":"string","format":"uuid"},"required":true,"name":"uploadId","in":"path"}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/CompleteUpload"}}}},"responses":{"200":{"description":"Attached already.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Media"}}}},"201":{"description":"Kept and attached.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Media"}}}},"401":{"description":"Missing or invalid access token (`unauthenticated`).","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorEnvelope"}}}},"403":{"description":"No organisation in the token (`no_organisation_context`), or not permitted (`forbidden`).","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorEnvelope"}}}},"404":{"description":"Not found, or not visible to the caller.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorEnvelope"}}}},"410":{"description":"`media_erased`: these bytes were erased under an erasure request.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorEnvelope"}}}},"422":{"description":"Invalid body, `unsupported_media`, `media_too_large` or `caption_too_long`.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorEnvelope"}}}},"503":{"description":"`media_unavailable`.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorEnvelope"}}}}}}},"/organisations/current/media":{"get":{"tags":["media"],"summary":"The organisation’s own files; `include=archived` adds archived ones","security":[{"bearerAuth":[]}],"parameters":[{"schema":{"type":"string","enum":["archived"]},"required":false,"name":"include","in":"query"}],"responses":{"200":{"description":"Its files, oldest first.","content":{"application/json":{"schema":{"type":"object","properties":{"items":{"type":"array","items":{"$ref":"#/components/schemas/Media"}}},"required":["items"]}}}},"401":{"description":"Missing or invalid access token (`unauthenticated`).","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorEnvelope"}}}},"403":{"description":"No organisation in the token (`no_organisation_context`), or not permitted (`forbidden`).","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorEnvelope"}}}},"404":{"description":"Not found, or not visible to the caller.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorEnvelope"}}}},"422":{"description":"Invalid request.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorEnvelope"}}}}}}},"/organisations/current/media/{attachmentId}/content":{"get":{"tags":["media"],"summary":"One of the organisation’s own files, or its preview","security":[{"bearerAuth":[]}],"parameters":[{"schema":{"type":"string","format":"uuid"},"required":true,"name":"attachmentId","in":"path"},{"schema":{"type":"string","enum":["original","display","thumb"],"default":"original"},"required":false,"name":"variant","in":"query"},{"schema":{"type":"string","enum":["1"],"description":"`1` to download rather than show."},"required":false,"description":"`1` to download rather than show.","name":"download","in":"query"}],"responses":{"200":{"description":"The bytes, from a store that hands out no URLs (development)."},"302":{"description":"Where to fetch the file for the next few minutes."},"401":{"description":"Missing or invalid access token (`unauthenticated`).","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorEnvelope"}}}},"403":{"description":"No organisation in the token (`no_organisation_context`), or not permitted (`forbidden`).","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorEnvelope"}}}},"404":{"description":"Not found, or not visible to the caller.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorEnvelope"}}}},"410":{"description":"`media_erased`: erased under an erasure request.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorEnvelope"}}}},"422":{"description":"Invalid request.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorEnvelope"}}}}}}},"/organisations/current/media/{attachmentId}/archive":{"post":{"tags":["media"],"summary":"Archive one of the organisation’s own files: out of its list, never deleted","security":[{"bearerAuth":[]}],"parameters":[{"schema":{"type":"string","format":"uuid"},"required":true,"name":"attachmentId","in":"path"}],"requestBody":{"required":false,"content":{"application/json":{"schema":{"type":"object","properties":{"reason":{"type":"string","maxLength":500}},"additionalProperties":false}}}},"responses":{"200":{"description":"Archived.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Media"}}}},"401":{"description":"Missing or invalid access token (`unauthenticated`).","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorEnvelope"}}}},"403":{"description":"No organisation in the token (`no_organisation_context`), or not permitted (`forbidden`).","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorEnvelope"}}}},"404":{"description":"Not found, or not visible to the caller.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorEnvelope"}}}},"410":{"description":"`media_erased`.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorEnvelope"}}}},"422":{"description":"Invalid request.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorEnvelope"}}}}}}},"/organisations/current/media/{attachmentId}/restore":{"post":{"tags":["media"],"summary":"Restore one of the organisation’s own archived files","security":[{"bearerAuth":[]}],"parameters":[{"schema":{"type":"string","format":"uuid"},"required":true,"name":"attachmentId","in":"path"}],"responses":{"200":{"description":"Restored.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Media"}}}},"401":{"description":"Missing or invalid access token (`unauthenticated`).","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorEnvelope"}}}},"403":{"description":"No organisation in the token (`no_organisation_context`), or not permitted (`forbidden`).","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorEnvelope"}}}},"404":{"description":"Not found, or not visible to the caller.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorEnvelope"}}}},"410":{"description":"`media_erased`.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorEnvelope"}}}},"422":{"description":"Invalid request.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorEnvelope"}}}}}}},"/organisations/current/resources/{resourceId}/media":{"get":{"tags":["media"],"summary":"A resource’s files; `include=archived` adds archived ones","security":[{"bearerAuth":[]}],"parameters":[{"schema":{"type":"string","format":"uuid"},"required":true,"name":"resourceId","in":"path"},{"schema":{"type":"string","enum":["archived"]},"required":false,"name":"include","in":"query"}],"responses":{"200":{"description":"Its files, oldest first.","content":{"application/json":{"schema":{"type":"object","properties":{"items":{"type":"array","items":{"$ref":"#/components/schemas/Media"}}},"required":["items"]}}}},"401":{"description":"Missing or invalid access token (`unauthenticated`).","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorEnvelope"}}}},"403":{"description":"No organisation in the token (`no_organisation_context`), or not permitted (`forbidden`).","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorEnvelope"}}}},"404":{"description":"Not found, or not visible to the caller.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorEnvelope"}}}},"422":{"description":"Invalid request.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorEnvelope"}}}}}}},"/organisations/current/resources/{resourceId}/media/{ref}/content":{"get":{"tags":["media"],"summary":"One of a resource’s files, or its preview, by attachment id or by the hash a document names it by","security":[{"bearerAuth":[]}],"parameters":[{"schema":{"type":"string","format":"uuid"},"required":true,"name":"resourceId","in":"path"},{"schema":{"type":"string","pattern":"^([0-9a-f]{64}|[0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{12})$","description":"An attachment id, or the hex sha-256 a document names the file by."},"required":true,"description":"An attachment id, or the hex sha-256 a document names the file by.","name":"ref","in":"path"},{"schema":{"type":"string","enum":["original","display","thumb"],"default":"original"},"required":false,"name":"variant","in":"query"},{"schema":{"type":"string","enum":["1"],"description":"`1` to download rather than show."},"required":false,"description":"`1` to download rather than show.","name":"download","in":"query"}],"responses":{"200":{"description":"The bytes, from a store that hands out no URLs (development)."},"302":{"description":"Where to fetch the file for the next few minutes."},"401":{"description":"Missing or invalid access token (`unauthenticated`).","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorEnvelope"}}}},"403":{"description":"No organisation in the token (`no_organisation_context`), or not permitted (`forbidden`).","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorEnvelope"}}}},"404":{"description":"Not found, or not visible to the caller.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorEnvelope"}}}},"410":{"description":"`media_erased`: erased under an erasure request.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorEnvelope"}}}},"422":{"description":"Invalid request.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorEnvelope"}}}}}}},"/organisations/current/resources/{resourceId}/media/{attachmentId}/archive":{"post":{"tags":["media"],"summary":"Archive one of a resource’s files: out of its list, never deleted, still found by what names it","security":[{"bearerAuth":[]}],"parameters":[{"schema":{"type":"string","format":"uuid"},"required":true,"name":"resourceId","in":"path"},{"schema":{"type":"string","format":"uuid"},"required":true,"name":"attachmentId","in":"path"}],"requestBody":{"required":false,"content":{"application/json":{"schema":{"type":"object","properties":{"reason":{"type":"string","maxLength":500}},"additionalProperties":false}}}},"responses":{"200":{"description":"Archived.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Media"}}}},"401":{"description":"Missing or invalid access token (`unauthenticated`).","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorEnvelope"}}}},"403":{"description":"No organisation in the token (`no_organisation_context`), or not permitted (`forbidden`).","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorEnvelope"}}}},"404":{"description":"Not found, or not visible to the caller.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorEnvelope"}}}},"410":{"description":"`media_erased`.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorEnvelope"}}}},"422":{"description":"Invalid request.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorEnvelope"}}}}}}},"/organisations/current/resources/{resourceId}/media/{attachmentId}/restore":{"post":{"tags":["media"],"summary":"Restore one of a resource’s archived files","security":[{"bearerAuth":[]}],"parameters":[{"schema":{"type":"string","format":"uuid"},"required":true,"name":"resourceId","in":"path"},{"schema":{"type":"string","format":"uuid"},"required":true,"name":"attachmentId","in":"path"}],"responses":{"200":{"description":"Restored.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Media"}}}},"401":{"description":"Missing or invalid access token (`unauthenticated`).","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorEnvelope"}}}},"403":{"description":"No organisation in the token (`no_organisation_context`), or not permitted (`forbidden`).","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorEnvelope"}}}},"404":{"description":"Not found, or not visible to the caller.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorEnvelope"}}}},"410":{"description":"`media_erased`.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorEnvelope"}}}},"422":{"description":"Invalid request.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorEnvelope"}}}}}}},"/organisations/current/resources/{resourceId}/appointments":{"get":{"tags":["appointments"],"summary":"Who holds which role on a resource, in force first; `read` on it","security":[{"bearerAuth":[]}],"parameters":[{"schema":{"type":"string","format":"uuid"},"required":true,"name":"resourceId","in":"path"}],"responses":{"200":{"description":"Its appointments.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/AppointmentsOn"}}}},"401":{"description":"Missing or invalid access token (`unauthenticated`).","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorEnvelope"}}}},"403":{"description":"No organisation in the token (`no_organisation_context`), or not permitted (`forbidden`).","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorEnvelope"}}}},"404":{"description":"Not found, or not visible to the caller.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorEnvelope"}}}},"422":{"description":"`not_appointable`.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorEnvelope"}}}}}},"post":{"tags":["appointments"],"summary":"An appointee holds a role on it, from a day; `update` on it","security":[{"bearerAuth":[]}],"parameters":[{"schema":{"type":"string","format":"uuid"},"required":true,"name":"resourceId","in":"path"}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/RecordAppointment"}}}},"responses":{"201":{"description":"The appointment.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Appointment"}}}},"401":{"description":"Missing or invalid access token (`unauthenticated`).","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorEnvelope"}}}},"403":{"description":"No organisation in the token (`no_organisation_context`), or not permitted (`forbidden`).","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorEnvelope"}}}},"404":{"description":"Not found, or not visible to the caller.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorEnvelope"}}}},"422":{"description":"Invalid body, `not_appointable`, `invalid_role_key`, `invalid_basis`, `invalid_basis_reference`, `invalid_from_on`, `invalid_appointee_words`, `appointee_not_yours`, `unknown_appointee`, or a refusal the registered roles give.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorEnvelope"}}}}}}},"/organisations/current/resources/{resourceId}/appointments/summary":{"get":{"tags":["appointments"],"summary":"Its appointments as the registered tool reads them: each appointee named, and the cautions now; `read` on it","security":[{"bearerAuth":[]}],"parameters":[{"schema":{"type":"string","format":"uuid"},"required":true,"name":"resourceId","in":"path"},{"schema":{"type":"string","pattern":"^[a-z][a-z0-9-]{0,39}$"},"required":false,"name":"funnel","in":"query"}],"responses":{"200":{"description":"The summary.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/AppointmentsSummary"}}}},"401":{"description":"Missing or invalid access token (`unauthenticated`).","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorEnvelope"}}}},"403":{"description":"No organisation in the token (`no_organisation_context`), or not permitted (`forbidden`).","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorEnvelope"}}}},"404":{"description":"Not found, or not visible to the caller.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorEnvelope"}}}},"422":{"description":"`not_appointable`.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorEnvelope"}}}}}}},"/organisations/current/resources/{resourceId}/appointments/{appointmentId}/end":{"post":{"tags":["appointments"],"summary":"It ended on a day; once; `update` on the resource","security":[{"bearerAuth":[]}],"parameters":[{"schema":{"type":"string","format":"uuid"},"required":true,"name":"resourceId","in":"path"},{"schema":{"type":"string","format":"uuid"},"required":true,"name":"appointmentId","in":"path"}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/EndAppointment"}}}},"responses":{"200":{"description":"The appointment, ended.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Appointment"}}}},"401":{"description":"Missing or invalid access token (`unauthenticated`).","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorEnvelope"}}}},"403":{"description":"No organisation in the token (`no_organisation_context`), or not permitted (`forbidden`).","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorEnvelope"}}}},"404":{"description":"Not found, or not visible to the caller.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorEnvelope"}}}},"409":{"description":"`already_ended`.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorEnvelope"}}}},"422":{"description":"Invalid body, `not_appointable`, `invalid_to_on` or `dates_out_of_order`.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorEnvelope"}}}}}}},"/organisations/current/resources/{resourceId}/people":{"get":{"tags":["people"],"summary":"The people recorded in a resource, their current residencies there, and the spaces one may be recorded in","security":[{"bearerAuth":[]}],"parameters":[{"schema":{"type":"string","format":"uuid"},"required":true,"name":"resourceId","in":"path"},{"schema":{"type":"string","pattern":"^[a-z][a-z0-9-]{0,39}$","example":"person-page","description":"Where the read came from; recorded in the read log. `api` when not given."},"required":false,"description":"Where the read came from; recorded in the read log. `api` when not given.","name":"funnel","in":"query"}],"responses":{"200":{"description":"Its people.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/PeopleRecordedHere"}}}},"401":{"description":"Missing or invalid access token (`unauthenticated`).","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorEnvelope"}}}},"403":{"description":"No organisation in the token (`no_organisation_context`), or not permitted (`forbidden`).","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorEnvelope"}}}},"404":{"description":"Not found, or not visible to the caller.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorEnvelope"}}}},"422":{"description":"`cannot_hold_people`.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorEnvelope"}}}},"503":{"description":"`people_unavailable`: the key personal data is sealed with is not set (SETUP §7i).","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorEnvelope"}}}}}},"post":{"tags":["people"],"summary":"Record a person in one of its published spaces; `create` on it","security":[{"bearerAuth":[]}],"parameters":[{"schema":{"type":"string","format":"uuid"},"required":true,"name":"resourceId","in":"path"}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/RecordPerson"}}}},"responses":{"201":{"description":"The person.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Person"}}}},"401":{"description":"Missing or invalid access token (`unauthenticated`).","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorEnvelope"}}}},"403":{"description":"No organisation in the token (`no_organisation_context`), or not permitted (`forbidden`).","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorEnvelope"}}}},"404":{"description":"Not found, or not visible to the caller.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorEnvelope"}}}},"409":{"description":"`nothing_published`: a person is recorded in a published space.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorEnvelope"}}}},"422":{"description":"Invalid body, `cannot_hold_people`, `unknown_space`, `unknown_role`, `invalid_display_name` or `invalid_from_date`.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorEnvelope"}}}},"503":{"description":"`people_unavailable`: the key personal data is sealed with is not set (SETUP §7i).","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorEnvelope"}}}}}}},"/organisations/current/people":{"get":{"tags":["people"],"summary":"Find a person by a landlord’s reference, exactly, for an erasure or access request (`erasure:action`)","security":[{"bearerAuth":[]}],"parameters":[{"schema":{"type":"string","minLength":1,"maxLength":80},"required":true,"name":"reference","in":"query"}],"responses":{"200":{"description":"Whoever has that reference.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/PeopleFound"}}}},"401":{"description":"Missing or invalid access token (`unauthenticated`).","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorEnvelope"}}}},"403":{"description":"No organisation in the token (`no_organisation_context`), or not permitted (`forbidden`).","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorEnvelope"}}}},"404":{"description":"Not found, or not visible to the caller.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorEnvelope"}}}},"422":{"description":"`invalid_reference`.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorEnvelope"}}}},"503":{"description":"`people_unavailable`: the key personal data is sealed with is not set (SETUP §7i).","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorEnvelope"}}}}}}},"/organisations/current/people/{personId}":{"get":{"tags":["people"],"summary":"A person: their name, the facts given with who gave each and when, and their residencies","security":[{"bearerAuth":[]}],"parameters":[{"schema":{"type":"string","format":"uuid"},"required":true,"name":"personId","in":"path"},{"schema":{"type":"string","pattern":"^[a-z][a-z0-9-]{0,39}$","example":"person-page","description":"Where the read came from; recorded in the read log. `api` when not given."},"required":false,"description":"Where the read came from; recorded in the read log. `api` when not given.","name":"funnel","in":"query"}],"responses":{"200":{"description":"The person.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Person"}}}},"401":{"description":"Missing or invalid access token (`unauthenticated`).","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorEnvelope"}}}},"403":{"description":"No organisation in the token (`no_organisation_context`), or not permitted (`forbidden`).","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorEnvelope"}}}},"404":{"description":"Not found, or not visible to the caller.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorEnvelope"}}}},"422":{"description":"Invalid request.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorEnvelope"}}}},"503":{"description":"`people_unavailable`: the key personal data is sealed with is not set (SETUP §7i).","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorEnvelope"}}}}}}},"/organisations/current/people/{personId}/reads":{"get":{"tags":["people"],"summary":"Who has read this person’s record, newest first: the RP’s administrators only (`audit:read`, and `read` on the person)","security":[{"bearerAuth":[]}],"parameters":[{"schema":{"type":"string","format":"uuid"},"required":true,"name":"personId","in":"path"}],"responses":{"200":{"description":"Every recorded read of them.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Reads"}}}},"401":{"description":"Missing or invalid access token (`unauthenticated`).","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorEnvelope"}}}},"403":{"description":"No organisation in the token (`no_organisation_context`), or not permitted (`forbidden`).","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorEnvelope"}}}},"404":{"description":"Not found, or not visible to the caller.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorEnvelope"}}}},"422":{"description":"Invalid request.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorEnvelope"}}}},"503":{"description":"`people_unavailable`: the key personal data is sealed with is not set (SETUP §7i).","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorEnvelope"}}}}}}},"/organisations/current/people/{personId}/name":{"post":{"tags":["people"],"summary":"Give an unidentified occupant a name, on the same record; `update` on the person","security":[{"bearerAuth":[]}],"parameters":[{"schema":{"type":"string","format":"uuid"},"required":true,"name":"personId","in":"path"}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/NamePerson"}}}},"responses":{"200":{"description":"The person, named.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Person"}}}},"401":{"description":"Missing or invalid access token (`unauthenticated`).","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorEnvelope"}}}},"403":{"description":"No organisation in the token (`no_organisation_context`), or not permitted (`forbidden`).","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorEnvelope"}}}},"404":{"description":"Not found, or not visible to the caller.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorEnvelope"}}}},"409":{"description":"`already_named` or `tombstoned`.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorEnvelope"}}}},"422":{"description":"Invalid body or `invalid_display_name`.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorEnvelope"}}}},"503":{"description":"`people_unavailable`: the key personal data is sealed with is not set (SETUP §7i).","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorEnvelope"}}}}}}},"/organisations/current/people/{personId}/rename":{"post":{"tags":["people"],"summary":"Change the name of a person who already has one, on the same record; `update` on the person","security":[{"bearerAuth":[]}],"parameters":[{"schema":{"type":"string","format":"uuid"},"required":true,"name":"personId","in":"path"}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/NamePerson"}}}},"responses":{"200":{"description":"The person, renamed.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Person"}}}},"401":{"description":"Missing or invalid access token (`unauthenticated`).","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorEnvelope"}}}},"403":{"description":"No organisation in the token (`no_organisation_context`), or not permitted (`forbidden`).","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorEnvelope"}}}},"404":{"description":"Not found, or not visible to the caller.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorEnvelope"}}}},"409":{"description":"`not_named`, `unchanged` or `tombstoned`.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorEnvelope"}}}},"422":{"description":"Invalid body or `invalid_display_name`.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorEnvelope"}}}},"503":{"description":"`people_unavailable`: the key personal data is sealed with is not set (SETUP §7i).","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorEnvelope"}}}}}}},"/organisations/current/people/{personId}/facts":{"post":{"tags":["people"],"summary":"Record a fact somebody chose to give, from the catalogue; `update` on the person","security":[{"bearerAuth":[]}],"parameters":[{"schema":{"type":"string","format":"uuid"},"required":true,"name":"personId","in":"path"}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/GiveFact"}}}},"responses":{"201":{"description":"The fact.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Fact"}}}},"401":{"description":"Missing or invalid access token (`unauthenticated`).","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorEnvelope"}}}},"403":{"description":"No organisation in the token (`no_organisation_context`), or not permitted (`forbidden`).","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorEnvelope"}}}},"404":{"description":"Not found, or not visible to the caller.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorEnvelope"}}}},"409":{"description":"`tombstoned`.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorEnvelope"}}}},"422":{"description":"Invalid body, `unknown_fact_kind`, `invalid_fact_value`, `invalid_given_by`, `invalid_source` or `invalid_given_on`.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorEnvelope"}}}},"503":{"description":"`people_unavailable`: the key personal data is sealed with is not set (SETUP §7i).","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorEnvelope"}}}}}}},"/organisations/current/people/{personId}/facts/{factId}/withdraw":{"post":{"tags":["people"],"summary":"Withdraw a fact; its value goes with it","security":[{"bearerAuth":[]}],"parameters":[{"schema":{"type":"string","format":"uuid"},"required":true,"name":"personId","in":"path"},{"schema":{"type":"string","format":"uuid"},"required":true,"name":"factId","in":"path"}],"responses":{"200":{"description":"The fact, withdrawn.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Fact"}}}},"401":{"description":"Missing or invalid access token (`unauthenticated`).","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorEnvelope"}}}},"403":{"description":"No organisation in the token (`no_organisation_context`), or not permitted (`forbidden`).","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorEnvelope"}}}},"404":{"description":"Not found, or not visible to the caller.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorEnvelope"}}}},"409":{"description":"`already_withdrawn` or `tombstoned`.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorEnvelope"}}}},"422":{"description":"Invalid request.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorEnvelope"}}}},"503":{"description":"`people_unavailable`: the key personal data is sealed with is not set (SETUP §7i).","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorEnvelope"}}}}}}},"/organisations/current/people/{personId}/residencies":{"post":{"tags":["people"],"summary":"Open another residency where the person is recorded: another space or role","security":[{"bearerAuth":[]}],"parameters":[{"schema":{"type":"string","format":"uuid"},"required":true,"name":"personId","in":"path"}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/OpenResidency"}}}},"responses":{"201":{"description":"The person.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Person"}}}},"401":{"description":"Missing or invalid access token (`unauthenticated`).","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorEnvelope"}}}},"403":{"description":"No organisation in the token (`no_organisation_context`), or not permitted (`forbidden`).","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorEnvelope"}}}},"404":{"description":"Not found, or not visible to the caller.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorEnvelope"}}}},"409":{"description":"`nothing_published` or `tombstoned`.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorEnvelope"}}}},"422":{"description":"Invalid body, `unknown_space`, `unknown_role` or `invalid_from_date`.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorEnvelope"}}}},"503":{"description":"`people_unavailable`: the key personal data is sealed with is not set (SETUP §7i).","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorEnvelope"}}}}}}},"/organisations/current/people/{personId}/residencies/{residencyId}/move-out":{"post":{"tags":["people"],"summary":"When they are expected to leave (spec 80): `expected` with a day, or `not-yet`; never an ending. `update` on the person","security":[{"bearerAuth":[]}],"parameters":[{"schema":{"type":"string","format":"uuid"},"required":true,"name":"personId","in":"path"},{"schema":{"type":"string","format":"uuid"},"required":true,"name":"residencyId","in":"path"}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/MoveOut"}}}},"responses":{"200":{"description":"The person.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Person"}}}},"401":{"description":"Missing or invalid access token (`unauthenticated`).","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorEnvelope"}}}},"403":{"description":"No organisation in the token (`no_organisation_context`), or not permitted (`forbidden`).","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorEnvelope"}}}},"404":{"description":"Not found, or not visible to the caller.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorEnvelope"}}}},"409":{"description":"`already_closed` or `tombstoned`.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorEnvelope"}}}},"422":{"description":"`invalid_answer` or `invalid_expected_on`.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorEnvelope"}}}},"503":{"description":"`people_unavailable`: the key personal data is sealed with is not set (SETUP §7i).","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorEnvelope"}}}}}}},"/organisations/current/people/{personId}/residencies/{residencyId}/close":{"post":{"tags":["people"],"summary":"Yes, they have left (spec 80): a residency ends, on a day that has happened, and what ends with it; the person stays recorded where they are","security":[{"bearerAuth":[]}],"parameters":[{"schema":{"type":"string","format":"uuid"},"required":true,"name":"personId","in":"path"},{"schema":{"type":"string","format":"uuid"},"required":true,"name":"residencyId","in":"path"}],"requestBody":{"required":false,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/CloseResidency"}}}},"responses":{"200":{"description":"The person.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Person"}}}},"401":{"description":"Missing or invalid access token (`unauthenticated`).","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorEnvelope"}}}},"403":{"description":"No organisation in the token (`no_organisation_context`), or not permitted (`forbidden`).","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorEnvelope"}}}},"404":{"description":"Not found, or not visible to the caller.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorEnvelope"}}}},"409":{"description":"`already_closed` or `tombstoned`.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorEnvelope"}}}},"422":{"description":"`invalid_to_date` or `dates_out_of_order`.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorEnvelope"}}}},"503":{"description":"`people_unavailable`: the key personal data is sealed with is not set (SETUP §7i).","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorEnvelope"}}}}}}},"/organisations/current/people/{personId}/move":{"post":{"tags":["people"],"summary":"Move a person to a space in another resource of the organisation: `update` on them and on both","security":[{"bearerAuth":[]}],"parameters":[{"schema":{"type":"string","format":"uuid"},"required":true,"name":"personId","in":"path"}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/MovePerson"}}}},"responses":{"200":{"description":"The person, where they now are.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Person"}}}},"401":{"description":"Missing or invalid access token (`unauthenticated`).","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorEnvelope"}}}},"403":{"description":"No organisation in the token (`no_organisation_context`), or not permitted (`forbidden`).","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorEnvelope"}}}},"404":{"description":"Not found, or not visible to the caller.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorEnvelope"}}}},"409":{"description":"`nothing_published`, `already_there`, `target_not_live`, `move_waiting` or `tombstoned`.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorEnvelope"}}}},"422":{"description":"Invalid body, `cannot_hold_people`, `unknown_space`, `unknown_role`, `invalid_from_date` or `dates_out_of_order`.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorEnvelope"}}}},"503":{"description":"`people_unavailable`: the key personal data is sealed with is not set (SETUP §7i).","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorEnvelope"}}}}}}},"/organisations/current/people/{personId}/parties":{"get":{"tags":["parties and statements"],"summary":"Who may speak for a person: their parties, by standing, with basis, evidence and dates; `update` on them","security":[{"bearerAuth":[]}],"parameters":[{"schema":{"type":"string","format":"uuid"},"required":true,"name":"personId","in":"path"},{"schema":{"type":"string","pattern":"^[a-z][a-z0-9-]{0,39}$","example":"person-page","description":"Where the read came from; recorded in the read log. `api` when not given."},"required":false,"description":"Where the read came from; recorded in the read log. `api` when not given.","name":"funnel","in":"query"}],"responses":{"200":{"description":"Their parties.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Parties"}}}},"401":{"description":"Missing or invalid access token (`unauthenticated`).","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorEnvelope"}}}},"403":{"description":"No organisation in the token (`no_organisation_context`), or not permitted (`forbidden`).","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorEnvelope"}}}},"404":{"description":"Not found, or not visible to the caller.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorEnvelope"}}}},"422":{"description":"Invalid request.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorEnvelope"}}}},"503":{"description":"`people_unavailable`: the key personal data is sealed with is not set (SETUP §7i).","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorEnvelope"}}}}}},"post":{"tags":["parties and statements"],"summary":"Record a party: someone with a standing, by role, never a name; `update` on the person","security":[{"bearerAuth":[]}],"parameters":[{"schema":{"type":"string","format":"uuid"},"required":true,"name":"personId","in":"path"}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/PartyInput"}}}},"responses":{"201":{"description":"The party.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Party"}}}},"401":{"description":"Missing or invalid access token (`unauthenticated`).","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorEnvelope"}}}},"403":{"description":"No organisation in the token (`no_organisation_context`), or not permitted (`forbidden`).","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorEnvelope"}}}},"404":{"description":"Not found, or not visible to the caller.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorEnvelope"}}}},"409":{"description":"`tombstoned`.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorEnvelope"}}}},"422":{"description":"Invalid body, `unknown_standing`, `self_is_made`, `unknown_basis`, `no_basis`, `org_only_contractual`, `not_engaged`, `unknown_person_ref`, `invalid_words`, `invalid_evidence`, `invalid_from_date`, `invalid_to_date` or `dates_out_of_order`.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorEnvelope"}}}},"503":{"description":"`people_unavailable`: the key personal data is sealed with is not set (SETUP §7i).","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorEnvelope"}}}}}}},"/organisations/current/people/{personId}/parties/{handle}/revise":{"post":{"tags":["parties and statements"],"summary":"Revise a party’s standing, as a new version under its handle; what was said under the old one stands","security":[{"bearerAuth":[]}],"parameters":[{"schema":{"type":"string","format":"uuid"},"required":true,"name":"personId","in":"path"},{"schema":{"type":"string","format":"uuid","description":"The party, the same on every version."},"required":true,"description":"The party, the same on every version.","name":"handle","in":"path"}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/PartyInput"}}}},"responses":{"200":{"description":"The party’s new version.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Party"}}}},"401":{"description":"Missing or invalid access token (`unauthenticated`).","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorEnvelope"}}}},"403":{"description":"No organisation in the token (`no_organisation_context`), or not permitted (`forbidden`).","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorEnvelope"}}}},"404":{"description":"Not found, or not visible to the caller.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorEnvelope"}}}},"409":{"description":"`party_ended`, `self_fixed` or `tombstoned`.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorEnvelope"}}}},"422":{"description":"As recording a party.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorEnvelope"}}}},"503":{"description":"`people_unavailable`: the key personal data is sealed with is not set (SETUP §7i).","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorEnvelope"}}}}}}},"/organisations/current/people/{personId}/parties/{handle}/end":{"post":{"tags":["parties and statements"],"summary":"End a party’s standing on a day; nothing new may cite it, and nothing already said lapses","security":[{"bearerAuth":[]}],"parameters":[{"schema":{"type":"string","format":"uuid"},"required":true,"name":"personId","in":"path"},{"schema":{"type":"string","format":"uuid","description":"The party, the same on every version."},"required":true,"description":"The party, the same on every version.","name":"handle","in":"path"}],"requestBody":{"required":false,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/EndParty"}}}},"responses":{"200":{"description":"The party, ended.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Party"}}}},"401":{"description":"Missing or invalid access token (`unauthenticated`).","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorEnvelope"}}}},"403":{"description":"No organisation in the token (`no_organisation_context`), or not permitted (`forbidden`).","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorEnvelope"}}}},"404":{"description":"Not found, or not visible to the caller.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorEnvelope"}}}},"409":{"description":"`party_ended`, `self_fixed` or `tombstoned`.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorEnvelope"}}}},"422":{"description":"`invalid_on` or `dates_out_of_order`.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorEnvelope"}}}},"503":{"description":"`people_unavailable`: the key personal data is sealed with is not set (SETUP §7i).","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorEnvelope"}}}}}}},"/organisations/current/people/{personId}/statements":{"get":{"tags":["parties and statements"],"summary":"What a person consented to by scope, and what was decided without consent; their parties; whether each scope may be shared","security":[{"bearerAuth":[]}],"parameters":[{"schema":{"type":"string","format":"uuid"},"required":true,"name":"personId","in":"path"},{"schema":{"type":"string","pattern":"^[a-z][a-z0-9-]{0,39}$","example":"person-page","description":"Where the read came from; recorded in the read log. `api` when not given."},"required":false,"description":"Where the read came from; recorded in the read log. `api` when not given.","name":"funnel","in":"query"}],"responses":{"200":{"description":"Their statements.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Statements"}}}},"401":{"description":"Missing or invalid access token (`unauthenticated`).","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorEnvelope"}}}},"403":{"description":"No organisation in the token (`no_organisation_context`), or not permitted (`forbidden`).","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorEnvelope"}}}},"404":{"description":"Not found, or not visible to the caller.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorEnvelope"}}}},"422":{"description":"Invalid request.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorEnvelope"}}}},"503":{"description":"`people_unavailable`: the key personal data is sealed with is not set (SETUP §7i).","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorEnvelope"}}}}}},"post":{"tags":["parties and statements"],"summary":"Record a consent under a party with authority, or a decision made without consent (never consent)","security":[{"bearerAuth":[]}],"parameters":[{"schema":{"type":"string","format":"uuid"},"required":true,"name":"personId","in":"path"}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/StatementInput"}}}},"responses":{"201":{"description":"The consent or the decision.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Statement"}}}},"401":{"description":"Missing or invalid access token (`unauthenticated`).","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorEnvelope"}}}},"403":{"description":"No organisation in the token (`no_organisation_context`), or not permitted (`forbidden`).","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorEnvelope"}}}},"404":{"description":"Not found, or not visible to the caller.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorEnvelope"}}}},"409":{"description":"`party_lapsed`, `nothing_to_withdraw`, `decision_open`, `residency_closed` or `tombstoned`.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorEnvelope"}}}},"422":{"description":"Invalid body, `no_authority`, `passed_on_cites_self`, `carrier_is_self`, `unknown_party`, `unknown_scope`, `unknown_status`, `unknown_how`, `unknown_channel`, `unknown_informed`, `reason_required`, `review_required`, `invalid_on`, `invalid_review_on` or `dates_out_of_order`.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorEnvelope"}}}},"503":{"description":"`people_unavailable`: the key personal data is sealed with is not set (SETUP §7i).","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorEnvelope"}}}}}}},"/organisations/current/people/{personId}/statements/{statementId}/review":{"post":{"tags":["parties and statements"],"summary":"Review a decision made without consent: kept, with a new review date, or ended; a new statement, never an edit","security":[{"bearerAuth":[]}],"parameters":[{"schema":{"type":"string","format":"uuid"},"required":true,"name":"personId","in":"path"},{"schema":{"type":"string","format":"uuid"},"required":true,"name":"statementId","in":"path"}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ReviewDecision"}}}},"responses":{"201":{"description":"The review.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Decision"}}}},"401":{"description":"Missing or invalid access token (`unauthenticated`).","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorEnvelope"}}}},"403":{"description":"No organisation in the token (`no_organisation_context`), or not permitted (`forbidden`).","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorEnvelope"}}}},"404":{"description":"Not found, or not visible to the caller.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorEnvelope"}}}},"409":{"description":"`already_reviewed` or `tombstoned`.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorEnvelope"}}}},"422":{"description":"Invalid body, `unknown_outcome`, `reason_required`, `review_required`, `unknown_informed`, `invalid_on`, `invalid_review_on` or `dates_out_of_order`.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorEnvelope"}}}},"503":{"description":"`people_unavailable`: the key personal data is sealed with is not set (SETUP §7i).","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorEnvelope"}}}}}}},"/organisations/current/resources/{resourceId}/statements/summary":{"get":{"tags":["parties and statements"],"summary":"Counts per scope and position, not asked, and decisions under review: numbers, never a name; `update` on it","security":[{"bearerAuth":[]}],"parameters":[{"schema":{"type":"string","format":"uuid"},"required":true,"name":"resourceId","in":"path"},{"schema":{"type":"string","pattern":"^[a-z][a-z0-9-]{0,39}$","example":"person-page","description":"Where the read came from; recorded in the read log. `api` when not given."},"required":false,"description":"Where the read came from; recorded in the read log. `api` when not given.","name":"funnel","in":"query"}],"responses":{"200":{"description":"The counts.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/StatementsSummary"}}}},"401":{"description":"Missing or invalid access token (`unauthenticated`).","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorEnvelope"}}}},"403":{"description":"No organisation in the token (`no_organisation_context`), or not permitted (`forbidden`).","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorEnvelope"}}}},"404":{"description":"Not found, or not visible to the caller.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorEnvelope"}}}},"422":{"description":"`cannot_hold_people`.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorEnvelope"}}}}}}},"/organisations/current/resources/{resourceId}/statements/consent":{"get":{"tags":["parties and statements"],"summary":"Per current residency in it: one scope’s position, and whether a decision is under review; `update` on it","security":[{"bearerAuth":[]}],"parameters":[{"schema":{"type":"string","format":"uuid"},"required":true,"name":"resourceId","in":"path"},{"schema":{"type":"string","pattern":"^[a-z][a-z0-9-]{0,39}$","example":"people-page","description":"Where the read came from; recorded in the read log. `api` when not given."},"required":false,"description":"Where the read came from; recorded in the read log. `api` when not given.","name":"funnel","in":"query"},{"schema":{"type":"string","minLength":1,"maxLength":40,"example":"share-planning","description":"The scope asked; `share-planning` when not given."},"required":false,"description":"The scope asked; `share-planning` when not given.","name":"scope","in":"query"}],"responses":{"200":{"description":"One row per residency.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ConsentColumn"}}}},"401":{"description":"Missing or invalid access token (`unauthenticated`).","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorEnvelope"}}}},"403":{"description":"No organisation in the token (`no_organisation_context`), or not permitted (`forbidden`).","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorEnvelope"}}}},"404":{"description":"Not found, or not visible to the caller.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorEnvelope"}}}},"422":{"description":"`cannot_hold_people` or `unknown_scope`.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorEnvelope"}}}}}}},"/organisations/current/people/{personId}/plan/exists":{"get":{"tags":["plans"],"summary":"Whether a plan exists for the person, and nothing more: `read` on them","security":[{"bearerAuth":[]}],"parameters":[{"schema":{"type":"string","format":"uuid"},"required":true,"name":"personId","in":"path"},{"schema":{"type":"string","pattern":"^[a-z][a-z0-9-]{0,39}$","example":"person-page","description":"Where the read came from; recorded in the read log. `api` when not given."},"required":false,"description":"Where the read came from; recorded in the read log. `api` when not given.","name":"funnel","in":"query"}],"responses":{"200":{"description":"Whether one exists.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/PlanExists"}}}},"401":{"description":"Missing or invalid access token (`unauthenticated`).","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorEnvelope"}}}},"403":{"description":"No organisation in the token (`no_organisation_context`), or not permitted (`forbidden`).","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorEnvelope"}}}},"404":{"description":"Not found, or not visible to the caller.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorEnvelope"}}}},"422":{"description":"Invalid request.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorEnvelope"}}}}}}},"/organisations/current/people/{personId}/processes/{handle}/personal-plan":{"get":{"tags":["plans"],"summary":"The plan of a process on her residency, by its handle (the folder): its stage, the path in sentences, the drift, review due, and the consent beside it; `update`","security":[{"bearerAuth":[]}],"parameters":[{"schema":{"type":"string","format":"uuid"},"required":true,"name":"personId","in":"path"},{"schema":{"type":"string","format":"uuid"},"required":true,"name":"handle","in":"path"},{"schema":{"type":"string","pattern":"^[a-z][a-z0-9-]{0,39}$","example":"person-page","description":"Where the read came from; recorded in the read log. `api` when not given."},"required":false,"description":"Where the read came from; recorded in the read log. `api` when not given.","name":"funnel","in":"query"},{"schema":{"type":"integer","minimum":1,"maximum":1000},"required":false,"name":"cycle","in":"query"}],"responses":{"200":{"description":"The plan.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/PlanAnswer"}}}},"401":{"description":"Missing or invalid access token (`unauthenticated`).","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorEnvelope"}}}},"403":{"description":"No organisation in the token (`no_organisation_context`), or not permitted (`forbidden`).","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorEnvelope"}}}},"404":{"description":"Not found, or not visible to the caller.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorEnvelope"}}}},"422":{"description":"Invalid request.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorEnvelope"}}}},"503":{"description":"`people_unavailable`: the key personal data is sealed with is not set (SETUP §7i).","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorEnvelope"}}}}}}},"/organisations/current/people/{personId}/processes/{handle}/personal-plan/history":{"get":{"tags":["plans"],"summary":"Every version of the plan of a process, newest first; `update`","security":[{"bearerAuth":[]}],"parameters":[{"schema":{"type":"string","format":"uuid"},"required":true,"name":"personId","in":"path"},{"schema":{"type":"string","format":"uuid"},"required":true,"name":"handle","in":"path"},{"schema":{"type":"string","pattern":"^[a-z][a-z0-9-]{0,39}$","example":"person-page","description":"Where the read came from; recorded in the read log. `api` when not given."},"required":false,"description":"Where the read came from; recorded in the read log. `api` when not given.","name":"funnel","in":"query"}],"responses":{"200":{"description":"Its versions.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/PlanHistory"}}}},"401":{"description":"Missing or invalid access token (`unauthenticated`).","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorEnvelope"}}}},"403":{"description":"No organisation in the token (`no_organisation_context`), or not permitted (`forbidden`).","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorEnvelope"}}}},"404":{"description":"Not found, or not visible to the caller.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorEnvelope"}}}},"422":{"description":"Invalid request.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorEnvelope"}}}},"503":{"description":"`people_unavailable`: the key personal data is sealed with is not set (SETUP §7i).","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorEnvelope"}}}}}}},"/organisations/current/people/{personId}/residencies/{residencyId}/identify":{"post":{"tags":["plans"],"summary":"Identify: a member’s act that the person, in this home, is one a plan is for; the residency’s, before any process; once","security":[{"bearerAuth":[]}],"parameters":[{"schema":{"type":"string","format":"uuid"},"required":true,"name":"personId","in":"path"},{"schema":{"type":"string","format":"uuid"},"required":true,"name":"residencyId","in":"path"}],"requestBody":{"required":false,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/PlanOn"}}}},"responses":{"200":{"description":"The day she was identified.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ResidencyIdentified"}}}},"401":{"description":"Missing or invalid access token (`unauthenticated`).","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorEnvelope"}}}},"403":{"description":"No organisation in the token (`no_organisation_context`), or not permitted (`forbidden`).","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorEnvelope"}}}},"404":{"description":"Not found, or not visible to the caller.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorEnvelope"}}}},"409":{"description":"`already_identified`, `residency_closed` or `tombstoned`.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorEnvelope"}}}},"422":{"description":"`invalid_on`.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorEnvelope"}}}},"503":{"description":"`people_unavailable`: the key personal data is sealed with is not set (SETUP §7i).","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorEnvelope"}}}}}}},"/organisations/current/people/{personId}/processes/{handle}/personal-plan/assessment":{"post":{"tags":["plans"],"summary":"Record the assessment by reference: a day, a role and an opaque reference; nothing of it is copied","security":[{"bearerAuth":[]}],"parameters":[{"schema":{"type":"string","format":"uuid"},"required":true,"name":"personId","in":"path"},{"schema":{"type":"string","format":"uuid"},"required":true,"name":"handle","in":"path"}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/PlanAssessment"}}}},"responses":{"200":{"description":"The plan, as the page reads it.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/PlanAnswer"}}}},"401":{"description":"Missing or invalid access token (`unauthenticated`).","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorEnvelope"}}}},"403":{"description":"No organisation in the token (`no_organisation_context`), or not permitted (`forbidden`).","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorEnvelope"}}}},"404":{"description":"Not found, or not visible to the caller.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorEnvelope"}}}},"409":{"description":"`bad_stage`, `no_plan`, `residency_closed` or `tombstoned`; `assess_refused`.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorEnvelope"}}}},"422":{"description":"Invalid body, `invalid_on`, `invalid_assessed_by`, `invalid_assessment_ref` or `dates_out_of_order`.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorEnvelope"}}}},"503":{"description":"`people_unavailable`: the key personal data is sealed with is not set (SETUP §7i).","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorEnvelope"}}}}}}},"/organisations/current/people/{personId}/processes/{handle}/personal-plan/agree":{"post":{"tags":["plans"],"summary":"Agree: the tool builds the snapshot from a route or a walked path, hashes it and writes it; with a party with authority","security":[{"bearerAuth":[]}],"parameters":[{"schema":{"type":"string","format":"uuid"},"required":true,"name":"personId","in":"path"},{"schema":{"type":"string","format":"uuid"},"required":true,"name":"handle","in":"path"}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/PlanAgree"}}}},"responses":{"200":{"description":"The plan, as the page reads it.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/PlanAnswer"}}}},"401":{"description":"Missing or invalid access token (`unauthenticated`).","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorEnvelope"}}}},"403":{"description":"No organisation in the token (`no_organisation_context`), or not permitted (`forbidden`).","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorEnvelope"}}}},"404":{"description":"Not found, or not visible to the caller.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorEnvelope"}}}},"409":{"description":"`bad_stage`, `no_plan`, `residency_closed` or `tombstoned`; `party_lapsed`, `route_broken`, `nothing_published`, `space_gone`, `changed_meanwhile` or `unlocked_before` (a step of the process before the agreement is unlocked: lock it again first).","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorEnvelope"}}}},"422":{"description":"Invalid body, `no_authority`, `unknown_party`, `invalid_needs`, `route_or_walk`, `unknown_route`, `route_elsewhere`, `invalid_help`, `invalid_instructions`, `invalid_on`, `no_path`, or a walked path’s own refusal.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorEnvelope"}}}},"503":{"description":"`people_unavailable`: the key personal data is sealed with is not set (SETUP §7i).","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorEnvelope"}}}}}}},"/organisations/current/people/{personId}/processes/{handle}/personal-plan/decline":{"post":{"tags":["plans"],"summary":"Declined: by a party with authority, or by nobody for no response","security":[{"bearerAuth":[]}],"parameters":[{"schema":{"type":"string","format":"uuid"},"required":true,"name":"personId","in":"path"},{"schema":{"type":"string","format":"uuid"},"required":true,"name":"handle","in":"path"}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/PlanDecline"}}}},"responses":{"200":{"description":"The plan, as the page reads it.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/PlanAnswer"}}}},"401":{"description":"Missing or invalid access token (`unauthenticated`).","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorEnvelope"}}}},"403":{"description":"No organisation in the token (`no_organisation_context`), or not permitted (`forbidden`).","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorEnvelope"}}}},"404":{"description":"Not found, or not visible to the caller.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorEnvelope"}}}},"409":{"description":"`bad_stage`, `no_plan`, `residency_closed` or `tombstoned`; `party_lapsed`.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorEnvelope"}}}},"422":{"description":"Invalid body, `no_authority`, `unknown_party`, `invalid_why` or `invalid_on`.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorEnvelope"}}}},"503":{"description":"`people_unavailable`: the key personal data is sealed with is not set (SETUP §7i).","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorEnvelope"}}}}}}},"/organisations/current/people/{personId}/processes/{handle}/personal-plan/copy":{"post":{"tags":["plans"],"summary":"Record that a copy of the agreed plan was given to them, and how","security":[{"bearerAuth":[]}],"parameters":[{"schema":{"type":"string","format":"uuid"},"required":true,"name":"personId","in":"path"},{"schema":{"type":"string","format":"uuid"},"required":true,"name":"handle","in":"path"}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/PlanCopy"}}}},"responses":{"200":{"description":"The plan, as the page reads it.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/PlanAnswer"}}}},"401":{"description":"Missing or invalid access token (`unauthenticated`).","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorEnvelope"}}}},"403":{"description":"No organisation in the token (`no_organisation_context`), or not permitted (`forbidden`).","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorEnvelope"}}}},"404":{"description":"Not found, or not visible to the caller.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorEnvelope"}}}},"409":{"description":"`bad_stage`, `no_plan`, `residency_closed` or `tombstoned`.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorEnvelope"}}}},"422":{"description":"Invalid body, `invalid_how`, `invalid_on` or `dates_out_of_order`.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorEnvelope"}}}},"503":{"description":"`people_unavailable`: the key personal data is sealed with is not set (SETUP §7i).","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorEnvelope"}}}}}}},"/organisations/current/people/{personId}/processes/{handle}/personal-plan/review":{"post":{"tags":["plans"],"summary":"Review: a new agreed version with its reason and a new snapshot; the one before is never changed","security":[{"bearerAuth":[]}],"parameters":[{"schema":{"type":"string","format":"uuid"},"required":true,"name":"personId","in":"path"},{"schema":{"type":"string","format":"uuid"},"required":true,"name":"handle","in":"path"}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/PlanReview"}}}},"responses":{"200":{"description":"The plan, as the page reads it.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/PlanAnswer"}}}},"401":{"description":"Missing or invalid access token (`unauthenticated`).","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorEnvelope"}}}},"403":{"description":"No organisation in the token (`no_organisation_context`), or not permitted (`forbidden`).","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorEnvelope"}}}},"404":{"description":"Not found, or not visible to the caller.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorEnvelope"}}}},"409":{"description":"`bad_stage`, `no_plan`, `residency_closed` or `tombstoned`; `party_lapsed`, `route_broken`, `nothing_published`, `space_gone` or `unlocked_before` (a step of the process before the agreement is unlocked: lock it again first).","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorEnvelope"}}}},"422":{"description":"As agreeing, and `invalid_reason`.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorEnvelope"}}}},"503":{"description":"`people_unavailable`: the key personal data is sealed with is not set (SETUP §7i).","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorEnvelope"}}}}}}},"/organisations/current/people/{personId}/processes/{handle}/personal-plan/route":{"post":{"tags":["plans"],"summary":"Bind a route to the open plan while it is worked out, before agreement (identified or assessed): one of its place’s open routes from where they live or anywhere that is in; a second replaces it; agree then takes it","security":[{"bearerAuth":[]}],"parameters":[{"schema":{"type":"string","format":"uuid"},"required":true,"name":"personId","in":"path"},{"schema":{"type":"string","format":"uuid"},"required":true,"name":"handle","in":"path"}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/PlanBindRoute"}}}},"responses":{"200":{"description":"The plan, as the page reads it.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/PlanAnswer"}}}},"401":{"description":"Missing or invalid access token (`unauthenticated`).","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorEnvelope"}}}},"403":{"description":"No organisation in the token (`no_organisation_context`), or not permitted (`forbidden`).","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorEnvelope"}}}},"404":{"description":"Not found, or not visible to the caller.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorEnvelope"}}}},"409":{"description":"`bad_stage`, `no_plan`, `residency_closed` or `tombstoned`; `bad_stage`, `no_plan`, `route_broken`, `nothing_published` or `space_gone`.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorEnvelope"}}}},"422":{"description":"`unknown_route`, `route_elsewhere`, `invalid_role` or `alternative_is_primary`.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorEnvelope"}}}},"503":{"description":"`people_unavailable`: the key personal data is sealed with is not set (SETUP §7i).","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorEnvelope"}}}}}}},"/organisations/current/resources/{resourceId}/plans":{"get":{"tags":["plans"],"summary":"Counts per stage and reviews due within thirty days: numbers, never a name; `update` on it","security":[{"bearerAuth":[]}],"parameters":[{"schema":{"type":"string","format":"uuid"},"required":true,"name":"resourceId","in":"path"},{"schema":{"type":"string","pattern":"^[a-z][a-z0-9-]{0,39}$","example":"person-page","description":"Where the read came from; recorded in the read log. `api` when not given."},"required":false,"description":"Where the read came from; recorded in the read log. `api` when not given.","name":"funnel","in":"query"}],"responses":{"200":{"description":"The counts.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/PlansSummary"}}}},"401":{"description":"Missing or invalid access token (`unauthenticated`).","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorEnvelope"}}}},"403":{"description":"No organisation in the token (`no_organisation_context`), or not permitted (`forbidden`).","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorEnvelope"}}}},"404":{"description":"Not found, or not visible to the caller.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorEnvelope"}}}},"422":{"description":"`cannot_hold_people`.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorEnvelope"}}}}}}},"/organisations/current/resources/{resourceId}/plans/column":{"get":{"tags":["plans"],"summary":"Per current residency in it: the plan’s stage and review due, and the one line the daily view shows; `update` on it","security":[{"bearerAuth":[]}],"parameters":[{"schema":{"type":"string","format":"uuid"},"required":true,"name":"resourceId","in":"path"},{"schema":{"type":"string","pattern":"^[a-z][a-z0-9-]{0,39}$","example":"person-page","description":"Where the read came from; recorded in the read log. `api` when not given."},"required":false,"description":"Where the read came from; recorded in the read log. `api` when not given.","name":"funnel","in":"query"}],"responses":{"200":{"description":"One row per residency.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/PlanColumn"}}}},"401":{"description":"Missing or invalid access token (`unauthenticated`).","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorEnvelope"}}}},"403":{"description":"No organisation in the token (`no_organisation_context`), or not permitted (`forbidden`).","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorEnvelope"}}}},"404":{"description":"Not found, or not visible to the caller.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorEnvelope"}}}},"422":{"description":"`cannot_hold_people`.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorEnvelope"}}}}}}},"/organisations/current/resources/{resourceId}/extract":{"get":{"tags":["plans"],"summary":"The four-field extract: only the residencies whose consent to share stands; no name, no route, no snapshot","security":[{"bearerAuth":[]}],"parameters":[{"schema":{"type":"string","format":"uuid"},"required":true,"name":"resourceId","in":"path"}],"responses":{"200":{"description":"The rows.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Extract"}}}},"401":{"description":"Missing or invalid access token (`unauthenticated`).","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorEnvelope"}}}},"403":{"description":"No organisation in the token (`no_organisation_context`), or not permitted (`forbidden`).","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorEnvelope"}}}},"404":{"description":"Not found, or not visible to the caller.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorEnvelope"}}}},"422":{"description":"`cannot_hold_people`.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorEnvelope"}}}}}}},"/organisations/current/resources/{resourceId}/extract/given":{"post":{"tags":["plans"],"summary":"Record the extract as given — the day, how, and to which authority — as a document on it","security":[{"bearerAuth":[]}],"parameters":[{"schema":{"type":"string","format":"uuid"},"required":true,"name":"resourceId","in":"path"}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ExtractGiven"}}}},"responses":{"201":{"description":"The record of it.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ExtractGivenAnswer"}}}},"401":{"description":"Missing or invalid access token (`unauthenticated`).","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorEnvelope"}}}},"403":{"description":"No organisation in the token (`no_organisation_context`), or not permitted (`forbidden`).","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorEnvelope"}}}},"404":{"description":"Not found, or not visible to the caller.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorEnvelope"}}}},"409":{"description":"`nothing_published`.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorEnvelope"}}}},"422":{"description":"Invalid body, `cannot_hold_people`, `invalid_how`, `invalid_to`, `invalid_on`, `invalid_value` or `starts_before_current`.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorEnvelope"}}}}}}},"/organisations/current/resources/{resourceId}/assets":{"get":{"tags":["assets"],"summary":"The assets kept in a resource, the spaces they may name now, and Point’s types","security":[{"bearerAuth":[]}],"parameters":[{"schema":{"type":"string","format":"uuid"},"required":true,"name":"resourceId","in":"path"},{"schema":{"type":"string","enum":["true","false"]},"required":false,"name":"retired","in":"query"}],"responses":{"200":{"description":"Its assets.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/AssetsInTheRegister"}}}},"401":{"description":"Missing or invalid access token (`unauthenticated`).","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorEnvelope"}}}},"403":{"description":"No organisation in the token (`no_organisation_context`), or not permitted (`forbidden`).","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorEnvelope"}}}},"404":{"description":"Not found, or not visible to the caller.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorEnvelope"}}}},"422":{"description":"`cannot_hold_assets`.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorEnvelope"}}}}}},"post":{"tags":["assets"],"summary":"Add an asset of a type, kept in one of its published spaces, with its answers, model and label; `create` on it","security":[{"bearerAuth":[]}],"parameters":[{"schema":{"type":"string","format":"uuid"},"required":true,"name":"resourceId","in":"path"}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/AddAssetToTheRegister"}}}},"responses":{"201":{"description":"The asset.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/AssetInTheRegister"}}}},"401":{"description":"Missing or invalid access token (`unauthenticated`).","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorEnvelope"}}}},"403":{"description":"No organisation in the token (`no_organisation_context`), or not permitted (`forbidden`).","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorEnvelope"}}}},"404":{"description":"Not found, or not visible to the caller.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorEnvelope"}}}},"409":{"description":"`nothing_published` or `label_taken` (in words that name nothing).","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorEnvelope"}}}},"422":{"description":"Invalid body, `cannot_hold_assets`, `unknown_asset_kind`, `invalid_label`, `invalid_serial`, `invalid_value`, `unknown_model`, `not_living_here`, `cannot_open_person`, `invalid_label_code`, `unknown_version` or `nothing_published`, `unknown_space` or `space_twice`.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorEnvelope"}}}}}}},"/organisations/current/resources/{resourceId}/assets/adding":{"get":{"tags":["assets"],"summary":"What adding an asset of one type asks: its questions, the spaces, the organisation’s models of it; `create` on it","security":[{"bearerAuth":[]}],"parameters":[{"schema":{"type":"string","format":"uuid"},"required":true,"name":"resourceId","in":"path"},{"schema":{"type":"string","minLength":1,"maxLength":60},"required":false,"name":"kind","in":"query"}],"responses":{"200":{"description":"What to ask.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/AddingAnAsset"}}}},"401":{"description":"Missing or invalid access token (`unauthenticated`).","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorEnvelope"}}}},"403":{"description":"No organisation in the token (`no_organisation_context`), or not permitted (`forbidden`).","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorEnvelope"}}}},"404":{"description":"Not found, or not visible to the caller.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorEnvelope"}}}},"422":{"description":"`unknown_asset_kind` or `cannot_hold_assets`.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorEnvelope"}}}}}}},"/organisations/current/resources/{resourceId}/assets/people":{"get":{"tags":["assets"],"summary":"Whom an asset may be for: the people living here whom the reader may read, named (a read, logged); `create` on it","security":[{"bearerAuth":[]}],"parameters":[{"schema":{"type":"string","format":"uuid"},"required":true,"name":"resourceId","in":"path"}],"responses":{"200":{"description":"Whom it may be for.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/WhomAnAssetMayBeFor"}}}},"401":{"description":"Missing or invalid access token (`unauthenticated`).","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorEnvelope"}}}},"403":{"description":"No organisation in the token (`no_organisation_context`), or not permitted (`forbidden`).","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorEnvelope"}}}},"404":{"description":"Not found, or not visible to the caller.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorEnvelope"}}}},"422":{"description":"Invalid request.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorEnvelope"}}}}}}},"/organisations/current/asset-labels/{code}":{"get":{"tags":["assets"],"summary":"The asset a live POINT label is on (unique everywhere: the web address its QR code holds), for a reader who may read where it is kept; any other code, or anything else, is not found","security":[{"bearerAuth":[]}],"parameters":[{"schema":{"type":"string","minLength":1,"maxLength":200},"required":true,"name":"code","in":"path"}],"responses":{"200":{"description":"The asset.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/AssetFoundByLabel"}}}},"401":{"description":"Missing or invalid access token (`unauthenticated`).","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorEnvelope"}}}},"403":{"description":"No organisation in the token (`no_organisation_context`), or not permitted (`forbidden`).","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorEnvelope"}}}},"404":{"description":"Not found, or not visible to the caller.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorEnvelope"}}}},"422":{"description":"Invalid request.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorEnvelope"}}}}}}},"/organisations/current/assets/{assetId}":{"get":{"tags":["assets"],"summary":"An asset: what it is, what its model can do, its details, labels, files and history, where it is kept and whom it is for","security":[{"bearerAuth":[]}],"parameters":[{"schema":{"type":"string","format":"uuid"},"required":true,"name":"assetId","in":"path"}],"responses":{"200":{"description":"The asset.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/AssetInTheRegister"}}}},"401":{"description":"Missing or invalid access token (`unauthenticated`).","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorEnvelope"}}}},"403":{"description":"No organisation in the token (`no_organisation_context`), or not permitted (`forbidden`).","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorEnvelope"}}}},"404":{"description":"Not found, or not visible to the caller.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorEnvelope"}}}},"422":{"description":"Invalid request.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorEnvelope"}}}}}}},"/organisations/current/assets/{assetId}/relabel":{"post":{"tags":["assets"],"summary":"Its name and serial number, as they should be; either may be cleared; `update` on it","security":[{"bearerAuth":[]}],"parameters":[{"schema":{"type":"string","format":"uuid"},"required":true,"name":"assetId","in":"path"}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/RelabelAsset"}}}},"responses":{"200":{"description":"The asset, renamed.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/AssetInTheRegister"}}}},"401":{"description":"Missing or invalid access token (`unauthenticated`).","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorEnvelope"}}}},"403":{"description":"No organisation in the token (`no_organisation_context`), or not permitted (`forbidden`).","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorEnvelope"}}}},"404":{"description":"Not found, or not visible to the caller.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorEnvelope"}}}},"409":{"description":"`unchanged` or `retired`.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorEnvelope"}}}},"422":{"description":"Invalid body, `invalid_label` or `invalid_serial`.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorEnvelope"}}}}}}},"/organisations/current/assets/{assetId}/move":{"post":{"tags":["assets"],"summary":"It is kept in another published space now; `update` on it","security":[{"bearerAuth":[]}],"parameters":[{"schema":{"type":"string","format":"uuid"},"required":true,"name":"assetId","in":"path"}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/MoveAsset"}}}},"responses":{"200":{"description":"The asset, moved.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/AssetInTheRegister"}}}},"401":{"description":"Missing or invalid access token (`unauthenticated`).","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorEnvelope"}}}},"403":{"description":"No organisation in the token (`no_organisation_context`), or not permitted (`forbidden`).","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorEnvelope"}}}},"404":{"description":"Not found, or not visible to the caller.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorEnvelope"}}}},"409":{"description":"`already_there`, `retired` or `nothing_published`.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorEnvelope"}}}},"422":{"description":"Invalid body, `nothing_published`, `unknown_space` or `space_twice`.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorEnvelope"}}}}}}},"/organisations/current/assets/{assetId}/reassign":{"post":{"tags":["assets"],"summary":"The published spaces it is for, now; `update` on it","security":[{"bearerAuth":[]}],"parameters":[{"schema":{"type":"string","format":"uuid"},"required":true,"name":"assetId","in":"path"}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ReassignAsset"}}}},"responses":{"200":{"description":"The asset, reassigned.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/AssetInTheRegister"}}}},"401":{"description":"Missing or invalid access token (`unauthenticated`).","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorEnvelope"}}}},"403":{"description":"No organisation in the token (`no_organisation_context`), or not permitted (`forbidden`).","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorEnvelope"}}}},"404":{"description":"Not found, or not visible to the caller.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorEnvelope"}}}},"409":{"description":"`unchanged`, `retired` or `nothing_published`.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorEnvelope"}}}},"422":{"description":"Invalid body, `nothing_published`, `unknown_space` or `space_twice`.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorEnvelope"}}}}}}},"/organisations/current/assets/{assetId}/for":{"post":{"tags":["assets"],"summary":"Whom it is for, now: nobody in particular, spaces, or a person in a space; `update` on it","security":[{"bearerAuth":[]}],"parameters":[{"schema":{"type":"string","format":"uuid"},"required":true,"name":"assetId","in":"path"}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/AssetFor"}}}},"responses":{"200":{"description":"The asset.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/AssetInTheRegister"}}}},"401":{"description":"Missing or invalid access token (`unauthenticated`).","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorEnvelope"}}}},"403":{"description":"No organisation in the token (`no_organisation_context`), or not permitted (`forbidden`).","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorEnvelope"}}}},"404":{"description":"Not found, or not visible to the caller.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorEnvelope"}}}},"409":{"description":"`unchanged`, `retired` or `nothing_published`.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorEnvelope"}}}},"422":{"description":"Invalid body, `no_spaces`, `not_living_here`, `cannot_open_person` or `nothing_published`, `unknown_space` or `space_twice`.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorEnvelope"}}}}}}},"/organisations/current/assets/{assetId}/details":{"post":{"tags":["assets"],"summary":"Its answers, who provided it, since when and its model, as they should be (new rows; the old kept); `update` on it","security":[{"bearerAuth":[]}],"parameters":[{"schema":{"type":"string","format":"uuid"},"required":true,"name":"assetId","in":"path"}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/AssetDetails"}}}},"responses":{"200":{"description":"The asset.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/AssetInTheRegister"}}}},"401":{"description":"Missing or invalid access token (`unauthenticated`).","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorEnvelope"}}}},"403":{"description":"No organisation in the token (`no_organisation_context`), or not permitted (`forbidden`).","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorEnvelope"}}}},"404":{"description":"Not found, or not visible to the caller.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorEnvelope"}}}},"409":{"description":"`unchanged` or `retired`.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorEnvelope"}}}},"422":{"description":"Invalid body, `invalid_value`, `invalid_date`, `unknown_model` or `no_models`.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorEnvelope"}}}}}}},"/organisations/current/assets/{assetId}/model-values":{"post":{"tags":["assets"],"summary":"What its model can do, as it should be: answers on the model, shown on every asset of it; `update` on this one","security":[{"bearerAuth":[]}],"parameters":[{"schema":{"type":"string","format":"uuid"},"required":true,"name":"assetId","in":"path"}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/AssetModelValues"}}}},"responses":{"200":{"description":"The asset.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/AssetInTheRegister"}}}},"401":{"description":"Missing or invalid access token (`unauthenticated`).","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorEnvelope"}}}},"403":{"description":"No organisation in the token (`no_organisation_context`), or not permitted (`forbidden`).","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorEnvelope"}}}},"404":{"description":"Not found, or not visible to the caller.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorEnvelope"}}}},"409":{"description":"`no_model`, `unchanged` or `retired`.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorEnvelope"}}}},"422":{"description":"Invalid body or `invalid_value`.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorEnvelope"}}}}}}},"/organisations/current/assets/{assetId}/labels":{"post":{"tags":["assets"],"summary":"A label on it: one it has already (a code and whose), or a Point label; the first in wins; `update` on it","security":[{"bearerAuth":[]}],"parameters":[{"schema":{"type":"string","format":"uuid"},"required":true,"name":"assetId","in":"path"}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/AssetLabel"}}}},"responses":{"201":{"description":"The asset, labelled; `warnings` says if it is a shop barcode.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/AssetInTheRegister"}}}},"401":{"description":"Missing or invalid access token (`unauthenticated`).","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorEnvelope"}}}},"403":{"description":"No organisation in the token (`no_organisation_context`), or not permitted (`forbidden`).","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorEnvelope"}}}},"404":{"description":"Not found, or not visible to the caller.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorEnvelope"}}}},"409":{"description":"`label_taken` (in words that name nothing), `no_change` or `retired`.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorEnvelope"}}}},"422":{"description":"Invalid body, `invalid_label_code`, `invalid_whose` or `point_label_given`.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorEnvelope"}}}}}}},"/organisations/current/assets/{assetId}/labels/{labelId}/end":{"post":{"tags":["assets"],"summary":"A label came off it; it stays in its history; `update` on it","security":[{"bearerAuth":[]}],"parameters":[{"schema":{"type":"string","format":"uuid"},"required":true,"name":"assetId","in":"path"},{"schema":{"type":"string","format":"uuid"},"required":true,"name":"labelId","in":"path"}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/AssetLabelEnded"}}}},"responses":{"200":{"description":"The asset.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/AssetInTheRegister"}}}},"401":{"description":"Missing or invalid access token (`unauthenticated`).","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorEnvelope"}}}},"403":{"description":"No organisation in the token (`no_organisation_context`), or not permitted (`forbidden`).","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorEnvelope"}}}},"404":{"description":"Not found, or not visible to the caller.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorEnvelope"}}}},"409":{"description":"`retired`.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorEnvelope"}}}},"422":{"description":"Invalid body or `not_its_label`.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorEnvelope"}}}}}}},"/organisations/current/assets/{assetId}/out-of-use":{"post":{"tags":["assets"],"summary":"Take it out of use, with why if said; `update` on it","security":[{"bearerAuth":[]}],"parameters":[{"schema":{"type":"string","format":"uuid"},"required":true,"name":"assetId","in":"path"}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/AssetStatus"}}}},"responses":{"200":{"description":"The asset.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/AssetInTheRegister"}}}},"401":{"description":"Missing or invalid access token (`unauthenticated`).","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorEnvelope"}}}},"403":{"description":"No organisation in the token (`no_organisation_context`), or not permitted (`forbidden`).","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorEnvelope"}}}},"404":{"description":"Not found, or not visible to the caller.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorEnvelope"}}}},"409":{"description":"`unchanged` or `retired`.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorEnvelope"}}}},"422":{"description":"Invalid request.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorEnvelope"}}}}}}},"/organisations/current/assets/{assetId}/in-use":{"post":{"tags":["assets"],"summary":"Put it back in use, with why if said; `update` on it","security":[{"bearerAuth":[]}],"parameters":[{"schema":{"type":"string","format":"uuid"},"required":true,"name":"assetId","in":"path"}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/AssetStatus"}}}},"responses":{"200":{"description":"The asset.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/AssetInTheRegister"}}}},"401":{"description":"Missing or invalid access token (`unauthenticated`).","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorEnvelope"}}}},"403":{"description":"No organisation in the token (`no_organisation_context`), or not permitted (`forbidden`).","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorEnvelope"}}}},"404":{"description":"Not found, or not visible to the caller.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorEnvelope"}}}},"409":{"description":"`unchanged` or `retired`.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorEnvelope"}}}},"422":{"description":"Invalid request.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorEnvelope"}}}}}}},"/organisations/current/assets/{assetId}/retire":{"post":{"tags":["assets"],"summary":"It is no longer kept: retired, with why; `update` on it","security":[{"bearerAuth":[]}],"parameters":[{"schema":{"type":"string","format":"uuid"},"required":true,"name":"assetId","in":"path"}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/RetireAsset"}}}},"responses":{"200":{"description":"The asset, retired.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/AssetInTheRegister"}}}},"401":{"description":"Missing or invalid access token (`unauthenticated`).","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorEnvelope"}}}},"403":{"description":"No organisation in the token (`no_organisation_context`), or not permitted (`forbidden`).","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorEnvelope"}}}},"404":{"description":"Not found, or not visible to the caller.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorEnvelope"}}}},"409":{"description":"`retired`.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorEnvelope"}}}},"422":{"description":"Invalid body or `invalid_reason`.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorEnvelope"}}}}}}},"/organisations/current/assets/{assetId}/files/uploads":{"post":{"tags":["assets"],"summary":"Start an upload of a photo or document to it; `update` on it","security":[{"bearerAuth":[]}],"parameters":[{"schema":{"type":"string","format":"uuid"},"required":true,"name":"assetId","in":"path"}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/AssetUploadStart"}}}},"responses":{"201":{"description":"Where to put the bytes.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/StartedUpload"}}}},"401":{"description":"Missing or invalid access token (`unauthenticated`).","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorEnvelope"}}}},"403":{"description":"No organisation in the token (`no_organisation_context`), or not permitted (`forbidden`).","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorEnvelope"}}}},"404":{"description":"Not found, or not visible to the caller.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorEnvelope"}}}},"422":{"description":"Invalid body, `unsupported_media` or `media_too_large`.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorEnvelope"}}}}}}},"/organisations/current/assets/{assetId}/files/uploads/{uploadId}":{"put":{"tags":["assets"],"summary":"An upload’s bytes, through the API, where the store takes none of its own (development)","security":[{"bearerAuth":[]}],"parameters":[{"schema":{"type":"string","format":"uuid"},"required":true,"name":"assetId","in":"path"},{"schema":{"type":"string","format":"uuid"},"required":true,"name":"uploadId","in":"path"}],"responses":{"204":{"description":"Received."},"401":{"description":"Missing or invalid access token (`unauthenticated`).","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorEnvelope"}}}},"403":{"description":"No organisation in the token (`no_organisation_context`), or not permitted (`forbidden`).","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorEnvelope"}}}},"404":{"description":"Not found, or not visible to the caller.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorEnvelope"}}}},"409":{"description":"`upload_direct`: put the bytes where the upload said to.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorEnvelope"}}}},"413":{"description":"`media_too_large`.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorEnvelope"}}}},"422":{"description":"Invalid request.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorEnvelope"}}}}}}},"/organisations/current/assets/{assetId}/files/uploads/{uploadId}/complete":{"post":{"tags":["assets"],"summary":"Complete an upload: the bytes kept by their sha-256 and recorded on it as a photo or document, its name sealed; audited","security":[{"bearerAuth":[]}],"parameters":[{"schema":{"type":"string","format":"uuid"},"required":true,"name":"assetId","in":"path"},{"schema":{"type":"string","format":"uuid"},"required":true,"name":"uploadId","in":"path"}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/AssetUploadComplete"}}}},"responses":{"201":{"description":"Kept on it.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/AssetFileMade"}}}},"401":{"description":"Missing or invalid access token (`unauthenticated`).","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorEnvelope"}}}},"403":{"description":"No organisation in the token (`no_organisation_context`), or not permitted (`forbidden`).","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorEnvelope"}}}},"404":{"description":"Not found, or not visible to the caller.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorEnvelope"}}}},"410":{"description":"`media_erased`.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorEnvelope"}}}},"422":{"description":"Invalid body, `unsupported_media`, `media_too_large` or `no_change`.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorEnvelope"}}}}}}},"/organisations/current/assets/{assetId}/files/{fileId}/content":{"get":{"tags":["assets"],"summary":"One of its files, or its preview, for whoever may read it","security":[{"bearerAuth":[]}],"parameters":[{"schema":{"type":"string","format":"uuid"},"required":true,"name":"assetId","in":"path"},{"schema":{"type":"string","format":"uuid"},"required":true,"name":"fileId","in":"path"},{"schema":{"type":"string","enum":["original","display","thumb"],"default":"original"},"required":false,"name":"variant","in":"query"},{"schema":{"type":"string","enum":["1"],"description":"`1` to download rather than show."},"required":false,"description":"`1` to download rather than show.","name":"download","in":"query"}],"responses":{"200":{"description":"The bytes, from a store that hands out no URLs (development)."},"302":{"description":"Where to fetch the file for the next few minutes."},"401":{"description":"Missing or invalid access token (`unauthenticated`).","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorEnvelope"}}}},"403":{"description":"No organisation in the token (`no_organisation_context`), or not permitted (`forbidden`).","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorEnvelope"}}}},"404":{"description":"Not found, or not visible to the caller.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorEnvelope"}}}},"410":{"description":"`media_erased`: erased under an erasure request.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorEnvelope"}}}},"422":{"description":"Invalid request.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorEnvelope"}}}}}}},"/organisations/current/assets/{assetId}/files/{fileId}/detach":{"post":{"tags":["assets"],"summary":"A photo or document taken off it (it stays the organisation’s file); `update` on it","security":[{"bearerAuth":[]}],"parameters":[{"schema":{"type":"string","format":"uuid"},"required":true,"name":"assetId","in":"path"},{"schema":{"type":"string","format":"uuid"},"required":true,"name":"fileId","in":"path"}],"responses":{"201":{"description":"Taken off.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/AssetFileMade"}}}},"401":{"description":"Missing or invalid access token (`unauthenticated`).","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorEnvelope"}}}},"403":{"description":"No organisation in the token (`no_organisation_context`), or not permitted (`forbidden`).","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorEnvelope"}}}},"404":{"description":"Not found, or not visible to the caller.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorEnvelope"}}}},"422":{"description":"`not_its_file`.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorEnvelope"}}}}}}},"/organisations/current/resources/{resourceId}/asset-labels/{code}":{"get":{"tags":["assets"],"summary":"The asset a live label of this resource is on; resolved within it only, never across the organisation; `read` on it","security":[{"bearerAuth":[]}],"parameters":[{"schema":{"type":"string","format":"uuid"},"required":true,"name":"resourceId","in":"path"},{"schema":{"type":"string","minLength":1,"maxLength":200},"required":true,"name":"code","in":"path"}],"responses":{"200":{"description":"The asset.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/AssetFoundByLabel"}}}},"401":{"description":"Missing or invalid access token (`unauthenticated`).","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorEnvelope"}}}},"403":{"description":"No organisation in the token (`no_organisation_context`), or not permitted (`forbidden`).","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorEnvelope"}}}},"404":{"description":"Not found, or not visible to the caller.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorEnvelope"}}}},"422":{"description":"Invalid request.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorEnvelope"}}}}}}},"/organisations/current/resources/{resourceId}/assets/due":{"get":{"tags":["assets"],"summary":"What is due in a resource, for the person asking: each asset, its labels, its agreed checks and services, and each checklist in force; `check` on it","security":[{"bearerAuth":[]}],"parameters":[{"schema":{"type":"string","format":"uuid"},"required":true,"name":"resourceId","in":"path"}],"responses":{"200":{"description":"What is due.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/WhatIsDueInAPlace"}}}},"401":{"description":"Missing or invalid access token (`unauthenticated`).","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorEnvelope"}}}},"403":{"description":"No organisation in the token (`no_organisation_context`), or not permitted (`forbidden`).","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorEnvelope"}}}},"404":{"description":"Not found, or not visible to the caller.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorEnvelope"}}}},"422":{"description":"Invalid request.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorEnvelope"}}}}}}},"/organisations/current/resources/{resourceId}/asset-checklists":{"get":{"tags":["assets"],"summary":"Its checklists for the assets kept in it, at their latest versions; `read` on it","security":[{"bearerAuth":[]}],"parameters":[{"schema":{"type":"string","format":"uuid"},"required":true,"name":"resourceId","in":"path"}],"responses":{"200":{"description":"Its checklists.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/AnAssetPlacesChecklists"}}}},"401":{"description":"Missing or invalid access token (`unauthenticated`).","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorEnvelope"}}}},"403":{"description":"No organisation in the token (`no_organisation_context`), or not permitted (`forbidden`).","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorEnvelope"}}}},"404":{"description":"Not found, or not visible to the caller.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorEnvelope"}}}},"422":{"description":"Invalid request.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorEnvelope"}}}}}},"post":{"tags":["assets"],"summary":"A checklist made from nothing, for one type; `update` on the resource","security":[{"bearerAuth":[]}],"parameters":[{"schema":{"type":"string","format":"uuid"},"required":true,"name":"resourceId","in":"path"}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/MakeAChecklist"}}}},"responses":{"201":{"description":"The checklist, at version 1.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/AnAssetPlacesChecklist"}}}},"401":{"description":"Missing or invalid access token (`unauthenticated`).","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorEnvelope"}}}},"403":{"description":"No organisation in the token (`no_organisation_context`), or not permitted (`forbidden`).","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorEnvelope"}}}},"404":{"description":"Not found, or not visible to the caller.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorEnvelope"}}}},"422":{"description":"Invalid body, `unknown_asset_kind`, `no_lines`, `no_problems` or another refusal in words.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorEnvelope"}}}}}}},"/organisations/current/resources/{resourceId}/asset-checklists/{checklistId}":{"get":{"tags":["assets"],"summary":"One of its checklists: its lines and problems, its versions, Point’s beside it, and what uses it; `read` on the resource","security":[{"bearerAuth":[]}],"parameters":[{"schema":{"type":"string","format":"uuid"},"required":true,"name":"resourceId","in":"path"},{"schema":{"type":"string","format":"uuid"},"required":true,"name":"checklistId","in":"path"}],"responses":{"200":{"description":"The checklist.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/AnAssetPlacesChecklist"}}}},"401":{"description":"Missing or invalid access token (`unauthenticated`).","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorEnvelope"}}}},"403":{"description":"No organisation in the token (`no_organisation_context`), or not permitted (`forbidden`).","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorEnvelope"}}}},"404":{"description":"Not found, or not visible to the caller.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorEnvelope"}}}},"422":{"description":"Invalid request.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorEnvelope"}}}}}},"post":{"tags":["assets"],"summary":"Its checklist saved as a new version; Point’s never changes; `update` on the resource","security":[{"bearerAuth":[]}],"parameters":[{"schema":{"type":"string","format":"uuid"},"required":true,"name":"resourceId","in":"path"},{"schema":{"type":"string","format":"uuid"},"required":true,"name":"checklistId","in":"path"}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/SaveAChecklist"}}}},"responses":{"200":{"description":"The checklist, at its new version.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/AnAssetPlacesChecklist"}}}},"401":{"description":"Missing or invalid access token (`unauthenticated`).","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorEnvelope"}}}},"403":{"description":"No organisation in the token (`no_organisation_context`), or not permitted (`forbidden`).","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorEnvelope"}}}},"404":{"description":"Not found, or not visible to the caller.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorEnvelope"}}}},"409":{"description":"`changed_meanwhile` or `unchanged`.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorEnvelope"}}}},"422":{"description":"Invalid body, `no_lines`, `no_problems` or another refusal in words.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorEnvelope"}}}}}}},"/organisations/current/assets/{assetId}/upkeep":{"post":{"tags":["assets"],"summary":"A check or service agreed on it, from its type’s suggestion or from nothing, or a new version of one; nothing is due until agreed; `update` on it","security":[{"bearerAuth":[]}],"parameters":[{"schema":{"type":"string","format":"uuid"},"required":true,"name":"assetId","in":"path"}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/AgreeACheckOrService"}}}},"responses":{"201":{"description":"Agreed.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/CheckOrServiceAgreed"}}}},"401":{"description":"Missing or invalid access token (`unauthenticated`).","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorEnvelope"}}}},"403":{"description":"No organisation in the token (`no_organisation_context`), or not permitted (`forbidden`).","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorEnvelope"}}}},"404":{"description":"Not found, or not visible to the caller.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorEnvelope"}}}},"409":{"description":"`already_agreed` or `retired`.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorEnvelope"}}}},"422":{"description":"Invalid body, `no_when`, `invalid_source`, `choose_checklist` or another refusal in words.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorEnvelope"}}}}}}},"/organisations/current/assets/{assetId}/upkeep/{upkeepId}/end":{"post":{"tags":["assets"],"summary":"A check or service it no longer has: a new version that ends it; `update` on it","security":[{"bearerAuth":[]}],"parameters":[{"schema":{"type":"string","format":"uuid"},"required":true,"name":"assetId","in":"path"},{"schema":{"type":"string","format":"uuid"},"required":true,"name":"upkeepId","in":"path"}],"responses":{"201":{"description":"Ended.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/CheckOrServiceAgreed"}}}},"401":{"description":"Missing or invalid access token (`unauthenticated`).","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorEnvelope"}}}},"403":{"description":"No organisation in the token (`no_organisation_context`), or not permitted (`forbidden`).","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorEnvelope"}}}},"404":{"description":"Not found, or not visible to the caller.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorEnvelope"}}}},"422":{"description":"`not_its_upkeep`.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorEnvelope"}}}}}}},"/organisations/current/assets/{assetId}/upkeep/{upkeepId}/checking":{"get":{"tags":["assets"],"summary":"What doing a check needs: the asset, its checklist at the version in force, the competence needed, who is signing; `check` on it","security":[{"bearerAuth":[]}],"parameters":[{"schema":{"type":"string","format":"uuid"},"required":true,"name":"assetId","in":"path"},{"schema":{"type":"string","format":"uuid"},"required":true,"name":"upkeepId","in":"path"}],"responses":{"200":{"description":"The check to do.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/DoingACheck"}}}},"401":{"description":"Missing or invalid access token (`unauthenticated`).","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorEnvelope"}}}},"403":{"description":"No organisation in the token (`no_organisation_context`), or not permitted (`forbidden`).","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorEnvelope"}}}},"404":{"description":"Not found, or not visible to the caller.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorEnvelope"}}}},"422":{"description":"`not_its_check`.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorEnvelope"}}}}}}},"/organisations/current/assets/{assetId}/used":{"post":{"tags":["assets"],"summary":"It has been used: what an after-use check is due from; `check` on it","security":[{"bearerAuth":[]}],"parameters":[{"schema":{"type":"string","format":"uuid"},"required":true,"name":"assetId","in":"path"}],"responses":{"201":{"description":"Recorded.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/AssetUsed"}}}},"401":{"description":"Missing or invalid access token (`unauthenticated`).","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorEnvelope"}}}},"403":{"description":"No organisation in the token (`no_organisation_context`), or not permitted (`forbidden`).","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorEnvelope"}}}},"404":{"description":"Not found, or not visible to the caller.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorEnvelope"}}}},"409":{"description":"`retired`.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorEnvelope"}}}},"422":{"description":"Invalid request.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorEnvelope"}}}}}}},"/organisations/current/assets/{assetId}/checks":{"post":{"tags":["assets"],"summary":"A check signed and sealed; its id made by the client, so the same check sent again is recorded once; `check` on it","security":[{"bearerAuth":[]}],"parameters":[{"schema":{"type":"string","format":"uuid"},"required":true,"name":"assetId","in":"path"}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/SignACheck"}}}},"responses":{"200":{"description":"Sent before, with the same answers: the check as first recorded.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ASignedCheck"}}}},"201":{"description":"Signed and sealed.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ASignedCheck"}}}},"401":{"description":"Missing or invalid access token (`unauthenticated`).","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorEnvelope"}}}},"403":{"description":"No organisation in the token (`no_organisation_context`), or not permitted (`forbidden`).","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorEnvelope"}}}},"404":{"description":"Not found, or not visible to the caller.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorEnvelope"}}}},"409":{"description":"`check_already_recorded` (a different check with this id) or `retired`.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorEnvelope"}}}},"422":{"description":"Invalid body, `unanswered`, `unknown_problem`, `unknown_photo`, `not_its_check` or another refusal in words.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorEnvelope"}}}}}}},"/organisations/current/assets/{assetId}/checks/{recordId}":{"get":{"tags":["assets"],"summary":"A signed check, read-only, and the notes beneath it; `read` on it","security":[{"bearerAuth":[]}],"parameters":[{"schema":{"type":"string","format":"uuid"},"required":true,"name":"assetId","in":"path"},{"schema":{"type":"string","format":"uuid"},"required":true,"name":"recordId","in":"path"}],"responses":{"200":{"description":"The signed check.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ASignedCheck"}}}},"401":{"description":"Missing or invalid access token (`unauthenticated`).","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorEnvelope"}}}},"403":{"description":"No organisation in the token (`no_organisation_context`), or not permitted (`forbidden`).","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorEnvelope"}}}},"404":{"description":"Not found, or not visible to the caller.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorEnvelope"}}}},"422":{"description":"Invalid request.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorEnvelope"}}}}}}},"/organisations/current/assets/{assetId}/checks/{recordId}/notes":{"post":{"tags":["assets"],"summary":"A note beneath a signed check: the check never changes; `update` on it","security":[{"bearerAuth":[]}],"parameters":[{"schema":{"type":"string","format":"uuid"},"required":true,"name":"assetId","in":"path"},{"schema":{"type":"string","format":"uuid"},"required":true,"name":"recordId","in":"path"}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/NoteOnACheck"}}}},"responses":{"201":{"description":"The signed check, with the note beneath it.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ASignedCheck"}}}},"401":{"description":"Missing or invalid access token (`unauthenticated`).","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorEnvelope"}}}},"403":{"description":"No organisation in the token (`no_organisation_context`), or not permitted (`forbidden`).","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorEnvelope"}}}},"404":{"description":"Not found, or not visible to the caller.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorEnvelope"}}}},"422":{"description":"Invalid body or `invalid_words`.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorEnvelope"}}}}}}},"/organisations/current/assets/{assetId}/checks/{recordId}/photos/{mediaId}/content":{"get":{"tags":["assets"],"summary":"A photo a signed check names, or its preview, for whoever may read it","security":[{"bearerAuth":[]}],"parameters":[{"schema":{"type":"string","format":"uuid"},"required":true,"name":"assetId","in":"path"},{"schema":{"type":"string","format":"uuid"},"required":true,"name":"recordId","in":"path"},{"schema":{"type":"string","format":"uuid"},"required":true,"name":"mediaId","in":"path"},{"schema":{"type":"string","enum":["original","display","thumb"],"default":"original"},"required":false,"name":"variant","in":"query"},{"schema":{"type":"string","enum":["1"],"description":"`1` to download rather than show."},"required":false,"description":"`1` to download rather than show.","name":"download","in":"query"}],"responses":{"200":{"description":"The bytes, from a store that hands out no URLs (development)."},"302":{"description":"Where to fetch the file for the next few minutes."},"401":{"description":"Missing or invalid access token (`unauthenticated`).","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorEnvelope"}}}},"403":{"description":"No organisation in the token (`no_organisation_context`), or not permitted (`forbidden`).","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorEnvelope"}}}},"404":{"description":"Not found, or not visible to the caller.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorEnvelope"}}}},"410":{"description":"`media_erased`: erased under an erasure request.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorEnvelope"}}}},"422":{"description":"Invalid request.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorEnvelope"}}}}}}},"/organisations/current/assets/{assetId}/check-photos/uploads":{"post":{"tags":["assets"],"summary":"Start an upload of a photo for a check on it; `check` on it","security":[{"bearerAuth":[]}],"parameters":[{"schema":{"type":"string","format":"uuid"},"required":true,"name":"assetId","in":"path"}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/CheckPhotoUploadStart"}}}},"responses":{"201":{"description":"Where to put the bytes.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/StartedUpload"}}}},"401":{"description":"Missing or invalid access token (`unauthenticated`).","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorEnvelope"}}}},"403":{"description":"No organisation in the token (`no_organisation_context`), or not permitted (`forbidden`).","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorEnvelope"}}}},"404":{"description":"Not found, or not visible to the caller.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorEnvelope"}}}},"422":{"description":"Invalid body, `unsupported_media` or `media_too_large`.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorEnvelope"}}}}}}},"/organisations/current/assets/{assetId}/check-photos/uploads/{uploadId}":{"put":{"tags":["assets"],"summary":"A check photo’s bytes, through the API, where the store takes none of its own (development)","security":[{"bearerAuth":[]}],"parameters":[{"schema":{"type":"string","format":"uuid"},"required":true,"name":"assetId","in":"path"},{"schema":{"type":"string","format":"uuid"},"required":true,"name":"uploadId","in":"path"}],"responses":{"204":{"description":"Received."},"401":{"description":"Missing or invalid access token (`unauthenticated`).","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorEnvelope"}}}},"403":{"description":"No organisation in the token (`no_organisation_context`), or not permitted (`forbidden`).","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorEnvelope"}}}},"404":{"description":"Not found, or not visible to the caller.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorEnvelope"}}}},"409":{"description":"`upload_direct`: put the bytes where the upload said to.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorEnvelope"}}}},"413":{"description":"`media_too_large`.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorEnvelope"}}}},"422":{"description":"Invalid request.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorEnvelope"}}}}}}},"/organisations/current/assets/{assetId}/check-photos/uploads/{uploadId}/complete":{"post":{"tags":["assets"],"summary":"Complete a check photo’s upload: kept by its sha-256; its id is what the check names; `check` on it","security":[{"bearerAuth":[]}],"parameters":[{"schema":{"type":"string","format":"uuid"},"required":true,"name":"assetId","in":"path"},{"schema":{"type":"string","format":"uuid"},"required":true,"name":"uploadId","in":"path"}],"responses":{"201":{"description":"Kept.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/CheckPhotoKept"}}}},"401":{"description":"Missing or invalid access token (`unauthenticated`).","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorEnvelope"}}}},"403":{"description":"No organisation in the token (`no_organisation_context`), or not permitted (`forbidden`).","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorEnvelope"}}}},"404":{"description":"Not found, or not visible to the caller.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorEnvelope"}}}},"410":{"description":"`media_erased`.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorEnvelope"}}}},"422":{"description":"`unsupported_media` or `media_too_large`.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorEnvelope"}}}}}}},"/organisations/current/asset-settings":{"get":{"tags":["assets"],"summary":"The register’s settings for the organisation: whether people are reminded about checks that are due (on until said); `read` on the organisation","security":[{"bearerAuth":[]}],"responses":{"200":{"description":"The settings.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/AssetSettings"}}}},"401":{"description":"Missing or invalid access token (`unauthenticated`).","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorEnvelope"}}}},"403":{"description":"No organisation in the token (`no_organisation_context`), or not permitted (`forbidden`).","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorEnvelope"}}}},"404":{"description":"Not found, or not visible to the caller.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorEnvelope"}}}},"422":{"description":"Invalid request.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorEnvelope"}}}}}},"put":{"tags":["assets"],"summary":"Sets whether people are reminded about checks that are due; `update` on the organisation; the same again writes nothing","security":[{"bearerAuth":[]}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/SetAssetSettings"}}}},"responses":{"200":{"description":"The settings now.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/AssetSettings"}}}},"401":{"description":"Missing or invalid access token (`unauthenticated`).","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorEnvelope"}}}},"403":{"description":"No organisation in the token (`no_organisation_context`), or not permitted (`forbidden`).","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorEnvelope"}}}},"404":{"description":"Not found, or not visible to the caller.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorEnvelope"}}}},"422":{"description":"Invalid request.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorEnvelope"}}}}}}},"/organisations/current/resources/{resourceId}/boards":{"get":{"tags":["risks"],"summary":"The two boards for a place’s current published version — pegs merged, most cautious wins; narrowed on request","security":[{"bearerAuth":[]}],"parameters":[{"schema":{"type":"string","format":"uuid"},"required":true,"name":"resourceId","in":"path"},{"schema":{"type":"string","pattern":"^category:[a-z0-9-]{1,60}$"},"required":false,"name":"category","in":"query"},{"schema":{"type":"string","pattern":"^[a-z][a-z-]{0,39}$"},"required":false,"name":"origin","in":"query"},{"schema":{"type":"string","pattern":"^[a-z][a-z-]{0,39}$"},"required":false,"name":"domain","in":"query"}],"responses":{"200":{"description":"Its boards: colour against an id, nothing else.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Boards"}}}},"401":{"description":"Missing or invalid access token (`unauthenticated`).","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorEnvelope"}}}},"403":{"description":"No organisation in the token (`no_organisation_context`), or not permitted (`forbidden`).","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorEnvelope"}}}},"404":{"description":"Not found, or not visible to the caller.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorEnvelope"}}}},"422":{"description":"`cannot_hold_risk`, `unknown_category` or `unknown_domain`.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorEnvelope"}}}}}}},"/organisations/current/resources/{resourceId}/space-records":{"get":{"tags":["risks"],"summary":"What is on each space here, counted — for the publish review; counts only, never a name, not read-logged","security":[{"bearerAuth":[]}],"parameters":[{"schema":{"type":"string","format":"uuid"},"required":true,"name":"resourceId","in":"path"}],"responses":{"200":{"description":"Each space with a live record on it, counted.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/SpaceRecords"}}}},"401":{"description":"Missing or invalid access token (`unauthenticated`).","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorEnvelope"}}}},"403":{"description":"No organisation in the token (`no_organisation_context`), or not permitted (`forbidden`).","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorEnvelope"}}}},"404":{"description":"Not found, or not visible to the caller.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorEnvelope"}}}},"422":{"description":"`cannot_hold_risk`.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorEnvelope"}}}}}}},"/organisations/current/resources/{resourceId}/risks":{"get":{"tags":["risks"],"summary":"The risks an assessment recorded, in force in a place, and each space’s most cautious","security":[{"bearerAuth":[]}],"parameters":[{"schema":{"type":"string","format":"uuid"},"required":true,"name":"resourceId","in":"path"},{"schema":{"type":"string","pattern":"^[a-z][a-z0-9-]{0,39}$"},"required":false,"name":"funnel","in":"query"}],"responses":{"200":{"description":"Its risks.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/RisksHere"}}}},"401":{"description":"Missing or invalid access token (`unauthenticated`).","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorEnvelope"}}}},"403":{"description":"No organisation in the token (`no_organisation_context`), or not permitted (`forbidden`).","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorEnvelope"}}}},"404":{"description":"Not found, or not visible to the caller.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorEnvelope"}}}},"422":{"description":"`cannot_hold_risk`.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorEnvelope"}}}}}}},"/organisations/current/people/{personId}/residencies/{residencyId}/risks":{"get":{"tags":["risks"],"summary":"One residency’s risks in force, its person’s and its space’s, each with its latest reason; nobody else’s","security":[{"bearerAuth":[]}],"parameters":[{"schema":{"type":"string","format":"uuid"},"required":true,"name":"personId","in":"path"},{"schema":{"type":"string","format":"uuid"},"required":true,"name":"residencyId","in":"path"},{"schema":{"type":"string","pattern":"^[a-z][a-z0-9-]{0,39}$"},"required":false,"name":"funnel","in":"query"}],"responses":{"200":{"description":"Her risks.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ResidencyRisks"}}}},"401":{"description":"Missing or invalid access token (`unauthenticated`).","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorEnvelope"}}}},"403":{"description":"No organisation in the token (`no_organisation_context`), or not permitted (`forbidden`).","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorEnvelope"}}}},"404":{"description":"Not found, or not visible to the caller.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorEnvelope"}}}},"422":{"description":"Invalid request.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorEnvelope"}}}},"503":{"description":"`people_unavailable`: the key reasons are sealed with is not set (SETUP §7i).","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorEnvelope"}}}}}}},"/organisations/current/risks/{riskId}":{"get":{"tags":["risks"],"summary":"A risk and every entry on it, each reason opened","security":[{"bearerAuth":[]}],"parameters":[{"schema":{"type":"string","format":"uuid"},"required":true,"name":"riskId","in":"path"},{"schema":{"type":"string","pattern":"^[a-z][a-z0-9-]{0,39}$"},"required":false,"name":"funnel","in":"query"}],"responses":{"200":{"description":"The risk.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Risk"}}}},"401":{"description":"Missing or invalid access token (`unauthenticated`).","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorEnvelope"}}}},"403":{"description":"No organisation in the token (`no_organisation_context`), or not permitted (`forbidden`).","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorEnvelope"}}}},"404":{"description":"Not found, or not visible to the caller.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorEnvelope"}}}},"422":{"description":"Invalid request.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorEnvelope"}}}},"503":{"description":"`people_unavailable`: the key reasons are sealed with is not set (SETUP §7i).","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorEnvelope"}}}}}}},"/organisations/current/resources/{resourceId}/rcos/new":{"get":{"tags":["rcos"],"summary":"What the form needs to record one, or add to one: the spaces, who is in each, the lists, where it was started from; `create` on the place","security":[{"bearerAuth":[]}],"parameters":[{"schema":{"type":"string","format":"uuid"},"required":true,"name":"resourceId","in":"path"},{"schema":{"type":"string","minLength":1,"maxLength":200},"required":false,"name":"space","in":"query"},{"schema":{"type":"string","format":"uuid"},"required":false,"name":"residency","in":"query"},{"schema":{"type":"string","format":"uuid"},"required":false,"name":"rco","in":"query"},{"schema":{"type":"string","format":"uuid"},"required":false,"name":"stay","in":"query"}],"responses":{"200":{"description":"The form.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/RcoForm"}}}},"401":{"description":"Missing or invalid access token (`unauthenticated`).","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorEnvelope"}}}},"403":{"description":"No organisation in the token (`no_organisation_context`), or not permitted (`forbidden`).","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorEnvelope"}}}},"404":{"description":"Not found, or not visible to the caller.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorEnvelope"}}}},"409":{"description":"`nothing_published`, `rco_ended`, `not_here` or `stay_not_in`.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorEnvelope"}}}},"422":{"description":"`unknown_space` or `cannot_hold_risk`.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorEnvelope"}}}},"503":{"description":"`people_unavailable`: the key the words are sealed with is not set (SETUP §7i).","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorEnvelope"}}}}}}},"/organisations/current/resources/{resourceId}/rcos":{"post":{"tags":["rcos"],"summary":"Record one, or add to its ledger (new lines, lines closed or replaced, the colour, the exit); with `decide`, the whole card decided in the same press (`update` on the place); `create` on the place","security":[{"bearerAuth":[]}],"parameters":[{"schema":{"type":"string","format":"uuid"},"required":true,"name":"resourceId","in":"path"}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/RecordRco"}}}},"responses":{"201":{"description":"Recorded.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/RecordedRco"}}}},"401":{"description":"Missing or invalid access token (`unauthenticated`).","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorEnvelope"}}}},"403":{"description":"No organisation in the token (`no_organisation_context`), or not permitted (`forbidden`).","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorEnvelope"}}}},"404":{"description":"Not found, or not visible to the caller.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorEnvelope"}}}},"409":{"description":"`nothing_published`, `nothing_changed`, `rco_moved_on` or `rco_in_force`.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorEnvelope"}}}},"422":{"description":"Invalid body, or a field refused, each named: `kind_needed`, `kind_not_yet`, `space_needed`, `choose_who`, `not_here`, `reasons_needed`, `unknown_reason`, `theme_in_ledger`, `replace_one`, `line_not_added`, `line_not_in_force`, `line_not_waiting`, `close_reason_needed`, `nothing_on_the_card`, `unknown_consideration`, `consideration_without_theme`, `may_not_tick`, `no_considerations`, `source_needed`, `colour_needed`, `never_green`, `exit_needed`, `exit_not_offered`, `why_needed`, `until_needed`, `not_an_occupant`, `not_tied`, `one_per_space`, `node_not_yet`, `not_this_node`, `kind_not_here`, `theme_not_here`, `standing_needed`, `review_needed` or `too_long`.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorEnvelope"}}}},"503":{"description":"`people_unavailable`: the key the words are sealed with is not set (SETUP §7i).","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorEnvelope"}}}}}},"get":{"tags":["rcos"],"summary":"A place’s, or one space’s: waiting for a decision first, then overdue, then by review date; ended last; `read` on it","security":[{"bearerAuth":[]}],"parameters":[{"schema":{"type":"string","format":"uuid"},"required":true,"name":"resourceId","in":"path"},{"schema":{"type":"string","minLength":1,"maxLength":200},"required":false,"name":"space","in":"query"}],"responses":{"200":{"description":"Its risk-critical observations.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/RcosHere"}}}},"401":{"description":"Missing or invalid access token (`unauthenticated`).","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorEnvelope"}}}},"403":{"description":"No organisation in the token (`no_organisation_context`), or not permitted (`forbidden`).","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorEnvelope"}}}},"404":{"description":"Not found, or not visible to the caller.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorEnvelope"}}}},"422":{"description":"`cannot_hold_risk`.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorEnvelope"}}}},"503":{"description":"`people_unavailable`: the key the words are sealed with is not set (SETUP §7i).","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorEnvelope"}}}}}}},"/organisations/current/people/{personId}/residencies/{residencyId}/rcos":{"get":{"tags":["rcos"],"summary":"The person’s own on one residency, in force first, and the offer standing there to whoever may record; `read` on the person and the place","security":[{"bearerAuth":[]}],"parameters":[{"schema":{"type":"string","format":"uuid"},"required":true,"name":"personId","in":"path"},{"schema":{"type":"string","format":"uuid"},"required":true,"name":"residencyId","in":"path"}],"responses":{"200":{"description":"Their risk-critical observations, and the offer.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ResidencyRcos"}}}},"401":{"description":"Missing or invalid access token (`unauthenticated`).","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorEnvelope"}}}},"403":{"description":"No organisation in the token (`no_organisation_context`), or not permitted (`forbidden`).","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorEnvelope"}}}},"404":{"description":"Not found, or not visible to the caller.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorEnvelope"}}}},"422":{"description":"Invalid request.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorEnvelope"}}}},"503":{"description":"`people_unavailable`: the key the words are sealed with is not set (SETUP §7i).","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorEnvelope"}}}}}}},"/organisations/current/people/{personId}/residencies/{residencyId}/rcos/identify":{"post":{"tags":["rcos"],"summary":"The offer answered *this is them*: an occupant’s pulled onto this residency by name, its history kept; `create` on the place; with `decide`, decided in the same press (`update` on the place), the moved exit raising its job","security":[{"bearerAuth":[]}],"parameters":[{"schema":{"type":"string","format":"uuid"},"required":true,"name":"personId","in":"path"},{"schema":{"type":"string","format":"uuid"},"required":true,"name":"residencyId","in":"path"}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/IdentifyRco"}}}},"responses":{"200":{"description":"Identified; `waiting` when it now waits for a decision.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/IdentifiedRco"}}}},"401":{"description":"Missing or invalid access token (`unauthenticated`).","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorEnvelope"}}}},"403":{"description":"No organisation in the token (`no_organisation_context`), or not permitted (`forbidden`).","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorEnvelope"}}}},"404":{"description":"Not found, or not visible to the caller.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorEnvelope"}}}},"409":{"description":"`not_offered`, `rco_moved_on` or `rco_in_force` (the person has one here already).","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorEnvelope"}}}},"422":{"description":"Invalid body, `choose_who`, `standing_needed` or `review_needed`.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorEnvelope"}}}},"503":{"description":"`people_unavailable`: the key the words are sealed with is not set (SETUP §7i).","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorEnvelope"}}}}}}},"/organisations/current/people/{personId}/residencies/{residencyId}/rcos/neither":{"post":{"tags":["rcos"],"summary":"The offer answered *neither of them*: recorded for this person on each, never offered to them again; `create` on the place","security":[{"bearerAuth":[]}],"parameters":[{"schema":{"type":"string","format":"uuid"},"required":true,"name":"personId","in":"path"},{"schema":{"type":"string","format":"uuid"},"required":true,"name":"residencyId","in":"path"}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/NeitherRco"}}}},"responses":{"200":{"description":"Answered.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/AnsweredRco"}}}},"401":{"description":"Missing or invalid access token (`unauthenticated`).","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorEnvelope"}}}},"403":{"description":"No organisation in the token (`no_organisation_context`), or not permitted (`forbidden`).","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorEnvelope"}}}},"404":{"description":"Not found, or not visible to the caller.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorEnvelope"}}}},"409":{"description":"`not_offered` or `rco_moved_on`.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorEnvelope"}}}},"422":{"description":"Invalid body, or `choose_who`.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorEnvelope"}}}},"503":{"description":"`people_unavailable`: the key the words are sealed with is not set (SETUP §7i).","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorEnvelope"}}}}}}},"/organisations/current/rcos/{rcoId}":{"get":{"tags":["rcos"],"summary":"One: what the crew would read, what it holds, what happens next, what happened; `read` on its place","security":[{"bearerAuth":[]}],"parameters":[{"schema":{"type":"string","format":"uuid"},"required":true,"name":"rcoId","in":"path"}],"responses":{"200":{"description":"It.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Rco"}}}},"401":{"description":"Missing or invalid access token (`unauthenticated`).","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorEnvelope"}}}},"403":{"description":"No organisation in the token (`no_organisation_context`), or not permitted (`forbidden`).","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorEnvelope"}}}},"404":{"description":"Not found, or not visible to the caller.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorEnvelope"}}}},"422":{"description":"Invalid request.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorEnvelope"}}}},"503":{"description":"`people_unavailable`: the key the words are sealed with is not set (SETUP §7i).","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorEnvelope"}}}}}}},"/organisations/current/rcos/{rcoId}/review":{"post":{"tags":["rcos"],"summary":"It is all still true: every line confirmed in one press where nothing it rested on changed and nothing waits, the review restarted; `update` on its place","security":[{"bearerAuth":[]}],"parameters":[{"schema":{"type":"string","format":"uuid"},"required":true,"name":"rcoId","in":"path"}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/StillTrue"}}}},"responses":{"200":{"description":"Confirmed.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Rco"}}}},"401":{"description":"Missing or invalid access token (`unauthenticated`).","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorEnvelope"}}}},"403":{"description":"No organisation in the token (`no_organisation_context`), or not permitted (`forbidden`).","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorEnvelope"}}}},"404":{"description":"Not found, or not visible to the caller.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorEnvelope"}}}},"409":{"description":"`changed_since`, `change_waiting`, `not_decided` or `rco_ended`.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorEnvelope"}}}},"422":{"description":"Invalid body, `standing_needed` or `review_needed`.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorEnvelope"}}}},"503":{"description":"`people_unavailable`: the key the words are sealed with is not set (SETUP §7i).","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorEnvelope"}}}}}}},"/organisations/current/rcos/{rcoId}/end":{"post":{"tags":["rcos"],"summary":"End it, by name, with a reason from the list and words if given (sealed); `update` on its place","security":[{"bearerAuth":[]}],"parameters":[{"schema":{"type":"string","format":"uuid"},"required":true,"name":"rcoId","in":"path"}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/EndRco"}}}},"responses":{"200":{"description":"Ended.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Rco"}}}},"401":{"description":"Missing or invalid access token (`unauthenticated`).","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorEnvelope"}}}},"403":{"description":"No organisation in the token (`no_organisation_context`), or not permitted (`forbidden`).","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorEnvelope"}}}},"404":{"description":"Not found, or not visible to the caller.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorEnvelope"}}}},"409":{"description":"`rco_ended`.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorEnvelope"}}}},"422":{"description":"Invalid body, `reason_needed` or `too_long`.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorEnvelope"}}}},"503":{"description":"`people_unavailable`: the key the words are sealed with is not set (SETUP §7i).","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorEnvelope"}}}}}}},"/organisations/current/rcos/{rcoId}/actions":{"post":{"tags":["rcos"],"summary":"A guest’s observation only (spec 74 §3): tick, assign or cross out a suggested action, add one, or ask the guest; a new version each time; `create` on its place","security":[{"bearerAuth":[]}],"parameters":[{"schema":{"type":"string","format":"uuid"},"required":true,"name":"rcoId","in":"path"}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/RcoActionInput"}}}},"responses":{"200":{"description":"The observation, with its actions.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Rco"}}}},"401":{"description":"Missing or invalid access token (`unauthenticated`).","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorEnvelope"}}}},"403":{"description":"No organisation in the token (`no_organisation_context`), or not permitted (`forbidden`).","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorEnvelope"}}}},"404":{"description":"Not found, or not visible to the caller.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorEnvelope"}}}},"409":{"description":"`not_a_guests`, `rco_ended`, `action_moved_on` or `nothing_changed`.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorEnvelope"}}}},"422":{"description":"Invalid body, `unknown_suggestion`, `unknown_post`, `unknown_member`, `not_living_here`, `not_staying_here`, `own_stay`, `who_words_needed`, `unknown_asset`, `unknown_place`, `question_needed`, `nothing_arranged` or `too_long`.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorEnvelope"}}}},"503":{"description":"`people_unavailable`: the key the words are sealed with is not set (SETUP §7i).","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorEnvelope"}}}}}}},"/organisations/current/rcos/{rcoId}/actions/choices":{"get":{"tags":["rcos"],"summary":"What an action on a guest’s observation may name: the place’s posts, its members on duty, its assets, its spaces and doors, and as the one assisting the people living there and the other guests here now (the naming is a read, logged); `create` on its place","security":[{"bearerAuth":[]}],"parameters":[{"schema":{"type":"string","format":"uuid"},"required":true,"name":"rcoId","in":"path"}],"responses":{"200":{"description":"The choices.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/RcoActionChoices"}}}},"401":{"description":"Missing or invalid access token (`unauthenticated`).","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorEnvelope"}}}},"403":{"description":"No organisation in the token (`no_organisation_context`), or not permitted (`forbidden`).","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorEnvelope"}}}},"404":{"description":"Not found, or not visible to the caller.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorEnvelope"}}}},"409":{"description":"`not_a_guests`.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorEnvelope"}}}},"422":{"description":"Invalid request.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorEnvelope"}}}},"503":{"description":"`people_unavailable`: the key the words are sealed with is not set (SETUP §7i).","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorEnvelope"}}}}}}},"/organisations/current/rcos":{"get":{"tags":["rcos"],"summary":"All of them across the places the member reaches and may read, waiting first, then overdue; or one place’s, with `resource`","security":[{"bearerAuth":[]}],"parameters":[{"schema":{"type":"string","format":"uuid","description":"Narrow it to one place the member may read; every one they reach when not given."},"required":false,"description":"Narrow it to one place the member may read; every one they reach when not given.","name":"resource","in":"query"}],"responses":{"200":{"description":"All of them.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/RcoRegister"}}}},"401":{"description":"Missing or invalid access token (`unauthenticated`).","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorEnvelope"}}}},"403":{"description":"No organisation in the token (`no_organisation_context`), or not permitted (`forbidden`).","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorEnvelope"}}}},"404":{"description":"Not found, or not visible to the caller.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorEnvelope"}}}},"422":{"description":"`cannot_hold_risk`.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorEnvelope"}}}},"503":{"description":"`people_unavailable`: the key the words are sealed with is not set (SETUP §7i).","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorEnvelope"}}}}}}},"/organisations/current/people/{personId}/residencies/{residencyId}/rco-permission":{"get":{"tags":["rco permission"],"summary":"RCO permission on one residency: the answer per domain, with when, how and who, and where the reaching out stands; `update` on them","security":[{"bearerAuth":[]}],"parameters":[{"schema":{"type":"string","format":"uuid"},"required":true,"name":"personId","in":"path"},{"schema":{"type":"string","format":"uuid"},"required":true,"name":"residencyId","in":"path"},{"schema":{"type":"string","pattern":"^[a-z][a-z0-9-]{0,39}$","example":"person-page","description":"Where the read came from; recorded in the read log. `api` when not given."},"required":false,"description":"Where the read came from; recorded in the read log. `api` when not given.","name":"funnel","in":"query"}],"responses":{"200":{"description":"Their RCO permission.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/RcoPermission"}}}},"401":{"description":"Missing or invalid access token (`unauthenticated`).","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorEnvelope"}}}},"403":{"description":"No organisation in the token (`no_organisation_context`), or not permitted (`forbidden`).","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorEnvelope"}}}},"404":{"description":"Not found, or not visible to the caller.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorEnvelope"}}}},"422":{"description":"Invalid request.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorEnvelope"}}}},"503":{"description":"`people_unavailable`: the key personal data is sealed with is not set (SETUP §7i).","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorEnvelope"}}}}}}},"/organisations/current/people/{personId}/residencies/{residencyId}/rco-permission/open":{"post":{"tags":["rco permission"],"summary":"*Ask about RCO permission*, by hand: the reaching out opened, one per person, covering both domains; `update` on them","security":[{"bearerAuth":[]}],"parameters":[{"schema":{"type":"string","format":"uuid"},"required":true,"name":"personId","in":"path"},{"schema":{"type":"string","format":"uuid"},"required":true,"name":"residencyId","in":"path"}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/RcoPermissionOpen"}}}},"responses":{"201":{"description":"Opened: trying.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/RcoPermissionOpened"}}}},"401":{"description":"Missing or invalid access token (`unauthenticated`).","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorEnvelope"}}}},"403":{"description":"No organisation in the token (`no_organisation_context`), or not permitted (`forbidden`).","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorEnvelope"}}}},"404":{"description":"Not found, or not visible to the caller.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorEnvelope"}}}},"409":{"description":"`permission_open` (one is under way), `permission_reached`, `residency_closed` or `tombstoned`.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorEnvelope"}}}},"422":{"description":"Invalid body.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorEnvelope"}}}},"503":{"description":"`people_unavailable`: the key personal data is sealed with is not set (SETUP §7i).","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorEnvelope"}}}}}}},"/organisations/current/people/{personId}/residencies/{residencyId}/rco-permission/answers":{"post":{"tags":["rco permission"],"summary":"Record their answer, one press for both domains: yes or no for each answered, by the person or someone with authority to speak for them; a no asks whether the risk was explained; each closes the open one","security":[{"bearerAuth":[]}],"parameters":[{"schema":{"type":"string","format":"uuid"},"required":true,"name":"personId","in":"path"},{"schema":{"type":"string","format":"uuid"},"required":true,"name":"residencyId","in":"path"}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/RcoPermissionAnswersInput"}}}},"responses":{"201":{"description":"The answers, now in force.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/RcoPermissionAnswers"}}}},"401":{"description":"Missing or invalid access token (`unauthenticated`).","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorEnvelope"}}}},"403":{"description":"No organisation in the token (`no_organisation_context`), or not permitted (`forbidden`).","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorEnvelope"}}}},"404":{"description":"Not found, or not visible to the caller.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorEnvelope"}}}},"409":{"description":"`party_lapsed`, `residency_closed` or `tombstoned`.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorEnvelope"}}}},"422":{"description":"Invalid body, `nothing_answered`, `domain_twice`, `unknown_domain`, `unknown_answer`, `unknown_how`, `unknown_party`, `no_authority`, `risk_explained_required`, `explained_required`, `explained_only_when_explained`, `explained_only_for_no`, `invalid_explained`, `invalid_on` or `dates_out_of_order`.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorEnvelope"}}}},"503":{"description":"`people_unavailable`: the key personal data is sealed with is not set (SETUP §7i).","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorEnvelope"}}}}}}},"/organisations/current/people/{personId}/residencies/{residencyId}/rco-permission/attempts":{"post":{"tags":["rco permission"],"summary":"Record an attempt: a letter, a call or a visit, what happened, and a day to look again unless they were reached; only while trying","security":[{"bearerAuth":[]}],"parameters":[{"schema":{"type":"string","format":"uuid"},"required":true,"name":"personId","in":"path"},{"schema":{"type":"string","format":"uuid"},"required":true,"name":"residencyId","in":"path"}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/RcoPermissionAttemptInput"}}}},"responses":{"201":{"description":"Recorded.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/RcoPermissionEntry"}}}},"401":{"description":"Missing or invalid access token (`unauthenticated`).","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorEnvelope"}}}},"403":{"description":"No organisation in the token (`no_organisation_context`), or not permitted (`forbidden`).","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorEnvelope"}}}},"404":{"description":"Not found, or not visible to the caller.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorEnvelope"}}}},"409":{"description":"`not_trying`, `residency_closed` or `tombstoned`.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorEnvelope"}}}},"422":{"description":"Invalid body, `unknown_channel`, `unknown_outcome`, `look_again_required`, `look_again_not_when_reached`, `invalid_look_again_on`, `invalid_on`, `invalid_words` or `dates_out_of_order`.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorEnvelope"}}}},"503":{"description":"`people_unavailable`: the key personal data is sealed with is not set (SETUP §7i).","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorEnvelope"}}}}}}},"/organisations/current/people/{personId}/residencies/{residencyId}/rco-permission/cannot-decide":{"post":{"tags":["rco permission"],"summary":"They cannot decide, on this day, never why: who holds authority for them, or a decision in their best interests with its reason and a review day; while trying, or once reached","security":[{"bearerAuth":[]}],"parameters":[{"schema":{"type":"string","format":"uuid"},"required":true,"name":"personId","in":"path"},{"schema":{"type":"string","format":"uuid"},"required":true,"name":"residencyId","in":"path"}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/RcoPermissionCannotDecideInput"}}}},"responses":{"201":{"description":"Recorded.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/RcoPermissionEntry"}}}},"401":{"description":"Missing or invalid access token (`unauthenticated`).","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorEnvelope"}}}},"403":{"description":"No organisation in the token (`no_organisation_context`), or not permitted (`forbidden`).","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorEnvelope"}}}},"404":{"description":"Not found, or not visible to the caller.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorEnvelope"}}}},"409":{"description":"`not_trying`, `party_lapsed`, `residency_closed` or `tombstoned`.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorEnvelope"}}}},"422":{"description":"Invalid body, `unknown_party`, `no_authority`, `authority_or_decision`, `reason_required`, `review_required`, `invalid_review_on`, `invalid_on` or `dates_out_of_order`.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorEnvelope"}}}},"503":{"description":"`people_unavailable`: the key personal data is sealed with is not set (SETUP §7i).","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorEnvelope"}}}}}}},"/organisations/current/people/{personId}/residencies/{residencyId}/rco-permission/no-contact":{"post":{"tags":["rco permission"],"summary":"Could not establish contact: a named member’s conclusion, in words, with the attempts in front of them; only while trying","security":[{"bearerAuth":[]}],"parameters":[{"schema":{"type":"string","format":"uuid"},"required":true,"name":"personId","in":"path"},{"schema":{"type":"string","format":"uuid"},"required":true,"name":"residencyId","in":"path"}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/RcoPermissionNoContactInput"}}}},"responses":{"201":{"description":"Recorded.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/RcoPermissionEntry"}}}},"401":{"description":"Missing or invalid access token (`unauthenticated`).","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorEnvelope"}}}},"403":{"description":"No organisation in the token (`no_organisation_context`), or not permitted (`forbidden`).","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorEnvelope"}}}},"404":{"description":"Not found, or not visible to the caller.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorEnvelope"}}}},"409":{"description":"`not_trying`, `no_attempts`, `residency_closed` or `tombstoned`.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorEnvelope"}}}},"422":{"description":"Invalid body, or `words_required`.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorEnvelope"}}}},"503":{"description":"`people_unavailable`: the key personal data is sealed with is not set (SETUP §7i).","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorEnvelope"}}}}}}},"/organisations/current/people/{personId}/residencies/{residencyId}/rco-permission/kept":{"post":{"tags":["rco permission"],"summary":"Keep it as internal: after a no in its domain, a refused RCO about them kept for your own staff, locked; recorded on the module, never on the RCO","security":[{"bearerAuth":[]}],"parameters":[{"schema":{"type":"string","format":"uuid"},"required":true,"name":"personId","in":"path"},{"schema":{"type":"string","format":"uuid"},"required":true,"name":"residencyId","in":"path"}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/RcoPermissionKeptInput"}}}},"responses":{"201":{"description":"Kept.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/RcoPermissionEntry"}}}},"401":{"description":"Missing or invalid access token (`unauthenticated`).","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorEnvelope"}}}},"403":{"description":"No organisation in the token (`no_organisation_context`), or not permitted (`forbidden`).","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorEnvelope"}}}},"404":{"description":"Not found, or not visible to the caller.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorEnvelope"}}}},"409":{"description":"`not_refused`, `already_kept`, `rco_ended`, `residency_closed` or `tombstoned`.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorEnvelope"}}}},"422":{"description":"Invalid body, or `unknown_rco`.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorEnvelope"}}}},"503":{"description":"`people_unavailable`: the key personal data is sealed with is not set (SETUP §7i).","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorEnvelope"}}}}}}},"/organisations/current/people/{personId}/residencies/{residencyId}/rco-permission/notified":{"post":{"tags":["rco permission"],"summary":"Record that you told them of a new RCO under their yes: when, and in person, by letter or by phone; the one notice, done by a member","security":[{"bearerAuth":[]}],"parameters":[{"schema":{"type":"string","format":"uuid"},"required":true,"name":"personId","in":"path"},{"schema":{"type":"string","format":"uuid"},"required":true,"name":"residencyId","in":"path"}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/RcoPermissionNotifiedInput"}}}},"responses":{"201":{"description":"Recorded.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/RcoPermissionEntry"}}}},"401":{"description":"Missing or invalid access token (`unauthenticated`).","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorEnvelope"}}}},"403":{"description":"No organisation in the token (`no_organisation_context`), or not permitted (`forbidden`).","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorEnvelope"}}}},"404":{"description":"Not found, or not visible to the caller.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorEnvelope"}}}},"409":{"description":"`no_notice`, `residency_closed` or `tombstoned`.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorEnvelope"}}}},"422":{"description":"Invalid body, `unknown_channel`, `invalid_on` or `dates_out_of_order`.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorEnvelope"}}}},"503":{"description":"`people_unavailable`: the key personal data is sealed with is not set (SETUP §7i).","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorEnvelope"}}}}}}},"/organisations/current/people/{personId}/residencies/{residencyId}/rco-permission/acknowledge":{"post":{"tags":["rco permission"],"summary":"Acknowledge an answer they gave in the Point app: you have seen it. It cannot hold the answer back or change it; the answer counted when it was given","security":[{"bearerAuth":[]}],"parameters":[{"schema":{"type":"string","format":"uuid"},"required":true,"name":"personId","in":"path"},{"schema":{"type":"string","format":"uuid"},"required":true,"name":"residencyId","in":"path"}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/RcoPermissionAcknowledgeInput"}}}},"responses":{"201":{"description":"Acknowledged.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/RcoPermissionEntry"}}}},"401":{"description":"Missing or invalid access token (`unauthenticated`).","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorEnvelope"}}}},"403":{"description":"No organisation in the token (`no_organisation_context`), or not permitted (`forbidden`).","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorEnvelope"}}}},"404":{"description":"Not found, or not visible to the caller.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorEnvelope"}}}},"409":{"description":"`already_acknowledged`, `residency_closed` or `tombstoned`.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorEnvelope"}}}},"422":{"description":"Invalid body, or `not_an_app_answer`.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorEnvelope"}}}},"503":{"description":"`people_unavailable`: the key personal data is sealed with is not set (SETUP §7i).","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorEnvelope"}}}}}}},"/organisations/current/rco-acceptance":{"get":{"tags":["rco permission"],"summary":"The statement on risk-critical observations, and whether the organisation has accepted these words; `read` on the organisation","security":[{"bearerAuth":[]}],"responses":{"200":{"description":"The statement, and its acceptance.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/RcoAcceptance"}}}},"401":{"description":"Missing or invalid access token (`unauthenticated`).","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorEnvelope"}}}},"403":{"description":"No organisation in the token (`no_organisation_context`), or not permitted (`forbidden`).","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorEnvelope"}}}},"404":{"description":"Not found, or not visible to the caller.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorEnvelope"}}}},"422":{"description":"Invalid request.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorEnvelope"}}}}}},"post":{"tags":["rco permission"],"summary":"Accept the statement on risk-critical observations for the organisation, its privacy notice confirmed; owners and administrators (`update` on the organisation)","security":[{"bearerAuth":[]}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/RcoAcceptanceInput"}}}},"responses":{"201":{"description":"Accepted.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/RcoAccepted"}}}},"401":{"description":"Missing or invalid access token (`unauthenticated`).","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorEnvelope"}}}},"403":{"description":"No organisation in the token (`no_organisation_context`), or not permitted (`forbidden`).","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorEnvelope"}}}},"404":{"description":"Not found, or not visible to the caller.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorEnvelope"}}}},"409":{"description":"`already_accepted` (these words, as this kind), or `words_changed`: the words shown are not the current ones.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorEnvelope"}}}},"422":{"description":"Invalid body, `organisation_kind_needed` or `privacy_notice_needed`.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorEnvelope"}}}}}}},"/organisations/current/rco-permission/counts":{"get":{"tags":["rco permission"],"summary":"RCO permission, counted: one place (`update` on it), or every place the member may update; counts only, never a name, a reason or a flat","security":[{"bearerAuth":[]}],"parameters":[{"schema":{"type":"string","format":"uuid"},"required":false,"name":"resource","in":"query"}],"responses":{"200":{"description":"The counts.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/RcoPermissionCounts"}}}},"401":{"description":"Missing or invalid access token (`unauthenticated`).","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorEnvelope"}}}},"403":{"description":"No organisation in the token (`no_organisation_context`), or not permitted (`forbidden`).","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorEnvelope"}}}},"404":{"description":"Not found, or not visible to the caller.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorEnvelope"}}}},"422":{"description":"Invalid query, or not a place that holds them.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorEnvelope"}}}}}}},"/organisations/current/occupancy":{"get":{"tags":["occupancy"],"summary":"Who the organisation’s places are for, as onboarding asked it; empty until answered","security":[{"bearerAuth":[]}],"responses":{"200":{"description":"What the organisation said.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Occupancy"}}}},"401":{"description":"Missing or invalid access token (`unauthenticated`).","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorEnvelope"}}}},"403":{"description":"No organisation in the token (`no_organisation_context`), or not permitted (`forbidden`).","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorEnvelope"}}}},"404":{"description":"Not found, or not visible to the caller.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorEnvelope"}}}},"422":{"description":"Invalid request.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorEnvelope"}}}}}},"put":{"tags":["occupancy"],"summary":"Replaces who the organisation’s places are for; `update` on the organisation; the same kinds again writes nothing","security":[{"bearerAuth":[]}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"type":"object","properties":{"kinds":{"type":"array","items":{"type":"string","enum":["residents","guests","care","pupils","staff"]},"minItems":1,"maxItems":5}},"required":["kinds"],"additionalProperties":false}}}},"responses":{"200":{"description":"What the organisation now says.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Occupancy"}}}},"401":{"description":"Missing or invalid access token (`unauthenticated`).","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorEnvelope"}}}},"403":{"description":"No organisation in the token (`no_organisation_context`), or not permitted (`forbidden`).","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorEnvelope"}}}},"404":{"description":"Not found, or not visible to the caller.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorEnvelope"}}}},"422":{"description":"Invalid request.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorEnvelope"}}}}}}},"/organisations/current/resources/{resourceId}/posts":{"get":{"tags":["staffing"],"summary":"The posts in a resource, open first, with where one may stand, who may provide it and the catalogues","security":[{"bearerAuth":[]}],"parameters":[{"schema":{"type":"string","format":"uuid"},"required":true,"name":"resourceId","in":"path"},{"schema":{"type":"string","enum":["true","false"]},"required":false,"name":"closed","in":"query"}],"responses":{"200":{"description":"Its posts.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/PostsHere"}}}},"401":{"description":"Missing or invalid access token (`unauthenticated`).","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorEnvelope"}}}},"403":{"description":"No organisation in the token (`no_organisation_context`), or not permitted (`forbidden`).","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorEnvelope"}}}},"404":{"description":"Not found, or not visible to the caller.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorEnvelope"}}}},"422":{"description":"`cannot_hold_posts`.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorEnvelope"}}}}}},"post":{"tags":["staffing"],"summary":"A post opens in one of its published places; `create` on it","security":[{"bearerAuth":[]}],"parameters":[{"schema":{"type":"string","format":"uuid"},"required":true,"name":"resourceId","in":"path"}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/OpenPost"}}}},"responses":{"201":{"description":"The post.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Post"}}}},"401":{"description":"Missing or invalid access token (`unauthenticated`).","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorEnvelope"}}}},"403":{"description":"No organisation in the token (`no_organisation_context`), or not permitted (`forbidden`).","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorEnvelope"}}}},"404":{"description":"Not found, or not visible to the caller.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorEnvelope"}}}},"409":{"description":"`nothing_published`.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorEnvelope"}}}},"422":{"description":"Invalid body, `cannot_hold_posts`, `unknown_staffing_role`, `invalid_role_words`, `unknown_scope`, `invalid_headcount`, `invalid_cover`, `unknown_competence`, `competence_twice`, `invalid_reach`, `unknown_provider`, `provider_not_an_organisation`, `invalid_provider_words` or `invalid_from_on`.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorEnvelope"}}}}}}},"/organisations/current/posts/{postId}":{"get":{"tags":["staffing"],"summary":"A post and its fillings, each filler named (a read, logged through the funnel) with what they hold of what it needs","security":[{"bearerAuth":[]}],"parameters":[{"schema":{"type":"string","format":"uuid"},"required":true,"name":"postId","in":"path"},{"schema":{"type":"string","pattern":"^[a-z][a-z0-9-]{0,39}$"},"required":false,"name":"funnel","in":"query"}],"responses":{"200":{"description":"The post.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Post"}}}},"401":{"description":"Missing or invalid access token (`unauthenticated`).","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorEnvelope"}}}},"403":{"description":"No organisation in the token (`no_organisation_context`), or not permitted (`forbidden`).","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorEnvelope"}}}},"404":{"description":"Not found, or not visible to the caller.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorEnvelope"}}}},"422":{"description":"Invalid request.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorEnvelope"}}}}}}},"/organisations/current/posts/{postId}/close":{"post":{"tags":["staffing"],"summary":"It closes on a day, once, and its open fillings end with it; `update` on it","security":[{"bearerAuth":[]}],"parameters":[{"schema":{"type":"string","format":"uuid"},"required":true,"name":"postId","in":"path"}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ClosePost"}}}},"responses":{"200":{"description":"The post, closed.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Post"}}}},"401":{"description":"Missing or invalid access token (`unauthenticated`).","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorEnvelope"}}}},"403":{"description":"No organisation in the token (`no_organisation_context`), or not permitted (`forbidden`).","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorEnvelope"}}}},"404":{"description":"Not found, or not visible to the caller.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorEnvelope"}}}},"409":{"description":"`already_closed`.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorEnvelope"}}}},"422":{"description":"Invalid body, `invalid_from_on`, `invalid_to_on` or `dates_out_of_order`.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorEnvelope"}}}}}}},"/organisations/current/posts/{postId}/fillings":{"post":{"tags":["staffing"],"summary":"Someone recorded where it stands fills it, as regular, relief or agency; `update` on it","security":[{"bearerAuth":[]}],"parameters":[{"schema":{"type":"string","format":"uuid"},"required":true,"name":"postId","in":"path"}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/FillPost"}}}},"responses":{"201":{"description":"The post, filled.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Post"}}}},"401":{"description":"Missing or invalid access token (`unauthenticated`).","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorEnvelope"}}}},"403":{"description":"No organisation in the token (`no_organisation_context`), or not permitted (`forbidden`).","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorEnvelope"}}}},"404":{"description":"Not found, or not visible to the caller.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorEnvelope"}}}},"409":{"description":"`post_closed` or `already_filling`.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorEnvelope"}}}},"422":{"description":"Invalid body, `unknown_person`, `invalid_filling_kind` or `invalid_from_on`.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorEnvelope"}}}}}}},"/organisations/current/posts/{postId}/fillings/{fillingId}/end":{"post":{"tags":["staffing"],"summary":"They no longer fill it, from a day, once; `update` on the post","security":[{"bearerAuth":[]}],"parameters":[{"schema":{"type":"string","format":"uuid"},"required":true,"name":"postId","in":"path"},{"schema":{"type":"string","format":"uuid"},"required":true,"name":"fillingId","in":"path"}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/EndFilling"}}}},"responses":{"200":{"description":"The post.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Post"}}}},"401":{"description":"Missing or invalid access token (`unauthenticated`).","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorEnvelope"}}}},"403":{"description":"No organisation in the token (`no_organisation_context`), or not permitted (`forbidden`).","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorEnvelope"}}}},"404":{"description":"Not found, or not visible to the caller.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorEnvelope"}}}},"409":{"description":"`already_ended`.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorEnvelope"}}}},"422":{"description":"Invalid body, `invalid_from_on`, `invalid_to_on` or `dates_out_of_order`.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorEnvelope"}}}}}}},"/organisations/current/resources/{resourceId}/cover":{"get":{"tags":["staffing"],"summary":"What covers a place at a time, in words and numbers, and what that proposes to an assessment — never a verdict","security":[{"bearerAuth":[]}],"parameters":[{"schema":{"type":"string","format":"uuid"},"required":true,"name":"resourceId","in":"path"},{"schema":{"type":"string","minLength":1,"maxLength":200},"required":false,"name":"at","in":"query"},{"schema":{"type":"string","minLength":1,"maxLength":40},"required":false,"name":"when","in":"query"}],"responses":{"200":{"description":"The cover.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Cover"}}}},"401":{"description":"Missing or invalid access token (`unauthenticated`).","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorEnvelope"}}}},"403":{"description":"No organisation in the token (`no_organisation_context`), or not permitted (`forbidden`).","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorEnvelope"}}}},"404":{"description":"Not found, or not visible to the caller.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorEnvelope"}}}},"422":{"description":"`cannot_hold_posts`, `unknown_place` or `invalid_when`.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorEnvelope"}}}}}}},"/organisations/current/people/{personId}/competences":{"get":{"tags":["staffing"],"summary":"What a person holds, current first; a read of them, logged through the funnel","security":[{"bearerAuth":[]}],"parameters":[{"schema":{"type":"string","format":"uuid"},"required":true,"name":"personId","in":"path"},{"schema":{"type":"string","pattern":"^[a-z][a-z0-9-]{0,39}$"},"required":false,"name":"funnel","in":"query"}],"responses":{"200":{"description":"Their competences.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Competences"}}}},"401":{"description":"Missing or invalid access token (`unauthenticated`).","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorEnvelope"}}}},"403":{"description":"No organisation in the token (`no_organisation_context`), or not permitted (`forbidden`).","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorEnvelope"}}}},"404":{"description":"Not found, or not visible to the caller.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorEnvelope"}}}},"422":{"description":"Invalid request.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorEnvelope"}}}}}},"post":{"tags":["staffing"],"summary":"They hold a competence, from a day, perhaps to a day, with a reference; `update` on them","security":[{"bearerAuth":[]}],"parameters":[{"schema":{"type":"string","format":"uuid"},"required":true,"name":"personId","in":"path"}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/Attest"}}}},"responses":{"201":{"description":"The attestation.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Attestation"}}}},"401":{"description":"Missing or invalid access token (`unauthenticated`).","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorEnvelope"}}}},"403":{"description":"No organisation in the token (`no_organisation_context`), or not permitted (`forbidden`).","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorEnvelope"}}}},"404":{"description":"Not found, or not visible to the caller.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorEnvelope"}}}},"409":{"description":"`tombstoned`.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorEnvelope"}}}},"422":{"description":"Invalid body, `unknown_competence`, `invalid_from_on`, `invalid_expires_on`, `dates_out_of_order` or `invalid_reference`.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorEnvelope"}}}}}}},"/organisations/current/people/{personId}/competences/{attestationId}/withdraw":{"post":{"tags":["staffing"],"summary":"An attestation withdrawn: kept, never rewritten; `update` on the person","security":[{"bearerAuth":[]}],"parameters":[{"schema":{"type":"string","format":"uuid"},"required":true,"name":"personId","in":"path"},{"schema":{"type":"string","format":"uuid"},"required":true,"name":"attestationId","in":"path"}],"responses":{"200":{"description":"The attestation, withdrawn.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Attestation"}}}},"401":{"description":"Missing or invalid access token (`unauthenticated`).","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorEnvelope"}}}},"403":{"description":"No organisation in the token (`no_organisation_context`), or not permitted (`forbidden`).","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorEnvelope"}}}},"404":{"description":"Not found, or not visible to the caller.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorEnvelope"}}}},"409":{"description":"`already_withdrawn` or `tombstoned`.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorEnvelope"}}}},"422":{"description":"Invalid request.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorEnvelope"}}}}}}},"/organisations/current/resources/{resourceId}/facts":{"get":{"tags":["facts"],"summary":"The open facts said about a resource, of one kind or all, each with its place named; `read` on it","security":[{"bearerAuth":[]}],"parameters":[{"schema":{"type":"string","format":"uuid"},"required":true,"name":"resourceId","in":"path"},{"schema":{"type":"string","minLength":1,"maxLength":80},"required":false,"name":"kind","in":"query"}],"responses":{"200":{"description":"Its open facts.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Facts"}}}},"401":{"description":"Missing or invalid access token (`unauthenticated`).","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorEnvelope"}}}},"403":{"description":"No organisation in the token (`no_organisation_context`), or not permitted (`forbidden`).","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorEnvelope"}}}},"404":{"description":"Not found, or not visible to the caller.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorEnvelope"}}}},"422":{"description":"`cannot_hold_facts` or `unknown_kind`.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorEnvelope"}}}}}},"post":{"tags":["facts"],"summary":"Record a fact on one of its published places; an open one of a single kind there closes; `update` on it","security":[{"bearerAuth":[]}],"parameters":[{"schema":{"type":"string","format":"uuid"},"required":true,"name":"resourceId","in":"path"}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/RecordFact"}}}},"responses":{"201":{"description":"The fact, and the one it closed.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/RecordedFact"}}}},"401":{"description":"Missing or invalid access token (`unauthenticated`).","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorEnvelope"}}}},"403":{"description":"No organisation in the token (`no_organisation_context`), or not permitted (`forbidden`).","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorEnvelope"}}}},"404":{"description":"Not found, or not visible to the caller.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorEnvelope"}}}},"409":{"description":"`nothing_published`.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorEnvelope"}}}},"422":{"description":"Invalid body, `cannot_hold_facts`, `unknown_kind`, `scope_not_allowed`, `unknown_scope`, `invalid_value` (with `details.fields`), `invalid_date` or `starts_before_current`.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorEnvelope"}}}}}}},"/organisations/current/resources/{resourceId}/facts/history":{"get":{"tags":["facts"],"summary":"Every fact of one kind set on one place, open and closed, newest first; `read` on it","security":[{"bearerAuth":[]}],"parameters":[{"schema":{"type":"string","format":"uuid"},"required":true,"name":"resourceId","in":"path"},{"schema":{"type":"string","minLength":1,"maxLength":80},"required":false,"name":"kind","in":"query"},{"schema":{"type":"string","minLength":1,"maxLength":20,"description":"The kind of place: the place itself, a section, a storey or a space, as the tool names them."},"required":false,"description":"The kind of place: the place itself, a section, a storey or a space, as the tool names them.","name":"scopeKind","in":"query"},{"schema":{"type":"string","minLength":1,"maxLength":200,"description":"The place’s id in the published document."},"required":false,"description":"The place’s id in the published document.","name":"scope","in":"query"}],"responses":{"200":{"description":"The history.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Facts"}}}},"401":{"description":"Missing or invalid access token (`unauthenticated`).","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorEnvelope"}}}},"403":{"description":"No organisation in the token (`no_organisation_context`), or not permitted (`forbidden`).","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorEnvelope"}}}},"404":{"description":"Not found, or not visible to the caller.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorEnvelope"}}}},"422":{"description":"`cannot_hold_facts`, `unknown_kind` or `unknown_scope`.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorEnvelope"}}}}}}},"/organisations/current/resources/{resourceId}/facts/effective":{"get":{"tags":["facts"],"summary":"What applies at a place, and where it came from — the place itself or one it sits in; `read` on it","security":[{"bearerAuth":[]}],"parameters":[{"schema":{"type":"string","format":"uuid"},"required":true,"name":"resourceId","in":"path"},{"schema":{"type":"string","minLength":1,"maxLength":80},"required":false,"name":"kind","in":"query"},{"schema":{"type":"string","minLength":1,"maxLength":200,"description":"The place’s id in the published document."},"required":false,"description":"The place’s id in the published document.","name":"at","in":"query"}],"responses":{"200":{"description":"What applies there.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/EffectiveFact"}}}},"401":{"description":"Missing or invalid access token (`unauthenticated`).","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorEnvelope"}}}},"403":{"description":"No organisation in the token (`no_organisation_context`), or not permitted (`forbidden`).","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorEnvelope"}}}},"404":{"description":"Not found, or not visible to the caller.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorEnvelope"}}}},"409":{"description":"`nothing_published`.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorEnvelope"}}}},"422":{"description":"`cannot_hold_facts`, `unknown_kind` or `unknown_scope`.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorEnvelope"}}}}}}},"/organisations/current/resources/{resourceId}/facts/summary":{"get":{"tags":["facts"],"summary":"Everything its facts page shows, worked out on the read and stored nowhere; `read` on it","security":[{"bearerAuth":[]}],"parameters":[{"schema":{"type":"string","format":"uuid"},"required":true,"name":"resourceId","in":"path"}],"responses":{"200":{"description":"The summary.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/FactsSummary"}}}},"401":{"description":"Missing or invalid access token (`unauthenticated`).","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorEnvelope"}}}},"403":{"description":"No organisation in the token (`no_organisation_context`), or not permitted (`forbidden`).","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorEnvelope"}}}},"404":{"description":"Not found, or not visible to the caller.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorEnvelope"}}}},"422":{"description":"`cannot_hold_facts`.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorEnvelope"}}}}}}},"/organisations/current/resources/{resourceId}/facts/{factId}/close":{"post":{"tags":["facts"],"summary":"It stopped being true: closed, once; `update` on the resource","security":[{"bearerAuth":[]}],"parameters":[{"schema":{"type":"string","format":"uuid"},"required":true,"name":"resourceId","in":"path"},{"schema":{"type":"string","format":"uuid"},"required":true,"name":"factId","in":"path"}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/CloseFact"}}}},"responses":{"200":{"description":"The fact, closed.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Fact"}}}},"401":{"description":"Missing or invalid access token (`unauthenticated`).","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorEnvelope"}}}},"403":{"description":"No organisation in the token (`no_organisation_context`), or not permitted (`forbidden`).","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorEnvelope"}}}},"404":{"description":"Not found, or not visible to the caller.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorEnvelope"}}}},"409":{"description":"`already_closed`.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorEnvelope"}}}},"422":{"description":"Invalid body, `cannot_hold_facts` or `invalid_date`.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorEnvelope"}}}}}}},"/organisations/current/resources/{resourceId}/fact-confirmations":{"post":{"tags":["facts"],"summary":"A plan confirms a fact it relies on: still true, changed, or not established; `update` on the resource","security":[{"bearerAuth":[]}],"parameters":[{"schema":{"type":"string","format":"uuid"},"required":true,"name":"resourceId","in":"path"}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ConfirmFact"}}}},"responses":{"201":{"description":"The confirmation, and the fact it changed to.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Confirmed"}}}},"401":{"description":"Missing or invalid access token (`unauthenticated`).","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorEnvelope"}}}},"403":{"description":"No organisation in the token (`no_organisation_context`), or not permitted (`forbidden`).","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorEnvelope"}}}},"404":{"description":"Not found, or not visible to the caller.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorEnvelope"}}}},"409":{"description":"`nothing_published`.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorEnvelope"}}}},"422":{"description":"Invalid body, `cannot_hold_facts`, `unknown_verdict`, `unknown_plan`, `unknown_fact`, `fact_closed`, `unknown_thing`, `unknown_route`, `not_established_unseen`, `changed_needs_value`, `changed_needs_words` or `only_when_changed`.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorEnvelope"}}}}}},"get":{"tags":["facts"],"summary":"The confirmations on a resource, for one plan or all; `read` on the resource","security":[{"bearerAuth":[]}],"parameters":[{"schema":{"type":"string","format":"uuid"},"required":true,"name":"resourceId","in":"path"},{"schema":{"type":"string","minLength":1,"maxLength":64},"required":false,"name":"plan","in":"query"}],"responses":{"200":{"description":"Oldest first.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Confirmations"}}}},"401":{"description":"Missing or invalid access token (`unauthenticated`).","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorEnvelope"}}}},"403":{"description":"No organisation in the token (`no_organisation_context`), or not permitted (`forbidden`).","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorEnvelope"}}}},"404":{"description":"Not found, or not visible to the caller.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorEnvelope"}}}},"422":{"description":"Invalid request.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorEnvelope"}}}}}}},"/organisations/current/resources/{resourceId}/assessment-facts":{"get":{"tags":["assessment-facts"],"summary":"The questions an assessment asks of a resource itself, with what is answered and offered; `read` on it","security":[{"bearerAuth":[]}],"parameters":[{"schema":{"type":"string","format":"uuid"},"required":true,"name":"resourceId","in":"path"}],"responses":{"200":{"description":"Its answers.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/AssessmentFacts"}}}},"401":{"description":"Missing or invalid access token (`unauthenticated`).","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorEnvelope"}}}},"403":{"description":"No organisation in the token (`no_organisation_context`), or not permitted (`forbidden`).","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorEnvelope"}}}},"404":{"description":"Not found, or not visible to the caller.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorEnvelope"}}}},"409":{"description":"`nothing_published` or `not_served`.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorEnvelope"}}}},"422":{"description":"Invalid request.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorEnvelope"}}}}}},"post":{"tags":["assessment-facts"],"summary":"Answers one question of a resource, in the person’s name, with how it is known; `update` on it","security":[{"bearerAuth":[]}],"parameters":[{"schema":{"type":"string","format":"uuid"},"required":true,"name":"resourceId","in":"path"}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/AssessmentFactAnswer"}}}},"responses":{"201":{"description":"The answer, as a fact.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Fact"}}}},"401":{"description":"Missing or invalid access token (`unauthenticated`).","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorEnvelope"}}}},"403":{"description":"No organisation in the token (`no_organisation_context`), or not permitted (`forbidden`).","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorEnvelope"}}}},"404":{"description":"Not found, or not visible to the caller.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorEnvelope"}}}},"409":{"description":"`nothing_published` or `not_served`.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorEnvelope"}}}},"422":{"description":"Invalid body, `unknown_question`, `choose_an_answer`, `unknown_option`, `one_answer`, `not_established_alone`, `not_asked`, `unknown_fact_basis`, `read_needs_source` or `invalid_basis_source`.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorEnvelope"}}}}}}},"/organisations/current/resources/{resourceId}/assessment-facts/offers":{"post":{"tags":["assessment-facts"],"summary":"Puts an answer forward for a person to take or decline; `update` on the resource","security":[{"bearerAuth":[]}],"parameters":[{"schema":{"type":"string","format":"uuid"},"required":true,"name":"resourceId","in":"path"}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/AssessmentFactOffer"}}}},"responses":{"201":{"description":"The offer, open.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/FactOffer"}}}},"401":{"description":"Missing or invalid access token (`unauthenticated`).","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorEnvelope"}}}},"403":{"description":"No organisation in the token (`no_organisation_context`), or not permitted (`forbidden`).","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorEnvelope"}}}},"404":{"description":"Not found, or not visible to the caller.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorEnvelope"}}}},"409":{"description":"`nothing_published` or `not_served`.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorEnvelope"}}}},"422":{"description":"As an answer.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorEnvelope"}}}}}}},"/organisations/current/resources/{resourceId}/fact-offers/{offerId}/take":{"post":{"tags":["assessment-facts"],"summary":"Takes an offer: the fact is recorded in the taker’s name, and the offer closed; `update` on the resource","security":[{"bearerAuth":[]}],"parameters":[{"schema":{"type":"string","format":"uuid"},"required":true,"name":"resourceId","in":"path"},{"schema":{"type":"string","format":"uuid"},"required":true,"name":"offerId","in":"path"}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/TakeOffer"}}}},"responses":{"200":{"description":"The offer, taken, and its fact.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/TakenOffer"}}}},"401":{"description":"Missing or invalid access token (`unauthenticated`).","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorEnvelope"}}}},"403":{"description":"No organisation in the token (`no_organisation_context`), or not permitted (`forbidden`).","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorEnvelope"}}}},"404":{"description":"Not found, or not visible to the caller.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorEnvelope"}}}},"409":{"description":"`offer_decided` or `offer_out_of_date`.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorEnvelope"}}}},"422":{"description":"As an answer: the question must still be asked, and its answers still its own.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorEnvelope"}}}}}}},"/organisations/current/resources/{resourceId}/fact-offers/{offerId}/decline":{"post":{"tags":["assessment-facts"],"summary":"Declines an offer, with a reason; `update` on the resource","security":[{"bearerAuth":[]}],"parameters":[{"schema":{"type":"string","format":"uuid"},"required":true,"name":"resourceId","in":"path"},{"schema":{"type":"string","format":"uuid"},"required":true,"name":"offerId","in":"path"}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/DeclineOffer"}}}},"responses":{"200":{"description":"The offer, declined.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/FactOffer"}}}},"401":{"description":"Missing or invalid access token (`unauthenticated`).","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorEnvelope"}}}},"403":{"description":"No organisation in the token (`no_organisation_context`), or not permitted (`forbidden`).","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorEnvelope"}}}},"404":{"description":"Not found, or not visible to the caller.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorEnvelope"}}}},"409":{"description":"`offer_decided`.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorEnvelope"}}}},"422":{"description":"`decline_needs_reason`.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorEnvelope"}}}}}}},"/organisations/current/people/{personId}/processes/{handle}/walk":{"get":{"tags":["assessment-facts"],"summary":"The walk for a process record: its sections and its ways out, worked out from the sealed findings, and its questions with what is answered and what its plan has ruled on; `update` on the person and on its place, logged","security":[{"bearerAuth":[]}],"parameters":[{"schema":{"type":"string","format":"uuid"},"required":true,"name":"personId","in":"path"},{"schema":{"type":"string","format":"uuid"},"required":true,"name":"handle","in":"path"},{"schema":{"type":"integer","minimum":1,"maximum":1000},"required":false,"name":"cycle","in":"query"}],"responses":{"200":{"description":"The walk.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Walk"}}}},"401":{"description":"Missing or invalid access token (`unauthenticated`).","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorEnvelope"}}}},"403":{"description":"No organisation in the token (`no_organisation_context`), or not permitted (`forbidden`).","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorEnvelope"}}}},"404":{"description":"Not found, or not visible to the caller.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorEnvelope"}}}},"409":{"description":"`not_sat_yet`, `nothing_published` or `not_served`.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorEnvelope"}}}},"410":{"description":"`emptied`.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorEnvelope"}}}},"422":{"description":"Invalid request.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorEnvelope"}}}}}},"post":{"tags":["assessment-facts"],"summary":"Answers one question of the walk, today, in the person’s name, with how it is known, and rules on it for the plan: on its primary way out, or on the place for its own questions; `update` on the person and on its place","security":[{"bearerAuth":[]}],"parameters":[{"schema":{"type":"string","format":"uuid"},"required":true,"name":"personId","in":"path"},{"schema":{"type":"string","format":"uuid"},"required":true,"name":"handle","in":"path"}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/WalkAnswer"}}}},"responses":{"201":{"description":"The answer, as a fact.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Fact"}}}},"401":{"description":"Missing or invalid access token (`unauthenticated`).","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorEnvelope"}}}},"403":{"description":"No organisation in the token (`no_organisation_context`), or not permitted (`forbidden`).","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorEnvelope"}}}},"404":{"description":"Not found, or not visible to the caller.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorEnvelope"}}}},"409":{"description":"`not_sat_yet`, `nothing_published`, `not_served` or `package_changed`.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorEnvelope"}}}},"410":{"description":"`emptied`.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorEnvelope"}}}},"422":{"description":"Invalid body, `route_needed`, `unknown_fact_basis`, or as an answer.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorEnvelope"}}}}}}},"/organisations/current/people/{personId}/processes/{handle}/walk/seal":{"post":{"tags":["assessment-facts"],"summary":"Seals the record’s second set from what its plan ruled on, once: every question asked has a ruled answer, a check not asked of the person recorded not applicable; `update` on the person and on its place","security":[{"bearerAuth":[]}],"parameters":[{"schema":{"type":"string","format":"uuid"},"required":true,"name":"personId","in":"path"},{"schema":{"type":"string","format":"uuid"},"required":true,"name":"handle","in":"path"}],"responses":{"201":{"description":"The sealed set.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/SecondSetSealed"}}}},"401":{"description":"Missing or invalid access token (`unauthenticated`).","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorEnvelope"}}}},"403":{"description":"No organisation in the token (`no_organisation_context`), or not permitted (`forbidden`).","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorEnvelope"}}}},"404":{"description":"Not found, or not visible to the caller.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorEnvelope"}}}},"409":{"description":"`not_sat_yet`, `second_set_left` (what is left, as fields), `already_sealed` (unlock the route first, with a reason, to seal it again) or `process_ended`.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorEnvelope"}}}},"410":{"description":"`emptied`.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorEnvelope"}}}},"422":{"description":"Invalid request.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorEnvelope"}}}}}}},"/organisations/current/resources/{resourceId}/model-proposals":{"get":{"tags":["model-proposals"],"summary":"The changes proposed to a resource’s model, open first; `read` on it","security":[{"bearerAuth":[]}],"parameters":[{"schema":{"type":"string","format":"uuid"},"required":true,"name":"resourceId","in":"path"}],"responses":{"200":{"description":"Its proposals.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ModelProposals"}}}},"401":{"description":"Missing or invalid access token (`unauthenticated`).","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorEnvelope"}}}},"403":{"description":"No organisation in the token (`no_organisation_context`), or not permitted (`forbidden`).","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorEnvelope"}}}},"404":{"description":"Not found, or not visible to the caller.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorEnvelope"}}}},"422":{"description":"Invalid request.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorEnvelope"}}}}}}},"/organisations/current/resources/{resourceId}/model-proposals/{proposalId}/accept":{"post":{"tags":["model-proposals"],"summary":"Accepts a proposal once a version has been published since it was raised, which shows it where the tool can tell; `update` on the resource","security":[{"bearerAuth":[]}],"parameters":[{"schema":{"type":"string","format":"uuid"},"required":true,"name":"resourceId","in":"path"},{"schema":{"type":"string","format":"uuid"},"required":true,"name":"proposalId","in":"path"}],"responses":{"200":{"description":"The proposal, accepted.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ModelProposal"}}}},"401":{"description":"Missing or invalid access token (`unauthenticated`).","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorEnvelope"}}}},"403":{"description":"No organisation in the token (`no_organisation_context`), or not permitted (`forbidden`).","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorEnvelope"}}}},"404":{"description":"Not found, or not visible to the caller.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorEnvelope"}}}},"409":{"description":"`proposal_decided` or `not_drawn_yet`.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorEnvelope"}}}},"422":{"description":"Invalid request.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorEnvelope"}}}}}}},"/organisations/current/resources/{resourceId}/model-proposals/{proposalId}/decline":{"post":{"tags":["model-proposals"],"summary":"Declines a proposal, with a reason; the answer it came from stands; `update` on the resource","security":[{"bearerAuth":[]}],"parameters":[{"schema":{"type":"string","format":"uuid"},"required":true,"name":"resourceId","in":"path"},{"schema":{"type":"string","format":"uuid"},"required":true,"name":"proposalId","in":"path"}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/DeclineProposal"}}}},"responses":{"200":{"description":"The proposal, declined.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ModelProposal"}}}},"401":{"description":"Missing or invalid access token (`unauthenticated`).","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorEnvelope"}}}},"403":{"description":"No organisation in the token (`no_organisation_context`), or not permitted (`forbidden`).","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorEnvelope"}}}},"404":{"description":"Not found, or not visible to the caller.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorEnvelope"}}}},"409":{"description":"`proposal_decided`.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorEnvelope"}}}},"422":{"description":"`decline_needs_reason`.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorEnvelope"}}}}}}},"/organisations/current/people/{personId}/processes/{handle}/plan":{"get":{"tags":["plan-headings"],"summary":"A process record’s plan under its headings: each heading’s considerations, the answers committed to them, what may answer it, and whether it is done or held; `update` on the person and on its place, logged","security":[{"bearerAuth":[]}],"parameters":[{"schema":{"type":"string","format":"uuid"},"required":true,"name":"personId","in":"path"},{"schema":{"type":"string","format":"uuid"},"required":true,"name":"handle","in":"path"},{"schema":{"type":"integer","minimum":1,"maximum":1000},"required":false,"name":"cycle","in":"query"}],"responses":{"200":{"description":"The plan, heading by heading.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/PlanHeadings"}}}},"401":{"description":"Missing or invalid access token (`unauthenticated`).","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorEnvelope"}}}},"403":{"description":"No organisation in the token (`no_organisation_context`), or not permitted (`forbidden`).","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorEnvelope"}}}},"404":{"description":"Not found, or not visible to the caller.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorEnvelope"}}}},"409":{"description":"`not_sat_yet`, `nothing_published` or `not_served`.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorEnvelope"}}}},"410":{"description":"`emptied`.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorEnvelope"}}}},"422":{"description":"Invalid request.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorEnvelope"}}}}}}},"/organisations/current/people/{personId}/processes/{handle}/plan/answers":{"post":{"tags":["plan-headings"],"summary":"Commits one answer under a heading, as the package’s table allows: a provision bound to a row the place holds, or a promise, an undertaking (naming the one assisting: a post, a person here, a guest staying here now by their stay, or someone in words), an accommodation or an acceptance; with the considerations it covers; `update` on the person and on its place","security":[{"bearerAuth":[]}],"parameters":[{"schema":{"type":"string","format":"uuid"},"required":true,"name":"personId","in":"path"},{"schema":{"type":"string","format":"uuid"},"required":true,"name":"handle","in":"path"}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/HeadingAnswer"}}}},"responses":{"201":{"description":"The answer.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HeadingAnswerMade"}}}},"401":{"description":"Missing or invalid access token (`unauthenticated`).","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorEnvelope"}}}},"403":{"description":"No organisation in the token (`no_organisation_context`), or not permitted (`forbidden`).","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorEnvelope"}}}},"404":{"description":"Not found, or not visible to the caller.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorEnvelope"}}}},"409":{"description":"`not_sat_yet`, `bad_status` (finished: unlock What will be put in place first) or `already_recorded`.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorEnvelope"}}}},"422":{"description":"Invalid body, or as an answer: `unknown_heading`, `not_a_provision_here`, `no_such_thing`, `covers_nothing_here`, …","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorEnvelope"}}}}}}},"/organisations/current/people/{personId}/processes/{handle}/plan/lock":{"post":{"tags":["plan-headings"],"summary":"Locks the answers under the headings again after they were unlocked: refused unless unlocked and every consideration is answered; unchanged or not by what the answers say; `update` on the person and on its place; the relock audited","security":[{"bearerAuth":[]}],"parameters":[{"schema":{"type":"string","format":"uuid"},"required":true,"name":"personId","in":"path"},{"schema":{"type":"string","format":"uuid"},"required":true,"name":"handle","in":"path"}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/HeadingsLock"}}}},"responses":{"201":{"description":"Locked again.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HeadingsLocked"}}}},"401":{"description":"Missing or invalid access token (`unauthenticated`).","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorEnvelope"}}}},"403":{"description":"No organisation in the token (`no_organisation_context`), or not permitted (`forbidden`).","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorEnvelope"}}}},"404":{"description":"Not found, or not visible to the caller.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorEnvelope"}}}},"409":{"description":"`not_unlocked`, `not_all_answered`, `not_sat_yet`, `process_ended` or `process_suspended`.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorEnvelope"}}}},"422":{"description":"Invalid request.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorEnvelope"}}}}}}},"/organisations/current/people/{personId}/processes/{handle}/plan/holds":{"post":{"tags":["plan-headings"],"summary":"Holds a heading as not established, with why; one hold per heading; `update` on the person and on its place","security":[{"bearerAuth":[]}],"parameters":[{"schema":{"type":"string","format":"uuid"},"required":true,"name":"personId","in":"path"},{"schema":{"type":"string","format":"uuid"},"required":true,"name":"handle","in":"path"}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/HeadingHold"}}}},"responses":{"201":{"description":"The hold.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HeadingAnswerMade"}}}},"401":{"description":"Missing or invalid access token (`unauthenticated`).","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorEnvelope"}}}},"403":{"description":"No organisation in the token (`no_organisation_context`), or not permitted (`forbidden`).","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorEnvelope"}}}},"404":{"description":"Not found, or not visible to the caller.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorEnvelope"}}}},"409":{"description":"`already_held`, `not_sat_yet`, `bad_status` (finished: unlock What will be put in place first) or `already_recorded`.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorEnvelope"}}}},"422":{"description":"Invalid body, `unknown_heading` or `words_needed`.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorEnvelope"}}}}}}},"/organisations/current/people/{personId}/processes/{handle}/plan/answers/{answerId}/withdraw":{"post":{"tags":["plan-headings"],"summary":"Withdraws an answer, or releases a hold, once; it stays in the history; `update` on the person and on its place","security":[{"bearerAuth":[]}],"parameters":[{"schema":{"type":"string","format":"uuid"},"required":true,"name":"personId","in":"path"},{"schema":{"type":"string","format":"uuid"},"required":true,"name":"handle","in":"path"},{"schema":{"type":"string","format":"uuid"},"required":true,"name":"answerId","in":"path"}],"responses":{"200":{"description":"Withdrawn.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HeadingAnswerMade"}}}},"401":{"description":"Missing or invalid access token (`unauthenticated`).","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorEnvelope"}}}},"403":{"description":"No organisation in the token (`no_organisation_context`), or not permitted (`forbidden`).","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorEnvelope"}}}},"404":{"description":"Not found, or not visible to the caller.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorEnvelope"}}}},"409":{"description":"`already_withdrawn`, `bad_status` (finished: unlock What will be put in place first) or `already_recorded`.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorEnvelope"}}}},"422":{"description":"Invalid request.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorEnvelope"}}}}}}},"/organisations/current/people/{personId}/processes/{handle}/plan/answers/{answerId}/keep":{"post":{"tags":["plan-headings"],"summary":"Keeps one of the last process’s answers on the same subject, offered to a review: committed afresh, checked as any answer is, once; `update` on the person and on its place","security":[{"bearerAuth":[]}],"parameters":[{"schema":{"type":"string","format":"uuid"},"required":true,"name":"personId","in":"path"},{"schema":{"type":"string","format":"uuid"},"required":true,"name":"handle","in":"path"},{"schema":{"type":"string","format":"uuid"},"required":true,"name":"answerId","in":"path"}],"responses":{"201":{"description":"The answer kept.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HeadingAnswerMade"}}}},"401":{"description":"Missing or invalid access token (`unauthenticated`).","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorEnvelope"}}}},"403":{"description":"No organisation in the token (`no_organisation_context`), or not permitted (`forbidden`).","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorEnvelope"}}}},"404":{"description":"Not found, or not visible to the caller.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorEnvelope"}}}},"409":{"description":"`already_kept`, `bad_status` (finished: unlock What will be put in place first) or `already_recorded`.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorEnvelope"}}}},"422":{"description":"As an answer: `no_such_thing`, `covers_nothing_here`, `not_an_answer_here`, …","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorEnvelope"}}}}}}},"/organisations/current/people/{personId}/processes/{handle}/plan/answers/{answerId}/end":{"post":{"tags":["plan-headings"],"summary":"The help an undertaking gave has ended (slice 9): by the one assisting, the person helped, or on the assessor’s own word; why, and the day; once, at any stage, beside the answer; `update` on the person and on its place; audited, never the words","security":[{"bearerAuth":[]}],"parameters":[{"schema":{"type":"string","format":"uuid"},"required":true,"name":"personId","in":"path"},{"schema":{"type":"string","format":"uuid"},"required":true,"name":"handle","in":"path"},{"schema":{"type":"string","format":"uuid"},"required":true,"name":"answerId","in":"path"}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/HelpEnded"}}}},"responses":{"201":{"description":"The ending recorded.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HeadingAnswerMade"}}}},"401":{"description":"Missing or invalid access token (`unauthenticated`).","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorEnvelope"}}}},"403":{"description":"No organisation in the token (`no_organisation_context`), or not permitted (`forbidden`).","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorEnvelope"}}}},"404":{"description":"Not found, or not visible to the caller.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorEnvelope"}}}},"409":{"description":"`already_ended`.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorEnvelope"}}}},"422":{"description":"Invalid body, `ended_by_needed`, `words_needed` or `invalid_on`.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorEnvelope"}}}}}}},"/organisations/current/people/{personId}/processes/{handle}/plan/answers/{answerId}/terms":{"post":{"tags":["plan-headings"],"summary":"Records anew what the one assisting will do, the competence needed (shown, never enforced), first or backup, how they are told (recorded, never sent) and when they last practised (spec 85 Move 4): a new row beside the undertaking, the latest in force, the undertaking kept; for an open undertaking whose help has not ended, at any stage; `update` on the person and on its place; audited by keys, never the words","security":[{"bearerAuth":[]}],"parameters":[{"schema":{"type":"string","format":"uuid"},"required":true,"name":"personId","in":"path"},{"schema":{"type":"string","format":"uuid"},"required":true,"name":"handle","in":"path"},{"schema":{"type":"string","format":"uuid"},"required":true,"name":"answerId","in":"path"}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/UndertakingTerms"}}}},"responses":{"201":{"description":"The terms recorded.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HeadingAnswerMade"}}}},"401":{"description":"Missing or invalid access token (`unauthenticated`).","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorEnvelope"}}}},"403":{"description":"No organisation in the token (`no_organisation_context`), or not permitted (`forbidden`).","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorEnvelope"}}}},"404":{"description":"Not found, or not visible to the caller.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorEnvelope"}}}},"409":{"description":"`already_ended`.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorEnvelope"}}}},"422":{"description":"Invalid body, `terms_needed`, `unknown_does`, `unknown_first_or_backup`, `unknown_told_how`, `invalid_practised_on` or `too_long`.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorEnvelope"}}}}}}},"/organisations/current/people/{personId}/processes/{handle}/plan/answers/{answerId}/asked":{"post":{"tags":["plan-headings"],"summary":"Records the answer of someone to be asked to assist (`helper-to-ask`; spec 60 §5.4): yes, with how and when they agreed (the undertaking committed again, the one to be asked withdrawn, its job falling away), or no, with why (ended as a withdrawal by the one assisting, raising help ended); once, at any stage; `update` on the person and on its place; audited by ids, never the words","security":[{"bearerAuth":[]}],"parameters":[{"schema":{"type":"string","format":"uuid"},"required":true,"name":"personId","in":"path"},{"schema":{"type":"string","format":"uuid"},"required":true,"name":"handle","in":"path"},{"schema":{"type":"string","format":"uuid"},"required":true,"name":"answerId","in":"path"}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/HelperAnswered"}}}},"responses":{"201":{"description":"Their answer recorded: the agreed undertaking, or the ending.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HeadingAnswerMade"}}}},"401":{"description":"Missing or invalid access token (`unauthenticated`).","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorEnvelope"}}}},"403":{"description":"No organisation in the token (`no_organisation_context`), or not permitted (`forbidden`).","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorEnvelope"}}}},"404":{"description":"Not found, or not visible to the caller.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorEnvelope"}}}},"409":{"description":"`not_to_ask` or `already_ended`.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorEnvelope"}}}},"422":{"description":"Invalid body, `agreement_needed`, `not_living_here`, `words_needed` or `invalid_on`.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorEnvelope"}}}}}}},"/organisations/current/people/{personId}/processes/{handle}/finish":{"post":{"tags":["plan-headings"],"summary":"Finishes the plan (the end of a process on a person): every heading done, none held, the primary route bound; the outcome, the visual risk rating and why, ruled once; recorded and for review; `update` on the person and on its place; audited by keys, never the words","security":[{"bearerAuth":[]}],"parameters":[{"schema":{"type":"string","format":"uuid"},"required":true,"name":"personId","in":"path"},{"schema":{"type":"string","format":"uuid"},"required":true,"name":"handle","in":"path"}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/PlanFinished"}}}},"responses":{"201":{"description":"The plan finished.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HeadingAnswerMade"}}}},"401":{"description":"Missing or invalid access token (`unauthenticated`).","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorEnvelope"}}}},"403":{"description":"No organisation in the token (`no_organisation_context`), or not permitted (`forbidden`).","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorEnvelope"}}}},"404":{"description":"Not found, or not visible to the caller.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorEnvelope"}}}},"409":{"description":"`plan_not_finished`, `no_primary_route`, `bad_status` (finished: unlock Finished first, to rule it again), `unlocked_before` (a step before it is unlocked: lock it again first) or `already_recorded`.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorEnvelope"}}}},"422":{"description":"Invalid body, `outcome_needed`, `level_needed` or `words_needed`.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorEnvelope"}}}}}}},"/organisations/current/people/{personId}/processes/{handle}/sign-off":{"post":{"tags":["plan-headings"],"summary":"Signs it off: finished, and the plan agreed; a standing from the catalogue; the visual risk rating confirmed, or changed with a reason, both kept; supersedes the one before; replaces the observations it owns; `update` on the person and on its place; audited","security":[{"bearerAuth":[]}],"parameters":[{"schema":{"type":"string","format":"uuid"},"required":true,"name":"personId","in":"path"},{"schema":{"type":"string","format":"uuid"},"required":true,"name":"handle","in":"path"}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/PlanSignedOff"}}}},"responses":{"201":{"description":"Signed off.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HeadingAnswerMade"}}}},"401":{"description":"Missing or invalid access token (`unauthenticated`).","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorEnvelope"}}}},"403":{"description":"No organisation in the token (`no_organisation_context`), or not permitted (`forbidden`).","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorEnvelope"}}}},"404":{"description":"Not found, or not visible to the caller.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorEnvelope"}}}},"409":{"description":"`not_finished`, `not_agreed`, `already_signed_off` or `jobs_block_sign_off` (naming them).","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorEnvelope"}}}},"422":{"description":"Invalid body, `unknown_standing`, `unknown_appointment`, `words_needed`, `reason_only_on_a_change`, `not_before_sign_off`, `overrule_needs_reason`, `unknown_review_months`, `review_reason_needed` or `review_reason_only_sooner`.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorEnvelope"}}}}}}},"/organisations/current/people/{personId}/helps":{"get":{"tags":["plan-headings"],"summary":"The help a person gives under undertakings that still stand (slice 9): only those whose person helped the reader may read, any other left out; each naming a logged read","security":[{"bearerAuth":[]}],"parameters":[{"schema":{"type":"string","format":"uuid"},"required":true,"name":"personId","in":"path"}],"responses":{"200":{"description":"The help they give.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HelpsGiven"}}}},"401":{"description":"Missing or invalid access token (`unauthenticated`).","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorEnvelope"}}}},"403":{"description":"No organisation in the token (`no_organisation_context`), or not permitted (`forbidden`).","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorEnvelope"}}}},"404":{"description":"Not found, or not visible to the caller.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorEnvelope"}}}},"422":{"description":"Invalid request.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorEnvelope"}}}}}}},"/organisations/current/resources/{resourceId}/assisting":{"get":{"tags":["plan-headings"],"summary":"The ones assisting anyone in a place, by kind (spec 85 Move 5): by post with its cover, people living there, guests staying there, and others named in words; each once, with whom they assist, when, what they agreed, how many they assist and where they are relative to each; help that stands and help to be asked; `read` on the place, each person named only to a reader of them, each naming a logged read","security":[{"bearerAuth":[]}],"parameters":[{"schema":{"type":"string","format":"uuid"},"required":true,"name":"resourceId","in":"path"}],"responses":{"200":{"description":"The ones assisting, by kind.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/AssistingHere"}}}},"401":{"description":"Missing or invalid access token (`unauthenticated`).","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorEnvelope"}}}},"403":{"description":"No organisation in the token (`no_organisation_context`), or not permitted (`forbidden`).","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorEnvelope"}}}},"404":{"description":"Not found, or not visible to the caller.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorEnvelope"}}}},"422":{"description":"Invalid request.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorEnvelope"}}}}}}},"/organisations/current/resources/{resourceId}/jobs":{"get":{"tags":["jobs"],"summary":"A resource’s jobs, open and closed, each with who owes it, worked out from what raised it; `update` on the resource, logged","security":[{"bearerAuth":[]}],"parameters":[{"schema":{"type":"string","format":"uuid"},"required":true,"name":"resourceId","in":"path"}],"responses":{"200":{"description":"The jobs.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Jobs"}}}},"401":{"description":"Missing or invalid access token (`unauthenticated`).","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorEnvelope"}}}},"403":{"description":"No organisation in the token (`no_organisation_context`), or not permitted (`forbidden`).","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorEnvelope"}}}},"404":{"description":"Not found, or not visible to the caller.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorEnvelope"}}}},"422":{"description":"Invalid request.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorEnvelope"}}}}}},"post":{"tags":["jobs"],"summary":"A task by hand raised on the resource, against what it is for (the resource alone when nothing is said, or anything in it), bound to no process: its title, and its brief, done when, owner, due and start days and priority if said; `update` on the resource; audited","security":[{"bearerAuth":[]}],"parameters":[{"schema":{"type":"string","format":"uuid"},"required":true,"name":"resourceId","in":"path"}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/TaskRaised"}}}},"responses":{"201":{"description":"Raised.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/TaskDone"}}}},"401":{"description":"Missing or invalid access token (`unauthenticated`).","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorEnvelope"}}}},"403":{"description":"No organisation in the token (`no_organisation_context`), or not permitted (`forbidden`).","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorEnvelope"}}}},"404":{"description":"Not found, or not visible to the caller.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorEnvelope"}}}},"422":{"description":"Invalid body, `title_needed`, `unknown_kind`, `words_needed`, `owner_needed`, `assignee_needed`, `not_a_member`, `unknown_team`, `cannot_edit`, `due_needed`, `start_needed`, `unknown_priority`, `unknown_subject`, `subject_elsewhere`, `too_many` or `too_long`.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorEnvelope"}}}}}}},"/organisations/current/resources/{resourceId}/jobs/close":{"post":{"tags":["jobs"],"summary":"Closes one open job, done, or declined with why; once; `update` on the resource","security":[{"bearerAuth":[]}],"parameters":[{"schema":{"type":"string","format":"uuid"},"required":true,"name":"resourceId","in":"path"}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/JobClose"}}}},"responses":{"201":{"description":"Closed.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/JobClosed"}}}},"401":{"description":"Missing or invalid access token (`unauthenticated`).","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorEnvelope"}}}},"403":{"description":"No organisation in the token (`no_organisation_context`), or not permitted (`forbidden`).","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorEnvelope"}}}},"404":{"description":"Not found, or not visible to the caller.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorEnvelope"}}}},"409":{"description":"`job_already_closed`, `answered_on_their_page`, `answered_at_the_desk`, `record_what_came_of_it`, `complete_and_report` (a task completed by its report is never ticked: spec 92 §6.5), `still_waiting` (naming what it waits for), `not_signed_off` or `steps_open` (naming them; send `closeSteps` to close them with it). A repeating task done names its next one (`next`).","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorEnvelope"}}}},"422":{"description":"Invalid body, `unknown_closing`, `decline_needs_reason` or `too_long`.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorEnvelope"}}}}}}},"/organisations/current/resources/{resourceId}/jobs/{key}/entries":{"post":{"tags":["jobs"],"summary":"One entry on a task’s trail, for any of the resource’s tasks: a note, a status, who owes it (a member or a team who may edit it, or someone in words; the old owner kept involved), when it is due or starts, its priority, its brief, its done when, whether it is needed for sign-off, or a task by hand’s title; a risk-critical observation’s job takes who owes it and when it is due, as before; never on a closed job; `update` on the resource; audited","security":[{"bearerAuth":[]}],"parameters":[{"schema":{"type":"string","format":"uuid"},"required":true,"name":"resourceId","in":"path"},{"schema":{"type":"string","minLength":1,"maxLength":240},"required":true,"name":"key","in":"path"}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ResourceJobEntry"}}}},"responses":{"201":{"description":"Added to the trail.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/JobEntryMade"}}}},"401":{"description":"Missing or invalid access token (`unauthenticated`).","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorEnvelope"}}}},"403":{"description":"No organisation in the token (`no_organisation_context`), or not permitted (`forbidden`).","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorEnvelope"}}}},"404":{"description":"Not found, or not visible to the caller.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorEnvelope"}}}},"409":{"description":"`job_closed`, `repeat_by_hand` or `step_does_not_repeat`.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorEnvelope"}}}},"422":{"description":"Invalid body, `unknown_entry`, `assignee_needed`, `not_a_member`, `unknown_team`, `cannot_edit`, `owner_needed`, `due_needed`, `start_needed`, `unknown_priority`, `unknown_job_status`, `words_needed`, `title_by_hand`, `step_due_after_task`, `task_due_before_step`, `unknown_repeat`, `blocks_needed`, `too_long` or `no_change`.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorEnvelope"}}}}}}},"/organisations/current/resources/{resourceId}/jobs/about/{subjectKind}/{subjectId}":{"get":{"tags":["jobs"],"summary":"A thing’s tasks: every task of the resource for it (or, for a person or a process, about them), open first, steps on their task’s card; `update` on the resource; logged as a read of the person for a person or a process","security":[{"bearerAuth":[]}],"parameters":[{"schema":{"type":"string","format":"uuid"},"required":true,"name":"resourceId","in":"path"},{"schema":{"type":"string","enum":["building","person","rpeep","rpeep-v2","flat","space","asset","post"]},"required":true,"name":"subjectKind","in":"path"},{"schema":{"type":"string","minLength":1,"maxLength":200},"required":true,"name":"subjectId","in":"path"}],"responses":{"200":{"description":"The tasks.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Jobs"}}}},"401":{"description":"Missing or invalid access token (`unauthenticated`).","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorEnvelope"}}}},"403":{"description":"No organisation in the token (`no_organisation_context`), or not permitted (`forbidden`).","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorEnvelope"}}}},"404":{"description":"Not found, or not visible to the caller.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorEnvelope"}}}},"422":{"description":"`unknown_subject` or `subject_elsewhere`.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorEnvelope"}}}}}}},"/organisations/current/resources/{resourceId}/jobs/{key}":{"get":{"tags":["jobs"],"summary":"One task with everything its card needs: its current values and trail, who is involved and its signer, what it is for, and its steps with theirs; `update` on the resource; logged as a read of each person it is for","security":[{"bearerAuth":[]}],"parameters":[{"schema":{"type":"string","format":"uuid"},"required":true,"name":"resourceId","in":"path"},{"schema":{"type":"string","minLength":1,"maxLength":240},"required":true,"name":"key","in":"path"}],"responses":{"200":{"description":"The task.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/TaskCard"}}}},"401":{"description":"Missing or invalid access token (`unauthenticated`).","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorEnvelope"}}}},"403":{"description":"No organisation in the token (`no_organisation_context`), or not permitted (`forbidden`).","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorEnvelope"}}}},"404":{"description":"Not found, or not visible to the caller.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorEnvelope"}}}},"422":{"description":"Invalid request.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorEnvelope"}}}}}}},"/organisations/current/resources/{resourceId}/jobs/{key}/steps":{"post":{"tags":["jobs"],"summary":"A step of an open task, a task one level down: its own title, owner, due (never after its task’s) and start days, priority, brief and done when; never a step of a step; `update` on the resource; audited","security":[{"bearerAuth":[]}],"parameters":[{"schema":{"type":"string","format":"uuid"},"required":true,"name":"resourceId","in":"path"},{"schema":{"type":"string","minLength":1,"maxLength":240},"required":true,"name":"key","in":"path"}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/TaskStep"}}}},"responses":{"201":{"description":"Added.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/TaskDone"}}}},"401":{"description":"Missing or invalid access token (`unauthenticated`).","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorEnvelope"}}}},"403":{"description":"No organisation in the token (`no_organisation_context`), or not permitted (`forbidden`).","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorEnvelope"}}}},"404":{"description":"Not found, or not visible to the caller.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorEnvelope"}}}},"409":{"description":"`job_closed` or `step_of_a_step`.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorEnvelope"}}}},"422":{"description":"Invalid body, `title_needed`, `unknown_kind`, `words_needed`, `owner_needed`, `assignee_needed`, `not_a_member`, `unknown_team`, `cannot_edit`, `due_needed`, `start_needed`, `unknown_priority`, `step_due_after_task` or `too_long`.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorEnvelope"}}}}}}},"/organisations/current/resources/{resourceId}/jobs/{key}/people":{"post":{"tags":["jobs"],"summary":"Someone involved in a task (a member or a team, the task in their Your day), or its signer (one member, who signs it off before it is done; a new one stands over the last; never on a step); for a task by hand anyone in the organisation, and being given it opens it; `update` on the resource; audited","security":[{"bearerAuth":[]}],"parameters":[{"schema":{"type":"string","format":"uuid"},"required":true,"name":"resourceId","in":"path"},{"schema":{"type":"string","minLength":1,"maxLength":240},"required":true,"name":"key","in":"path"}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/TaskPerson"}}}},"responses":{"201":{"description":"Added.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/TaskDone"}}}},"401":{"description":"Missing or invalid access token (`unauthenticated`).","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorEnvelope"}}}},"403":{"description":"No organisation in the token (`no_organisation_context`), or not permitted (`forbidden`).","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorEnvelope"}}}},"404":{"description":"Not found, or not visible to the caller.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorEnvelope"}}}},"409":{"description":"`job_closed` or `step_has_no_signer`.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorEnvelope"}}}},"422":{"description":"Invalid body, `unknown_role`, `signer_is_a_member`, `assignee_needed`, `not_a_member`, `unknown_team`, `cannot_edit` or `no_change`.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorEnvelope"}}}}}}},"/organisations/current/resources/{resourceId}/jobs/{key}/people/remove":{"post":{"tags":["jobs"],"summary":"Someone no longer involved in a task, or no longer its signer; `update` on the resource; audited","security":[{"bearerAuth":[]}],"parameters":[{"schema":{"type":"string","format":"uuid"},"required":true,"name":"resourceId","in":"path"},{"schema":{"type":"string","minLength":1,"maxLength":240},"required":true,"name":"key","in":"path"}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/TaskPerson"}}}},"responses":{"201":{"description":"Removed.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/TaskDone"}}}},"401":{"description":"Missing or invalid access token (`unauthenticated`).","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorEnvelope"}}}},"403":{"description":"No organisation in the token (`no_organisation_context`), or not permitted (`forbidden`).","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorEnvelope"}}}},"404":{"description":"Not found, or not visible to the caller.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorEnvelope"}}}},"409":{"description":"`job_closed`.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorEnvelope"}}}},"422":{"description":"Invalid body, `unknown_role` or `not_involved`.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorEnvelope"}}}}}}},"/organisations/current/resources/{resourceId}/jobs/{key}/sign-off":{"post":{"tags":["jobs"],"summary":"Its signer signs a task off, before it can be done; only the signer, once; `update` on the resource; audited","security":[{"bearerAuth":[]}],"parameters":[{"schema":{"type":"string","format":"uuid"},"required":true,"name":"resourceId","in":"path"},{"schema":{"type":"string","minLength":1,"maxLength":240},"required":true,"name":"key","in":"path"}],"responses":{"201":{"description":"Signed off.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/JobEntryMade"}}}},"401":{"description":"Missing or invalid access token (`unauthenticated`).","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorEnvelope"}}}},"403":{"description":"No organisation in the token (`no_organisation_context`), or not permitted (`forbidden`).","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorEnvelope"}}}},"404":{"description":"Not found, or not visible to the caller.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorEnvelope"}}}},"409":{"description":"`job_closed` or `not_the_signer`.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorEnvelope"}}}},"422":{"description":"`no_change`.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorEnvelope"}}}}}}},"/organisations/current/resources/{resourceId}/jobs/{key}/subjects":{"post":{"tags":["jobs"],"summary":"Something more a task is for, in its own resource: the resource itself, a person, a process, a flat, a space, an asset or a post; never on a step; `update` on the resource; audited","security":[{"bearerAuth":[]}],"parameters":[{"schema":{"type":"string","format":"uuid"},"required":true,"name":"resourceId","in":"path"},{"schema":{"type":"string","minLength":1,"maxLength":240},"required":true,"name":"key","in":"path"}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"type":"object","properties":{"kind":{"type":"string","minLength":1,"maxLength":20},"id":{"type":"string","minLength":1,"maxLength":200}},"required":["kind","id"],"additionalProperties":false}}}},"responses":{"201":{"description":"Added.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/TaskDone"}}}},"401":{"description":"Missing or invalid access token (`unauthenticated`).","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorEnvelope"}}}},"403":{"description":"No organisation in the token (`no_organisation_context`), or not permitted (`forbidden`).","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorEnvelope"}}}},"404":{"description":"Not found, or not visible to the caller.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorEnvelope"}}}},"409":{"description":"`job_closed` or `step_is_for_its_task`.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorEnvelope"}}}},"422":{"description":"Invalid body, `unknown_subject`, `subject_elsewhere` or `no_change`.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorEnvelope"}}}}}}},"/organisations/current/resources/{resourceId}/jobs/{key}/subjects/close":{"post":{"tags":["jobs"],"summary":"Something a task was for, no longer; a task by hand keeps one thing it is for; `update` on the resource; audited","security":[{"bearerAuth":[]}],"parameters":[{"schema":{"type":"string","format":"uuid"},"required":true,"name":"resourceId","in":"path"},{"schema":{"type":"string","minLength":1,"maxLength":240},"required":true,"name":"key","in":"path"}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"type":"object","properties":{"kind":{"type":"string","minLength":1,"maxLength":20},"id":{"type":"string","minLength":1,"maxLength":200}},"required":["kind","id"],"additionalProperties":false}}}},"responses":{"201":{"description":"Closed.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/TaskDone"}}}},"401":{"description":"Missing or invalid access token (`unauthenticated`).","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorEnvelope"}}}},"403":{"description":"No organisation in the token (`no_organisation_context`), or not permitted (`forbidden`).","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorEnvelope"}}}},"404":{"description":"Not found, or not visible to the caller.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorEnvelope"}}}},"409":{"description":"`job_closed`, `needs_a_subject` or `worked_out`.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorEnvelope"}}}},"422":{"description":"Invalid body or `not_its_subject`.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorEnvelope"}}}}}}},"/organisations/current/resources/{resourceId}/jobs/{key}/reminders":{"post":{"tags":["jobs"],"summary":"A reminder on an open task, 0, 1, 2, 7 or 14 days before its stored due day, to its owner, everyone involved or one member who may edit the resource; once of each kind; `update` on the resource; audited","security":[{"bearerAuth":[]}],"parameters":[{"schema":{"type":"string","format":"uuid"},"required":true,"name":"resourceId","in":"path"},{"schema":{"type":"string","minLength":1,"maxLength":240},"required":true,"name":"key","in":"path"}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/TaskReminder"}}}},"responses":{"201":{"description":"Added.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/TaskPartAdded"}}}},"401":{"description":"Missing or invalid access token (`unauthenticated`).","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorEnvelope"}}}},"403":{"description":"No organisation in the token (`no_organisation_context`), or not permitted (`forbidden`).","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorEnvelope"}}}},"404":{"description":"Not found, or not visible to the caller.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorEnvelope"}}}},"409":{"description":"`job_closed` or `reminder_needs_a_due`.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorEnvelope"}}}},"422":{"description":"Invalid body, `unknown_reminder_day`, `unknown_reminder_to`, `not_a_member`, `cannot_edit` or `no_change`.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorEnvelope"}}}}}}},"/organisations/current/resources/{resourceId}/jobs/{key}/reminders/close":{"post":{"tags":["jobs"],"summary":"A reminder taken off a task; `update` on the resource; audited","security":[{"bearerAuth":[]}],"parameters":[{"schema":{"type":"string","format":"uuid"},"required":true,"name":"resourceId","in":"path"},{"schema":{"type":"string","minLength":1,"maxLength":240},"required":true,"name":"key","in":"path"}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"type":"object","properties":{"id":{"type":"string","minLength":1,"maxLength":60}},"required":["id"],"additionalProperties":false}}}},"responses":{"201":{"description":"Closed.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/TaskDone"}}}},"401":{"description":"Missing or invalid access token (`unauthenticated`).","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorEnvelope"}}}},"403":{"description":"No organisation in the token (`no_organisation_context`), or not permitted (`forbidden`).","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorEnvelope"}}}},"404":{"description":"Not found, or not visible to the caller.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorEnvelope"}}}},"409":{"description":"`job_closed`.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorEnvelope"}}}},"422":{"description":"Invalid body or `not_its_reminder`.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorEnvelope"}}}}}}},"/organisations/current/resources/{resourceId}/jobs/{key}/files":{"post":{"tags":["jobs"],"summary":"A file already uploaded on the resource, by its attachment, attached to an open task; its name sealed; once; `update` on the resource; audited","security":[{"bearerAuth":[]}],"parameters":[{"schema":{"type":"string","format":"uuid"},"required":true,"name":"resourceId","in":"path"},{"schema":{"type":"string","minLength":1,"maxLength":240},"required":true,"name":"key","in":"path"}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/TaskFile"}}}},"responses":{"201":{"description":"Attached.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/TaskPartAdded"}}}},"401":{"description":"Missing or invalid access token (`unauthenticated`).","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorEnvelope"}}}},"403":{"description":"No organisation in the token (`no_organisation_context`), or not permitted (`forbidden`).","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorEnvelope"}}}},"404":{"description":"Not found, or not visible to the caller.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorEnvelope"}}}},"409":{"description":"`job_closed`.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorEnvelope"}}}},"422":{"description":"Invalid body, `file_elsewhere` or `no_change`.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorEnvelope"}}}}}}},"/organisations/current/resources/{resourceId}/jobs/{key}/files/detach":{"post":{"tags":["jobs"],"summary":"A file taken off a task (it stays the resource’s); `update` on the resource; audited","security":[{"bearerAuth":[]}],"parameters":[{"schema":{"type":"string","format":"uuid"},"required":true,"name":"resourceId","in":"path"},{"schema":{"type":"string","minLength":1,"maxLength":240},"required":true,"name":"key","in":"path"}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"type":"object","properties":{"id":{"type":"string","minLength":1,"maxLength":60}},"required":["id"],"additionalProperties":false}}}},"responses":{"201":{"description":"Detached.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/TaskDone"}}}},"401":{"description":"Missing or invalid access token (`unauthenticated`).","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorEnvelope"}}}},"403":{"description":"No organisation in the token (`no_organisation_context`), or not permitted (`forbidden`).","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorEnvelope"}}}},"404":{"description":"Not found, or not visible to the caller.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorEnvelope"}}}},"409":{"description":"`job_closed`.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorEnvelope"}}}},"422":{"description":"Invalid body or `not_its_file`.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorEnvelope"}}}}}}},"/organisations/current/resources/{resourceId}/jobs/{key}/files/uploads":{"post":{"tags":["jobs"],"summary":"Start an upload of a file to the task itself, kept as the resource’s and listed among none of its files; whoever may add files to the task","security":[{"bearerAuth":[]}],"parameters":[{"schema":{"type":"string","format":"uuid"},"required":true,"name":"resourceId","in":"path"},{"schema":{"type":"string","minLength":1,"maxLength":240},"required":true,"name":"key","in":"path"}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/TaskUploadStart"}}}},"responses":{"201":{"description":"Where to put the bytes.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/StartedUpload"}}}},"401":{"description":"Missing or invalid access token (`unauthenticated`).","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorEnvelope"}}}},"403":{"description":"No organisation in the token (`no_organisation_context`), or not permitted (`forbidden`).","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorEnvelope"}}}},"404":{"description":"Not found, or not visible to the caller.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorEnvelope"}}}},"422":{"description":"Invalid body, `unsupported_media` or `media_too_large`.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorEnvelope"}}}}}}},"/organisations/current/resources/{resourceId}/jobs/{key}/files/uploads/{uploadId}":{"put":{"tags":["jobs"],"summary":"A task upload’s bytes, through the API, where the store takes none of its own (development)","security":[{"bearerAuth":[]}],"parameters":[{"schema":{"type":"string","format":"uuid"},"required":true,"name":"resourceId","in":"path"},{"schema":{"type":"string","minLength":1,"maxLength":240},"required":true,"name":"key","in":"path"},{"schema":{"type":"string","format":"uuid"},"required":true,"name":"uploadId","in":"path"}],"responses":{"204":{"description":"Received."},"401":{"description":"Missing or invalid access token (`unauthenticated`).","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorEnvelope"}}}},"403":{"description":"No organisation in the token (`no_organisation_context`), or not permitted (`forbidden`).","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorEnvelope"}}}},"404":{"description":"Not found, or not visible to the caller.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorEnvelope"}}}},"409":{"description":"`upload_direct`: put the bytes where the upload said to.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorEnvelope"}}}},"413":{"description":"`media_too_large`.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorEnvelope"}}}},"422":{"description":"Invalid request.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorEnvelope"}}}}}}},"/organisations/current/resources/{resourceId}/jobs/{key}/files/uploads/{uploadId}/complete":{"post":{"tags":["jobs"],"summary":"Complete a task upload: the bytes kept by their sha-256 and recorded on the task, its name sealed; audited","security":[{"bearerAuth":[]}],"parameters":[{"schema":{"type":"string","format":"uuid"},"required":true,"name":"resourceId","in":"path"},{"schema":{"type":"string","minLength":1,"maxLength":240},"required":true,"name":"key","in":"path"},{"schema":{"type":"string","format":"uuid"},"required":true,"name":"uploadId","in":"path"}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/TaskUploadComplete"}}}},"responses":{"201":{"description":"Kept on the task.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/TaskPartAdded"}}}},"401":{"description":"Missing or invalid access token (`unauthenticated`).","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorEnvelope"}}}},"403":{"description":"No organisation in the token (`no_organisation_context`), or not permitted (`forbidden`).","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorEnvelope"}}}},"404":{"description":"Not found, or not visible to the caller.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorEnvelope"}}}},"410":{"description":"`media_erased`.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorEnvelope"}}}},"422":{"description":"Invalid body, `unsupported_media`, `media_too_large` or `no_change`.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorEnvelope"}}}}}}},"/organisations/current/resources/{resourceId}/jobs/{key}/files/{fileId}/content":{"get":{"tags":["jobs"],"summary":"One of a task’s files, or its preview, for whoever may open the task, and nobody else","security":[{"bearerAuth":[]}],"parameters":[{"schema":{"type":"string","format":"uuid"},"required":true,"name":"resourceId","in":"path"},{"schema":{"type":"string","minLength":1,"maxLength":240},"required":true,"name":"key","in":"path"},{"schema":{"type":"string","format":"uuid"},"required":true,"name":"fileId","in":"path"},{"schema":{"type":"string","enum":["original","display","thumb"],"default":"original"},"required":false,"name":"variant","in":"query"},{"schema":{"type":"string","enum":["1"],"description":"`1` to download rather than show."},"required":false,"description":"`1` to download rather than show.","name":"download","in":"query"}],"responses":{"200":{"description":"The bytes, from a store that hands out no URLs (development)."},"302":{"description":"Where to fetch the file for the next few minutes."},"401":{"description":"Missing or invalid access token (`unauthenticated`).","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorEnvelope"}}}},"403":{"description":"No organisation in the token (`no_organisation_context`), or not permitted (`forbidden`).","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorEnvelope"}}}},"404":{"description":"Not found, or not visible to the caller.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorEnvelope"}}}},"410":{"description":"`media_erased`: erased under an erasure request.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorEnvelope"}}}},"422":{"description":"Invalid request.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorEnvelope"}}}}}}},"/organisations/current/resources/{resourceId}/jobs/{key}/links":{"post":{"tags":["jobs"],"summary":"An https link on an open task, with an optional name (sealed); never a contractor’s link; `update` on the resource; audited, never the address","security":[{"bearerAuth":[]}],"parameters":[{"schema":{"type":"string","format":"uuid"},"required":true,"name":"resourceId","in":"path"},{"schema":{"type":"string","minLength":1,"maxLength":240},"required":true,"name":"key","in":"path"}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/TaskLink"}}}},"responses":{"201":{"description":"Added.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/TaskPartAdded"}}}},"401":{"description":"Missing or invalid access token (`unauthenticated`).","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorEnvelope"}}}},"403":{"description":"No organisation in the token (`no_organisation_context`), or not permitted (`forbidden`).","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorEnvelope"}}}},"404":{"description":"Not found, or not visible to the caller.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorEnvelope"}}}},"409":{"description":"`job_closed`.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorEnvelope"}}}},"422":{"description":"Invalid body, `https_only` or `too_long`.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorEnvelope"}}}}}}},"/organisations/current/resources/{resourceId}/jobs/{key}/links/close":{"post":{"tags":["jobs"],"summary":"A link taken off a task; `update` on the resource; audited","security":[{"bearerAuth":[]}],"parameters":[{"schema":{"type":"string","format":"uuid"},"required":true,"name":"resourceId","in":"path"},{"schema":{"type":"string","minLength":1,"maxLength":240},"required":true,"name":"key","in":"path"}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"type":"object","properties":{"id":{"type":"string","minLength":1,"maxLength":60}},"required":["id"],"additionalProperties":false}}}},"responses":{"201":{"description":"Closed.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/TaskDone"}}}},"401":{"description":"Missing or invalid access token (`unauthenticated`).","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorEnvelope"}}}},"403":{"description":"No organisation in the token (`no_organisation_context`), or not permitted (`forbidden`).","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorEnvelope"}}}},"404":{"description":"Not found, or not visible to the caller.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorEnvelope"}}}},"409":{"description":"`job_closed`.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorEnvelope"}}}},"422":{"description":"Invalid body or `not_its_link`.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorEnvelope"}}}}}}},"/organisations/current/resources/{resourceId}/jobs/{key}/tags":{"post":{"tags":["jobs"],"summary":"A free tag of 1 to 40 characters on an open task, once whatever its case; `update` on the resource; audited, never the words","security":[{"bearerAuth":[]}],"parameters":[{"schema":{"type":"string","format":"uuid"},"required":true,"name":"resourceId","in":"path"},{"schema":{"type":"string","minLength":1,"maxLength":240},"required":true,"name":"key","in":"path"}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/TaskTag"}}}},"responses":{"201":{"description":"Added.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/TaskPartAdded"}}}},"401":{"description":"Missing or invalid access token (`unauthenticated`).","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorEnvelope"}}}},"403":{"description":"No organisation in the token (`no_organisation_context`), or not permitted (`forbidden`).","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorEnvelope"}}}},"404":{"description":"Not found, or not visible to the caller.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorEnvelope"}}}},"409":{"description":"`job_closed`.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorEnvelope"}}}},"422":{"description":"Invalid body, `tag_length` or `no_change`.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorEnvelope"}}}}}}},"/organisations/current/resources/{resourceId}/jobs/{key}/tags/close":{"post":{"tags":["jobs"],"summary":"A tag taken off a task, by its words whatever their case; `update` on the resource; audited","security":[{"bearerAuth":[]}],"parameters":[{"schema":{"type":"string","format":"uuid"},"required":true,"name":"resourceId","in":"path"},{"schema":{"type":"string","minLength":1,"maxLength":240},"required":true,"name":"key","in":"path"}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/TaskTag"}}}},"responses":{"201":{"description":"Closed.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/TaskDone"}}}},"401":{"description":"Missing or invalid access token (`unauthenticated`).","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorEnvelope"}}}},"403":{"description":"No organisation in the token (`no_organisation_context`), or not permitted (`forbidden`).","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorEnvelope"}}}},"404":{"description":"Not found, or not visible to the caller.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorEnvelope"}}}},"409":{"description":"`job_closed`.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorEnvelope"}}}},"422":{"description":"Invalid body or `not_its_tag`.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorEnvelope"}}}}}}},"/organisations/current/resources/{resourceId}/jobs/{key}/waits":{"post":{"tags":["jobs"],"summary":"An open task waiting for another open task of the resource, never in a cycle; while it waits it cannot be done; `update` on the resource; audited","security":[{"bearerAuth":[]}],"parameters":[{"schema":{"type":"string","format":"uuid"},"required":true,"name":"resourceId","in":"path"},{"schema":{"type":"string","minLength":1,"maxLength":240},"required":true,"name":"key","in":"path"}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/TaskWait"}}}},"responses":{"201":{"description":"Added.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/TaskDone"}}}},"401":{"description":"Missing or invalid access token (`unauthenticated`).","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorEnvelope"}}}},"403":{"description":"No organisation in the token (`no_organisation_context`), or not permitted (`forbidden`).","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorEnvelope"}}}},"404":{"description":"Not found, or not visible to the caller.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorEnvelope"}}}},"409":{"description":"`job_closed`, `waits_for_closed` or `wait_cycle`.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorEnvelope"}}}},"422":{"description":"Invalid body, `unknown_task` or `no_change`.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorEnvelope"}}}}}}},"/organisations/current/resources/{resourceId}/jobs/{key}/waits/close":{"post":{"tags":["jobs"],"summary":"A task no longer waiting for another; `update` on the resource; audited","security":[{"bearerAuth":[]}],"parameters":[{"schema":{"type":"string","format":"uuid"},"required":true,"name":"resourceId","in":"path"},{"schema":{"type":"string","minLength":1,"maxLength":240},"required":true,"name":"key","in":"path"}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/TaskWait"}}}},"responses":{"201":{"description":"Closed.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/TaskDone"}}}},"401":{"description":"Missing or invalid access token (`unauthenticated`).","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorEnvelope"}}}},"403":{"description":"No organisation in the token (`no_organisation_context`), or not permitted (`forbidden`).","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorEnvelope"}}}},"404":{"description":"Not found, or not visible to the caller.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorEnvelope"}}}},"409":{"description":"`job_closed` or `worked_out`.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorEnvelope"}}}},"422":{"description":"Invalid body or `not_waiting_for`.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorEnvelope"}}}}}}},"/organisations/current/resources/{resourceId}/job-tags":{"get":{"tags":["jobs"],"summary":"The tags already used on the tasks of every resource the reader may edit, most used first, for suggestions; `update` on the resource; logged","security":[{"bearerAuth":[]}],"parameters":[{"schema":{"type":"string","format":"uuid"},"required":true,"name":"resourceId","in":"path"}],"responses":{"200":{"description":"The tags.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/TaskTags"}}}},"401":{"description":"Missing or invalid access token (`unauthenticated`).","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorEnvelope"}}}},"403":{"description":"No organisation in the token (`no_organisation_context`), or not permitted (`forbidden`).","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorEnvelope"}}}},"404":{"description":"Not found, or not visible to the caller.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorEnvelope"}}}},"422":{"description":"Invalid request.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorEnvelope"}}}}}}},"/organisations/current/resources/{resourceId}/job-subjects":{"get":{"tags":["jobs"],"summary":"What a task of the resource may be for, as the reader may read it, each named; `update` on the resource, logged","security":[{"bearerAuth":[]}],"parameters":[{"schema":{"type":"string","format":"uuid"},"required":true,"name":"resourceId","in":"path"}],"responses":{"200":{"description":"What it may be for.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/TaskSubjectChoices"}}}},"401":{"description":"Missing or invalid access token (`unauthenticated`).","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorEnvelope"}}}},"403":{"description":"No organisation in the token (`no_organisation_context`), or not permitted (`forbidden`).","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorEnvelope"}}}},"404":{"description":"Not found, or not visible to the caller.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorEnvelope"}}}},"422":{"description":"Invalid request.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorEnvelope"}}}}}}},"/organisations/current/people/{personId}/processes/{handle}/jobs":{"get":{"tags":["jobs"],"summary":"A process’s jobs, open first, each with its current status, owner, due day and whether it comes before sign-off, and its trail; as reading the process is decided, logged","security":[{"bearerAuth":[]}],"parameters":[{"schema":{"type":"string","format":"uuid"},"required":true,"name":"personId","in":"path"},{"schema":{"type":"string","format":"uuid"},"required":true,"name":"handle","in":"path"}],"responses":{"200":{"description":"The jobs.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ProcessJobs"}}}},"401":{"description":"Missing or invalid access token (`unauthenticated`).","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorEnvelope"}}}},"403":{"description":"No organisation in the token (`no_organisation_context`), or not permitted (`forbidden`).","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorEnvelope"}}}},"404":{"description":"Not found, or not visible to the caller.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorEnvelope"}}}},"422":{"description":"Invalid request.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorEnvelope"}}}}}},"post":{"tags":["jobs"],"summary":"A job added by hand from the short list (ask · fit · record · book · other): what, who owes it, when, and whether it comes before sign-off; `update` on the process; audited","security":[{"bearerAuth":[]}],"parameters":[{"schema":{"type":"string","format":"uuid"},"required":true,"name":"personId","in":"path"},{"schema":{"type":"string","format":"uuid"},"required":true,"name":"handle","in":"path"}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/JobAdded"}}}},"responses":{"201":{"description":"Added.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/JobClosed"}}}},"401":{"description":"Missing or invalid access token (`unauthenticated`).","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorEnvelope"}}}},"403":{"description":"No organisation in the token (`no_organisation_context`), or not permitted (`forbidden`).","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorEnvelope"}}}},"404":{"description":"Not found, or not visible to the caller.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorEnvelope"}}}},"409":{"description":"`process_ended`.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorEnvelope"}}}},"422":{"description":"Invalid body, `unknown_kind`, `words_needed`, `owner_needed`, `not_a_member`, `unknown_team`, `due_needed` or `too_long`.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorEnvelope"}}}}}}},"/organisations/current/people/{personId}/processes/{handle}/jobs/{key}/entries":{"post":{"tags":["jobs"],"summary":"One entry on a job’s trail: a note, a status, who owes it, its due day, or whether it comes before sign-off; never on a closed job; `update` on the process; audited","security":[{"bearerAuth":[]}],"parameters":[{"schema":{"type":"string","format":"uuid"},"required":true,"name":"personId","in":"path"},{"schema":{"type":"string","format":"uuid"},"required":true,"name":"handle","in":"path"},{"schema":{"type":"string","minLength":1,"maxLength":240},"required":true,"name":"key","in":"path"}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/JobEntry"}}}},"responses":{"201":{"description":"Added to the trail.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/JobEntryMade"}}}},"401":{"description":"Missing or invalid access token (`unauthenticated`).","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorEnvelope"}}}},"403":{"description":"No organisation in the token (`no_organisation_context`), or not permitted (`forbidden`).","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorEnvelope"}}}},"404":{"description":"Not found, or not visible to the caller.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorEnvelope"}}}},"409":{"description":"`job_closed`.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorEnvelope"}}}},"422":{"description":"Invalid body, `unknown_entry`, `words_needed`, `unknown_job_status`, `owner_needed`, `not_a_member`, `unknown_team`, `due_needed`, `blocks_needed`, `no_change` or `too_long`.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorEnvelope"}}}}}}},"/organisations/current/people/{personId}/processes/{handle}/job-links":{"get":{"tags":["jobs"],"summary":"The links sent for a process’s jobs, and what landed by them, each with whether it was taken in; as reading the process is decided, logged","security":[{"bearerAuth":[]}],"parameters":[{"schema":{"type":"string","format":"uuid"},"required":true,"name":"personId","in":"path"},{"schema":{"type":"string","format":"uuid"},"required":true,"name":"handle","in":"path"}],"responses":{"200":{"description":"The links and what landed.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/JobLinks"}}}},"401":{"description":"Missing or invalid access token (`unauthenticated`).","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorEnvelope"}}}},"403":{"description":"No organisation in the token (`no_organisation_context`), or not permitted (`forbidden`).","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorEnvelope"}}}},"404":{"description":"Not found, or not visible to the caller.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorEnvelope"}}}},"422":{"description":"Invalid request.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorEnvelope"}}}}}}},"/organisations/current/people/{personId}/processes/{handle}/jobs/{key}/links":{"post":{"tags":["jobs"],"summary":"Sends a link for one open job owed in words, good for thirty days and that job only: the email says a job is waiting, where, by when, and the link; `update` on the process; audited","security":[{"bearerAuth":[]}],"parameters":[{"schema":{"type":"string","format":"uuid"},"required":true,"name":"personId","in":"path"},{"schema":{"type":"string","format":"uuid"},"required":true,"name":"handle","in":"path"},{"schema":{"type":"string","minLength":1,"maxLength":240},"required":true,"name":"key","in":"path"}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/JobLinkSend"}}}},"responses":{"201":{"description":"Sent.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/JobLinkSent"}}}},"401":{"description":"Missing or invalid access token (`unauthenticated`).","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorEnvelope"}}}},"403":{"description":"No organisation in the token (`no_organisation_context`), or not permitted (`forbidden`).","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorEnvelope"}}}},"404":{"description":"Not found, or not visible to the caller.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorEnvelope"}}}},"409":{"description":"`job_closed`, or `links_not_available` while the no-sign-in link is hidden (until contractor access is a signed-in membership).","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorEnvelope"}}}},"422":{"description":"Invalid body, `not_owed_in_words`, `email_needed` or `unknown_email`.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorEnvelope"}}}}}}},"/organisations/current/people/{personId}/processes/{handle}/job-links/{linkId}/revoke":{"post":{"tags":["jobs"],"summary":"Stops a job’s link, once: from then it opens nothing; `update` on the process; audited","security":[{"bearerAuth":[]}],"parameters":[{"schema":{"type":"string","format":"uuid"},"required":true,"name":"personId","in":"path"},{"schema":{"type":"string","format":"uuid"},"required":true,"name":"handle","in":"path"},{"schema":{"type":"string","maxLength":60},"required":true,"name":"linkId","in":"path"}],"responses":{"201":{"description":"Stopped.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/JobLinkRevoked"}}}},"401":{"description":"Missing or invalid access token (`unauthenticated`).","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorEnvelope"}}}},"403":{"description":"No organisation in the token (`no_organisation_context`), or not permitted (`forbidden`).","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorEnvelope"}}}},"404":{"description":"Not found, or not visible to the caller.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorEnvelope"}}}},"409":{"description":"`link_revoked` or `link_expired`.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorEnvelope"}}}},"422":{"description":"Invalid request.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorEnvelope"}}}}}}},"/organisations/current/people/{personId}/processes/{handle}/job-received/{receivedId}/take":{"post":{"tags":["jobs"],"summary":"Takes in what landed by a link: a `taken` entry on the job’s trail pointing at it, with its note, once; never on a closed job; `update` on the process; audited","security":[{"bearerAuth":[]}],"parameters":[{"schema":{"type":"string","format":"uuid"},"required":true,"name":"personId","in":"path"},{"schema":{"type":"string","format":"uuid"},"required":true,"name":"handle","in":"path"},{"schema":{"type":"string","maxLength":60},"required":true,"name":"receivedId","in":"path"}],"responses":{"201":{"description":"Taken in.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/JobReceivedTaken"}}}},"401":{"description":"Missing or invalid access token (`unauthenticated`).","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorEnvelope"}}}},"403":{"description":"No organisation in the token (`no_organisation_context`), or not permitted (`forbidden`).","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorEnvelope"}}}},"404":{"description":"Not found, or not visible to the caller.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorEnvelope"}}}},"409":{"description":"`job_closed` or `already_taken`.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorEnvelope"}}}},"422":{"description":"Invalid request.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorEnvelope"}}}}}}},"/public/job-links/{token}":{"get":{"tags":["public"],"summary":"The page behind a link, with no sign-in: what is owed, where, by when, and until when the link works; nothing else","parameters":[{"schema":{"type":"string"},"required":true,"name":"token","in":"path"}],"responses":{"200":{"description":"The page.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/LinkPage"}}}},"403":{"description":"A browser call from another site (`origin_not_allowed`).","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorEnvelope"}}}},"404":{"description":"Any token that opens nothing (`link_not_valid`), alike.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorEnvelope"}}}},"429":{"description":"Too many requests (`rate_limited`).","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorEnvelope"}}}}}},"post":{"tags":["public"],"summary":"What is sent by a link, a note and whether it is done, lands read-only, attributed to the link; it changes nothing by itself","parameters":[{"schema":{"type":"string"},"required":true,"name":"token","in":"path"}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/LinkReceive"}}}},"responses":{"201":{"description":"Received.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/LinkReceived"}}}},"403":{"description":"A browser call from another site (`origin_not_allowed`).","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorEnvelope"}}}},"404":{"description":"Any token that opens nothing (`link_not_valid`), alike.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorEnvelope"}}}},"422":{"description":"Invalid body, `note_needed` or `too_long`.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorEnvelope"}}}},"429":{"description":"Too many requests (`rate_limited`).","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorEnvelope"}}}}}}},"/organisations/current/people/{personId}/contacts":{"get":{"tags":["contacts"],"summary":"A person’s contacts for one process (`handle`) or about one residency (`residency`): coming up, soonest first, then those recorded; as updating the process is decided, logged","security":[{"bearerAuth":[]}],"parameters":[{"schema":{"type":"string","format":"uuid"},"required":true,"name":"personId","in":"path"},{"schema":{"type":"string","format":"uuid"},"required":false,"name":"handle","in":"query"},{"schema":{"type":"string","format":"uuid"},"required":false,"name":"residency","in":"query"}],"responses":{"200":{"description":"The contacts.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Contacts"}}}},"401":{"description":"Missing or invalid access token (`unauthenticated`).","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorEnvelope"}}}},"403":{"description":"No organisation in the token (`no_organisation_context`), or not permitted (`forbidden`).","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorEnvelope"}}}},"404":{"description":"Not found, or not visible to the caller.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorEnvelope"}}}},"422":{"description":"Invalid query, or `residency_needed`.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorEnvelope"}}}}}},"post":{"tags":["contacts"],"summary":"A contact planned: a visit, a call or a letter, for a step of a process (or of a thread of the person’s) or for a job; what it is for in words, when, who is going, who will be there, and whether the person has been told; `update` on the person; audited; whoever is going is emailed with a calendar file","security":[{"bearerAuth":[]}],"parameters":[{"schema":{"type":"string","format":"uuid"},"required":true,"name":"personId","in":"path"}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ContactPlan"}}}},"responses":{"201":{"description":"Planned.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ContactPlanned"}}}},"401":{"description":"Missing or invalid access token (`unauthenticated`).","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorEnvelope"}}}},"403":{"description":"No organisation in the token (`no_organisation_context`), or not permitted (`forbidden`).","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorEnvelope"}}}},"404":{"description":"Not found, or not visible to the caller.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorEnvelope"}}}},"409":{"description":"`process_ended`, `residency_ended`, `job_closed`, `thread_closed` or `tombstoned`.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorEnvelope"}}}},"422":{"description":"Invalid body, `what_needed` (with `threadId`), `residency_needed`, `purpose_needed`, `unknown_purpose`, `process_needed`, `unknown_job`, `unknown_mode`, `day_needed`, `unknown_time`, `going_needed`, `not_a_member`, `unknown_team`, `unknown_party`, `unknown_day`, `told_later`, `too_many` or `too_long`.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorEnvelope"}}}}}}},"/organisations/current/people/{personId}/contacts/{contactId}/told":{"post":{"tags":["contacts"],"summary":"The person told the contact is coming, on a day (today unless said); once, and never after it is recorded; `update` on the person; audited","security":[{"bearerAuth":[]}],"parameters":[{"schema":{"type":"string","format":"uuid"},"required":true,"name":"personId","in":"path"},{"schema":{"type":"string","format":"uuid"},"required":true,"name":"contactId","in":"path"}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ContactTold"}}}},"responses":{"201":{"description":"Told.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ContactToldOn"}}}},"401":{"description":"Missing or invalid access token (`unauthenticated`).","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorEnvelope"}}}},"403":{"description":"No organisation in the token (`no_organisation_context`), or not permitted (`forbidden`).","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorEnvelope"}}}},"404":{"description":"Not found, or not visible to the caller.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorEnvelope"}}}},"409":{"description":"`already_told`, `contact_recorded` or `tombstoned`.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorEnvelope"}}}},"422":{"description":"Invalid body, `unknown_day` or `told_later`.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorEnvelope"}}}}}}},"/organisations/current/people/{personId}/contacts/{contactId}/record":{"post":{"tags":["contacts"],"summary":"What came of a contact, once: it happened (a note), it did not (why), or it moved to a new contact planned in the same act; `update` on the person; audited","security":[{"bearerAuth":[]}],"parameters":[{"schema":{"type":"string","format":"uuid"},"required":true,"name":"personId","in":"path"},{"schema":{"type":"string","format":"uuid"},"required":true,"name":"contactId","in":"path"}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ContactRecord"}}}},"responses":{"201":{"description":"Recorded.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ContactRecorded"}}}},"401":{"description":"Missing or invalid access token (`unauthenticated`).","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorEnvelope"}}}},"403":{"description":"No organisation in the token (`no_organisation_context`), or not permitted (`forbidden`).","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorEnvelope"}}}},"404":{"description":"Not found, or not visible to the caller.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorEnvelope"}}}},"409":{"description":"`contact_recorded`, `tombstoned`, `move_from_the_offer` or `visit_on_its_page` (the contact of a V2 visit that stands: what came of it is recorded on the visit’s own page).","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorEnvelope"}}}},"422":{"description":"Invalid body, `unknown_contact_outcome`, `why_needed`, `day_needed`, `unknown_time`, `unknown_mode`, `not_a_member`, `unknown_team`, `unknown_party`, `unknown_day`, `told_later` or `too_long`.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorEnvelope"}}}}}}},"/organisations/current/people/{personId}/v2":{"get":{"tags":["invitations"],"summary":"The person’s V2 threads, open first, and whether the reader may start one; `read` on the person, logged","security":[{"bearerAuth":[]}],"parameters":[{"schema":{"type":"string","format":"uuid"},"required":true,"name":"personId","in":"path"}],"responses":{"200":{"description":"The threads.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/V2Threads"}}}},"401":{"description":"Missing or invalid access token (`unauthenticated`).","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorEnvelope"}}}},"403":{"description":"No organisation in the token (`no_organisation_context`), or not permitted (`forbidden`).","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorEnvelope"}}}},"404":{"description":"Not found, or not visible to the caller.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorEnvelope"}}}},"422":{"description":"Invalid request.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorEnvelope"}}}}}},"post":{"tags":["invitations"],"summary":"Start a V2 thread on one of the person’s residencies, with who looks after it; one open per residency; `update` on the person; audited","security":[{"bearerAuth":[]}],"parameters":[{"schema":{"type":"string","format":"uuid"},"required":true,"name":"personId","in":"path"}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/V2Start"}}}},"responses":{"201":{"description":"Done.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/V2Started"}}}},"401":{"description":"Missing or invalid access token (`unauthenticated`).","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorEnvelope"}}}},"403":{"description":"No organisation in the token (`no_organisation_context`), or not permitted (`forbidden`).","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorEnvelope"}}}},"404":{"description":"Not found, or not visible to the caller.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorEnvelope"}}}},"409":{"description":"`already_open`, `residency_ended` or `tombstoned`.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorEnvelope"}}}},"422":{"description":"Invalid body, `residency_needed`, `owner_needed`, `not_a_member` or `unknown_team`.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorEnvelope"}}}}}}},"/organisations/current/people/{personId}/v2/{threadId}":{"get":{"tags":["invitations"],"summary":"The V2 thread’s home: where it stands, the offer of an assessment, every try, every answer and the one standing, the times, the time chosen, the visit, and the count toward not reached; `read` on the person, logged","security":[{"bearerAuth":[]}],"parameters":[{"schema":{"type":"string","format":"uuid"},"required":true,"name":"personId","in":"path"},{"schema":{"type":"string","format":"uuid"},"required":true,"name":"threadId","in":"path"}],"responses":{"200":{"description":"The home.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/V2Home"}}}},"401":{"description":"Missing or invalid access token (`unauthenticated`).","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorEnvelope"}}}},"403":{"description":"No organisation in the token (`no_organisation_context`), or not permitted (`forbidden`).","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorEnvelope"}}}},"404":{"description":"Not found, or not visible to the caller.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorEnvelope"}}}},"422":{"description":"Invalid request.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorEnvelope"}}}}}}},"/organisations/current/people/{personId}/v2/{threadId}/preview":{"get":{"tags":["invitations"],"summary":"The offer of an assessment as it will go: to whom, which ways may be used (and why not, in words), and the words as Point will send them, with the times put in; `read` on the person, logged","security":[{"bearerAuth":[]}],"parameters":[{"schema":{"type":"string","format":"uuid"},"required":true,"name":"personId","in":"path"},{"schema":{"type":"string","format":"uuid"},"required":true,"name":"threadId","in":"path"},{"schema":{"type":"string","maxLength":60},"required":false,"name":"to","in":"query"},{"schema":{"type":"string","maxLength":400},"required":false,"name":"slots","in":"query"}],"responses":{"200":{"description":"The preview.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/InvitationPreview"}}}},"401":{"description":"Missing or invalid access token (`unauthenticated`).","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorEnvelope"}}}},"403":{"description":"No organisation in the token (`no_organisation_context`), or not permitted (`forbidden`).","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorEnvelope"}}}},"404":{"description":"Not found, or not visible to the caller.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorEnvelope"}}}},"409":{"description":"`party_lapsed`.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorEnvelope"}}}},"422":{"description":"`unknown_party`, `no_authority`, `unknown_slot` or `too_many_slots`.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorEnvelope"}}}}}}},"/organisations/current/people/{personId}/v2/{threadId}/letters/{kind}":{"get":{"tags":["invitations"],"summary":"A letter to print (the offer, a second try, or the visit), standard or large print, from Point’s words; it never carries a way to answer; `read` on the person, logged","security":[{"bearerAuth":[]}],"parameters":[{"schema":{"type":"string","format":"uuid"},"required":true,"name":"personId","in":"path"},{"schema":{"type":"string","format":"uuid"},"required":true,"name":"threadId","in":"path"},{"schema":{"type":"string","maxLength":20},"required":true,"name":"kind","in":"path"},{"schema":{"type":"string","maxLength":20},"required":false,"name":"format","in":"query"}],"responses":{"200":{"description":"The letter.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/InvitationLetter"}}}},"401":{"description":"Missing or invalid access token (`unauthenticated`).","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorEnvelope"}}}},"403":{"description":"No organisation in the token (`no_organisation_context`), or not permitted (`forbidden`).","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorEnvelope"}}}},"404":{"description":"Not found, or not visible to the caller.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorEnvelope"}}}},"409":{"description":"`offer_not_made` or `not_booked`.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorEnvelope"}}}},"422":{"description":"`unknown_letter` or `unknown_format`.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorEnvelope"}}}}}}},"/organisations/current/people/{personId}/v2/{threadId}/tries":{"post":{"tags":["invitations"],"summary":"Make the offer of an assessment (the first try) or try another way: in Point, by email, by letter, by phone or at the door; `update` on the person; audited; an email goes after commit","security":[{"bearerAuth":[]}],"parameters":[{"schema":{"type":"string","format":"uuid"},"required":true,"name":"personId","in":"path"},{"schema":{"type":"string","format":"uuid"},"required":true,"name":"threadId","in":"path"}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/InvitationTry"}}}},"responses":{"201":{"description":"Done.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/InvitationTried"}}}},"401":{"description":"Missing or invalid access token (`unauthenticated`).","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorEnvelope"}}}},"403":{"description":"No organisation in the token (`no_organisation_context`), or not permitted (`forbidden`).","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorEnvelope"}}}},"404":{"description":"Not found, or not visible to the caller.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorEnvelope"}}}},"409":{"description":"`answered_yes`, `offer_made`, `not_in_point`, `thread_closed` or `tombstoned`.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorEnvelope"}}}},"422":{"description":"Invalid body, `unknown_how`, `unknown_party`, `no_authority`, `unknown_language`, `unknown_format`, `not_a_member`, `unknown_slot`, `slot_past`, `slot_twice`, `too_many_slots`, `unknown_outcome`, `no_email_on_record` or `no_email_for_party`.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorEnvelope"}}}}}}},"/organisations/current/people/{personId}/v2/{threadId}/slots":{"post":{"tags":["invitations"],"summary":"Offer times for the visit: a new set that replaces the last; `update` on the person; audited","security":[{"bearerAuth":[]}],"parameters":[{"schema":{"type":"string","format":"uuid"},"required":true,"name":"personId","in":"path"},{"schema":{"type":"string","format":"uuid"},"required":true,"name":"threadId","in":"path"}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/InvitationSlots"}}}},"responses":{"201":{"description":"Done.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/InvitationSlotsOffered"}}}},"401":{"description":"Missing or invalid access token (`unauthenticated`).","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorEnvelope"}}}},"403":{"description":"No organisation in the token (`no_organisation_context`), or not permitted (`forbidden`).","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorEnvelope"}}}},"404":{"description":"Not found, or not visible to the caller.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorEnvelope"}}}},"409":{"description":"`offer_not_made`, `visit_booked`, `thread_closed` or `tombstoned`.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorEnvelope"}}}},"422":{"description":"Invalid body, `slots_needed`, `unknown_slot`, `slot_past`, `slot_twice` or `too_many_slots`.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorEnvelope"}}}}}}},"/organisations/current/people/{personId}/v2/{threadId}/answers":{"post":{"tags":["invitations"],"summary":"Record the answer heard (phone, door, in person), by the person or a checked party; a yes that stands is consent to be assessed (spec 49); `update` on the person; audited","security":[{"bearerAuth":[]}],"parameters":[{"schema":{"type":"string","format":"uuid"},"required":true,"name":"personId","in":"path"},{"schema":{"type":"string","format":"uuid"},"required":true,"name":"threadId","in":"path"}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/InvitationAnswer"}}}},"responses":{"201":{"description":"Done.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/InvitationAnswered"}}}},"401":{"description":"Missing or invalid access token (`unauthenticated`).","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorEnvelope"}}}},"403":{"description":"No organisation in the token (`no_organisation_context`), or not permitted (`forbidden`).","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorEnvelope"}}}},"404":{"description":"Not found, or not visible to the caller.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorEnvelope"}}}},"409":{"description":"`offer_not_made`, `party_lapsed`, `thread_closed` or `tombstoned`.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorEnvelope"}}}},"422":{"description":"Invalid body, `unknown_answer`, `unknown_via`, `unknown_at`, `ask_again_needed`, `ask_again_past`, `ask_again_not_now`, `words_too_long`, `unknown_party` or `no_authority`.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorEnvelope"}}}}}}},"/organisations/current/people/{personId}/v2/{threadId}/picks":{"post":{"tags":["invitations"],"summary":"Record the time chosen (one of the times offered, or none of them, with the days that suit them), where, who with, and anything to tell first; `update` on the person; audited","security":[{"bearerAuth":[]}],"parameters":[{"schema":{"type":"string","format":"uuid"},"required":true,"name":"personId","in":"path"},{"schema":{"type":"string","format":"uuid"},"required":true,"name":"threadId","in":"path"}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/InvitationPick"}}}},"responses":{"201":{"description":"Done.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/InvitationPicked"}}}},"401":{"description":"Missing or invalid access token (`unauthenticated`).","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorEnvelope"}}}},"403":{"description":"No organisation in the token (`no_organisation_context`), or not permitted (`forbidden`).","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorEnvelope"}}}},"404":{"description":"Not found, or not visible to the caller.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorEnvelope"}}}},"409":{"description":"`not_yes`, `visit_booked`, `thread_closed` or `tombstoned`.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorEnvelope"}}}},"422":{"description":"Invalid body, `unknown_via`, `unknown_slot`, `unknown_place`, `place_needed`, `words_too_long`, `unknown_party`, `no_authority`, `suggested_with_slot`, `too_many_days`, `unknown_day`, `unknown_part` or `day_twice`.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorEnvelope"}}}}}}},"/organisations/current/people/{personId}/v2/{threadId}/booking":{"post":{"tags":["invitations"],"summary":"Book the visit at the time chosen: a contact (mode visit) with its calendar file to the visitor, and the visit email to whoever answers; while a visit is being moved, books it again (the old contact recorded moved to the new); `update` on the person; audited","security":[{"bearerAuth":[]}],"parameters":[{"schema":{"type":"string","format":"uuid"},"required":true,"name":"personId","in":"path"},{"schema":{"type":"string","format":"uuid"},"required":true,"name":"threadId","in":"path"}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/InvitationBook"}}}},"responses":{"201":{"description":"Done.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/InvitationBooked"}}}},"401":{"description":"Missing or invalid access token (`unauthenticated`).","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorEnvelope"}}}},"403":{"description":"No organisation in the token (`no_organisation_context`), or not permitted (`forbidden`).","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorEnvelope"}}}},"404":{"description":"Not found, or not visible to the caller.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorEnvelope"}}}},"409":{"description":"`not_yes`, `no_time_chosen`, `visit_booked`, `slot_past`, `contact_recorded`, `residency_ended`, `thread_closed` or `tombstoned`.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorEnvelope"}}}},"422":{"description":"Invalid body, or the visitor may no longer go (`not_a_member`).","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorEnvelope"}}}}}}},"/organisations/current/people/{personId}/v2/{threadId}/confirmed-time":{"post":{"tags":["invitations"],"summary":"Confirm a time agreed with the person (on a day they suggested, or any time to come), not one of the times offered; then book the visit; `update` on the person; audited","security":[{"bearerAuth":[]}],"parameters":[{"schema":{"type":"string","format":"uuid"},"required":true,"name":"personId","in":"path"},{"schema":{"type":"string","format":"uuid"},"required":true,"name":"threadId","in":"path"}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/InvitationConfirmedTime"}}}},"responses":{"201":{"description":"Done.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/InvitationTimeConfirmed"}}}},"401":{"description":"Missing or invalid access token (`unauthenticated`).","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorEnvelope"}}}},"403":{"description":"No organisation in the token (`no_organisation_context`), or not permitted (`forbidden`).","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorEnvelope"}}}},"404":{"description":"Not found, or not visible to the caller.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorEnvelope"}}}},"409":{"description":"`not_yes`, `visit_booked`, `thread_closed` or `tombstoned`.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorEnvelope"}}}},"422":{"description":"Invalid body, `slot_needed`, `unknown_slot`, `slot_past`, `unknown_via`, `unknown_place`, `place_needed`, `words_too_long`, `unknown_party` or `no_authority`.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorEnvelope"}}}}}}},"/organisations/current/people/{personId}/v2/{threadId}/visit":{"get":{"tags":["invitations"],"summary":"The visit page: Point’s words for the day, the visit’s facts (the person’s words for the visitor, who they wanted there, the attorney or deputy on record), and what came of it; `read` on the person; logged","security":[{"bearerAuth":[]}],"parameters":[{"schema":{"type":"string","format":"uuid"},"required":true,"name":"personId","in":"path"},{"schema":{"type":"string","format":"uuid"},"required":true,"name":"threadId","in":"path"}],"responses":{"200":{"description":"The visit.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/InvitationVisit"}}}},"401":{"description":"Missing or invalid access token (`unauthenticated`).","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorEnvelope"}}}},"403":{"description":"No organisation in the token (`no_organisation_context`), or not permitted (`forbidden`).","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorEnvelope"}}}},"404":{"description":"Not found, or not visible to the caller.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorEnvelope"}}}},"422":{"description":"Invalid request.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorEnvelope"}}}}}},"post":{"tags":["invitations"],"summary":"What came of the visit, once: started (consent in person, by the person or the attorney or deputy on record), not today (a move opened), no (the offer’s no, heard in person), could not decide, or nobody in; `update` on the person; audited","security":[{"bearerAuth":[]}],"parameters":[{"schema":{"type":"string","format":"uuid"},"required":true,"name":"personId","in":"path"},{"schema":{"type":"string","format":"uuid"},"required":true,"name":"threadId","in":"path"}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/InvitationVisitOutcome"}}}},"responses":{"201":{"description":"Done.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/InvitationVisitRecorded"}}}},"401":{"description":"Missing or invalid access token (`unauthenticated`).","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorEnvelope"}}}},"403":{"description":"No organisation in the token (`no_organisation_context`), or not permitted (`forbidden`).","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorEnvelope"}}}},"404":{"description":"Not found, or not visible to the caller.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorEnvelope"}}}},"409":{"description":"`not_booked`, `not_this_visit`, `visit_recorded`, `visit_moving`, `visit_not_yet` (nobody in, before the visit’s day), `party_lapsed`, `thread_closed` or `tombstoned`. 403 `not_the_visitor`: started or no, recorded by a member who is not the visitor without `visitingInstead`.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorEnvelope"}}}},"422":{"description":"Invalid body, `unknown_outcome`, `agreed_only_to_start`, `words_only_could_not_decide`, `words_too_long`, `unknown_party` or `no_authority`.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorEnvelope"}}}}}}},"/organisations/current/people/{personId}/v2/{threadId}/start":{"get":{"tags":["invitations"],"summary":"Start now, in person, with no visit booked: Point’s words for the day with the reader as the one who is there, the person’s words, the attorney or deputy on record, and whether it may be recorded; `read` on the person; logged","security":[{"bearerAuth":[]}],"parameters":[{"schema":{"type":"string","format":"uuid"},"required":true,"name":"personId","in":"path"},{"schema":{"type":"string","format":"uuid"},"required":true,"name":"threadId","in":"path"}],"responses":{"200":{"description":"Start now.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/InvitationInPerson"}}}},"401":{"description":"Missing or invalid access token (`unauthenticated`).","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorEnvelope"}}}},"403":{"description":"No organisation in the token (`no_organisation_context`), or not permitted (`forbidden`).","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorEnvelope"}}}},"404":{"description":"Not found, or not visible to the caller.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorEnvelope"}}}},"422":{"description":"Invalid request.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorEnvelope"}}}}}},"post":{"tags":["invitations"],"summary":"Start now, in person, with no visit booked, once: the offer made at the door if none is waiting; then started (the yes and the consent in person, by the person or the attorney or deputy on record who is there), no (heard in person), or could not decide; the contact happened; `update` on the person; audited","security":[{"bearerAuth":[]}],"parameters":[{"schema":{"type":"string","format":"uuid"},"required":true,"name":"personId","in":"path"},{"schema":{"type":"string","format":"uuid"},"required":true,"name":"threadId","in":"path"}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/InvitationInPersonOutcome"}}}},"responses":{"201":{"description":"Done.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/InvitationInPersonRecorded"}}}},"401":{"description":"Missing or invalid access token (`unauthenticated`).","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorEnvelope"}}}},"403":{"description":"No organisation in the token (`no_organisation_context`), or not permitted (`forbidden`).","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorEnvelope"}}}},"404":{"description":"Not found, or not visible to the caller.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorEnvelope"}}}},"409":{"description":"`visit_booked` (a visit booked stands, not being moved: record it on its own page), `visit_recorded` (started already, or the same outcome twice with nothing since), `own_answer_stands`, `party_lapsed`, `residency_ended`, `thread_closed` or `tombstoned`.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorEnvelope"}}}},"422":{"description":"Invalid body, `unknown_outcome`, `agreed_only_to_start`, `words_only_could_not_decide`, `words_too_long`, `unknown_party` or `no_authority`.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorEnvelope"}}}}}}},"/organisations/current/people/{personId}/v2/{threadId}/move":{"post":{"tags":["invitations"],"summary":"Move the visit: on a booked visit, a move opened with new times offered (or none, to confirm one by phone); booked again through the booking; `update` on the person; audited","security":[{"bearerAuth":[]}],"parameters":[{"schema":{"type":"string","format":"uuid"},"required":true,"name":"personId","in":"path"},{"schema":{"type":"string","format":"uuid"},"required":true,"name":"threadId","in":"path"}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/InvitationMove"}}}},"responses":{"201":{"description":"Done.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/InvitationMoving"}}}},"401":{"description":"Missing or invalid access token (`unauthenticated`).","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorEnvelope"}}}},"403":{"description":"No organisation in the token (`no_organisation_context`), or not permitted (`forbidden`).","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorEnvelope"}}}},"404":{"description":"Not found, or not visible to the caller.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorEnvelope"}}}},"409":{"description":"`not_booked`, `already_moving`, `visit_recorded`, `thread_closed` or `tombstoned`.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorEnvelope"}}}},"422":{"description":"Invalid body, `unknown_slot`, `slot_past`, `slot_twice` or `too_many_slots`.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorEnvelope"}}}}}}},"/organisations/current/people/{personId}/parties/{handle}/contacts":{"get":{"tags":["invitations"],"summary":"A representative’s contact details (name, email, postal address), each with where it came from; the email confirmed in their Point request fills it while none is recorded; `update` on the person, logged","security":[{"bearerAuth":[]}],"parameters":[{"schema":{"type":"string","format":"uuid"},"required":true,"name":"personId","in":"path"},{"schema":{"type":"string","format":"uuid"},"required":true,"name":"handle","in":"path"}],"responses":{"200":{"description":"Their details.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/PartyContacts"}}}},"401":{"description":"Missing or invalid access token (`unauthenticated`).","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorEnvelope"}}}},"403":{"description":"No organisation in the token (`no_organisation_context`), or not permitted (`forbidden`).","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorEnvelope"}}}},"404":{"description":"Not found, or not visible to the caller.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorEnvelope"}}}},"422":{"description":"Invalid request.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorEnvelope"}}}}}},"post":{"tags":["invitations"],"summary":"Record a representative’s contact details, each field a new row (null clears it), with who said it, or copied from their Point request; `update` on the person; audited by fields, never the values","security":[{"bearerAuth":[]}],"parameters":[{"schema":{"type":"string","format":"uuid"},"required":true,"name":"personId","in":"path"},{"schema":{"type":"string","format":"uuid"},"required":true,"name":"handle","in":"path"}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/PartyContactsRecord"}}}},"responses":{"201":{"description":"Done.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/PartyContactsRecorded"}}}},"401":{"description":"Missing or invalid access token (`unauthenticated`).","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorEnvelope"}}}},"403":{"description":"No organisation in the token (`no_organisation_context`), or not permitted (`forbidden`).","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorEnvelope"}}}},"404":{"description":"Not found, or not visible to the caller.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorEnvelope"}}}},"409":{"description":"`tombstoned` or `party_ended`.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorEnvelope"}}}},"422":{"description":"Invalid body, `unknown_source`, `point_request_email_only`, `nothing_to_record`, `unknown_email`, `too_long`, `too_many_lines` or `no_point_request`.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorEnvelope"}}}}}}},"/organisations/current/get-point-page":{"get":{"tags":["invitations"],"summary":"The organisation’s Get Point page: the draft, the page published, and Point’s default words with its name; `read` on the organisation","security":[{"bearerAuth":[]}],"responses":{"200":{"description":"The page.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/GetPointPage"}}}},"401":{"description":"Missing or invalid access token (`unauthenticated`).","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorEnvelope"}}}},"403":{"description":"No organisation in the token (`no_organisation_context`), or not permitted (`forbidden`).","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorEnvelope"}}}},"404":{"description":"Not found, or not visible to the caller.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorEnvelope"}}}},"422":{"description":"Invalid request.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorEnvelope"}}}}}}},"/organisations/current/get-point-page/draft":{"post":{"tags":["invitations"],"summary":"Save the organisation’s Get Point page as a draft, whole; each save kept; `update` on the organisation; audited, never the words","security":[{"bearerAuth":[]}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/GetPointDraft"}}}},"responses":{"201":{"description":"Saved.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/GetPointDraftSaved"}}}},"401":{"description":"Missing or invalid access token (`unauthenticated`).","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorEnvelope"}}}},"403":{"description":"No organisation in the token (`no_organisation_context`), or not permitted (`forbidden`).","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorEnvelope"}}}},"404":{"description":"Not found, or not visible to the caller.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorEnvelope"}}}},"422":{"description":"Invalid body, `name_needed`, `title_needed`, `words_needed` or `too_long`.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorEnvelope"}}}}}}},"/organisations/current/get-point-page/publish":{"post":{"tags":["invitations"],"summary":"Publish the organisation’s Get Point page: the draft, whole, as the next version; `update` on the organisation; audited","security":[{"bearerAuth":[]}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/InvitationBook"}}}},"responses":{"201":{"description":"Published.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/GetPointPublished"}}}},"401":{"description":"Missing or invalid access token (`unauthenticated`).","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorEnvelope"}}}},"403":{"description":"No organisation in the token (`no_organisation_context`), or not permitted (`forbidden`).","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorEnvelope"}}}},"404":{"description":"Not found, or not visible to the caller.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorEnvelope"}}}},"409":{"description":"`no_draft` or `already_published`.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorEnvelope"}}}},"422":{"description":"Invalid body.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorEnvelope"}}}}}}},"/organisations/current/people/{personId}/v2/{threadId}/not-reached":{"post":{"tags":["invitations"],"summary":"Not reached: refused unless at least 3 tries, by at least 2 ways, the first at least 42 days ago, and never once they have answered; `update` on the person; audited","security":[{"bearerAuth":[]}],"parameters":[{"schema":{"type":"string","format":"uuid"},"required":true,"name":"personId","in":"path"},{"schema":{"type":"string","format":"uuid"},"required":true,"name":"threadId","in":"path"}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/InvitationNotReached"}}}},"responses":{"201":{"description":"Done.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/InvitationNotReachedRecorded"}}}},"401":{"description":"Missing or invalid access token (`unauthenticated`).","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorEnvelope"}}}},"403":{"description":"No organisation in the token (`no_organisation_context`), or not permitted (`forbidden`).","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorEnvelope"}}}},"404":{"description":"Not found, or not visible to the caller.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorEnvelope"}}}},"409":{"description":"`offer_not_made`, `answered`, `too_few_tries`, `too_few_ways`, `too_soon`, `thread_closed` or `tombstoned`.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorEnvelope"}}}},"422":{"description":"Invalid body, or `words_too_long`.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorEnvelope"}}}}}}},"/organisations/current/resources/{resourceId}/invitations":{"get":{"tags":["invitations"],"summary":"The place’s offers of an assessment (V2): each open V2 thread, where it is and its next step, for the people the reader may read; `read` on the place, logged as a listing","security":[{"bearerAuth":[]}],"parameters":[{"schema":{"type":"string","format":"uuid"},"required":true,"name":"resourceId","in":"path"}],"responses":{"200":{"description":"The offers.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/InvitationsOfAPlace"}}}},"401":{"description":"Missing or invalid access token (`unauthenticated`).","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorEnvelope"}}}},"403":{"description":"No organisation in the token (`no_organisation_context`), or not permitted (`forbidden`).","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorEnvelope"}}}},"404":{"description":"Not found, or not visible to the caller.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorEnvelope"}}}},"422":{"description":"Invalid request.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorEnvelope"}}}}}}},"/organisations/current/people/{personId}/v2/{threadId}/sitting":{"get":{"tags":["invitations"],"summary":"The assessment as its screens show it: what it covers; every step the walk asks, with its words in both voices, its help, its answers and what was given; the progress of each part and section; the lock; `read` on the person; logged","security":[{"bearerAuth":[]}],"parameters":[{"schema":{"type":"string","format":"uuid"},"required":true,"name":"personId","in":"path"},{"schema":{"type":"string","format":"uuid"},"required":true,"name":"threadId","in":"path"}],"responses":{"200":{"description":"The assessment.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/V2Sitting"}}}},"401":{"description":"Missing or invalid access token (`unauthenticated`).","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorEnvelope"}}}},"403":{"description":"No organisation in the token (`no_organisation_context`), or not permitted (`forbidden`).","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorEnvelope"}}}},"404":{"description":"Not found, or not visible to the caller.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorEnvelope"}}}},"422":{"description":"Invalid request.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorEnvelope"}}}}}},"post":{"tags":["invitations"],"summary":"Begin the assessment, once the visit has started, under the newest catalogue version held; one at a time; `update` on the person; audited","security":[{"bearerAuth":[]}],"parameters":[{"schema":{"type":"string","format":"uuid"},"required":true,"name":"personId","in":"path"},{"schema":{"type":"string","format":"uuid"},"required":true,"name":"threadId","in":"path"}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/V2SittingEmpty"}}}},"responses":{"201":{"description":"Done.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/V2SittingBegun"}}}},"401":{"description":"Missing or invalid access token (`unauthenticated`).","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorEnvelope"}}}},"403":{"description":"No organisation in the token (`no_organisation_context`), or not permitted (`forbidden`).","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorEnvelope"}}}},"404":{"description":"Not found, or not visible to the caller.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorEnvelope"}}}},"409":{"description":"`not_at_assessment`, `sitting_open`, `sitting_stopped`, `sitting_locked`, `catalogue_not_held`, `thread_closed` or `tombstoned`.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorEnvelope"}}}},"422":{"description":"Invalid body.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorEnvelope"}}}}}}},"/organisations/current/people/{personId}/v2/{threadId}/sitting/answers":{"post":{"tags":["invitations"],"summary":"An answer, given or changed: only what the walk opens now, only the question’s own answers; the same answer again writes nothing; `update` on the person; audited","security":[{"bearerAuth":[]}],"parameters":[{"schema":{"type":"string","format":"uuid"},"required":true,"name":"personId","in":"path"},{"schema":{"type":"string","format":"uuid"},"required":true,"name":"threadId","in":"path"}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/V2SittingAnswer"}}}},"responses":{"201":{"description":"Done.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/V2SittingAnswered"}}}},"401":{"description":"Missing or invalid access token (`unauthenticated`).","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorEnvelope"}}}},"403":{"description":"No organisation in the token (`no_organisation_context`), or not permitted (`forbidden`).","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorEnvelope"}}}},"404":{"description":"Not found, or not visible to the caller.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorEnvelope"}}}},"409":{"description":"`no_sitting`, `sitting_stopped`, `sitting_locked`, `version_not_held`, `not_asked_now`, `part_not_asked`, `thread_closed` or `tombstoned`.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorEnvelope"}}}},"422":{"description":"Invalid body, `unknown_key`, `unknown_voice`, `no_answer`, `not_an_answer_of_the_question`, `one_answer_only`, `answer_twice`, `stands_alone`, `not_a_gate_answer`, `items_only_with_yes`, `gate_has_no_list`, `yes_needs_an_item` or `not_an_item_of_the_gate`.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorEnvelope"}}}}}}},"/organisations/current/people/{personId}/v2/{threadId}/sitting/parts":{"post":{"tags":["invitations"],"summary":"The home not asked today (with optional words, sealed), or asked after all; the person’s part is always asked; `update` on the person; audited","security":[{"bearerAuth":[]}],"parameters":[{"schema":{"type":"string","format":"uuid"},"required":true,"name":"personId","in":"path"},{"schema":{"type":"string","format":"uuid"},"required":true,"name":"threadId","in":"path"}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/V2SittingPart"}}}},"responses":{"201":{"description":"Done.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/V2SittingPartSet"}}}},"401":{"description":"Missing or invalid access token (`unauthenticated`).","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorEnvelope"}}}},"403":{"description":"No organisation in the token (`no_organisation_context`), or not permitted (`forbidden`).","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorEnvelope"}}}},"404":{"description":"Not found, or not visible to the caller.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorEnvelope"}}}},"409":{"description":"`no_sitting`, `sitting_stopped`, `sitting_locked`, `part_unchanged`, `thread_closed` or `tombstoned`.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorEnvelope"}}}},"422":{"description":"Invalid body, `person_always_asked`, `unknown_part`, `not_asked_needed`, `words_only_not_asked` or `words_too_long`.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorEnvelope"}}}}}}},"/organisations/current/people/{personId}/v2/{threadId}/sitting/stop":{"post":{"tags":["invitations"],"summary":"Stop the assessment part-way, with an optional reason, sealed: the answers kept as given, never used to plan; `update` on the person; audited","security":[{"bearerAuth":[]}],"parameters":[{"schema":{"type":"string","format":"uuid"},"required":true,"name":"personId","in":"path"},{"schema":{"type":"string","format":"uuid"},"required":true,"name":"threadId","in":"path"}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/V2SittingStop"}}}},"responses":{"201":{"description":"Done.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/V2SittingStopped"}}}},"401":{"description":"Missing or invalid access token (`unauthenticated`).","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorEnvelope"}}}},"403":{"description":"No organisation in the token (`no_organisation_context`), or not permitted (`forbidden`).","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorEnvelope"}}}},"404":{"description":"Not found, or not visible to the caller.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorEnvelope"}}}},"409":{"description":"`no_sitting`, `sitting_stopped`, `sitting_locked`, `thread_closed` or `tombstoned`.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorEnvelope"}}}},"422":{"description":"Invalid body, or `words_too_long`.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorEnvelope"}}}}}}},"/organisations/current/people/{personId}/v2/{threadId}/sitting/carry-on":{"post":{"tags":["invitations"],"summary":"Carry on the assessment from where it stopped; `update` on the person; audited","security":[{"bearerAuth":[]}],"parameters":[{"schema":{"type":"string","format":"uuid"},"required":true,"name":"personId","in":"path"},{"schema":{"type":"string","format":"uuid"},"required":true,"name":"threadId","in":"path"}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/V2SittingEmpty"}}}},"responses":{"201":{"description":"Done.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/V2SittingCarriedOn"}}}},"401":{"description":"Missing or invalid access token (`unauthenticated`).","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorEnvelope"}}}},"403":{"description":"No organisation in the token (`no_organisation_context`), or not permitted (`forbidden`).","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorEnvelope"}}}},"404":{"description":"Not found, or not visible to the caller.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorEnvelope"}}}},"409":{"description":"`no_sitting`, `sitting_not_stopped`, `thread_closed` or `tombstoned`.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorEnvelope"}}}},"422":{"description":"Invalid body.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorEnvelope"}}}}}}},"/organisations/current/people/{personId}/v2/{threadId}/sitting/lock":{"post":{"tags":["invitations"],"summary":"Lock the answers: every step the walk opens answered; the answers sealed and fingerprinted, the findings raised and held open, the catalogue version and its fingerprint, and never signable under a draft catalogue; the thread at stage 5; `update` on the person; audited","security":[{"bearerAuth":[]}],"parameters":[{"schema":{"type":"string","format":"uuid"},"required":true,"name":"personId","in":"path"},{"schema":{"type":"string","format":"uuid"},"required":true,"name":"threadId","in":"path"}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/V2SittingEmpty"}}}},"responses":{"201":{"description":"Done.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/V2SittingLocked"}}}},"401":{"description":"Missing or invalid access token (`unauthenticated`).","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorEnvelope"}}}},"403":{"description":"No organisation in the token (`no_organisation_context`), or not permitted (`forbidden`).","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorEnvelope"}}}},"404":{"description":"Not found, or not visible to the caller.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorEnvelope"}}}},"409":{"description":"`no_sitting`, `sitting_stopped`, `sitting_locked`, `not_complete`, `version_not_held`, `thread_closed` or `tombstoned`.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorEnvelope"}}}},"422":{"description":"Invalid body.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorEnvelope"}}}}}},"get":{"tags":["invitations"],"summary":"What the lock found: the findings raised and held open (each with why, and what holds it), in staff words, the checks raised, the version and its fingerprint, the answers’ sha-256, and whether it may be signed off; `read` on the person; logged","security":[{"bearerAuth":[]}],"parameters":[{"schema":{"type":"string","format":"uuid"},"required":true,"name":"personId","in":"path"},{"schema":{"type":"string","format":"uuid"},"required":true,"name":"threadId","in":"path"}],"responses":{"200":{"description":"What was found.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/V2SittingLock"}}}},"401":{"description":"Missing or invalid access token (`unauthenticated`).","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorEnvelope"}}}},"403":{"description":"No organisation in the token (`no_organisation_context`), or not permitted (`forbidden`).","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorEnvelope"}}}},"404":{"description":"Not found, or not visible to the caller.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorEnvelope"}}}},"409":{"description":"`sitting_not_locked`.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorEnvelope"}}}},"422":{"description":"Invalid request.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorEnvelope"}}}}}}},"/organisations/current/people/{personId}/v2/{threadId}/sitting/unlock":{"post":{"tags":["invitations"],"summary":"Unlock the answers to correct them, with a reason (sealed): a new sitting correcting the locked one, its answers carried as the starting point; both kept; `update` on the person; audited","security":[{"bearerAuth":[]}],"parameters":[{"schema":{"type":"string","format":"uuid"},"required":true,"name":"personId","in":"path"},{"schema":{"type":"string","format":"uuid"},"required":true,"name":"threadId","in":"path"}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/V2SittingUnlock"}}}},"responses":{"201":{"description":"Done.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/V2SittingUnlocked"}}}},"401":{"description":"Missing or invalid access token (`unauthenticated`).","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorEnvelope"}}}},"403":{"description":"No organisation in the token (`no_organisation_context`), or not permitted (`forbidden`).","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorEnvelope"}}}},"404":{"description":"Not found, or not visible to the caller.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorEnvelope"}}}},"409":{"description":"`no_sitting`, `sitting_not_locked`, `version_not_held`, `thread_closed` or `tombstoned`.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorEnvelope"}}}},"422":{"description":"Invalid body, `reason_needed` or `words_too_long`.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorEnvelope"}}}}}}},"/organisations/current/people/{personId}/v2/{threadId}/findings":{"get":{"tags":["invitations"],"summary":"Act on the findings, read only (spec 92 §6, §7): the current lock’s findings raised (each with the question asked and the answer given) and held open, and what they raise, stored at the lock, each once and in order, with its stage, words, preparations and responses that apply, all in the words of the catalogue version the lock names; `read` on the person; logged","security":[{"bearerAuth":[]}],"parameters":[{"schema":{"type":"string","format":"uuid"},"required":true,"name":"personId","in":"path"},{"schema":{"type":"string","format":"uuid"},"required":true,"name":"threadId","in":"path"}],"responses":{"200":{"description":"What was found, and what it raises.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/V2Findings"}}}},"401":{"description":"Missing or invalid access token (`unauthenticated`).","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorEnvelope"}}}},"403":{"description":"No organisation in the token (`no_organisation_context`), or not permitted (`forbidden`).","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorEnvelope"}}}},"404":{"description":"Not found, or not visible to the caller.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorEnvelope"}}}},"409":{"description":"`sitting_not_locked`.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorEnvelope"}}}},"422":{"description":"Invalid request.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorEnvelope"}}}}}}},"/organisations/current/people/{personId}/v2/{threadId}/findings/{key}":{"get":{"tags":["invitations"],"summary":"One consideration (spec 92 §7; move 5): why (each finding with the question asked and the answer given), what it needs, its things to do (each with its latest answer and, while added, its task’s key), what happens when the alarm sounds, whether planned, the count and the next one; `read` on the person; logged","security":[{"bearerAuth":[]}],"parameters":[{"schema":{"type":"string","format":"uuid"},"required":true,"name":"personId","in":"path"},{"schema":{"type":"string","format":"uuid"},"required":true,"name":"threadId","in":"path"},{"schema":{"type":"string","minLength":1,"maxLength":120},"required":true,"name":"key","in":"path"}],"responses":{"200":{"description":"The consideration.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/V2Consideration"}}}},"401":{"description":"Missing or invalid access token (`unauthenticated`).","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorEnvelope"}}}},"403":{"description":"No organisation in the token (`no_organisation_context`), or not permitted (`forbidden`).","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorEnvelope"}}}},"404":{"description":"Not found, or not visible to the caller.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorEnvelope"}}}},"409":{"description":"`sitting_not_locked` or `version_not_held`.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorEnvelope"}}}},"422":{"description":"Invalid request.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorEnvelope"}}}}}}},"/organisations/current/people/{personId}/v2/{threadId}/findings/{key}/things-to-do":{"post":{"tags":["invitations"],"summary":"Things to do of one consideration answered (spec 92 §6): each added (a task) or not needed with a reason (sealed); a row for each changed, the latest standing; a consideration planned is reopened; `update` on the person; audited, never the reason","security":[{"bearerAuth":[]}],"parameters":[{"schema":{"type":"string","format":"uuid"},"required":true,"name":"personId","in":"path"},{"schema":{"type":"string","format":"uuid"},"required":true,"name":"threadId","in":"path"},{"schema":{"type":"string","minLength":1,"maxLength":120},"required":true,"name":"key","in":"path"}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/V2ThingsToDo"}}}},"responses":{"201":{"description":"Done.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/V2ThingsToDoAnswered"}}}},"401":{"description":"Missing or invalid access token (`unauthenticated`).","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorEnvelope"}}}},"403":{"description":"No organisation in the token (`no_organisation_context`), or not permitted (`forbidden`).","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorEnvelope"}}}},"404":{"description":"Not found, or not visible to the caller.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorEnvelope"}}}},"409":{"description":"`sitting_not_locked`, `not_at_assessment`, `version_not_held`, `not_built`, `thread_closed` or `tombstoned`.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorEnvelope"}}}},"422":{"description":"Invalid body, `nothing_answered`, `unknown_preparation`, `twice`, `unknown_answer`, `reason_needed` or `reason_too_long`.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorEnvelope"}}}}}}},"/organisations/current/people/{personId}/v2/{threadId}/findings/{key}/places":{"post":{"tags":["invitations"],"summary":"A place for a thing of one consideration answered (spec 92 §6, §6.1; move 6): in place (an asset of the kind’s type, by id, any of them, with what the register said of it, sealed), to be got (the kind, and what it must be), said to be there (for a kind Point holds no record of), or not decided; a row when it changes, the latest standing; a consideration planned is reopened; `update` on the person; audited, never the reading","security":[{"bearerAuth":[]}],"parameters":[{"schema":{"type":"string","format":"uuid"},"required":true,"name":"personId","in":"path"},{"schema":{"type":"string","format":"uuid"},"required":true,"name":"threadId","in":"path"},{"schema":{"type":"string","minLength":1,"maxLength":120},"required":true,"name":"key","in":"path"}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/V2Place"}}}},"responses":{"201":{"description":"Done.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/V2Placed"}}}},"401":{"description":"Missing or invalid access token (`unauthenticated`).","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorEnvelope"}}}},"403":{"description":"No organisation in the token (`no_organisation_context`), or not permitted (`forbidden`).","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorEnvelope"}}}},"404":{"description":"Not found, or not visible to the caller.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorEnvelope"}}}},"409":{"description":"`sitting_not_locked`, `not_at_assessment`, `version_not_held`, `not_built`, `thread_closed` or `tombstoned`.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorEnvelope"}}}},"422":{"description":"Invalid body, `unknown_place`, `unknown_answer`, `unknown_kind`, `kind_not_wanted`, `asset_needed`, `asset_not_wanted`, `unknown_asset`, `nowhere_to_look` or `in_the_register`.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorEnvelope"}}}}}}},"/organisations/current/people/{personId}/v2/{threadId}/findings/{key}/questions":{"post":{"tags":["invitations"],"summary":"One of the two questions about the chair and who is trained on it answered (spec 92 §13.3): Is this the chair for the person, and Is someone on each post trained to use this chair, each Yes, No or Not known yet; stored as a check’s answer, a new row for each change naming the one it changes, the latest standing; No and Not known yet each add a task; a consideration decided is reopened; `update` on the person; audited","security":[{"bearerAuth":[]}],"parameters":[{"schema":{"type":"string","format":"uuid"},"required":true,"name":"personId","in":"path"},{"schema":{"type":"string","format":"uuid"},"required":true,"name":"threadId","in":"path"},{"schema":{"type":"string","minLength":1,"maxLength":120},"required":true,"name":"key","in":"path"}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/V2ChairQuestion"}}}},"responses":{"201":{"description":"Done.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/V2ChairAnswered"}}}},"401":{"description":"Missing or invalid access token (`unauthenticated`).","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorEnvelope"}}}},"403":{"description":"No organisation in the token (`no_organisation_context`), or not permitted (`forbidden`).","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorEnvelope"}}}},"404":{"description":"Not found, or not visible to the caller.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorEnvelope"}}}},"409":{"description":"`sitting_not_locked`, `not_at_assessment`, `version_not_held`, `not_built`, `no_question`, `no_chair`, `thread_closed` or `tombstoned`.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorEnvelope"}}}},"422":{"description":"Invalid body, `unknown_question` or `unknown_answer`.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorEnvelope"}}}}}}},"/organisations/current/people/{personId}/v2/{threadId}/findings/{key}/who-helps":{"post":{"tags":["invitations"],"summary":"Who helps the person out, by day or at night, answered (spec 92 §6.2; move 7), on the consideration where it is settled: a post open here (any of them, with what its record says, sealed), one who assists the person and has agreed, not decided yet (a first), or no back-up; a row when it changes, the latest standing; a consideration planned is reopened; `update` on the person; audited, never the reading","security":[{"bearerAuth":[]}],"parameters":[{"schema":{"type":"string","format":"uuid"},"required":true,"name":"personId","in":"path"},{"schema":{"type":"string","format":"uuid"},"required":true,"name":"threadId","in":"path"},{"schema":{"type":"string","minLength":1,"maxLength":120},"required":true,"name":"key","in":"path"}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/V2WhoHelps"}}}},"responses":{"201":{"description":"Done.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/V2WhoHelped"}}}},"401":{"description":"Missing or invalid access token (`unauthenticated`).","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorEnvelope"}}}},"403":{"description":"No organisation in the token (`no_organisation_context`), or not permitted (`forbidden`).","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorEnvelope"}}}},"404":{"description":"Not found, or not visible to the caller.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorEnvelope"}}}},"409":{"description":"`sitting_not_locked`, `not_at_assessment`, `version_not_held`, `not_built`, `not_where_settled`, `thread_closed` or `tombstoned`.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorEnvelope"}}}},"422":{"description":"Invalid body, `unknown_time`, `unknown_role`, `unknown_answer`, `unknown_post`, `unknown_assistant`, `not_agreed`, `nobody_wanted` or `same_as_first`.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorEnvelope"}}}}}}},"/organisations/current/people/{personId}/v2/{threadId}/findings/{key}/gaps":{"post":{"tags":["invitations"],"summary":"A gap on the consideration recorded as considered (spec 92 §6.4; move 8), by anyone who may edit the person’s record, by name: what was weighed, the lesser steps taken, what was offered and what the person said (sealed), and the day to look again; Point writes the sentence; a later record supersedes, never edits; nothing planned is reopened; `update` on the person; audited, never the record","security":[{"bearerAuth":[]}],"parameters":[{"schema":{"type":"string","format":"uuid"},"required":true,"name":"personId","in":"path"},{"schema":{"type":"string","format":"uuid"},"required":true,"name":"threadId","in":"path"},{"schema":{"type":"string","minLength":1,"maxLength":120},"required":true,"name":"key","in":"path"}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/V2GapConsidered"}}}},"responses":{"201":{"description":"Done.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/V2GapRecorded"}}}},"401":{"description":"Missing or invalid access token (`unauthenticated`).","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorEnvelope"}}}},"403":{"description":"No organisation in the token (`no_organisation_context`), or not permitted (`forbidden`).","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorEnvelope"}}}},"404":{"description":"Not found, or not visible to the caller.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorEnvelope"}}}},"409":{"description":"`sitting_not_locked`, `not_at_assessment`, `version_not_held`, `not_built`, `thread_closed` or `tombstoned`.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorEnvelope"}}}},"422":{"description":"Invalid body, `unknown_gap`, `weighed_needed`, `steps_needed`, `offered_needed`, `said_needed`, `…_too_long`, `look_again_needed`, `look_again_not_a_day` or `look_again_past`.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorEnvelope"}}}}}}},"/organisations/current/people/{personId}/v2/{threadId}/findings/{key}/reports":{"post":{"tags":["invitations"],"summary":"A task from one of the consideration’s things to do (record, show, keep, check, agree, train) completed with its report (spec 92 §6.5; move 10): the fields its kind asks and an optional note (sealed); a check’s answer (yes, no, not known yet) and what was found; a day to look again (a check or a keep, optional); the task closed as done by the task tool’s own closing in the same transaction (steps, signer and waits refusing as they do), or left open for a check not known yet; a No raises the task to put it right; nothing planned is reopened; `update` on the person; audited, never the words","security":[{"bearerAuth":[]}],"parameters":[{"schema":{"type":"string","format":"uuid"},"required":true,"name":"personId","in":"path"},{"schema":{"type":"string","format":"uuid"},"required":true,"name":"threadId","in":"path"},{"schema":{"type":"string","minLength":1,"maxLength":120},"required":true,"name":"key","in":"path"}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/V2Report"}}}},"responses":{"201":{"description":"Done.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/V2Reported"}}}},"401":{"description":"Missing or invalid access token (`unauthenticated`).","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorEnvelope"}}}},"403":{"description":"No organisation in the token (`no_organisation_context`), or not permitted (`forbidden`).","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorEnvelope"}}}},"404":{"description":"Not found, or not visible to the caller.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorEnvelope"}}}},"409":{"description":"`sitting_not_locked`, `not_at_assessment`, `version_not_held`, `no_report`, `job_already_closed`, `not_signed_off`, `steps_open`, `waits_not_confirmed`, `thread_closed` or `tombstoned`.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorEnvelope"}}}},"422":{"description":"Invalid body, `unknown_task`, `answer_needed`, `unknown_answer`, `answer_not_wanted`, `…_needed`, `…_too_long`, `day_not_a_day`, `day_future`, `look_again_not_wanted`, `look_again_not_a_day`, `look_again_past`, `put_right_not_wanted`, `cannot_edit`, `put_right_due_not_a_day` or `put_right_due_past`.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorEnvelope"}}}}}}},"/organisations/current/people/{personId}/v2/{threadId}/findings/{key}/reports/thing":{"post":{"tags":["invitations"],"summary":"A task to get a thing (provide, fit) completed with its report (spec 92 §6.5; move 11): it is there now (where it is kept, what it is called; the asset made in the place’s assets by the register’s own command, for the person, with any model, serial number and who provided it) or it is already in the assets (chosen); each fact it must meet as yes, no or not known yet (a No raises a task to put it right, given to someone and dated where asked); a kind Point has nowhere to look for is said to be there, in words. In one transaction: the task closed as done by the task tool’s own closing, the asset, the place filled (in place with the reading, or said in place), the report sealed; nothing planned is reopened; `update` on the person, and the register’s `create` to add one; audited, never the words","security":[{"bearerAuth":[]}],"parameters":[{"schema":{"type":"string","format":"uuid"},"required":true,"name":"personId","in":"path"},{"schema":{"type":"string","format":"uuid"},"required":true,"name":"threadId","in":"path"},{"schema":{"type":"string","minLength":1,"maxLength":120},"required":true,"name":"key","in":"path"}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/V2ThingReport"}}}},"responses":{"201":{"description":"Done.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/V2ThingReported"}}}},"401":{"description":"Missing or invalid access token (`unauthenticated`).","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorEnvelope"}}}},"403":{"description":"No organisation in the token (`no_organisation_context`), or not permitted (`forbidden`).","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorEnvelope"}}}},"404":{"description":"Not found, or not visible to the caller.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorEnvelope"}}}},"409":{"description":"`sitting_not_locked`, `not_at_assessment`, `version_not_held`, `no_report`, `job_already_closed`, `not_signed_off`, `steps_open`, `waits_not_confirmed`, `thread_closed` or `tombstoned`.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorEnvelope"}}}},"422":{"description":"Invalid body, `unknown_task`, `choice_needed`, `unknown_choice`, `kept_in_needed`, `asset_needed`, `asset_not_wanted`, `details_not_wanted`, `where_needed`, `where_too_long`, `in_the_register`, `nowhere_to_look`, `unknown_must_be`, `unknown_answer`, `note_too_long`, `unknown_asset`, or a refusal of the register’s own adding (`unknown_space`, `invalid_label`, `invalid_serial`, `invalid_provided_by`, `unknown_model`, `invalid_value`).","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorEnvelope"}}}}}}},"/organisations/current/people/{personId}/v2/{threadId}/findings/{key}/reports/corrections":{"post":{"tags":["invitations"],"summary":"A report corrected (spec 92 §6.5; law 4), by anyone who may edit the person: a new row naming the latest correction of a report, its words checked as its kind’s, the earlier kept; a check’s answer may change (not while it is Not known yet: `answer_not_corrected`), and the day to look again change or clear; the tasks follow what it now holds (Ian, 1 Dec): No to Yes raises no task to put it right, Yes to No raises one, to Not known yet raises the check afresh; `update` on the person; audited, never the words","security":[{"bearerAuth":[]}],"parameters":[{"schema":{"type":"string","format":"uuid"},"required":true,"name":"personId","in":"path"},{"schema":{"type":"string","format":"uuid"},"required":true,"name":"threadId","in":"path"},{"schema":{"type":"string","minLength":1,"maxLength":120},"required":true,"name":"key","in":"path"}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/V2ReportCorrection"}}}},"responses":{"201":{"description":"Done.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/V2ReportCorrected"}}}},"401":{"description":"Missing or invalid access token (`unauthenticated`).","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorEnvelope"}}}},"403":{"description":"No organisation in the token (`no_organisation_context`), or not permitted (`forbidden`).","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorEnvelope"}}}},"404":{"description":"Not found, or not visible to the caller.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorEnvelope"}}}},"409":{"description":"`sitting_not_locked`, `not_at_assessment`, `version_not_held`, `no_report`, `not_the_latest`, `thread_closed` or `tombstoned`.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorEnvelope"}}}},"422":{"description":"Invalid body, `unknown_report`, `unknown_task`, `…_needed`, `…_too_long`, `day_not_a_day`, `day_future`, `answer_not_corrected`, `unknown_answer`, `look_again_…`, `put_right_…` or `cannot_edit`.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorEnvelope"}}}}}}},"/organisations/current/people/{personId}/v2/{threadId}/findings/{key}/reports/thing/corrections":{"post":{"tags":["invitations"],"summary":"A thing’s report changed (spec 92 §13.2), by anyone who may edit the person: its name and where it is kept changed on the thing’s own record by the register’s own commands (their `update` on the asset, refusals and audit rows), and a new report row naming the one changed, carrying what it now says, in the same transaction; the earlier kept; `update` on the person; audited, never the words","security":[{"bearerAuth":[]}],"parameters":[{"schema":{"type":"string","format":"uuid"},"required":true,"name":"personId","in":"path"},{"schema":{"type":"string","format":"uuid"},"required":true,"name":"threadId","in":"path"},{"schema":{"type":"string","minLength":1,"maxLength":120},"required":true,"name":"key","in":"path"}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/V2ThingReportChange"}}}},"responses":{"201":{"description":"Done.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/V2ThingReportChanged"}}}},"401":{"description":"Missing or invalid access token (`unauthenticated`).","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorEnvelope"}}}},"403":{"description":"No organisation in the token (`no_organisation_context`), or not permitted (`forbidden`).","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorEnvelope"}}}},"404":{"description":"Not found, or not visible to the caller.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorEnvelope"}}}},"409":{"description":"`sitting_not_locked`, `not_at_assessment`, `version_not_held`, `not_the_latest`, `place_changed`, `no_record`, `unchanged`, `already_there`, `thread_closed` or `tombstoned`.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorEnvelope"}}}},"422":{"description":"Invalid body, `unknown_report`, or a refusal of the register’s own commands (`invalid_label`, `unknown_space`).","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorEnvelope"}}}}}}},"/organisations/current/people/{personId}/v2/{threadId}/findings/{key}/reports/who-helps/corrections":{"post":{"tags":["invitations"],"summary":"A who-helps report changed (spec 92 §13.2), by anyone who may edit the person, through the same side step that made it: who helps written afresh for the part of the day it is about (insert-only, the latest standing, nothing reopened; someone put there by hand since left as they are) and a new report row naming the one changed, in one transaction; the task stays closed; `update` on the person; audited, never the words","security":[{"bearerAuth":[]}],"parameters":[{"schema":{"type":"string","format":"uuid"},"required":true,"name":"personId","in":"path"},{"schema":{"type":"string","format":"uuid"},"required":true,"name":"threadId","in":"path"},{"schema":{"type":"string","minLength":1,"maxLength":120},"required":true,"name":"key","in":"path"}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/V2WhoHelpsReportChange"}}}},"responses":{"201":{"description":"Done.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/V2WhoHelpsReportChanged"}}}},"401":{"description":"Missing or invalid access token (`unauthenticated`).","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorEnvelope"}}}},"403":{"description":"No organisation in the token (`no_organisation_context`), or not permitted (`forbidden`).","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorEnvelope"}}}},"404":{"description":"Not found, or not visible to the caller.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorEnvelope"}}}},"409":{"description":"`sitting_not_locked`, `not_at_assessment`, `version_not_held`, `not_the_latest`, `someone_else_helps`, `already_assisting`, `thread_closed` or `tombstoned`.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorEnvelope"}}}},"422":{"description":"Invalid body, `unknown_report`, `unknown_task`, `helper_needed`, `unknown_post`, `unknown_assistant`, `not_agreed`, `choose_the_post`, `times_needed`, `unknown_time`, `times_not_wanted`, `agreed_needed`, `agreed_too_long`, `same_as_first`, or a refusal of the record of one who assists them.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorEnvelope"}}}}}}},"/organisations/current/people/{personId}/v2/{threadId}/findings/{key}/reports/who-helps":{"post":{"tags":["invitations"],"summary":"A task to agree who helps completed by who helps (spec 92 §6.5; move 12): someone already recorded for the person (a post, or one who assists them, their agreement recorded where it was not yet) or one who assists them added through their own record; in one transaction who helps is written for the part of the day the preparation is about (asked where it does not say) where nothing, not decided or the same one stands, someone different left as they are and nothing reopened, the task is closed as done by its own closing, and the report is written; `update` on the person; audited, never the words","security":[{"bearerAuth":[]}],"parameters":[{"schema":{"type":"string","format":"uuid"},"required":true,"name":"personId","in":"path"},{"schema":{"type":"string","format":"uuid"},"required":true,"name":"threadId","in":"path"},{"schema":{"type":"string","minLength":1,"maxLength":120},"required":true,"name":"key","in":"path"}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/V2WhoHelpsReport"}}}},"responses":{"201":{"description":"Done.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/V2WhoHelpsReported"}}}},"401":{"description":"Missing or invalid access token (`unauthenticated`).","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorEnvelope"}}}},"403":{"description":"No organisation in the token (`no_organisation_context`), or not permitted (`forbidden`).","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorEnvelope"}}}},"404":{"description":"Not found, or not visible to the caller.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorEnvelope"}}}},"409":{"description":"`sitting_not_locked`, `not_at_assessment`, `version_not_held`, `not_who_helps`, `someone_else_helps`, `already_assisting`, `job_already_closed`, `not_signed_off`, `steps_open`, `waits_not_confirmed`, `thread_closed` or `tombstoned`.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorEnvelope"}}}},"422":{"description":"Invalid body, `unknown_task`, `helper_needed`, `unknown_post`, `unknown_assistant`, `not_agreed`, `choose_the_post`, `times_needed`, `unknown_time`, `times_not_wanted`, `agreed_needed`, `agreed_too_long`, `same_as_first`, or a refusal of the record of one who assists them.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorEnvelope"}}}}}}},"/organisations/current/people/{personId}/v2/{threadId}/who-helps/training":{"post":{"tags":["invitations"],"summary":"A who-helps training task completed by the competence held (spec 92 §6.5; spec 42 §5.3; move 12): one who assists them and lives here, or someone in the post now; in one transaction the task is closed as done by its own closing, the competence is recorded through the staffing tool’s own command, and the report is written; `update` on the person and on the person trained; audited, never the words","security":[{"bearerAuth":[]}],"parameters":[{"schema":{"type":"string","format":"uuid"},"required":true,"name":"personId","in":"path"},{"schema":{"type":"string","format":"uuid"},"required":true,"name":"threadId","in":"path"}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/V2TrainingReport"}}}},"responses":{"201":{"description":"Done.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/V2TrainingReported"}}}},"401":{"description":"Missing or invalid access token (`unauthenticated`).","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorEnvelope"}}}},"403":{"description":"No organisation in the token (`no_organisation_context`), or not permitted (`forbidden`).","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorEnvelope"}}}},"404":{"description":"Not found, or not visible to the caller.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorEnvelope"}}}},"409":{"description":"`sitting_not_locked`, `not_at_assessment`, `version_not_held`, `no_people_record`, `job_already_closed`, `not_signed_off`, `steps_open`, `waits_not_confirmed`, `thread_closed` or `tombstoned`.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorEnvelope"}}}},"422":{"description":"Invalid body, `unknown_task`, `not_this_person`, `person_needed`, `not_in_the_post`, `day_needed`, `day_not_a_day`, `day_future`, `invalid_expires_on`, `dates_out_of_order` or `invalid_reference`.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorEnvelope"}}}}}}},"/organisations/current/people/{personId}/v2/{threadId}/findings/{key}/planned":{"post":{"tags":["invitations"],"summary":"A consideration marked planned (spec 92 §6), never while a thing to do is unanswered (§8); planned again writes nothing; `update` on the person; audited","security":[{"bearerAuth":[]}],"parameters":[{"schema":{"type":"string","format":"uuid"},"required":true,"name":"personId","in":"path"},{"schema":{"type":"string","format":"uuid"},"required":true,"name":"threadId","in":"path"},{"schema":{"type":"string","minLength":1,"maxLength":120},"required":true,"name":"key","in":"path"}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/V2SittingEmpty"}}}},"responses":{"201":{"description":"Done.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/V2Planned"}}}},"401":{"description":"Missing or invalid access token (`unauthenticated`).","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorEnvelope"}}}},"403":{"description":"No organisation in the token (`no_organisation_context`), or not permitted (`forbidden`).","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorEnvelope"}}}},"404":{"description":"Not found, or not visible to the caller.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorEnvelope"}}}},"409":{"description":"`sitting_not_locked`, `not_at_assessment`, `version_not_held`, `not_built`, `places_unanswered`, `who_helps_unanswered`, `things_to_do_unanswered`, `thread_closed` or `tombstoned`.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorEnvelope"}}}},"422":{"description":"Invalid body.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorEnvelope"}}}}}}},"/organisations/current/people/{personId}/v2/{threadId}/sitting/notes":{"post":{"tags":["invitations"],"summary":"A note on a question, a gate or a part not asked (`part:home`), written, changed or emptied, saved by the member: sealed, never read by the walk; `update` on the person; audited by its key, never its words","security":[{"bearerAuth":[]}],"parameters":[{"schema":{"type":"string","format":"uuid"},"required":true,"name":"personId","in":"path"},{"schema":{"type":"string","format":"uuid"},"required":true,"name":"threadId","in":"path"}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/V2SittingNote"}}}},"responses":{"201":{"description":"Done.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/V2SittingNoted"}}}},"401":{"description":"Missing or invalid access token (`unauthenticated`).","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorEnvelope"}}}},"403":{"description":"No organisation in the token (`no_organisation_context`), or not permitted (`forbidden`).","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorEnvelope"}}}},"404":{"description":"Not found, or not visible to the caller.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorEnvelope"}}}},"409":{"description":"`no_sitting`, `sitting_stopped`, `sitting_locked`, `version_not_held`, `not_at_assessment`, `part_asked`, `thread_closed` or `tombstoned`.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorEnvelope"}}}},"422":{"description":"Invalid body, `unknown_key` or `note_too_long`.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorEnvelope"}}}}}}},"/organisations/current/people/{personId}/v2/{threadId}/sitting/photos/agreement":{"post":{"tags":["invitations"],"summary":"The person happy for photos to be taken (`agreed: true`), once a sitting, before any photo; or no more photos (`agreed: false`) for the rest of it; `update` on the person; audited","security":[{"bearerAuth":[]}],"parameters":[{"schema":{"type":"string","format":"uuid"},"required":true,"name":"personId","in":"path"},{"schema":{"type":"string","format":"uuid"},"required":true,"name":"threadId","in":"path"}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/V2SittingPhotosAgreement"}}}},"responses":{"201":{"description":"Done.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/V2SittingPhotosAgreed"}}}},"401":{"description":"Missing or invalid access token (`unauthenticated`).","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorEnvelope"}}}},"403":{"description":"No organisation in the token (`no_organisation_context`), or not permitted (`forbidden`).","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorEnvelope"}}}},"404":{"description":"Not found, or not visible to the caller.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorEnvelope"}}}},"409":{"description":"`no_sitting`, `sitting_stopped`, `sitting_locked`, `version_not_held`, `not_at_assessment`, `photos_unchanged`, `photos_stopped`, `thread_closed` or `tombstoned`.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorEnvelope"}}}},"422":{"description":"Invalid body.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorEnvelope"}}}}}}},"/organisations/current/people/{personId}/v2/{threadId}/sitting/photos/uploads":{"post":{"tags":["invitations"],"summary":"Start an upload of a photo for a question, a gate or a part not asked: a picture only, once the person agreed, at most twelve a question; writes nothing; `update` on the person","security":[{"bearerAuth":[]}],"parameters":[{"schema":{"type":"string","format":"uuid"},"required":true,"name":"personId","in":"path"},{"schema":{"type":"string","format":"uuid"},"required":true,"name":"threadId","in":"path"}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/V2SittingPhotoUploadStart"}}}},"responses":{"201":{"description":"Done.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/StartedUpload"}}}},"401":{"description":"Missing or invalid access token (`unauthenticated`).","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorEnvelope"}}}},"403":{"description":"No organisation in the token (`no_organisation_context`), or not permitted (`forbidden`).","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorEnvelope"}}}},"404":{"description":"Not found, or not visible to the caller.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorEnvelope"}}}},"409":{"description":"`no_sitting`, `sitting_stopped`, `sitting_locked`, `version_not_held`, `not_at_assessment`, `part_asked`, `photos_not_agreed`, `photos_stopped`, `too_many_photos`, `thread_closed` or `tombstoned`.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorEnvelope"}}}},"422":{"description":"Invalid body, `unknown_key`, `unsupported_media` or `media_too_large`.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorEnvelope"}}}}}}},"/organisations/current/people/{personId}/v2/{threadId}/sitting/photos/uploads/{uploadId}":{"put":{"tags":["invitations"],"summary":"A photo’s bytes, through the API, where the store takes none of its own (development); `update` on the person","security":[{"bearerAuth":[]}],"parameters":[{"schema":{"type":"string","format":"uuid"},"required":true,"name":"personId","in":"path"},{"schema":{"type":"string","format":"uuid"},"required":true,"name":"threadId","in":"path"},{"schema":{"type":"string","format":"uuid"},"required":true,"name":"uploadId","in":"path"}],"responses":{"204":{"description":"Received."},"401":{"description":"Missing or invalid access token (`unauthenticated`).","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorEnvelope"}}}},"403":{"description":"No organisation in the token (`no_organisation_context`), or not permitted (`forbidden`).","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorEnvelope"}}}},"404":{"description":"Not found, or not visible to the caller.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorEnvelope"}}}},"409":{"description":"`upload_direct`: put the bytes where the upload said to; `thread_closed` or `tombstoned`.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorEnvelope"}}}},"413":{"description":"`media_too_large`.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorEnvelope"}}}},"422":{"description":"Invalid request.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorEnvelope"}}}}}}},"/organisations/current/people/{personId}/v2/{threadId}/sitting/photos/uploads/{uploadId}/complete":{"post":{"tags":["invitations"],"summary":"Complete a photo’s upload: the original kept untouched by its sha-256 and never served; its cleaned copies made; the time and camera its hidden data gives sealed beside the server’s time; taken here or chosen; `update` on the person; audited by its sha-256","security":[{"bearerAuth":[]}],"parameters":[{"schema":{"type":"string","format":"uuid"},"required":true,"name":"personId","in":"path"},{"schema":{"type":"string","format":"uuid"},"required":true,"name":"threadId","in":"path"},{"schema":{"type":"string","format":"uuid"},"required":true,"name":"uploadId","in":"path"}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/V2SittingPhotoUploadComplete"}}}},"responses":{"201":{"description":"Kept.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/V2SittingPhotoAdded"}}}},"401":{"description":"Missing or invalid access token (`unauthenticated`).","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorEnvelope"}}}},"403":{"description":"No organisation in the token (`no_organisation_context`), or not permitted (`forbidden`).","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorEnvelope"}}}},"404":{"description":"Not found, or not visible to the caller.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorEnvelope"}}}},"409":{"description":"`no_sitting`, `sitting_stopped`, `sitting_locked`, `version_not_held`, `not_at_assessment`, `part_asked`, `photos_not_agreed`, `photos_stopped`, `too_many_photos`, `photo_kept_elsewhere`, `thread_closed` or `tombstoned`.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorEnvelope"}}}},"410":{"description":"`media_erased`.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorEnvelope"}}}},"422":{"description":"Invalid body, `unknown_key`, `unknown_source`, `caption_too_long`, `unsupported_media` or `media_too_large`.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorEnvelope"}}}}}}},"/organisations/current/people/{personId}/v2/{threadId}/sitting/photos/{photoId}/archive":{"post":{"tags":["invitations"],"summary":"A photo taken off the page: archived, once, never deleted; `update` on the person; audited","security":[{"bearerAuth":[]}],"parameters":[{"schema":{"type":"string","format":"uuid"},"required":true,"name":"personId","in":"path"},{"schema":{"type":"string","format":"uuid"},"required":true,"name":"threadId","in":"path"},{"schema":{"type":"string","format":"uuid"},"required":true,"name":"photoId","in":"path"}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/V2SittingEmpty"}}}},"responses":{"201":{"description":"Taken off.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/V2SittingPhotoArchived"}}}},"401":{"description":"Missing or invalid access token (`unauthenticated`).","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorEnvelope"}}}},"403":{"description":"No organisation in the token (`no_organisation_context`), or not permitted (`forbidden`).","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorEnvelope"}}}},"404":{"description":"Not found, or not visible to the caller.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorEnvelope"}}}},"409":{"description":"`no_sitting`, `sitting_stopped`, `sitting_locked`, `version_not_held`, `not_at_assessment`, `photo_archived`, `thread_closed` or `tombstoned`.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorEnvelope"}}}},"422":{"description":"Invalid body.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorEnvelope"}}}}}}},"/organisations/current/people/{personId}/v2/{threadId}/sitting/photos/{photoId}/content":{"get":{"tags":["invitations"],"summary":"A photo’s cleaned copy (`thumb`, `display` or `detail`: no hidden data), never its original; `read` on the person; logged","security":[{"bearerAuth":[]}],"parameters":[{"schema":{"type":"string","format":"uuid"},"required":true,"name":"personId","in":"path"},{"schema":{"type":"string","format":"uuid"},"required":true,"name":"threadId","in":"path"},{"schema":{"type":"string","format":"uuid"},"required":true,"name":"photoId","in":"path"},{"schema":{"type":"string","enum":["thumb","display","detail"],"default":"thumb","description":"A cleaned copy: never the original, which is evidence and served to no page."},"required":false,"description":"A cleaned copy: never the original, which is evidence and served to no page.","name":"variant","in":"query"}],"responses":{"200":{"description":"The bytes, from a store that hands out no URLs (development)."},"302":{"description":"Where to fetch the file for the next few minutes."},"401":{"description":"Missing or invalid access token (`unauthenticated`).","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorEnvelope"}}}},"403":{"description":"No organisation in the token (`no_organisation_context`), or not permitted (`forbidden`).","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorEnvelope"}}}},"404":{"description":"Not found, or not visible to the caller.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorEnvelope"}}}},"410":{"description":"`media_erased`: erased under an erasure request.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorEnvelope"}}}},"422":{"description":"Invalid request.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorEnvelope"}}}}}}},"/organisations/current/resources/{resourceId}/jobs/{key}/report":{"get":{"tags":["invitations"],"summary":"A findings task’s report form, for its owner given it (spec 92 §6.5, someone given the task; move 13): what the report asks, as they may see it (to someone who may not read the person: the catalogue’s words without their name, the kind and the facts it must meet that do not name them, their home by its name only, the resource’s spaces and assets only where they may read the resource), whether their report waits to be taken in, and their own waiting words or why it was sent back; the task’s own door (its owner, given it); logged (funnel `task-given`)","security":[{"bearerAuth":[]}],"parameters":[{"schema":{"type":"string","format":"uuid"},"required":true,"name":"resourceId","in":"path"},{"schema":{"type":"string","minLength":1,"maxLength":240},"required":true,"name":"key","in":"path"}],"responses":{"200":{"description":"The form.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/V2GivenReportForm"}}}},"401":{"description":"Missing or invalid access token (`unauthenticated`).","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorEnvelope"}}}},"403":{"description":"No organisation in the token (`no_organisation_context`), or not permitted (`forbidden`).","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorEnvelope"}}}},"404":{"description":"Not found, or not visible to the caller.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorEnvelope"}}}},"409":{"description":"`no_report` or `job_already_closed`.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorEnvelope"}}}},"422":{"description":"Invalid request.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorEnvelope"}}}}}},"post":{"tags":["invitations"],"summary":"A findings task about the person (record, show, keep, check, agree, train) reported by its owner given it (spec 92 §6.5, someone given the task; move 13): by someone who may edit the person, as move 10’s report; by anyone else, it waits to be taken in (sealed, the task left open, one at a time), until someone who may edit the person takes it in or sends it back; the task’s own door (its owner, given it), never the person’s record; audited `via: given`, never the words; answered with no word of the person","security":[{"bearerAuth":[]}],"parameters":[{"schema":{"type":"string","format":"uuid"},"required":true,"name":"resourceId","in":"path"},{"schema":{"type":"string","minLength":1,"maxLength":240},"required":true,"name":"key","in":"path"}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/V2GivenReport"}}}},"responses":{"201":{"description":"Done.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/V2GivenReported"}}}},"401":{"description":"Missing or invalid access token (`unauthenticated`).","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorEnvelope"}}}},"403":{"description":"No organisation in the token (`no_organisation_context`), or not permitted (`forbidden`).","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorEnvelope"}}}},"404":{"description":"Not found, or not visible to the caller.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorEnvelope"}}}},"409":{"description":"`no_report`, `report_a_thing`, `report_waiting`, `job_already_closed`, `report_on_the_record`, `thread_closed` or `tombstoned`, or a refusal of move 10’s report.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorEnvelope"}}}},"422":{"description":"Invalid body, `put_right_not_yours`, `unknown_task`, `answer_needed`, `unknown_answer`, `answer_not_wanted`, `…_needed`, `…_too_long`, `day_not_a_day`, `day_future`, `look_again_…`.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorEnvelope"}}}}}}},"/organisations/current/resources/{resourceId}/jobs/{key}/report/thing":{"post":{"tags":["invitations"],"summary":"A findings task to get a thing (provide, fit) reported by its owner given it (spec 92 §6.5, someone given the task; move 13): it lands at once, as move 11’s report, under the task’s own authority (the asset made in the resource’s assets for the person, the place in place, the task done, in one transaction), kept in their home or a space of the resource they may read, already in the assets only where they may read the resource’s assets; a fact answered No is put right by whoever looks after the record; audited `via: given`; answered only: completed, and in the resource’s assets","security":[{"bearerAuth":[]}],"parameters":[{"schema":{"type":"string","format":"uuid"},"required":true,"name":"resourceId","in":"path"},{"schema":{"type":"string","minLength":1,"maxLength":240},"required":true,"name":"key","in":"path"}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/V2GivenThingReport"}}}},"responses":{"201":{"description":"Done.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/V2GivenThingReported"}}}},"401":{"description":"Missing or invalid access token (`unauthenticated`).","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorEnvelope"}}}},"403":{"description":"No organisation in the token (`no_organisation_context`), or not permitted (`forbidden`).","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorEnvelope"}}}},"404":{"description":"Not found, or not visible to the caller.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorEnvelope"}}}},"409":{"description":"`no_report`, `report_about_the_person`, `job_already_closed`, `thread_closed` or `tombstoned`, or a refusal of move 11’s report.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorEnvelope"}}}},"422":{"description":"Invalid body, `assets_not_offered`, `kept_in_not_offered`, `put_right_not_yours`, or a refusal of move 11’s report.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorEnvelope"}}}}}}},"/organisations/current/people/{personId}/v2/{threadId}/findings/{key}/reports/waiting/{waitingId}/take-in":{"post":{"tags":["invitations"],"summary":"A report waiting to be taken in, taken in by someone who may edit the person (spec 92 §6.5; move 13): the real report written exactly as move 10’s, credited to whoever reported it and taken in by the actor (the words as they waited, or as edited; the waiting words kept), the task closed by its own closing, a check’s No then raising its task; `update` on the person; audited, never the words","security":[{"bearerAuth":[]}],"parameters":[{"schema":{"type":"string","format":"uuid"},"required":true,"name":"personId","in":"path"},{"schema":{"type":"string","format":"uuid"},"required":true,"name":"threadId","in":"path"},{"schema":{"type":"string","minLength":1,"maxLength":120},"required":true,"name":"key","in":"path"},{"schema":{"type":"string","format":"uuid"},"required":true,"name":"waitingId","in":"path"}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/V2TakeIn"}}}},"responses":{"201":{"description":"Done.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/V2TakenIn"}}}},"401":{"description":"Missing or invalid access token (`unauthenticated`).","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorEnvelope"}}}},"403":{"description":"No organisation in the token (`no_organisation_context`), or not permitted (`forbidden`).","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorEnvelope"}}}},"404":{"description":"Not found, or not visible to the caller.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorEnvelope"}}}},"409":{"description":"`not_waiting`, `job_already_closed`, `steps_open`, `waits_not_confirmed`, `thread_closed` or `tombstoned`.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorEnvelope"}}}},"422":{"description":"Invalid body, `unknown_report`, or a refusal of move 10’s report.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorEnvelope"}}}}}}},"/organisations/current/people/{personId}/v2/{threadId}/findings/{key}/reports/waiting/{waitingId}/send-back":{"post":{"tags":["invitations"],"summary":"A report waiting to be taken in, sent back with a reason (required, sealed) by someone who may edit the person (spec 92 §6.5; move 13): its task open again, the reporter told why; `update` on the person; audited, never the reason","security":[{"bearerAuth":[]}],"parameters":[{"schema":{"type":"string","format":"uuid"},"required":true,"name":"personId","in":"path"},{"schema":{"type":"string","format":"uuid"},"required":true,"name":"threadId","in":"path"},{"schema":{"type":"string","minLength":1,"maxLength":120},"required":true,"name":"key","in":"path"},{"schema":{"type":"string","format":"uuid"},"required":true,"name":"waitingId","in":"path"}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/V2SendBack"}}}},"responses":{"201":{"description":"Done.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/V2SentBack"}}}},"401":{"description":"Missing or invalid access token (`unauthenticated`).","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorEnvelope"}}}},"403":{"description":"No organisation in the token (`no_organisation_context`), or not permitted (`forbidden`).","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorEnvelope"}}}},"404":{"description":"Not found, or not visible to the caller.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorEnvelope"}}}},"409":{"description":"`not_waiting`, `thread_closed` or `tombstoned`.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorEnvelope"}}}},"422":{"description":"Invalid body, `unknown_report`, `reason_needed` or `reason_too_long`.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorEnvelope"}}}}}}},"/organisations/current/people/{personId}/v2/{threadId}/about":{"get":{"tags":["invitations"],"summary":"About the person: the summary standing for the current lock (Point AI’s words, a member’s correction, or none: the findings’ own words), who corrected it and when, and the findings’ own words; `read` on the person; logged","security":[{"bearerAuth":[]}],"parameters":[{"schema":{"type":"string","format":"uuid"},"required":true,"name":"personId","in":"path"},{"schema":{"type":"string","format":"uuid"},"required":true,"name":"threadId","in":"path"}],"responses":{"200":{"description":"About the person.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/V2About"}}}},"401":{"description":"Missing or invalid access token (`unauthenticated`).","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorEnvelope"}}}},"403":{"description":"No organisation in the token (`no_organisation_context`), or not permitted (`forbidden`).","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorEnvelope"}}}},"404":{"description":"Not found, or not visible to the caller.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorEnvelope"}}}},"422":{"description":"Invalid request.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorEnvelope"}}}}}},"post":{"tags":["invitations"],"summary":"Make it, once a lock: carried from the lock before where its findings are the same, else written by Point AI from the lock’s raised findings only (checked; the findings’ own words where it cannot be); `update` on the person; audited","security":[{"bearerAuth":[]}],"parameters":[{"schema":{"type":"string","format":"uuid"},"required":true,"name":"personId","in":"path"},{"schema":{"type":"string","format":"uuid"},"required":true,"name":"threadId","in":"path"}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/V2AboutMake"}}}},"responses":{"201":{"description":"The summary standing for the lock.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/V2About"}}}},"401":{"description":"Missing or invalid access token (`unauthenticated`).","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorEnvelope"}}}},"403":{"description":"No organisation in the token (`no_organisation_context`), or not permitted (`forbidden`).","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorEnvelope"}}}},"404":{"description":"Not found, or not visible to the caller.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorEnvelope"}}}},"409":{"description":"`not_at_assessment`, `sitting_not_locked`, `version_not_held`, `lock_changed`, `nothing_to_correct`, `emptied`, `about_superseded`, `tombstoned`, `thread_closed`.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorEnvelope"}}}},"422":{"description":"Invalid body, or words the tool refuses (`about_says_more`, `words_needed`, `too_long`), on `words`.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorEnvelope"}}}}}}},"/organisations/current/people/{personId}/v2/{threadId}/about/corrections":{"post":{"tags":["invitations"],"summary":"A member’s correction: a new version naming the one it corrects, never a word of what will be done or who is told; `update` on the person; audited","security":[{"bearerAuth":[]}],"parameters":[{"schema":{"type":"string","format":"uuid"},"required":true,"name":"personId","in":"path"},{"schema":{"type":"string","format":"uuid"},"required":true,"name":"threadId","in":"path"}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/V2AboutCorrection"}}}},"responses":{"201":{"description":"The summary standing for the lock.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/V2About"}}}},"401":{"description":"Missing or invalid access token (`unauthenticated`).","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorEnvelope"}}}},"403":{"description":"No organisation in the token (`no_organisation_context`), or not permitted (`forbidden`).","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorEnvelope"}}}},"404":{"description":"Not found, or not visible to the caller.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorEnvelope"}}}},"409":{"description":"`not_at_assessment`, `sitting_not_locked`, `version_not_held`, `lock_changed`, `nothing_to_correct`, `emptied`, `about_superseded`, `tombstoned`, `thread_closed`.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorEnvelope"}}}},"422":{"description":"Invalid body, or words the tool refuses (`about_says_more`, `words_needed`, `too_long`), on `words`.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorEnvelope"}}}}}}},"/organisations/current/people/{personId}/v2/{threadId}/findings/{key}/suggestions":{"get":{"tags":["invitations"],"summary":"Point AI’s suggestions inside one consideration, under the current lock: each by pointer with its reason, her answer, and whether her own answer has overtaken it; and the latest ask; `read` on the person; logged","security":[{"bearerAuth":[]}],"parameters":[{"schema":{"type":"string","format":"uuid"},"required":true,"name":"personId","in":"path"},{"schema":{"type":"string","format":"uuid"},"required":true,"name":"threadId","in":"path"},{"schema":{"type":"string","minLength":1,"maxLength":120},"required":true,"name":"key","in":"path"}],"responses":{"200":{"description":"The suggestions.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/V2Suggestions"}}}},"401":{"description":"Missing or invalid access token (`unauthenticated`).","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorEnvelope"}}}},"403":{"description":"No organisation in the token (`no_organisation_context`), or not permitted (`forbidden`).","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorEnvelope"}}}},"404":{"description":"Not found, or not visible to the caller.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorEnvelope"}}}},"422":{"description":"Invalid request.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorEnvelope"}}}}}},"post":{"tags":["invitations"],"summary":"Ask Point AI: the consideration sent through the translator, its reply checked, and only what passes stored as suggestions; nothing in the plan changes; `update` on the person; audited","security":[{"bearerAuth":[]}],"parameters":[{"schema":{"type":"string","format":"uuid"},"required":true,"name":"personId","in":"path"},{"schema":{"type":"string","format":"uuid"},"required":true,"name":"threadId","in":"path"},{"schema":{"type":"string","minLength":1,"maxLength":120},"required":true,"name":"key","in":"path"}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/V2SuggestionsAsk"}}}},"responses":{"201":{"description":"The suggestions on the consideration.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/V2Suggestions"}}}},"401":{"description":"Missing or invalid access token (`unauthenticated`).","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorEnvelope"}}}},"403":{"description":"No organisation in the token (`no_organisation_context`), or not permitted (`forbidden`).","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorEnvelope"}}}},"404":{"description":"Not found, or not visible to the caller.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorEnvelope"}}}},"409":{"description":"`not_at_assessment`, `sitting_not_locked`, `version_not_held`, `not_built`, `lock_changed`, `already_answered`, `suggestion_overtaken`, `emptied`, `tombstoned`, `thread_closed`, and the refusals of the command an accepted suggestion goes through.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorEnvelope"}}}},"422":{"description":"Invalid body, or an answer that is not one for its kind (`unknown_answer`).","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorEnvelope"}}}}}}},"/organisations/current/people/{personId}/v2/{threadId}/findings/{key}/suggestions/{suggestionId}/answers":{"post":{"tags":["invitations"],"summary":"Answer one, once: accepted (applied through the same command as the member’s own choice, recorded as theirs), changed, declined, or noted; `update` on the person; audited","security":[{"bearerAuth":[]}],"parameters":[{"schema":{"type":"string","format":"uuid"},"required":true,"name":"personId","in":"path"},{"schema":{"type":"string","format":"uuid"},"required":true,"name":"threadId","in":"path"},{"schema":{"type":"string","minLength":1,"maxLength":120},"required":true,"name":"key","in":"path"},{"schema":{"type":"string","format":"uuid"},"required":true,"name":"suggestionId","in":"path"}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/V2SuggestionAnswer"}}}},"responses":{"201":{"description":"The suggestions on the consideration.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/V2SuggestionAnswered"}}}},"401":{"description":"Missing or invalid access token (`unauthenticated`).","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorEnvelope"}}}},"403":{"description":"No organisation in the token (`no_organisation_context`), or not permitted (`forbidden`).","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorEnvelope"}}}},"404":{"description":"Not found, or not visible to the caller.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorEnvelope"}}}},"409":{"description":"`not_at_assessment`, `sitting_not_locked`, `version_not_held`, `not_built`, `lock_changed`, `already_answered`, `suggestion_overtaken`, `emptied`, `tombstoned`, `thread_closed`, and the refusals of the command an accepted suggestion goes through.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorEnvelope"}}}},"422":{"description":"Invalid body, or an answer that is not one for its kind (`unknown_answer`).","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorEnvelope"}}}}}}},"/organisations/current/people/{personId}/residencies/{residencyId}/v2/assisting":{"get":{"tags":["invitations"],"summary":"The ones who assist the person in this home, current (not ended), oldest first, each with their answers, hours, what they do, and why one no longer helps where it has lapsed; `read` on the person; logged, and each person and guest named logged","security":[{"bearerAuth":[]}],"parameters":[{"schema":{"type":"string","format":"uuid"},"required":true,"name":"personId","in":"path"},{"schema":{"type":"string","format":"uuid"},"required":true,"name":"residencyId","in":"path"}],"responses":{"200":{"description":"The ones who assist.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/V2AssistingOfResidency"}}}},"401":{"description":"Missing or invalid access token (`unauthenticated`).","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorEnvelope"}}}},"403":{"description":"No organisation in the token (`no_organisation_context`), or not permitted (`forbidden`).","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorEnvelope"}}}},"404":{"description":"Not found, or not visible to the caller.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorEnvelope"}}}},"422":{"description":"Invalid request.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorEnvelope"}}}}}},"post":{"tags":["invitations"],"summary":"One who assists, added for a home here now: a post, a person recorded here, a guest here now, or someone else in words; but for a post, both answers (not asked yet unless given) and their own hours; `update` on the person; audited","security":[{"bearerAuth":[]}],"parameters":[{"schema":{"type":"string","format":"uuid"},"required":true,"name":"personId","in":"path"},{"schema":{"type":"string","format":"uuid"},"required":true,"name":"residencyId","in":"path"}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/V2AssistingAdd"}}}},"responses":{"201":{"description":"Done.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/V2AssistingAdded"}}}},"401":{"description":"Missing or invalid access token (`unauthenticated`).","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorEnvelope"}}}},"403":{"description":"No organisation in the token (`no_organisation_context`), or not permitted (`forbidden`).","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorEnvelope"}}}},"404":{"description":"Not found, or not visible to the caller.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorEnvelope"}}}},"409":{"description":"`tombstoned`, `residency_ended`, `already_ended`, `already_assisting`, `party_lapsed` (who spoke for the person no longer holds).","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorEnvelope"}}}},"422":{"description":"Invalid body, or a field the tool refuses, by path.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorEnvelope"}}}}}}},"/organisations/current/people/{personId}/residencies/{residencyId}/v2/assisting/{handle}":{"post":{"tags":["invitations"],"summary":"What they do, when, the competence needed, first or back-up, how told, last practised, said again whole: a new row, the old closed; `update` on the person; audited","security":[{"bearerAuth":[]}],"parameters":[{"schema":{"type":"string","format":"uuid"},"required":true,"name":"personId","in":"path"},{"schema":{"type":"string","format":"uuid"},"required":true,"name":"residencyId","in":"path"},{"schema":{"type":"string","format":"uuid"},"required":true,"name":"handle","in":"path"}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/V2AssistingTerms"}}}},"responses":{"201":{"description":"Done.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/V2AssistingWritten"}}}},"401":{"description":"Missing or invalid access token (`unauthenticated`).","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorEnvelope"}}}},"403":{"description":"No organisation in the token (`no_organisation_context`), or not permitted (`forbidden`).","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorEnvelope"}}}},"404":{"description":"Not found, or not visible to the caller.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorEnvelope"}}}},"409":{"description":"`tombstoned`, `residency_ended`, `already_ended`, `already_assisting`, `party_lapsed` (who spoke for the person no longer holds).","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorEnvelope"}}}},"422":{"description":"Invalid body, or a field the tool refuses, by path.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorEnvelope"}}}}}}},"/organisations/current/people/{personId}/residencies/{residencyId}/v2/assisting/{handle}/agreed":{"post":{"tags":["invitations"],"summary":"Their answer to whether they will help: yes or no, how and the day, or not asked yet; refused for a post; a new row; `update` on the person; audited","security":[{"bearerAuth":[]}],"parameters":[{"schema":{"type":"string","format":"uuid"},"required":true,"name":"personId","in":"path"},{"schema":{"type":"string","format":"uuid"},"required":true,"name":"residencyId","in":"path"},{"schema":{"type":"string","format":"uuid"},"required":true,"name":"handle","in":"path"}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/V2AssistingAnswer"}}}},"responses":{"201":{"description":"Done.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/V2AssistingWritten"}}}},"401":{"description":"Missing or invalid access token (`unauthenticated`).","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorEnvelope"}}}},"403":{"description":"No organisation in the token (`no_organisation_context`), or not permitted (`forbidden`).","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorEnvelope"}}}},"404":{"description":"Not found, or not visible to the caller.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorEnvelope"}}}},"409":{"description":"`tombstoned`, `residency_ended`, `already_ended`, `already_assisting`, `party_lapsed` (who spoke for the person no longer holds).","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorEnvelope"}}}},"422":{"description":"Invalid body, or a field the tool refuses, by path.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorEnvelope"}}}}}}},"/organisations/current/people/{personId}/residencies/{residencyId}/v2/assisting/{handle}/may-see-plan":{"post":{"tags":["invitations"],"summary":"The person’s own answer to whether this one may see their plan: yes or no, how and the day, and who said it (`party`: `self`, or the party that spoke for them, with authority), or not asked yet; separate from helping; refused for a post; a new row; `update` on the person; audited","security":[{"bearerAuth":[]}],"parameters":[{"schema":{"type":"string","format":"uuid"},"required":true,"name":"personId","in":"path"},{"schema":{"type":"string","format":"uuid"},"required":true,"name":"residencyId","in":"path"},{"schema":{"type":"string","format":"uuid"},"required":true,"name":"handle","in":"path"}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/V2AssistingAnswer"}}}},"responses":{"201":{"description":"Done.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/V2AssistingWritten"}}}},"401":{"description":"Missing or invalid access token (`unauthenticated`).","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorEnvelope"}}}},"403":{"description":"No organisation in the token (`no_organisation_context`), or not permitted (`forbidden`).","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorEnvelope"}}}},"404":{"description":"Not found, or not visible to the caller.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorEnvelope"}}}},"409":{"description":"`tombstoned`, `residency_ended`, `already_ended`, `already_assisting`, `party_lapsed` (who spoke for the person no longer holds).","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorEnvelope"}}}},"422":{"description":"Invalid body, or a field the tool refuses, by path.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorEnvelope"}}}}}}},"/organisations/current/people/{personId}/residencies/{residencyId}/v2/assisting/{handle}/end":{"post":{"tags":["invitations"],"summary":"The help ended, by the one assisting, the person, or a member, on a day, with why if said (sealed): the last row; `update` on the person; audited, never the why","security":[{"bearerAuth":[]}],"parameters":[{"schema":{"type":"string","format":"uuid"},"required":true,"name":"personId","in":"path"},{"schema":{"type":"string","format":"uuid"},"required":true,"name":"residencyId","in":"path"},{"schema":{"type":"string","format":"uuid"},"required":true,"name":"handle","in":"path"}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/V2AssistingEnd"}}}},"responses":{"201":{"description":"Done.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/V2AssistingWritten"}}}},"401":{"description":"Missing or invalid access token (`unauthenticated`).","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorEnvelope"}}}},"403":{"description":"No organisation in the token (`no_organisation_context`), or not permitted (`forbidden`).","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorEnvelope"}}}},"404":{"description":"Not found, or not visible to the caller.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorEnvelope"}}}},"409":{"description":"`tombstoned`, `residency_ended`, `already_ended`, `already_assisting`, `party_lapsed` (who spoke for the person no longer holds).","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorEnvelope"}}}},"422":{"description":"Invalid body, or a field the tool refuses, by path.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorEnvelope"}}}}}}},"/organisations/current/resources/{resourceId}/v2/assisting":{"get":{"tags":["invitations"],"summary":"The place’s ones who assist, from their own records, grouped staff, living here, guests and others, each once with whom they help; the person helped named only to a reader of them; `read` on the place; each person and guest named logged","security":[{"bearerAuth":[]}],"parameters":[{"schema":{"type":"string","format":"uuid"},"required":true,"name":"resourceId","in":"path"}],"responses":{"200":{"description":"The ones who assist.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/V2AssistingOfPlace"}}}},"401":{"description":"Missing or invalid access token (`unauthenticated`).","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorEnvelope"}}}},"403":{"description":"No organisation in the token (`no_organisation_context`), or not permitted (`forbidden`).","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorEnvelope"}}}},"404":{"description":"Not found, or not visible to the caller.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorEnvelope"}}}},"422":{"description":"Invalid request.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorEnvelope"}}}}}}},"/organisations/current/people/{personId}/processes/{handle}/review-cycle":{"get":{"tags":["review-cycle"],"summary":"A process’s review cycle: its cycles, each with its sign-off day and colour; the review due once signed off; the changes recorded and what was done with each; whether the review is to be booked; as reading the process is decided, logged","security":[{"bearerAuth":[]}],"parameters":[{"schema":{"type":"string","format":"uuid"},"required":true,"name":"personId","in":"path"},{"schema":{"type":"string","format":"uuid"},"required":true,"name":"handle","in":"path"}],"responses":{"200":{"description":"The review cycle.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ReviewCycle"}}}},"401":{"description":"Missing or invalid access token (`unauthenticated`).","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorEnvelope"}}}},"403":{"description":"No organisation in the token (`no_organisation_context`), or not permitted (`forbidden`).","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorEnvelope"}}}},"404":{"description":"Not found, or not visible to the caller.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorEnvelope"}}}},"422":{"description":"Invalid request.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorEnvelope"}}}}}}},"/organisations/current/people/{personId}/processes/{handle}/changes":{"post":{"tags":["review-cycle"],"summary":"Records a change about the person on a process: its kind, the words, the day it was noticed, and the choice: the review opened now with it as the reason, in the same transaction, or noted for the next review; `update` on the person and on its place; audited by keys, never the words","security":[{"bearerAuth":[]}],"parameters":[{"schema":{"type":"string","format":"uuid"},"required":true,"name":"personId","in":"path"},{"schema":{"type":"string","format":"uuid"},"required":true,"name":"handle","in":"path"}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ChangeRecorded"}}}},"responses":{"201":{"description":"The change recorded.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ChangeMade"}}}},"401":{"description":"Missing or invalid access token (`unauthenticated`).","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorEnvelope"}}}},"403":{"description":"No organisation in the token (`no_organisation_context`), or not permitted (`forbidden`).","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorEnvelope"}}}},"404":{"description":"Not found, or not visible to the caller.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorEnvelope"}}}},"409":{"description":"`process_ended`, or for a review now `nothing_to_review`, `review_open` or `process_suspended`.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorEnvelope"}}}},"422":{"description":"Invalid body, `unknown_change_kind`, `words_needed`, `too_long`, `unknown_change_choice` or `invalid_on`.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorEnvelope"}}}}}}},"/organisations/current/people/{personId}/processes/{handle}/summaries":{"get":{"tags":["summaries"],"summary":"What a process’s sealed answers say about the person, and what they raise: the current draft of each (none until drafted), who drafted it, its confirmations, and the mechanical version (each answer word for word with where it is; each consideration in the definition’s own words); as reading the process is decided, logged","security":[{"bearerAuth":[]}],"parameters":[{"schema":{"type":"string","format":"uuid"},"required":true,"name":"personId","in":"path"},{"schema":{"type":"string","format":"uuid"},"required":true,"name":"handle","in":"path"}],"responses":{"200":{"description":"The summaries.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ProcessSummaries"}}}},"401":{"description":"Missing or invalid access token (`unauthenticated`).","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorEnvelope"}}}},"403":{"description":"No organisation in the token (`no_organisation_context`), or not permitted (`forbidden`).","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorEnvelope"}}}},"404":{"description":"Not found, or not visible to the caller.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorEnvelope"}}}},"409":{"description":"`not_sat_yet`: the answers are not sealed yet.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorEnvelope"}}}},"422":{"description":"Invalid request.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorEnvelope"}}}}}}},"/organisations/current/people/{personId}/processes/{handle}/drafting":{"get":{"tags":["summaries"],"summary":"Whether a drafting run is waiting for a process’s sealed answers (asked for when they, or a step after them, were locked; spec 62 §6), what asked for it and when, and how the latest ended: what a page waiting on its summaries reads until they land; as reading the process is decided, logged","security":[{"bearerAuth":[]}],"parameters":[{"schema":{"type":"string","format":"uuid"},"required":true,"name":"personId","in":"path"},{"schema":{"type":"string","format":"uuid"},"required":true,"name":"handle","in":"path"}],"responses":{"200":{"description":"Where the drafting stands.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ProcessDrafting"}}}},"401":{"description":"Missing or invalid access token (`unauthenticated`).","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorEnvelope"}}}},"403":{"description":"No organisation in the token (`no_organisation_context`), or not permitted (`forbidden`).","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorEnvelope"}}}},"404":{"description":"Not found, or not visible to the caller.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorEnvelope"}}}},"409":{"description":"`not_sat_yet`: the answers are not sealed yet.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorEnvelope"}}}},"422":{"description":"Invalid request.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorEnvelope"}}}}}}},"/organisations/current/people/{personId}/processes/{handle}/summaries/draft":{"post":{"tags":["summaries"],"summary":"Drafts both summaries from the sealed answer set, or drafts them again while unconfirmed: by the model, through the translator, checked and retried once, else from the template; from the template straight away without a model. A confirmed one is not redrafted; `update` on the person and on its place; audited by keys, never the words","security":[{"bearerAuth":[]}],"parameters":[{"schema":{"type":"string","format":"uuid"},"required":true,"name":"personId","in":"path"},{"schema":{"type":"string","format":"uuid"},"required":true,"name":"handle","in":"path"}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/SummariesDraft"}}}},"responses":{"201":{"description":"Drafted.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ProcessSummaries"}}}},"401":{"description":"Missing or invalid access token (`unauthenticated`).","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorEnvelope"}}}},"403":{"description":"No organisation in the token (`no_organisation_context`), or not permitted (`forbidden`).","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorEnvelope"}}}},"404":{"description":"Not found, or not visible to the caller.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorEnvelope"}}}},"409":{"description":"`not_sat_yet`, `summaries_locked`, `answers_changed`, `process_ended` or `process_suspended`.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorEnvelope"}}}},"422":{"description":"Invalid request.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorEnvelope"}}}}}}},"/organisations/current/people/{personId}/processes/{handle}/summaries/{summaryId}/edit":{"post":{"tags":["summaries"],"summary":"The assessor’s words for the current, unconfirmed summary, kept beside the draft, its sources as drafted: the paragraph, or a line for each consideration and only those; `update` on the person and on its place; audited by keys, never the words","security":[{"bearerAuth":[]}],"parameters":[{"schema":{"type":"string","format":"uuid"},"required":true,"name":"personId","in":"path"},{"schema":{"type":"string","format":"uuid"},"required":true,"name":"handle","in":"path"},{"schema":{"type":"string","format":"uuid"},"required":true,"name":"summaryId","in":"path"}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/SummaryEdited"}}}},"responses":{"201":{"description":"Edited.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ProcessSummaries"}}}},"401":{"description":"Missing or invalid access token (`unauthenticated`).","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorEnvelope"}}}},"403":{"description":"No organisation in the token (`no_organisation_context`), or not permitted (`forbidden`).","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorEnvelope"}}}},"404":{"description":"Not found, or not visible to the caller.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorEnvelope"}}}},"409":{"description":"`summary_locked`, `summary_superseded`, `emptied`, `process_ended` or `process_suspended`.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorEnvelope"}}}},"422":{"description":"Invalid body, `words_needed`, `too_long`, `lines_must_match`, `lines_not_here` or `paragraph_not_here`.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorEnvelope"}}}}}}},"/organisations/current/people/{personId}/processes/{handle}/summaries/{summaryId}/confirm":{"post":{"tags":["summaries"],"summary":"The assessor confirms the current summary: it is locked against its answer set, never redrafted or rewritten for it; once; `update` on the person and on its place; audited","security":[{"bearerAuth":[]}],"parameters":[{"schema":{"type":"string","format":"uuid"},"required":true,"name":"personId","in":"path"},{"schema":{"type":"string","format":"uuid"},"required":true,"name":"handle","in":"path"},{"schema":{"type":"string","format":"uuid"},"required":true,"name":"summaryId","in":"path"}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/SummariesDraft"}}}},"responses":{"201":{"description":"Confirmed.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ProcessSummaries"}}}},"401":{"description":"Missing or invalid access token (`unauthenticated`).","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorEnvelope"}}}},"403":{"description":"No organisation in the token (`no_organisation_context`), or not permitted (`forbidden`).","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorEnvelope"}}}},"404":{"description":"Not found, or not visible to the caller.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorEnvelope"}}}},"409":{"description":"`summary_locked`, `summary_superseded`, `emptied`, `process_ended` or `process_suspended`.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorEnvelope"}}}},"422":{"description":"Invalid request.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorEnvelope"}}}}}}},"/organisations/current/people/{personId}/processes/{handle}/locks":{"get":{"tags":["soft-locks"],"summary":"A process’s soft locks: each, whether it can be unlocked now and, unlocked, by whom, when and why; what needs checking and since which unlock; every unlock with its relock and how each thing it flagged was cleared; as reading the process is decided, logged","security":[{"bearerAuth":[]}],"parameters":[{"schema":{"type":"string","format":"uuid"},"required":true,"name":"personId","in":"path"},{"schema":{"type":"string","format":"uuid"},"required":true,"name":"handle","in":"path"}],"responses":{"200":{"description":"The soft locks.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/SoftLocks"}}}},"401":{"description":"Missing or invalid access token (`unauthenticated`).","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorEnvelope"}}}},"403":{"description":"No organisation in the token (`no_organisation_context`), or not permitted (`forbidden`).","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorEnvelope"}}}},"404":{"description":"Not found, or not visible to the caller.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorEnvelope"}}}},"422":{"description":"Invalid request.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorEnvelope"}}}}}}},"/organisations/current/people/{personId}/processes/{handle}/corrections":{"get":{"tags":["soft-locks"],"summary":"What was corrected in a process’s answers, for the cycle read: each correction oldest first — when, by whom, why (its unlock’s reason) and each answer that changed, from what to what — worked out by comparing each sealed set with the one it superseded; `update` on the person and on its place, logged","security":[{"bearerAuth":[]}],"parameters":[{"schema":{"type":"string","format":"uuid"},"required":true,"name":"personId","in":"path"},{"schema":{"type":"string","format":"uuid"},"required":true,"name":"handle","in":"path"},{"schema":{"type":"integer","minimum":1,"maximum":1000},"required":false,"name":"cycle","in":"query"}],"responses":{"200":{"description":"The corrections.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/AnswerCorrections"}}}},"401":{"description":"Missing or invalid access token (`unauthenticated`).","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorEnvelope"}}}},"403":{"description":"No organisation in the token (`no_organisation_context`), or not permitted (`forbidden`).","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorEnvelope"}}}},"404":{"description":"Not found, or not visible to the caller.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorEnvelope"}}}},"422":{"description":"Invalid request.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorEnvelope"}}}}}}},"/organisations/current/people/{personId}/processes/{handle}/locks/{lock}/unlock":{"get":{"tags":["soft-locks"],"summary":"What unlocking a soft lock will flag, read from the rows before anything changes, in words, with a fingerprint the unlock carries back; refused as the unlock would be; `update` on the person and on its place; a read, logged, and nothing else written","security":[{"bearerAuth":[]}],"parameters":[{"schema":{"type":"string","format":"uuid"},"required":true,"name":"personId","in":"path"},{"schema":{"type":"string","format":"uuid"},"required":true,"name":"handle","in":"path"},{"schema":{"type":"string","pattern":"^[a-z]{1,40}$"},"required":true,"name":"lock","in":"path"}],"responses":{"200":{"description":"What will follow.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/UnlockPreview"}}}},"401":{"description":"Missing or invalid access token (`unauthenticated`).","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorEnvelope"}}}},"403":{"description":"No organisation in the token (`no_organisation_context`), or not permitted (`forbidden`).","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorEnvelope"}}}},"404":{"description":"Not found, or not visible to the caller.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorEnvelope"}}}},"409":{"description":"`signed_off` (a change after sign-off is a review), `not_locked`, `already_unlocked`, `process_ended` or `process_suspended`.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorEnvelope"}}}},"422":{"description":"Invalid request.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorEnvelope"}}}}}},"post":{"tags":["soft-locks"],"summary":"Unlocks a soft lock before sign-off, with a reason (sealed), having seen what will follow: the fingerprint shown must still be the truth. In one transaction the unlock and a needs-checking flag on everything after it, the locked version kept on record — and, for the answers, a new version of the set opened pre-filled from the locked one, for the runner to carry on; `update` on the person and on its place; audited, never the reason","security":[{"bearerAuth":[]}],"parameters":[{"schema":{"type":"string","format":"uuid"},"required":true,"name":"personId","in":"path"},{"schema":{"type":"string","format":"uuid"},"required":true,"name":"handle","in":"path"},{"schema":{"type":"string","pattern":"^[a-z]{1,40}$"},"required":true,"name":"lock","in":"path"}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/SoftUnlock"}}}},"responses":{"201":{"description":"Unlocked.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/SoftLocks"}}}},"401":{"description":"Missing or invalid access token (`unauthenticated`).","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorEnvelope"}}}},"403":{"description":"No organisation in the token (`no_organisation_context`), or not permitted (`forbidden`).","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorEnvelope"}}}},"404":{"description":"Not found, or not visible to the caller.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorEnvelope"}}}},"409":{"description":"`signed_off` (a change after sign-off is a review), `not_locked`, `already_unlocked`, `process_ended` or `process_suspended`, or `consequences_changed` (look again).","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorEnvelope"}}}},"422":{"description":"Invalid body, `reason_needed`, `too_long` or `consequences_not_seen`.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorEnvelope"}}}}}}},"/organisations/current/people/{personId}/processes/{handle}/checks/{flagId}/still-holds":{"post":{"tags":["soft-locks"],"summary":"A person says a thing flagged by an unlock still holds: the flag cleared, once, after what flagged it is locked again; `update` on the person and on its place; audited","security":[{"bearerAuth":[]}],"parameters":[{"schema":{"type":"string","format":"uuid"},"required":true,"name":"personId","in":"path"},{"schema":{"type":"string","format":"uuid"},"required":true,"name":"handle","in":"path"},{"schema":{"type":"string","format":"uuid"},"required":true,"name":"flagId","in":"path"}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/StillHolds"}}}},"responses":{"201":{"description":"Checked.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/SoftLocks"}}}},"401":{"description":"Missing or invalid access token (`unauthenticated`).","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorEnvelope"}}}},"403":{"description":"No organisation in the token (`no_organisation_context`), or not permitted (`forbidden`).","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorEnvelope"}}}},"404":{"description":"Not found, or not visible to the caller.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorEnvelope"}}}},"409":{"description":"`already_checked`, `still_unlocked`, `process_ended` or `process_suspended`.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorEnvelope"}}}},"422":{"description":"Invalid request.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorEnvelope"}}}}}}},"/organisations/current/people/{personId}/processes/{handle}/job-suggestions":{"get":{"tags":["job-suggestions"],"summary":"The jobs Point AI suggested for a process’s sealed answers: each with its words, its kind, what it rests on in words, and whether it is open, accepted or not needed; as reading the process is decided, logged","security":[{"bearerAuth":[]}],"parameters":[{"schema":{"type":"string","format":"uuid"},"required":true,"name":"personId","in":"path"},{"schema":{"type":"string","format":"uuid"},"required":true,"name":"handle","in":"path"}],"responses":{"200":{"description":"The suggestions.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/JobSuggestions"}}}},"401":{"description":"Missing or invalid access token (`unauthenticated`).","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorEnvelope"}}}},"403":{"description":"No organisation in the token (`no_organisation_context`), or not permitted (`forbidden`).","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorEnvelope"}}}},"404":{"description":"Not found, or not visible to the caller.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorEnvelope"}}}},"409":{"description":"`not_sat_yet`: the answers are not sealed yet.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorEnvelope"}}}},"422":{"description":"Invalid request.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorEnvelope"}}}}}},"post":{"tags":["job-suggestions"],"summary":"Asks the model, through the translator, for the jobs the sealed answers raise; each checked (it must rest on a key it was given), the reply retried once, else none; each kept offered as a job, never one already there; nothing without a model. `update` on the person and on its place; audited by keys, never the words","security":[{"bearerAuth":[]}],"parameters":[{"schema":{"type":"string","format":"uuid"},"required":true,"name":"personId","in":"path"},{"schema":{"type":"string","format":"uuid"},"required":true,"name":"handle","in":"path"}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/JobSuggestionsAsked"}}}},"responses":{"201":{"description":"Asked.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/JobSuggestionsMade"}}}},"401":{"description":"Missing or invalid access token (`unauthenticated`).","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorEnvelope"}}}},"403":{"description":"No organisation in the token (`no_organisation_context`), or not permitted (`forbidden`).","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorEnvelope"}}}},"404":{"description":"Not found, or not visible to the caller.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorEnvelope"}}}},"409":{"description":"`not_sat_yet`, `answers_changed`, `process_ended` or `process_suspended`.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorEnvelope"}}}},"422":{"description":"Invalid request.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorEnvelope"}}}}}}},"/organisations/current/people/{personId}/processes/{handle}/job-suggestions/{offerId}/accept":{"post":{"tags":["job-suggestions"],"summary":"Accepts a suggested job: the offer taken, the job raised and made the accepter’s; once; `update` on the person and on its place; audited","security":[{"bearerAuth":[]}],"parameters":[{"schema":{"type":"string","format":"uuid"},"required":true,"name":"personId","in":"path"},{"schema":{"type":"string","format":"uuid"},"required":true,"name":"handle","in":"path"},{"schema":{"type":"string","format":"uuid"},"required":true,"name":"offerId","in":"path"}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/JobSuggestionsAsked"}}}},"responses":{"201":{"description":"Accepted.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/JobSuggestionAccepted"}}}},"401":{"description":"Missing or invalid access token (`unauthenticated`).","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorEnvelope"}}}},"403":{"description":"No organisation in the token (`no_organisation_context`), or not permitted (`forbidden`).","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorEnvelope"}}}},"404":{"description":"Not found, or not visible to the caller.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorEnvelope"}}}},"409":{"description":"`already_decided`, `emptied`, `process_ended` or `process_suspended`.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorEnvelope"}}}},"422":{"description":"Invalid request.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorEnvelope"}}}}}}},"/organisations/current/people/{personId}/processes/{handle}/job-suggestions/{offerId}/decline":{"post":{"tags":["job-suggestions"],"summary":"Not needed: a suggested job declined, with why where one is given; once; `update` on the person and on its place; audited, never the words","security":[{"bearerAuth":[]}],"parameters":[{"schema":{"type":"string","format":"uuid"},"required":true,"name":"personId","in":"path"},{"schema":{"type":"string","format":"uuid"},"required":true,"name":"handle","in":"path"},{"schema":{"type":"string","format":"uuid"},"required":true,"name":"offerId","in":"path"}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/JobSuggestionDeclined"}}}},"responses":{"201":{"description":"Declined.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/JobSuggestions"}}}},"401":{"description":"Missing or invalid access token (`unauthenticated`).","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorEnvelope"}}}},"403":{"description":"No organisation in the token (`no_organisation_context`), or not permitted (`forbidden`).","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorEnvelope"}}}},"404":{"description":"Not found, or not visible to the caller.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorEnvelope"}}}},"409":{"description":"`already_decided`, `process_ended` or `process_suspended`.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorEnvelope"}}}},"422":{"description":"Invalid body or `too_long`.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorEnvelope"}}}}}}},"/organisations/current/people/{personId}/processes/{handle}/provision":{"get":{"tags":["provision"],"summary":"What the place provides the person a process is about: each thing held and where it is known from, or none recorded, with what the process ruled on it; as reading the process is decided, logged","security":[{"bearerAuth":[]}],"parameters":[{"schema":{"type":"string","format":"uuid"},"required":true,"name":"personId","in":"path"},{"schema":{"type":"string","format":"uuid"},"required":true,"name":"handle","in":"path"}],"responses":{"200":{"description":"What is provided.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Provision"}}}},"401":{"description":"Missing or invalid access token (`unauthenticated`).","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorEnvelope"}}}},"403":{"description":"No organisation in the token (`no_organisation_context`), or not permitted (`forbidden`).","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorEnvelope"}}}},"404":{"description":"Not found, or not visible to the caller.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorEnvelope"}}}},"409":{"description":"`not_sat_yet`: the answers are not sealed yet; or `nothing_published`.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorEnvelope"}}}},"422":{"description":"Invalid request.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorEnvelope"}}}}}}},"/organisations/current/people/{personId}/processes/{handle}/provision/confirm":{"post":{"tags":["provision"],"summary":"Still true, changed or not established, for the process, on one thing held, through the existing confirmation; the question it answers ruled with it. `update` on the person and on its place; audited","security":[{"bearerAuth":[]}],"parameters":[{"schema":{"type":"string","format":"uuid"},"required":true,"name":"personId","in":"path"},{"schema":{"type":"string","format":"uuid"},"required":true,"name":"handle","in":"path"}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ProvisionConfirm"}}}},"responses":{"201":{"description":"Ruled.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Provision"}}}},"401":{"description":"Missing or invalid access token (`unauthenticated`).","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorEnvelope"}}}},"403":{"description":"No organisation in the token (`no_organisation_context`), or not permitted (`forbidden`).","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorEnvelope"}}}},"404":{"description":"Not found, or not visible to the caller.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorEnvelope"}}}},"409":{"description":"`no_plan`, `step_locked` (unlock the step first, with a reason), `process_ended` or `process_suspended`.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorEnvelope"}}}},"422":{"description":"Invalid body, `unknown_item`, `unknown_verdict`, `not_established_unseen`, `changed_needs_words` or `only_when_changed`.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorEnvelope"}}}}}}},"/organisations/current/people/{personId}/processes/{handle}/provision/record":{"post":{"tags":["provision"],"summary":"Record it: for one with none recorded, the answer to the question about it offered to the place, for whoever keeps its records to take. `update` on the person and on its place; audited","security":[{"bearerAuth":[]}],"parameters":[{"schema":{"type":"string","format":"uuid"},"required":true,"name":"personId","in":"path"},{"schema":{"type":"string","format":"uuid"},"required":true,"name":"handle","in":"path"}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ProvisionRecord"}}}},"responses":{"201":{"description":"Offered.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Provision"}}}},"401":{"description":"Missing or invalid access token (`unauthenticated`).","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorEnvelope"}}}},"403":{"description":"No organisation in the token (`no_organisation_context`), or not permitted (`forbidden`).","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorEnvelope"}}}},"404":{"description":"Not found, or not visible to the caller.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorEnvelope"}}}},"409":{"description":"`no_plan`, `step_locked` (unlock the step first, with a reason), `offer_held`, `offer_offered`, `process_ended` or `process_suspended`.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorEnvelope"}}}},"422":{"description":"Invalid body, `unknown_offer`, `recorded_elsewhere`, `choose_an_answer` or `unknown_fact_basis`.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorEnvelope"}}}}}}},"/organisations/current/people/{personId}/processes/{handle}/provision/leave":{"post":{"tags":["provision"],"summary":"Left as none, for the process: one with none recorded, ruled not established through the existing confirmation. `update` on the person and on its place; audited","security":[{"bearerAuth":[]}],"parameters":[{"schema":{"type":"string","format":"uuid"},"required":true,"name":"personId","in":"path"},{"schema":{"type":"string","format":"uuid"},"required":true,"name":"handle","in":"path"}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ProvisionLeave"}}}},"responses":{"201":{"description":"Left as none.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Provision"}}}},"401":{"description":"Missing or invalid access token (`unauthenticated`).","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorEnvelope"}}}},"403":{"description":"No organisation in the token (`no_organisation_context`), or not permitted (`forbidden`).","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorEnvelope"}}}},"404":{"description":"Not found, or not visible to the caller.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorEnvelope"}}}},"409":{"description":"`no_plan`, `step_locked` (unlock the step first, with a reason), `offer_held`, `process_ended` or `process_suspended`.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorEnvelope"}}}},"422":{"description":"Invalid body or `unknown_offer`.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorEnvelope"}}}}}}},"/organisations/current/people/{personId}/processes/{handle}/assignment":{"get":{"tags":["assigned"],"summary":"Whose work a process is: who it is assigned to, its assessor, who follows it, and who it may be reassigned to; as reading the process is decided, logged","security":[{"bearerAuth":[]}],"parameters":[{"schema":{"type":"string","format":"uuid"},"required":true,"name":"personId","in":"path"},{"schema":{"type":"string","format":"uuid"},"required":true,"name":"handle","in":"path"}],"responses":{"200":{"description":"Whose work it is.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Assignment"}}}},"401":{"description":"Missing or invalid access token (`unauthenticated`).","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorEnvelope"}}}},"403":{"description":"No organisation in the token (`no_organisation_context`), or not permitted (`forbidden`).","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorEnvelope"}}}},"404":{"description":"Not found, or not visible to the caller.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorEnvelope"}}}},"422":{"description":"Invalid request.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorEnvelope"}}}}}},"post":{"tags":["assigned"],"summary":"Reassigns a process to a member or a team who may edit its place; `update` on the person and on its place; the open assignment closed and the next written; audited","security":[{"bearerAuth":[]}],"parameters":[{"schema":{"type":"string","format":"uuid"},"required":true,"name":"personId","in":"path"},{"schema":{"type":"string","format":"uuid"},"required":true,"name":"handle","in":"path"}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/Reassigned"}}}},"responses":{"201":{"description":"Reassigned.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ReassignMade"}}}},"401":{"description":"Missing or invalid access token (`unauthenticated`).","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorEnvelope"}}}},"403":{"description":"No organisation in the token (`no_organisation_context`), or not permitted (`forbidden`).","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorEnvelope"}}}},"404":{"description":"Not found, or not visible to the caller.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorEnvelope"}}}},"409":{"description":"`process_ended`, `only_member` or `already_assigned`.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorEnvelope"}}}},"422":{"description":"Invalid body, `assignee_needed`, `not_a_member`, `unknown_team` or `cannot_edit`.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorEnvelope"}}}}}}},"/organisations/current/people/{personId}/processes/{handle}/follow":{"post":{"tags":["assigned"],"summary":"The reader follows a process; `read` on the person and on its place; audited","security":[{"bearerAuth":[]}],"parameters":[{"schema":{"type":"string","format":"uuid"},"required":true,"name":"personId","in":"path"},{"schema":{"type":"string","format":"uuid"},"required":true,"name":"handle","in":"path"}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/Follow"}}}},"responses":{"201":{"description":"Following.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/FollowMade"}}}},"401":{"description":"Missing or invalid access token (`unauthenticated`).","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorEnvelope"}}}},"403":{"description":"No organisation in the token (`no_organisation_context`), or not permitted (`forbidden`).","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorEnvelope"}}}},"404":{"description":"Not found, or not visible to the caller.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorEnvelope"}}}},"409":{"description":"`process_ended` or `already_following`.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorEnvelope"}}}},"422":{"description":"Invalid request.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorEnvelope"}}}}}}},"/organisations/current/people/{personId}/processes/{handle}/unfollow":{"post":{"tags":["assigned"],"summary":"The reader no longer follows a process; `read` on the person and on its place; the follow closed; audited","security":[{"bearerAuth":[]}],"parameters":[{"schema":{"type":"string","format":"uuid"},"required":true,"name":"personId","in":"path"},{"schema":{"type":"string","format":"uuid"},"required":true,"name":"handle","in":"path"}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/Follow"}}}},"responses":{"201":{"description":"No longer following.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/FollowMade"}}}},"401":{"description":"Missing or invalid access token (`unauthenticated`).","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorEnvelope"}}}},"403":{"description":"No organisation in the token (`no_organisation_context`), or not permitted (`forbidden`).","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorEnvelope"}}}},"404":{"description":"Not found, or not visible to the caller.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorEnvelope"}}}},"409":{"description":"`not_following`.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorEnvelope"}}}},"422":{"description":"Invalid request.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorEnvelope"}}}}}}},"/organisations/current/home/day":{"get":{"tags":["home"],"summary":"One member’s day: each registered tool’s part, for every resource they reach or the one asked for, and whose work they asked for; each part’s reads logged by its tool","security":[{"bearerAuth":[]}],"parameters":[{"schema":{"type":"string","format":"uuid","description":"Narrow the day to one resource the member may read; every one they reach when not given."},"required":false,"description":"Narrow the day to one resource the member may read; every one they reach when not given.","name":"resource","in":"query"},{"schema":{"type":"string","enum":["mine","teams","all"],"description":"Assigned to the member (`mine`, the default), to them or their teams (`teams`), or all they can see (`all`)."},"required":false,"description":"Assigned to the member (`mine`, the default), to them or their teams (`teams`), or all they can see (`all`).","name":"whose","in":"query"},{"schema":{"type":"string","enum":["your-day","people-page"],"description":"Where the read came from; recorded in the read log. `your-day` when not given."},"required":false,"description":"Where the read came from; recorded in the read log. `your-day` when not given.","name":"funnel","in":"query"}],"responses":{"200":{"description":"The day.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HomeDay"}}}},"401":{"description":"Missing or invalid access token (`unauthenticated`).","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorEnvelope"}}}},"403":{"description":"No organisation in the token (`no_organisation_context`), or not permitted (`forbidden`).","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorEnvelope"}}}},"404":{"description":"Not found, or not visible to the caller.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorEnvelope"}}}},"422":{"description":"Invalid request.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorEnvelope"}}}}}}},"/organisations/current/notices":{"get":{"tags":["notices"],"summary":"What has happened that this member is shown, latest first, new after their seen time; at most 30 a page. Writes nothing","security":[{"bearerAuth":[]}],"parameters":[{"schema":{"type":"string","maxLength":80,"description":"Carry on from here: a list’s `next`."},"required":false,"description":"Carry on from here: a list’s `next`.","name":"before","in":"query"},{"schema":{"type":"integer","minimum":1,"maximum":100,"description":"At most this many; 30 when not given."},"required":false,"description":"At most this many; 30 when not given.","name":"limit","in":"query"}],"responses":{"200":{"description":"The notices.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/NoticeList"}}}},"401":{"description":"Missing or invalid access token (`unauthenticated`).","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorEnvelope"}}}},"403":{"description":"No organisation in the token (`no_organisation_context`), or not permitted (`forbidden`).","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorEnvelope"}}}},"404":{"description":"Not found, or not visible to the caller.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorEnvelope"}}}},"422":{"description":"Invalid request.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorEnvelope"}}}}}}},"/organisations/current/notices/count":{"get":{"tags":["notices"],"summary":"How many of what this member is shown are new, by the list’s own rules. Writes nothing","security":[{"bearerAuth":[]}],"responses":{"200":{"description":"The count.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/NoticeCount"}}}},"401":{"description":"Missing or invalid access token (`unauthenticated`).","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorEnvelope"}}}},"403":{"description":"No organisation in the token (`no_organisation_context`), or not permitted (`forbidden`).","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorEnvelope"}}}},"404":{"description":"Not found, or not visible to the caller.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorEnvelope"}}}},"422":{"description":"Invalid request.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorEnvelope"}}}}}}},"/organisations/current/notices/seen":{"post":{"tags":["notices"],"summary":"Everything this member was shown is seen, up to the newest line the bell showed (`upTo`, never the clock); audited `notices.seen` when it moves their time on","security":[{"bearerAuth":[]}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/NoticesSeenBody"}}}},"responses":{"200":{"description":"Seen.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/NoticesSeen"}}}},"401":{"description":"Missing or invalid access token (`unauthenticated`).","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorEnvelope"}}}},"403":{"description":"No organisation in the token (`no_organisation_context`), or not permitted (`forbidden`).","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorEnvelope"}}}},"404":{"description":"Not found, or not visible to the caller.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorEnvelope"}}}},"422":{"description":"Invalid request.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorEnvelope"}}}}}}},"/organisations/current/messages/waiting":{"get":{"tags":["notices"],"summary":"Per place this member may edit, the messages its Messages page counts as waiting: not yet with anyone, for them, a reply waited for","security":[{"bearerAuth":[]}],"responses":{"200":{"description":"What is waiting.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/MessagesWaiting"}}}},"401":{"description":"Missing or invalid access token (`unauthenticated`).","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorEnvelope"}}}},"403":{"description":"No organisation in the token (`no_organisation_context`), or not permitted (`forbidden`).","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorEnvelope"}}}},"404":{"description":"Not found, or not visible to the caller.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorEnvelope"}}}},"422":{"description":"Invalid request.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorEnvelope"}}}}}}},"/organisations/current/people/{personId}/processes/{handle}/plan/offers":{"post":{"tags":["Offers"],"summary":"Offers an answer under a heading: checked as a commit is, kept as an offer with its source, covering nothing until a person takes it; `offer` on the person and on its place; audited by ids","security":[{"bearerAuth":[]}],"parameters":[{"schema":{"type":"string","format":"uuid"},"required":true,"name":"personId","in":"path"},{"schema":{"type":"string","format":"uuid"},"required":true,"name":"handle","in":"path"}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"allOf":[{"$ref":"#/components/schemas/HeadingAnswer"},{"type":"object","properties":{"source":{"$ref":"#/components/schemas/OfferSource"}},"required":["source"],"additionalProperties":false}]}}}},"responses":{"201":{"description":"Offered.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/OfferMade"}}}},"401":{"description":"Missing or invalid access token (`unauthenticated`).","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorEnvelope"}}}},"403":{"description":"No organisation in the token (`no_organisation_context`), or not permitted (`forbidden`).","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorEnvelope"}}}},"404":{"description":"Not found, or not visible to the caller.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorEnvelope"}}}},"409":{"description":"`bad_status` or `already_recorded`.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorEnvelope"}}}},"422":{"description":"Invalid body, `source_needed`, or any refusal a commit gives.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorEnvelope"}}}}}}},"/organisations/current/resources/{resourceId}/offers/routes":{"post":{"tags":["Offers"],"summary":"Offers a route, drafted for a person to confirm, with its source; `offer` on the place; audited by ids","security":[{"bearerAuth":[]}],"parameters":[{"schema":{"type":"string","format":"uuid"},"required":true,"name":"resourceId","in":"path"}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"type":"object","properties":{"route":{"$ref":"#/components/schemas/Route"},"source":{"$ref":"#/components/schemas/OfferSource"}},"required":["route","source"],"additionalProperties":false}}}},"responses":{"201":{"description":"Offered.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/OfferMade"}}}},"401":{"description":"Missing or invalid access token (`unauthenticated`).","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorEnvelope"}}}},"403":{"description":"No organisation in the token (`no_organisation_context`), or not permitted (`forbidden`).","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorEnvelope"}}}},"404":{"description":"Not found, or not visible to the caller.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorEnvelope"}}}},"422":{"description":"Invalid body, `source_needed`, or the shape a route is refused for.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorEnvelope"}}}}}}},"/organisations/current/resources/{resourceId}/offers/jobs":{"post":{"tags":["Offers"],"summary":"Offers a job raised for a person to accept: who owes it, what, by when, about whom, with its source; `offer` on the place","security":[{"bearerAuth":[]}],"parameters":[{"schema":{"type":"string","format":"uuid"},"required":true,"name":"resourceId","in":"path"}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"type":"object","properties":{"owedBy":{"type":"string","maxLength":200},"what":{"type":"string","maxLength":1000},"dueOn":{"type":"string","maxLength":10},"residencyId":{"type":"string","format":"uuid"},"source":{"$ref":"#/components/schemas/OfferSource"}},"required":["owedBy","what","source"],"additionalProperties":false}}}},"responses":{"201":{"description":"Offered.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/OfferMade"}}}},"401":{"description":"Missing or invalid access token (`unauthenticated`).","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorEnvelope"}}}},"403":{"description":"No organisation in the token (`no_organisation_context`), or not permitted (`forbidden`).","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorEnvelope"}}}},"404":{"description":"Not found, or not visible to the caller.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorEnvelope"}}}},"422":{"description":"Invalid body, `source_needed`, `who_needed` or `words_needed`.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorEnvelope"}}}}}}},"/organisations/current/resources/{resourceId}/offers":{"get":{"tags":["Offers"],"summary":"The offers on a place: of a kind, open or all, each with who or what offered it and its source; `read` on the place","security":[{"bearerAuth":[]}],"parameters":[{"schema":{"type":"string","format":"uuid"},"required":true,"name":"resourceId","in":"path"},{"schema":{"type":"string","enum":["answer","route","job"]},"required":false,"name":"kind","in":"query"},{"schema":{"type":"string","enum":["true","false"]},"required":false,"name":"open","in":"query"}],"responses":{"200":{"description":"Its offers.","content":{"application/json":{"schema":{"type":"object","properties":{"offers":{"type":"array","items":{"$ref":"#/components/schemas/Offer"}}},"required":["offers"]}}}},"401":{"description":"Missing or invalid access token (`unauthenticated`).","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorEnvelope"}}}},"403":{"description":"No organisation in the token (`no_organisation_context`), or not permitted (`forbidden`).","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorEnvelope"}}}},"404":{"description":"Not found, or not visible to the caller.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorEnvelope"}}}},"422":{"description":"Invalid request.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorEnvelope"}}}}}}},"/organisations/current/resources/{resourceId}/offers/{offerId}/take":{"post":{"tags":["Offers"],"summary":"Takes an offer and makes it the taker’s: the answer committed, the route recorded, the job raised; once; `update` on the place","security":[{"bearerAuth":[]}],"parameters":[{"schema":{"type":"string","format":"uuid"},"required":true,"name":"resourceId","in":"path"},{"schema":{"type":"string","format":"uuid"},"required":true,"name":"offerId","in":"path"}],"responses":{"201":{"description":"Taken.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/OfferTaken"}}}},"401":{"description":"Missing or invalid access token (`unauthenticated`).","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorEnvelope"}}}},"403":{"description":"No organisation in the token (`no_organisation_context`), or not permitted (`forbidden`).","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorEnvelope"}}}},"404":{"description":"Not found, or not visible to the caller.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorEnvelope"}}}},"409":{"description":"`already_decided`, `emptied`, or what making it is refused for.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorEnvelope"}}}},"422":{"description":"What making it is refused for.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorEnvelope"}}}}}}},"/organisations/current/resources/{resourceId}/offers/{offerId}/decline":{"post":{"tags":["Offers"],"summary":"Declines an offer, with why; once; `update` on the place; audited, never the words","security":[{"bearerAuth":[]}],"parameters":[{"schema":{"type":"string","format":"uuid"},"required":true,"name":"resourceId","in":"path"},{"schema":{"type":"string","format":"uuid"},"required":true,"name":"offerId","in":"path"}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"type":"object","properties":{"why":{"type":"string","maxLength":1000}},"required":["why"],"additionalProperties":false}}}},"responses":{"201":{"description":"Declined.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/OfferMade"}}}},"401":{"description":"Missing or invalid access token (`unauthenticated`).","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorEnvelope"}}}},"403":{"description":"No organisation in the token (`no_organisation_context`), or not permitted (`forbidden`).","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorEnvelope"}}}},"404":{"description":"Not found, or not visible to the caller.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorEnvelope"}}}},"409":{"description":"`already_decided`.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorEnvelope"}}}},"422":{"description":"Invalid body or `words_needed`.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorEnvelope"}}}}}}},"/organisations/current/people/{personId}/processes/{handle}/left":{"get":{"tags":["Assistant"],"summary":"What is left in a process record, read from its rows: each item done, open or waiting, with the rows it rests on; `update` on the person (Point AI reads it with `offer`), logged","security":[{"bearerAuth":[]}],"parameters":[{"schema":{"type":"string","format":"uuid"},"required":true,"name":"personId","in":"path"},{"schema":{"type":"string","format":"uuid"},"required":true,"name":"handle","in":"path"}],"responses":{"200":{"description":"The checklist.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ProcessLeft"}}}},"401":{"description":"Missing or invalid access token (`unauthenticated`).","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorEnvelope"}}}},"403":{"description":"No organisation in the token (`no_organisation_context`), or not permitted (`forbidden`).","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorEnvelope"}}}},"404":{"description":"Not found, or not visible to the caller.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorEnvelope"}}}},"422":{"description":"Invalid request.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorEnvelope"}}}}}}},"/organisations/current/assistant/conversations":{"post":{"tags":["Assistant"],"summary":"One turn of a conversation with Point AI about a subject a tool registered: streamed (the AI SDK UI message stream); Point AI reads and offers as the person, and nothing else; `read` on the organisation, then the subject’s own rule","security":[{"bearerAuth":[]}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/AssistantConversation"}}}},"responses":{"200":{"description":"The reply, streamed as server-sent events.","content":{"text/event-stream":{"schema":{"type":"string"}}}},"401":{"description":"Missing or invalid access token (`unauthenticated`).","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorEnvelope"}}}},"403":{"description":"No organisation in the token (`no_organisation_context`), or not permitted (`forbidden`).","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorEnvelope"}}}},"404":{"description":"Not found, or not visible to the caller.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorEnvelope"}}}},"422":{"description":"`invalid_messages`: the conversation could not be read.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorEnvelope"}}}},"501":{"description":"`assistant_not_configured`: no model is set up here.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorEnvelope"}}}}}}},"/organisations/current/assistant/tools":{"get":{"tags":["Assistant"],"summary":"What Point AI may call, as tools with typed inputs: the reads, and the offers; nothing that commits. No model and no prompt","security":[{"bearerAuth":[]}],"responses":{"200":{"description":"The tools.","content":{"application/json":{"schema":{"type":"object","properties":{"tools":{"type":"array","items":{"$ref":"#/components/schemas/AssistantTool"}}},"required":["tools"]}}}},"401":{"description":"Missing or invalid access token (`unauthenticated`).","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorEnvelope"}}}},"403":{"description":"No organisation in the token (`no_organisation_context`), or not permitted (`forbidden`).","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorEnvelope"}}}},"404":{"description":"Not found, or not visible to the caller.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorEnvelope"}}}},"422":{"description":"Invalid request.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorEnvelope"}}}}}}},"/organisations/current/resources/{resourceId}/wide-plan":{"get":{"tags":["documents"],"summary":"The resource-wide plan: each way out and who relies on it, what the plans bind, the undertakings and the gaps; `full` names everyone, `authority` only those who consented to share, by place, never a name; `update`, logged","security":[{"bearerAuth":[]}],"parameters":[{"schema":{"type":"string","format":"uuid"},"required":true,"name":"resourceId","in":"path"},{"schema":{"type":"string","enum":["full","authority"]},"required":false,"name":"version","in":"query"}],"responses":{"200":{"description":"The plan.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/WidePlan"}}}},"401":{"description":"Missing or invalid access token (`unauthenticated`).","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorEnvelope"}}}},"403":{"description":"No organisation in the token (`no_organisation_context`), or not permitted (`forbidden`).","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorEnvelope"}}}},"404":{"description":"Not found, or not visible to the caller.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorEnvelope"}}}},"422":{"description":"Invalid request.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorEnvelope"}}}}}}},"/organisations/current/people/{personId}/processes/{handle}/frs-information":{"get":{"tags":["documents"],"summary":"The authority’s information for one subject: only with their open consent to share, and never a name; else why not; `update` on the person and on its place, logged","security":[{"bearerAuth":[]}],"parameters":[{"schema":{"type":"string","format":"uuid"},"required":true,"name":"personId","in":"path"},{"schema":{"type":"string","format":"uuid"},"required":true,"name":"handle","in":"path"}],"responses":{"200":{"description":"The information, or why it is not shared.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/AuthorityInformation"}}}},"401":{"description":"Missing or invalid access token (`unauthenticated`).","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorEnvelope"}}}},"403":{"description":"No organisation in the token (`no_organisation_context`), or not permitted (`forbidden`).","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorEnvelope"}}}},"404":{"description":"Not found, or not visible to the caller.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorEnvelope"}}}},"409":{"description":"`not_sat_yet`.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorEnvelope"}}}},"422":{"description":"Invalid request.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorEnvelope"}}}}}}},"/organisations/current/resources/{resourceId}/designations":{"get":{"tags":["designations"],"summary":"Its open designations with their cautions, the ended handles, what is asked of it, and who may record; `read` on it","security":[{"bearerAuth":[]}],"parameters":[{"schema":{"type":"string","format":"uuid"},"required":true,"name":"resourceId","in":"path"}],"responses":{"200":{"description":"Its designations.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Designations"}}}},"401":{"description":"Missing or invalid access token (`unauthenticated`).","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorEnvelope"}}}},"403":{"description":"No organisation in the token (`no_organisation_context`), or not permitted (`forbidden`).","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorEnvelope"}}}},"404":{"description":"Not found, or not visible to the caller.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorEnvelope"}}}},"422":{"description":"`cannot_hold_designations`.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorEnvelope"}}}}}},"post":{"tags":["designations"],"summary":"Record a designation under a new handle, against its published version; `update` on it","security":[{"bearerAuth":[]}],"parameters":[{"schema":{"type":"string","format":"uuid"},"required":true,"name":"resourceId","in":"path"}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/Designation"}}}},"responses":{"201":{"description":"The designation’s first version.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/RecordedDesignation"}}}},"401":{"description":"Missing or invalid access token (`unauthenticated`).","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorEnvelope"}}}},"403":{"description":"No organisation in the token (`no_organisation_context`), or not permitted (`forbidden`).","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorEnvelope"}}}},"404":{"description":"Not found, or not visible to the caller.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorEnvelope"}}}},"409":{"description":"`nothing_published`, or `primary_taken` (with `details.fields`).","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorEnvelope"}}}},"422":{"description":"Invalid body, `cannot_hold_designations`, `unknown_kind`, `invalid_role`, `label_required`, `invalid_label`, `description_required`, `invalid_description`, `invalid_position`, `position_not_allowed`, `unknown_exit`, `invalid_serves`, `invalid_designated_by`, `invalid_designated_on`, `invalid_reference`, `invalid_signed`, `roll_call_not_allowed`, `unknown_post`, `invalid_roll_call_method` or `invalid_date`, each with `details.fields`.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorEnvelope"}}}}}}},"/organisations/current/resources/{resourceId}/designations/{handle}/history":{"get":{"tags":["designations"],"summary":"Every version under one handle, newest first; an ended handle still answers; `read` on the resource","security":[{"bearerAuth":[]}],"parameters":[{"schema":{"type":"string","format":"uuid"},"required":true,"name":"resourceId","in":"path"},{"schema":{"type":"string","format":"uuid","description":"The designation’s permanent handle: the same on every version."},"required":true,"description":"The designation’s permanent handle: the same on every version.","name":"handle","in":"path"}],"responses":{"200":{"description":"Its versions.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/DesignationHistory"}}}},"401":{"description":"Missing or invalid access token (`unauthenticated`).","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorEnvelope"}}}},"403":{"description":"No organisation in the token (`no_organisation_context`), or not permitted (`forbidden`).","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorEnvelope"}}}},"404":{"description":"Not found, or not visible to the caller.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorEnvelope"}}}},"422":{"description":"`cannot_hold_designations`.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorEnvelope"}}}}}}},"/organisations/current/resources/{resourceId}/designations/{handle}/replace":{"post":{"tags":["designations"],"summary":"A new version under the same handle; the open one closes on its first day; `update` on the resource","security":[{"bearerAuth":[]}],"parameters":[{"schema":{"type":"string","format":"uuid"},"required":true,"name":"resourceId","in":"path"},{"schema":{"type":"string","format":"uuid","description":"The designation’s permanent handle: the same on every version."},"required":true,"description":"The designation’s permanent handle: the same on every version.","name":"handle","in":"path"}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/Designation"}}}},"responses":{"201":{"description":"The new version, and the one it closed.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/RecordedDesignation"}}}},"401":{"description":"Missing or invalid access token (`unauthenticated`).","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorEnvelope"}}}},"403":{"description":"No organisation in the token (`no_organisation_context`), or not permitted (`forbidden`).","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorEnvelope"}}}},"404":{"description":"Not found, or not visible to the caller.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorEnvelope"}}}},"409":{"description":"`nothing_published`, `already_ended`, or `primary_taken` (with `details.fields`).","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorEnvelope"}}}},"422":{"description":"Invalid body, `cannot_hold_designations`, `unknown_kind`, `invalid_role`, `label_required`, `invalid_label`, `description_required`, `invalid_description`, `invalid_position`, `position_not_allowed`, `unknown_exit`, `invalid_serves`, `invalid_designated_by`, `invalid_designated_on`, `invalid_reference`, `invalid_signed`, `roll_call_not_allowed`, `unknown_post`, `invalid_roll_call_method` or `invalid_date`, each with `details.fields`, `kind_family_changed` or `starts_before_current`.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorEnvelope"}}}}}}},"/organisations/current/resources/{resourceId}/designations/{handle}/end":{"post":{"tags":["designations"],"summary":"It ended: its open version closes with nothing after it, once; `update` on the resource","security":[{"bearerAuth":[]}],"parameters":[{"schema":{"type":"string","format":"uuid"},"required":true,"name":"resourceId","in":"path"},{"schema":{"type":"string","format":"uuid","description":"The designation’s permanent handle: the same on every version."},"required":true,"description":"The designation’s permanent handle: the same on every version.","name":"handle","in":"path"}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/EndDesignation"}}}},"responses":{"200":{"description":"The version, closed.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/DesignationVersion"}}}},"401":{"description":"Missing or invalid access token (`unauthenticated`).","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorEnvelope"}}}},"403":{"description":"No organisation in the token (`no_organisation_context`), or not permitted (`forbidden`).","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorEnvelope"}}}},"404":{"description":"Not found, or not visible to the caller.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorEnvelope"}}}},"409":{"description":"`already_ended`.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorEnvelope"}}}},"422":{"description":"Invalid body, `cannot_hold_designations` or `invalid_date` (with `details.fields`).","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorEnvelope"}}}}}}},"/organisations/current/resources/{resourceId}/public-page":{"get":{"tags":["public-page"],"summary":"Its public page: what the records draft now, and the live version beside it with each line labelled; `read` on it","security":[{"bearerAuth":[]}],"parameters":[{"schema":{"type":"string","format":"uuid"},"required":true,"name":"resourceId","in":"path"}],"responses":{"200":{"description":"The draft, the live version, its reference and whether the caller may publish.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/PublicPage"}}}},"401":{"description":"Missing or invalid access token (`unauthenticated`).","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorEnvelope"}}}},"403":{"description":"No organisation in the token (`no_organisation_context`), or not permitted (`forbidden`).","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorEnvelope"}}}},"404":{"description":"Not found, or not visible to the caller.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorEnvelope"}}}},"422":{"description":"`cannot_hold_a_page`.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorEnvelope"}}}}}},"post":{"tags":["public-page"],"summary":"Publish the page whole: a new version, the old kept; the first time it mints the reference; `update` on it; audited","security":[{"bearerAuth":[]}],"parameters":[{"schema":{"type":"string","format":"uuid"},"required":true,"name":"resourceId","in":"path"}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/PublicPagePublish"}}}},"responses":{"201":{"description":"The new version, and the reference of the public web page.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/PublicPagePublished"}}}},"401":{"description":"Missing or invalid access token (`unauthenticated`).","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorEnvelope"}}}},"403":{"description":"No organisation in the token (`no_organisation_context`), or not permitted (`forbidden`).","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorEnvelope"}}}},"404":{"description":"Not found, or not visible to the caller.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorEnvelope"}}}},"409":{"description":"The next version was taken by a publish a moment ago (`version_conflict`).","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorEnvelope"}}}},"422":{"description":"Invalid body, `cannot_hold_a_page`, `strategy_needed`, `what_to_do_needed`, `too_many_lines`, `line_too_long`, `invalid_name`, `invalid_address` or `invalid_page`, each with `details.fields`.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorEnvelope"}}}}}}},"/organisations/current/resources/{resourceId}/public-page/versions":{"get":{"tags":["public-page"],"summary":"Every published version, newest first, who published each and when; `read` on the resource","security":[{"bearerAuth":[]}],"parameters":[{"schema":{"type":"string","format":"uuid"},"required":true,"name":"resourceId","in":"path"}],"responses":{"200":{"description":"Its versions.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/PublicPageVersions"}}}},"401":{"description":"Missing or invalid access token (`unauthenticated`).","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorEnvelope"}}}},"403":{"description":"No organisation in the token (`no_organisation_context`), or not permitted (`forbidden`).","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorEnvelope"}}}},"404":{"description":"Not found, or not visible to the caller.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorEnvelope"}}}},"422":{"description":"`cannot_hold_a_page`.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorEnvelope"}}}}}}},"/organisations/current/resources/{resourceId}/public-page/versions/{version}":{"get":{"tags":["public-page"],"summary":"One published version, its page exactly as it was published; `read` on the resource","security":[{"bearerAuth":[]}],"parameters":[{"schema":{"type":"string","format":"uuid"},"required":true,"name":"resourceId","in":"path"},{"schema":{"type":"integer","minimum":1,"maximum":1000000,"description":"The version number, from 1."},"required":true,"description":"The version number, from 1.","name":"version","in":"path"}],"responses":{"200":{"description":"The version and its page.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/PublicPageVersionOpened"}}}},"401":{"description":"Missing or invalid access token (`unauthenticated`).","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorEnvelope"}}}},"403":{"description":"No organisation in the token (`no_organisation_context`), or not permitted (`forbidden`).","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorEnvelope"}}}},"404":{"description":"Not found, or not visible to the caller.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorEnvelope"}}}},"422":{"description":"`cannot_hold_a_page`.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorEnvelope"}}}}}}},"/organisations/current/resources/{resourceId}/public-page/code":{"get":{"tags":["public-page"],"summary":"Its open code: the link it is the tail of, who made it and when, and whether the caller may make a new one; `read` on the resource","security":[{"bearerAuth":[]}],"parameters":[{"schema":{"type":"string","format":"uuid"},"required":true,"name":"resourceId","in":"path"}],"responses":{"200":{"description":"Its code, or none yet.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/PageCodeHere"}}}},"401":{"description":"Missing or invalid access token (`unauthenticated`).","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorEnvelope"}}}},"403":{"description":"No organisation in the token (`no_organisation_context`), or not permitted (`forbidden`).","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorEnvelope"}}}},"404":{"description":"Not found, or not visible to the caller.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorEnvelope"}}}},"422":{"description":"`cannot_hold_a_page`.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorEnvelope"}}}}}},"post":{"tags":["public-page"],"summary":"Make a new code: the open one is cancelled at once and another is made, in one transaction; `update` on the resource; audited","security":[{"bearerAuth":[]}],"parameters":[{"schema":{"type":"string","format":"uuid"},"required":true,"name":"resourceId","in":"path"}],"responses":{"201":{"description":"The new code.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/PageCode"}}}},"401":{"description":"Missing or invalid access token (`unauthenticated`).","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorEnvelope"}}}},"403":{"description":"No organisation in the token (`no_organisation_context`), or not permitted (`forbidden`).","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorEnvelope"}}}},"404":{"description":"Not found, or not visible to the caller.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorEnvelope"}}}},"409":{"description":"`nothing_published`: its code is made when its page is first published.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorEnvelope"}}}},"422":{"description":"`cannot_hold_a_page`.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorEnvelope"}}}}}}},"/organisations/current/people/{personId}/residencies/{residencyId}/link":{"get":{"tags":["link"],"summary":"Where its Point Personal link stands: linked, suspended, waiting or none, with how it was proved, and the address on record; `read` on the person","security":[{"bearerAuth":[]}],"parameters":[{"schema":{"type":"string","format":"uuid"},"required":true,"name":"personId","in":"path"},{"schema":{"type":"string","format":"uuid"},"required":true,"name":"residencyId","in":"path"}],"responses":{"200":{"description":"The card.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/LinkCard"}}}},"401":{"description":"Missing or invalid access token (`unauthenticated`).","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorEnvelope"}}}},"403":{"description":"No organisation in the token (`no_organisation_context`), or not permitted (`forbidden`).","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorEnvelope"}}}},"404":{"description":"Not found, or not visible to the caller.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorEnvelope"}}}},"422":{"description":"Invalid request.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorEnvelope"}}}},"503":{"description":"`people_unavailable`: the key personal data is sealed with is not set (SETUP §7i).","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorEnvelope"}}}}}}},"/organisations/current/people/{personId}/residencies/{residencyId}/link/codes":{"post":{"tags":["link"],"summary":"Make a one-time code for it, shown, emailed to the address on record, or printed; shown once; `update` on the person; audited","security":[{"bearerAuth":[]}],"parameters":[{"schema":{"type":"string","format":"uuid"},"required":true,"name":"personId","in":"path"},{"schema":{"type":"string","format":"uuid"},"required":true,"name":"residencyId","in":"path"}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/MakeLinkCode"}}}},"responses":{"201":{"description":"The code, once (not for the emailed door: it went to the address on record).","content":{"application/json":{"schema":{"$ref":"#/components/schemas/LinkCodeMade"}}}},"401":{"description":"Missing or invalid access token (`unauthenticated`).","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorEnvelope"}}}},"403":{"description":"No organisation in the token (`no_organisation_context`), or not permitted (`forbidden`).","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorEnvelope"}}}},"404":{"description":"Not found, or not visible to the caller.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorEnvelope"}}}},"409":{"description":"`already_linked`, `residency_ended`, `too_many_codes`, `tombstoned` or `email_not_sent`.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorEnvelope"}}}},"422":{"description":"Invalid body, `unknown_door`, `unknown_purpose` or `no_email_on_record`.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorEnvelope"}}}},"503":{"description":"`people_unavailable`: the key personal data is sealed with is not set (SETUP §7i).","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorEnvelope"}}}}}}},"/organisations/current/people/{personId}/residencies/{residencyId}/link/suspend":{"post":{"tags":["link"],"summary":"Suspend its link, with a reason kept sealed; the person’s app is told; `update` on the person; audited","security":[{"bearerAuth":[]}],"parameters":[{"schema":{"type":"string","format":"uuid"},"required":true,"name":"personId","in":"path"},{"schema":{"type":"string","format":"uuid"},"required":true,"name":"residencyId","in":"path"}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/SuspendLink"}}}},"responses":{"200":{"description":"The suspension.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/LinkSuspended"}}}},"401":{"description":"Missing or invalid access token (`unauthenticated`).","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorEnvelope"}}}},"403":{"description":"No organisation in the token (`no_organisation_context`), or not permitted (`forbidden`).","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorEnvelope"}}}},"404":{"description":"Not found, or not visible to the caller.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorEnvelope"}}}},"409":{"description":"`not_linked`, `already_suspended` or `tombstoned`.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorEnvelope"}}}},"422":{"description":"Invalid body, `reason_needed` or `reason_too_long`.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorEnvelope"}}}},"503":{"description":"`people_unavailable`: the key personal data is sealed with is not set (SETUP §7i).","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorEnvelope"}}}}}}},"/organisations/current/resources/{resourceId}/link-requests":{"get":{"tags":["link"],"summary":"The link requests waiting at a place, their words opened, each with the residencies it looks like; `update` on the place; a read","security":[{"bearerAuth":[]}],"parameters":[{"schema":{"type":"string","format":"uuid"},"required":true,"name":"resourceId","in":"path"}],"responses":{"200":{"description":"The waiting requests.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/LinkRequests"}}}},"401":{"description":"Missing or invalid access token (`unauthenticated`).","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorEnvelope"}}}},"403":{"description":"No organisation in the token (`no_organisation_context`), or not permitted (`forbidden`).","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorEnvelope"}}}},"404":{"description":"Not found, or not visible to the caller.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorEnvelope"}}}},"422":{"description":"`cannot_hold_requests`.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorEnvelope"}}}},"503":{"description":"`people_unavailable`: the key personal data is sealed with is not set (SETUP §7i).","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorEnvelope"}}}}}}},"/organisations/current/resources/{resourceId}/link-requests/{requestId}/accept":{"post":{"tags":["link"],"summary":"This is them: match a request to a residency of the place, with a note; the link opens, proof the person, door matched; `update`; audited","security":[{"bearerAuth":[]}],"parameters":[{"schema":{"type":"string","format":"uuid"},"required":true,"name":"resourceId","in":"path"},{"schema":{"type":"string","format":"uuid"},"required":true,"name":"requestId","in":"path"}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/AcceptLinkRequest"}}}},"responses":{"200":{"description":"The link made.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/LinkRequestAccepted"}}}},"401":{"description":"Missing or invalid access token (`unauthenticated`).","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorEnvelope"}}}},"403":{"description":"No organisation in the token (`no_organisation_context`), or not permitted (`forbidden`).","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorEnvelope"}}}},"404":{"description":"Not found, or not visible to the caller.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorEnvelope"}}}},"409":{"description":"`already_decided`, `not_confirmed_recently`, `residency_ended`, `already_linked` or `tombstoned`.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorEnvelope"}}}},"422":{"description":"Invalid body, `note_needed`, `note_too_long` or `unknown_residency`.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorEnvelope"}}}},"503":{"description":"`people_unavailable`: the key personal data is sealed with is not set (SETUP §7i).","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorEnvelope"}}}}}}},"/organisations/current/resources/{resourceId}/link-requests/{requestId}/refuse":{"post":{"tags":["link"],"summary":"Not them: close a request; the person is never told why; `update` on the place; audited","security":[{"bearerAuth":[]}],"parameters":[{"schema":{"type":"string","format":"uuid"},"required":true,"name":"resourceId","in":"path"},{"schema":{"type":"string","format":"uuid"},"required":true,"name":"requestId","in":"path"}],"responses":{"200":{"description":"The request, refused.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/LinkRequestRefused"}}}},"401":{"description":"Missing or invalid access token (`unauthenticated`).","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorEnvelope"}}}},"403":{"description":"No organisation in the token (`no_organisation_context`), or not permitted (`forbidden`).","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorEnvelope"}}}},"404":{"description":"Not found, or not visible to the caller.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorEnvelope"}}}},"409":{"description":"`already_decided`.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorEnvelope"}}}},"422":{"description":"Invalid request.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorEnvelope"}}}},"503":{"description":"`people_unavailable`: the key personal data is sealed with is not set (SETUP §7i).","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorEnvelope"}}}}}}},"/organisations/current/resources/{resourceId}/messages":{"get":{"tags":["link"],"summary":"The messages about someone at a place from someone who says they speak for them, unchecked; `read` on the place, the text for `update`; a read","security":[{"bearerAuth":[]}],"parameters":[{"schema":{"type":"string","format":"uuid"},"required":true,"name":"resourceId","in":"path"},{"schema":{"type":"string","minLength":1,"maxLength":200,"description":"Only the messages whose flat as written matched this space."},"required":false,"description":"Only the messages whose flat as written matched this space.","name":"space","in":"query"},{"schema":{"type":"string","enum":["open","mine","all"],"description":"`open` (not dealt with), `mine` (open, and assigned to the reader or a team they are in) or `all`; `all` when not given (spec 81 §3)."},"required":false,"description":"`open` (not dealt with), `mine` (open, and assigned to the reader or a team they are in) or `all`; `all` when not given (spec 81 §3).","name":"show","in":"query"}],"responses":{"200":{"description":"The messages, newest first.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Messages"}}}},"401":{"description":"Missing or invalid access token (`unauthenticated`).","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorEnvelope"}}}},"403":{"description":"No organisation in the token (`no_organisation_context`), or not permitted (`forbidden`).","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorEnvelope"}}}},"404":{"description":"Not found, or not visible to the caller.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorEnvelope"}}}},"422":{"description":"`cannot_hold_requests`.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorEnvelope"}}}},"503":{"description":"`people_unavailable`: the key personal data is sealed with is not set (SETUP §7i).","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorEnvelope"}}}}}}},"/organisations/current/resources/{resourceId}/messages/{messageId}/seen":{"post":{"tags":["link"],"summary":"Mark a message seen, once; it changes nothing else; `update` on the place; audited by ids","security":[{"bearerAuth":[]}],"parameters":[{"schema":{"type":"string","format":"uuid"},"required":true,"name":"resourceId","in":"path"},{"schema":{"type":"string","format":"uuid"},"required":true,"name":"messageId","in":"path"}],"responses":{"200":{"description":"Seen.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/MessageSeen"}}}},"401":{"description":"Missing or invalid access token (`unauthenticated`).","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorEnvelope"}}}},"403":{"description":"No organisation in the token (`no_organisation_context`), or not permitted (`forbidden`).","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorEnvelope"}}}},"404":{"description":"Not found, or not visible to the caller.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorEnvelope"}}}},"409":{"description":"`already_seen`.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorEnvelope"}}}},"422":{"description":"Invalid request.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorEnvelope"}}}},"503":{"description":"`people_unavailable`: the key personal data is sealed with is not set (SETUP §7i).","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorEnvelope"}}}}}}},"/organisations/current/resources/{resourceId}/messages/{messageId}/assign":{"post":{"tags":["link"],"summary":"Assign a message to a member or a team who may change the place, or reassign it; `update` on the place; audited by ids","security":[{"bearerAuth":[]}],"parameters":[{"schema":{"type":"string","format":"uuid"},"required":true,"name":"resourceId","in":"path"},{"schema":{"type":"string","format":"uuid"},"required":true,"name":"messageId","in":"path"}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/AssignMessageRequest"}}}},"responses":{"200":{"description":"Assigned.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/MessageActed"}}}},"401":{"description":"Missing or invalid access token (`unauthenticated`).","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorEnvelope"}}}},"403":{"description":"No organisation in the token (`no_organisation_context`), or not permitted (`forbidden`).","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorEnvelope"}}}},"404":{"description":"Not found, or not visible to the caller.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorEnvelope"}}}},"409":{"description":"`already_dealt`, `already_assigned`.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorEnvelope"}}}},"422":{"description":"`not_an_assignee`.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorEnvelope"}}}},"503":{"description":"`people_unavailable`: the key personal data is sealed with is not set (SETUP §7i).","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorEnvelope"}}}}}}},"/organisations/current/resources/{resourceId}/messages/{messageId}/deal":{"post":{"tags":["link"],"summary":"Mark a message Dealt with; `update` on the place; audited by ids","security":[{"bearerAuth":[]}],"parameters":[{"schema":{"type":"string","format":"uuid"},"required":true,"name":"resourceId","in":"path"},{"schema":{"type":"string","format":"uuid"},"required":true,"name":"messageId","in":"path"}],"responses":{"200":{"description":"Dealt with.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/MessageActed"}}}},"401":{"description":"Missing or invalid access token (`unauthenticated`).","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorEnvelope"}}}},"403":{"description":"No organisation in the token (`no_organisation_context`), or not permitted (`forbidden`).","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorEnvelope"}}}},"404":{"description":"Not found, or not visible to the caller.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorEnvelope"}}}},"409":{"description":"`already_dealt`.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorEnvelope"}}}},"422":{"description":"Invalid request.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorEnvelope"}}}},"503":{"description":"`people_unavailable`: the key personal data is sealed with is not set (SETUP §7i).","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorEnvelope"}}}}}}},"/organisations/current/resources/{resourceId}/messages/{messageId}/reopen":{"post":{"tags":["link"],"summary":"Reopen a message that was dealt with; `update` on the place; audited by ids","security":[{"bearerAuth":[]}],"parameters":[{"schema":{"type":"string","format":"uuid"},"required":true,"name":"resourceId","in":"path"},{"schema":{"type":"string","format":"uuid"},"required":true,"name":"messageId","in":"path"}],"responses":{"200":{"description":"Reopened.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/MessageActed"}}}},"401":{"description":"Missing or invalid access token (`unauthenticated`).","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorEnvelope"}}}},"403":{"description":"No organisation in the token (`no_organisation_context`), or not permitted (`forbidden`).","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorEnvelope"}}}},"404":{"description":"Not found, or not visible to the caller.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorEnvelope"}}}},"409":{"description":"`not_dealt`.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorEnvelope"}}}},"422":{"description":"Invalid request.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorEnvelope"}}}},"503":{"description":"`people_unavailable`: the key personal data is sealed with is not set (SETUP §7i).","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorEnvelope"}}}}}}},"/organisations/current/resources/{resourceId}/speak-requests":{"get":{"tags":["link"],"summary":"The requests to speak for someone waiting at a place, their words opened, with the residencies to check them against; `update` on the place; a read","security":[{"bearerAuth":[]}],"parameters":[{"schema":{"type":"string","format":"uuid"},"required":true,"name":"resourceId","in":"path"}],"responses":{"200":{"description":"The waiting requests.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/SpeakRequests"}}}},"401":{"description":"Missing or invalid access token (`unauthenticated`).","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorEnvelope"}}}},"403":{"description":"No organisation in the token (`no_organisation_context`), or not permitted (`forbidden`).","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorEnvelope"}}}},"404":{"description":"Not found, or not visible to the caller.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorEnvelope"}}}},"422":{"description":"`cannot_hold_requests`.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorEnvelope"}}}},"503":{"description":"`people_unavailable`: the key personal data is sealed with is not set (SETUP §7i).","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorEnvelope"}}}}}}},"/organisations/current/resources/{resourceId}/speak-requests/{requestId}/check":{"post":{"tags":["link"],"summary":"Check the footing: record it as a party of the person (their yes: delegated; an LPA or a deputy: legal), and open the link through it; `update`; audited","security":[{"bearerAuth":[]}],"parameters":[{"schema":{"type":"string","format":"uuid"},"required":true,"name":"resourceId","in":"path"},{"schema":{"type":"string","format":"uuid"},"required":true,"name":"requestId","in":"path"}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/CheckSpeakRequest"}}}},"responses":{"200":{"description":"The link made, and the party recorded.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/SpeakRequestChecked"}}}},"401":{"description":"Missing or invalid access token (`unauthenticated`).","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorEnvelope"}}}},"403":{"description":"No organisation in the token (`no_organisation_context`), or not permitted (`forbidden`).","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorEnvelope"}}}},"404":{"description":"Not found, or not visible to the caller.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorEnvelope"}}}},"409":{"description":"`already_decided`, `details_removed`, `residency_ended`, `tombstoned` or `mismatch_unconfirmed` (what she said and whom you chose, in words).","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorEnvelope"}}}},"422":{"description":"Invalid body, `unknown_footing`, `unknown_basis`, `confirmation_needed`, `residency_needed`, `unknown_residency`, `not_the_codes_residency`, `invalid_words` or `invalid_on`.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorEnvelope"}}}},"503":{"description":"`people_unavailable`: the key personal data is sealed with is not set (SETUP §7i).","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorEnvelope"}}}}}}},"/organisations/current/resources/{resourceId}/speak-requests/{requestId}/refuse":{"post":{"tags":["link"],"summary":"Refuse a request to speak for someone, with a reason kept sealed; the other end hears only refused; `update` on the place; audited","security":[{"bearerAuth":[]}],"parameters":[{"schema":{"type":"string","format":"uuid"},"required":true,"name":"resourceId","in":"path"},{"schema":{"type":"string","format":"uuid"},"required":true,"name":"requestId","in":"path"}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/RefuseSpeakRequest"}}}},"responses":{"200":{"description":"The request, refused.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/SpeakRequestRefused"}}}},"401":{"description":"Missing or invalid access token (`unauthenticated`).","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorEnvelope"}}}},"403":{"description":"No organisation in the token (`no_organisation_context`), or not permitted (`forbidden`).","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorEnvelope"}}}},"404":{"description":"Not found, or not visible to the caller.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorEnvelope"}}}},"409":{"description":"`already_decided`.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorEnvelope"}}}},"422":{"description":"Invalid body, `reason_needed` or `reason_too_long`.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorEnvelope"}}}},"503":{"description":"`people_unavailable`: the key personal data is sealed with is not set (SETUP §7i).","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorEnvelope"}}}}}}},"/organisations/current/people/{personId}/residencies/{residencyId}/link/speakers/{speakerId}/suspend":{"post":{"tags":["link"],"summary":"Suspend the link of someone who speaks for them, with a reason kept sealed; their app is told; `update` on the person; audited","security":[{"bearerAuth":[]}],"parameters":[{"schema":{"type":"string","format":"uuid"},"required":true,"name":"personId","in":"path"},{"schema":{"type":"string","format":"uuid"},"required":true,"name":"residencyId","in":"path"},{"schema":{"type":"string","format":"uuid"},"required":true,"name":"speakerId","in":"path"}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/SuspendLink"}}}},"responses":{"200":{"description":"The suspension.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/LinkSuspended"}}}},"401":{"description":"Missing or invalid access token (`unauthenticated`).","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorEnvelope"}}}},"403":{"description":"No organisation in the token (`no_organisation_context`), or not permitted (`forbidden`).","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorEnvelope"}}}},"404":{"description":"Not found, or not visible to the caller.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorEnvelope"}}}},"409":{"description":"`already_suspended` or `tombstoned`.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorEnvelope"}}}},"422":{"description":"Invalid body, `reason_needed` or `reason_too_long`.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorEnvelope"}}}},"503":{"description":"`people_unavailable`: the key personal data is sealed with is not set (SETUP §7i).","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorEnvelope"}}}}}}},"/organisations/current/resources/{resourceId}/flat-codes":{"get":{"tags":["flats"],"summary":"Each space where people live, with the state of its flat code; nothing sealed is opened; `read` on the place","security":[{"bearerAuth":[]}],"parameters":[{"schema":{"type":"string","format":"uuid"},"required":true,"name":"resourceId","in":"path"}],"responses":{"200":{"description":"The spaces and their codes.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/FlatCodes"}}}},"401":{"description":"Missing or invalid access token (`unauthenticated`).","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorEnvelope"}}}},"403":{"description":"No organisation in the token (`no_organisation_context`), or not permitted (`forbidden`).","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorEnvelope"}}}},"404":{"description":"Not found, or not visible to the caller.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorEnvelope"}}}},"422":{"description":"`cannot_hold_flats`.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorEnvelope"}}}},"503":{"description":"`people_unavailable`: the key personal data is sealed with is not set (SETUP §7i).","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorEnvelope"}}}}}},"post":{"tags":["flats"],"summary":"Make the flat codes: one for every space where people live that has none open; `update` on the place; audited","security":[{"bearerAuth":[]}],"parameters":[{"schema":{"type":"string","format":"uuid"},"required":true,"name":"resourceId","in":"path"}],"responses":{"201":{"description":"How many were made, and how many spaces already had one.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/FlatCodesMade"}}}},"401":{"description":"Missing or invalid access token (`unauthenticated`).","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorEnvelope"}}}},"403":{"description":"No organisation in the token (`no_organisation_context`), or not permitted (`forbidden`).","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorEnvelope"}}}},"404":{"description":"Not found, or not visible to the caller.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorEnvelope"}}}},"409":{"description":"`nothing_published`.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorEnvelope"}}}},"422":{"description":"`cannot_hold_flats`.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorEnvelope"}}}},"503":{"description":"`people_unavailable`: the key personal data is sealed with is not set (SETUP §7i).","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorEnvelope"}}}}}}},"/organisations/current/resources/{resourceId}/flat-codes/print":{"get":{"tags":["flats"],"summary":"The open codes for a letter or a sticker, all spaces or one (`?spaceId=`); opening them is a read; `update` on the place","security":[{"bearerAuth":[]}],"parameters":[{"schema":{"type":"string","format":"uuid"},"required":true,"name":"resourceId","in":"path"},{"schema":{"type":"string","minLength":1,"maxLength":200},"required":false,"name":"spaceId","in":"query"}],"responses":{"200":{"description":"What is printed from.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/FlatCodesToPrint"}}}},"401":{"description":"Missing or invalid access token (`unauthenticated`).","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorEnvelope"}}}},"403":{"description":"No organisation in the token (`no_organisation_context`), or not permitted (`forbidden`).","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorEnvelope"}}}},"404":{"description":"Not found, or not visible to the caller.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorEnvelope"}}}},"422":{"description":"`cannot_hold_flats`.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorEnvelope"}}}},"503":{"description":"`people_unavailable`: the key personal data is sealed with is not set (SETUP §7i).","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorEnvelope"}}}}}}},"/organisations/current/resources/{resourceId}/flat-codes/{spaceId}/new":{"post":{"tags":["flats"],"summary":"Make a new code for one space: the old one stops at once; `update` on the place; audited","security":[{"bearerAuth":[]}],"parameters":[{"schema":{"type":"string","format":"uuid"},"required":true,"name":"resourceId","in":"path"},{"schema":{"type":"string","minLength":1,"maxLength":200},"required":true,"name":"spaceId","in":"path"}],"responses":{"201":{"description":"The new code (never shown here: print it).","content":{"application/json":{"schema":{"$ref":"#/components/schemas/FlatCodeMade"}}}},"401":{"description":"Missing or invalid access token (`unauthenticated`).","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorEnvelope"}}}},"403":{"description":"No organisation in the token (`no_organisation_context`), or not permitted (`forbidden`).","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorEnvelope"}}}},"404":{"description":"Not found, or not visible to the caller.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorEnvelope"}}}},"409":{"description":"`nothing_published`.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorEnvelope"}}}},"422":{"description":"`cannot_hold_flats`.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorEnvelope"}}}},"503":{"description":"`people_unavailable`: the key personal data is sealed with is not set (SETUP §7i).","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorEnvelope"}}}}}}},"/organisations/current/resources/{resourceId}/flat-answers":{"get":{"tags":["flats"],"summary":"The answers from flats, waiting first, a neighbour’s words opened; `update` on the place; a read","security":[{"bearerAuth":[]}],"parameters":[{"schema":{"type":"string","format":"uuid"},"required":true,"name":"resourceId","in":"path"}],"responses":{"200":{"description":"The answers.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/FlatAnswers"}}}},"401":{"description":"Missing or invalid access token (`unauthenticated`).","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorEnvelope"}}}},"403":{"description":"No organisation in the token (`no_organisation_context`), or not permitted (`forbidden`).","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorEnvelope"}}}},"404":{"description":"Not found, or not visible to the caller.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorEnvelope"}}}},"422":{"description":"`cannot_hold_flats`.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorEnvelope"}}}},"503":{"description":"`people_unavailable`: the key personal data is sealed with is not set (SETUP §7i).","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorEnvelope"}}}}}}},"/organisations/current/resources/{resourceId}/flat-answers/waiting":{"get":{"tags":["flats"],"summary":"How many answers from flats wait for a member, for the place’s front door; nothing is opened; `read` on the place","security":[{"bearerAuth":[]}],"parameters":[{"schema":{"type":"string","format":"uuid"},"required":true,"name":"resourceId","in":"path"}],"responses":{"200":{"description":"The count.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/FlatAnswersWaiting"}}}},"401":{"description":"Missing or invalid access token (`unauthenticated`).","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorEnvelope"}}}},"403":{"description":"No organisation in the token (`no_organisation_context`), or not permitted (`forbidden`).","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorEnvelope"}}}},"404":{"description":"Not found, or not visible to the caller.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorEnvelope"}}}},"422":{"description":"`cannot_hold_flats`.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorEnvelope"}}}}}}},"/organisations/current/resources/{resourceId}/flat-answers/{answerId}/decide":{"post":{"tags":["flats"],"summary":"Decide an answer, once: recorded, not needed, or (for a neighbour raised) we’ll check on them; `update` on the place; audited","security":[{"bearerAuth":[]}],"parameters":[{"schema":{"type":"string","format":"uuid"},"required":true,"name":"resourceId","in":"path"},{"schema":{"type":"string","format":"uuid"},"required":true,"name":"answerId","in":"path"}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/DecideFlatAnswer"}}}},"responses":{"200":{"description":"The decision.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/FlatAnswerDecided"}}}},"401":{"description":"Missing or invalid access token (`unauthenticated`).","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorEnvelope"}}}},"403":{"description":"No organisation in the token (`no_organisation_context`), or not permitted (`forbidden`).","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorEnvelope"}}}},"404":{"description":"Not found, or not visible to the caller.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorEnvelope"}}}},"409":{"description":"`already_decided`.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorEnvelope"}}}},"422":{"description":"Invalid body, `unknown_decision`, `nothing_to_record` or `nobody_raised`.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorEnvelope"}}}},"503":{"description":"`people_unavailable`: the key personal data is sealed with is not set (SETUP §7i).","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorEnvelope"}}}}}}},"/organisations/current/resources/{resourceId}/stays":{"get":{"tags":["guests"],"summary":"The desk: guests waiting for a member, here now and expected, and where a guest may stay; the read is logged; `read` on the place","security":[{"bearerAuth":[]}],"parameters":[{"schema":{"type":"string","format":"uuid"},"required":true,"name":"resourceId","in":"path"}],"responses":{"200":{"description":"The guests.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/StaysHere"}}}},"401":{"description":"Missing or invalid access token (`unauthenticated`).","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorEnvelope"}}}},"403":{"description":"No organisation in the token (`no_organisation_context`), or not permitted (`forbidden`).","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorEnvelope"}}}},"404":{"description":"Not found, or not visible to the caller.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorEnvelope"}}}},"422":{"description":"`cannot_hold_stays`.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorEnvelope"}}}},"503":{"description":"`people_unavailable`: the key personal data is sealed with is not set (SETUP §7i).","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorEnvelope"}}}}}},"post":{"tags":["guests"],"summary":"Add a guest at the desk: a space, the times, a first name or none; in at once; `create` on the place; audited by ids","security":[{"bearerAuth":[]}],"parameters":[{"schema":{"type":"string","format":"uuid"},"required":true,"name":"resourceId","in":"path"}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/AddGuest"}}}},"responses":{"201":{"description":"The guest, in.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Stay"}}}},"401":{"description":"Missing or invalid access token (`unauthenticated`).","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorEnvelope"}}}},"403":{"description":"No organisation in the token (`no_organisation_context`), or not permitted (`forbidden`).","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorEnvelope"}}}},"404":{"description":"Not found, or not visible to the caller.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorEnvelope"}}}},"409":{"description":"`guests_not_ticked` or `nothing_published`.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorEnvelope"}}}},"422":{"description":"Invalid body, `unknown_space`, `from_needed`, `until_needed`, `times_out_of_order`, `too_long_a_stay`, `stay_over`, `first_name_shape`, `share_needed` or `ends_by_itself_same_day_only`.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorEnvelope"}}}},"503":{"description":"`people_unavailable`: the key personal data is sealed with is not set (SETUP §7i).","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorEnvelope"}}}}}}},"/organisations/current/stays/{stayId}/accept":{"post":{"tags":["guests"],"summary":"Accept a stay sent from Point Personal: any member on duty, once; the guest’s app is told; `create` on its place","security":[{"bearerAuth":[]}],"parameters":[{"schema":{"type":"string","format":"uuid"},"required":true,"name":"stayId","in":"path"}],"requestBody":{"required":false,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/AcceptStay"}}}},"responses":{"200":{"description":"Accepted.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Stay"}}}},"401":{"description":"Missing or invalid access token (`unauthenticated`).","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorEnvelope"}}}},"403":{"description":"No organisation in the token (`no_organisation_context`), or not permitted (`forbidden`).","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorEnvelope"}}}},"404":{"description":"Not found, or not visible to the caller.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorEnvelope"}}}},"409":{"description":"`stay_not_waiting`.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorEnvelope"}}}},"422":{"description":"`ends_by_itself_same_day_only`.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorEnvelope"}}}},"503":{"description":"`people_unavailable`: the key personal data is sealed with is not set (SETUP §7i).","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorEnvelope"}}}}}}},"/organisations/current/stays/decline":{"post":{"tags":["guests"],"summary":"Decline waiting stays, one or several at once, with a reason (sealed, never sent): all or none; each guest’s app is told; `create` on each place","security":[{"bearerAuth":[]}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/DeclineStays"}}}},"responses":{"200":{"description":"Declined.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/StaysDeclined"}}}},"401":{"description":"Missing or invalid access token (`unauthenticated`).","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorEnvelope"}}}},"403":{"description":"No organisation in the token (`no_organisation_context`), or not permitted (`forbidden`).","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorEnvelope"}}}},"404":{"description":"Not found, or not visible to the caller.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorEnvelope"}}}},"409":{"description":"`stay_not_waiting`.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorEnvelope"}}}},"422":{"description":"Invalid body, `reason_needed`, `reason_too_long`, `stays_needed` or `too_many_stays`.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorEnvelope"}}}},"503":{"description":"`people_unavailable`: the key personal data is sealed with is not set (SETUP §7i).","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorEnvelope"}}}}}}},"/organisations/current/stays/{stayId}/end":{"post":{"tags":["guests"],"summary":"End a stay: its risk-critical observation ends with it; a guest’s app is told; `create` on its place","security":[{"bearerAuth":[]}],"parameters":[{"schema":{"type":"string","format":"uuid"},"required":true,"name":"stayId","in":"path"}],"responses":{"200":{"description":"Ended.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Stay"}}}},"401":{"description":"Missing or invalid access token (`unauthenticated`).","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorEnvelope"}}}},"403":{"description":"No organisation in the token (`no_organisation_context`), or not permitted (`forbidden`).","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorEnvelope"}}}},"404":{"description":"Not found, or not visible to the caller.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorEnvelope"}}}},"409":{"description":"`stay_ended`.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorEnvelope"}}}},"422":{"description":"Invalid request.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorEnvelope"}}}},"503":{"description":"`people_unavailable`: the key personal data is sealed with is not set (SETUP §7i).","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorEnvelope"}}}}}}},"/organisations/current/stays/{stayId}/still-here":{"post":{"tags":["guests"],"summary":"Still here (spec 80 §3): a guest past their end time, not booked out, given a new end later than now; a new row naming the member; `create` on its place","security":[{"bearerAuth":[]}],"parameters":[{"schema":{"type":"string","format":"uuid"},"required":true,"name":"stayId","in":"path"}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/StillHere"}}}},"responses":{"200":{"description":"Still here, to the new end.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Stay"}}}},"401":{"description":"Missing or invalid access token (`unauthenticated`).","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorEnvelope"}}}},"403":{"description":"No organisation in the token (`no_organisation_context`), or not permitted (`forbidden`).","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorEnvelope"}}}},"404":{"description":"Not found, or not visible to the caller.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorEnvelope"}}}},"409":{"description":"`stay_not_in`.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorEnvelope"}}}},"422":{"description":"`until_not_later` or `too_long_a_stay`.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorEnvelope"}}}},"503":{"description":"`people_unavailable`: the key personal data is sealed with is not set (SETUP §7i).","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorEnvelope"}}}}}}},"/organisations/current/resources/{resourceId}/whos-here":{"get":{"tags":["guests"],"summary":"Who’s here: occupancy (who lives there, guests here now and expected) and who needs help, with each observation and its actions; the read is logged; `read` on the place","security":[{"bearerAuth":[]}],"parameters":[{"schema":{"type":"string","format":"uuid"},"required":true,"name":"resourceId","in":"path"}],"responses":{"200":{"description":"Who is here.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/WhosHere"}}}},"401":{"description":"Missing or invalid access token (`unauthenticated`).","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorEnvelope"}}}},"403":{"description":"No organisation in the token (`no_organisation_context`), or not permitted (`forbidden`).","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorEnvelope"}}}},"404":{"description":"Not found, or not visible to the caller.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorEnvelope"}}}},"422":{"description":"`cannot_hold_stays`.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorEnvelope"}}}},"503":{"description":"`people_unavailable`: the key personal data is sealed with is not set (SETUP §7i).","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorEnvelope"}}}}}}},"/organisations/current/resources/{resourceId}/room-codes":{"get":{"tags":["guests"],"summary":"Every room the place has published, with the state of its code (spec 74 §3a); nothing sealed is opened; `read` on the place","security":[{"bearerAuth":[]}],"parameters":[{"schema":{"type":"string","format":"uuid"},"required":true,"name":"resourceId","in":"path"}],"responses":{"200":{"description":"The rooms and their codes.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/RoomCodes"}}}},"401":{"description":"Missing or invalid access token (`unauthenticated`).","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorEnvelope"}}}},"403":{"description":"No organisation in the token (`no_organisation_context`), or not permitted (`forbidden`).","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorEnvelope"}}}},"404":{"description":"Not found, or not visible to the caller.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorEnvelope"}}}},"422":{"description":"`cannot_hold_stays`.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorEnvelope"}}}},"503":{"description":"`people_unavailable`: the key personal data is sealed with is not set (SETUP §7i).","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorEnvelope"}}}}}}},"/organisations/current/resources/{resourceId}/room-codes/{spaceId}/new":{"post":{"tags":["guests"],"summary":"Make a room’s code, or a new one: the old one stops at once; `update` on the place; audited by ids","security":[{"bearerAuth":[]}],"parameters":[{"schema":{"type":"string","format":"uuid"},"required":true,"name":"resourceId","in":"path"},{"schema":{"type":"string","minLength":1,"maxLength":200},"required":true,"name":"spaceId","in":"path"}],"responses":{"201":{"description":"The new code (never shown here: print it).","content":{"application/json":{"schema":{"$ref":"#/components/schemas/MadeRoomCode"}}}},"401":{"description":"Missing or invalid access token (`unauthenticated`).","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorEnvelope"}}}},"403":{"description":"No organisation in the token (`no_organisation_context`), or not permitted (`forbidden`).","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorEnvelope"}}}},"404":{"description":"Not found, or not visible to the caller.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorEnvelope"}}}},"409":{"description":"`guests_not_ticked` or `nothing_published`.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorEnvelope"}}}},"422":{"description":"`cannot_hold_stays`.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorEnvelope"}}}},"503":{"description":"`people_unavailable`: the key personal data is sealed with is not set (SETUP §7i).","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorEnvelope"}}}}}}},"/organisations/current/resources/{resourceId}/room-codes/print":{"get":{"tags":["guests"],"summary":"The open room codes to print, every room or one (`?spaceId=`); opening them is a read; `update` on the place","security":[{"bearerAuth":[]}],"parameters":[{"schema":{"type":"string","format":"uuid"},"required":true,"name":"resourceId","in":"path"},{"schema":{"type":"string","minLength":1,"maxLength":200},"required":false,"name":"spaceId","in":"query"}],"responses":{"200":{"description":"What is printed from.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/RoomPrintable"}}}},"401":{"description":"Missing or invalid access token (`unauthenticated`).","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorEnvelope"}}}},"403":{"description":"No organisation in the token (`no_organisation_context`), or not permitted (`forbidden`).","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorEnvelope"}}}},"404":{"description":"Not found, or not visible to the caller.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorEnvelope"}}}},"422":{"description":"`cannot_hold_stays`.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorEnvelope"}}}},"503":{"description":"`people_unavailable`: the key personal data is sealed with is not set (SETUP §7i).","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorEnvelope"}}}}}}},"/organisations/current/resources/{resourceId}/conversations":{"get":{"tags":["chat"],"summary":"A place’s conversations, unanswered first; who each is with, never the words; `read` on the place; a read","security":[{"bearerAuth":[]}],"parameters":[{"schema":{"type":"string","format":"uuid"},"required":true,"name":"resourceId","in":"path"}],"responses":{"200":{"description":"The inbox.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ChatInbox"}}}},"401":{"description":"Missing or invalid access token (`unauthenticated`).","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorEnvelope"}}}},"403":{"description":"No organisation in the token (`no_organisation_context`), or not permitted (`forbidden`).","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorEnvelope"}}}},"404":{"description":"Not found, or not visible to the caller.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorEnvelope"}}}},"422":{"description":"`cannot_hold_conversations`.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorEnvelope"}}}},"503":{"description":"`people_unavailable`: the key personal data is sealed with is not set (SETUP §7i).","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorEnvelope"}}}}}},"post":{"tags":["chat"],"summary":"Start a conversation with someone linked, or an accepted guest, with its first message; `update` on the place","security":[{"bearerAuth":[]}],"parameters":[{"schema":{"type":"string","format":"uuid"},"required":true,"name":"resourceId","in":"path"}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ChatStart"}}}},"responses":{"200":{"description":"Started.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ChatWritten"}}}},"401":{"description":"Missing or invalid access token (`unauthenticated`).","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorEnvelope"}}}},"403":{"description":"No organisation in the token (`no_organisation_context`), or not permitted (`forbidden`).","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorEnvelope"}}}},"404":{"description":"Not found, or not visible to the caller.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorEnvelope"}}}},"409":{"description":"`conversation_closed`.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorEnvelope"}}}},"422":{"description":"Invalid request.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorEnvelope"}}}},"503":{"description":"`people_unavailable`: the key personal data is sealed with is not set (SETUP §7i).","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorEnvelope"}}}}}}},"/organisations/current/resources/{resourceId}/conversations/{conversationId}":{"get":{"tags":["chat"],"summary":"A conversation, opened: every message marked who wrote it; `update` on the place; a read","security":[{"bearerAuth":[]}],"parameters":[{"schema":{"type":"string","format":"uuid"},"required":true,"name":"resourceId","in":"path"},{"schema":{"type":"string","format":"uuid"},"required":true,"name":"conversationId","in":"path"}],"responses":{"200":{"description":"The conversation.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ChatConversation"}}}},"401":{"description":"Missing or invalid access token (`unauthenticated`).","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorEnvelope"}}}},"403":{"description":"No organisation in the token (`no_organisation_context`), or not permitted (`forbidden`).","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorEnvelope"}}}},"404":{"description":"Not found, or not visible to the caller.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorEnvelope"}}}},"422":{"description":"Invalid request.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorEnvelope"}}}},"503":{"description":"`people_unavailable`: the key personal data is sealed with is not set (SETUP §7i).","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorEnvelope"}}}}}}},"/organisations/current/resources/{resourceId}/conversations/{conversationId}/messages":{"post":{"tags":["chat"],"summary":"A member’s reply, insert only; `update` on the place, on a live thread; the person’s app is nudged","security":[{"bearerAuth":[]}],"parameters":[{"schema":{"type":"string","format":"uuid"},"required":true,"name":"resourceId","in":"path"},{"schema":{"type":"string","format":"uuid"},"required":true,"name":"conversationId","in":"path"}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ChatReply"}}}},"responses":{"200":{"description":"Sent.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ChatWritten"}}}},"401":{"description":"Missing or invalid access token (`unauthenticated`).","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorEnvelope"}}}},"403":{"description":"No organisation in the token (`no_organisation_context`), or not permitted (`forbidden`).","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorEnvelope"}}}},"404":{"description":"Not found, or not visible to the caller.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorEnvelope"}}}},"409":{"description":"`conversation_closed`.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorEnvelope"}}}},"422":{"description":"Invalid request.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorEnvelope"}}}},"503":{"description":"`people_unavailable`: the key personal data is sealed with is not set (SETUP §7i).","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorEnvelope"}}}}}}},"/organisations/current/resources/{resourceId}/conversations/{conversationId}/photos/{photoRef}":{"get":{"tags":["chat"],"summary":"A photo in a conversation, its JPEG (re-encoded, nothing hidden in it); `update` on the place; a read","security":[{"bearerAuth":[]}],"parameters":[{"schema":{"type":"string","format":"uuid"},"required":true,"name":"resourceId","in":"path"},{"schema":{"type":"string","format":"uuid"},"required":true,"name":"conversationId","in":"path"},{"schema":{"type":"string","pattern":"^[A-Za-z0-9_-]{22,32}$"},"required":true,"name":"photoRef","in":"path"}],"responses":{"200":{"description":"The JPEG."},"401":{"description":"Missing or invalid access token (`unauthenticated`).","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorEnvelope"}}}},"403":{"description":"No organisation in the token (`no_organisation_context`), or not permitted (`forbidden`).","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorEnvelope"}}}},"404":{"description":"Not found, or not visible to the caller.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorEnvelope"}}}},"422":{"description":"Invalid request.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorEnvelope"}}}},"503":{"description":"`people_unavailable`: the key personal data is sealed with is not set (SETUP §7i).","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorEnvelope"}}}}}}},"/organisations/current/chat/reply-time":{"get":{"tags":["chat"],"summary":"The organisation’s stated reply time, shown to the person; a working day until it says","security":[{"bearerAuth":[]}],"responses":{"200":{"description":"The reply time.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ChatReplyTime"}}}},"401":{"description":"Missing or invalid access token (`unauthenticated`).","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorEnvelope"}}}},"403":{"description":"No organisation in the token (`no_organisation_context`), or not permitted (`forbidden`).","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorEnvelope"}}}},"404":{"description":"Not found, or not visible to the caller.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorEnvelope"}}}},"422":{"description":"Invalid request.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorEnvelope"}}}}}},"put":{"tags":["chat"],"summary":"Sets the organisation’s stated reply time; `update` on the organisation; the same again writes nothing","security":[{"bearerAuth":[]}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/SetChatReplyTime"}}}},"responses":{"200":{"description":"The reply time now.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ChatReplyTime"}}}},"401":{"description":"Missing or invalid access token (`unauthenticated`).","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorEnvelope"}}}},"403":{"description":"No organisation in the token (`no_organisation_context`), or not permitted (`forbidden`).","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorEnvelope"}}}},"404":{"description":"Not found, or not visible to the caller.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorEnvelope"}}}},"422":{"description":"Invalid request.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorEnvelope"}}}}}}},"/organisations/current/people/{personId}/residencies/{residencyId}/app-notes":{"get":{"tags":["app-notes"],"summary":"The notes from their Point app on a residency, newest first; `read` on the person; their words only for `update`, a read","security":[{"bearerAuth":[]}],"parameters":[{"schema":{"type":"string","format":"uuid"},"required":true,"name":"personId","in":"path"},{"schema":{"type":"string","format":"uuid"},"required":true,"name":"residencyId","in":"path"}],"responses":{"200":{"description":"The notes.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/AppNotes"}}}},"401":{"description":"Missing or invalid access token (`unauthenticated`).","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorEnvelope"}}}},"403":{"description":"No organisation in the token (`no_organisation_context`), or not permitted (`forbidden`).","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorEnvelope"}}}},"404":{"description":"Not found, or not visible to the caller.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorEnvelope"}}}},"422":{"description":"Invalid request.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorEnvelope"}}}},"503":{"description":"`people_unavailable`: the key personal data is sealed with is not set (SETUP §7i).","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorEnvelope"}}}}}}},"/organisations/current/people/{personId}/residencies/{residencyId}/app-notes/{noteId}/acknowledge":{"post":{"tags":["app-notes"],"summary":"Acknowledge a note from their Point app, once; it changes nothing else; `update` on the person; audited","security":[{"bearerAuth":[]}],"parameters":[{"schema":{"type":"string","format":"uuid"},"required":true,"name":"personId","in":"path"},{"schema":{"type":"string","format":"uuid"},"required":true,"name":"residencyId","in":"path"},{"schema":{"type":"string","format":"uuid"},"required":true,"name":"noteId","in":"path"}],"responses":{"200":{"description":"Acknowledged.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/AppNoteAcknowledged"}}}},"401":{"description":"Missing or invalid access token (`unauthenticated`).","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorEnvelope"}}}},"403":{"description":"No organisation in the token (`no_organisation_context`), or not permitted (`forbidden`).","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorEnvelope"}}}},"404":{"description":"Not found, or not visible to the caller.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorEnvelope"}}}},"409":{"description":"`already_acknowledged` or `tombstoned`.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorEnvelope"}}}},"422":{"description":"Invalid request.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorEnvelope"}}}}}}},"/organisations/current/resources/{resourceId}/routes":{"get":{"tags":["routes"],"summary":"Its open routes with their words and cautions, the ended handles, what its strategy asks, and what a route may name; `read` on it","security":[{"bearerAuth":[]}],"parameters":[{"schema":{"type":"string","format":"uuid"},"required":true,"name":"resourceId","in":"path"}],"responses":{"200":{"description":"Its routes.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Routes"}}}},"401":{"description":"Missing or invalid access token (`unauthenticated`).","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorEnvelope"}}}},"403":{"description":"No organisation in the token (`no_organisation_context`), or not permitted (`forbidden`).","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorEnvelope"}}}},"404":{"description":"Not found, or not visible to the caller.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorEnvelope"}}}},"422":{"description":"`cannot_hold_routes`.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorEnvelope"}}}}}},"post":{"tags":["routes"],"summary":"Record a route under a new handle, against its published version; `update` on it","security":[{"bearerAuth":[]}],"parameters":[{"schema":{"type":"string","format":"uuid"},"required":true,"name":"resourceId","in":"path"}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/Route"}}}},"responses":{"201":{"description":"The route’s first version.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/RecordedRoute"}}}},"401":{"description":"Missing or invalid access token (`unauthenticated`).","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorEnvelope"}}}},"403":{"description":"No organisation in the token (`no_organisation_context`), or not permitted (`forbidden`).","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorEnvelope"}}}},"404":{"description":"Not found, or not visible to the caller.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorEnvelope"}}}},"409":{"description":"`nothing_published`, `primary_taken` (with `details.fields`), or `changed_meanwhile`.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorEnvelope"}}}},"422":{"description":"Invalid body, `cannot_hold_routes`, `unknown_scope`, `invalid_role`, `invalid_needs`, `unknown_destination`, `invalid_steps`, `invalid_step`, `unknown_verb`, `invalid_thing`, `invalid_measure`, `proposed_not_yours`, `invalid_note`, `here_one_step`, `here_needs_instructions`, `invalid_instructions`, `invalid_walked`, `invalid_date`, `unknown_thing`, `unknown_storey`, `unknown_parent`, `self_edge`, `broken_chain`, `unknown_assembly_point`, `bad_join` or `join_cycle`, each with `details.fields`.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorEnvelope"}}}}}}},"/organisations/current/resources/{resourceId}/routes/summary":{"get":{"tags":["routes"],"summary":"What its strategy asks at each place one is recorded, and which routes are missing, in words; `read` on it","security":[{"bearerAuth":[]}],"parameters":[{"schema":{"type":"string","format":"uuid"},"required":true,"name":"resourceId","in":"path"}],"responses":{"200":{"description":"What is asked, and the one line.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/RoutesSummary"}}}},"401":{"description":"Missing or invalid access token (`unauthenticated`).","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorEnvelope"}}}},"403":{"description":"No organisation in the token (`no_organisation_context`), or not permitted (`forbidden`).","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorEnvelope"}}}},"404":{"description":"Not found, or not visible to the caller.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorEnvelope"}}}},"422":{"description":"`cannot_hold_routes`.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorEnvelope"}}}}}}},"/organisations/current/resources/{resourceId}/routes/resolve":{"get":{"tags":["routes"],"summary":"The way out from one place, or from every published space: the chain through its joins, the proposals, the aids and the cautions; `read` on it","security":[{"bearerAuth":[]}],"parameters":[{"schema":{"type":"string","format":"uuid"},"required":true,"name":"resourceId","in":"path"},{"schema":{"type":"string","minLength":1,"maxLength":200},"required":false,"name":"at","in":"query"},{"schema":{"type":"string","minLength":1,"maxLength":80},"required":false,"name":"role","in":"query"},{"schema":{"type":"string","maxLength":400},"required":false,"name":"needs","in":"query"}],"responses":{"200":{"description":"The way out from each place, primary and alternative.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/RoutesResolved"}}}},"401":{"description":"Missing or invalid access token (`unauthenticated`).","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorEnvelope"}}}},"403":{"description":"No organisation in the token (`no_organisation_context`), or not permitted (`forbidden`).","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorEnvelope"}}}},"404":{"description":"Not found, or not visible to the caller.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorEnvelope"}}}},"422":{"description":"`cannot_hold_routes`, `unknown_scope`, `invalid_role` or `invalid_needs` (with `details.fields`).","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorEnvelope"}}}}}}},"/organisations/current/resources/{resourceId}/routes/{handle}/history":{"get":{"tags":["routes"],"summary":"Every version under one handle, newest first, and what changed on its things since; an ended handle still answers; `read` on the resource","security":[{"bearerAuth":[]}],"parameters":[{"schema":{"type":"string","format":"uuid"},"required":true,"name":"resourceId","in":"path"},{"schema":{"type":"string","format":"uuid","description":"The route’s permanent handle: the same on every version."},"required":true,"description":"The route’s permanent handle: the same on every version.","name":"handle","in":"path"}],"responses":{"200":{"description":"Its versions.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/RouteHistory"}}}},"401":{"description":"Missing or invalid access token (`unauthenticated`).","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorEnvelope"}}}},"403":{"description":"No organisation in the token (`no_organisation_context`), or not permitted (`forbidden`).","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorEnvelope"}}}},"404":{"description":"Not found, or not visible to the caller.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorEnvelope"}}}},"422":{"description":"`cannot_hold_routes`.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorEnvelope"}}}}}}},"/organisations/current/resources/{resourceId}/routes/check":{"post":{"tags":["routes"],"summary":"A route as it is being built, read and written nowhere: its sentences, the proposals, its cautions, and what recording it would be refused for; `read` on it","security":[{"bearerAuth":[]}],"parameters":[{"schema":{"type":"string","format":"uuid"},"required":true,"name":"resourceId","in":"path"}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/RouteDraftBody"}}}},"responses":{"200":{"description":"The draft, read.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/RouteDraft"}}}},"401":{"description":"Missing or invalid access token (`unauthenticated`).","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorEnvelope"}}}},"403":{"description":"No organisation in the token (`no_organisation_context`), or not permitted (`forbidden`).","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorEnvelope"}}}},"404":{"description":"Not found, or not visible to the caller.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorEnvelope"}}}},"409":{"description":"`nothing_published`.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorEnvelope"}}}},"422":{"description":"Invalid body or `cannot_hold_routes`.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorEnvelope"}}}}}}},"/organisations/current/resources/{resourceId}/routes/{handle}/replace":{"post":{"tags":["routes"],"summary":"A new version under the same handle; the open one closes on its first day; `update` on the resource","security":[{"bearerAuth":[]}],"parameters":[{"schema":{"type":"string","format":"uuid"},"required":true,"name":"resourceId","in":"path"},{"schema":{"type":"string","format":"uuid","description":"The route’s permanent handle: the same on every version."},"required":true,"description":"The route’s permanent handle: the same on every version.","name":"handle","in":"path"}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/Route"}}}},"responses":{"201":{"description":"The new version, and the one it closed.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/RecordedRoute"}}}},"401":{"description":"Missing or invalid access token (`unauthenticated`).","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorEnvelope"}}}},"403":{"description":"No organisation in the token (`no_organisation_context`), or not permitted (`forbidden`).","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorEnvelope"}}}},"404":{"description":"Not found, or not visible to the caller.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorEnvelope"}}}},"409":{"description":"`nothing_published`, `already_ended`, or `primary_taken` (with `details.fields`).","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorEnvelope"}}}},"422":{"description":"Invalid body, `cannot_hold_routes`, `unknown_scope`, `invalid_role`, `invalid_needs`, `unknown_destination`, `invalid_steps`, `invalid_step`, `unknown_verb`, `invalid_thing`, `invalid_measure`, `proposed_not_yours`, `invalid_note`, `here_one_step`, `here_needs_instructions`, `invalid_instructions`, `invalid_walked`, `invalid_date`, `unknown_thing`, `unknown_storey`, `unknown_parent`, `self_edge`, `broken_chain`, `unknown_assembly_point`, `bad_join` or `join_cycle`, each with `details.fields`, `scope_changed` or `starts_before_current`.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorEnvelope"}}}}}}},"/organisations/current/resources/{resourceId}/routes/{handle}/walk":{"post":{"tags":["routes"],"summary":"It was walked: a new version with the same steps and the day, by a role and never a name; `update` on the resource","security":[{"bearerAuth":[]}],"parameters":[{"schema":{"type":"string","format":"uuid"},"required":true,"name":"resourceId","in":"path"},{"schema":{"type":"string","format":"uuid","description":"The route’s permanent handle: the same on every version."},"required":true,"description":"The route’s permanent handle: the same on every version.","name":"handle","in":"path"}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/RouteWalk"}}}},"responses":{"201":{"description":"The walked version, and the one it closed.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/RecordedRoute"}}}},"401":{"description":"Missing or invalid access token (`unauthenticated`).","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorEnvelope"}}}},"403":{"description":"No organisation in the token (`no_organisation_context`), or not permitted (`forbidden`).","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorEnvelope"}}}},"404":{"description":"Not found, or not visible to the caller.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorEnvelope"}}}},"409":{"description":"`nothing_published` or `already_ended`.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorEnvelope"}}}},"422":{"description":"Invalid body, `cannot_hold_routes`, `invalid_walked`, `unknown_thing` or `starts_before_current` (with `details.fields`).","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorEnvelope"}}}}}}},"/organisations/current/resources/{resourceId}/routes/{handle}/end":{"post":{"tags":["routes"],"summary":"It ended: its open version closes with nothing after it, once; `update` on the resource","security":[{"bearerAuth":[]}],"parameters":[{"schema":{"type":"string","format":"uuid"},"required":true,"name":"resourceId","in":"path"},{"schema":{"type":"string","format":"uuid","description":"The route’s permanent handle: the same on every version."},"required":true,"description":"The route’s permanent handle: the same on every version.","name":"handle","in":"path"}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/RouteEnd"}}}},"responses":{"200":{"description":"The version, closed.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/RouteVersion"}}}},"401":{"description":"Missing or invalid access token (`unauthenticated`).","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorEnvelope"}}}},"403":{"description":"No organisation in the token (`no_organisation_context`), or not permitted (`forbidden`).","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorEnvelope"}}}},"404":{"description":"Not found, or not visible to the caller.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorEnvelope"}}}},"409":{"description":"`already_ended`.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorEnvelope"}}}},"422":{"description":"Invalid body, `cannot_hold_routes` or `invalid_date` (with `details.fields`).","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorEnvelope"}}}}}}},"/organisations/current/resources/{resourceId}/routes/graph":{"get":{"tags":["routes"],"summary":"The graph its routes walk: the open nodes and edges, with their versions and who recorded them, whole or for one storey; `read` on it","security":[{"bearerAuth":[]}],"parameters":[{"schema":{"type":"string","format":"uuid"},"required":true,"name":"resourceId","in":"path"},{"schema":{"type":"string","minLength":1,"maxLength":200},"required":false,"name":"storey","in":"query"}],"responses":{"200":{"description":"The graph.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/RouteGraph"}}}},"401":{"description":"Missing or invalid access token (`unauthenticated`).","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorEnvelope"}}}},"403":{"description":"No organisation in the token (`no_organisation_context`), or not permitted (`forbidden`).","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorEnvelope"}}}},"404":{"description":"Not found, or not visible to the caller.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorEnvelope"}}}},"422":{"description":"`cannot_hold_routes`, or `unknown_storey`.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorEnvelope"}}}}}}},"/organisations/current/resources/{resourceId}/routes/nodes/{handle}/edges":{"get":{"tags":["routes"],"summary":"What already leaves a node, as a step may pick it up; `read` on the resource","security":[{"bearerAuth":[]}],"parameters":[{"schema":{"type":"string","format":"uuid"},"required":true,"name":"resourceId","in":"path"},{"schema":{"type":"string","format":"uuid","description":"The place’s permanent handle in the graph: the same on every version."},"required":true,"description":"The place’s permanent handle in the graph: the same on every version.","name":"handle","in":"path"}],"responses":{"200":{"description":"The node, and the edges that leave it.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/RouteEdgesFrom"}}}},"401":{"description":"Missing or invalid access token (`unauthenticated`).","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorEnvelope"}}}},"403":{"description":"No organisation in the token (`no_organisation_context`), or not permitted (`forbidden`).","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorEnvelope"}}}},"404":{"description":"Not found, or not visible to the caller.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorEnvelope"}}}},"422":{"description":"`cannot_hold_routes`.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorEnvelope"}}}}}}},"/organisations/current/resources/{resourceId}/routes/nodes":{"post":{"tags":["routes"],"summary":"A node on its own — a thing by its id, words at a point on a storey, or words — found or made; `update` on the resource","security":[{"bearerAuth":[]}],"parameters":[{"schema":{"type":"string","format":"uuid"},"required":true,"name":"resourceId","in":"path"}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/RouteNodeBody"}}}},"responses":{"201":{"description":"The node, and whether it was made.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/RecordedRouteNode"}}}},"401":{"description":"Missing or invalid access token (`unauthenticated`).","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorEnvelope"}}}},"403":{"description":"No organisation in the token (`no_organisation_context`), or not permitted (`forbidden`).","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorEnvelope"}}}},"404":{"description":"Not found, or not visible to the caller.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorEnvelope"}}}},"409":{"description":"`nothing_published`, or `changed_meanwhile`.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorEnvelope"}}}},"422":{"description":"Invalid body, `cannot_hold_routes`, `invalid_thing`, `unknown_thing`, `unknown_storey` or `unknown_parent` (with `details.fields`).","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorEnvelope"}}}}}}},"/organisations/current/resources/{resourceId}/routes/nodes/{handle}/bind":{"post":{"tags":["routes"],"summary":"Bind a node to a thing in the published version, or a designation, as a new version: edges and paths keep its handle; `update` on the resource","security":[{"bearerAuth":[]}],"parameters":[{"schema":{"type":"string","format":"uuid"},"required":true,"name":"resourceId","in":"path"},{"schema":{"type":"string","format":"uuid","description":"The place’s permanent handle in the graph: the same on every version."},"required":true,"description":"The place’s permanent handle in the graph: the same on every version.","name":"handle","in":"path"}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/RouteBindBody"}}}},"responses":{"201":{"description":"The node’s new version.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/RouteNode"}}}},"401":{"description":"Missing or invalid access token (`unauthenticated`).","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorEnvelope"}}}},"403":{"description":"No organisation in the token (`no_organisation_context`), or not permitted (`forbidden`).","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorEnvelope"}}}},"404":{"description":"Not found, or not visible to the caller.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorEnvelope"}}}},"409":{"description":"`nothing_published`, `already_bound`, `thing_taken` (with `details.fields`), or `changed_meanwhile`.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorEnvelope"}}}},"422":{"description":"Invalid body, `cannot_hold_routes`, or `unknown_thing` (with `details.fields`).","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorEnvelope"}}}}}}},"/organisations/current/resources/{resourceId}/routes/nodes/{handle}/unbind":{"post":{"tags":["routes"],"summary":"Unbind a node whose thing the published version no longer holds, as a new version at the point it had: edges and paths keep its handle; `update` on the resource","security":[{"bearerAuth":[]}],"parameters":[{"schema":{"type":"string","format":"uuid"},"required":true,"name":"resourceId","in":"path"},{"schema":{"type":"string","format":"uuid","description":"The place’s permanent handle in the graph: the same on every version."},"required":true,"description":"The place’s permanent handle in the graph: the same on every version.","name":"handle","in":"path"}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/RouteUnbindBody"}}}},"responses":{"201":{"description":"The node’s new version.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/RouteNode"}}}},"401":{"description":"Missing or invalid access token (`unauthenticated`).","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorEnvelope"}}}},"403":{"description":"No organisation in the token (`no_organisation_context`), or not permitted (`forbidden`).","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorEnvelope"}}}},"404":{"description":"Not found, or not visible to the caller.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorEnvelope"}}}},"409":{"description":"`nothing_published`, `not_bound`, `still_there`, or `changed_meanwhile`.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorEnvelope"}}}},"422":{"description":"Invalid body, or `cannot_hold_routes`.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorEnvelope"}}}}}}},"/organisations/current/resources/{resourceId}/routes/edges":{"post":{"tags":["routes"],"summary":"An edge on its own — from one node to another, by a verb, with any measures — found or made; `update` on the resource","security":[{"bearerAuth":[]}],"parameters":[{"schema":{"type":"string","format":"uuid"},"required":true,"name":"resourceId","in":"path"}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/RouteEdgeBody"}}}},"responses":{"201":{"description":"The edge, and whether it was made.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/RecordedRouteEdge"}}}},"401":{"description":"Missing or invalid access token (`unauthenticated`).","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorEnvelope"}}}},"403":{"description":"No organisation in the token (`no_organisation_context`), or not permitted (`forbidden`).","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorEnvelope"}}}},"404":{"description":"Not found, or not visible to the caller.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorEnvelope"}}}},"409":{"description":"`nothing_published`, or `changed_meanwhile`.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorEnvelope"}}}},"422":{"description":"Invalid body, `cannot_hold_routes`, `unknown_thing`, `unknown_verb`, `self_edge`, `invalid_measure` or `proposed_not_yours` (with `details.fields`).","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorEnvelope"}}}}}}},"/organisations/current/resources/{resourceId}/routes/edges/{handle}/measures":{"post":{"tags":["routes"],"summary":"Land a person’s measures on an edge, as a new version for every route that walks it; nothing written when they say nothing new; `update` on the resource","security":[{"bearerAuth":[]}],"parameters":[{"schema":{"type":"string","format":"uuid"},"required":true,"name":"resourceId","in":"path"},{"schema":{"type":"string","format":"uuid","description":"The way’s permanent handle in the graph: the same on every version."},"required":true,"description":"The way’s permanent handle in the graph: the same on every version.","name":"handle","in":"path"}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/RouteMeasuresBody"}}}},"responses":{"201":{"description":"The edge, and whether anything changed.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/RouteMeasuresLanded"}}}},"401":{"description":"Missing or invalid access token (`unauthenticated`).","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorEnvelope"}}}},"403":{"description":"No organisation in the token (`no_organisation_context`), or not permitted (`forbidden`).","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorEnvelope"}}}},"404":{"description":"Not found, or not visible to the caller.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorEnvelope"}}}},"409":{"description":"`nothing_published`, or `changed_meanwhile`.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorEnvelope"}}}},"422":{"description":"Invalid body, `cannot_hold_routes`, `invalid_measure` or `proposed_not_yours` (with `details.fields`).","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorEnvelope"}}}}}}},"/organisations/current/resources/{resourceId}/assessments/definitions":{"get":{"tags":["assessments"],"summary":"What the vendored definitions offer this workspace now: each definition’s newest version; `read`","security":[{"bearerAuth":[]}],"parameters":[{"schema":{"type":"string","format":"uuid"},"required":true,"name":"resourceId","in":"path"}],"responses":{"200":{"description":"The definitions, or why there are none.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/AssessmentDefinitions"}}}},"401":{"description":"Missing or invalid access token (`unauthenticated`).","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorEnvelope"}}}},"403":{"description":"No organisation in the token (`no_organisation_context`), or not permitted (`forbidden`).","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorEnvelope"}}}},"404":{"description":"Not found, or not visible to the caller.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorEnvelope"}}}},"422":{"description":"Invalid request.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorEnvelope"}}}}}}},"/organisations/current/resources/{resourceId}/assessments":{"get":{"tags":["assessments"],"summary":"The process records, newest first, and an editor’s open runs; a human one is a line saying it exists to a viewer; `read`","security":[{"bearerAuth":[]}],"parameters":[{"schema":{"type":"string","format":"uuid"},"required":true,"name":"resourceId","in":"path"}],"responses":{"200":{"description":"The process records and the open runs.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/AssessmentProcesses"}}}},"401":{"description":"Missing or invalid access token (`unauthenticated`).","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorEnvelope"}}}},"403":{"description":"No organisation in the token (`no_organisation_context`), or not permitted (`forbidden`).","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorEnvelope"}}}},"404":{"description":"Not found, or not visible to the caller.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorEnvelope"}}}},"422":{"description":"Invalid request.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorEnvelope"}}}},"503":{"description":"`canon_refused`: the definitions were refused, or none is vendored; or `people_unavailable`: the key words are sealed with is not set.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorEnvelope"}}}}}}},"/organisations/current/resources/{resourceId}/assessments/runs":{"post":{"tags":["assessments"],"summary":"Open a run: a definition, a published subject, the assessor’s role; the place’s own answers proposed where the definition says; `update`","security":[{"bearerAuth":[]}],"parameters":[{"schema":{"type":"string","format":"uuid"},"required":true,"name":"resourceId","in":"path"}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/OpenAssessmentRun"}}}},"responses":{"201":{"description":"The run, as the runner reads it.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/AssessmentRun"}}}},"401":{"description":"Missing or invalid access token (`unauthenticated`).","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorEnvelope"}}}},"403":{"description":"No organisation in the token (`no_organisation_context`), or not permitted (`forbidden`).","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorEnvelope"}}}},"404":{"description":"Not found, or not visible to the caller.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorEnvelope"}}}},"409":{"description":"`nothing_published`.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorEnvelope"}}}},"422":{"description":"`unknown_definition`, `unknown_subject_kind`, `subject_not_served`, `unknown_subject`, or `unknown_role`.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorEnvelope"}}}},"503":{"description":"`canon_refused`: the definitions were refused, or none is vendored; or `people_unavailable`: the key words are sealed with is not set.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorEnvelope"}}}}}}},"/organisations/current/resources/{resourceId}/assessments/runs/{runId}":{"get":{"tags":["assessments"],"summary":"A run, resumable by its id: every step in order with its state and answer, the next one, coverage as a count, done; `update`","security":[{"bearerAuth":[]}],"parameters":[{"schema":{"type":"string","format":"uuid"},"required":true,"name":"resourceId","in":"path"},{"schema":{"type":"string","format":"uuid"},"required":true,"name":"runId","in":"path"}],"responses":{"200":{"description":"The run.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/AssessmentRun"}}}},"401":{"description":"Missing or invalid access token (`unauthenticated`).","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorEnvelope"}}}},"403":{"description":"No organisation in the token (`no_organisation_context`), or not permitted (`forbidden`).","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorEnvelope"}}}},"404":{"description":"Not found, or not visible to the caller.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorEnvelope"}}}},"422":{"description":"Invalid request.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorEnvelope"}}}},"503":{"description":"`canon_refused`: the definitions were refused, or none is vendored; or `people_unavailable`: the key words are sealed with is not set.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorEnvelope"}}}}}}},"/organisations/current/resources/{resourceId}/assessments/runs/{runId}/answers":{"patch":{"tags":["assessments"],"summary":"One act of the walk, saved to the run as it is given: a screen, an answer, a proposal accepted, couldn’t establish, not applicable; or a part of her sitting closed as not asked with the assessor’s words, or asked after all; `update`","security":[{"bearerAuth":[]}],"parameters":[{"schema":{"type":"string","format":"uuid"},"required":true,"name":"resourceId","in":"path"},{"schema":{"type":"string","format":"uuid"},"required":true,"name":"runId","in":"path"}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/AssessmentAnswer"}}}},"responses":{"200":{"description":"The run, with the act applied.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/AssessmentRun"}}}},"401":{"description":"Missing or invalid access token (`unauthenticated`).","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorEnvelope"}}}},"403":{"description":"No organisation in the token (`no_organisation_context`), or not permitted (`forbidden`).","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorEnvelope"}}}},"404":{"description":"Not found, or not visible to the caller.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorEnvelope"}}}},"409":{"description":"`no_proposal`: nothing was proposed for that question; `scope_not_confirmed`: Begin first.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorEnvelope"}}}},"422":{"description":"`walk_refused`: the walk’s own refusal, in its words; `mixed_not_established`: a “couldn’t establish” option ticked with another; `reason_required` or `reason_text_required`: couldn’t establish, with none of the definition’s reasons, or with its *other* and no words; `unknown_section`, `personal_always_asked`, `words_required` or `words_too_long`: a part closed as not asked that is not this sitting’s, is the person’s own, or has no words or too many.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorEnvelope"}}}},"503":{"description":"`canon_refused`: the definitions were refused, or none is vendored; or `people_unavailable`: the key words are sealed with is not set.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorEnvelope"}}}}}}},"/organisations/current/resources/{resourceId}/assessments/runs/{runId}/scope":{"post":{"tags":["assessments"],"summary":"Begin: the opener has read what the walk is of — the place, never anything about whoever lives or works there — and begins; kept on the run with the day; `update`","security":[{"bearerAuth":[]}],"parameters":[{"schema":{"type":"string","format":"uuid"},"required":true,"name":"resourceId","in":"path"},{"schema":{"type":"string","format":"uuid"},"required":true,"name":"runId","in":"path"}],"responses":{"200":{"description":"The run, begun.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/AssessmentRun"}}}},"401":{"description":"Missing or invalid access token (`unauthenticated`).","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorEnvelope"}}}},"403":{"description":"No organisation in the token (`no_organisation_context`), or not permitted (`forbidden`).","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorEnvelope"}}}},"404":{"description":"Not found, or not visible to the caller.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorEnvelope"}}}},"422":{"description":"Invalid request.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorEnvelope"}}}},"503":{"description":"`canon_refused`: the definitions were refused, or none is vendored; or `people_unavailable`: the key words are sealed with is not set.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorEnvelope"}}}}}}},"/organisations/current/resources/{resourceId}/assessments/runs/{runId}/abandon":{"post":{"tags":["assessments"],"summary":"Abandon a run: its opener deletes it, with no reason asked; nothing is kept but the audit row, by its id; `update`","security":[{"bearerAuth":[]}],"parameters":[{"schema":{"type":"string","format":"uuid"},"required":true,"name":"resourceId","in":"path"},{"schema":{"type":"string","format":"uuid"},"required":true,"name":"runId","in":"path"}],"responses":{"200":{"description":"The run is gone.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/AssessmentRunAbandoned"}}}},"401":{"description":"Missing or invalid access token (`unauthenticated`).","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorEnvelope"}}}},"403":{"description":"`not_the_opener`: only the member who began it may abandon it.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorEnvelope"}}}},"404":{"description":"Not found, or not visible to the caller.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorEnvelope"}}}},"422":{"description":"Invalid request.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorEnvelope"}}}}}}},"/organisations/current/resources/{resourceId}/assessments/runs/{runId}/seal":{"post":{"tags":["assessments"],"summary":"Seal a run that is done: the answer set canonicalised, hashed over its plaintext, sealed and kept; the run deleted; its process record opened; `update`","security":[{"bearerAuth":[]}],"parameters":[{"schema":{"type":"string","format":"uuid"},"required":true,"name":"resourceId","in":"path"},{"schema":{"type":"string","format":"uuid"},"required":true,"name":"runId","in":"path"}],"responses":{"200":{"description":"The answer set and its process record.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/AssessmentSealed"}}}},"401":{"description":"Missing or invalid access token (`unauthenticated`).","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorEnvelope"}}}},"403":{"description":"No organisation in the token (`no_organisation_context`), or not permitted (`forbidden`).","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorEnvelope"}}}},"404":{"description":"Not found, or not visible to the caller.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorEnvelope"}}}},"409":{"description":"`not_done`, `in_progress` or `scope_not_confirmed`.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorEnvelope"}}}},"422":{"description":"Invalid request.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorEnvelope"}}}},"503":{"description":"`canon_refused`: the definitions were refused, or none is vendored; or `people_unavailable`: the key words are sealed with is not set.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorEnvelope"}}}}}}},"/organisations/current/resources/{resourceId}/assessments/{handle}":{"get":{"tags":["assessments"],"summary":"A process record: its answer set’s summary, its responses and acts in force, recorded, ready, signed off; `read`, or `update` for a human one","security":[{"bearerAuth":[]}],"parameters":[{"schema":{"type":"string","format":"uuid"},"required":true,"name":"resourceId","in":"path"},{"schema":{"type":"string","format":"uuid"},"required":true,"name":"handle","in":"path"}],"responses":{"200":{"description":"The process record.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/AssessmentProcess"}}}},"401":{"description":"Missing or invalid access token (`unauthenticated`).","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorEnvelope"}}}},"403":{"description":"No organisation in the token (`no_organisation_context`), or not permitted (`forbidden`).","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorEnvelope"}}}},"404":{"description":"Not found, or not visible to the caller.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorEnvelope"}}}},"422":{"description":"Invalid request.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorEnvelope"}}}},"503":{"description":"`canon_refused`: the definitions were refused, or none is vendored; or `people_unavailable`: the key words are sealed with is not set.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorEnvelope"}}}}}}},"/organisations/current/resources/{resourceId}/assessments/{handle}/considerations":{"get":{"tags":["assessments"],"summary":"What the definition’s rules raise from the sealed answer set now, by topic; computed, never stored; `read`, or `update` for a human one","security":[{"bearerAuth":[]}],"parameters":[{"schema":{"type":"string","format":"uuid"},"required":true,"name":"resourceId","in":"path"},{"schema":{"type":"string","format":"uuid"},"required":true,"name":"handle","in":"path"},{"schema":{"type":"string","pattern":"^[a-z][a-z0-9_]{0,79}$"},"required":false,"name":"topic","in":"query"}],"responses":{"200":{"description":"The considerations, and any context a rule went without.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/AssessmentConsiderations"}}}},"401":{"description":"Missing or invalid access token (`unauthenticated`).","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorEnvelope"}}}},"403":{"description":"No organisation in the token (`no_organisation_context`), or not permitted (`forbidden`).","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorEnvelope"}}}},"404":{"description":"Not found, or not visible to the caller.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorEnvelope"}}}},"422":{"description":"Invalid request.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorEnvelope"}}}},"503":{"description":"`canon_refused`: the definitions were refused, or none is vendored; or `people_unavailable`: the key words are sealed with is not set.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorEnvelope"}}}}}}},"/organisations/current/resources/{resourceId}/assessments/{handle}/responses":{"post":{"tags":["assessments"],"summary":"Respond to a consideration: yes, no or not applicable, the last two with a reason; `update`","security":[{"bearerAuth":[]}],"parameters":[{"schema":{"type":"string","format":"uuid"},"required":true,"name":"resourceId","in":"path"},{"schema":{"type":"string","format":"uuid"},"required":true,"name":"handle","in":"path"}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/AssessmentResponse"}}}},"responses":{"200":{"description":"The process record.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/AssessmentProcess"}}}},"401":{"description":"Missing or invalid access token (`unauthenticated`).","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorEnvelope"}}}},"403":{"description":"No organisation in the token (`no_organisation_context`), or not permitted (`forbidden`).","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorEnvelope"}}}},"404":{"description":"Not found, or not visible to the caller.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorEnvelope"}}}},"409":{"description":"`bad_status` or `already_recorded`.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorEnvelope"}}}},"422":{"description":"`unknown_response`, `reason_required`, `reason_too_long` or `unknown_consideration`.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorEnvelope"}}}},"503":{"description":"`canon_refused`: the definitions were refused, or none is vendored; or `people_unavailable`: the key words are sealed with is not set.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorEnvelope"}}}}}}},"/organisations/current/resources/{resourceId}/assessments/{handle}/acts":{"post":{"tags":["assessments"],"summary":"Accept or decline an offer under a response of yes: a level the member picks, a value the kind checks, a reason to decline; `update`","security":[{"bearerAuth":[]}],"parameters":[{"schema":{"type":"string","format":"uuid"},"required":true,"name":"resourceId","in":"path"},{"schema":{"type":"string","format":"uuid"},"required":true,"name":"handle","in":"path"}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/AssessmentAct"}}}},"responses":{"200":{"description":"The process record.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/AssessmentProcess"}}}},"401":{"description":"Missing or invalid access token (`unauthenticated`).","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorEnvelope"}}}},"403":{"description":"No organisation in the token (`no_organisation_context`), or not permitted (`forbidden`).","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorEnvelope"}}}},"404":{"description":"Not found, or not visible to the caller.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorEnvelope"}}}},"409":{"description":"`bad_status`, `already_recorded`, `no_response`, `response_not_yes` or `nothing_published`.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorEnvelope"}}}},"422":{"description":"`unknown_outcome`, `unknown_consideration`, `unknown_offer`, `level_required`, `invalid_value`, `unknown_scope` or `reason_required`.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorEnvelope"}}}},"503":{"description":"`canon_refused`: the definitions were refused, or none is vendored; or `people_unavailable`: the key words are sealed with is not set.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorEnvelope"}}}}}}},"/organisations/current/resources/{resourceId}/assessments/{handle}/record":{"post":{"tags":["assessments"],"summary":"Record: each accepted offer written through its owning tool’s own command, cited by its act, in one transaction; once; `update`","security":[{"bearerAuth":[]}],"parameters":[{"schema":{"type":"string","format":"uuid"},"required":true,"name":"resourceId","in":"path"},{"schema":{"type":"string","format":"uuid"},"required":true,"name":"handle","in":"path"}],"responses":{"200":{"description":"The process record, recorded.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/AssessmentProcess"}}}},"401":{"description":"Missing or invalid access token (`unauthenticated`).","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorEnvelope"}}}},"403":{"description":"No organisation in the token (`no_organisation_context`), or not permitted (`forbidden`).","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorEnvelope"}}}},"404":{"description":"Not found, or not visible to the caller.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorEnvelope"}}}},"409":{"description":"`bad_status`, `already_recorded` or `republished`.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorEnvelope"}}}},"422":{"description":"A refusal of the owning tool’s command, in its words.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorEnvelope"}}}},"503":{"description":"`canon_refused`: the definitions were refused, or none is vendored; or `people_unavailable`: the key words are sealed with is not set.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorEnvelope"}}}}}}},"/organisations/current/resources/{resourceId}/assessments/{handle}/ready":{"post":{"tags":["assessments"],"summary":"Ready for review, once recorded; any editor; `update`","security":[{"bearerAuth":[]}],"parameters":[{"schema":{"type":"string","format":"uuid"},"required":true,"name":"resourceId","in":"path"},{"schema":{"type":"string","format":"uuid"},"required":true,"name":"handle","in":"path"}],"responses":{"200":{"description":"The process record, in review.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/AssessmentProcess"}}}},"401":{"description":"Missing or invalid access token (`unauthenticated`).","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorEnvelope"}}}},"403":{"description":"No organisation in the token (`no_organisation_context`), or not permitted (`forbidden`).","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorEnvelope"}}}},"404":{"description":"Not found, or not visible to the caller.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorEnvelope"}}}},"409":{"description":"`bad_status` or `not_recorded`.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorEnvelope"}}}},"422":{"description":"Invalid request.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorEnvelope"}}}},"503":{"description":"`canon_refused`: the definitions were refused, or none is vendored; or `people_unavailable`: the key words are sealed with is not set.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorEnvelope"}}}}}}},"/organisations/current/resources/{resourceId}/assessments/{handle}/sign-off":{"post":{"tags":["assessments"],"summary":"Sign off under a standing from the catalogue, citing an appointment if any; recorded as claimed; supersedes the one before; `update`","security":[{"bearerAuth":[]}],"parameters":[{"schema":{"type":"string","format":"uuid"},"required":true,"name":"resourceId","in":"path"},{"schema":{"type":"string","format":"uuid"},"required":true,"name":"handle","in":"path"}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/AssessmentSignOff"}}}},"responses":{"200":{"description":"The process record, signed off.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/AssessmentProcess"}}}},"401":{"description":"Missing or invalid access token (`unauthenticated`).","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorEnvelope"}}}},"403":{"description":"No organisation in the token (`no_organisation_context`), or not permitted (`forbidden`).","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorEnvelope"}}}},"404":{"description":"Not found, or not visible to the caller.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorEnvelope"}}}},"409":{"description":"`bad_status`.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorEnvelope"}}}},"422":{"description":"`unknown_standing` or `unknown_appointment`.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorEnvelope"}}}},"503":{"description":"`canon_refused`: the definitions were refused, or none is vendored; or `people_unavailable`: the key words are sealed with is not set.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorEnvelope"}}}}}}},"/organisations/current/people/{personId}/residencies/{residencyId}/processes":{"get":{"tags":["assessments"],"summary":"What opening a process record on one of her residencies would write: the definition held, and one already open there, in progress or standing signed off (either refuses it); `update` on her","security":[{"bearerAuth":[]}],"parameters":[{"schema":{"type":"string","format":"uuid"},"required":true,"name":"personId","in":"path"},{"schema":{"type":"string","format":"uuid"},"required":true,"name":"residencyId","in":"path"},{"schema":{"type":"string","minLength":1,"maxLength":80},"required":false,"name":"workspace","in":"query"}],"responses":{"200":{"description":"What it would write.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ProcessOnResidencyPreview"}}}},"401":{"description":"Missing or invalid access token (`unauthenticated`).","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorEnvelope"}}}},"403":{"description":"No organisation in the token (`no_organisation_context`), or not permitted (`forbidden`).","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorEnvelope"}}}},"404":{"description":"Not found, or not visible to the caller.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorEnvelope"}}}},"409":{"description":"`residency_closed`.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorEnvelope"}}}},"422":{"description":"`unknown_workspace` or `unknown_definition`.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorEnvelope"}}}},"503":{"description":"`canon_refused`: the definitions were refused, or none is vendored; or `people_unavailable`: the key words are sealed with is not set.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorEnvelope"}}}}}},"post":{"tags":["assessments"],"summary":"Open a process record on one of her residencies, in draft, before any answer set: the workspace’s definition by key and version; her plan identified where she has none; `update` on her and on its place","security":[{"bearerAuth":[]}],"parameters":[{"schema":{"type":"string","format":"uuid"},"required":true,"name":"personId","in":"path"},{"schema":{"type":"string","format":"uuid"},"required":true,"name":"residencyId","in":"path"}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/OpenProcessOnResidency"}}}},"responses":{"201":{"description":"The record’s handle.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ProcessOpenedOnResidency"}}}},"401":{"description":"Missing or invalid access token (`unauthenticated`).","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorEnvelope"}}}},"403":{"description":"No organisation in the token (`no_organisation_context`), or not permitted (`forbidden`).","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorEnvelope"}}}},"404":{"description":"Not found, or not visible to the caller.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorEnvelope"}}}},"409":{"description":"`already_open`, `review_instead` (one stands signed off: it is reviewed, never replaced), `residency_closed` or `tombstoned`.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorEnvelope"}}}},"422":{"description":"`unknown_workspace` or `unknown_definition`.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorEnvelope"}}}},"503":{"description":"`canon_refused`: the definitions were refused, or none is vendored; or `people_unavailable`: the key words are sealed with is not set.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorEnvelope"}}}}}}},"/organisations/current/people/{personId}/residencies/{residencyId}/processes/earlier":{"get":{"tags":["assessments"],"summary":"The earlier process records of a workspace on one of her residencies: every one that has closed (declined, withdrawn or retired), newest first, how and when it ended, and nothing of what is in it; the residency may have ended; `update` on her","security":[{"bearerAuth":[]}],"parameters":[{"schema":{"type":"string","format":"uuid"},"required":true,"name":"personId","in":"path"},{"schema":{"type":"string","format":"uuid"},"required":true,"name":"residencyId","in":"path"},{"schema":{"type":"string","minLength":1,"maxLength":80},"required":false,"name":"workspace","in":"query"}],"responses":{"200":{"description":"The earlier ones, newest first.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ProcessesEarlierOnResidency"}}}},"401":{"description":"Missing or invalid access token (`unauthenticated`).","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorEnvelope"}}}},"403":{"description":"No organisation in the token (`no_organisation_context`), or not permitted (`forbidden`).","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorEnvelope"}}}},"404":{"description":"Not found, or not visible to the caller.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorEnvelope"}}}},"422":{"description":"`unknown_workspace`.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorEnvelope"}}}}}}},"/organisations/current/people/{personId}/processes/{handle}":{"get":{"tags":["assessments"],"summary":"A process record on one of her residencies, outlined, with or without its answer set: identity, versions, the set, a bound draft, the review days; `update` on her, and its own read rule","security":[{"bearerAuth":[]}],"parameters":[{"schema":{"type":"string","format":"uuid"},"required":true,"name":"personId","in":"path"},{"schema":{"type":"string","format":"uuid"},"required":true,"name":"handle","in":"path"}],"responses":{"200":{"description":"The record, outlined.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ProcessOutline"}}}},"401":{"description":"Missing or invalid access token (`unauthenticated`).","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorEnvelope"}}}},"403":{"description":"No organisation in the token (`no_organisation_context`), or not permitted (`forbidden`).","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorEnvelope"}}}},"404":{"description":"Not found, or not visible to the caller.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorEnvelope"}}}},"422":{"description":"Invalid request.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorEnvelope"}}}},"503":{"description":"`canon_refused`: the definitions were refused, or none is vendored; or `people_unavailable`: the key words are sealed with is not set.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorEnvelope"}}}}}}},"/organisations/current/people/{personId}/processes/{handle}/consent":{"post":{"tags":["assessments"],"summary":"Her answer to the offer of a process on her residency, given or declined: one `assess` statement on her residency; a decline moves her plan and ends the record; `update` on her and on its place","security":[{"bearerAuth":[]}],"parameters":[{"schema":{"type":"string","format":"uuid"},"required":true,"name":"personId","in":"path"},{"schema":{"type":"string","format":"uuid"},"required":true,"name":"handle","in":"path"}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ProcessAnswer"}}}},"responses":{"201":{"description":"Her answer, recorded.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ProcessAnswered"}}}},"401":{"description":"Missing or invalid access token (`unauthenticated`).","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorEnvelope"}}}},"403":{"description":"No organisation in the token (`no_organisation_context`), or not permitted (`forbidden`).","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorEnvelope"}}}},"404":{"description":"Not found, or not visible to the caller.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorEnvelope"}}}},"409":{"description":"`process_ended`, `already_given`, `residency_closed` or `tombstoned`.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorEnvelope"}}}},"422":{"description":"`unknown_answer`, `unknown_channel`, `no_authority`, `party_lapsed`, `unknown_informed`, `invalid_on`, `dates_out_of_order` or `invalid_words`.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorEnvelope"}}}},"503":{"description":"`canon_refused`: the definitions were refused, or none is vendored; or `people_unavailable`: the key words are sealed with is not set.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorEnvelope"}}}}}}},"/organisations/current/people/{personId}/processes/{handle}/withdrawal":{"post":{"tags":["assessments"],"summary":"Her consent to a process on her residency withdrawn: one `assess` statement, withdrawn; her plan withdrawn; a bound draft closed; the record ended; a sealed set stays; `update` on her and on its place","security":[{"bearerAuth":[]}],"parameters":[{"schema":{"type":"string","format":"uuid"},"required":true,"name":"personId","in":"path"},{"schema":{"type":"string","format":"uuid"},"required":true,"name":"handle","in":"path"}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ProcessWithdrawal"}}}},"responses":{"201":{"description":"Her withdrawal, recorded.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ProcessWithdrawn"}}}},"401":{"description":"Missing or invalid access token (`unauthenticated`).","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorEnvelope"}}}},"403":{"description":"No organisation in the token (`no_organisation_context`), or not permitted (`forbidden`).","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorEnvelope"}}}},"404":{"description":"Not found, or not visible to the caller.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorEnvelope"}}}},"409":{"description":"`process_ended`, `not_consented`, `residency_closed` or `tombstoned`.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorEnvelope"}}}},"422":{"description":"`unknown_channel`, `no_authority`, `party_lapsed`, `unknown_informed`, `invalid_on`, `dates_out_of_order` or `invalid_words`.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorEnvelope"}}}},"503":{"description":"`canon_refused`: the definitions were refused, or none is vendored; or `people_unavailable`: the key words are sealed with is not set.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorEnvelope"}}}}}}},"/organisations/current/people/{personId}/processes/{handle}/retire":{"post":{"tags":["assessments"],"summary":"Retire a process on her residency: taken out of use with a reason (moved out, opened in error, a fresh start, or another in words); it closes, and everything in it, in one transaction, kept read-only; nothing deleted; `update` on her and on its place","security":[{"bearerAuth":[]}],"parameters":[{"schema":{"type":"string","format":"uuid"},"required":true,"name":"personId","in":"path"},{"schema":{"type":"string","format":"uuid"},"required":true,"name":"handle","in":"path"}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ProcessRetire"}}}},"responses":{"201":{"description":"It is retired, and what closed with it counted.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ProcessRetired"}}}},"401":{"description":"Missing or invalid access token (`unauthenticated`).","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorEnvelope"}}}},"403":{"description":"No organisation in the token (`no_organisation_context`), or not permitted (`forbidden`).","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorEnvelope"}}}},"404":{"description":"Not found, or not visible to the caller.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorEnvelope"}}}},"409":{"description":"`process_ended` or `tombstoned`.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorEnvelope"}}}},"422":{"description":"`unknown_reason`, `invalid_words`, `invalid_on` or `dates_out_of_order`.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorEnvelope"}}}},"503":{"description":"`canon_refused`: the definitions were refused, or none is vendored; or `people_unavailable`: the key words are sealed with is not set.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorEnvelope"}}}}}}},"/organisations/current/people/{personId}/processes/{handle}/suspend":{"post":{"tags":["assessments"],"summary":"Suspend a process on her residency, with a reason from the tool’s list or in words; it takes nothing new until it resumes; `update` on her and on its place","security":[{"bearerAuth":[]}],"parameters":[{"schema":{"type":"string","format":"uuid"},"required":true,"name":"personId","in":"path"},{"schema":{"type":"string","format":"uuid"},"required":true,"name":"handle","in":"path"}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ProcessSuspend"}}}},"responses":{"201":{"description":"It is suspended.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ProcessMoved"}}}},"401":{"description":"Missing or invalid access token (`unauthenticated`).","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorEnvelope"}}}},"403":{"description":"No organisation in the token (`no_organisation_context`), or not permitted (`forbidden`).","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorEnvelope"}}}},"404":{"description":"Not found, or not visible to the caller.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorEnvelope"}}}},"409":{"description":"`process_ended`, `already_suspended` or `tombstoned`.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorEnvelope"}}}},"422":{"description":"`unknown_reason`, `invalid_suspended_words`, `invalid_on` or `dates_out_of_order`.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorEnvelope"}}}},"503":{"description":"`canon_refused`: the definitions were refused, or none is vendored; or `people_unavailable`: the key words are sealed with is not set.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorEnvelope"}}}}}}},"/organisations/current/people/{personId}/processes/{handle}/resume":{"post":{"tags":["assessments"],"summary":"Resume a suspended process as it was: its plan’s review due moves on by the days it was suspended; `update` on her and on its place","security":[{"bearerAuth":[]}],"parameters":[{"schema":{"type":"string","format":"uuid"},"required":true,"name":"personId","in":"path"},{"schema":{"type":"string","format":"uuid"},"required":true,"name":"handle","in":"path"}],"requestBody":{"required":false,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ProcessResume"}}}},"responses":{"201":{"description":"It is resumed.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ProcessMoved"}}}},"401":{"description":"Missing or invalid access token (`unauthenticated`).","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorEnvelope"}}}},"403":{"description":"No organisation in the token (`no_organisation_context`), or not permitted (`forbidden`).","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorEnvelope"}}}},"404":{"description":"Not found, or not visible to the caller.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorEnvelope"}}}},"409":{"description":"`process_ended`, `not_suspended` or `tombstoned`.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorEnvelope"}}}},"422":{"description":"`invalid_on` or `dates_out_of_order`.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorEnvelope"}}}},"503":{"description":"`canon_refused`: the definitions were refused, or none is vendored; or `people_unavailable`: the key words are sealed with is not set.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorEnvelope"}}}}}}},"/organisations/current/people/{personId}/processes/{handle}/review":{"post":{"tags":["assessments"],"summary":"Review a process on her residency now: the next cycle of the same process opens in draft, with its own sitting, plan, finish and sign-off, and why, a reason and words; the cycle signed off before stays in force until it is signed off; `update` on her and on its place","security":[{"bearerAuth":[]}],"parameters":[{"schema":{"type":"string","format":"uuid"},"required":true,"name":"personId","in":"path"},{"schema":{"type":"string","format":"uuid"},"required":true,"name":"handle","in":"path"}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ProcessReview"}}}},"responses":{"201":{"description":"The review is open, as the next cycle.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ProcessReviewed"}}}},"401":{"description":"Missing or invalid access token (`unauthenticated`).","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorEnvelope"}}}},"403":{"description":"No organisation in the token (`no_organisation_context`), or not permitted (`forbidden`).","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorEnvelope"}}}},"404":{"description":"Not found, or not visible to the caller.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorEnvelope"}}}},"409":{"description":"`process_ended`, `process_suspended`, `nothing_to_review`, `review_open` or `tombstoned`.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorEnvelope"}}}},"422":{"description":"`unknown_reason` or `invalid_words`.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorEnvelope"}}}},"503":{"description":"`canon_refused`: the definitions were refused, or none is vendored; or `people_unavailable`: the key words are sealed with is not set.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorEnvelope"}}}}}}},"/organisations/current/people/{personId}/processes/{handle}/assess":{"get":{"tags":["assessments"],"summary":"The assess step of a process on her residency: the definition by its parts and question counts, served or not; what is already known of her space; a bound draft; whether it may start; `update` on her and on its place, logged","security":[{"bearerAuth":[]}],"parameters":[{"schema":{"type":"string","format":"uuid"},"required":true,"name":"personId","in":"path"},{"schema":{"type":"string","format":"uuid"},"required":true,"name":"handle","in":"path"}],"responses":{"200":{"description":"The landing.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ProcessAssessLanding"}}}},"401":{"description":"Missing or invalid access token (`unauthenticated`).","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorEnvelope"}}}},"403":{"description":"No organisation in the token (`no_organisation_context`), or not permitted (`forbidden`).","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorEnvelope"}}}},"404":{"description":"Not found, or not visible to the caller.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorEnvelope"}}}},"422":{"description":"Invalid request.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorEnvelope"}}}},"503":{"description":"`canon_refused`: the definitions were refused, or none is vendored; or `people_unavailable`: the key words are sealed with is not set.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorEnvelope"}}}}}}},"/organisations/current/people/{personId}/processes/{handle}/results/{section}":{"get":{"tags":["assessments"],"summary":"One section of the set bound to a process on her residency, read-only: each question asked, in the canon’s words, and its answer as sealed; `update` on her and on its place, logged","security":[{"bearerAuth":[]}],"parameters":[{"schema":{"type":"string","format":"uuid"},"required":true,"name":"personId","in":"path"},{"schema":{"type":"string","format":"uuid"},"required":true,"name":"handle","in":"path"},{"schema":{"type":"string","minLength":1,"maxLength":80},"required":true,"name":"section","in":"path"}],"responses":{"200":{"description":"The section, as sealed.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ProcessSealedSection"}}}},"401":{"description":"Missing or invalid access token (`unauthenticated`).","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorEnvelope"}}}},"403":{"description":"No organisation in the token (`no_organisation_context`), or not permitted (`forbidden`).","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorEnvelope"}}}},"404":{"description":"Not found, or not visible to the caller.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorEnvelope"}}}},"422":{"description":"Invalid request.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorEnvelope"}}}},"503":{"description":"`canon_refused`: the definitions were refused, or none is vendored; or `people_unavailable`: the key words are sealed with is not set.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorEnvelope"}}}}}}},"/organisations/current/people/{personId}/processes/{handle}/run":{"post":{"tags":["assessments"],"summary":"Start the served definition with her: a run on her residency, bound to this process record; the record first follows the served version while nothing is sealed; once sealed and its answers unlocked, the correction pre-filled from the locked set, opened or carried on; `update` on her and on its place","security":[{"bearerAuth":[]}],"parameters":[{"schema":{"type":"string","format":"uuid"},"required":true,"name":"personId","in":"path"},{"schema":{"type":"string","format":"uuid"},"required":true,"name":"handle","in":"path"}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ProcessStartOnResidency"}}}},"responses":{"201":{"description":"The run, opened or carried on.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ProcessStartedOnResidency"}}}},"401":{"description":"Missing or invalid access token (`unauthenticated`).","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorEnvelope"}}}},"403":{"description":"No organisation in the token (`no_organisation_context`), or not permitted (`forbidden`).","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorEnvelope"}}}},"404":{"description":"Not found, or not visible to the caller.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorEnvelope"}}}},"409":{"description":"`not_served`, `not_asked`, `not_consented`, `already_sealed` (unlock the answers first, with a reason, to correct them), `process_ended`, `nothing_published` or `residency_closed`.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorEnvelope"}}}},"422":{"description":"`unknown_role`.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorEnvelope"}}}},"503":{"description":"`canon_refused`: the definitions were refused, or none is vendored; or `people_unavailable`: the key words are sealed with is not set.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorEnvelope"}}}}}}},"/organisations/current/quote-types":{"get":{"tags":["registrations"],"summary":"What can be registered, with each one’s questions as JSON Schema","security":[{"bearerAuth":[]}],"responses":{"200":{"description":"The quote types.","content":{"application/json":{"schema":{"type":"object","properties":{"items":{"type":"array","items":{"$ref":"#/components/schemas/QuoteType"}}},"required":["items"]}}}},"401":{"description":"Missing or invalid access token (`unauthenticated`).","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorEnvelope"}}}},"403":{"description":"No organisation in the token (`no_organisation_context`), or not permitted (`forbidden`).","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorEnvelope"}}}},"404":{"description":"Not found, or not visible to the caller.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorEnvelope"}}}},"422":{"description":"Invalid request.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorEnvelope"}}}}}}},"/organisations/current/quotes":{"post":{"tags":["registrations"],"summary":"Price something to register, from inside the app","security":[{"bearerAuth":[]}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/QuoteRequest"}}}},"responses":{"201":{"description":"The quote, valid for thirty days.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Quote"}}}},"401":{"description":"Missing or invalid access token (`unauthenticated`).","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorEnvelope"}}}},"403":{"description":"No organisation in the token (`no_organisation_context`), or not permitted (`forbidden`).","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorEnvelope"}}}},"404":{"description":"Not found, or not visible to the caller.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorEnvelope"}}}},"422":{"description":"`unknown_quote_type`, `invalid_quote_inputs`, or an invalid body.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorEnvelope"}}}}}}},"/organisations/current/checkout":{"post":{"tags":["registrations"],"summary":"Pay for quotes: Checkout, an immediate charge on the existing subscription, or an invoice","security":[{"bearerAuth":[]}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/CheckoutRequest"}}}},"responses":{"200":{"description":"Where to pay, that it was charged, or that an invoice follows.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/CheckoutStart"}}}},"401":{"description":"Missing or invalid access token (`unauthenticated`).","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorEnvelope"}}}},"403":{"description":"No organisation in the token (`no_organisation_context`), or not permitted (`forbidden`).","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorEnvelope"}}}},"404":{"description":"Not found, or not visible to the caller.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorEnvelope"}}}},"422":{"description":"`quote_not_found`, `quote_expired`, `quote_paid`, `mixed_currencies`.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorEnvelope"}}}},"501":{"description":"Billing is not configured (`billing_not_configured`).","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorEnvelope"}}}},"502":{"description":"The billing provider failed (`billing_unavailable`).","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorEnvelope"}}}}}}},"/organisations/current/registrations":{"get":{"tags":["registrations"],"summary":"The organisation’s registrations, newest first","security":[{"bearerAuth":[]}],"parameters":[{"schema":{"type":"string","format":"uuid"},"required":false,"name":"resourceId","in":"query"}],"responses":{"200":{"description":"Registrations.","content":{"application/json":{"schema":{"type":"object","properties":{"items":{"type":"array","items":{"$ref":"#/components/schemas/Registration"}}},"required":["items"]}}}},"401":{"description":"Missing or invalid access token (`unauthenticated`).","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorEnvelope"}}}},"403":{"description":"No organisation in the token (`no_organisation_context`), or not permitted (`forbidden`).","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorEnvelope"}}}},"404":{"description":"Not found, or not visible to the caller.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorEnvelope"}}}},"422":{"description":"Invalid request.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorEnvelope"}}}}}}},"/organisations/current/registrations/{registrationId}":{"get":{"tags":["registrations"],"summary":"One registration","security":[{"bearerAuth":[]}],"parameters":[{"schema":{"type":"string","format":"uuid"},"required":true,"name":"registrationId","in":"path"}],"responses":{"200":{"description":"The registration.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Registration"}}}},"401":{"description":"Missing or invalid access token (`unauthenticated`).","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorEnvelope"}}}},"403":{"description":"No organisation in the token (`no_organisation_context`), or not permitted (`forbidden`).","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorEnvelope"}}}},"404":{"description":"Not found, or not visible to the caller.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorEnvelope"}}}},"422":{"description":"Invalid request.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorEnvelope"}}}}}}},"/organisations/current/registrations/{registrationId}/certificate":{"get":{"tags":["registrations"],"summary":"What the certificate page prints","security":[{"bearerAuth":[]}],"parameters":[{"schema":{"type":"string","format":"uuid"},"required":true,"name":"registrationId","in":"path"}],"responses":{"200":{"description":"The certificate.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/RegistrationCertificate"}}}},"401":{"description":"Missing or invalid access token (`unauthenticated`).","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorEnvelope"}}}},"403":{"description":"No organisation in the token (`no_organisation_context`), or not permitted (`forbidden`).","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorEnvelope"}}}},"404":{"description":"Not found, or not visible to the caller.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorEnvelope"}}}},"422":{"description":"Invalid request.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorEnvelope"}}}}}}},"/organisations/current/registrations/{registrationId}/true-up/checkout":{"post":{"tags":["registrations"],"summary":"Pay the difference on a registration that needs a top-up","security":[{"bearerAuth":[]}],"parameters":[{"schema":{"type":"string","format":"uuid"},"required":true,"name":"registrationId","in":"path"}],"responses":{"200":{"description":"Charged to the card on file, or the invoice page to pay on.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/TrueUpStart"}}}},"401":{"description":"Missing or invalid access token (`unauthenticated`).","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorEnvelope"}}}},"403":{"description":"No organisation in the token (`no_organisation_context`), or not permitted (`forbidden`).","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorEnvelope"}}}},"404":{"description":"Not found, or not visible to the caller.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorEnvelope"}}}},"409":{"description":"`no_true_up_due` or `no_subscription`.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorEnvelope"}}}},"422":{"description":"Invalid request.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorEnvelope"}}}},"501":{"description":"Billing is not configured (`billing_not_configured`).","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorEnvelope"}}}},"502":{"description":"The billing provider failed (`billing_unavailable`).","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorEnvelope"}}}}}}},"/public/quotes":{"post":{"tags":["public"],"summary":"Price something to register (the marketing calculator); stores nothing personal","requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/QuoteRequest"}}}},"responses":{"201":{"description":"The quote, valid for thirty days.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Quote"}}}},"403":{"description":"Not an allowed origin (`origin_not_allowed`).","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorEnvelope"}}}},"404":{"description":"The public endpoints are closed.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorEnvelope"}}}},"422":{"description":"`unknown_quote_type`, `invalid_quote_inputs`, or an invalid body.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorEnvelope"}}}},"429":{"description":"Too many requests (`rate_limited`).","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorEnvelope"}}}}}}},"/public/checkout":{"post":{"tags":["public"],"summary":"Pay for quotes: a Stripe Checkout URL, or (ten or more) invoicing set up instead","requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/PublicCheckoutRequest"}}}},"responses":{"200":{"description":"Where to send the customer, or that an invoice follows.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/CheckoutStart"}}}},"403":{"description":"Not an allowed origin (`origin_not_allowed`).","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorEnvelope"}}}},"404":{"description":"The public endpoints are closed.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorEnvelope"}}}},"422":{"description":"`quote_not_found`, `quote_expired`, `quote_paid`, `mixed_currencies`, `invoice_details_required`, `cancel_url_not_allowed`.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorEnvelope"}}}},"429":{"description":"Too many requests (`rate_limited`).","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorEnvelope"}}}},"501":{"description":"Billing is not configured (`billing_not_configured`).","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorEnvelope"}}}},"502":{"description":"The billing provider failed (`billing_unavailable`).","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorEnvelope"}}}}}}},"/public/checkout/{sessionId}":{"get":{"tags":["public"],"summary":"What a paid checkout issued: numbers and receipt sentences, and the email’s domain only","parameters":[{"schema":{"type":"string","pattern":"^cs_[A-Za-z0-9_]{1,200}$"},"required":true,"name":"sessionId","in":"path"}],"responses":{"200":{"description":"`unpaid`, `processing` (the webhook has not arrived yet) or `issued`.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/CheckoutStatus"}}}},"403":{"description":"Not an allowed origin (`origin_not_allowed`).","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorEnvelope"}}}},"404":{"description":"No such checkout.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorEnvelope"}}}},"429":{"description":"Too many requests (`rate_limited`).","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorEnvelope"}}}},"501":{"description":"Billing is not configured (`billing_not_configured`).","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorEnvelope"}}}}}}},"/public/pages/{ref}":{"get":{"tags":["public"],"summary":"A place’s public page, with no sign-in: its name and address, and what to do and where to go; nothing else","parameters":[{"schema":{"type":"string"},"required":true,"name":"ref","in":"path"}],"responses":{"200":{"description":"The page as last published, and the link of its open code.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/PublicPageServed"}}}},"403":{"description":"A browser call from another site (`origin_not_allowed`).","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorEnvelope"}}}},"404":{"description":"Any reference that opens nothing (`page_not_available`), alike.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorEnvelope"}}}},"429":{"description":"Too many requests for references not held as published (`rate_limited`).","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorEnvelope"}}}}}}},"/organisations/lookup":{"get":{"tags":["engagements"],"summary":"Find an organisation by slug, to engage it (`engagements:manage`)","security":[{"bearerAuth":[]}],"parameters":[{"schema":{"type":"string","minLength":1,"maxLength":120},"required":true,"name":"slug","in":"query"}],"responses":{"200":{"description":"Its id and name — nothing else is revealed.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ProviderLookup"}}}},"401":{"description":"Missing or invalid access token (`unauthenticated`).","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorEnvelope"}}}},"403":{"description":"No organisation in the token (`no_organisation_context`), or not permitted (`forbidden`).","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorEnvelope"}}}},"404":{"description":"Not found, or not visible to the caller.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorEnvelope"}}}},"422":{"description":"Invalid request.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorEnvelope"}}}}}}},"/organisations/current/engagements":{"get":{"tags":["engagements"],"summary":"Engagements this organisation is a party to, newest first","security":[{"bearerAuth":[]}],"responses":{"200":{"description":"Engagements.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/EngagementList"}}}},"401":{"description":"Missing or invalid access token (`unauthenticated`).","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorEnvelope"}}}},"403":{"description":"No organisation in the token (`no_organisation_context`), or not permitted (`forbidden`).","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorEnvelope"}}}},"404":{"description":"Not found, or not visible to the caller.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorEnvelope"}}}},"422":{"description":"Invalid request.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorEnvelope"}}}}}},"post":{"tags":["engagements"],"summary":"Engage another organisation by slug; immediately active","security":[{"bearerAuth":[]}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/CreateEngagement"}}}},"responses":{"201":{"description":"The engagement.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Engagement"}}}},"401":{"description":"Missing or invalid access token (`unauthenticated`).","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorEnvelope"}}}},"403":{"description":"No organisation in the token (`no_organisation_context`), or not permitted (`forbidden`).","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorEnvelope"}}}},"404":{"description":"Not found, or not visible to the caller.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorEnvelope"}}}},"409":{"description":"`engagement_exists` — there is already an active engagement with them.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorEnvelope"}}}},"422":{"description":"`same_organisation` or `invalid_title`.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorEnvelope"}}}}}}},"/organisations/current/engagements/{engagementId}":{"get":{"tags":["engagements"],"summary":"One engagement; the client also sees what it has shared","security":[{"bearerAuth":[]}],"parameters":[{"schema":{"type":"string","format":"uuid"},"required":true,"name":"engagementId","in":"path"}],"responses":{"200":{"description":"The engagement.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/EngagementDetail"}}}},"401":{"description":"Missing or invalid access token (`unauthenticated`).","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorEnvelope"}}}},"403":{"description":"No organisation in the token (`no_organisation_context`), or not permitted (`forbidden`).","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorEnvelope"}}}},"404":{"description":"Not found, or not visible to the caller.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorEnvelope"}}}},"422":{"description":"Invalid request.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorEnvelope"}}}}}}},"/organisations/current/engagements/{engagementId}/end":{"post":{"tags":["engagements"],"summary":"End an engagement (either side); every share closes with it","security":[{"bearerAuth":[]}],"parameters":[{"schema":{"type":"string","format":"uuid"},"required":true,"name":"engagementId","in":"path"}],"requestBody":{"required":false,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/EndEngagement"}}}},"responses":{"200":{"description":"Ended.","content":{"application/json":{"schema":{"type":"object","properties":{"id":{"type":"string","format":"uuid"},"status":{"type":"string","enum":["ended"]},"sharesClosed":{"type":"integer"}},"required":["id","status","sharesClosed"]}}}},"401":{"description":"Missing or invalid access token (`unauthenticated`).","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorEnvelope"}}}},"403":{"description":"No organisation in the token (`no_organisation_context`), or not permitted (`forbidden`).","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorEnvelope"}}}},"404":{"description":"Not found, or not visible to the caller.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorEnvelope"}}}},"409":{"description":"`engagement_ended` — it had already ended.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorEnvelope"}}}},"422":{"description":"Invalid request.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorEnvelope"}}}}}}},"/organisations/current/engagements/{engagementId}/shares":{"post":{"tags":["engagements"],"summary":"Share one of your resources into the channel, read-only","security":[{"bearerAuth":[]}],"parameters":[{"schema":{"type":"string","format":"uuid"},"required":true,"name":"engagementId","in":"path"}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ShareResource"}}}},"responses":{"201":{"description":"The share.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Share"}}}},"401":{"description":"Missing or invalid access token (`unauthenticated`).","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorEnvelope"}}}},"403":{"description":"No organisation in the token (`no_organisation_context`), or not permitted (`forbidden`).","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorEnvelope"}}}},"404":{"description":"Not found, or not visible to the caller.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorEnvelope"}}}},"409":{"description":"`already_shared` or `engagement_ended`.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorEnvelope"}}}},"422":{"description":"`resource_not_yours`.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorEnvelope"}}}}}}},"/organisations/current/engagements/{engagementId}/shares/{shareId}":{"delete":{"tags":["engagements"],"summary":"Take a share back; the provider loses read at once","security":[{"bearerAuth":[]}],"parameters":[{"schema":{"type":"string","format":"uuid"},"required":true,"name":"engagementId","in":"path"},{"schema":{"type":"string","format":"uuid"},"required":true,"name":"shareId","in":"path"}],"responses":{"200":{"description":"The revoked share.","content":{"application/json":{"schema":{"type":"object","properties":{"id":{"type":"string","format":"uuid"},"resourceId":{"type":"string","format":"uuid"},"revoked":{"type":"boolean","enum":[true]}},"required":["id","resourceId","revoked"]}}}},"401":{"description":"Missing or invalid access token (`unauthenticated`).","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorEnvelope"}}}},"403":{"description":"No organisation in the token (`no_organisation_context`), or not permitted (`forbidden`).","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorEnvelope"}}}},"404":{"description":"Not found, or not visible to the caller.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorEnvelope"}}}},"409":{"description":"`share_revoked` or `engagement_ended`.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorEnvelope"}}}},"422":{"description":"Invalid request.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorEnvelope"}}}}}}},"/organisations/current/engagements/{engagementId}/shared":{"get":{"tags":["engagements"],"summary":"What the client has shared with you: five fields, never grants, members or audit","security":[{"bearerAuth":[]}],"parameters":[{"schema":{"type":"string","format":"uuid"},"required":true,"name":"engagementId","in":"path"}],"responses":{"200":{"description":"The shared resources.","content":{"application/json":{"schema":{"type":"object","properties":{"items":{"type":"array","items":{"$ref":"#/components/schemas/SharedProjection"}}},"required":["items"]}}}},"401":{"description":"Missing or invalid access token (`unauthenticated`).","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorEnvelope"}}}},"403":{"description":"`not_the_provider` — only the provider reads this.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorEnvelope"}}}},"404":{"description":"Not found, or not visible to the caller.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorEnvelope"}}}},"422":{"description":"Invalid request.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorEnvelope"}}}}}}},"/organisations/current/engagements/{engagementId}/returns":{"post":{"tags":["engagements"],"summary":"Return material to the client; it lands in their organisation with attribution","security":[{"bearerAuth":[]}],"parameters":[{"schema":{"type":"string","format":"uuid"},"required":true,"name":"engagementId","in":"path"}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ReturnMaterial"}}}},"responses":{"201":{"description":"What landed.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ReceivedMaterial"}}}},"401":{"description":"Missing or invalid access token (`unauthenticated`).","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorEnvelope"}}}},"403":{"description":"`not_the_provider` — only the provider returns material.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorEnvelope"}}}},"404":{"description":"Not found, or not visible to the caller.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorEnvelope"}}}},"409":{"description":"`engagement_ended`.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorEnvelope"}}}},"422":{"description":"`resource_not_shared` or `invalid_material`.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorEnvelope"}}}}}}},"/organisations/current/resources/{resourceId}/material":{"get":{"tags":["engagements"],"summary":"What providers have returned about this resource, read-only","security":[{"bearerAuth":[]}],"parameters":[{"schema":{"type":"string","format":"uuid"},"required":true,"name":"resourceId","in":"path"}],"responses":{"200":{"description":"Received material.","content":{"application/json":{"schema":{"type":"object","properties":{"items":{"type":"array","items":{"$ref":"#/components/schemas/ReceivedMaterial"}}},"required":["items"]}}}},"401":{"description":"Missing or invalid access token (`unauthenticated`).","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorEnvelope"}}}},"403":{"description":"No organisation in the token (`no_organisation_context`), or not permitted (`forbidden`).","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorEnvelope"}}}},"404":{"description":"Not found, or not visible to the caller.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorEnvelope"}}}},"422":{"description":"Invalid request.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorEnvelope"}}}}}}},"/organisations/current/audit":{"get":{"tags":["lifecycle"],"summary":"The organisation’s audit log, newest first (`audit:read`)","security":[{"bearerAuth":[]}],"parameters":[{"schema":{"type":"string"},"required":false,"name":"cursor","in":"query"},{"schema":{"type":"integer","minimum":1,"maximum":200,"default":50},"required":false,"name":"limit","in":"query"},{"schema":{"type":"string","maxLength":100,"description":"An identity id, or a system actor name."},"required":false,"description":"An identity id, or a system actor name.","name":"actor","in":"query"},{"schema":{"type":"string","format":"uuid"},"required":false,"name":"resourceId","in":"query"},{"schema":{"type":"string","maxLength":100},"required":false,"name":"action","in":"query"},{"schema":{"type":"string","format":"date-time"},"required":false,"name":"from","in":"query"},{"schema":{"type":"string","format":"date-time"},"required":false,"name":"to","in":"query"}],"responses":{"200":{"description":"A page of audit entries.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/AuditPage"}}}},"401":{"description":"Missing or invalid access token (`unauthenticated`).","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorEnvelope"}}}},"403":{"description":"No organisation in the token (`no_organisation_context`), or not permitted (`forbidden`).","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorEnvelope"}}}},"404":{"description":"Not found, or not visible to the caller.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorEnvelope"}}}},"422":{"description":"Invalid request.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorEnvelope"}}}}}}},"/organisations/current/resources/{resourceId}/audit":{"get":{"tags":["lifecycle"],"summary":"One resource’s own history, for whoever can read it","security":[{"bearerAuth":[]}],"parameters":[{"schema":{"type":"string","format":"uuid"},"required":true,"name":"resourceId","in":"path"},{"schema":{"type":"string"},"required":false,"name":"cursor","in":"query"},{"schema":{"type":"integer","minimum":1,"maximum":200,"default":50},"required":false,"name":"limit","in":"query"}],"responses":{"200":{"description":"A page of audit entries.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/AuditPage"}}}},"401":{"description":"Missing or invalid access token (`unauthenticated`).","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorEnvelope"}}}},"403":{"description":"No organisation in the token (`no_organisation_context`), or not permitted (`forbidden`).","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorEnvelope"}}}},"404":{"description":"Not found, or not visible to the caller.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorEnvelope"}}}},"422":{"description":"Invalid request.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorEnvelope"}}}}}}},"/organisations/current/erasure-requests":{"get":{"tags":["lifecycle"],"summary":"Erasure requests, open ones first (`erasure:action`)","security":[{"bearerAuth":[]}],"responses":{"200":{"description":"Erasure requests.","content":{"application/json":{"schema":{"type":"object","properties":{"items":{"type":"array","items":{"$ref":"#/components/schemas/ErasureRequestDetail"}}},"required":["items"]}}}},"401":{"description":"Missing or invalid access token (`unauthenticated`).","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorEnvelope"}}}},"403":{"description":"No organisation in the token (`no_organisation_context`), or not permitted (`forbidden`).","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorEnvelope"}}}},"404":{"description":"Not found, or not visible to the caller.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorEnvelope"}}}},"422":{"description":"Invalid request.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorEnvelope"}}}}}},"post":{"tags":["lifecycle"],"summary":"Record an erasure request that has arrived; its response is due a calendar month later","security":[{"bearerAuth":[]}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/NewErasureRequest"}}}},"responses":{"201":{"description":"The request.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErasureRequest"}}}},"401":{"description":"Missing or invalid access token (`unauthenticated`).","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorEnvelope"}}}},"403":{"description":"No organisation in the token (`no_organisation_context`), or not permitted (`forbidden`).","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorEnvelope"}}}},"404":{"description":"Not found, or not visible to the caller.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorEnvelope"}}}},"422":{"description":"`unknown_subject`, `invalid_requested_at` or an invalid body.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorEnvelope"}}}}}}},"/organisations/current/erasure-requests/{erasureRequestId}":{"get":{"tags":["lifecycle"],"summary":"One erasure request, its subject, and what has been tombstoned under it","security":[{"bearerAuth":[]}],"parameters":[{"schema":{"type":"string","format":"uuid"},"required":true,"name":"erasureRequestId","in":"path"}],"responses":{"200":{"description":"The request.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErasureRequestDetail"}}}},"401":{"description":"Missing or invalid access token (`unauthenticated`).","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorEnvelope"}}}},"403":{"description":"No organisation in the token (`no_organisation_context`), or not permitted (`forbidden`).","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorEnvelope"}}}},"404":{"description":"Not found, or not visible to the caller.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorEnvelope"}}}},"422":{"description":"Invalid request.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorEnvelope"}}}}}}},"/organisations/current/erasure-requests/{erasureRequestId}/review":{"post":{"tags":["lifecycle"],"summary":"Take a received request under review; tombstoning under it is possible from here","security":[{"bearerAuth":[]}],"parameters":[{"schema":{"type":"string","format":"uuid"},"required":true,"name":"erasureRequestId","in":"path"}],"requestBody":{"required":false,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ReviewErasureRequest"}}}},"responses":{"200":{"description":"The request.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErasureRequest"}}}},"401":{"description":"Missing or invalid access token (`unauthenticated`).","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorEnvelope"}}}},"403":{"description":"No organisation in the token (`no_organisation_context`), or not permitted (`forbidden`).","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorEnvelope"}}}},"404":{"description":"Not found, or not visible to the caller.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorEnvelope"}}}},"409":{"description":"`invalid_transition` — it is not newly received.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorEnvelope"}}}},"422":{"description":"Invalid request.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorEnvelope"}}}}}}},"/organisations/current/erasure-requests/{erasureRequestId}/action":{"post":{"tags":["lifecycle"],"summary":"Close a request as actioned, recording the decision","security":[{"bearerAuth":[]}],"parameters":[{"schema":{"type":"string","format":"uuid"},"required":true,"name":"erasureRequestId","in":"path"}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErasureDecision"}}}},"responses":{"200":{"description":"The request.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErasureRequest"}}}},"401":{"description":"Missing or invalid access token (`unauthenticated`).","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorEnvelope"}}}},"403":{"description":"No organisation in the token (`no_organisation_context`), or not permitted (`forbidden`).","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorEnvelope"}}}},"404":{"description":"Not found, or not visible to the caller.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorEnvelope"}}}},"409":{"description":"`invalid_transition` — it is not under review.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorEnvelope"}}}},"422":{"description":"`invalid_decision` or `lawful_basis_required`.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorEnvelope"}}}}}}},"/organisations/current/erasure-requests/{erasureRequestId}/refuse":{"post":{"tags":["lifecycle"],"summary":"Refuse a request, recording the lawful basis for keeping the data","security":[{"bearerAuth":[]}],"parameters":[{"schema":{"type":"string","format":"uuid"},"required":true,"name":"erasureRequestId","in":"path"}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErasureDecision"}}}},"responses":{"200":{"description":"The request.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErasureRequest"}}}},"401":{"description":"Missing or invalid access token (`unauthenticated`).","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorEnvelope"}}}},"403":{"description":"No organisation in the token (`no_organisation_context`), or not permitted (`forbidden`).","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorEnvelope"}}}},"404":{"description":"Not found, or not visible to the caller.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorEnvelope"}}}},"409":{"description":"`invalid_transition` — it is already closed.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorEnvelope"}}}},"422":{"description":"`invalid_decision` or `lawful_basis_required`.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorEnvelope"}}}}}}},"/organisations/current/export":{"post":{"tags":["lifecycle"],"summary":"Everything the organisation holds, as one JSON document (`data:export`)","security":[{"bearerAuth":[]}],"responses":{"200":{"description":"The export.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/OrganisationExport"}}}},"401":{"description":"Missing or invalid access token (`unauthenticated`).","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorEnvelope"}}}},"403":{"description":"No organisation in the token (`no_organisation_context`), or not permitted (`forbidden`).","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorEnvelope"}}}},"404":{"description":"Not found, or not visible to the caller.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorEnvelope"}}}},"422":{"description":"Invalid request.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorEnvelope"}}}}}}},"/backoffice/session":{"get":{"tags":["backoffice"],"summary":"Whether the caller may use the back-office","security":[{"bearerAuth":[]}],"responses":{"200":{"description":"Allowed.","content":{"application/json":{"schema":{"type":"object","properties":{"email":{"type":"string"}},"required":["email"]}}}},"401":{"description":"Missing or invalid access token (`unauthenticated`).","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorEnvelope"}}}},"403":{"description":"Allow-listed, but not signed in within the last eighteen hours (`recent_sign_in_required`).","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorEnvelope"}}}},"404":{"description":"Not allow-listed — the back-office does not exist for this caller — or no such row.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorEnvelope"}}}}}}},"/backoffice/organisations":{"get":{"tags":["backoffice"],"summary":"Every organisation, as a row","security":[{"bearerAuth":[]}],"responses":{"200":{"description":"Organisations.","content":{"application/json":{"schema":{"type":"object","properties":{"items":{"type":"array","items":{"$ref":"#/components/schemas/BackofficeOrganisation"}}},"required":["items"]}}}},"401":{"description":"Missing or invalid access token (`unauthenticated`).","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorEnvelope"}}}},"403":{"description":"Allow-listed, but not signed in within the last eighteen hours (`recent_sign_in_required`).","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorEnvelope"}}}},"404":{"description":"Not allow-listed — the back-office does not exist for this caller — or no such row.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorEnvelope"}}}}}}},"/backoffice/organisations/{organisationId}/archive":{"post":{"tags":["backoffice"],"summary":"Archive an organisation; audited in its log as the back-office","security":[{"bearerAuth":[]}],"parameters":[{"schema":{"type":"string","format":"uuid"},"required":true,"name":"organisationId","in":"path"}],"requestBody":{"required":false,"content":{"application/json":{"schema":{"type":"object","properties":{"reason":{"type":"string","maxLength":500}},"additionalProperties":false}}}},"responses":{"200":{"description":"Archived.","content":{"application/json":{"schema":{"type":"object","properties":{"id":{"type":"string","format":"uuid"},"archived":{"type":"boolean","enum":[true]}},"required":["id","archived"]}}}},"401":{"description":"Missing or invalid access token (`unauthenticated`).","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorEnvelope"}}}},"403":{"description":"Allow-listed, but not signed in within the last eighteen hours (`recent_sign_in_required`).","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorEnvelope"}}}},"404":{"description":"Not allow-listed — the back-office does not exist for this caller — or no such row.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorEnvelope"}}}}}}},"/backoffice/organisations/{organisationId}/restore":{"post":{"tags":["backoffice"],"summary":"Restore an archived organisation","security":[{"bearerAuth":[]}],"parameters":[{"schema":{"type":"string","format":"uuid"},"required":true,"name":"organisationId","in":"path"}],"responses":{"200":{"description":"Restored.","content":{"application/json":{"schema":{"type":"object","properties":{"id":{"type":"string","format":"uuid"},"archived":{"type":"boolean","enum":[false]}},"required":["id","archived"]}}}},"401":{"description":"Missing or invalid access token (`unauthenticated`).","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorEnvelope"}}}},"403":{"description":"Allow-listed, but not signed in within the last eighteen hours (`recent_sign_in_required`).","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorEnvelope"}}}},"404":{"description":"Not allow-listed — the back-office does not exist for this caller — or no such row.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorEnvelope"}}}}}}},"/backoffice/organisations/{organisationId}/export":{"post":{"tags":["backoffice"],"summary":"The organisation’s export, on its behalf","security":[{"bearerAuth":[]}],"parameters":[{"schema":{"type":"string","format":"uuid"},"required":true,"name":"organisationId","in":"path"}],"responses":{"200":{"description":"The export.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/OrganisationExport"}}}},"401":{"description":"Missing or invalid access token (`unauthenticated`).","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorEnvelope"}}}},"403":{"description":"Allow-listed, but not signed in within the last eighteen hours (`recent_sign_in_required`).","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorEnvelope"}}}},"404":{"description":"Not allow-listed — the back-office does not exist for this caller — or no such row.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorEnvelope"}}}}}}},"/backoffice/identities":{"get":{"tags":["backoffice"],"summary":"Identities, as rows","security":[{"bearerAuth":[]}],"responses":{"200":{"description":"Identities.","content":{"application/json":{"schema":{"type":"object","properties":{"items":{"type":"array","items":{"$ref":"#/components/schemas/BackofficeIdentity"}}},"required":["items"]}}}},"401":{"description":"Missing or invalid access token (`unauthenticated`).","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorEnvelope"}}}},"403":{"description":"Allow-listed, but not signed in within the last eighteen hours (`recent_sign_in_required`).","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorEnvelope"}}}},"404":{"description":"Not allow-listed — the back-office does not exist for this caller — or no such row.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorEnvelope"}}}}}}},"/backoffice/purge-runs":{"get":{"tags":["backoffice"],"summary":"Retention scans and purges, newest first","security":[{"bearerAuth":[]}],"responses":{"200":{"description":"Runs.","content":{"application/json":{"schema":{"type":"object","properties":{"items":{"type":"array","items":{"$ref":"#/components/schemas/BackofficePurgeRun"}}},"required":["items"]}}}},"401":{"description":"Missing or invalid access token (`unauthenticated`).","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorEnvelope"}}}},"403":{"description":"Allow-listed, but not signed in within the last eighteen hours (`recent_sign_in_required`).","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorEnvelope"}}}},"404":{"description":"Not allow-listed — the back-office does not exist for this caller — or no such row.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorEnvelope"}}}}}},"post":{"tags":["backoffice"],"summary":"Run the retention scan (dry run, the default) or, with `confirm: \"purge\"`, the purge","security":[{"bearerAuth":[]}],"requestBody":{"required":false,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/PurgeRequest"}}}},"responses":{"201":{"description":"The run.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/BackofficePurgeRun"}}}},"401":{"description":"Missing or invalid access token (`unauthenticated`).","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorEnvelope"}}}},"403":{"description":"Allow-listed, but not signed in within the last eighteen hours (`recent_sign_in_required`).","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorEnvelope"}}}},"404":{"description":"Not allow-listed — the back-office does not exist for this caller — or no such row.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorEnvelope"}}}},"422":{"description":"`purge_confirmation_required` — a real run needs `confirm: \"purge\"`.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorEnvelope"}}}}}}},"/backoffice/billing-events":{"get":{"tags":["backoffice"],"summary":"Billing events, as rows — never their payloads","security":[{"bearerAuth":[]}],"responses":{"200":{"description":"Events.","content":{"application/json":{"schema":{"type":"object","properties":{"items":{"type":"array","items":{"$ref":"#/components/schemas/BackofficeBillingEvent"}}},"required":["items"]}}}},"401":{"description":"Missing or invalid access token (`unauthenticated`).","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorEnvelope"}}}},"403":{"description":"Allow-listed, but not signed in within the last eighteen hours (`recent_sign_in_required`).","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorEnvelope"}}}},"404":{"description":"Not allow-listed — the back-office does not exist for this caller — or no such row.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorEnvelope"}}}}}}},"/backoffice/registrations":{"get":{"tags":["backoffice"],"summary":"Registrations as rows, by status, and the paid checkouts and refunds that need a person","security":[{"bearerAuth":[]}],"parameters":[{"schema":{"type":"string","maxLength":200},"required":false,"name":"status","in":"query"}],"responses":{"200":{"description":"Registrations.","content":{"application/json":{"schema":{"type":"object","properties":{"items":{"type":"array","items":{"$ref":"#/components/schemas/BackofficeRegistration"}},"attention":{"type":"array","items":{"$ref":"#/components/schemas/BackofficeBillingAttention"}}},"required":["items","attention"]}}}},"401":{"description":"Missing or invalid access token (`unauthenticated`).","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorEnvelope"}}}},"403":{"description":"Allow-listed, but not signed in within the last eighteen hours (`recent_sign_in_required`).","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorEnvelope"}}}},"404":{"description":"Not allow-listed — the back-office does not exist for this caller — or no such row.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorEnvelope"}}}}}}},"/backoffice/registrations/{registrationId}/refund":{"post":{"tags":["backoffice"],"summary":"The sixty-day guarantee: refund what was paid and end the registration","security":[{"bearerAuth":[]}],"parameters":[{"schema":{"type":"string","format":"uuid"},"required":true,"name":"registrationId","in":"path"}],"responses":{"200":{"description":"Refunded.","content":{"application/json":{"schema":{"type":"object","properties":{"id":{"type":"string","format":"uuid"},"status":{"type":"string","enum":["refunded"]},"refundedAt":{"type":["string","null"]}},"required":["id","status","refundedAt"]}}}},"401":{"description":"Missing or invalid access token (`unauthenticated`).","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorEnvelope"}}}},"403":{"description":"Allow-listed, but not signed in within the last eighteen hours (`recent_sign_in_required`).","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorEnvelope"}}}},"404":{"description":"Not allow-listed — the back-office does not exist for this caller — or no such row.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorEnvelope"}}}},"409":{"description":"`guarantee_ended`, `not_refundable` or `no_payment_found`.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorEnvelope"}}}},"501":{"description":"Billing is not configured (`billing_not_configured`).","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorEnvelope"}}}},"502":{"description":"The billing provider failed (`billing_unavailable`).","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorEnvelope"}}}}}}},"/backoffice/organisations/{organisationId}/billing-mode":{"post":{"tags":["backoffice"],"summary":"Pay by card (`self_serve`) or by invoice (`invoiced`)","security":[{"bearerAuth":[]}],"parameters":[{"schema":{"type":"string","format":"uuid"},"required":true,"name":"organisationId","in":"path"}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/BillingModeRequest"}}}},"responses":{"200":{"description":"The billing mode.","content":{"application/json":{"schema":{"type":"object","properties":{"id":{"type":"string","format":"uuid"},"billingMode":{"type":"string","enum":["self_serve","invoiced"]}},"required":["id","billingMode"]}}}},"401":{"description":"Missing or invalid access token (`unauthenticated`).","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorEnvelope"}}}},"403":{"description":"Allow-listed, but not signed in within the last eighteen hours (`recent_sign_in_required`).","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorEnvelope"}}}},"404":{"description":"Not allow-listed — the back-office does not exist for this caller — or no such row.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorEnvelope"}}}}}}},"/backoffice/erasure-requests":{"get":{"tags":["backoffice"],"summary":"Erasure requests across every organisation","security":[{"bearerAuth":[]}],"responses":{"200":{"description":"Requests.","content":{"application/json":{"schema":{"type":"object","properties":{"items":{"type":"array","items":{"$ref":"#/components/schemas/ErasureRequest"}}},"required":["items"]}}}},"401":{"description":"Missing or invalid access token (`unauthenticated`).","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorEnvelope"}}}},"403":{"description":"Allow-listed, but not signed in within the last eighteen hours (`recent_sign_in_required`).","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorEnvelope"}}}},"404":{"description":"Not allow-listed — the back-office does not exist for this caller — or no such row.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorEnvelope"}}}}}},"post":{"tags":["backoffice"],"summary":"Record a request that arrived outside any organisation, and assign it to one","security":[{"bearerAuth":[]}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/OperatorErasureRequest"}}}},"responses":{"201":{"description":"The request.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErasureRequest"}}}},"401":{"description":"Missing or invalid access token (`unauthenticated`).","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorEnvelope"}}}},"403":{"description":"Allow-listed, but not signed in within the last eighteen hours (`recent_sign_in_required`).","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorEnvelope"}}}},"404":{"description":"Not allow-listed — the back-office does not exist for this caller — or no such row.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorEnvelope"}}}},"422":{"description":"`unknown_subject` or an invalid body.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorEnvelope"}}}}}}},"/backoffice/catalogue/versions":{"get":{"tags":["backoffice"],"summary":"The catalogue’s versions: draft or signed, started from, counts, when and by whom","security":[{"bearerAuth":[]}],"responses":{"200":{"description":"Versions, oldest first.","content":{"application/json":{"schema":{"type":"object","properties":{"items":{"type":"array","items":{"$ref":"#/components/schemas/CatalogueVersion"}}},"required":["items"]}}}},"401":{"description":"Missing or invalid access token (`unauthenticated`).","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorEnvelope"}}}},"403":{"description":"Allow-listed, but not signed in recently enough (`recent_sign_in_required`).","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorEnvelope"}}}},"404":{"description":"Not allow-listed — the back-office does not exist for this caller — or no such version.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorEnvelope"}}}}}}},"/backoffice/catalogue/versions/{version}/words":{"get":{"tags":["backoffice"],"summary":"A version’s words, a page at a time, by kind and section, in every voice","security":[{"bearerAuth":[]}],"parameters":[{"schema":{"type":"string","pattern":"^\\d+\\.\\d+\\.\\d+$","example":"0.2.0"},"required":true,"name":"version","in":"path"},{"schema":{"type":"string","maxLength":40,"pattern":"^[a-z_]+$"},"required":true,"name":"kind","in":"query"},{"schema":{"type":"string","maxLength":40},"required":false,"name":"section","in":"query"},{"schema":{"type":"string","maxLength":200},"required":false,"name":"after","in":"query"},{"schema":{"type":"integer","minimum":1,"maximum":200,"default":50},"required":false,"name":"limit","in":"query"}],"responses":{"200":{"description":"A page of owners and their words.","content":{"application/json":{"schema":{"type":"object","properties":{"items":{"type":"array","items":{"type":"object","properties":{"table":{"type":"string"},"id":{"type":"string"},"words":{"type":"array","items":{"type":"object","properties":{"row":{"type":"integer"},"field":{"type":"string"},"voice":{"type":"string"},"words":{"type":"string"},"status":{"type":"string"},"editable":{"type":"boolean"}},"required":["row","field","voice","words","status","editable"]}}},"required":["table","id","words"]}},"next":{"type":["string","null"]}},"required":["items","next"]}}}},"401":{"description":"Missing or invalid access token (`unauthenticated`).","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorEnvelope"}}}},"403":{"description":"Allow-listed, but not signed in recently enough (`recent_sign_in_required`).","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorEnvelope"}}}},"404":{"description":"Not allow-listed — the back-office does not exist for this caller — or no such version.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorEnvelope"}}}},"422":{"description":"`catalogue_section_not_for_kind` or an invalid query.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorEnvelope"}}}}}}},"/backoffice/catalogue/versions/{version}/outline":{"get":{"tags":["backoffice"],"summary":"A version read in the order it is asked: the sections, and for one section its questions and answers, the findings they raise and what those need, every thing by its key with its words","security":[{"bearerAuth":[]}],"parameters":[{"schema":{"type":"string","pattern":"^\\d+\\.\\d+\\.\\d+$","example":"0.2.0"},"required":true,"name":"version","in":"path"},{"schema":{"type":"string","maxLength":40},"required":false,"name":"section","in":"query"}],"responses":{"200":{"description":"The outline.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/CatalogueOutline"}}}},"401":{"description":"Missing or invalid access token (`unauthenticated`).","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorEnvelope"}}}},"403":{"description":"Allow-listed, but not signed in recently enough (`recent_sign_in_required`).","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorEnvelope"}}}},"404":{"description":"Not allow-listed — the back-office does not exist for this caller — or no such version.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorEnvelope"}}}}}}},"/backoffice/catalogue/versions/{version}/search":{"get":{"tags":["backoffice"],"summary":"A version’s words that hold the text searched for","security":[{"bearerAuth":[]}],"parameters":[{"schema":{"type":"string","pattern":"^\\d+\\.\\d+\\.\\d+$","example":"0.2.0"},"required":true,"name":"version","in":"path"},{"schema":{"type":"string","minLength":2,"maxLength":200},"required":true,"name":"q","in":"query"},{"schema":{"type":"integer","minimum":1,"maximum":200,"default":50},"required":false,"name":"limit","in":"query"}],"responses":{"200":{"description":"Words found.","content":{"application/json":{"schema":{"type":"object","properties":{"items":{"type":"array","items":{"type":"object","properties":{"row":{"type":"integer"},"field":{"type":"string"},"voice":{"type":"string"},"words":{"type":"string"},"status":{"type":"string"},"editable":{"type":"boolean"},"table":{"type":"string"},"id":{"type":"string"}},"required":["row","field","voice","words","status","editable","table","id"]}}},"required":["items"]}}}},"401":{"description":"Missing or invalid access token (`unauthenticated`).","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorEnvelope"}}}},"403":{"description":"Allow-listed, but not signed in recently enough (`recent_sign_in_required`).","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorEnvelope"}}}},"404":{"description":"Not allow-listed — the back-office does not exist for this caller — or no such version.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorEnvelope"}}}}}}},"/backoffice/catalogue/versions/{version}/checks":{"get":{"tags":["backoffice"],"summary":"The checks of a version (spec 92 §4.3): every problem, named, and the counts beside the version it was started from","security":[{"bearerAuth":[]}],"parameters":[{"schema":{"type":"string","pattern":"^\\d+\\.\\d+\\.\\d+$","example":"0.2.0"},"required":true,"name":"version","in":"path"}],"responses":{"200":{"description":"The checks.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/CatalogueChecks"}}}},"401":{"description":"Missing or invalid access token (`unauthenticated`).","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorEnvelope"}}}},"403":{"description":"Allow-listed, but not signed in recently enough (`recent_sign_in_required`).","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorEnvelope"}}}},"404":{"description":"Not allow-listed — the back-office does not exist for this caller — or no such version.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorEnvelope"}}}}}}},"/backoffice/catalogue/versions/{version}/wording":{"post":{"tags":["backoffice"],"summary":"A wording fix: the next wording version of this one, only the words named changed; audited with each change’s words","security":[{"bearerAuth":[]}],"parameters":[{"schema":{"type":"string","pattern":"^\\d+\\.\\d+\\.\\d+$","example":"0.2.0"},"required":true,"name":"version","in":"path"}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/CatalogueWordingRequest"}}}},"responses":{"201":{"description":"The new version, its changes, and its checks (shown, not blocking).","content":{"application/json":{"schema":{"$ref":"#/components/schemas/CatalogueWordingMade"}}}},"401":{"description":"Missing or invalid access token (`unauthenticated`).","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorEnvelope"}}}},"403":{"description":"Allow-listed, but not signed in recently enough (`recent_sign_in_required`).","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorEnvelope"}}}},"404":{"description":"Not allow-listed — the back-office does not exist for this caller — or no such version.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorEnvelope"}}}},"409":{"description":"`catalogue_reword_not_latest`: the line already has a later wording version.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorEnvelope"}}}},"422":{"description":"Not only words: `catalogue_reword_*`, by name.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorEnvelope"}}}}}}},"/backoffice/catalogue/versions/{version}/sign":{"post":{"tags":["backoffice"],"summary":"Sign a version from 1.0.0: a fresh sign-in, the version typed, the checks passing; held only once the code lists it","security":[{"bearerAuth":[]}],"parameters":[{"schema":{"type":"string","pattern":"^\\d+\\.\\d+\\.\\d+$","example":"0.2.0"},"required":true,"name":"version","in":"path"}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/CatalogueSignRequest"}}}},"responses":{"200":{"description":"Signed: its fingerprint, and whether the deployed code lists it.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/CatalogueSigned"}}}},"401":{"description":"Missing or invalid access token (`unauthenticated`).","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorEnvelope"}}}},"403":{"description":"Allow-listed, but not signed in recently enough (`recent_sign_in_required`).","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorEnvelope"}}}},"404":{"description":"Not allow-listed — the back-office does not exist for this caller — or no such version.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorEnvelope"}}}},"409":{"description":"`catalogue_signed`: signed already.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorEnvelope"}}}},"422":{"description":"`catalogue_confirm`, `catalogue_draft_version` or `catalogue_checks_failed` (with the problems).","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorEnvelope"}}}}}}},"/webhooks/billing":{"post":{"tags":["webhooks"],"summary":"Billing provider webhook: issues registrations and keeps the organisation’s billing details","responses":{"200":{"description":"Stored (or already stored).","content":{"application/json":{"schema":{"type":"object","properties":{"received":{"type":"boolean","enum":[true]},"duplicate":{"type":"boolean"}},"required":["received","duplicate"]}}}},"400":{"description":"Missing or invalid signature (`invalid_signature`), or an unreadable event (`invalid_event`).","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorEnvelope"}}}},"501":{"description":"Billing is not configured (`billing_not_configured`).","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorEnvelope"}}}}}}},"/tunnel/v1":{"post":{"tags":["tunnel"],"summary":"A signed message from Point Personal, answered signed: the one door between the two products","responses":{"200":{"description":"The answer, signed (`webhook-id`, `webhook-timestamp`, `webhook-signature`).","content":{"application/json":{"schema":{"$ref":"#/components/schemas/TunnelAnswer"}}}},"400":{"description":"The one refusal, the same for every reason, signed; no detail.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/TunnelAnswer"}}}},"413":{"description":"The message is over 16 KB (`payload_too_large`).","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorEnvelope"}}}},"429":{"description":"Too many requests (`rate_limited`).","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorEnvelope"}}}},"501":{"description":"The tunnel is not configured (`tunnel_not_configured`).","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorEnvelope"}}}}}}}},"webhooks":{}}