{"manifestVersion":"1","app":{"name":"orgs","version":"1.49.0","status":"live"},"actions":[{"id":"system.orgs.admins.get.v1","title":"New (5.14): the user ids of one org’s owner and admins, for addressing a system notice. Ids only.","inputSchema":{"$schema":"https://json-schema.org/draft/2020-12/schema","type":"object","properties":{"orgId":{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"}},"required":["orgId"],"additionalProperties":false},"outputSchema":{"$schema":"https://json-schema.org/draft/2020-12/schema","type":"object","properties":{"userIds":{"type":"array","items":{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"}}},"required":["userIds"],"additionalProperties":false}},{"id":"system.orgs.branding.get.v1","title":"An organization’s brand kit — colours, fonts, voice, public contact, social links — and its images as short-lived signed URLs. Public-facing branding only; no member data. colors is the light palette and also carries its page colours (background, surface, text), null when unset; colors.dark is the dark palette, null for an organization that has not saved one. Since 2026-11-12 an organization may hold several links per network (WhatsApp included) and several labelled phone numbers: socialLinks and contacts carry all of them, while socials and publicPhone keep answering with the first of each. emailFooter is retired and always null; it stays in the reply for one release so an app still on the earlier contract can read it.","inputSchema":{"$schema":"https://json-schema.org/draft/2020-12/schema","type":"object","properties":{"orgId":{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"},"actingUserId":{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"}},"required":["orgId","actingUserId"],"additionalProperties":false},"outputSchema":{"$schema":"https://json-schema.org/draft/2020-12/schema","type":"object","properties":{"orgId":{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"},"name":{"type":"string"},"kind":{"type":"string"},"colors":{"type":"object","properties":{"primary":{"type":["string","null"]},"secondary":{"type":["string","null"]},"accent":{"type":["string","null"]},"background":{"type":["string","null"]},"surface":{"type":["string","null"]},"text":{"type":["string","null"]},"dark":{"anyOf":[{"type":"object","properties":{"primary":{"type":["string","null"]},"secondary":{"type":["string","null"]},"accent":{"type":["string","null"]},"background":{"type":["string","null"]},"surface":{"type":["string","null"]},"text":{"type":["string","null"]}},"required":["primary","secondary","accent","background","surface","text"],"additionalProperties":false},{"type":"null"}]}},"required":["primary","secondary","accent"],"additionalProperties":false},"fonts":{"type":"object","properties":{"heading":{"type":["string","null"]},"body":{"type":["string","null"]}},"required":["heading","body"],"additionalProperties":false},"tagline":{"type":["string","null"]},"about":{"type":["string","null"]},"website":{"type":["string","null"]},"publicEmail":{"type":["string","null"]},"publicPhone":{"type":["string","null"]},"address":{"anyOf":[{"type":"object","properties":{"line1":{"type":["string","null"]},"line2":{"type":["string","null"]},"city":{"type":["string","null"]},"region":{"type":["string","null"]},"postalCode":{"type":["string","null"]},"country":{"type":["string","null"]}},"required":["line1","line2","city","region","postalCode","country"],"additionalProperties":false},{"type":"null"}]},"socials":{"type":"object","properties":{"facebook":{"type":["string","null"]},"linkedin":{"type":["string","null"]},"x":{"type":["string","null"]},"instagram":{"type":["string","null"]},"youtube":{"type":["string","null"]}},"required":["facebook","linkedin","x","instagram","youtube"],"additionalProperties":false},"emailFooter":{"type":["string","null"]},"socialLinks":{"type":"object","propertyNames":{"type":"string","enum":["facebook","whatsapp","instagram","youtube","linkedin","x"]},"additionalProperties":{"maxItems":5,"type":"array","items":{"type":"object","properties":{"url":{"type":"string"},"value":{"type":"string"},"label":{"type":["string","null"]}},"required":["url","value","label"],"additionalProperties":false}}},"contacts":{"maxItems":10,"type":"array","items":{"type":"object","properties":{"phone":{"type":"string"},"label":{"type":["string","null"]}},"required":["phone","label"],"additionalProperties":false}},"images":{"type":"object","properties":{"logoUrl":{"type":["string","null"]},"logoDarkUrl":{"type":["string","null"]},"markUrl":{"type":["string","null"]},"coverUrl":{"type":["string","null"]}},"required":["logoUrl","logoDarkUrl","markUrl","coverUrl"],"additionalProperties":false}},"required":["orgId","name","kind","colors","fonts","tagline","about","website","publicEmail","publicPhone","address","socials","emailFooter","images"],"additionalProperties":false}},{"id":"system.orgs.context.resolve.v1","title":"One user’s org context — role and resolved permission codes — for the token upgrade (D18, accounts), and for attendance to judge the acting user of a roll call another app forwards (2026-10-12). orgSlug also takes the org’s id.","inputSchema":{"$schema":"https://json-schema.org/draft/2020-12/schema","type":"object","properties":{"userId":{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"},"orgSlug":{"type":"string","minLength":1,"maxLength":255},"productId":{"type":"string","minLength":1,"maxLength":255}},"required":["userId","orgSlug","productId"],"additionalProperties":false},"outputSchema":{"$schema":"https://json-schema.org/draft/2020-12/schema","type":"object","properties":{"context":{"type":"object","properties":{"orgId":{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"},"orgSlug":{"type":"string"},"orgEnv":{"type":"string","enum":["dev","prod"]},"productId":{"type":"string"},"membershipId":{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"},"orgRoles":{"type":"array","items":{"type":"string"}},"orgRole":{"type":"string","enum":["owner","admin","member"]},"permissions":{"type":"array","items":{"type":"string"}},"features":{"type":"array","items":{"type":"string"}},"placements":{"type":"array","items":{"type":"string"}},"groups":{"type":"array","items":{"type":"string"}},"impersonation":{"type":"object","properties":{"id":{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"},"expiresAt":{"type":"integer","exclusiveMinimum":0,"maximum":9007199254740991}},"required":["id","expiresAt"],"additionalProperties":false}},"required":["orgId","orgSlug","orgEnv","productId","membershipId","orgRoles","orgRole","permissions","features","placements","groups"],"additionalProperties":false}},"required":["context"],"additionalProperties":false}},{"id":"system.orgs.directory.list.v1","title":"Every organisation, paged, for the accounts and billing platform consoles (superadmin-gated there) and for people's daily member-record backfill, which reads only the ids.","inputSchema":{"$schema":"https://json-schema.org/draft/2020-12/schema","type":"object","properties":{"cursor":{"type":"string","minLength":1,"maxLength":512},"pageSize":{"type":"integer","minimum":1,"maximum":200},"includeArchived":{"type":"boolean"}},"additionalProperties":false},"outputSchema":{"$schema":"https://json-schema.org/draft/2020-12/schema","type":"object","properties":{"orgs":{"type":"array","items":{"type":"object","properties":{"id":{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"},"name":{"type":"string"},"slug":{"type":"string"},"kind":{"type":"string"},"environment":{"type":"string"},"archivedAt":{"anyOf":[{"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991},{"type":"null"}]},"createdAt":{"type":"integer","exclusiveMinimum":0,"maximum":9007199254740991},"memberCount":{"type":"integer","minimum":0,"maximum":9007199254740991}},"required":["id","name","slug","kind","environment","archivedAt","createdAt","memberCount"],"additionalProperties":false}},"nextCursor":{"type":["string","null"]}},"required":["orgs","nextCursor"],"additionalProperties":false}},{"id":"system.orgs.directory.update.v1","title":"Archive or restore an organisation from the platform console. Superadmin-gated there.","inputSchema":{"$schema":"https://json-schema.org/draft/2020-12/schema","type":"object","properties":{"idempotencyKey":{"type":"string","minLength":1,"maxLength":255},"orgId":{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"},"archived":{"type":"boolean"}},"required":["idempotencyKey","orgId","archived"],"additionalProperties":false},"outputSchema":{"$schema":"https://json-schema.org/draft/2020-12/schema","type":"object","properties":{"orgId":{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"},"archived":{"type":"boolean"},"archivedAt":{"anyOf":[{"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991},{"type":"null"}]}},"required":["orgId","archived","archivedAt"],"additionalProperties":false}},{"id":"system.orgs.domain-checks.request.v1","title":"Check one claimed domain now — DNS TXT ownership, and mail records when mail uses it — and mark it verified when the TXT is published, for an org settings manager. Null claim when the org has no such domain.","inputSchema":{"$schema":"https://json-schema.org/draft/2020-12/schema","type":"object","properties":{"orgId":{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"},"actingUserId":{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"},"requestId":{"type":"string","minLength":1,"maxLength":200},"domainId":{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"}},"required":["orgId","actingUserId","requestId","domainId"],"additionalProperties":false},"outputSchema":{"$schema":"https://json-schema.org/draft/2020-12/schema","type":"object","properties":{"kind":{"type":"string","enum":["checked","cooldown","missing"]},"verified":{"type":"boolean"},"claim":{"anyOf":[{"type":"object","properties":{"id":{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"},"domain":{"type":"string"},"verificationToken":{"type":"string"},"verified":{"type":"boolean"}},"required":["id","domain","verificationToken","verified"],"additionalProperties":false},{"type":"null"}]},"report":{"anyOf":[{"type":"object","properties":{"domain":{"type":"string"},"checkedAt":{"type":"string"},"durationMs":{"type":"number"},"verdict":{"type":"string","enum":["ok","action_needed","pending"]},"summary":{"type":"string"},"sections":{"type":"array","items":{"type":"object","properties":{"purpose":{"type":"string","enum":["ownership","website","mail"]},"status":{"type":"string","enum":["ok","missing","wrong","conflict","pending"]},"summary":{"type":"string"},"records":{"type":"array","items":{"type":"object","properties":{"type":{"type":"string"},"name":{"type":"string"},"expected":{"type":"string"},"found":{"type":"array","items":{"type":"string"}},"status":{"type":"string","enum":["ok","missing","wrong","conflict","pending"]},"fix":{"type":["string","null"]}},"required":["type","name","expected","found","status","fix"],"additionalProperties":false}}},"required":["purpose","status","summary","records"],"additionalProperties":false}},"observed":{"type":"object","properties":{"nameservers":{"type":"array","items":{"type":"string"}},"provider":{"type":["string","null"]},"addresses":{"type":"array","items":{"type":"string"}},"cname":{"type":"array","items":{"type":"string"}},"mx":{"type":"array","items":{"type":"string"}}},"required":["nameservers","provider","addresses","cname","mx"],"additionalProperties":false},"lookups":{"type":"array","items":{"type":"object","properties":{"resolver":{"type":"string"},"query":{"type":"string"},"type":{"type":"string"},"answers":{"type":"array","items":{"type":"string"}},"error":{"type":["string","null"]},"ms":{"type":"number"}},"required":["resolver","query","type","answers","error","ms"],"additionalProperties":false}}},"required":["domain","checkedAt","durationMs","verdict","summary","sections","observed","lookups"],"additionalProperties":false},{"type":"null"}]}},"required":["kind","verified","claim","report"],"additionalProperties":false}},{"id":"system.orgs.domains.create.v1","title":"Claim a domain for one org, for an org settings manager — answers the verification TXT value to publish. Already claimed by this org answers already; claimed and verified by another org is refused by the caller surface.","inputSchema":{"$schema":"https://json-schema.org/draft/2020-12/schema","type":"object","properties":{"orgId":{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"},"actingUserId":{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"},"requestId":{"type":"string","minLength":1,"maxLength":200},"domain":{"type":"string","minLength":3,"maxLength":253}},"required":["orgId","actingUserId","requestId","domain"],"additionalProperties":false},"outputSchema":{"$schema":"https://json-schema.org/draft/2020-12/schema","type":"object","properties":{"kind":{"type":"string","enum":["claimed","already","invalid"]},"message":{"type":["string","null"]},"claim":{"anyOf":[{"type":"object","properties":{"id":{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"},"domain":{"type":"string"},"verificationToken":{"type":"string"},"verified":{"type":"boolean"}},"required":["id","domain","verificationToken","verified"],"additionalProperties":false},{"type":"null"}]}},"required":["kind","message","claim"],"additionalProperties":false}},{"id":"system.orgs.domains.delete.v1","title":"Remove one domain claim from one org, for an org settings manager. Hostnames under it stay to be disconnected from their websites.","inputSchema":{"$schema":"https://json-schema.org/draft/2020-12/schema","type":"object","properties":{"orgId":{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"},"actingUserId":{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"},"requestId":{"type":"string","minLength":1,"maxLength":200},"domainId":{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"}},"required":["orgId","actingUserId","requestId","domainId"],"additionalProperties":false},"outputSchema":{"$schema":"https://json-schema.org/draft/2020-12/schema","type":"object","properties":{"removed":{"type":"boolean"}},"required":["removed"],"additionalProperties":false}},{"id":"system.orgs.domains.get.v1","title":"One org’s domain claims and which are verified, for a member of that org — mailbox suffixes for mail, and for website-builder the domains a hostname may be connected under, nothing else.","inputSchema":{"$schema":"https://json-schema.org/draft/2020-12/schema","type":"object","properties":{"orgId":{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"},"actingUserId":{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"}},"required":["orgId","actingUserId"],"additionalProperties":false},"outputSchema":{"$schema":"https://json-schema.org/draft/2020-12/schema","type":"object","properties":{"domains":{"type":"array","items":{"type":"object","properties":{"id":{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"},"domain":{"type":"string"},"verificationToken":{"type":"string"},"verified":{"type":"boolean"}},"required":["id","domain","verificationToken","verified"],"additionalProperties":false}}},"required":["domains"],"additionalProperties":false}},{"id":"system.orgs.existing-org-ids.get.v1","title":"New (5.13): which of these organization ids still exist — ids only, never a name or slug (D3a).","inputSchema":{"$schema":"https://json-schema.org/draft/2020-12/schema","type":"object","properties":{"ids":{"minItems":1,"maxItems":200,"type":"array","items":{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"}}},"required":["ids"],"additionalProperties":false},"outputSchema":{"$schema":"https://json-schema.org/draft/2020-12/schema","type":"object","properties":{"existingIds":{"type":"array","items":{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"}}},"required":["existingIds"],"additionalProperties":false}},{"id":"system.orgs.export.get.v1","title":"One named user’s orgs slice for the right of access — exactly one user id, always.","inputSchema":{"$schema":"https://json-schema.org/draft/2020-12/schema","type":"object","properties":{"userId":{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"}},"required":["userId"],"additionalProperties":false},"outputSchema":{"$schema":"https://json-schema.org/draft/2020-12/schema","type":"object","properties":{"app":{"type":"string","const":"orgs"},"version":{"type":"string","const":"v1"},"userId":{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"},"sections":{"type":"array","items":{"type":"string"}},"complete":{"type":"boolean"},"data":{"type":"object","propertyNames":{"type":"string"},"additionalProperties":{}}},"required":["app","version","userId","sections","complete","data"],"additionalProperties":false}},{"id":"system.orgs.group-memberships.list.v1","title":"A page of one org’s member_group rows — which member is in which group, and which team of it — for a member of that org, ordered by row id. Read every page until nextCursor is null.","inputSchema":{"$schema":"https://json-schema.org/draft/2020-12/schema","type":"object","properties":{"orgId":{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"},"actingUserId":{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"},"cursor":{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"},"pageSize":{"type":"integer","minimum":1,"maximum":1000}},"required":["orgId","actingUserId"],"additionalProperties":false},"outputSchema":{"$schema":"https://json-schema.org/draft/2020-12/schema","type":"object","properties":{"memberships":{"maxItems":1000,"type":"array","items":{"type":"object","properties":{"memberId":{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"},"userId":{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"},"groupId":{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"},"teamId":{"anyOf":[{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"},{"type":"null"}]}},"required":["memberId","userId","groupId","teamId"],"additionalProperties":false}},"nextCursor":{"anyOf":[{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"},{"type":"null"}]}},"required":["memberships","nextCursor"],"additionalProperties":false}},{"id":"system.orgs.hostname-checks.request.v1","title":"Check one of the org’s hostnames now — DNS, and Cloudflare when it routes through it — and answer its new status, for an org admin. Null when the org has no such hostname.","inputSchema":{"$schema":"https://json-schema.org/draft/2020-12/schema","type":"object","properties":{"orgId":{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"},"actingUserId":{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"},"requestId":{"type":"string","minLength":1,"maxLength":200},"hostnameId":{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"}},"required":["orgId","actingUserId","requestId","hostnameId"],"additionalProperties":false},"outputSchema":{"$schema":"https://json-schema.org/draft/2020-12/schema","type":"object","properties":{"hostname":{"anyOf":[{"type":"object","properties":{"id":{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"},"hostname":{"type":"string"},"app":{"type":"string","enum":["website-builder"]},"mode":{"type":"string","enum":["cloudflare"]},"status":{"type":"string","enum":["pending","active","failed"]},"statusDetail":{"type":["string","null"]},"records":{"maxItems":8,"type":"array","items":{"type":"object","properties":{"type":{"type":"string","enum":["CNAME","TXT","ALIAS"]},"name":{"type":"string"},"value":{"type":"string"},"purpose":{"type":"string","enum":["routing","ownership","certificate"]}},"required":["type","name","value","purpose"],"additionalProperties":false}},"checkedAt":{"type":["string","null"]},"activatedAt":{"type":["string","null"]}},"required":["id","hostname","app","mode","status","statusDetail","records","checkedAt","activatedAt"],"additionalProperties":false},{"type":"null"}]}},"required":["hostname"],"additionalProperties":false}},{"id":"system.orgs.hostnames.create.v1","title":"Connect a hostname under one of the org’s verified domains to website-builder, for an org admin. Answers bound with the records to publish, or why not: invalid, not-verified, taken, limit, refused (Cloudflare did not accept it), disabled (custom domains are turned off while the edge is verified).","inputSchema":{"$schema":"https://json-schema.org/draft/2020-12/schema","type":"object","properties":{"orgId":{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"},"actingUserId":{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"},"requestId":{"type":"string","minLength":1,"maxLength":200},"hostname":{"type":"string","minLength":1,"maxLength":253}},"required":["orgId","actingUserId","requestId","hostname"],"additionalProperties":false},"outputSchema":{"$schema":"https://json-schema.org/draft/2020-12/schema","type":"object","properties":{"kind":{"type":"string","enum":["bound","invalid","not-verified","taken","limit","refused","disabled"]},"message":{"type":["string","null"]},"hostname":{"anyOf":[{"type":"object","properties":{"id":{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"},"hostname":{"type":"string"},"app":{"type":"string","enum":["website-builder"]},"mode":{"type":"string","enum":["cloudflare"]},"status":{"type":"string","enum":["pending","active","failed"]},"statusDetail":{"type":["string","null"]},"records":{"maxItems":8,"type":"array","items":{"type":"object","properties":{"type":{"type":"string","enum":["CNAME","TXT","ALIAS"]},"name":{"type":"string"},"value":{"type":"string"},"purpose":{"type":"string","enum":["routing","ownership","certificate"]}},"required":["type","name","value","purpose"],"additionalProperties":false}},"checkedAt":{"type":["string","null"]},"activatedAt":{"type":["string","null"]}},"required":["id","hostname","app","mode","status","statusDetail","records","checkedAt","activatedAt"],"additionalProperties":false},{"type":"null"}]}},"required":["kind","message","hostname"],"additionalProperties":false}},{"id":"system.orgs.hostnames.delete.v1","title":"Disconnect one of the org’s hostnames, for an org admin: deletes the Cloudflare custom hostname and emits orgs.hostname.removed when it was live.","inputSchema":{"$schema":"https://json-schema.org/draft/2020-12/schema","type":"object","properties":{"orgId":{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"},"actingUserId":{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"},"requestId":{"type":"string","minLength":1,"maxLength":200},"hostnameId":{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"}},"required":["orgId","actingUserId","requestId","hostnameId"],"additionalProperties":false},"outputSchema":{"$schema":"https://json-schema.org/draft/2020-12/schema","type":"object","properties":{"removed":{"type":"boolean"}},"required":["removed"],"additionalProperties":false}},{"id":"system.orgs.hostnames.get.v1","title":"The hostnames an org has connected for website-builder, each with its status and the DNS records to publish, for a member of that org. orgs owns the bindings (#1262). enabled says whether new custom domains may be connected right now.","inputSchema":{"$schema":"https://json-schema.org/draft/2020-12/schema","type":"object","properties":{"orgId":{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"},"actingUserId":{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"}},"required":["orgId","actingUserId"],"additionalProperties":false},"outputSchema":{"$schema":"https://json-schema.org/draft/2020-12/schema","type":"object","properties":{"hostnames":{"maxItems":10,"type":"array","items":{"type":"object","properties":{"id":{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"},"hostname":{"type":"string"},"app":{"type":"string","enum":["website-builder"]},"mode":{"type":"string","enum":["cloudflare"]},"status":{"type":"string","enum":["pending","active","failed"]},"statusDetail":{"type":["string","null"]},"records":{"maxItems":8,"type":"array","items":{"type":"object","properties":{"type":{"type":"string","enum":["CNAME","TXT","ALIAS"]},"name":{"type":"string"},"value":{"type":"string"},"purpose":{"type":"string","enum":["routing","ownership","certificate"]}},"required":["type","name","value","purpose"],"additionalProperties":false}},"checkedAt":{"type":["string","null"]},"activatedAt":{"type":["string","null"]}},"required":["id","hostname","app","mode","status","statusDetail","records","checkedAt","activatedAt"],"additionalProperties":false}},"enabled":{"type":"boolean"}},"required":["hostnames","enabled"],"additionalProperties":false}},{"id":"system.orgs.identity.resolve.v1","title":"One org’s identity by slug, for accounts’ app-superadmin token mint (#435).","inputSchema":{"$schema":"https://json-schema.org/draft/2020-12/schema","type":"object","properties":{"orgSlug":{"type":"string","minLength":1,"maxLength":255}},"required":["orgSlug"],"additionalProperties":false},"outputSchema":{"$schema":"https://json-schema.org/draft/2020-12/schema","type":"object","properties":{"org":{"anyOf":[{"type":"object","properties":{"orgId":{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"},"orgSlug":{"type":"string"},"orgEnv":{"type":"string","enum":["dev","prod"]}},"required":["orgId","orgSlug","orgEnv"],"additionalProperties":false},{"type":"null"}]}},"required":["org"],"additionalProperties":false}},{"id":"system.orgs.join-requests.get.v1","title":"One join request as a workflow sees it: the requester’s account id, name and email, the message, the current status, and the form response or join link it came from. The acting user must be able to manage members; another org’s request is null.","inputSchema":{"$schema":"https://json-schema.org/draft/2020-12/schema","type":"object","properties":{"orgId":{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"},"actingUserId":{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"},"requestId":{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"}},"required":["orgId","actingUserId","requestId"],"additionalProperties":false},"outputSchema":{"$schema":"https://json-schema.org/draft/2020-12/schema","type":"object","properties":{"request":{"anyOf":[{"type":"object","properties":{"requestId":{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"},"userId":{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"},"name":{"type":["string","null"]},"email":{"type":["string","null"]},"message":{"type":["string","null"]},"status":{"type":"string","enum":["pending","approved","rejected"]},"rejectionReason":{"type":["string","null"]},"createdAt":{"type":"string"},"joinLinkId":{"anyOf":[{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"},{"type":"null"}]},"formCampaignId":{"anyOf":[{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"},{"type":"null"}]},"formResponseId":{"anyOf":[{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"},{"type":"null"}]}},"required":["requestId","userId","name","email","message","status","rejectionReason","createdAt","joinLinkId","formCampaignId","formResponseId"],"additionalProperties":false},{"type":"null"}]}},"required":["request"],"additionalProperties":false}},{"id":"system.orgs.join-requests.update.v1","title":"Approve or reject one pending join request through the same orgs domain path the Orgs screen uses. Approval creates the membership and keeps the join link placement; rejection records the reason. An already-decided request is a successful no-op with already_decided. Another org’s request is not_found.","inputSchema":{"$schema":"https://json-schema.org/draft/2020-12/schema","type":"object","properties":{"orgId":{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"},"actingUserId":{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"},"idempotencyKey":{"type":"string","minLength":1,"maxLength":255},"requestId":{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"},"decision":{"type":"string","enum":["approve","reject"]},"role":{"type":"string","enum":["admin","member"]},"reason":{"type":"string","minLength":1,"maxLength":500}},"required":["orgId","actingUserId","idempotencyKey","requestId","decision"],"additionalProperties":false},"outputSchema":{"$schema":"https://json-schema.org/draft/2020-12/schema","type":"object","properties":{"status":{"type":"string","enum":["approved","rejected","already_decided"]},"placementKept":{"type":"boolean"}},"required":["status","placementKept"],"additionalProperties":false}},{"id":"system.orgs.kind.get.v1","title":"One organization’s kind and archived state by id or slug, for ai’s systems-org gating: an agent owned by a systems-kind org may serve the stock app only. Fail-closed: an unavailable answer refuses the run.","inputSchema":{"$schema":"https://json-schema.org/draft/2020-12/schema","type":"object","properties":{"orgId":{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"},"orgSlug":{"type":"string","minLength":1,"maxLength":255}},"additionalProperties":false},"outputSchema":{"$schema":"https://json-schema.org/draft/2020-12/schema","type":"object","properties":{"orgId":{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"},"kind":{"type":"string"},"archived":{"type":"boolean"}},"required":["orgId","kind","archived"],"additionalProperties":false}},{"id":"system.orgs.managed-member-passwords.rotate.v1","title":"Issue a new one-time password for a username account this org made, signing it out everywhere. The target must be a current member; an owner or admin target needs an owner acting. The acting user must be an owner or admin, or hold school:students:manage in the org. accounts refuses an account another org made.","inputSchema":{"$schema":"https://json-schema.org/draft/2020-12/schema","type":"object","properties":{"orgId":{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"},"actingUserId":{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"},"userId":{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"}},"required":["orgId","actingUserId","userId"],"additionalProperties":false},"outputSchema":{"$schema":"https://json-schema.org/draft/2020-12/schema","type":"object","properties":{"oneTimePassword":{"type":"string"}},"required":["oneTimePassword"],"additionalProperties":false}},{"id":"system.orgs.managed-members.create.v1","title":"Make username accounts for people with no email and add them as members, each optionally placed in a branch or node and a group or team of this org. The acting user must be an owner or admin, or hold school:students:manage in the org. Each item is idempotent on (org, ref): asking again answers already_created with no password. An org makes at most its daily quota of username accounts in any 24 hours, separately from its invitation budget; an item past it answers limited and nothing is made for it. A one-time password is in this reply and nowhere else.","inputSchema":{"$schema":"https://json-schema.org/draft/2020-12/schema","type":"object","properties":{"orgId":{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"},"actingUserId":{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"},"idempotencyKey":{"type":"string","minLength":1,"maxLength":255},"members":{"minItems":1,"maxItems":50,"type":"array","items":{"type":"object","properties":{"ref":{"type":"string","minLength":1,"maxLength":200},"username":{"type":"string","minLength":3,"maxLength":40,"pattern":"^[a-z0-9][a-z0-9._-]{2,39}$"},"name":{"type":"string","minLength":1,"maxLength":120},"placement":{"type":"object","properties":{"branch":{"anyOf":[{"type":"object","properties":{"branchId":{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"},"nodeId":{"anyOf":[{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"},{"type":"null"}]}},"required":["branchId","nodeId"],"additionalProperties":false},{"type":"null"}]},"group":{"anyOf":[{"type":"object","properties":{"groupId":{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"},"teamId":{"anyOf":[{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"},{"type":"null"}]}},"required":["groupId","teamId"],"additionalProperties":false},{"type":"null"}]}},"required":["branch","group"],"additionalProperties":false}},"required":["ref","username","name"],"additionalProperties":false}}},"required":["orgId","actingUserId","idempotencyKey","members"],"additionalProperties":false},"outputSchema":{"$schema":"https://json-schema.org/draft/2020-12/schema","type":"object","properties":{"members":{"maxItems":50,"type":"array","items":{"type":"object","properties":{"ref":{"type":"string","minLength":1,"maxLength":200},"outcome":{"type":"string","enum":["created","already_created","username_taken","ref_reused","invalid","invalid_placement","refused","unavailable","limited"]},"userId":{"anyOf":[{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"},{"type":"null"}]},"username":{"type":["string","null"]},"oneTimePassword":{"type":["string","null"]}},"required":["ref","outcome","userId","username","oneTimePassword"],"additionalProperties":false}}},"required":["members"],"additionalProperties":false}},{"id":"system.orgs.member-placements.update.v1","title":"Move members between units of this org — a branch, a node, an orgs group or an orgs team. Per item {userId, from, to}: from null places, to null removes, both move (across the tree and group dimensions too). Each item answers placed, moved, removed, unchanged (already so, which makes a replay harmless), not_member, or invalid_unit (a unit of another org, or none) and changes nothing then. The acting user must be an owner or admin, or hold orgs:structure:manage or school:students:manage in the org. Every change is recorded in the org audit with ids only.","inputSchema":{"$schema":"https://json-schema.org/draft/2020-12/schema","type":"object","properties":{"orgId":{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"},"actingUserId":{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"},"idempotencyKey":{"type":"string","minLength":1,"maxLength":255},"items":{"minItems":1,"maxItems":500,"type":"array","items":{"type":"object","properties":{"userId":{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"},"from":{"anyOf":[{"type":"object","properties":{"kind":{"type":"string","enum":["branch","node","orgs_group","orgs_team"]},"id":{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"}},"required":["kind","id"],"additionalProperties":false},{"type":"null"}]},"to":{"anyOf":[{"type":"object","properties":{"kind":{"type":"string","enum":["branch","node","orgs_group","orgs_team"]},"id":{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"}},"required":["kind","id"],"additionalProperties":false},{"type":"null"}]}},"required":["userId","from","to"],"additionalProperties":false}}},"required":["orgId","actingUserId","idempotencyKey","items"],"additionalProperties":false},"outputSchema":{"$schema":"https://json-schema.org/draft/2020-12/schema","type":"object","properties":{"items":{"maxItems":500,"type":"array","items":{"type":"object","properties":{"userId":{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"},"outcome":{"type":"string","enum":["placed","moved","removed","unchanged","not_member","invalid_unit"]}},"required":["userId","outcome"],"additionalProperties":false}}},"required":["items"],"additionalProperties":false}},{"id":"system.orgs.member-scopes.get.v1","title":"New (5.08): which structure scopes a user belongs to in one org — for share grants. A user is in the branches and units they are placed in (member_branch) and in those of their groups, each unit with its ancestors.","inputSchema":{"$schema":"https://json-schema.org/draft/2020-12/schema","type":"object","properties":{"orgId":{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"},"userId":{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"}},"required":["orgId","userId"],"additionalProperties":false},"outputSchema":{"$schema":"https://json-schema.org/draft/2020-12/schema","type":"object","properties":{"member":{"type":"boolean"},"branchIds":{"type":"array","items":{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"}},"nodeIds":{"type":"array","items":{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"}},"groupIds":{"type":"array","items":{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"}},"teamIds":{"type":"array","items":{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"}}},"required":["member","branchIds","nodeIds","groupIds","teamIds"],"additionalProperties":false}},{"id":"system.orgs.member-user-ids.list.v1","title":"A page of the user ids that are members of one organisation right now, ordered by user id — ids only, for the D3a sweep that marks people whose membership ended while an event was missed and for the member-record backfill. Read every page until nextCursor is null; a member present for the whole read is on exactly one page.","inputSchema":{"$schema":"https://json-schema.org/draft/2020-12/schema","type":"object","properties":{"orgId":{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"},"cursor":{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"},"pageSize":{"type":"integer","minimum":1,"maximum":1000}},"required":["orgId"],"additionalProperties":false},"outputSchema":{"$schema":"https://json-schema.org/draft/2020-12/schema","type":"object","properties":{"userIds":{"maxItems":1000,"type":"array","items":{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"}},"nextCursor":{"anyOf":[{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"},{"type":"null"}]}},"required":["userIds","nextCursor"],"additionalProperties":false}},{"id":"system.orgs.members.list.v1","title":"New (3.04 gap): one org’s members — membership metadata only; display fields via accounts.","inputSchema":{"$schema":"https://json-schema.org/draft/2020-12/schema","type":"object","properties":{"cursor":{"type":"string","minLength":1,"maxLength":512},"pageSize":{"type":"integer","minimum":1,"maximum":200},"orgId":{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"},"actingUserId":{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"}},"required":["orgId","actingUserId"],"additionalProperties":false},"outputSchema":{"$schema":"https://json-schema.org/draft/2020-12/schema","type":"object","properties":{"members":{"type":"array","items":{"type":"object","properties":{"id":{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"},"userId":{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"},"role":{"type":"string","enum":["owner","admin","member"]},"createdAt":{"type":"string"}},"required":["id","userId","role","createdAt"],"additionalProperties":false}},"nextCursor":{"type":["string","null"]}},"required":["members","nextCursor"],"additionalProperties":false}},{"id":"system.orgs.membership-periods.list.v1","title":"One organisation’s membership stints, oldest first: who was a member, from when to when, how it ended and the built-in role they held at the end — never the reason and never who ended it. With an acting user, that user must currently hold orgs:member:manage in the organisation. Without one, only school is answered (its reconcile and departure re-check run with no user). from and to select stints overlapping that range; a user id that was never in this organisation yields nothing, not an error.","inputSchema":{"$schema":"https://json-schema.org/draft/2020-12/schema","type":"object","properties":{"cursor":{"type":"string","minLength":1,"maxLength":512},"pageSize":{"type":"integer","minimum":1,"maximum":200},"orgId":{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"},"actingUserId":{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"},"userIds":{"minItems":1,"maxItems":200,"type":"array","items":{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"}},"from":{"type":"integer","minimum":0,"maximum":9007199254740991},"to":{"type":"integer","minimum":0,"maximum":9007199254740991},"state":{"type":"string","enum":["open","closed","any"]}},"required":["orgId"],"additionalProperties":false},"outputSchema":{"$schema":"https://json-schema.org/draft/2020-12/schema","type":"object","properties":{"periods":{"maxItems":200,"type":"array","items":{"type":"object","properties":{"id":{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"},"memberId":{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"},"userId":{"anyOf":[{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"},{"type":"null"}]},"userErased":{"type":"boolean"},"joinedAt":{"type":"integer","minimum":0,"maximum":9007199254740991},"joinKind":{"type":"string","enum":["org_created","direct","import","join_link","join_request","invitation","merge","backfill"]},"leftAt":{"anyOf":[{"type":"integer","minimum":0,"maximum":9007199254740991},{"type":"null"}]},"endKind":{"anyOf":[{"type":"string","enum":["removed","left","account_deleted","merged"]},{"type":"null"}]},"roleAtEnd":{"anyOf":[{"type":"string","enum":["owner","admin","member"]},{"type":"null"}]},"mergedIntoPeriodId":{"anyOf":[{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"},{"type":"null"}]}},"required":["id","memberId","userId","userErased","joinedAt","joinKind","leftAt","endKind","roleAtEnd","mergedIntoPeriodId"],"additionalProperties":false}},"nextCursor":{"type":["string","null"]}},"required":["periods","nextCursor"],"additionalProperties":false}},{"id":"system.orgs.memberships.list.v1","title":"The orgs one user belongs to, for that app’s org picker. Archived orgs are hidden. Each row’s brand carries the organization’s six light-mode colours (null when unset), its dark-mode palette under dark (null when it has not saved one) and a short-lived signed address for its mark, or its logo when it has no mark; markKind says which. darkMarkUrl is the logo made for dark backgrounds, sent only when the organization has no mark and has one.","inputSchema":{"$schema":"https://json-schema.org/draft/2020-12/schema","type":"object","properties":{"cursor":{"type":"string","minLength":1,"maxLength":512},"pageSize":{"type":"integer","minimum":1,"maximum":200},"userId":{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"}},"required":["userId"],"additionalProperties":false},"outputSchema":{"$schema":"https://json-schema.org/draft/2020-12/schema","type":"object","properties":{"orgs":{"type":"array","items":{"type":"object","properties":{"id":{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"},"name":{"type":"string"},"slug":{"type":"string"},"kind":{"type":"string"},"role":{"type":"string","enum":["owner","admin","member"]},"brand":{"type":"object","properties":{"primaryColor":{"type":["string","null"]},"markUrl":{"type":["string","null"]},"secondaryColor":{"type":["string","null"]},"accentColor":{"type":["string","null"]},"backgroundColor":{"type":["string","null"]},"surfaceColor":{"type":["string","null"]},"textColor":{"type":["string","null"]},"dark":{"anyOf":[{"type":"object","properties":{"primaryColor":{"type":["string","null"]},"secondaryColor":{"type":["string","null"]},"accentColor":{"type":["string","null"]},"backgroundColor":{"type":["string","null"]},"surfaceColor":{"type":["string","null"]},"textColor":{"type":["string","null"]}},"additionalProperties":false},{"type":"null"}]},"darkMarkUrl":{"type":["string","null"]},"markKind":{"anyOf":[{"type":"string","enum":["mark","logo"]},{"type":"null"}]}},"required":["primaryColor","markUrl"],"additionalProperties":false},"impersonation":{"type":"object","properties":{"id":{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"},"expiresAt":{"type":"integer","exclusiveMinimum":0,"maximum":9007199254740991}},"required":["id","expiresAt"],"additionalProperties":false}},"required":["id","name","slug","kind","role"],"additionalProperties":false}},"nextCursor":{"type":["string","null"]}},"required":["orgs","nextCursor"],"additionalProperties":false}},{"id":"system.orgs.my-membership-periods.get.v1","title":"The acting user’s own membership stints in every organisation, current and ended, newest first: the organisation’s name and slug, the dates, how it ended, the reason they were given, the role they held at the end and each role change during the stint. No membership is needed — the person has usually left. Whether they ended it or changed a role themselves is a flag; no other person’s id is ever returned. Refused above the cap rather than truncated.","inputSchema":{"$schema":"https://json-schema.org/draft/2020-12/schema","type":"object","properties":{"actingUserId":{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"},"orgId":{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"}},"required":["actingUserId"],"additionalProperties":false},"outputSchema":{"$schema":"https://json-schema.org/draft/2020-12/schema","type":"object","properties":{"periods":{"maxItems":500,"type":"array","items":{"type":"object","properties":{"id":{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"},"orgId":{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"},"orgName":{"type":"string"},"orgSlug":{"type":"string"},"joinedAt":{"type":"integer","minimum":0,"maximum":9007199254740991},"joinKind":{"type":"string","enum":["org_created","direct","import","join_link","join_request","invitation","merge","backfill"]},"leftAt":{"anyOf":[{"type":"integer","minimum":0,"maximum":9007199254740991},{"type":"null"}]},"endKind":{"anyOf":[{"type":"string","enum":["removed","left","account_deleted","merged"]},{"type":"null"}]},"endedBySelf":{"type":"boolean"},"endReason":{"type":["string","null"]},"roleAtEnd":{"anyOf":[{"type":"string","enum":["owner","admin","member"]},{"type":"null"}]},"roleEvents":{"maxItems":1000,"type":"array","items":{"type":"object","properties":{"occurredAt":{"type":"integer","minimum":0,"maximum":9007199254740991},"kind":{"type":"string","enum":["builtin_set","custom_granted","custom_revoked"]},"roleFrom":{"anyOf":[{"type":"string","enum":["owner","admin","member"]},{"type":"null"}]},"roleTo":{"anyOf":[{"type":"string","enum":["owner","admin","member"]},{"type":"null"}]},"orgRoleName":{"type":["string","null"]},"bySelf":{"type":"boolean"}},"required":["occurredAt","kind","roleFrom","roleTo","orgRoleName","bySelf"],"additionalProperties":false}}},"required":["id","orgId","orgName","orgSlug","joinedAt","joinKind","leftAt","endKind","endedBySelf","endReason","roleAtEnd","roleEvents"],"additionalProperties":false}}},"required":["periods"],"additionalProperties":false}},{"id":"system.orgs.my-memberships.delete.v1","title":"The acting user leaves one organisation, with an optional reason, under the same rules as leaving in orgs. Refused with conflict and one of last_owner, prod_owner or not_member: the last owner cannot leave, an owner cannot leave a production organisation here, and someone who is not a current member has nothing to leave. Only ever ends the acting user’s own membership.","inputSchema":{"$schema":"https://json-schema.org/draft/2020-12/schema","type":"object","properties":{"actingUserId":{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"},"orgId":{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"},"reason":{"type":"string","maxLength":500}},"required":["actingUserId","orgId"],"additionalProperties":false},"outputSchema":{"$schema":"https://json-schema.org/draft/2020-12/schema","type":"object","properties":{"left":{"type":"boolean","const":true}},"required":["left"],"additionalProperties":false}},{"id":"system.orgs.names.list.v1","title":"Org id → name/slug for ids the caller holds. Id, name and slug only — nothing more.","inputSchema":{"$schema":"https://json-schema.org/draft/2020-12/schema","type":"object","properties":{"cursor":{"type":"string","minLength":1,"maxLength":512},"pageSize":{"type":"integer","minimum":1,"maximum":200},"orgIds":{"minItems":1,"maxItems":200,"type":"array","items":{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"}}},"required":["orgIds"],"additionalProperties":false},"outputSchema":{"$schema":"https://json-schema.org/draft/2020-12/schema","type":"object","properties":{"orgs":{"type":"array","items":{"type":"object","properties":{"id":{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"},"name":{"type":"string"},"slug":{"type":"string"}},"required":["id","name","slug"],"additionalProperties":false}},"nextCursor":{"type":["string","null"]}},"required":["orgs","nextCursor"],"additionalProperties":false}},{"id":"system.orgs.pending-requests.get.v1","title":"Organisation requests awaiting a platform decision — the accounts notification page.","inputSchema":{"$schema":"https://json-schema.org/draft/2020-12/schema","type":"object","properties":{},"additionalProperties":false},"outputSchema":{"$schema":"https://json-schema.org/draft/2020-12/schema","type":"object","properties":{"requests":{"type":"array","items":{"type":"object","properties":{"id":{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"},"name":{"type":"string"},"kind":{"type":"string"},"requesterUserId":{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"},"createdAt":{"type":"integer","exclusiveMinimum":0,"maximum":9007199254740991}},"required":["id","name","kind","requesterUserId","createdAt"],"additionalProperties":false}}},"required":["requests"],"additionalProperties":false}},{"id":"system.orgs.permissions.resolve.v1","title":"What a set of custom org roles grants in one org — the orgs:-only filter stays in orgs (golden rule 1).","inputSchema":{"$schema":"https://json-schema.org/draft/2020-12/schema","type":"object","properties":{"orgId":{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"},"roleIds":{"maxItems":50,"type":"array","items":{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"}},"entitledAppSlugs":{"maxItems":200,"type":"array","items":{"type":"string","minLength":1}}},"required":["orgId","roleIds","entitledAppSlugs"],"additionalProperties":false},"outputSchema":{"$schema":"https://json-schema.org/draft/2020-12/schema","type":"object","properties":{"permissions":{"type":"array","items":{"type":"string"}},"knownRoleIds":{"type":"array","items":{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"}}},"required":["permissions","knownRoleIds"],"additionalProperties":false}},{"id":"system.orgs.placements.list.v1","title":"A page of one org’s member_branch placements — who stands where (#767 / Q42) — for a member of that org, ordered by placement id. Read every page until nextCursor is null. An optional memberId keeps one member’s rows; a member of another org is an empty page.","inputSchema":{"$schema":"https://json-schema.org/draft/2020-12/schema","type":"object","properties":{"orgId":{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"},"actingUserId":{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"},"memberId":{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"},"cursor":{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"},"pageSize":{"type":"integer","minimum":1,"maximum":1000}},"required":["orgId","actingUserId"],"additionalProperties":false},"outputSchema":{"$schema":"https://json-schema.org/draft/2020-12/schema","type":"object","properties":{"placements":{"maxItems":1000,"type":"array","items":{"type":"object","properties":{"memberId":{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"},"userId":{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"},"branchId":{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"},"nodeId":{"anyOf":[{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"},{"type":"null"}]},"isPrimary":{"type":"boolean"},"title":{"type":["string","null"]}},"required":["memberId","userId","branchId","nodeId","isPrimary","title"],"additionalProperties":false}},"nextCursor":{"anyOf":[{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"},{"type":"null"}]}},"required":["placements","nextCursor"],"additionalProperties":false}},{"id":"system.orgs.structure.get.v1","title":"New (3.04 gap): one org’s branches, nodes, groups and teams — the whole tree, once.","inputSchema":{"$schema":"https://json-schema.org/draft/2020-12/schema","type":"object","properties":{"orgId":{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"},"actingUserId":{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"}},"required":["orgId","actingUserId"],"additionalProperties":false},"outputSchema":{"$schema":"https://json-schema.org/draft/2020-12/schema","type":"object","properties":{"branches":{"type":"array","items":{"type":"object","properties":{"id":{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"},"parentId":{"anyOf":[{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"},{"type":"null"}]},"name":{"type":"string"},"displayOrder":{"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991}},"required":["id","parentId","name","displayOrder"],"additionalProperties":false}},"nodes":{"type":"array","items":{"type":"object","properties":{"id":{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"},"parentId":{"anyOf":[{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"},{"type":"null"}]},"name":{"type":"string"},"displayOrder":{"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991},"nodeType":{"type":"string"}},"required":["id","parentId","name","displayOrder","nodeType"],"additionalProperties":false}},"groups":{"type":"array","items":{"type":"object","properties":{"id":{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"},"parentId":{"anyOf":[{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"},{"type":"null"}]},"name":{"type":"string"},"displayOrder":{"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991}},"required":["id","parentId","name","displayOrder"],"additionalProperties":false}},"teams":{"type":"array","items":{"type":"object","properties":{"id":{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"},"parentId":{"anyOf":[{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"},{"type":"null"}]},"name":{"type":"string"},"displayOrder":{"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991}},"required":["id","parentId","name","displayOrder"],"additionalProperties":false}}},"required":["branches","nodes","groups","teams"],"additionalProperties":false}},{"id":"system.orgs.timezones.get.v1","title":"Each organisation's timezone (an IANA name from @cmykcloud/locale) — the zone an app falls back to when nothing closer, such as a device's own zone, applies. An id that no longer exists is absent from the reply. `unavailable` means 'not known': never substitute a guessed zone for it.","inputSchema":{"$schema":"https://json-schema.org/draft/2020-12/schema","type":"object","properties":{"orgIds":{"minItems":1,"maxItems":200,"type":"array","items":{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"}}},"required":["orgIds"],"additionalProperties":false},"outputSchema":{"$schema":"https://json-schema.org/draft/2020-12/schema","type":"object","properties":{"timezones":{"type":"array","items":{"type":"object","properties":{"orgId":{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"},"timezone":{"type":"string","minLength":1,"maxLength":64}},"required":["orgId","timezone"],"additionalProperties":false}}},"required":["timezones"],"additionalProperties":false}},{"id":"system.orgs.wellknown.capabilities.v1","title":"The orgs capabilities manifest: metadata, callable actions with schemas, public routes, emitted events, and model field catalogs. Public metadata only — a manifest never carries tenant rows.","route":"/.well-known/capabilities","inputSchema":{"$schema":"https://json-schema.org/draft/2020-12/schema","type":"object","properties":{},"additionalProperties":false},"outputSchema":{"$schema":"https://json-schema.org/draft/2020-12/schema","type":"object","properties":{"manifestVersion":{"type":"string","const":"1"},"app":{"type":"object","properties":{"name":{"type":"string","pattern":"^[a-z0-9]+(-[a-z0-9]+)*$"},"version":{"type":"string","minLength":1},"status":{"type":"string","enum":["live","degraded"]}},"required":["name","version","status"],"additionalProperties":false},"actions":{"type":"array","items":{"type":"object","properties":{"id":{"type":"string","pattern":"^system\\.[a-z0-9]+(-[a-z0-9]+)*\\.[a-z0-9]+(-[a-z0-9]+)*\\.[a-z0-9]+(-[a-z0-9]+)*\\.v[1-9][0-9]*$"},"title":{"type":"string","minLength":1},"route":{"type":"string","pattern":"^\\/"},"inputSchema":{"type":"object","propertyNames":{"type":"string"},"additionalProperties":{}},"outputSchema":{"type":"object","propertyNames":{"type":"string"},"additionalProperties":{}}},"required":["id","title","inputSchema","outputSchema"],"additionalProperties":false}},"functionalities":{"type":"object","properties":{"publicRoutes":{"type":"array","items":{"type":"string","pattern":"^\\/"}},"auth":{"type":"object","properties":{"issuer":{"type":"string","format":"uri"},"authorizationEndpoint":{"type":"string","format":"uri"},"tokenEndpoint":{"type":"string","format":"uri"},"jwksUri":{"type":"string","format":"uri"}},"required":["issuer"],"additionalProperties":false},"webhooks":{"type":"array","items":{"type":"string","minLength":1}}},"required":["publicRoutes","webhooks"],"additionalProperties":false},"events":{"type":"array","items":{"type":"object","properties":{"name":{"type":"string","pattern":"^[a-z0-9][a-z0-9.-]*[a-z0-9]$"},"title":{"type":"string","minLength":1},"schema":{"type":"object","propertyNames":{"type":"string"},"additionalProperties":{}}},"required":["name","title","schema"],"additionalProperties":false}},"models":{"type":"object","propertyNames":{"type":"string","minLength":1},"additionalProperties":{"type":"object","properties":{"title":{"type":"string","minLength":1},"schema":{"type":"object","propertyNames":{"type":"string"},"additionalProperties":{}},"excluded":{"type":"array","items":{"type":"string","minLength":1}}},"required":["title","schema","excluded"],"additionalProperties":false}}},"required":["manifestVersion","app","actions","functionalities","events"],"additionalProperties":false}},{"id":"system.orgs.wellknown.org-domain.v1","title":"Verified domain → organization id. Verified claims only, or a domain could be captured.","route":"/api/well-known/org-domain","inputSchema":{"$schema":"https://json-schema.org/draft/2020-12/schema","type":"object","properties":{"domain":{"type":"string","minLength":1,"maxLength":255}},"required":["domain"],"additionalProperties":false},"outputSchema":{"$schema":"https://json-schema.org/draft/2020-12/schema","type":"object","properties":{"organizationId":{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"}},"required":["organizationId"],"additionalProperties":false}}],"functionalities":{"publicRoutes":["/join/$token"],"webhooks":[]},"events":[{"name":"orgs.hostname.activated","title":"orgs: hostname activated","schema":{"$schema":"https://json-schema.org/draft/2020-12/schema","type":"object","properties":{"orgId":{"type":"string","minLength":1},"hostnameId":{"type":"string","minLength":1},"hostname":{"type":"string","minLength":1},"app":{"type":"string","enum":["website-builder"]},"mode":{"type":"string","enum":["cloudflare"]},"at":{"type":"integer","exclusiveMinimum":0,"maximum":9007199254740991}},"required":["orgId","hostnameId","hostname","app","mode","at"],"additionalProperties":false}},{"name":"orgs.hostname.removed","title":"orgs: hostname removed","schema":{"$schema":"https://json-schema.org/draft/2020-12/schema","type":"object","properties":{"orgId":{"type":"string","minLength":1},"hostnameId":{"type":"string","minLength":1},"hostname":{"type":"string","minLength":1},"app":{"type":"string","enum":["website-builder"]},"mode":{"type":"string","enum":["cloudflare"]},"at":{"type":"integer","exclusiveMinimum":0,"maximum":9007199254740991},"deleted":{"type":"boolean"}},"required":["orgId","hostnameId","hostname","app","mode","at","deleted"],"additionalProperties":false}},{"name":"orgs.join-request.created","title":"orgs: join request created","schema":{"$schema":"https://json-schema.org/draft/2020-12/schema","type":"object","properties":{"orgId":{"type":"string","minLength":1},"requestId":{"type":"string","minLength":1},"userId":{"type":"string","minLength":1},"createdAt":{"type":"integer","exclusiveMinimum":0,"maximum":9007199254740991}},"required":["orgId","requestId","userId","createdAt"],"additionalProperties":false}},{"name":"orgs.join-request.decided","title":"orgs: join request decided","schema":{"$schema":"https://json-schema.org/draft/2020-12/schema","type":"object","properties":{"orgId":{"type":"string","minLength":1},"requestId":{"type":"string","minLength":1},"userId":{"type":"string","minLength":1},"status":{"type":"string","enum":["approved","rejected"]},"decidedAt":{"type":"integer","exclusiveMinimum":0,"maximum":9007199254740991}},"required":["orgId","requestId","userId","status","decidedAt"],"additionalProperties":false}},{"name":"orgs.member.changed","title":"orgs: member changed","schema":{"$schema":"https://json-schema.org/draft/2020-12/schema","type":"object","properties":{"orgId":{"type":"string","minLength":1},"userId":{"type":"string","minLength":1},"change":{"type":"string","enum":["added","removed","roles_changed"]},"changedAt":{"type":"integer","exclusiveMinimum":0,"maximum":9007199254740991},"snapshot":{"anyOf":[{"type":"object","properties":{"memberId":{"type":"string","minLength":1},"role":{"type":"string","minLength":1},"joinedAt":{"type":"integer","exclusiveMinimum":0,"maximum":9007199254740991},"placements":{"type":"array","items":{"type":"object","properties":{"branchId":{"type":"string","minLength":1},"nodeId":{"anyOf":[{"type":"string","minLength":1},{"type":"null"}]},"isPrimary":{"type":"boolean"},"title":{"type":["string","null"]}},"required":["branchId","nodeId","isPrimary","title"],"additionalProperties":false}},"groups":{"type":"array","items":{"type":"object","properties":{"groupId":{"type":"string","minLength":1},"teamId":{"anyOf":[{"type":"string","minLength":1},{"type":"null"}]},"contextNodeId":{"anyOf":[{"type":"string","minLength":1},{"type":"null"}]},"title":{"type":["string","null"]}},"required":["groupId","teamId","contextNodeId","title"],"additionalProperties":false}}},"required":["memberId","role","joinedAt","placements","groups"],"additionalProperties":false},{"type":"null"}]},"periodId":{"type":"string","minLength":1},"actorUserId":{"anyOf":[{"type":"string","minLength":1},{"type":"null"}]},"endKind":{"type":"string","enum":["removed","left","account_deleted","merged"]},"mergedIntoPeriodId":{"type":"string","minLength":1}},"required":["orgId","userId","change","changedAt"],"additionalProperties":false}},{"name":"orgs.notification.raised","title":"orgs: notification raised","schema":{"$schema":"https://json-schema.org/draft/2020-12/schema","type":"object","properties":{"idempotencyKey":{"type":"string","minLength":1,"maxLength":200},"kind":{"type":"string","minLength":3,"maxLength":120},"targetApp":{"type":"string","minLength":1,"maxLength":64},"orgId":{"anyOf":[{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"},{"type":"null"}]},"actorUserId":{"anyOf":[{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"},{"type":"null"}]},"audience":{"oneOf":[{"type":"object","properties":{"type":{"type":"string","const":"users"},"userIds":{"minItems":1,"maxItems":500,"type":"array","items":{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"}}},"required":["type","userIds"],"additionalProperties":false},{"type":"object","properties":{"type":{"type":"string","const":"orgMembers"},"orgId":{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"}},"required":["type","orgId"],"additionalProperties":false}]},"title":{"type":"string","minLength":1,"maxLength":200},"body":{"type":"string","maxLength":2000},"href":{"anyOf":[{"type":"string","maxLength":512,"format":"starts_with","pattern":"^\\/.*"},{"type":"null"}]},"data":{"type":"object","propertyNames":{"type":"string","maxLength":64},"additionalProperties":{"anyOf":[{"type":"string","maxLength":512},{"type":"number"},{"type":"boolean"},{"type":"null"}]}},"occurredAt":{"type":"integer","exclusiveMinimum":0,"maximum":9007199254740991}},"required":["idempotencyKey","kind","targetApp","orgId","actorUserId","audience","title","body","href","data","occurredAt"],"additionalProperties":false}},{"name":"orgs.organization.changed","title":"orgs: organization changed","schema":{"$schema":"https://json-schema.org/draft/2020-12/schema","type":"object","properties":{"orgId":{"type":"string","minLength":1},"change":{"type":"string","enum":["archived","unarchived","environment_changed"]},"changedAt":{"type":"integer","exclusiveMinimum":0,"maximum":9007199254740991}},"required":["orgId","change","changedAt"],"additionalProperties":false}},{"name":"orgs.organization.created","title":"orgs: organization created","schema":{"$schema":"https://json-schema.org/draft/2020-12/schema","type":"object","properties":{"orgId":{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"},"name":{"type":"string","minLength":1},"kind":{"type":"string","enum":["generic","school","college","university","madrasa","clinic","charity","company","preschool","coaching_center","training_institute","hospital","diagnostic_center","pharmacy","shop","restaurant","hotel","factory","agency","financial_institution","cooperative","farm","media","religious","club","housing_society","community","government","event","systems"]},"actorUserId":{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"},"createdAt":{"type":"integer","exclusiveMinimum":0,"maximum":9007199254740991},"setup":{"type":"object","properties":{"attendance":{"anyOf":[{"type":"object","properties":{"start":{"type":"string","pattern":"^([01]\\d|2[0-3]):[0-5]\\d$"},"end":{"type":"string","pattern":"^([01]\\d|2[0-3]):[0-5]\\d$"},"lateAfterMinutes":{"type":"integer","minimum":0,"maximum":60}},"required":["start","end","lateAfterMinutes"],"additionalProperties":false},{"type":"null"}]},"notifierIncludedUnits":{"anyOf":[{"type":"object","properties":{"email":{"type":"integer","minimum":0,"maximum":10000000},"sms":{"type":"integer","minimum":0,"maximum":10000000},"voice":{"type":"integer","minimum":0,"maximum":10000000}},"required":["email","sms","voice"],"additionalProperties":false},{"type":"null"}]}},"required":["attendance","notifierIncludedUnits"],"additionalProperties":false}},"required":["orgId","name","kind","actorUserId","createdAt","setup"],"additionalProperties":false}},{"name":"orgs.organization.deleted","title":"orgs: organization deleted","schema":{"$schema":"https://json-schema.org/draft/2020-12/schema","type":"object","properties":{"orgId":{"type":"string","minLength":1},"deletedAt":{"type":"integer","exclusiveMinimum":0,"maximum":9007199254740991}},"required":["orgId","deletedAt"],"additionalProperties":false}},{"name":"orgs.organization.kind-assigned","title":"orgs: organization kind assigned","schema":{"$schema":"https://json-schema.org/draft/2020-12/schema","type":"object","properties":{"orgId":{"type":"string","minLength":1},"kind":{"type":"string","enum":["generic","school","college","university","madrasa","clinic","charity","company","preschool","coaching_center","training_institute","hospital","diagnostic_center","pharmacy","shop","restaurant","hotel","factory","agency","financial_institution","cooperative","farm","media","religious","club","housing_society","community","government","event","systems"]},"actorUserId":{"type":"string","minLength":1},"setAt":{"type":"integer","exclusiveMinimum":0,"maximum":9007199254740991}},"required":["orgId","kind","actorUserId","setAt"],"additionalProperties":false}},{"name":"orgs.structure.changed","title":"orgs: structure changed","schema":{"$schema":"https://json-schema.org/draft/2020-12/schema","type":"object","properties":{"orgId":{"type":"string","minLength":1},"changedAt":{"type":"integer","exclusiveMinimum":0,"maximum":9007199254740991}},"required":["orgId","changedAt"],"additionalProperties":false}},{"name":"orgs.audit.recorded","title":"orgs: audit recorded","schema":{"$schema":"https://json-schema.org/draft/2020-12/schema","type":"object","properties":{"eventId":{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"},"occurredAt":{"type":"integer","exclusiveMinimum":0,"maximum":9007199254740991},"orgId":{"anyOf":[{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"},{"type":"null"}]},"actorUserId":{"anyOf":[{"type":"string","minLength":1,"maxLength":255},{"type":"null"}]},"actorKind":{"type":"string","enum":["user","api_key","service","system"]},"action":{"type":"string","minLength":1,"maxLength":160},"targetKind":{"anyOf":[{"type":"string","maxLength":64},{"type":"null"}]},"targetId":{"anyOf":[{"type":"string","maxLength":255},{"type":"null"}]},"outcome":{"type":"string","enum":["success","failure"]},"ip":{"anyOf":[{"type":"string","maxLength":64},{"type":"null"}]},"userAgent":{"anyOf":[{"type":"string","maxLength":512},{"type":"null"}]},"requestId":{"anyOf":[{"type":"string","maxLength":128},{"type":"null"}]},"metadata":{"anyOf":[{"type":"object","propertyNames":{"type":"string"},"additionalProperties":{"$ref":"#/$defs/__schema0"}},{"type":"null"}]}},"required":["eventId","occurredAt","orgId","actorUserId","actorKind","action","targetKind","targetId","outcome","ip","userAgent","requestId","metadata"],"additionalProperties":false,"$defs":{"__schema0":{"anyOf":[{"type":"string"},{"type":"number"},{"type":"boolean"},{"type":"null"},{"type":"array","items":{"$ref":"#/$defs/__schema0"}},{"type":"object","propertyNames":{"type":"string"},"additionalProperties":{"$ref":"#/$defs/__schema0"}}]}}}}],"models":{"organization":{"title":"Organisation fields safe to show to workflow builders","schema":{"$schema":"https://json-schema.org/draft/2020-12/schema","type":"object","properties":{"id":{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"},"name":{"type":"string"},"slug":{"type":"string"},"kind":{"type":"string"},"environment":{"type":"string"},"archivedAt":{"anyOf":[{"type":"string","format":"date-time"},{"type":"null"}]},"description":{"type":["string","null"]},"timezone":{"type":"string"},"createdAt":{"type":"string","format":"date-time"},"updatedAt":{"type":"string","format":"date-time"}},"required":["id","name","slug","kind","environment","archivedAt","description","timezone","createdAt","updatedAt"],"additionalProperties":false},"excluded":["metadata","metadataTypes","logo","logoDark","mark","cover","brand","createdBy"]},"branch":{"title":"Branch fields safe to show to workflow builders","schema":{"$schema":"https://json-schema.org/draft/2020-12/schema","type":"object","properties":{"id":{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"},"name":{"type":"string"},"slug":{"type":"string"},"isDefault":{"type":"boolean"},"displayOrder":{"type":"integer","minimum":-2147483648,"maximum":2147483647},"deletedAt":{"anyOf":[{"type":"string","format":"date-time"},{"type":"null"}]},"createdAt":{"type":"string","format":"date-time"},"updatedAt":{"type":"string","format":"date-time"}},"required":["id","name","slug","isDefault","displayOrder","deletedAt","createdAt","updatedAt"],"additionalProperties":false},"excluded":["organizationId","permVersion"]},"node":{"title":"Structure node fields safe to show to workflow builders","schema":{"$schema":"https://json-schema.org/draft/2020-12/schema","type":"object","properties":{"id":{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"},"branchId":{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"},"parentId":{"anyOf":[{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"},{"type":"null"}]},"nodeType":{"type":"string"},"name":{"type":"string"},"slug":{"type":"string"},"depth":{"type":"integer","minimum":-2147483648,"maximum":2147483647},"displayOrder":{"type":"integer","minimum":-2147483648,"maximum":2147483647},"createdAt":{"type":"string","format":"date-time"},"updatedAt":{"type":"string","format":"date-time"}},"required":["id","branchId","parentId","nodeType","name","slug","depth","displayOrder","createdAt","updatedAt"],"additionalProperties":false},"excluded":["organizationId","permVersion"]},"group":{"title":"Group fields safe to show to workflow builders","schema":{"$schema":"https://json-schema.org/draft/2020-12/schema","type":"object","properties":{"id":{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"},"name":{"type":"string"},"slug":{"type":"string"},"kind":{"type":"string"},"description":{"type":["string","null"]},"branchId":{"anyOf":[{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"},{"type":"null"}]},"nodeId":{"anyOf":[{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"},{"type":"null"}]},"displayOrder":{"type":"integer","minimum":-2147483648,"maximum":2147483647},"createdAt":{"type":"string","format":"date-time"},"updatedAt":{"type":"string","format":"date-time"}},"required":["id","name","slug","kind","description","branchId","nodeId","displayOrder","createdAt","updatedAt"],"additionalProperties":false},"excluded":["organizationId","managedBy","externalRef","permVersion"]},"team":{"title":"Team fields safe to show to workflow builders","schema":{"$schema":"https://json-schema.org/draft/2020-12/schema","type":"object","properties":{"id":{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"},"groupId":{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"},"name":{"type":"string"},"slug":{"type":"string"},"description":{"type":["string","null"]},"displayOrder":{"type":"integer","minimum":-2147483648,"maximum":2147483647},"createdAt":{"type":"string","format":"date-time"},"updatedAt":{"type":"string","format":"date-time"}},"required":["id","groupId","name","slug","description","displayOrder","createdAt","updatedAt"],"additionalProperties":false},"excluded":["organizationId","managedBy","externalRef","permVersion"]},"role":{"title":"Custom role fields safe to show to workflow builders","schema":{"$schema":"https://json-schema.org/draft/2020-12/schema","type":"object","properties":{"id":{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"},"name":{"type":"string"},"description":{"type":["string","null"]},"createdAt":{"type":"string","format":"date-time"},"updatedAt":{"type":"string","format":"date-time"}},"required":["id","name","description","createdAt","updatedAt"],"additionalProperties":false},"excluded":["organizationId","createdBy","permVersion"]}}}