{"openapi":"3.1.0","info":{"title":"Catechis API","version":"0.1.0"},"paths":{"/v1/auth-config":{"get":{"operationId":"identity.authConfig","summary":"Available sign-in methods","tags":["identity"],"security":[],"parameters":[],"responses":{"200":{"description":"OK","content":{"application/json":{"schema":{"$schema":"https://json-schema.org/draft/2020-12/schema","type":"object","properties":{"google":{"type":"boolean"},"googleClientId":{"type":["string","null"]},"legalVersion":{"type":["string","null"]},"trialNeedsPayment":{"type":"boolean"}},"required":["google","googleClientId","legalVersion","trialNeedsPayment"],"additionalProperties":false}}}}},"x-mcp-tool":false}},"/v1/me/legal":{"post":{"operationId":"identity.acceptLegal","summary":"Accepts the current terms of use and privacy policy","tags":["identity"],"security":[{"bearer":[]}],"parameters":[],"responses":{"200":{"description":"OK","content":{"application/json":{"schema":{"$schema":"https://json-schema.org/draft/2020-12/schema","type":"object","properties":{"ok":{"type":"boolean","const":true}},"required":["ok"],"additionalProperties":false}}}}},"x-mcp-tool":false,"requestBody":{"content":{"application/json":{"schema":{"$schema":"https://json-schema.org/draft/2020-12/schema","type":"object","properties":{"version":{"type":"string"}},"required":["version"]}}}}}},"/v1/me":{"get":{"operationId":"identity.me","summary":"Who I am and which organization (team) I am in","tags":["identity"],"security":[{"bearer":[]}],"parameters":[],"responses":{"200":{"description":"OK","content":{"application/json":{"schema":{"$schema":"https://json-schema.org/draft/2020-12/schema","type":"object","properties":{"userId":{"type":"string"},"email":{"type":"string"},"name":{"type":"string"},"emailVerified":{"type":"boolean"},"orgId":{"type":"string"},"orgName":{"type":"string"},"role":{"type":"string","enum":["member","admin"]},"orgKind":{"type":"string","enum":["diocese","parish","personal"]},"locale":{"type":"string","enum":["pt-BR","en","es"]},"orgLocale":{"type":"string","enum":["pt-BR","en","es"]},"orgCountry":{"type":"string"},"orgCurrency":{"type":"string","enum":["BRL","USD","EUR"]},"photo":{"type":["string","null"]},"photosEnabled":{"type":"boolean"},"emailVerifyBy":{"type":["string","null"]},"signedUpAt":{"type":["string","null"]},"legal":{"type":"object","properties":{"version":{"type":["string","null"]},"accepted":{"type":"boolean"},"acceptedBefore":{"type":"boolean"}},"required":["version","accepted","acceptedBefore"],"additionalProperties":false}},"required":["userId","email","name","emailVerified","orgId","orgName","role","orgKind","locale","orgLocale","orgCountry","orgCurrency","photo","photosEnabled","emailVerifyBy","legal"],"additionalProperties":false}}}}},"x-mcp-tool":true}},"/v1/tokens":{"post":{"operationId":"identity.createToken","summary":"Creates a personal token (MCP/integrations)","tags":["identity"],"security":[{"bearer":[]}],"parameters":[],"responses":{"200":{"description":"OK","content":{"application/json":{"schema":{"$schema":"https://json-schema.org/draft/2020-12/schema","type":"object","properties":{"id":{"type":"string"},"token":{"type":"string"}},"required":["id","token"],"additionalProperties":false}}}}},"x-mcp-tool":false,"requestBody":{"content":{"application/json":{"schema":{"$schema":"https://json-schema.org/draft/2020-12/schema","type":"object","properties":{"name":{"type":"string","minLength":1,"maxLength":60}},"required":["name"]}}}}},"get":{"operationId":"identity.listTokens","summary":"Lists personal tokens (without the secret)","tags":["identity"],"security":[{"bearer":[]}],"parameters":[],"responses":{"200":{"description":"OK","content":{"application/json":{"schema":{"$schema":"https://json-schema.org/draft/2020-12/schema","type":"object","properties":{"items":{"type":"array","items":{"type":"object","properties":{"id":{"type":"string"},"name":{"type":"string"},"createdAt":{"type":"number"}},"required":["id","name","createdAt"],"additionalProperties":false}}},"required":["items"],"additionalProperties":false}}}}},"x-mcp-tool":false}},"/v1/tokens/{tokenId}":{"delete":{"operationId":"identity.revokeToken","summary":"Revokes a personal token","tags":["identity"],"security":[{"bearer":[]}],"parameters":[{"name":"tokenId","in":"path","required":true,"schema":{"type":"string"}}],"responses":{"200":{"description":"OK","content":{"application/json":{"schema":{"$schema":"https://json-schema.org/draft/2020-12/schema","type":"object","properties":{"ok":{"type":"boolean","const":true}},"required":["ok"],"additionalProperties":false}}}}},"x-mcp-tool":false,"requestBody":{"content":{"application/json":{"schema":{"$schema":"https://json-schema.org/draft/2020-12/schema","type":"object","properties":{"tokenId":{"type":"string"}},"required":["tokenId"]}}}}}},"/v1/members":{"get":{"operationId":"identity.listMembers","summary":"Team members of the organization (and pending invitations, for admins)","tags":["identity"],"security":[{"bearer":[]}],"parameters":[],"responses":{"200":{"description":"OK","content":{"application/json":{"schema":{"$schema":"https://json-schema.org/draft/2020-12/schema","type":"object","properties":{"items":{"type":"array","items":{"type":"object","properties":{"userId":{"type":"string"},"name":{"type":"string"},"email":{"type":"string"},"role":{"type":"string","enum":["member","admin"]},"isMe":{"type":"boolean"},"birthDate":{"anyOf":[{"type":"string","pattern":"^\\d{4}-\\d{2}-\\d{2}$"},{"type":"null"}]}},"required":["userId","name","email","role","isMe","birthDate"],"additionalProperties":false}},"invites":{"type":"array","items":{"type":"object","properties":{"id":{"type":"string"},"email":{"type":"string"},"role":{"type":"string","enum":["member","admin"]},"createdAt":{"type":"string","pattern":"^\\d{4}-\\d{2}-\\d{2}$"},"expiresAt":{"type":"string","pattern":"^\\d{4}-\\d{2}-\\d{2}$"},"invitedByName":{"type":"string"}},"required":["id","email","role","createdAt","expiresAt","invitedByName"],"additionalProperties":false}},"limit":{"anyOf":[{"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991},{"type":"null"}]},"planId":{"type":"string"},"teamBirthdays":{"type":"boolean"}},"required":["items","invites","limit","planId","teamBirthdays"],"additionalProperties":false}}}}},"x-mcp-tool":true}},"/v1/members/invites":{"post":{"operationId":"identity.inviteMember","summary":"Invites someone to the team (email + single-use link)","tags":["identity"],"security":[{"bearer":[]}],"parameters":[],"responses":{"200":{"description":"OK","content":{"application/json":{"schema":{"$schema":"https://json-schema.org/draft/2020-12/schema","type":"object","properties":{"invite":{"type":"object","properties":{"id":{"type":"string"},"email":{"type":"string"},"role":{"type":"string","enum":["member","admin"]},"createdAt":{"type":"string","pattern":"^\\d{4}-\\d{2}-\\d{2}$"},"expiresAt":{"type":"string","pattern":"^\\d{4}-\\d{2}-\\d{2}$"},"invitedByName":{"type":"string"}},"required":["id","email","role","createdAt","expiresAt","invitedByName"],"additionalProperties":false},"link":{"type":"string"},"emailSent":{"type":"boolean"}},"required":["invite","link","emailSent"],"additionalProperties":false}}}}},"x-mcp-tool":false,"requestBody":{"content":{"application/json":{"schema":{"$schema":"https://json-schema.org/draft/2020-12/schema","type":"object","properties":{"email":{"type":"string","maxLength":160,"format":"email","pattern":"^(?:[A-Za-z0-9_'+\\-]+\\.)*[A-Za-z0-9_'+\\-]*[A-Za-z0-9_+-]@(?:[A-Za-z0-9][A-Za-z0-9\\-]*\\.)+[A-Za-z]{2,}$"},"role":{"default":"member","type":"string","enum":["member","admin"]}},"required":["email"]}}}}}},"/v1/members/invites/{inviteId}":{"delete":{"operationId":"identity.revokeInvite","summary":"Cancels a pending invitation","tags":["identity"],"security":[{"bearer":[]}],"parameters":[{"name":"inviteId","in":"path","required":true,"schema":{"type":"string"}}],"responses":{"200":{"description":"OK","content":{"application/json":{"schema":{"$schema":"https://json-schema.org/draft/2020-12/schema","type":"object","properties":{"ok":{"type":"boolean","const":true}},"required":["ok"],"additionalProperties":false}}}}},"x-mcp-tool":false,"requestBody":{"content":{"application/json":{"schema":{"$schema":"https://json-schema.org/draft/2020-12/schema","type":"object","properties":{"inviteId":{"type":"string"}},"required":["inviteId"]}}}}}},"/v1/members/{userId}":{"patch":{"operationId":"identity.setMemberRole","summary":"Changes the role of a team member (admin or catechist)","tags":["identity"],"security":[{"bearer":[]}],"parameters":[{"name":"userId","in":"path","required":true,"schema":{"type":"string"}}],"responses":{"200":{"description":"OK","content":{"application/json":{"schema":{"$schema":"https://json-schema.org/draft/2020-12/schema","type":"object","properties":{"userId":{"type":"string"},"name":{"type":"string"},"email":{"type":"string"},"role":{"type":"string","enum":["member","admin"]},"isMe":{"type":"boolean"},"birthDate":{"anyOf":[{"type":"string","pattern":"^\\d{4}-\\d{2}-\\d{2}$"},{"type":"null"}]}},"required":["userId","name","email","role","isMe","birthDate"],"additionalProperties":false}}}}},"x-mcp-tool":false,"requestBody":{"content":{"application/json":{"schema":{"$schema":"https://json-schema.org/draft/2020-12/schema","type":"object","properties":{"userId":{"type":"string"},"role":{"type":"string","enum":["member","admin"]}},"required":["userId","role"]}}}}},"delete":{"operationId":"identity.removeMember","summary":"Removes someone from the team (their account keeps existing)","tags":["identity"],"security":[{"bearer":[]}],"parameters":[{"name":"userId","in":"path","required":true,"schema":{"type":"string"}}],"responses":{"200":{"description":"OK","content":{"application/json":{"schema":{"$schema":"https://json-schema.org/draft/2020-12/schema","type":"object","properties":{"ok":{"type":"boolean","const":true}},"required":["ok"],"additionalProperties":false}}}}},"x-mcp-tool":false,"requestBody":{"content":{"application/json":{"schema":{"$schema":"https://json-schema.org/draft/2020-12/schema","type":"object","properties":{"userId":{"type":"string"}},"required":["userId"]}}}}}},"/v1/members/{userId}/birth-date":{"put":{"operationId":"identity.setMemberBirthDate","summary":"Sets or clears a team member's birthday (Parish and Diocese plans)","tags":["identity"],"security":[{"bearer":[]}],"parameters":[{"name":"userId","in":"path","required":true,"schema":{"type":"string"}}],"responses":{"200":{"description":"OK","content":{"application/json":{"schema":{"$schema":"https://json-schema.org/draft/2020-12/schema","type":"object","properties":{"userId":{"type":"string"},"name":{"type":"string"},"email":{"type":"string"},"role":{"type":"string","enum":["member","admin"]},"isMe":{"type":"boolean"},"birthDate":{"anyOf":[{"type":"string","pattern":"^\\d{4}-\\d{2}-\\d{2}$"},{"type":"null"}]}},"required":["userId","name","email","role","isMe","birthDate"],"additionalProperties":false}}}}},"x-mcp-tool":false,"requestBody":{"content":{"application/json":{"schema":{"$schema":"https://json-schema.org/draft/2020-12/schema","type":"object","properties":{"userId":{"type":"string"},"birthDate":{"anyOf":[{"type":"string","pattern":"^\\d{4}-\\d{2}-\\d{2}$"},{"type":"null"}]}},"required":["userId","birthDate"]}}}}}},"/v1/invites/{token}":{"get":{"operationId":"identity.getInvite","summary":"Public data of an invitation (team, who invited, expiry)","tags":["identity"],"security":[],"parameters":[{"name":"token","in":"path","required":true,"schema":{"type":"string","minLength":10,"maxLength":200}}],"responses":{"200":{"description":"OK","content":{"application/json":{"schema":{"$schema":"https://json-schema.org/draft/2020-12/schema","type":"object","properties":{"orgName":{"type":"string"},"invitedByName":{"type":"string"},"email":{"type":"string"},"role":{"type":"string","enum":["member","admin"]},"status":{"type":"string","enum":["valid","expired","used","revoked"]}},"required":["orgName","invitedByName","email","role","status"],"additionalProperties":false}}}}},"x-mcp-tool":false}},"/v1/invites/{token}/accept":{"post":{"operationId":"identity.acceptInvite","summary":"Accepts an invitation: joins the team and switches to it","tags":["identity"],"security":[{"bearer":[]}],"parameters":[{"name":"token","in":"path","required":true,"schema":{"type":"string","minLength":10,"maxLength":200}}],"responses":{"200":{"description":"OK","content":{"application/json":{"schema":{"$schema":"https://json-schema.org/draft/2020-12/schema","type":"object","properties":{"orgId":{"type":"string"},"orgName":{"type":"string"}},"required":["orgId","orgName"],"additionalProperties":false}}}}},"x-mcp-tool":false,"requestBody":{"content":{"application/json":{"schema":{"$schema":"https://json-schema.org/draft/2020-12/schema","type":"object","properties":{"token":{"type":"string","minLength":10,"maxLength":200}},"required":["token"]}}}}}},"/v1/orgs":{"get":{"operationId":"identity.myOrgs","summary":"Teams (organizations) the person belongs to","tags":["identity"],"security":[{"bearer":[]}],"parameters":[],"responses":{"200":{"description":"OK","content":{"application/json":{"schema":{"$schema":"https://json-schema.org/draft/2020-12/schema","type":"object","properties":{"items":{"type":"array","items":{"type":"object","properties":{"id":{"type":"string"},"name":{"type":"string"},"role":{"type":"string","enum":["member","admin"]},"kind":{"type":"string","enum":["diocese","parish","personal"]},"active":{"type":"boolean"}},"required":["id","name","role","kind","active"],"additionalProperties":false}}},"required":["items"],"additionalProperties":false}}}}},"x-mcp-tool":false}},"/v1/org":{"patch":{"operationId":"identity.renameOrg","summary":"Renames the team (e.g. \"St. Joseph Parish\")","tags":["identity"],"security":[{"bearer":[]}],"parameters":[],"responses":{"200":{"description":"OK","content":{"application/json":{"schema":{"$schema":"https://json-schema.org/draft/2020-12/schema","type":"object","properties":{"name":{"type":"string"}},"required":["name"],"additionalProperties":false}}}}},"x-mcp-tool":false,"requestBody":{"content":{"application/json":{"schema":{"$schema":"https://json-schema.org/draft/2020-12/schema","type":"object","properties":{"name":{"type":"string","minLength":2,"maxLength":80}},"required":["name"]}}}}}},"/v1/org/settings":{"patch":{"operationId":"identity.setOrgSettings","summary":"Default language, country and currency of the team (country sets the liturgical calendar; currency, billing)","tags":["identity"],"security":[{"bearer":[]}],"parameters":[],"responses":{"200":{"description":"OK","content":{"application/json":{"schema":{"$schema":"https://json-schema.org/draft/2020-12/schema","type":"object","properties":{"locale":{"type":"string","enum":["pt-BR","en","es"]},"country":{"type":"string","pattern":"^[A-Z]{2}$"},"currency":{"type":"string","enum":["BRL","USD","EUR"]}},"required":["locale","country","currency"],"additionalProperties":false}}}}},"x-mcp-tool":false,"requestBody":{"content":{"application/json":{"schema":{"$schema":"https://json-schema.org/draft/2020-12/schema","type":"object","properties":{"locale":{"type":"string","enum":["pt-BR","en","es"]},"country":{"type":"string","pattern":"^[A-Z]{2}$"},"currency":{"type":"string","enum":["BRL","USD","EUR"]}}}}}}}},"/v1/orgs/{orgId}/use":{"post":{"operationId":"identity.switchOrg","summary":"Switches to another team (organization)","tags":["identity"],"security":[{"bearer":[]}],"parameters":[{"name":"orgId","in":"path","required":true,"schema":{"type":"string"}}],"responses":{"200":{"description":"OK","content":{"application/json":{"schema":{"$schema":"https://json-schema.org/draft/2020-12/schema","type":"object","properties":{"ok":{"type":"boolean","const":true}},"required":["ok"],"additionalProperties":false}}}}},"x-mcp-tool":false,"requestBody":{"content":{"application/json":{"schema":{"$schema":"https://json-schema.org/draft/2020-12/schema","type":"object","properties":{"orgId":{"type":"string"}},"required":["orgId"]}}}}}},"/v1/diocese/parishes/{orgId}/team":{"get":{"operationId":"identity.dioceseParishTeam","summary":"Diocese: the team of one linked parish (name, role and classes of each person; email of the admins only)","tags":["identity"],"security":[{"bearer":[]}],"parameters":[{"name":"orgId","in":"path","required":true,"schema":{"type":"string"}}],"responses":{"200":{"description":"OK","content":{"application/json":{"schema":{"$schema":"https://json-schema.org/draft/2020-12/schema","type":"object","properties":{"items":{"type":"array","items":{"type":"object","properties":{"name":{"type":"string"},"role":{"type":"string","enum":["admin","member"]},"email":{"type":["string","null"]},"classes":{"type":"array","items":{"type":"object","properties":{"name":{"type":"string"},"year":{"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991},"lead":{"type":"boolean"}},"required":["name","year","lead"],"additionalProperties":false}}},"required":["name","role","email","classes"],"additionalProperties":false}}},"required":["items"],"additionalProperties":false}}}}},"x-mcp-tool":false}},"/v1/diocese/announcements":{"post":{"operationId":"identity.sendDioceseAnnouncement","summary":"Diocese: sends a notice (bell, push and email) to the coordination (or whole team) of linked parishes, by region or to one parish","tags":["identity"],"security":[{"bearer":[]}],"parameters":[],"responses":{"200":{"description":"OK","content":{"application/json":{"schema":{"$schema":"https://json-schema.org/draft/2020-12/schema","type":"object","properties":{"id":{"type":"string"},"parishes":{"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991},"recipients":{"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991},"emailed":{"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991}},"required":["id","parishes","recipients","emailed"],"additionalProperties":false}}}}},"x-mcp-tool":false,"requestBody":{"content":{"application/json":{"schema":{"$schema":"https://json-schema.org/draft/2020-12/schema","type":"object","properties":{"title":{"type":"string","minLength":2,"maxLength":120},"body":{"type":"string","minLength":1,"maxLength":2000},"audience":{"default":"coordination","type":"string","enum":["coordination","all"]},"regions":{"default":[],"maxItems":50,"type":"array","items":{"type":"string","minLength":1,"maxLength":60}},"orgId":{"type":"string"}},"required":["title","body"]}}}}},"get":{"operationId":"identity.listDioceseAnnouncements","summary":"Diocese: notices sent, newest first, with how many people received and read each","tags":["identity"],"security":[{"bearer":[]}],"parameters":[],"responses":{"200":{"description":"OK","content":{"application/json":{"schema":{"$schema":"https://json-schema.org/draft/2020-12/schema","type":"object","properties":{"items":{"type":"array","items":{"type":"object","properties":{"id":{"type":"string"},"title":{"type":"string"},"body":{"type":"string"},"audience":{"type":"string","enum":["coordination","all"]},"regions":{"type":"array","items":{"type":"string"}},"parishName":{"type":["string","null"]},"createdAt":{"type":"string"},"createdByName":{"type":["string","null"]},"recipients":{"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991},"read":{"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991}},"required":["id","title","body","audience","regions","parishName","createdAt","createdByName","recipients","read"],"additionalProperties":false}}},"required":["items"],"additionalProperties":false}}}}},"x-mcp-tool":false}},"/v1/diocese":{"get":{"operationId":"identity.dioceseOverview","summary":"Diocese: contract coverage, linked parishes with their admins, and open link requests","tags":["identity"],"security":[{"bearer":[]}],"parameters":[],"responses":{"200":{"description":"OK","content":{"application/json":{"schema":{"$schema":"https://json-schema.org/draft/2020-12/schema","type":"object","properties":{"name":{"type":"string"},"license":{"anyOf":[{"type":"object","properties":{"parishes":{"anyOf":[{"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991},{"type":"null"}]},"linked":{"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991},"endsAt":{"anyOf":[{"type":"string","pattern":"^\\d{4}-\\d{2}-\\d{2}$"},{"type":"null"}]}},"required":["parishes","linked","endsAt"],"additionalProperties":false},{"type":"null"}]},"parishes":{"type":"array","items":{"type":"object","properties":{"orgId":{"type":"string"},"name":{"type":"string"},"region":{"type":["string","null"]},"linkedAt":{"type":"string"},"admins":{"type":"array","items":{"type":"object","properties":{"name":{"type":"string"},"email":{"type":"string"}},"required":["name","email"],"additionalProperties":false}},"members":{"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991},"pendingInvite":{"anyOf":[{"type":"object","properties":{"email":{"type":"string"},"expiresAt":{"type":"string","pattern":"^\\d{4}-\\d{2}-\\d{2}$"}},"required":["email","expiresAt"],"additionalProperties":false},{"type":"null"}]}},"required":["orgId","name","region","linkedAt","admins","members","pendingInvite"],"additionalProperties":false}},"requests":{"type":"array","items":{"type":"object","properties":{"id":{"type":"string"},"email":{"type":"string"},"region":{"type":["string","null"]},"createdAt":{"type":"string","pattern":"^\\d{4}-\\d{2}-\\d{2}$"},"expiresAt":{"type":"string","pattern":"^\\d{4}-\\d{2}-\\d{2}$"}},"required":["id","email","region","createdAt","expiresAt"],"additionalProperties":false}}},"required":["name","license","parishes","requests"],"additionalProperties":false}}}}},"x-mcp-tool":false}},"/v1/diocese/parishes":{"post":{"operationId":"identity.addParishes","summary":"Diocese: registers parishes (name, region, admin email), already linked, and invites each admin","tags":["identity"],"security":[{"bearer":[]}],"parameters":[],"responses":{"200":{"description":"OK","content":{"application/json":{"schema":{"$schema":"https://json-schema.org/draft/2020-12/schema","type":"object","properties":{"created":{"type":"array","items":{"type":"object","properties":{"orgId":{"type":"string"},"name":{"type":"string"},"adminEmail":{"type":"string"},"link":{"type":"string"},"emailSent":{"type":"boolean"}},"required":["orgId","name","adminEmail","link","emailSent"],"additionalProperties":false}}},"required":["created"],"additionalProperties":false}}}}},"x-mcp-tool":false,"requestBody":{"content":{"application/json":{"schema":{"$schema":"https://json-schema.org/draft/2020-12/schema","type":"object","properties":{"items":{"minItems":1,"maxItems":200,"type":"array","items":{"type":"object","properties":{"name":{"type":"string","minLength":2,"maxLength":120},"region":{"anyOf":[{"type":"string","maxLength":60},{"type":"null"}]},"adminEmail":{"type":"string","maxLength":160,"format":"email","pattern":"^(?:[A-Za-z0-9_'+\\-]+\\.)*[A-Za-z0-9_'+\\-]*[A-Za-z0-9_+-]@(?:[A-Za-z0-9][A-Za-z0-9\\-]*\\.)+[A-Za-z]{2,}$"}},"required":["name","adminEmail"]}}},"required":["items"]}}}}}},"/v1/diocese/parishes/{orgId}/invite":{"post":{"operationId":"identity.resendParishInvite","summary":"Diocese: sends a new admin invitation to a parish nobody has joined yet","tags":["identity"],"security":[{"bearer":[]}],"parameters":[{"name":"orgId","in":"path","required":true,"schema":{"type":"string"}}],"responses":{"200":{"description":"OK","content":{"application/json":{"schema":{"$schema":"https://json-schema.org/draft/2020-12/schema","type":"object","properties":{"link":{"type":"string"},"emailSent":{"type":"boolean"}},"required":["link","emailSent"],"additionalProperties":false}}}}},"x-mcp-tool":false,"requestBody":{"content":{"application/json":{"schema":{"$schema":"https://json-schema.org/draft/2020-12/schema","type":"object","properties":{"orgId":{"type":"string"},"email":{"type":"string","maxLength":160,"format":"email","pattern":"^(?:[A-Za-z0-9_'+\\-]+\\.)*[A-Za-z0-9_'+\\-]*[A-Za-z0-9_+-]@(?:[A-Za-z0-9][A-Za-z0-9\\-]*\\.)+[A-Za-z]{2,}$"}},"required":["orgId","email"]}}}}}},"/v1/diocese/parishes/{orgId}":{"patch":{"operationId":"identity.setParishRegion","summary":"Diocese: sets a linked parish's pastoral region","tags":["identity"],"security":[{"bearer":[]}],"parameters":[{"name":"orgId","in":"path","required":true,"schema":{"type":"string"}}],"responses":{"200":{"description":"OK","content":{"application/json":{"schema":{"$schema":"https://json-schema.org/draft/2020-12/schema","type":"object","properties":{"region":{"type":["string","null"]}},"required":["region"],"additionalProperties":false}}}}},"x-mcp-tool":false,"requestBody":{"content":{"application/json":{"schema":{"$schema":"https://json-schema.org/draft/2020-12/schema","type":"object","properties":{"orgId":{"type":"string"},"region":{"anyOf":[{"type":"string","maxLength":60},{"type":"null"}]}},"required":["orgId"]}}}}},"delete":{"operationId":"identity.unlinkParish","summary":"Diocese: removes a parish from the diocese (it stops being covered and seen)","tags":["identity"],"security":[{"bearer":[]}],"parameters":[{"name":"orgId","in":"path","required":true,"schema":{"type":"string"}}],"responses":{"200":{"description":"OK","content":{"application/json":{"schema":{"$schema":"https://json-schema.org/draft/2020-12/schema","type":"object","properties":{"ok":{"type":"boolean","const":true}},"required":["ok"],"additionalProperties":false}}}}},"x-mcp-tool":false,"requestBody":{"content":{"application/json":{"schema":{"$schema":"https://json-schema.org/draft/2020-12/schema","type":"object","properties":{"orgId":{"type":"string"}},"required":["orgId"]}}}}}},"/v1/diocese/link-requests":{"post":{"operationId":"identity.requestParishLink","summary":"Diocese: asks a parish that already uses Catechis to link (single-use link to its admin)","tags":["identity"],"security":[{"bearer":[]}],"parameters":[],"responses":{"200":{"description":"OK","content":{"application/json":{"schema":{"$schema":"https://json-schema.org/draft/2020-12/schema","type":"object","properties":{"id":{"type":"string"},"link":{"type":"string"},"emailSent":{"type":"boolean"}},"required":["id","link","emailSent"],"additionalProperties":false}}}}},"x-mcp-tool":false,"requestBody":{"content":{"application/json":{"schema":{"$schema":"https://json-schema.org/draft/2020-12/schema","type":"object","properties":{"email":{"type":"string","maxLength":160,"format":"email","pattern":"^(?:[A-Za-z0-9_'+\\-]+\\.)*[A-Za-z0-9_'+\\-]*[A-Za-z0-9_+-]@(?:[A-Za-z0-9][A-Za-z0-9\\-]*\\.)+[A-Za-z]{2,}$"},"region":{"anyOf":[{"type":"string","maxLength":60},{"type":"null"}]}},"required":["email"]}}}}}},"/v1/diocese/link-requests/{requestId}":{"delete":{"operationId":"identity.revokeParishLinkRequest","summary":"Diocese: cancels an open link request","tags":["identity"],"security":[{"bearer":[]}],"parameters":[{"name":"requestId","in":"path","required":true,"schema":{"type":"string"}}],"responses":{"200":{"description":"OK","content":{"application/json":{"schema":{"$schema":"https://json-schema.org/draft/2020-12/schema","type":"object","properties":{"ok":{"type":"boolean","const":true}},"required":["ok"],"additionalProperties":false}}}}},"x-mcp-tool":false,"requestBody":{"content":{"application/json":{"schema":{"$schema":"https://json-schema.org/draft/2020-12/schema","type":"object","properties":{"requestId":{"type":"string"}},"required":["requestId"]}}}}}},"/v1/diocese-links/{token}":{"get":{"operationId":"identity.getDioceseLink","summary":"Parish: shows a diocese link request before accepting","tags":["identity"],"security":[{"bearer":[]}],"parameters":[{"name":"token","in":"path","required":true,"schema":{"type":"string","minLength":10,"maxLength":200}}],"responses":{"200":{"description":"OK","content":{"application/json":{"schema":{"$schema":"https://json-schema.org/draft/2020-12/schema","type":"object","properties":{"dioceseName":{"type":"string"},"invitedByName":{"type":"string"},"status":{"type":"string","enum":["valid","expired","used","revoked"]},"orgName":{"type":"string"},"canAccept":{"type":"boolean"},"reason":{"anyOf":[{"type":"string","enum":["not_admin","is_diocese","other_diocese","already_linked"]},{"type":"null"}]}},"required":["dioceseName","invitedByName","status","orgName","canAccept","reason"],"additionalProperties":false}}}}},"x-mcp-tool":false}},"/v1/diocese-links/{token}/accept":{"post":{"operationId":"identity.acceptDioceseLink","summary":"Parish: links the active team to the diocese","tags":["identity"],"security":[{"bearer":[]}],"parameters":[{"name":"token","in":"path","required":true,"schema":{"type":"string","minLength":10,"maxLength":200}}],"responses":{"200":{"description":"OK","content":{"application/json":{"schema":{"$schema":"https://json-schema.org/draft/2020-12/schema","type":"object","properties":{"dioceseId":{"type":"string"},"dioceseName":{"type":"string"}},"required":["dioceseId","dioceseName"],"additionalProperties":false}}}}},"x-mcp-tool":false,"requestBody":{"content":{"application/json":{"schema":{"$schema":"https://json-schema.org/draft/2020-12/schema","type":"object","properties":{"token":{"type":"string","minLength":10,"maxLength":200}},"required":["token"]}}}}}},"/v1/org/diocese":{"get":{"operationId":"identity.myDiocese","summary":"Parish: the diocese the team is linked to, if any","tags":["identity"],"security":[{"bearer":[]}],"parameters":[],"responses":{"200":{"description":"OK","content":{"application/json":{"schema":{"$schema":"https://json-schema.org/draft/2020-12/schema","type":"object","properties":{"diocese":{"anyOf":[{"type":"object","properties":{"id":{"type":"string"},"name":{"type":"string"},"region":{"type":["string","null"]},"linkedAt":{"type":"string","pattern":"^\\d{4}-\\d{2}-\\d{2}$"}},"required":["id","name","region","linkedAt"],"additionalProperties":false},{"type":"null"}]}},"required":["diocese"],"additionalProperties":false}}}}},"x-mcp-tool":false}},"/v1/org/diocese/leave":{"post":{"operationId":"identity.leaveDiocese","summary":"Parish: undoes the link to the diocese","tags":["identity"],"security":[{"bearer":[]}],"parameters":[],"responses":{"200":{"description":"OK","content":{"application/json":{"schema":{"$schema":"https://json-schema.org/draft/2020-12/schema","type":"object","properties":{"ok":{"type":"boolean","const":true}},"required":["ok"],"additionalProperties":false}}}}},"x-mcp-tool":false,"requestBody":{"content":{"application/json":{"schema":{"$schema":"https://json-schema.org/draft/2020-12/schema","type":"object","properties":{}}}}}}},"/v1/me/photo":{"put":{"operationId":"identity.setMyPhoto","summary":"Sets the person's own profile photo (256 px and 64 px, cropped on the device)","tags":["identity"],"security":[{"bearer":[]}],"parameters":[],"responses":{"200":{"description":"OK","content":{"application/json":{"schema":{"$schema":"https://json-schema.org/draft/2020-12/schema","type":"object","properties":{"photo":{"type":"string"}},"required":["photo"],"additionalProperties":false}}}}},"x-mcp-tool":false,"requestBody":{"content":{"application/json":{"schema":{"$schema":"https://json-schema.org/draft/2020-12/schema","type":"object","properties":{"full":{"type":"string","minLength":16,"maxLength":266671},"thumb":{"type":"string","minLength":16,"maxLength":40004}},"required":["full","thumb"]}}}}},"delete":{"operationId":"identity.deleteMyPhoto","summary":"Removes the person's own profile photo","tags":["identity"],"security":[{"bearer":[]}],"parameters":[],"responses":{"200":{"description":"OK","content":{"application/json":{"schema":{"$schema":"https://json-schema.org/draft/2020-12/schema","type":"object","properties":{"ok":{"type":"boolean","const":true}},"required":["ok"],"additionalProperties":false}}}}},"x-mcp-tool":false,"requestBody":{"content":{"application/json":{"schema":{"$schema":"https://json-schema.org/draft/2020-12/schema","type":"object","properties":{}}}}}},"get":{"operationId":"identity.getMyPhoto","summary":"The person's own profile photo (256 px) as a data URL","tags":["identity"],"security":[{"bearer":[]}],"parameters":[],"responses":{"200":{"description":"OK","content":{"application/json":{"schema":{"$schema":"https://json-schema.org/draft/2020-12/schema","type":"object","properties":{"dataUrl":{"type":["string","null"]}},"required":["dataUrl"],"additionalProperties":false}}}}},"x-mcp-tool":false}},"/v1/members/photos":{"get":{"operationId":"identity.teamPhotos","summary":"Profile photo thumbnails of the team members","tags":["identity"],"security":[{"bearer":[]}],"parameters":[],"responses":{"200":{"description":"OK","content":{"application/json":{"schema":{"$schema":"https://json-schema.org/draft/2020-12/schema","type":"object","properties":{"items":{"type":"array","items":{"type":"object","properties":{"userId":{"type":"string"},"photo":{"type":"string"},"dataUrl":{"type":"string"}},"required":["userId","photo","dataUrl"],"additionalProperties":false}}},"required":["items"],"additionalProperties":false}}}}},"x-mcp-tool":false}},"/v1/push":{"get":{"operationId":"identity.getPush","summary":"Push notification setup: the public VAPID key (null = browser push not available here), whether the Android app push is available, and how many devices of the person are on","tags":["identity"],"security":[{"bearer":[]}],"parameters":[],"responses":{"200":{"description":"OK","content":{"application/json":{"schema":{"$schema":"https://json-schema.org/draft/2020-12/schema","type":"object","properties":{"publicKey":{"type":["string","null"]},"native":{"type":"boolean"},"devices":{"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991}},"required":["publicKey","native","devices"],"additionalProperties":false}}}}},"x-mcp-tool":false},"post":{"operationId":"identity.subscribePush","summary":"Turns on push notifications on this device (the browser's push subscription)","tags":["identity"],"security":[{"bearer":[]}],"parameters":[],"responses":{"200":{"description":"OK","content":{"application/json":{"schema":{"$schema":"https://json-schema.org/draft/2020-12/schema","type":"object","properties":{"ok":{"type":"boolean","const":true}},"required":["ok"],"additionalProperties":false}}}}},"x-mcp-tool":false,"requestBody":{"content":{"application/json":{"schema":{"$schema":"https://json-schema.org/draft/2020-12/schema","type":"object","properties":{"endpoint":{"type":"string","maxLength":1000,"format":"uri"},"p256dh":{"type":"string","minLength":80,"maxLength":100},"auth":{"type":"string","minLength":16,"maxLength":40},"label":{"type":"string","maxLength":80}},"required":["endpoint","p256dh","auth"]}}}}}},"/v1/push/app":{"post":{"operationId":"identity.subscribeAppPush","summary":"Turns on push notifications in the Android app on this device (its Firebase Cloud Messaging token)","tags":["identity"],"security":[{"bearer":[]}],"parameters":[],"responses":{"200":{"description":"OK","content":{"application/json":{"schema":{"$schema":"https://json-schema.org/draft/2020-12/schema","type":"object","properties":{"ok":{"type":"boolean","const":true}},"required":["ok"],"additionalProperties":false}}}}},"x-mcp-tool":false,"requestBody":{"content":{"application/json":{"schema":{"$schema":"https://json-schema.org/draft/2020-12/schema","type":"object","properties":{"token":{"type":"string","minLength":20,"maxLength":4096,"pattern":"^[\\w:.-]+$"},"label":{"type":"string","maxLength":80}},"required":["token"]}}}}}},"/v1/push/unsubscribe":{"post":{"operationId":"identity.unsubscribePush","summary":"Turns off push notifications on this device (the browser subscription endpoint, or the Android app token)","tags":["identity"],"security":[{"bearer":[]}],"parameters":[],"responses":{"200":{"description":"OK","content":{"application/json":{"schema":{"$schema":"https://json-schema.org/draft/2020-12/schema","type":"object","properties":{"ok":{"type":"boolean","const":true}},"required":["ok"],"additionalProperties":false}}}}},"x-mcp-tool":false,"requestBody":{"content":{"application/json":{"schema":{"$schema":"https://json-schema.org/draft/2020-12/schema","type":"object","properties":{"endpoint":{"type":"string","maxLength":1000},"token":{"type":"string","maxLength":4096}}}}}}}},"/v1/push/test":{"post":{"operationId":"identity.testPush","summary":"Sends a test notification to the person's devices","tags":["identity"],"security":[{"bearer":[]}],"parameters":[],"responses":{"200":{"description":"OK","content":{"application/json":{"schema":{"$schema":"https://json-schema.org/draft/2020-12/schema","type":"object","properties":{"sent":{"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991}},"required":["sent"],"additionalProperties":false}}}}},"x-mcp-tool":false,"requestBody":{"content":{"application/json":{"schema":{"$schema":"https://json-schema.org/draft/2020-12/schema","type":"object","properties":{}}}}}}},"/v1/notices":{"get":{"operationId":"identity.listNotices","summary":"The person's notices in the current team (newest first, up to 50) and how many are unread","tags":["identity"],"security":[{"bearer":[]}],"parameters":[],"responses":{"200":{"description":"OK","content":{"application/json":{"schema":{"$schema":"https://json-schema.org/draft/2020-12/schema","type":"object","properties":{"items":{"type":"array","items":{"type":"object","properties":{"id":{"type":"string"},"kind":{"type":"string","enum":["reminder","birthday","absences","family","team","plan","community","voice","diocese"]},"title":{"type":"string"},"body":{"type":"string"},"url":{"type":["string","null"]},"createdAt":{"type":"string"},"read":{"type":"boolean"}},"required":["id","kind","title","body","url","createdAt","read"],"additionalProperties":false}},"unread":{"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991}},"required":["items","unread"],"additionalProperties":false}}}}},"x-mcp-tool":false}},"/v1/notices/read":{"post":{"operationId":"identity.readNotices","summary":"Marks notices as read (all of the current team when no ids are given)","tags":["identity"],"security":[{"bearer":[]}],"parameters":[],"responses":{"200":{"description":"OK","content":{"application/json":{"schema":{"$schema":"https://json-schema.org/draft/2020-12/schema","type":"object","properties":{"ok":{"type":"boolean","const":true}},"required":["ok"],"additionalProperties":false}}}}},"x-mcp-tool":false,"requestBody":{"content":{"application/json":{"schema":{"$schema":"https://json-schema.org/draft/2020-12/schema","type":"object","properties":{"ids":{"maxItems":100,"type":"array","items":{"type":"string"}}}}}}}}},"/v1/notices/settings":{"get":{"operationId":"identity.getNoticeSettings","summary":"Which notice kinds the person does not want as push notifications","tags":["identity"],"security":[{"bearer":[]}],"parameters":[],"responses":{"200":{"description":"OK","content":{"application/json":{"schema":{"$schema":"https://json-schema.org/draft/2020-12/schema","type":"object","properties":{"pushMuted":{"type":"array","items":{"type":"string","enum":["reminder","birthday","absences","family","team","plan","community","voice","diocese"]}}},"required":["pushMuted"],"additionalProperties":false}}}}},"x-mcp-tool":false},"put":{"operationId":"identity.setNoticeSettings","summary":"Sets which notice kinds do not go as push notifications","tags":["identity"],"security":[{"bearer":[]}],"parameters":[],"responses":{"200":{"description":"OK","content":{"application/json":{"schema":{"$schema":"https://json-schema.org/draft/2020-12/schema","type":"object","properties":{"pushMuted":{"type":"array","items":{"type":"string","enum":["reminder","birthday","absences","family","team","plan","community","voice","diocese"]}}},"required":["pushMuted"],"additionalProperties":false}}}}},"x-mcp-tool":false,"requestBody":{"content":{"application/json":{"schema":{"$schema":"https://json-schema.org/draft/2020-12/schema","type":"object","properties":{"pushMuted":{"type":"array","items":{"type":"string","enum":["reminder","birthday","absences","family","team","plan","community","voice","diocese"]}}},"required":["pushMuted"]}}}}}},"/v1/me/export":{"get":{"operationId":"identity.exportMyData","summary":"Downloads the person's own data (account, logins, preferences, teams)","tags":["identity"],"security":[{"bearer":[]}],"parameters":[],"responses":{"200":{"description":"OK","content":{"application/json":{"schema":{"$schema":"https://json-schema.org/draft/2020-12/schema","type":"object","properties":{"exportedAt":{"type":"string"},"data":{"type":"object","propertyNames":{"type":"string"},"additionalProperties":{"type":"object","propertyNames":{"type":"string"},"additionalProperties":{"type":"array","items":{}}}}},"required":["exportedAt","data"],"additionalProperties":false}}}}},"x-mcp-tool":false}},"/v1/org/export":{"get":{"operationId":"identity.exportOrgData","summary":"Downloads all the team's data (classes, participants, attendance, sacraments, notes, members)","tags":["identity"],"security":[{"bearer":[]}],"parameters":[],"responses":{"200":{"description":"OK","content":{"application/json":{"schema":{"$schema":"https://json-schema.org/draft/2020-12/schema","type":"object","properties":{"exportedAt":{"type":"string"},"data":{"type":"object","propertyNames":{"type":"string"},"additionalProperties":{"type":"object","propertyNames":{"type":"string"},"additionalProperties":{"type":"array","items":{}}}}},"required":["exportedAt","data"],"additionalProperties":false}}}}},"x-mcp-tool":false}},"/v1/me/delete":{"post":{"operationId":"identity.deleteMyAccount","summary":"Permanently deletes the person's account (and teams where they are the only member)","tags":["identity"],"security":[{"bearer":[]}],"parameters":[],"responses":{"200":{"description":"OK","content":{"application/json":{"schema":{"$schema":"https://json-schema.org/draft/2020-12/schema","type":"object","properties":{"ok":{"type":"boolean","const":true},"teamsDeleted":{"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991}},"required":["ok","teamsDeleted"],"additionalProperties":false}}}}},"x-mcp-tool":false,"requestBody":{"content":{"application/json":{"schema":{"$schema":"https://json-schema.org/draft/2020-12/schema","type":"object","properties":{"confirmEmail":{"type":"string"}},"required":["confirmEmail"]}}}}}},"/v1/org/delete":{"post":{"operationId":"identity.deleteOrg","summary":"Permanently deletes the team and all its data","tags":["identity"],"security":[{"bearer":[]}],"parameters":[],"responses":{"200":{"description":"OK","content":{"application/json":{"schema":{"$schema":"https://json-schema.org/draft/2020-12/schema","type":"object","properties":{"ok":{"type":"boolean","const":true}},"required":["ok"],"additionalProperties":false}}}}},"x-mcp-tool":false,"requestBody":{"content":{"application/json":{"schema":{"$schema":"https://json-schema.org/draft/2020-12/schema","type":"object","properties":{"confirmName":{"type":"string"}},"required":["confirmName"]}}}}}},"/v1/audit":{"get":{"operationId":"identity.listAudit","summary":"Team activity log (exports, role changes, removals, family links)","tags":["identity"],"security":[{"bearer":[]}],"parameters":[],"responses":{"200":{"description":"OK","content":{"application/json":{"schema":{"$schema":"https://json-schema.org/draft/2020-12/schema","type":"object","properties":{"items":{"type":"array","items":{"type":"object","properties":{"at":{"type":"string"},"actorName":{"type":["string","null"]},"via":{"type":"string"},"action":{"type":"string"},"target":{"type":["string","null"]},"details":{"anyOf":[{"type":"object","propertyNames":{"type":"string"},"additionalProperties":{}},{"type":"null"}]}},"required":["at","actorName","via","action","target","details"],"additionalProperties":false}}},"required":["items"],"additionalProperties":false}}}}},"x-mcp-tool":false}},"/v1/connected-apps":{"get":{"operationId":"identity.listConnectedApps","summary":"Chat assistants the person connected by OAuth","tags":["identity"],"security":[{"bearer":[]}],"parameters":[],"responses":{"200":{"description":"OK","content":{"application/json":{"schema":{"$schema":"https://json-schema.org/draft/2020-12/schema","type":"object","properties":{"items":{"type":"array","items":{"type":"object","properties":{"clientId":{"type":"string"},"name":{"type":"string"},"uri":{"type":["string","null"]},"connectedAt":{"type":"string"},"lastUsedAt":{"type":["string","null"]},"orgId":{"type":["string","null"]},"orgName":{"type":["string","null"]}},"required":["clientId","name","uri","connectedAt","lastUsedAt","orgId","orgName"],"additionalProperties":false}}},"required":["items"],"additionalProperties":false}}}}},"x-mcp-tool":false}},"/v1/connected-apps/{clientId}":{"delete":{"operationId":"identity.disconnectApp","summary":"Disconnects a chat assistant (it stops working at once)","tags":["identity"],"security":[{"bearer":[]}],"parameters":[{"name":"clientId","in":"path","required":true,"schema":{"type":"string"}}],"responses":{"200":{"description":"OK","content":{"application/json":{"schema":{"$schema":"https://json-schema.org/draft/2020-12/schema","type":"object","properties":{"ok":{"type":"boolean","const":true}},"required":["ok"],"additionalProperties":false}}}}},"x-mcp-tool":false,"requestBody":{"content":{"application/json":{"schema":{"$schema":"https://json-schema.org/draft/2020-12/schema","type":"object","properties":{"clientId":{"type":"string"}},"required":["clientId"]}}}}}},"/v1/connected-apps/{clientId}/team":{"put":{"operationId":"identity.setAssistantTeam","summary":"Chooses which team a connected chat assistant works in","tags":["identity"],"security":[{"bearer":[]}],"parameters":[{"name":"clientId","in":"path","required":true,"schema":{"type":"string"}}],"responses":{"200":{"description":"OK","content":{"application/json":{"schema":{"$schema":"https://json-schema.org/draft/2020-12/schema","type":"object","properties":{"ok":{"type":"boolean","const":true}},"required":["ok"],"additionalProperties":false}}}}},"x-mcp-tool":false,"requestBody":{"content":{"application/json":{"schema":{"$schema":"https://json-schema.org/draft/2020-12/schema","type":"object","properties":{"clientId":{"type":"string"},"orgId":{"type":"string"}},"required":["clientId","orgId"]}}}}}},"/v1/news/unsubscribe":{"post":{"operationId":"identity.unsubscribeNews","summary":"Stops product news emails from an unsubscribe link","tags":["identity"],"security":[],"parameters":[],"responses":{"200":{"description":"OK","content":{"application/json":{"schema":{"$schema":"https://json-schema.org/draft/2020-12/schema","type":"object","properties":{"ok":{"type":"boolean","const":true}},"required":["ok"],"additionalProperties":false}}}}},"x-mcp-tool":false,"requestBody":{"content":{"application/json":{"schema":{"$schema":"https://json-schema.org/draft/2020-12/schema","type":"object","properties":{"u":{"type":"string","minLength":1,"maxLength":100},"t":{"type":"string","minLength":1,"maxLength":100}},"required":["u","t"]}}}}}},"/v1/prefs":{"get":{"operationId":"identity.getPrefs","summary":"Personal preferences (email reminders, product news emails and language)","tags":["identity"],"security":[{"bearer":[]}],"parameters":[],"responses":{"200":{"description":"OK","content":{"application/json":{"schema":{"$schema":"https://json-schema.org/draft/2020-12/schema","type":"object","properties":{"emailReminders":{"type":"boolean"},"productEmails":{"type":"boolean"},"locale":{"anyOf":[{"type":"string","enum":["pt-BR","en","es"]},{"type":"null"}]}},"required":["emailReminders","productEmails","locale"],"additionalProperties":false}}}}},"x-mcp-tool":true},"patch":{"operationId":"identity.setPrefs","summary":"Turns email reminders or product news emails on or off and sets the language (null = automatic)","tags":["identity"],"security":[{"bearer":[]}],"parameters":[],"responses":{"200":{"description":"OK","content":{"application/json":{"schema":{"$schema":"https://json-schema.org/draft/2020-12/schema","type":"object","properties":{"emailReminders":{"type":"boolean"},"productEmails":{"type":"boolean"},"locale":{"anyOf":[{"type":"string","enum":["pt-BR","en","es"]},{"type":"null"}]}},"required":["emailReminders","productEmails","locale"],"additionalProperties":false}}}}},"x-mcp-tool":true,"requestBody":{"content":{"application/json":{"schema":{"$schema":"https://json-schema.org/draft/2020-12/schema","type":"object","properties":{"emailReminders":{"type":"boolean"},"productEmails":{"type":"boolean"},"locale":{"anyOf":[{"type":"string","enum":["pt-BR","en","es"]},{"type":"null"}]}}}}}}}},"/v1/plans":{"get":{"operationId":"billing.listPlans","summary":"Plans and prices","tags":["billing"],"security":[],"parameters":[{"name":"currency","in":"query","required":false,"schema":{"type":"string","enum":["BRL","USD","EUR"]}}],"responses":{"200":{"description":"OK","content":{"application/json":{"schema":{"$schema":"https://json-schema.org/draft/2020-12/schema","type":"object","properties":{"items":{"type":"array","items":{"type":"object","properties":{"id":{"type":"string"},"name":{"type":"string"},"role":{"type":"string","enum":["good","better","best"]},"pitch":{"type":"string"},"price":{"anyOf":[{"type":"object","properties":{"month":{"type":"number"},"year":{"type":"number"}},"required":["month","year"],"additionalProperties":false},{"type":"null"}]},"currency":{"type":"string","enum":["BRL","USD","EUR"]},"limits":{"type":"object","properties":{"classes":{"type":["number","null"]},"catechumens":{"type":["number","null"]},"members":{"type":["number","null"]},"aiCredits":{"type":["number","null"]}},"required":["classes","catechumens","members","aiCredits"],"additionalProperties":false}},"required":["id","name","role","pitch","price","currency","limits"],"additionalProperties":false}}},"required":["items"],"additionalProperties":false}}}}},"x-mcp-tool":true}},"/v1/billing/subscription":{"get":{"operationId":"billing.getSubscription","summary":"Current plan, status and limits","tags":["billing"],"security":[{"bearer":[]}],"parameters":[],"responses":{"200":{"description":"OK","content":{"application/json":{"schema":{"$schema":"https://json-schema.org/draft/2020-12/schema","type":"object","properties":{"planId":{"type":"string"},"status":{"type":"string","enum":["none","trialing","active","past_due","canceled","expired"]},"limits":{"type":"object","propertyNames":{"type":"string"},"additionalProperties":{"type":["number","null"]}},"trialEndsAt":{"type":["number","null"]},"portal":{"type":"boolean"},"courtesy":{"type":"boolean"},"cancelAt":{"type":["number","null"]},"card":{"type":"boolean"},"trialPending":{"type":"boolean"},"trialDays":{"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991},"firstYearOffer":{"anyOf":[{"type":"object","properties":{"price":{"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991},"regular":{"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991},"endsAt":{"type":"number"}},"required":["price","regular","endsAt"],"additionalProperties":false},{"type":"null"}]},"coveredBy":{"anyOf":[{"type":"object","properties":{"orgId":{"type":"string"},"name":{"type":"string"},"self":{"type":"boolean"},"endsAt":{"type":["number","null"]},"graceUntil":{"type":["number","null"]}},"required":["orgId","name","self","endsAt","graceUntil"],"additionalProperties":false},{"type":"null"}]},"store":{"anyOf":[{"type":"string","enum":["stripe","google_play"]},{"type":"null"}]},"locked":{"anyOf":[{"type":"object","properties":{"eraseAt":{"type":["number","null"]},"erasedAt":{"type":["number","null"]},"paid":{"type":"boolean"},"classes":{"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991},"catechumens":{"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991},"meetings":{"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991}},"required":["eraseAt","erasedAt","paid","classes","catechumens","meetings"],"additionalProperties":false},{"type":"null"}]}},"required":["planId","status","limits","trialEndsAt","portal","courtesy","cancelAt","card","trialPending","trialDays","coveredBy","store","locked"],"additionalProperties":false}}}}},"x-mcp-tool":true}},"/v1/billing/checkout":{"post":{"operationId":"billing.createCheckout","summary":"Starts checkout (Stripe) for a plan","tags":["billing"],"security":[{"bearer":[]}],"parameters":[],"responses":{"200":{"description":"OK","content":{"application/json":{"schema":{"$schema":"https://json-schema.org/draft/2020-12/schema","type":"object","properties":{"url":{"type":"string"},"eventId":{"type":"string"},"trialEnd":{"type":["number","null"]}},"required":["url","eventId","trialEnd"],"additionalProperties":false}}}}},"x-mcp-tool":false,"requestBody":{"content":{"application/json":{"schema":{"$schema":"https://json-schema.org/draft/2020-12/schema","type":"object","properties":{"planId":{"type":"string","enum":["catechist","parish"]},"interval":{"type":"string","enum":["month","year"]},"provider":{"default":"stripe","type":"string","enum":["stripe"]},"email":{"type":"string","format":"email","pattern":"^(?:[A-Za-z0-9_'+\\-]+\\.)*[A-Za-z0-9_'+\\-]*[A-Za-z0-9_+-]@(?:[A-Za-z0-9][A-Za-z0-9\\-]*\\.)+[A-Za-z]{2,}$"},"successUrl":{"type":"string","format":"uri"},"cancelUrl":{"type":"string","format":"uri"},"method":{"type":"string","enum":["card","pix"]}},"required":["planId","interval","email","successUrl","cancelUrl"]}}}}}},"/v1/billing/portal":{"post":{"operationId":"billing.createBillingPortal","summary":"Opens the payment provider portal (change card, invoices, cancel)","tags":["billing"],"security":[{"bearer":[]}],"parameters":[],"responses":{"200":{"description":"OK","content":{"application/json":{"schema":{"$schema":"https://json-schema.org/draft/2020-12/schema","type":"object","properties":{"url":{"type":"string"}},"required":["url"],"additionalProperties":false}}}}},"x-mcp-tool":false,"requestBody":{"content":{"application/json":{"schema":{"$schema":"https://json-schema.org/draft/2020-12/schema","type":"object","properties":{"returnUrl":{"type":"string","format":"uri"}},"required":["returnUrl"]}}}}}},"/v1/billing/google-play":{"post":{"operationId":"billing.verifyPlayPurchase","summary":"Confirms a Google Play subscription bought in the Android app","tags":["billing"],"security":[{"bearer":[]}],"parameters":[],"responses":{"200":{"description":"OK","content":{"application/json":{"schema":{"$schema":"https://json-schema.org/draft/2020-12/schema","type":"object","properties":{"status":{"type":"string","enum":["active","pending"]},"planId":{"type":"string"}},"required":["status","planId"],"additionalProperties":false}}}}},"x-mcp-tool":false,"requestBody":{"content":{"application/json":{"schema":{"$schema":"https://json-schema.org/draft/2020-12/schema","type":"object","properties":{"purchaseToken":{"type":"string","minLength":10,"maxLength":4096}},"required":["purchaseToken"]}}}}}},"/v1/catechumens/{catechumenId}/photo":{"put":{"operationId":"catechesis.setCatechumenPhoto","summary":"Sets a student's photo (full 256 px and 64 px thumbnail); requires the family's consent","tags":["catechesis"],"security":[{"bearer":[]}],"parameters":[{"name":"catechumenId","in":"path","required":true,"schema":{"type":"string"}}],"responses":{"200":{"description":"OK","content":{"application/json":{"schema":{"$schema":"https://json-schema.org/draft/2020-12/schema","type":"object","properties":{"photo":{"type":"string"}},"required":["photo"],"additionalProperties":false}}}}},"x-mcp-tool":false,"requestBody":{"content":{"application/json":{"schema":{"$schema":"https://json-schema.org/draft/2020-12/schema","type":"object","properties":{"catechumenId":{"type":"string"},"full":{"type":"string","minLength":16,"maxLength":266671},"thumb":{"type":"string","minLength":16,"maxLength":40004},"consent":{"type":"boolean","const":true}},"required":["catechumenId","full","thumb","consent"]}}}}},"delete":{"operationId":"catechesis.deleteCatechumenPhoto","summary":"Removes a student's photo","tags":["catechesis"],"security":[{"bearer":[]}],"parameters":[{"name":"catechumenId","in":"path","required":true,"schema":{"type":"string"}}],"responses":{"200":{"description":"OK","content":{"application/json":{"schema":{"$schema":"https://json-schema.org/draft/2020-12/schema","type":"object","properties":{"ok":{"type":"boolean","const":true}},"required":["ok"],"additionalProperties":false}}}}},"x-mcp-tool":false,"requestBody":{"content":{"application/json":{"schema":{"$schema":"https://json-schema.org/draft/2020-12/schema","type":"object","properties":{"catechumenId":{"type":"string"}},"required":["catechumenId"]}}}}},"get":{"operationId":"catechesis.getCatechumenPhoto","summary":"A student's photo as a data URL","tags":["catechesis"],"security":[{"bearer":[]}],"parameters":[{"name":"catechumenId","in":"path","required":true,"schema":{"type":"string"}},{"name":"size","in":"query","required":false,"schema":{"default":"full","type":"string","enum":["full","thumb"]}}],"responses":{"200":{"description":"OK","content":{"application/json":{"schema":{"$schema":"https://json-schema.org/draft/2020-12/schema","type":"object","properties":{"dataUrl":{"type":["string","null"]},"consentAt":{"type":["string","null"]}},"required":["dataUrl","consentAt"],"additionalProperties":false}}}}},"x-mcp-tool":false}},"/v1/photos":{"get":{"operationId":"catechesis.listCatechumenPhotos","summary":"Thumbnails of the students of a class (or of all classes the person leads)","tags":["catechesis"],"security":[{"bearer":[]}],"parameters":[{"name":"classId","in":"query","required":false,"schema":{"type":"string"}}],"responses":{"200":{"description":"OK","content":{"application/json":{"schema":{"$schema":"https://json-schema.org/draft/2020-12/schema","type":"object","properties":{"items":{"type":"array","items":{"type":"object","properties":{"catechumenId":{"type":"string"},"photo":{"type":"string"},"dataUrl":{"type":"string"}},"required":["catechumenId","photo","dataUrl"],"additionalProperties":false}}},"required":["items"],"additionalProperties":false}}}}},"x-mcp-tool":false}},"/v1/classes":{"get":{"operationId":"catechesis.listClasses","summary":"Lists the active classes of the organization","tags":["catechesis"],"security":[{"bearer":[]}],"parameters":[],"responses":{"200":{"description":"OK","content":{"application/json":{"schema":{"$schema":"https://json-schema.org/draft/2020-12/schema","type":"object","properties":{"items":{"type":"array","items":{"type":"object","properties":{"id":{"type":"string"},"name":{"type":"string"},"stage":{"anyOf":[{"type":"string","enum":["pre_catechesis","first_communion","perseverance","confirmation","adult","catechumenate","altar_servers","missionary_childhood","youth_group","other"]},{"type":"null"}]},"stageLabel":{"type":["string","null"]},"year":{"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991},"catechumenCount":{"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991},"isSample":{"type":"boolean"},"weekday":{"anyOf":[{"type":"integer","minimum":0,"maximum":6},{"type":"null"}]},"startTime":{"type":["string","null"]},"location":{"type":["string","null"]},"groupId":{"type":["string","null"]},"catechists":{"type":"array","items":{"type":"object","properties":{"userId":{"type":"string"},"role":{"type":"string","enum":["lead","assistant"]}},"required":["userId","role"],"additionalProperties":false}},"canManage":{"type":"boolean"},"canLead":{"type":"boolean"},"yearReviewReady":{"type":"boolean"}},"required":["id","name","stage","stageLabel","year","catechumenCount","isSample","weekday","startTime","location","groupId","catechists","canManage","canLead","yearReviewReady"],"additionalProperties":false}}},"required":["items"],"additionalProperties":false}}}}},"x-mcp-tool":true},"post":{"operationId":"catechesis.createClass","summary":"Creates a class","tags":["catechesis"],"security":[{"bearer":[]}],"parameters":[],"responses":{"200":{"description":"OK","content":{"application/json":{"schema":{"$schema":"https://json-schema.org/draft/2020-12/schema","type":"object","properties":{"id":{"type":"string"},"name":{"type":"string"},"stage":{"anyOf":[{"type":"string","enum":["pre_catechesis","first_communion","perseverance","confirmation","adult","catechumenate","altar_servers","missionary_childhood","youth_group","other"]},{"type":"null"}]},"stageLabel":{"type":["string","null"]},"year":{"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991},"catechumenCount":{"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991},"isSample":{"type":"boolean"},"weekday":{"anyOf":[{"type":"integer","minimum":0,"maximum":6},{"type":"null"}]},"startTime":{"type":["string","null"]},"location":{"type":["string","null"]},"groupId":{"type":["string","null"]},"catechists":{"type":"array","items":{"type":"object","properties":{"userId":{"type":"string"},"role":{"type":"string","enum":["lead","assistant"]}},"required":["userId","role"],"additionalProperties":false}}},"required":["id","name","stage","stageLabel","year","catechumenCount","isSample","weekday","startTime","location","groupId","catechists"],"additionalProperties":false}}}}},"x-mcp-tool":true,"requestBody":{"content":{"application/json":{"schema":{"$schema":"https://json-schema.org/draft/2020-12/schema","type":"object","properties":{"name":{"type":"string","minLength":2,"maxLength":80},"stage":{"type":"string","enum":["pre_catechesis","first_communion","perseverance","confirmation","adult","catechumenate","altar_servers","missionary_childhood","youth_group","other"]},"stageLabel":{"type":"string","maxLength":60},"year":{"default":1970,"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991},"weekday":{"type":"integer","minimum":0,"maximum":6},"startTime":{"type":"string","pattern":"^([01]\\d|2[0-3]):[0-5]\\d$"},"location":{"type":"string","maxLength":120},"groupId":{"type":"string"}},"required":["name"]}}}}}},"/v1/classes/{classId}":{"get":{"operationId":"catechesis.getClass","summary":"A class with its indicators and next session","tags":["catechesis"],"security":[{"bearer":[]}],"parameters":[{"name":"classId","in":"path","required":true,"schema":{"type":"string"}},{"name":"today","in":"query","required":false,"schema":{"type":"string","pattern":"^\\d{4}-\\d{2}-\\d{2}$"}}],"responses":{"200":{"description":"OK","content":{"application/json":{"schema":{"$schema":"https://json-schema.org/draft/2020-12/schema","type":"object","properties":{"id":{"type":"string"},"name":{"type":"string"},"stage":{"anyOf":[{"type":"string","enum":["pre_catechesis","first_communion","perseverance","confirmation","adult","catechumenate","altar_servers","missionary_childhood","youth_group","other"]},{"type":"null"}]},"stageLabel":{"type":["string","null"]},"year":{"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991},"catechumenCount":{"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991},"isSample":{"type":"boolean"},"weekday":{"anyOf":[{"type":"integer","minimum":0,"maximum":6},{"type":"null"}]},"startTime":{"type":["string","null"]},"location":{"type":["string","null"]},"groupId":{"type":["string","null"]},"catechists":{"type":"array","items":{"type":"object","properties":{"userId":{"type":"string"},"role":{"type":"string","enum":["lead","assistant"]}},"required":["userId","role"],"additionalProperties":false}},"archived":{"type":"boolean"},"stats":{"type":"object","properties":{"meetingsCompleted":{"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991},"attendanceRate":{"type":["number","null"]}},"required":["meetingsCompleted","attendanceRate"],"additionalProperties":false},"nextMeeting":{"anyOf":[{"type":"object","properties":{"id":{"type":"string"},"date":{"type":"string","pattern":"^\\d{4}-\\d{2}-\\d{2}$"},"title":{"type":["string","null"]},"theme":{"type":["string","null"]},"notes":{"type":["string","null"]},"status":{"type":"string","enum":["scheduled","completed","cancelled"]},"sequence":{"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991},"topicId":{"type":["string","null"]},"startTime":{"type":["string","null"]}},"required":["id","date","title","theme","notes","status","sequence"],"additionalProperties":false},{"type":"null"}]},"lastMeeting":{"anyOf":[{"type":"object","properties":{"id":{"type":"string"},"date":{"type":"string","pattern":"^\\d{4}-\\d{2}-\\d{2}$"},"title":{"type":["string","null"]},"theme":{"type":["string","null"]},"notes":{"type":["string","null"]},"status":{"type":"string","enum":["scheduled","completed","cancelled"]},"sequence":{"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991},"topicId":{"type":["string","null"]},"startTime":{"type":["string","null"]}},"required":["id","date","title","theme","notes","status","sequence"],"additionalProperties":false},{"type":"null"}]},"nextClassDay":{"anyOf":[{"type":"string","pattern":"^\\d{4}-\\d{2}-\\d{2}$"},{"type":"null"}]},"lastClassDay":{"anyOf":[{"type":"string","pattern":"^\\d{4}-\\d{2}-\\d{2}$"},{"type":"null"}]},"yearReviewReady":{"type":"boolean"}},"required":["id","name","stage","stageLabel","year","catechumenCount","isSample","weekday","startTime","location","groupId","catechists","archived","stats","nextMeeting","lastMeeting","nextClassDay","lastClassDay","yearReviewReady"],"additionalProperties":false}}}}},"x-mcp-tool":true},"patch":{"operationId":"catechesis.updateClass","summary":"Edits the class name, stage, year, weekday, time and place","tags":["catechesis"],"security":[{"bearer":[]}],"parameters":[{"name":"classId","in":"path","required":true,"schema":{"type":"string"}}],"responses":{"200":{"description":"OK","content":{"application/json":{"schema":{"$schema":"https://json-schema.org/draft/2020-12/schema","type":"object","properties":{"id":{"type":"string"},"name":{"type":"string"},"stage":{"anyOf":[{"type":"string","enum":["pre_catechesis","first_communion","perseverance","confirmation","adult","catechumenate","altar_servers","missionary_childhood","youth_group","other"]},{"type":"null"}]},"stageLabel":{"type":["string","null"]},"year":{"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991},"catechumenCount":{"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991},"isSample":{"type":"boolean"},"weekday":{"anyOf":[{"type":"integer","minimum":0,"maximum":6},{"type":"null"}]},"startTime":{"type":["string","null"]},"location":{"type":["string","null"]},"groupId":{"type":["string","null"]},"catechists":{"type":"array","items":{"type":"object","properties":{"userId":{"type":"string"},"role":{"type":"string","enum":["lead","assistant"]}},"required":["userId","role"],"additionalProperties":false}}},"required":["id","name","stage","stageLabel","year","catechumenCount","isSample","weekday","startTime","location","groupId","catechists"],"additionalProperties":false}}}}},"x-mcp-tool":true,"requestBody":{"content":{"application/json":{"schema":{"$schema":"https://json-schema.org/draft/2020-12/schema","type":"object","properties":{"classId":{"type":"string"},"name":{"type":"string","minLength":2,"maxLength":80},"stage":{"anyOf":[{"type":"string","enum":["pre_catechesis","first_communion","perseverance","confirmation","adult","catechumenate","altar_servers","missionary_childhood","youth_group","other"]},{"type":"null"}]},"stageLabel":{"anyOf":[{"type":"string","maxLength":60},{"type":"null"}]},"year":{"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991},"weekday":{"anyOf":[{"type":"integer","minimum":0,"maximum":6},{"type":"null"}]},"startTime":{"anyOf":[{"type":"string","pattern":"^([01]\\d|2[0-3]):[0-5]\\d$"},{"type":"null"}]},"location":{"anyOf":[{"type":"string","maxLength":120},{"type":"null"}]}},"required":["classId"]}}}}},"delete":{"operationId":"catechesis.deleteClass","summary":"Moves the class, with its students, sessions and attendance, to the trash","tags":["catechesis"],"security":[{"bearer":[]}],"parameters":[{"name":"classId","in":"path","required":true,"schema":{"type":"string"}}],"responses":{"200":{"description":"OK","content":{"application/json":{"schema":{"$schema":"https://json-schema.org/draft/2020-12/schema","type":"object","properties":{"ok":{"type":"boolean","const":true},"trashId":{"type":"string"}},"required":["ok","trashId"],"additionalProperties":false}}}}},"x-mcp-tool":false,"requestBody":{"content":{"application/json":{"schema":{"$schema":"https://json-schema.org/draft/2020-12/schema","type":"object","properties":{"classId":{"type":"string"}},"required":["classId"]}}}}}},"/v1/classes/{classId}/catechists":{"put":{"operationId":"catechesis.setClassCatechists","summary":"Sets the catechists of the class (one or more leads and assistants)","tags":["catechesis"],"security":[{"bearer":[]}],"parameters":[{"name":"classId","in":"path","required":true,"schema":{"type":"string"}}],"responses":{"200":{"description":"OK","content":{"application/json":{"schema":{"$schema":"https://json-schema.org/draft/2020-12/schema","type":"object","properties":{"id":{"type":"string"},"name":{"type":"string"},"stage":{"anyOf":[{"type":"string","enum":["pre_catechesis","first_communion","perseverance","confirmation","adult","catechumenate","altar_servers","missionary_childhood","youth_group","other"]},{"type":"null"}]},"stageLabel":{"type":["string","null"]},"year":{"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991},"catechumenCount":{"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991},"isSample":{"type":"boolean"},"weekday":{"anyOf":[{"type":"integer","minimum":0,"maximum":6},{"type":"null"}]},"startTime":{"type":["string","null"]},"location":{"type":["string","null"]},"groupId":{"type":["string","null"]},"catechists":{"type":"array","items":{"type":"object","properties":{"userId":{"type":"string"},"role":{"type":"string","enum":["lead","assistant"]}},"required":["userId","role"],"additionalProperties":false}}},"required":["id","name","stage","stageLabel","year","catechumenCount","isSample","weekday","startTime","location","groupId","catechists"],"additionalProperties":false}}}}},"x-mcp-tool":true,"requestBody":{"content":{"application/json":{"schema":{"$schema":"https://json-schema.org/draft/2020-12/schema","type":"object","properties":{"classId":{"type":"string"},"catechists":{"maxItems":10,"type":"array","items":{"type":"object","properties":{"userId":{"type":"string"},"role":{"type":"string","enum":["lead","assistant"]}},"required":["userId","role"]}}},"required":["classId","catechists"]}}}}}},"/v1/classes/{classId}/archive":{"post":{"operationId":"catechesis.setClassArchived","summary":"Archives (or reactivates) a class; data is kept","tags":["catechesis"],"security":[{"bearer":[]}],"parameters":[{"name":"classId","in":"path","required":true,"schema":{"type":"string"}}],"responses":{"200":{"description":"OK","content":{"application/json":{"schema":{"$schema":"https://json-schema.org/draft/2020-12/schema","type":"object","properties":{"ok":{"type":"boolean","const":true}},"required":["ok"],"additionalProperties":false}}}}},"x-mcp-tool":false,"requestBody":{"content":{"application/json":{"schema":{"$schema":"https://json-schema.org/draft/2020-12/schema","type":"object","properties":{"classId":{"type":"string"},"archived":{"type":"boolean"}},"required":["classId","archived"]}}}}}},"/v1/classes/{classId}/report":{"get":{"operationId":"catechesis.classReport","summary":"Attendance rate of each student in the class (with recent attendance)","tags":["catechesis"],"security":[{"bearer":[]}],"parameters":[{"name":"classId","in":"path","required":true,"schema":{"type":"string"}}],"responses":{"200":{"description":"OK","content":{"application/json":{"schema":{"$schema":"https://json-schema.org/draft/2020-12/schema","type":"object","properties":{"meetingsCompleted":{"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991},"items":{"type":"array","items":{"type":"object","properties":{"present":{"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991},"late":{"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991},"absent":{"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991},"justified":{"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991},"catechumenId":{"type":"string"},"fullName":{"type":"string"},"total":{"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991},"rate":{"type":["number","null"]},"recent":{"type":"array","items":{"type":"string","enum":["present","late","absent","justified"]}},"elsewhere":{"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991}},"required":["present","late","absent","justified","catechumenId","fullName","total","rate","recent","elsewhere"],"additionalProperties":false}}},"required":["meetingsCompleted","items"],"additionalProperties":false}}}}},"x-mcp-tool":true}},"/v1/class-groups":{"get":{"operationId":"catechesis.listClassGroups","summary":"Lists the class folders (e.g. stages) and the classes in each","tags":["catechesis"],"security":[{"bearer":[]}],"parameters":[],"responses":{"200":{"description":"OK","content":{"application/json":{"schema":{"$schema":"https://json-schema.org/draft/2020-12/schema","type":"object","properties":{"enabled":{"type":"boolean"},"items":{"type":"array","items":{"type":"object","properties":{"id":{"type":"string"},"name":{"type":"string"},"classIds":{"type":"array","items":{"type":"string"}},"coordinatorIds":{"type":"array","items":{"type":"string"}}},"required":["id","name","classIds","coordinatorIds"],"additionalProperties":false}}},"required":["enabled","items"],"additionalProperties":false}}}}},"x-mcp-tool":true},"post":{"operationId":"catechesis.createClassGroup","summary":"Creates a class folder, optionally with classes","tags":["catechesis"],"security":[{"bearer":[]}],"parameters":[],"responses":{"200":{"description":"OK","content":{"application/json":{"schema":{"$schema":"https://json-schema.org/draft/2020-12/schema","type":"object","properties":{"id":{"type":"string"},"name":{"type":"string"},"classIds":{"type":"array","items":{"type":"string"}},"coordinatorIds":{"type":"array","items":{"type":"string"}}},"required":["id","name","classIds","coordinatorIds"],"additionalProperties":false}}}}},"x-mcp-tool":false,"requestBody":{"content":{"application/json":{"schema":{"$schema":"https://json-schema.org/draft/2020-12/schema","type":"object","properties":{"name":{"type":"string","minLength":2,"maxLength":60},"classIds":{"maxItems":60,"type":"array","items":{"type":"string"}},"coordinatorIds":{"maxItems":20,"type":"array","items":{"type":"string"}}},"required":["name"]}}}}}},"/v1/class-groups/{groupId}":{"patch":{"operationId":"catechesis.updateClassGroup","summary":"Renames a class folder or sets its classes","tags":["catechesis"],"security":[{"bearer":[]}],"parameters":[{"name":"groupId","in":"path","required":true,"schema":{"type":"string"}}],"responses":{"200":{"description":"OK","content":{"application/json":{"schema":{"$schema":"https://json-schema.org/draft/2020-12/schema","type":"object","properties":{"id":{"type":"string"},"name":{"type":"string"},"classIds":{"type":"array","items":{"type":"string"}},"coordinatorIds":{"type":"array","items":{"type":"string"}}},"required":["id","name","classIds","coordinatorIds"],"additionalProperties":false}}}}},"x-mcp-tool":false,"requestBody":{"content":{"application/json":{"schema":{"$schema":"https://json-schema.org/draft/2020-12/schema","type":"object","properties":{"groupId":{"type":"string"},"name":{"type":"string","minLength":2,"maxLength":60},"classIds":{"maxItems":60,"type":"array","items":{"type":"string"}},"coordinatorIds":{"maxItems":20,"type":"array","items":{"type":"string"}}},"required":["groupId"]}}}}},"delete":{"operationId":"catechesis.deleteClassGroup","summary":"Deletes a class folder; its classes stay, outside any folder","tags":["catechesis"],"security":[{"bearer":[]}],"parameters":[{"name":"groupId","in":"path","required":true,"schema":{"type":"string"}}],"responses":{"200":{"description":"OK","content":{"application/json":{"schema":{"$schema":"https://json-schema.org/draft/2020-12/schema","type":"object","properties":{"ok":{"type":"boolean","const":true}},"required":["ok"],"additionalProperties":false}}}}},"x-mcp-tool":false,"requestBody":{"content":{"application/json":{"schema":{"$schema":"https://json-schema.org/draft/2020-12/schema","type":"object","properties":{"groupId":{"type":"string"}},"required":["groupId"]}}}}}},"/v1/catechumens":{"get":{"operationId":"catechesis.listCatechumens","summary":"Lists active students (filter by class, search by name). \"Student\" (catequizando) means anyone in catechesis: children, Confirmation candidates, catechumens, adults","tags":["catechesis"],"security":[{"bearer":[]}],"parameters":[{"name":"classId","in":"query","required":false,"schema":{"type":"string"}},{"name":"q","in":"query","required":false,"schema":{"type":"string","maxLength":80}},{"name":"withStats","in":"query","required":false,"schema":{"type":"string","enum":["true","false"]}}],"responses":{"200":{"description":"OK","content":{"application/json":{"schema":{"$schema":"https://json-schema.org/draft/2020-12/schema","type":"object","properties":{"items":{"type":"array","items":{"type":"object","properties":{"id":{"type":"string"},"fullName":{"type":"string"},"classId":{"type":["string","null"]},"birthDate":{"type":["string","null"]},"photo":{"type":["string","null"]},"stats":{"anyOf":[{"type":"object","properties":{"rate":{"type":["number","null"]},"total":{"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991},"consecutive":{"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991},"risk":{"type":"string","enum":["high","medium","low"]}},"required":["rate","total","consecutive","risk"],"additionalProperties":false},{"type":"null"}]}},"required":["id","fullName","classId","birthDate","photo"],"additionalProperties":false}}},"required":["items"],"additionalProperties":false}}}}},"x-mcp-tool":true},"post":{"operationId":"catechesis.createCatechumen","summary":"Adds a student","tags":["catechesis"],"security":[{"bearer":[]}],"parameters":[],"responses":{"200":{"description":"OK","content":{"application/json":{"schema":{"$schema":"https://json-schema.org/draft/2020-12/schema","type":"object","properties":{"id":{"type":"string"},"fullName":{"type":"string"},"classId":{"type":["string","null"]},"birthDate":{"type":["string","null"]},"photo":{"type":["string","null"]}},"required":["id","fullName","classId","birthDate","photo"],"additionalProperties":false}}}}},"x-mcp-tool":true,"requestBody":{"content":{"application/json":{"schema":{"$schema":"https://json-schema.org/draft/2020-12/schema","type":"object","properties":{"fullName":{"type":"string","minLength":2,"maxLength":120},"classId":{"type":"string"},"birthDate":{"type":"string","pattern":"^\\d{4}-\\d{2}-\\d{2}$"},"guardianName":{"type":"string","maxLength":120},"guardianContact":{"type":"string","maxLength":40}},"required":["fullName"]}}}}}},"/v1/catechumens/bulk":{"post":{"operationId":"catechesis.createCatechumens","summary":"Adds several students at once (skips names already in the class)","tags":["catechesis"],"security":[{"bearer":[]}],"parameters":[],"responses":{"200":{"description":"OK","content":{"application/json":{"schema":{"$schema":"https://json-schema.org/draft/2020-12/schema","type":"object","properties":{"created":{"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991},"skipped":{"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991},"items":{"type":"array","items":{"type":"object","properties":{"id":{"type":"string"},"fullName":{"type":"string"},"classId":{"type":["string","null"]},"birthDate":{"type":["string","null"]},"photo":{"type":["string","null"]}},"required":["id","fullName","classId","birthDate","photo"],"additionalProperties":false}}},"required":["created","skipped","items"],"additionalProperties":false}}}}},"x-mcp-tool":true,"requestBody":{"content":{"application/json":{"schema":{"$schema":"https://json-schema.org/draft/2020-12/schema","type":"object","properties":{"classId":{"type":"string"},"names":{"minItems":1,"maxItems":200,"type":"array","items":{"type":"string"}}},"required":["names"]}}}}}},"/v1/catechumens/{catechumenId}":{"get":{"operationId":"catechesis.getCatechumen","summary":"Student record: details, guardian, attendance, history and sacraments","tags":["catechesis"],"security":[{"bearer":[]}],"parameters":[{"name":"catechumenId","in":"path","required":true,"schema":{"type":"string"}}],"responses":{"200":{"description":"OK","content":{"application/json":{"schema":{"$schema":"https://json-schema.org/draft/2020-12/schema","type":"object","properties":{"id":{"type":"string"},"fullName":{"type":"string"},"classId":{"type":["string","null"]},"birthDate":{"type":["string","null"]},"photo":{"type":["string","null"]},"className":{"type":["string","null"]},"guardianName":{"type":["string","null"]},"guardianContact":{"type":["string","null"]},"notes":{"type":["string","null"]},"archived":{"type":"boolean"},"photosEnabled":{"type":"boolean"},"stats":{"type":"object","properties":{"present":{"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991},"late":{"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991},"absent":{"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991},"justified":{"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991},"total":{"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991},"rate":{"type":["number","null"]}},"required":["present","late","absent","justified","total","rate"],"additionalProperties":false},"history":{"type":"array","items":{"type":"object","properties":{"meetingId":{"type":"string"},"date":{"type":"string","pattern":"^\\d{4}-\\d{2}-\\d{2}$"},"className":{"type":"string"},"theme":{"type":["string","null"]},"status":{"type":"string","enum":["present","late","absent","justified"]},"note":{"type":["string","null"]},"elsewhere":{"anyOf":[{"type":"object","properties":{"className":{"type":"string"},"date":{"type":"string"}},"required":["className","date"],"additionalProperties":false},{"type":"null"}]}},"required":["meetingId","date","className","theme","status","note","elsewhere"],"additionalProperties":false}},"sacraments":{"type":"array","items":{"type":"object","properties":{"sacrament":{"type":"string","enum":["baptism","reconciliation","first_communion","confirmation"]},"status":{"type":"string","enum":["pending","scheduled","done"]},"date":{"anyOf":[{"type":"string","pattern":"^\\d{4}-\\d{2}-\\d{2}$"},{"type":"null"}]},"place":{"type":["string","null"]}},"required":["sacrament","status","date","place"],"additionalProperties":false}}},"required":["id","fullName","classId","birthDate","photo","className","guardianName","guardianContact","notes","archived","photosEnabled","stats","history","sacraments"],"additionalProperties":false}}}}},"x-mcp-tool":true},"patch":{"operationId":"catechesis.updateCatechumen","summary":"Edits the student's details","tags":["catechesis"],"security":[{"bearer":[]}],"parameters":[{"name":"catechumenId","in":"path","required":true,"schema":{"type":"string"}}],"responses":{"200":{"description":"OK","content":{"application/json":{"schema":{"$schema":"https://json-schema.org/draft/2020-12/schema","type":"object","properties":{"id":{"type":"string"},"fullName":{"type":"string"},"classId":{"type":["string","null"]},"birthDate":{"type":["string","null"]},"photo":{"type":["string","null"]}},"required":["id","fullName","classId","birthDate","photo"],"additionalProperties":false}}}}},"x-mcp-tool":true,"requestBody":{"content":{"application/json":{"schema":{"$schema":"https://json-schema.org/draft/2020-12/schema","type":"object","properties":{"catechumenId":{"type":"string"},"fullName":{"type":"string","minLength":2,"maxLength":120},"birthDate":{"anyOf":[{"type":"string","pattern":"^\\d{4}-\\d{2}-\\d{2}$"},{"type":"null"}]},"guardianName":{"anyOf":[{"type":"string","maxLength":120},{"type":"null"}]},"guardianContact":{"anyOf":[{"type":"string","maxLength":40},{"type":"null"}]},"notes":{"anyOf":[{"type":"string","maxLength":2000},{"type":"null"}]}},"required":["catechumenId"]}}}}},"delete":{"operationId":"catechesis.deleteCatechumen","summary":"Moves the student, with attendance and sacraments, to the trash","tags":["catechesis"],"security":[{"bearer":[]}],"parameters":[{"name":"catechumenId","in":"path","required":true,"schema":{"type":"string"}}],"responses":{"200":{"description":"OK","content":{"application/json":{"schema":{"$schema":"https://json-schema.org/draft/2020-12/schema","type":"object","properties":{"ok":{"type":"boolean","const":true},"trashId":{"type":"string"}},"required":["ok","trashId"],"additionalProperties":false}}}}},"x-mcp-tool":true,"requestBody":{"content":{"application/json":{"schema":{"$schema":"https://json-schema.org/draft/2020-12/schema","type":"object","properties":{"catechumenId":{"type":"string"}},"required":["catechumenId"]}}}}}},"/v1/catechumens/{catechumenId}/archive":{"post":{"operationId":"catechesis.setCatechumenArchived","summary":"Archives (or reactivates) a student; history is kept","tags":["catechesis"],"security":[{"bearer":[]}],"parameters":[{"name":"catechumenId","in":"path","required":true,"schema":{"type":"string"}}],"responses":{"200":{"description":"OK","content":{"application/json":{"schema":{"$schema":"https://json-schema.org/draft/2020-12/schema","type":"object","properties":{"ok":{"type":"boolean","const":true}},"required":["ok"],"additionalProperties":false}}}}},"x-mcp-tool":true,"requestBody":{"content":{"application/json":{"schema":{"$schema":"https://json-schema.org/draft/2020-12/schema","type":"object","properties":{"catechumenId":{"type":"string"},"archived":{"type":"boolean"}},"required":["catechumenId","archived"]}}}}}},"/v1/catechumens/move":{"post":{"operationId":"catechesis.moveCatechumens","summary":"Moves students to another class (or out of any class with classId null)","tags":["catechesis"],"security":[{"bearer":[]}],"parameters":[],"responses":{"200":{"description":"OK","content":{"application/json":{"schema":{"$schema":"https://json-schema.org/draft/2020-12/schema","type":"object","properties":{"moved":{"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991}},"required":["moved"],"additionalProperties":false}}}}},"x-mcp-tool":true,"requestBody":{"content":{"application/json":{"schema":{"$schema":"https://json-schema.org/draft/2020-12/schema","type":"object","properties":{"ids":{"minItems":1,"maxItems":200,"type":"array","items":{"type":"string"}},"classId":{"type":["string","null"]}},"required":["ids","classId"]}}}}}},"/v1/meeting-plans":{"get":{"operationId":"catechesis.listMeetingPlans","summary":"Meetings that have a written plan, newest first, optionally filtered by words (only classes the person leads)","tags":["catechesis"],"security":[{"bearer":[]}],"parameters":[{"name":"q","in":"query","required":false,"schema":{"type":"string","maxLength":120}},{"name":"limit","in":"query","required":false,"schema":{"default":100,"type":"integer","minimum":1,"maximum":200}}],"responses":{"200":{"description":"OK","content":{"application/json":{"schema":{"$schema":"https://json-schema.org/draft/2020-12/schema","type":"object","properties":{"items":{"type":"array","items":{"type":"object","properties":{"meetingId":{"type":"string"},"classId":{"type":"string"},"className":{"type":"string"},"date":{"type":"string"},"title":{"type":["string","null"]},"theme":{"type":["string","null"]},"status":{"type":"string","enum":["scheduled","completed","cancelled"]},"excerpt":{"type":"string"},"chars":{"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991}},"required":["meetingId","classId","className","date","title","theme","status","excerpt","chars"],"additionalProperties":false}}},"required":["items"],"additionalProperties":false}}}}},"x-mcp-tool":false}},"/v1/classes/{classId}/meetings":{"get":{"operationId":"catechesis.listMeetings","summary":"Sessions of a class (most recent first)","tags":["catechesis"],"security":[{"bearer":[]}],"parameters":[{"name":"classId","in":"path","required":true,"schema":{"type":"string"}}],"responses":{"200":{"description":"OK","content":{"application/json":{"schema":{"$schema":"https://json-schema.org/draft/2020-12/schema","type":"object","properties":{"items":{"type":"array","items":{"type":"object","properties":{"id":{"type":"string"},"date":{"type":"string","pattern":"^\\d{4}-\\d{2}-\\d{2}$"},"title":{"type":["string","null"]},"theme":{"type":["string","null"]},"notes":{"type":["string","null"]},"status":{"type":"string","enum":["scheduled","completed","cancelled"]},"sequence":{"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991},"topicId":{"type":["string","null"]},"startTime":{"type":["string","null"]},"present":{"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991},"total":{"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991}},"required":["id","date","title","theme","notes","status","sequence","present","total"],"additionalProperties":false}}},"required":["items"],"additionalProperties":false}}}}},"x-mcp-tool":true},"post":{"operationId":"catechesis.createMeeting","summary":"Schedules a session (may be in the future), with theme and outline","tags":["catechesis"],"security":[{"bearer":[]}],"parameters":[{"name":"classId","in":"path","required":true,"schema":{"type":"string"}}],"responses":{"200":{"description":"OK","content":{"application/json":{"schema":{"$schema":"https://json-schema.org/draft/2020-12/schema","type":"object","properties":{"id":{"type":"string"},"date":{"type":"string","pattern":"^\\d{4}-\\d{2}-\\d{2}$"},"title":{"type":["string","null"]},"theme":{"type":["string","null"]},"notes":{"type":["string","null"]},"status":{"type":"string","enum":["scheduled","completed","cancelled"]},"sequence":{"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991},"topicId":{"type":["string","null"]},"startTime":{"type":["string","null"]}},"required":["id","date","title","theme","notes","status","sequence"],"additionalProperties":false}}}}},"x-mcp-tool":true,"requestBody":{"content":{"application/json":{"schema":{"$schema":"https://json-schema.org/draft/2020-12/schema","type":"object","properties":{"classId":{"type":"string"},"date":{"type":"string","pattern":"^\\d{4}-\\d{2}-\\d{2}$"},"title":{"type":"string","maxLength":120},"theme":{"type":"string","maxLength":200},"notes":{"type":"string","maxLength":20000},"startTime":{"type":"string","pattern":"^([01]\\d|2[0-3]):[0-5]\\d$"}},"required":["classId","date"]}}}}}},"/v1/meetings/for-classes":{"post":{"operationId":"catechesis.createClassMeetings","summary":"Schedules the same session for several classes, on one day or on each class weekday","tags":["catechesis"],"security":[{"bearer":[]}],"parameters":[],"responses":{"200":{"description":"OK","content":{"application/json":{"schema":{"$schema":"https://json-schema.org/draft/2020-12/schema","type":"object","properties":{"created":{"type":"array","items":{"type":"object","properties":{"classId":{"type":"string"},"meetingId":{"type":"string"},"date":{"type":"string","pattern":"^\\d{4}-\\d{2}-\\d{2}$"}},"required":["classId","meetingId","date"],"additionalProperties":false}},"skipped":{"type":"array","items":{"type":"object","properties":{"classId":{"type":"string"},"date":{"type":"string","pattern":"^\\d{4}-\\d{2}-\\d{2}$"}},"required":["classId","date"],"additionalProperties":false}},"topics":{"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991}},"required":["created","skipped","topics"],"additionalProperties":false}}}}},"x-mcp-tool":true,"requestBody":{"content":{"application/json":{"schema":{"$schema":"https://json-schema.org/draft/2020-12/schema","type":"object","properties":{"classIds":{"minItems":1,"maxItems":60,"type":"array","items":{"type":"string"}},"date":{"type":"string","pattern":"^\\d{4}-\\d{2}-\\d{2}$"},"when":{"type":"string","enum":["same","classDay"]},"startTime":{"type":"string","pattern":"^([01]\\d|2[0-3]):[0-5]\\d$"},"theme":{"type":"string","maxLength":200},"notes":{"type":"string","maxLength":20000},"weekStart":{"type":"integer","minimum":0,"maximum":6}},"required":["classIds","date","when"]}}}}}},"/v1/classes/{classId}/plan/preview":{"post":{"operationId":"catechesis.suggestPlan","summary":"Suggested dates for a sequence of sessions (skips breaks, holidays and religious feasts)","tags":["catechesis"],"security":[{"bearer":[]}],"parameters":[{"name":"classId","in":"path","required":true,"schema":{"type":"string"}}],"responses":{"200":{"description":"OK","content":{"application/json":{"schema":{"$schema":"https://json-schema.org/draft/2020-12/schema","type":"object","properties":{"weekday":{"type":"integer","minimum":0,"maximum":6},"dates":{"type":"array","items":{"type":"object","properties":{"date":{"type":"string","pattern":"^\\d{4}-\\d{2}-\\d{2}$"},"skip":{"type":["string","null"]},"skipKind":{"anyOf":[{"type":"string","enum":["event","triduum","christmas","mary_mother","cancelled","existing"]},{"type":"null"}]},"existing":{"anyOf":[{"type":"object","properties":{"meetingId":{"type":"string"},"theme":{"type":["string","null"]}},"required":["meetingId","theme"],"additionalProperties":false},{"type":"null"}]}},"required":["date","skip","skipKind","existing"],"additionalProperties":false}}},"required":["weekday","dates"],"additionalProperties":false}}}}},"x-mcp-tool":true,"requestBody":{"content":{"application/json":{"schema":{"$schema":"https://json-schema.org/draft/2020-12/schema","type":"object","properties":{"classId":{"type":"string"},"from":{"type":"string","pattern":"^\\d{4}-\\d{2}-\\d{2}$"},"count":{"type":"integer","minimum":1,"maximum":60},"weekday":{"type":"integer","minimum":0,"maximum":6}},"required":["classId","from","count"]}}}}}},"/v1/classes/{classId}/meetings/bulk":{"post":{"operationId":"catechesis.createMeetings","summary":"Creates several sessions at once (year planning)","tags":["catechesis"],"security":[{"bearer":[]}],"parameters":[{"name":"classId","in":"path","required":true,"schema":{"type":"string"}}],"responses":{"200":{"description":"OK","content":{"application/json":{"schema":{"$schema":"https://json-schema.org/draft/2020-12/schema","type":"object","properties":{"created":{"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991},"updated":{"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991},"skipped":{"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991}},"required":["created","updated","skipped"],"additionalProperties":false}}}}},"x-mcp-tool":true,"requestBody":{"content":{"application/json":{"schema":{"$schema":"https://json-schema.org/draft/2020-12/schema","type":"object","properties":{"classId":{"type":"string"},"items":{"minItems":1,"maxItems":60,"type":"array","items":{"type":"object","properties":{"date":{"type":"string","pattern":"^\\d{4}-\\d{2}-\\d{2}$"},"theme":{"type":"string","minLength":1,"maxLength":200}},"required":["date"]}}},"required":["classId","items"]}}}}}},"/v1/meetings/{meetingId}":{"get":{"operationId":"catechesis.getMeeting","summary":"A session with its class and attendance summary","tags":["catechesis"],"security":[{"bearer":[]}],"parameters":[{"name":"meetingId","in":"path","required":true,"schema":{"type":"string"}}],"responses":{"200":{"description":"OK","content":{"application/json":{"schema":{"$schema":"https://json-schema.org/draft/2020-12/schema","type":"object","properties":{"id":{"type":"string"},"date":{"type":"string","pattern":"^\\d{4}-\\d{2}-\\d{2}$"},"title":{"type":["string","null"]},"theme":{"type":["string","null"]},"notes":{"type":["string","null"]},"status":{"type":"string","enum":["scheduled","completed","cancelled"]},"sequence":{"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991},"topicId":{"type":["string","null"]},"startTime":{"type":["string","null"]},"classId":{"type":"string"},"className":{"type":"string"},"summary":{"type":"object","properties":{"present":{"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991},"late":{"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991},"absent":{"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991},"justified":{"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991}},"required":["present","late","absent","justified"],"additionalProperties":false}},"required":["id","date","title","theme","notes","status","sequence","classId","className","summary"],"additionalProperties":false}}}}},"x-mcp-tool":true},"patch":{"operationId":"catechesis.updateMeeting","summary":"Edits the date, theme or outline of a session, or cancels/reactivates it","tags":["catechesis"],"security":[{"bearer":[]}],"parameters":[{"name":"meetingId","in":"path","required":true,"schema":{"type":"string"}}],"responses":{"200":{"description":"OK","content":{"application/json":{"schema":{"$schema":"https://json-schema.org/draft/2020-12/schema","type":"object","properties":{"id":{"type":"string"},"date":{"type":"string","pattern":"^\\d{4}-\\d{2}-\\d{2}$"},"title":{"type":["string","null"]},"theme":{"type":["string","null"]},"notes":{"type":["string","null"]},"status":{"type":"string","enum":["scheduled","completed","cancelled"]},"sequence":{"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991},"topicId":{"type":["string","null"]},"startTime":{"type":["string","null"]}},"required":["id","date","title","theme","notes","status","sequence"],"additionalProperties":false}}}}},"x-mcp-tool":true,"requestBody":{"content":{"application/json":{"schema":{"$schema":"https://json-schema.org/draft/2020-12/schema","type":"object","properties":{"meetingId":{"type":"string"},"date":{"type":"string","pattern":"^\\d{4}-\\d{2}-\\d{2}$"},"title":{"anyOf":[{"type":"string","maxLength":120},{"type":"null"}]},"theme":{"anyOf":[{"type":"string","maxLength":200},{"type":"null"}]},"notes":{"anyOf":[{"type":"string","maxLength":20000},{"type":"null"}]},"startTime":{"anyOf":[{"type":"string","pattern":"^([01]\\d|2[0-3]):[0-5]\\d$"},{"type":"null"}]},"status":{"type":"string","enum":["scheduled","cancelled"]}},"required":["meetingId"]}}}}},"delete":{"operationId":"catechesis.deleteMeeting","summary":"Moves a session WITHOUT attendance to the trash (with attendance, cancel it instead)","tags":["catechesis"],"security":[{"bearer":[]}],"parameters":[{"name":"meetingId","in":"path","required":true,"schema":{"type":"string"}}],"responses":{"200":{"description":"OK","content":{"application/json":{"schema":{"$schema":"https://json-schema.org/draft/2020-12/schema","type":"object","properties":{"ok":{"type":"boolean","const":true},"trashId":{"type":"string"}},"required":["ok","trashId"],"additionalProperties":false}}}}},"x-mcp-tool":false,"requestBody":{"content":{"application/json":{"schema":{"$schema":"https://json-schema.org/draft/2020-12/schema","type":"object","properties":{"meetingId":{"type":"string"}},"required":["meetingId"]}}}}}},"/v1/classes/{classId}/days/{date}/reschedule":{"post":{"operationId":"catechesis.rescheduleMeeting","summary":"Calls off the session of a day: cancel it, merge its theme into the next one, postpone it pushing the following sessions, or move it to another date","tags":["catechesis"],"security":[{"bearer":[]}],"parameters":[{"name":"classId","in":"path","required":true,"schema":{"type":"string"}},{"name":"date","in":"path","required":true,"schema":{"type":"string","pattern":"^\\d{4}-\\d{2}-\\d{2}$"}}],"responses":{"200":{"description":"OK","content":{"application/json":{"schema":{"$schema":"https://json-schema.org/draft/2020-12/schema","type":"object","properties":{"applied":{"type":"boolean"},"changes":{"type":"array","items":{"type":"object","properties":{"meetingId":{"type":["string","null"]},"kind":{"type":"string","enum":["cancel","move","merge"]},"from":{"anyOf":[{"type":"string","pattern":"^\\d{4}-\\d{2}-\\d{2}$"},{"type":"null"}]},"to":{"anyOf":[{"type":"string","pattern":"^\\d{4}-\\d{2}-\\d{2}$"},{"type":"null"}]},"theme":{"type":["string","null"]}},"required":["meetingId","kind","from","to","theme"],"additionalProperties":false}},"next":{"anyOf":[{"type":"object","properties":{"meetingId":{"type":"string"},"date":{"type":"string","pattern":"^\\d{4}-\\d{2}-\\d{2}$"},"theme":{"type":["string","null"]}},"required":["meetingId","date","theme"],"additionalProperties":false},{"type":"null"}]},"hasContent":{"type":"boolean"},"beyondYear":{"type":"boolean"}},"required":["applied","changes","next","hasContent","beyondYear"],"additionalProperties":false}}}}},"x-mcp-tool":true,"requestBody":{"content":{"application/json":{"schema":{"$schema":"https://json-schema.org/draft/2020-12/schema","type":"object","properties":{"classId":{"type":"string"},"date":{"type":"string","pattern":"^\\d{4}-\\d{2}-\\d{2}$"},"mode":{"type":"string","enum":["cancel","merge","shift","move"]},"toDate":{"type":"string","pattern":"^\\d{4}-\\d{2}-\\d{2}$"},"theme":{"type":"string","maxLength":200},"preview":{"default":false,"type":"boolean"}},"required":["classId","date","mode"]}}}}}},"/v1/agenda":{"get":{"operationId":"catechesis.listAgenda","summary":"Sessions of all classes in a period","tags":["catechesis"],"security":[{"bearer":[]}],"parameters":[{"name":"from","in":"query","required":true,"schema":{"type":"string","pattern":"^\\d{4}-\\d{2}-\\d{2}$"}},{"name":"to","in":"query","required":true,"schema":{"type":"string","pattern":"^\\d{4}-\\d{2}-\\d{2}$"}}],"responses":{"200":{"description":"OK","content":{"application/json":{"schema":{"$schema":"https://json-schema.org/draft/2020-12/schema","type":"object","properties":{"items":{"type":"array","items":{"type":"object","properties":{"id":{"type":"string"},"date":{"type":"string","pattern":"^\\d{4}-\\d{2}-\\d{2}$"},"title":{"type":["string","null"]},"theme":{"type":["string","null"]},"notes":{"type":["string","null"]},"status":{"type":"string","enum":["scheduled","completed","cancelled"]},"sequence":{"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991},"topicId":{"type":["string","null"]},"startTime":{"type":["string","null"]},"classId":{"type":"string"},"className":{"type":"string"},"present":{"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991},"total":{"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991}},"required":["id","date","title","theme","notes","status","sequence","classId","className","present","total"],"additionalProperties":false}}},"required":["items"],"additionalProperties":false}}}}},"x-mcp-tool":true}},"/v1/classes/{classId}/attendance/{date}":{"get":{"operationId":"catechesis.getAttendance","summary":"Session and attendance already recorded for a class on a date","tags":["catechesis"],"security":[{"bearer":[]}],"parameters":[{"name":"classId","in":"path","required":true,"schema":{"type":"string"}},{"name":"date","in":"path","required":true,"schema":{"type":"string","pattern":"^\\d{4}-\\d{2}-\\d{2}$"}}],"responses":{"200":{"description":"OK","content":{"application/json":{"schema":{"$schema":"https://json-schema.org/draft/2020-12/schema","type":"object","properties":{"meeting":{"anyOf":[{"type":"object","properties":{"id":{"type":"string"},"date":{"type":"string","pattern":"^\\d{4}-\\d{2}-\\d{2}$"},"title":{"type":["string","null"]},"theme":{"type":["string","null"]},"notes":{"type":["string","null"]},"status":{"type":"string","enum":["scheduled","completed","cancelled"]},"sequence":{"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991},"topicId":{"type":["string","null"]},"startTime":{"type":["string","null"]}},"required":["id","date","title","theme","notes","status","sequence"],"additionalProperties":false},{"type":"null"}]},"entries":{"type":"array","items":{"type":"object","properties":{"catechumenId":{"type":"string"},"status":{"type":"string","enum":["present","late","absent","justified"]},"note":{"type":["string","null"]}},"required":["catechumenId","status","note"],"additionalProperties":false}},"visitors":{"type":"array","items":{"type":"object","properties":{"catechumenId":{"type":"string"},"fullName":{"type":"string"},"className":{"type":"string"},"status":{"anyOf":[{"type":"string","enum":["present","late","absent","justified"]},{"type":"null"}]}},"required":["catechumenId","fullName","className","status"],"additionalProperties":false}},"away":{"type":"array","items":{"type":"object","properties":{"catechumenId":{"type":"string"},"className":{"type":"string"},"date":{"type":"string","pattern":"^\\d{4}-\\d{2}-\\d{2}$"},"startTime":{"type":["string","null"]},"status":{"anyOf":[{"type":"string","enum":["present","late","absent","justified"]},{"type":"null"}]}},"required":["catechumenId","className","date","startTime","status"],"additionalProperties":false}}},"required":["meeting","entries","visitors","away"],"additionalProperties":false}}}}},"x-mcp-tool":true},"put":{"operationId":"catechesis.recordAttendance","summary":"Takes attendance for a class on a date (creates the session if needed)","tags":["catechesis"],"security":[{"bearer":[]}],"parameters":[{"name":"classId","in":"path","required":true,"schema":{"type":"string"}},{"name":"date","in":"path","required":true,"schema":{"type":"string","pattern":"^\\d{4}-\\d{2}-\\d{2}$"}}],"responses":{"200":{"description":"OK","content":{"application/json":{"schema":{"$schema":"https://json-schema.org/draft/2020-12/schema","type":"object","properties":{"recorded":{"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991},"meetingId":{"type":"string"},"summary":{"type":"object","properties":{"present":{"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991},"late":{"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991},"absent":{"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991},"justified":{"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991}},"required":["present","late","absent","justified"],"additionalProperties":false}},"required":["recorded","meetingId","summary"],"additionalProperties":false}}}}},"x-mcp-tool":true,"requestBody":{"content":{"application/json":{"schema":{"$schema":"https://json-schema.org/draft/2020-12/schema","type":"object","properties":{"classId":{"type":"string"},"date":{"type":"string","pattern":"^\\d{4}-\\d{2}-\\d{2}$"},"entries":{"minItems":1,"type":"array","items":{"type":"object","properties":{"catechumenId":{"type":"string"},"status":{"type":"string","enum":["present","late","absent","justified"]},"note":{"type":"string","maxLength":200}},"required":["catechumenId","status"]}}},"required":["classId","date","entries"]}}}}}},"/v1/overview":{"get":{"operationId":"catechesis.overview","summary":"Today's overview: today's and pending attendance, upcoming sessions, repeated absences and birthdays","tags":["catechesis"],"security":[{"bearer":[]}],"parameters":[{"name":"today","in":"query","required":true,"schema":{"type":"string","pattern":"^\\d{4}-\\d{2}-\\d{2}$"}}],"responses":{"200":{"description":"OK","content":{"application/json":{"schema":{"$schema":"https://json-schema.org/draft/2020-12/schema","type":"object","properties":{"today":{"type":"array","items":{"type":"object","properties":{"classId":{"type":"string"},"className":{"type":"string"},"startTime":{"type":["string","null"]},"location":{"type":["string","null"]},"meetingId":{"type":["string","null"]},"done":{"type":"boolean"}},"required":["classId","className","startTime","location","meetingId","done"],"additionalProperties":false}},"pending":{"type":"array","items":{"type":"object","properties":{"meetingId":{"type":"string"},"classId":{"type":"string"},"className":{"type":"string"},"date":{"type":"string","pattern":"^\\d{4}-\\d{2}-\\d{2}$"}},"required":["meetingId","classId","className","date"],"additionalProperties":false}},"upcoming":{"type":"array","items":{"type":"object","properties":{"meetingId":{"type":["string","null"]},"classId":{"type":"string"},"className":{"type":"string"},"date":{"type":"string","pattern":"^\\d{4}-\\d{2}-\\d{2}$"},"theme":{"type":["string","null"]}},"required":["meetingId","classId","className","date","theme"],"additionalProperties":false}},"absences":{"type":"array","items":{"type":"object","properties":{"catechumenId":{"type":"string"},"fullName":{"type":"string"},"classId":{"type":"string"},"className":{"type":"string"},"consecutive":{"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991},"guardianContact":{"type":["string","null"]}},"required":["catechumenId","fullName","classId","className","consecutive","guardianContact"],"additionalProperties":false}},"birthdays":{"type":"array","items":{"type":"object","properties":{"catechumenId":{"type":"string"},"fullName":{"type":"string"},"className":{"type":["string","null"]},"date":{"type":"string","pattern":"^\\d{4}-\\d{2}-\\d{2}$"},"age":{"anyOf":[{"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991},{"type":"null"}]},"inDays":{"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991},"gift":{"type":"boolean"}},"required":["catechumenId","fullName","className","date","age","inDays","gift"],"additionalProperties":false}},"teamBirthdays":{"type":"array","items":{"type":"object","properties":{"userId":{"type":"string"},"name":{"type":"string"},"date":{"type":"string","pattern":"^\\d{4}-\\d{2}-\\d{2}$"},"inDays":{"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991},"isMe":{"type":"boolean"}},"required":["userId","name","date","inDays","isMe"],"additionalProperties":false}},"totals":{"type":"object","properties":{"classes":{"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991},"catechumens":{"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991},"withoutBirthDate":{"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991},"attendanceRate30d":{"type":["number","null"]},"meetings30d":{"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991}},"required":["classes","catechumens","withoutBirthDate","attendanceRate30d","meetings30d"],"additionalProperties":false},"events":{"type":"array","items":{"type":"object","properties":{"id":{"type":"string"},"kind":{"type":"string","enum":["mass","parents","feast","break","vacation","retreat","sacrament","training","team","outing","charity","other"]},"title":{"type":"string"},"from":{"type":"string","pattern":"^\\d{4}-\\d{2}-\\d{2}$"},"to":{"type":"string","pattern":"^\\d{4}-\\d{2}-\\d{2}$"},"classId":{"type":["string","null"]},"className":{"type":["string","null"]},"classIds":{"anyOf":[{"type":"array","items":{"type":"string"}},{"type":"null"}]},"noClasses":{"type":"boolean"},"notes":{"type":["string","null"]},"diocese":{"type":["string","null"]},"regions":{"type":"array","items":{"type":"string"}}},"required":["id","kind","title","from","to","classId","className","noClasses","notes"],"additionalProperties":false}}},"required":["today","pending","upcoming","absences","birthdays","teamBirthdays","totals","events"],"additionalProperties":false}}}}},"x-mcp-tool":true}},"/v1/calendar":{"get":{"operationId":"catechesis.calendar","summary":"Calendar: liturgical season and solemnities, sessions, birthdays and sacraments in the period","tags":["catechesis"],"security":[{"bearer":[]}],"parameters":[{"name":"from","in":"query","required":true,"schema":{"type":"string","pattern":"^\\d{4}-\\d{2}-\\d{2}$"}},{"name":"to","in":"query","required":true,"schema":{"type":"string","pattern":"^\\d{4}-\\d{2}-\\d{2}$"}}],"responses":{"200":{"description":"OK","content":{"application/json":{"schema":{"$schema":"https://json-schema.org/draft/2020-12/schema","type":"object","properties":{"profile":{"type":"string","enum":["BR","GENERAL"]},"days":{"type":"array","items":{"type":"object","properties":{"date":{"type":"string","pattern":"^\\d{4}-\\d{2}-\\d{2}$"},"season":{"type":"string","enum":["advent","christmas","ordinary","lent","triduum","easter"]},"color":{"type":"string","enum":["white","red","purple","green","rose"]},"celebrations":{"type":"array","items":{"type":"object","properties":{"key":{"type":"string"},"name":{"type":"string"},"color":{"type":"string","enum":["white","red","purple","green","rose"]},"rank":{"type":"string","enum":["solemnity","feast","season"]}},"required":["key","name","color","rank"],"additionalProperties":false}},"saint":{"anyOf":[{"type":"object","properties":{"name":{"type":"string"},"rank":{"type":"string","enum":["solemnity","feast","memorial","optional"]}},"required":["name","rank"],"additionalProperties":false},{"type":"null"}]}},"required":["date","season","color","celebrations","saint"],"additionalProperties":false}},"events":{"type":"array","items":{"type":"object","properties":{"date":{"type":"string","pattern":"^\\d{4}-\\d{2}-\\d{2}$"},"kind":{"type":"string","enum":["meeting","birthday","sacrament"]},"title":{"type":"string"},"subtitle":{"type":["string","null"]},"classId":{"type":["string","null"]},"meetingId":{"type":["string","null"]},"catechumenId":{"type":["string","null"]},"status":{"type":["string","null"]}},"required":["date","kind","title","subtitle","classId","meetingId","catechumenId","status"],"additionalProperties":false}},"periods":{"type":"array","items":{"type":"object","properties":{"id":{"type":"string"},"kind":{"type":"string","enum":["mass","parents","feast","break","vacation","retreat","sacrament","training","team","outing","charity","other"]},"title":{"type":"string"},"from":{"type":"string","pattern":"^\\d{4}-\\d{2}-\\d{2}$"},"to":{"type":"string","pattern":"^\\d{4}-\\d{2}-\\d{2}$"},"classId":{"type":["string","null"]},"className":{"type":["string","null"]},"classIds":{"anyOf":[{"type":"array","items":{"type":"string"}},{"type":"null"}]},"noClasses":{"type":"boolean"},"notes":{"type":["string","null"]},"diocese":{"type":["string","null"]},"regions":{"type":"array","items":{"type":"string"}}},"required":["id","kind","title","from","to","classId","className","noClasses","notes"],"additionalProperties":false}}},"required":["profile","days","events","periods"],"additionalProperties":false}}}}},"x-mcp-tool":true}},"/v1/events":{"post":{"operationId":"catechesis.createEvent","summary":"Adds a catechesis event to the calendar (Mass, parents meeting, celebration, break, holidays…), one or more days","tags":["catechesis"],"security":[{"bearer":[]}],"parameters":[],"responses":{"200":{"description":"OK","content":{"application/json":{"schema":{"$schema":"https://json-schema.org/draft/2020-12/schema","type":"object","properties":{"id":{"type":"string"},"kind":{"type":"string","enum":["mass","parents","feast","break","vacation","retreat","sacrament","training","team","outing","charity","other"]},"title":{"type":"string"},"from":{"type":"string","pattern":"^\\d{4}-\\d{2}-\\d{2}$"},"to":{"type":"string","pattern":"^\\d{4}-\\d{2}-\\d{2}$"},"classId":{"type":["string","null"]},"className":{"type":["string","null"]},"classIds":{"anyOf":[{"type":"array","items":{"type":"string"}},{"type":"null"}]},"noClasses":{"type":"boolean"},"notes":{"type":["string","null"]},"diocese":{"type":["string","null"]},"regions":{"type":"array","items":{"type":"string"}}},"required":["id","kind","title","from","to","classId","className","noClasses","notes"],"additionalProperties":false}}}}},"x-mcp-tool":true,"requestBody":{"content":{"application/json":{"schema":{"$schema":"https://json-schema.org/draft/2020-12/schema","type":"object","properties":{"kind":{"type":"string","enum":["mass","parents","feast","break","vacation","retreat","sacrament","training","team","outing","charity","other"]},"title":{"type":"string","minLength":2,"maxLength":120},"from":{"type":"string","pattern":"^\\d{4}-\\d{2}-\\d{2}$"},"to":{"type":"string","pattern":"^\\d{4}-\\d{2}-\\d{2}$"},"classId":{"type":["string","null"]},"classIds":{"anyOf":[{"maxItems":60,"type":"array","items":{"type":"string"}},{"type":"null"}]},"noClasses":{"type":"boolean"},"notes":{"type":"string","maxLength":2000},"regions":{"maxItems":50,"type":"array","items":{"type":"string","minLength":1,"maxLength":60}}},"required":["kind","title","from","to"]}}}}}},"/v1/events/{eventId}":{"patch":{"operationId":"catechesis.updateEvent","summary":"Edits a catechesis event","tags":["catechesis"],"security":[{"bearer":[]}],"parameters":[{"name":"eventId","in":"path","required":true,"schema":{"type":"string"}}],"responses":{"200":{"description":"OK","content":{"application/json":{"schema":{"$schema":"https://json-schema.org/draft/2020-12/schema","type":"object","properties":{"id":{"type":"string"},"kind":{"type":"string","enum":["mass","parents","feast","break","vacation","retreat","sacrament","training","team","outing","charity","other"]},"title":{"type":"string"},"from":{"type":"string","pattern":"^\\d{4}-\\d{2}-\\d{2}$"},"to":{"type":"string","pattern":"^\\d{4}-\\d{2}-\\d{2}$"},"classId":{"type":["string","null"]},"className":{"type":["string","null"]},"classIds":{"anyOf":[{"type":"array","items":{"type":"string"}},{"type":"null"}]},"noClasses":{"type":"boolean"},"notes":{"type":["string","null"]},"diocese":{"type":["string","null"]},"regions":{"type":"array","items":{"type":"string"}}},"required":["id","kind","title","from","to","classId","className","noClasses","notes"],"additionalProperties":false}}}}},"x-mcp-tool":true,"requestBody":{"content":{"application/json":{"schema":{"$schema":"https://json-schema.org/draft/2020-12/schema","type":"object","properties":{"eventId":{"type":"string"},"kind":{"type":"string","enum":["mass","parents","feast","break","vacation","retreat","sacrament","training","team","outing","charity","other"]},"title":{"type":"string","minLength":2,"maxLength":120},"from":{"type":"string","pattern":"^\\d{4}-\\d{2}-\\d{2}$"},"to":{"type":"string","pattern":"^\\d{4}-\\d{2}-\\d{2}$"},"classId":{"type":["string","null"]},"classIds":{"anyOf":[{"maxItems":60,"type":"array","items":{"type":"string"}},{"type":"null"}]},"noClasses":{"type":"boolean"},"notes":{"anyOf":[{"type":"string","maxLength":2000},{"type":"null"}]},"regions":{"maxItems":50,"type":"array","items":{"type":"string","minLength":1,"maxLength":60}}},"required":["eventId"]}}}}},"delete":{"operationId":"catechesis.deleteEvent","summary":"Moves a catechesis event to the trash","tags":["catechesis"],"security":[{"bearer":[]}],"parameters":[{"name":"eventId","in":"path","required":true,"schema":{"type":"string"}}],"responses":{"200":{"description":"OK","content":{"application/json":{"schema":{"$schema":"https://json-schema.org/draft/2020-12/schema","type":"object","properties":{"ok":{"type":"boolean","const":true},"trashId":{"type":"string"}},"required":["ok","trashId"],"additionalProperties":false}}}}},"x-mcp-tool":false,"requestBody":{"content":{"application/json":{"schema":{"$schema":"https://json-schema.org/draft/2020-12/schema","type":"object","properties":{"eventId":{"type":"string"}},"required":["eventId"]}}}}}},"/v1/reports":{"get":{"operationId":"catechesis.reportsOverview","summary":"General report for the period: classes, monthly attendance and students at risk","tags":["catechesis"],"security":[{"bearer":[]}],"parameters":[{"name":"from","in":"query","required":true,"schema":{"type":"string","pattern":"^\\d{4}-\\d{2}-\\d{2}$"}},{"name":"to","in":"query","required":true,"schema":{"type":"string","pattern":"^\\d{4}-\\d{2}-\\d{2}$"}},{"name":"weekStart","in":"query","required":false,"schema":{"type":"integer","minimum":0,"maximum":6}}],"responses":{"200":{"description":"OK","content":{"application/json":{"schema":{"$schema":"https://json-schema.org/draft/2020-12/schema","type":"object","properties":{"totals":{"type":"object","properties":{"enrolled":{"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991},"meetings":{"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991},"attendanceRate":{"type":["number","null"]},"atRisk":{"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991},"elsewhere":{"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991}},"required":["enrolled","meetings","attendanceRate","atRisk","elsewhere"],"additionalProperties":false},"classes":{"type":"array","items":{"type":"object","properties":{"present":{"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991},"late":{"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991},"absent":{"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991},"justified":{"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991},"classId":{"type":"string"},"name":{"type":"string"},"enrolled":{"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991},"meetings":{"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991},"rate":{"type":["number","null"]},"lastMeeting":{"anyOf":[{"type":"string","pattern":"^\\d{4}-\\d{2}-\\d{2}$"},{"type":"null"}]},"elsewhere":{"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991}},"required":["present","late","absent","justified","classId","name","enrolled","meetings","rate","lastMeeting","elsewhere"],"additionalProperties":false}},"monthly":{"type":"array","items":{"type":"object","properties":{"month":{"type":"string"},"meetings":{"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991},"rate":{"type":["number","null"]}},"required":["month","meetings","rate"],"additionalProperties":false}},"weekly":{"anyOf":[{"type":"array","items":{"type":"object","properties":{"from":{"type":"string","pattern":"^\\d{4}-\\d{2}-\\d{2}$"},"to":{"type":"string","pattern":"^\\d{4}-\\d{2}-\\d{2}$"},"meetings":{"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991},"rate":{"type":["number","null"]}},"required":["from","to","meetings","rate"],"additionalProperties":false}},{"type":"null"}]},"people":{"type":"array","items":{"type":"object","properties":{"present":{"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991},"late":{"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991},"absent":{"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991},"justified":{"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991},"catechumenId":{"type":"string"},"fullName":{"type":"string"},"classId":{"type":"string"},"className":{"type":"string"},"total":{"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991},"rate":{"type":["number","null"]},"risk":{"type":"string","enum":["high","medium","low"]},"consecutive":{"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991},"missedThemes":{"type":"array","items":{"type":"string"}},"elsewhere":{"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991}},"required":["present","late","absent","justified","catechumenId","fullName","classId","className","total","rate","risk","consecutive","missedThemes","elsewhere"],"additionalProperties":false}}},"required":["totals","classes","monthly","weekly","people"],"additionalProperties":false}}}}},"x-mcp-tool":true}},"/v1/catechumens/{catechumenId}/report":{"get":{"operationId":"catechesis.catechumenReport","summary":"A student's individual report for the period: attendance, month by month, themes and journey","tags":["catechesis"],"security":[{"bearer":[]}],"parameters":[{"name":"catechumenId","in":"path","required":true,"schema":{"type":"string"}},{"name":"from","in":"query","required":true,"schema":{"type":"string","pattern":"^\\d{4}-\\d{2}-\\d{2}$"}},{"name":"to","in":"query","required":true,"schema":{"type":"string","pattern":"^\\d{4}-\\d{2}-\\d{2}$"}},{"name":"weekStart","in":"query","required":false,"schema":{"type":"integer","minimum":0,"maximum":6}}],"responses":{"200":{"description":"OK","content":{"application/json":{"schema":{"$schema":"https://json-schema.org/draft/2020-12/schema","type":"object","properties":{"person":{"type":"object","properties":{"id":{"type":"string"},"fullName":{"type":"string"},"birthDate":{"type":["string","null"]},"classId":{"type":["string","null"]},"photo":{"type":["string","null"]},"className":{"type":["string","null"]},"archived":{"type":"boolean"},"notes":{"type":["string","null"]},"guardianName":{"type":["string","null"]},"guardianContact":{"type":["string","null"]}},"required":["id","fullName","birthDate","classId","photo","className","archived","notes","guardianName","guardianContact"],"additionalProperties":false},"counts":{"type":"object","properties":{"present":{"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991},"late":{"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991},"absent":{"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991},"justified":{"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991},"total":{"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991},"rate":{"type":["number","null"]}},"required":["present","late","absent","justified","total","rate"],"additionalProperties":false},"monthly":{"type":"array","items":{"type":"object","properties":{"present":{"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991},"late":{"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991},"absent":{"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991},"justified":{"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991},"month":{"type":"string"},"meetings":{"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991},"rate":{"type":["number","null"]}},"required":["present","late","absent","justified","month","meetings","rate"],"additionalProperties":false}},"weekly":{"anyOf":[{"type":"array","items":{"type":"object","properties":{"from":{"type":"string","pattern":"^\\d{4}-\\d{2}-\\d{2}$"},"to":{"type":"string","pattern":"^\\d{4}-\\d{2}-\\d{2}$"},"meetings":{"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991},"rate":{"type":["number","null"]}},"required":["from","to","meetings","rate"],"additionalProperties":false}},{"type":"null"}]},"history":{"type":"array","items":{"type":"object","properties":{"month":{"type":"string"},"meetings":{"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991},"rate":{"type":["number","null"]}},"required":["month","meetings","rate"],"additionalProperties":false}},"timeline":{"type":"array","items":{"type":"object","properties":{"meetingId":{"type":"string"},"date":{"type":"string","pattern":"^\\d{4}-\\d{2}-\\d{2}$"},"theme":{"type":["string","null"]},"className":{"type":"string"},"status":{"type":"string","enum":["present","late","absent","justified"]},"note":{"type":["string","null"]},"elsewhere":{"anyOf":[{"type":"object","properties":{"className":{"type":"string"},"date":{"type":"string"}},"required":["className","date"],"additionalProperties":false},{"type":"null"}]}},"required":["meetingId","date","theme","className","status","note","elsewhere"],"additionalProperties":false}},"attendedThemes":{"type":"array","items":{"type":"object","properties":{"date":{"type":"string","pattern":"^\\d{4}-\\d{2}-\\d{2}$"},"theme":{"type":"string"}},"required":["date","theme"],"additionalProperties":false}},"missedThemes":{"type":"array","items":{"type":"object","properties":{"date":{"type":"string","pattern":"^\\d{4}-\\d{2}-\\d{2}$"},"theme":{"type":"string"}},"required":["date","theme"],"additionalProperties":false}},"consecutive":{"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991},"maxConsecutive":{"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991},"risk":{"type":"string","enum":["high","medium","low"]},"rank":{"anyOf":[{"type":"object","properties":{"position":{"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991},"of":{"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991}},"required":["position","of"],"additionalProperties":false},{"type":"null"}]},"pastoralNotes":{"type":"array","items":{"type":"object","properties":{"date":{"type":"string","pattern":"^\\d{4}-\\d{2}-\\d{2}$"},"text":{"type":"string"},"authorName":{"type":"string"}},"required":["date","text","authorName"],"additionalProperties":false}}},"required":["person","counts","monthly","weekly","history","timeline","attendedThemes","missedThemes","consecutive","maxConsecutive","risk","rank","pastoralNotes"],"additionalProperties":false}}}}},"x-mcp-tool":true}},"/v1/classes/{classId}/year-review":{"get":{"operationId":"catechesis.classYearReview","summary":"Year in review of a class: sessions, attendance, best month, themes, sacraments, activities and birthdays","tags":["catechesis"],"security":[{"bearer":[]}],"parameters":[{"name":"classId","in":"path","required":true,"schema":{"type":"string"}}],"responses":{"200":{"description":"OK","content":{"application/json":{"schema":{"$schema":"https://json-schema.org/draft/2020-12/schema","type":"object","properties":{"class":{"type":"object","properties":{"id":{"type":"string"},"name":{"type":"string"},"stage":{"anyOf":[{"type":"string","enum":["pre_catechesis","first_communion","perseverance","confirmation","adult","catechumenate","altar_servers","missionary_childhood","youth_group","other"]},{"type":"null"}]},"stageLabel":{"type":["string","null"]},"year":{"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991}},"required":["id","name","stage","stageLabel","year"],"additionalProperties":false},"from":{"anyOf":[{"type":"string","pattern":"^\\d{4}-\\d{2}-\\d{2}$"},{"type":"null"}]},"to":{"anyOf":[{"type":"string","pattern":"^\\d{4}-\\d{2}-\\d{2}$"},{"type":"null"}]},"meetings":{"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991},"people":{"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991},"presences":{"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991},"rate":{"type":["number","null"]},"elsewhere":{"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991},"monthly":{"type":"array","items":{"type":"object","properties":{"month":{"type":"string"},"meetings":{"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991},"rate":{"type":["number","null"]}},"required":["month","meetings","rate"],"additionalProperties":false}},"bestMonth":{"anyOf":[{"type":"object","properties":{"month":{"type":"string"},"rate":{"type":"number"}},"required":["month","rate"],"additionalProperties":false},{"type":"null"}]},"topMeeting":{"anyOf":[{"type":"object","properties":{"date":{"type":"string","pattern":"^\\d{4}-\\d{2}-\\d{2}$"},"theme":{"type":["string","null"]},"present":{"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991}},"required":["date","theme","present"],"additionalProperties":false},{"type":"null"}]},"themes":{"type":"array","items":{"type":"object","properties":{"date":{"type":"string","pattern":"^\\d{4}-\\d{2}-\\d{2}$"},"theme":{"type":"string"}},"required":["date","theme"],"additionalProperties":false}},"fullAttendance":{"type":"array","items":{"type":"object","properties":{"id":{"type":"string"},"fullName":{"type":"string"}},"required":["id","fullName"],"additionalProperties":false}},"sacraments":{"type":"array","items":{"type":"object","properties":{"sacrament":{"type":"string","enum":["baptism","reconciliation","first_communion","confirmation"]},"count":{"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991}},"required":["sacrament","count"],"additionalProperties":false}},"activities":{"type":"object","properties":{"count":{"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991},"handedIn":{"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991}},"required":["count","handedIn"],"additionalProperties":false},"birthdays":{"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991},"gifts":{"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991},"notes":{"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991}},"required":["class","from","to","meetings","people","presences","rate","elsewhere","monthly","bestMonth","topMeeting","themes","fullAttendance","sacraments","activities","birthdays","gifts","notes"],"additionalProperties":false}}}}},"x-mcp-tool":true}},"/v1/todo":{"get":{"operationId":"catechesis.listTodo","summary":"Small pending items to complete in the classes the person leads (session without theme, class without weekday, missing birth date or contact…)","tags":["catechesis"],"security":[{"bearer":[]}],"parameters":[{"name":"today","in":"query","required":true,"schema":{"type":"string","pattern":"^\\d{4}-\\d{2}-\\d{2}$"}}],"responses":{"200":{"description":"OK","content":{"application/json":{"schema":{"$schema":"https://json-schema.org/draft/2020-12/schema","type":"object","properties":{"items":{"type":"array","items":{"type":"object","properties":{"key":{"type":"string"},"kind":{"type":"string","enum":["meeting_theme","class_weekday","activity_unmarked","quiet_absent","guardian_contact","birth_date"]},"classId":{"type":"string"},"className":{"type":"string"},"stage":{"anyOf":[{"type":"string","enum":["pre_catechesis","first_communion","perseverance","confirmation","adult","catechumenate","altar_servers","missionary_childhood","youth_group","other"]},{"type":"null"}]},"catechumenId":{"type":["string","null"]},"name":{"type":["string","null"]},"meetingId":{"type":["string","null"]},"activityId":{"type":["string","null"]},"title":{"type":["string","null"]},"date":{"anyOf":[{"type":"string","pattern":"^\\d{4}-\\d{2}-\\d{2}$"},{"type":"null"}]},"count":{"anyOf":[{"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991},{"type":"null"}]}},"required":["key","kind","classId","className","stage","catechumenId","name","meetingId","activityId","title","date","count"],"additionalProperties":false}},"total":{"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991}},"required":["items","total"],"additionalProperties":false}}}}},"x-mcp-tool":true}},"/v1/todo/snooze":{"post":{"operationId":"catechesis.snoozeTodo","summary":"Hides a pending item for this person for some days (\"not now\")","tags":["catechesis"],"security":[{"bearer":[]}],"parameters":[],"responses":{"200":{"description":"OK","content":{"application/json":{"schema":{"$schema":"https://json-schema.org/draft/2020-12/schema","type":"object","properties":{"ok":{"type":"boolean","const":true},"until":{"type":"string","pattern":"^\\d{4}-\\d{2}-\\d{2}$"}},"required":["ok","until"],"additionalProperties":false}}}}},"x-mcp-tool":false,"requestBody":{"content":{"application/json":{"schema":{"$schema":"https://json-schema.org/draft/2020-12/schema","type":"object","properties":{"key":{"type":"string","minLength":3,"maxLength":200},"today":{"type":"string","pattern":"^\\d{4}-\\d{2}-\\d{2}$"},"days":{"default":7,"type":"integer","minimum":1,"maximum":60}},"required":["key","today"]}}}}}},"/v1/moment":{"get":{"operationId":"catechesis.dailyMoment","summary":"Today's moment: one student from the classes the person leads to pray for, why, and how many were prayed for this month","tags":["catechesis"],"security":[{"bearer":[]}],"parameters":[{"name":"today","in":"query","required":true,"schema":{"type":"string","pattern":"^\\d{4}-\\d{2}-\\d{2}$"}}],"responses":{"200":{"description":"OK","content":{"application/json":{"schema":{"$schema":"https://json-schema.org/draft/2020-12/schema","type":"object","properties":{"person":{"anyOf":[{"type":"object","properties":{"catechumenId":{"type":"string"},"fullName":{"type":"string"},"classId":{"type":"string"},"className":{"type":"string"},"stage":{"anyOf":[{"type":"string","enum":["pre_catechesis","first_communion","perseverance","confirmation","adult","catechumenate","altar_servers","missionary_childhood","youth_group","other"]},{"type":"null"}]},"reason":{"type":"string","enum":["birthday","absent","sacrament","turn"]},"count":{"anyOf":[{"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991},{"type":"null"}]},"date":{"anyOf":[{"type":"string","pattern":"^\\d{4}-\\d{2}-\\d{2}$"},{"type":"null"}]},"sacrament":{"anyOf":[{"type":"string","enum":["baptism","reconciliation","first_communion","confirmation"]},{"type":"null"}]},"hasContact":{"type":"boolean"},"prayed":{"type":"boolean"}},"required":["catechumenId","fullName","classId","className","stage","reason","count","date","sacrament","hasContact","prayed"],"additionalProperties":false},{"type":"null"}]},"month":{"type":"object","properties":{"prayed":{"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991},"total":{"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991}},"required":["prayed","total"],"additionalProperties":false}},"required":["person","month"],"additionalProperties":false}}}}},"x-mcp-tool":false}},"/v1/moment/prayed":{"post":{"operationId":"catechesis.markPrayed","summary":"Records that the person prayed for this student today","tags":["catechesis"],"security":[{"bearer":[]}],"parameters":[],"responses":{"200":{"description":"OK","content":{"application/json":{"schema":{"$schema":"https://json-schema.org/draft/2020-12/schema","type":"object","properties":{"ok":{"type":"boolean","const":true}},"required":["ok"],"additionalProperties":false}}}}},"x-mcp-tool":false,"requestBody":{"content":{"application/json":{"schema":{"$schema":"https://json-schema.org/draft/2020-12/schema","type":"object","properties":{"catechumenId":{"type":"string"},"today":{"type":"string","pattern":"^\\d{4}-\\d{2}-\\d{2}$"}},"required":["catechumenId","today"]}}}}}},"/v1/catechumens/{catechumenId}/birthday-gift/{year}":{"put":{"operationId":"catechesis.setBirthdayGift","summary":"Marks or unmarks the birthday gift as given this year","tags":["catechesis"],"security":[{"bearer":[]}],"parameters":[{"name":"catechumenId","in":"path","required":true,"schema":{"type":"string"}},{"name":"year","in":"path","required":true,"schema":{"type":"integer","minimum":2000,"maximum":2100}}],"responses":{"200":{"description":"OK","content":{"application/json":{"schema":{"$schema":"https://json-schema.org/draft/2020-12/schema","type":"object","properties":{"given":{"type":"boolean"}},"required":["given"],"additionalProperties":false}}}}},"x-mcp-tool":true,"requestBody":{"content":{"application/json":{"schema":{"$schema":"https://json-schema.org/draft/2020-12/schema","type":"object","properties":{"catechumenId":{"type":"string"},"year":{"type":"integer","minimum":2000,"maximum":2100},"given":{"type":"boolean"}},"required":["catechumenId","year","given"]}}}}}},"/v1/catechumens/{catechumenId}/sacraments/{sacrament}":{"put":{"operationId":"catechesis.setSacrament","summary":"Records the progress of a student's sacrament","tags":["catechesis"],"security":[{"bearer":[]}],"parameters":[{"name":"catechumenId","in":"path","required":true,"schema":{"type":"string"}},{"name":"sacrament","in":"path","required":true,"schema":{"type":"string","enum":["baptism","reconciliation","first_communion","confirmation"]}}],"responses":{"200":{"description":"OK","content":{"application/json":{"schema":{"$schema":"https://json-schema.org/draft/2020-12/schema","type":"object","properties":{"sacrament":{"type":"string","enum":["baptism","reconciliation","first_communion","confirmation"]},"status":{"type":"string","enum":["pending","scheduled","done"]},"date":{"anyOf":[{"type":"string","pattern":"^\\d{4}-\\d{2}-\\d{2}$"},{"type":"null"}]},"place":{"type":["string","null"]}},"required":["sacrament","status","date","place"],"additionalProperties":false}}}}},"x-mcp-tool":true,"requestBody":{"content":{"application/json":{"schema":{"$schema":"https://json-schema.org/draft/2020-12/schema","type":"object","properties":{"catechumenId":{"type":"string"},"sacrament":{"type":"string","enum":["baptism","reconciliation","first_communion","confirmation"]},"status":{"type":"string","enum":["pending","scheduled","done"]},"date":{"anyOf":[{"type":"string","pattern":"^\\d{4}-\\d{2}-\\d{2}$"},{"type":"null"}]},"place":{"anyOf":[{"type":"string","maxLength":120},{"type":"null"}]}},"required":["catechumenId","sacrament","status"]}}}}}},"/v1/sacraments":{"get":{"operationId":"catechesis.sacramentSummary","summary":"Sacraments board (per class or overall)","tags":["catechesis"],"security":[{"bearer":[]}],"parameters":[{"name":"classId","in":"query","required":false,"schema":{"type":"string"}}],"responses":{"200":{"description":"OK","content":{"application/json":{"schema":{"$schema":"https://json-schema.org/draft/2020-12/schema","type":"object","properties":{"totals":{"type":"object","propertyNames":{"type":"string","enum":["baptism","reconciliation","first_communion","confirmation"]},"additionalProperties":{"type":"object","properties":{"pending":{"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991},"scheduled":{"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991},"done":{"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991}},"required":["pending","scheduled","done"],"additionalProperties":false},"required":["baptism","reconciliation","first_communion","confirmation"]},"items":{"type":"array","items":{"type":"object","properties":{"catechumenId":{"type":"string"},"fullName":{"type":"string"},"classId":{"type":["string","null"]},"records":{"type":"object","propertyNames":{"type":"string","enum":["baptism","reconciliation","first_communion","confirmation"]},"additionalProperties":{"type":"string","enum":["pending","scheduled","done"]},"required":["baptism","reconciliation","first_communion","confirmation"]}},"required":["catechumenId","fullName","classId","records"],"additionalProperties":false}}},"required":["totals","items"],"additionalProperties":false}}}}},"x-mcp-tool":true}},"/v1/sample/clear":{"post":{"operationId":"catechesis.clearSample","summary":"Removes the sample class and its students","tags":["catechesis"],"security":[{"bearer":[]}],"parameters":[],"responses":{"200":{"description":"OK","content":{"application/json":{"schema":{"$schema":"https://json-schema.org/draft/2020-12/schema","type":"object","properties":{"removed":{"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991}},"required":["removed"],"additionalProperties":false}}}}},"x-mcp-tool":false,"requestBody":{"content":{"application/json":{"schema":{"$schema":"https://json-schema.org/draft/2020-12/schema","type":"object","properties":{}}}}}}},"/v1/trash":{"get":{"operationId":"catechesis.listTrash","summary":"What was deleted in the last 30 days (most recent first)","tags":["catechesis"],"security":[{"bearer":[]}],"parameters":[],"responses":{"200":{"description":"OK","content":{"application/json":{"schema":{"$schema":"https://json-schema.org/draft/2020-12/schema","type":"object","properties":{"items":{"type":"array","items":{"type":"object","properties":{"id":{"type":"string"},"kind":{"type":"string","enum":["class","catechumen","meeting","event","activity"]},"label":{"type":"string"},"detail":{"type":["string","null"]},"deletedAt":{"type":"string"},"expiresAt":{"type":"string"}},"required":["id","kind","label","detail","deletedAt","expiresAt"],"additionalProperties":false}}},"required":["items"],"additionalProperties":false}}}}},"x-mcp-tool":true}},"/v1/trash/{trashId}/restore":{"post":{"operationId":"catechesis.restoreTrash","summary":"Restores an item from the trash","tags":["catechesis"],"security":[{"bearer":[]}],"parameters":[{"name":"trashId","in":"path","required":true,"schema":{"type":"string"}}],"responses":{"200":{"description":"OK","content":{"application/json":{"schema":{"$schema":"https://json-schema.org/draft/2020-12/schema","type":"object","properties":{"kind":{"type":"string","enum":["class","catechumen","meeting","event","activity"]},"targetId":{"type":"string"}},"required":["kind","targetId"],"additionalProperties":false}}}}},"x-mcp-tool":true,"requestBody":{"content":{"application/json":{"schema":{"$schema":"https://json-schema.org/draft/2020-12/schema","type":"object","properties":{"trashId":{"type":"string"}},"required":["trashId"]}}}}}},"/v1/trash/{trashId}":{"delete":{"operationId":"catechesis.purgeTrash","summary":"Permanently erases an item from the trash","tags":["catechesis"],"security":[{"bearer":[]}],"parameters":[{"name":"trashId","in":"path","required":true,"schema":{"type":"string"}}],"responses":{"200":{"description":"OK","content":{"application/json":{"schema":{"$schema":"https://json-schema.org/draft/2020-12/schema","type":"object","properties":{"ok":{"type":"boolean","const":true}},"required":["ok"],"additionalProperties":false}}}}},"x-mcp-tool":false,"requestBody":{"content":{"application/json":{"schema":{"$schema":"https://json-schema.org/draft/2020-12/schema","type":"object","properties":{"trashId":{"type":"string"}},"required":["trashId"]}}}}}},"/v1/classes/{classId}/duplicate":{"post":{"operationId":"catechesis.duplicateClass","summary":"Creates a class from another one (schedule, catechists and, if asked, themes and students)","tags":["catechesis"],"security":[{"bearer":[]}],"parameters":[{"name":"classId","in":"path","required":true,"schema":{"type":"string"}}],"responses":{"200":{"description":"OK","content":{"application/json":{"schema":{"$schema":"https://json-schema.org/draft/2020-12/schema","type":"object","properties":{"id":{"type":"string"},"name":{"type":"string"},"stage":{"anyOf":[{"type":"string","enum":["pre_catechesis","first_communion","perseverance","confirmation","adult","catechumenate","altar_servers","missionary_childhood","youth_group","other"]},{"type":"null"}]},"stageLabel":{"type":["string","null"]},"year":{"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991},"catechumenCount":{"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991},"isSample":{"type":"boolean"},"weekday":{"anyOf":[{"type":"integer","minimum":0,"maximum":6},{"type":"null"}]},"startTime":{"type":["string","null"]},"location":{"type":["string","null"]},"groupId":{"type":["string","null"]},"catechists":{"type":"array","items":{"type":"object","properties":{"userId":{"type":"string"},"role":{"type":"string","enum":["lead","assistant"]}},"required":["userId","role"],"additionalProperties":false}},"themes":{"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991},"moved":{"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991}},"required":["id","name","stage","stageLabel","year","catechumenCount","isSample","weekday","startTime","location","groupId","catechists","themes","moved"],"additionalProperties":false}}}}},"x-mcp-tool":true,"requestBody":{"content":{"application/json":{"schema":{"$schema":"https://json-schema.org/draft/2020-12/schema","type":"object","properties":{"classId":{"type":"string"},"name":{"type":"string","minLength":2,"maxLength":80},"year":{"type":"integer","minimum":2000,"maximum":2100},"copyCatechists":{"default":true,"type":"boolean"},"copyThemes":{"default":false,"type":"boolean"},"moveCatechumens":{"default":false,"type":"boolean"},"today":{"type":"string","pattern":"^\\d{4}-\\d{2}-\\d{2}$"}},"required":["classId","name","year"]}}}}}},"/v1/classes/{classId}/activities":{"get":{"operationId":"catechesis.listActivities","summary":"Activities of the class (most recent first), with how many handed them in","tags":["catechesis"],"security":[{"bearer":[]}],"parameters":[{"name":"classId","in":"path","required":true,"schema":{"type":"string"}}],"responses":{"200":{"description":"OK","content":{"application/json":{"schema":{"$schema":"https://json-schema.org/draft/2020-12/schema","type":"object","properties":{"items":{"type":"array","items":{"type":"object","properties":{"id":{"type":"string"},"classId":{"type":"string"},"meetingId":{"type":["string","null"]},"title":{"type":"string"},"description":{"type":["string","null"]},"dueDate":{"anyOf":[{"type":"string","pattern":"^\\d{4}-\\d{2}-\\d{2}$"},{"type":"null"}]},"done":{"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991},"total":{"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991},"createdAt":{"type":"string"}},"required":["id","classId","meetingId","title","description","dueDate","done","total","createdAt"],"additionalProperties":false}}},"required":["items"],"additionalProperties":false}}}}},"x-mcp-tool":true},"post":{"operationId":"catechesis.createActivity","summary":"Creates an activity for the class (task, research, family prayer)","tags":["catechesis"],"security":[{"bearer":[]}],"parameters":[{"name":"classId","in":"path","required":true,"schema":{"type":"string"}}],"responses":{"200":{"description":"OK","content":{"application/json":{"schema":{"$schema":"https://json-schema.org/draft/2020-12/schema","type":"object","properties":{"id":{"type":"string"},"classId":{"type":"string"},"meetingId":{"type":["string","null"]},"title":{"type":"string"},"description":{"type":["string","null"]},"dueDate":{"anyOf":[{"type":"string","pattern":"^\\d{4}-\\d{2}-\\d{2}$"},{"type":"null"}]},"done":{"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991},"total":{"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991},"createdAt":{"type":"string"}},"required":["id","classId","meetingId","title","description","dueDate","done","total","createdAt"],"additionalProperties":false}}}}},"x-mcp-tool":true,"requestBody":{"content":{"application/json":{"schema":{"$schema":"https://json-schema.org/draft/2020-12/schema","type":"object","properties":{"classId":{"type":"string"},"title":{"type":"string","minLength":2,"maxLength":120},"description":{"type":"string","maxLength":2000},"dueDate":{"type":"string","pattern":"^\\d{4}-\\d{2}-\\d{2}$"},"meetingId":{"type":"string"}},"required":["classId","title"]}}}}}},"/v1/activities/{activityId}":{"patch":{"operationId":"catechesis.updateActivity","summary":"Edits the title, description and due date of an activity","tags":["catechesis"],"security":[{"bearer":[]}],"parameters":[{"name":"activityId","in":"path","required":true,"schema":{"type":"string"}}],"responses":{"200":{"description":"OK","content":{"application/json":{"schema":{"$schema":"https://json-schema.org/draft/2020-12/schema","type":"object","properties":{"id":{"type":"string"},"classId":{"type":"string"},"meetingId":{"type":["string","null"]},"title":{"type":"string"},"description":{"type":["string","null"]},"dueDate":{"anyOf":[{"type":"string","pattern":"^\\d{4}-\\d{2}-\\d{2}$"},{"type":"null"}]},"done":{"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991},"total":{"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991},"createdAt":{"type":"string"}},"required":["id","classId","meetingId","title","description","dueDate","done","total","createdAt"],"additionalProperties":false}}}}},"x-mcp-tool":true,"requestBody":{"content":{"application/json":{"schema":{"$schema":"https://json-schema.org/draft/2020-12/schema","type":"object","properties":{"activityId":{"type":"string"},"title":{"type":"string","minLength":2,"maxLength":120},"description":{"anyOf":[{"type":"string","maxLength":2000},{"type":"null"}]},"dueDate":{"anyOf":[{"type":"string","pattern":"^\\d{4}-\\d{2}-\\d{2}$"},{"type":"null"}]}},"required":["activityId"]}}}}},"delete":{"operationId":"catechesis.deleteActivity","summary":"Moves the activity (with its hand-ins) to the trash","tags":["catechesis"],"security":[{"bearer":[]}],"parameters":[{"name":"activityId","in":"path","required":true,"schema":{"type":"string"}}],"responses":{"200":{"description":"OK","content":{"application/json":{"schema":{"$schema":"https://json-schema.org/draft/2020-12/schema","type":"object","properties":{"ok":{"type":"boolean","const":true},"trashId":{"type":"string"}},"required":["ok","trashId"],"additionalProperties":false}}}}},"x-mcp-tool":false,"requestBody":{"content":{"application/json":{"schema":{"$schema":"https://json-schema.org/draft/2020-12/schema","type":"object","properties":{"activityId":{"type":"string"}},"required":["activityId"]}}}}},"get":{"operationId":"catechesis.getActivity","summary":"An activity with the class list: who handed it in and who has not","tags":["catechesis"],"security":[{"bearer":[]}],"parameters":[{"name":"activityId","in":"path","required":true,"schema":{"type":"string"}}],"responses":{"200":{"description":"OK","content":{"application/json":{"schema":{"$schema":"https://json-schema.org/draft/2020-12/schema","type":"object","properties":{"id":{"type":"string"},"classId":{"type":"string"},"meetingId":{"type":["string","null"]},"title":{"type":"string"},"description":{"type":["string","null"]},"dueDate":{"anyOf":[{"type":"string","pattern":"^\\d{4}-\\d{2}-\\d{2}$"},{"type":"null"}]},"done":{"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991},"total":{"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991},"createdAt":{"type":"string"},"className":{"type":"string"},"people":{"type":"array","items":{"type":"object","properties":{"catechumenId":{"type":"string"},"fullName":{"type":"string"},"done":{"type":"boolean"}},"required":["catechumenId","fullName","done"],"additionalProperties":false}}},"required":["id","classId","meetingId","title","description","dueDate","done","total","createdAt","className","people"],"additionalProperties":false}}}}},"x-mcp-tool":true}},"/v1/activities/{activityId}/done":{"put":{"operationId":"catechesis.setActivityDone","summary":"Marks (or unmarks) who handed in the activity","tags":["catechesis"],"security":[{"bearer":[]}],"parameters":[{"name":"activityId","in":"path","required":true,"schema":{"type":"string"}}],"responses":{"200":{"description":"OK","content":{"application/json":{"schema":{"$schema":"https://json-schema.org/draft/2020-12/schema","type":"object","properties":{"done":{"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991},"total":{"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991}},"required":["done","total"],"additionalProperties":false}}}}},"x-mcp-tool":true,"requestBody":{"content":{"application/json":{"schema":{"$schema":"https://json-schema.org/draft/2020-12/schema","type":"object","properties":{"activityId":{"type":"string"},"catechumenIds":{"minItems":1,"maxItems":200,"type":"array","items":{"type":"string"}},"done":{"type":"boolean"}},"required":["activityId","catechumenIds","done"]}}}}}},"/v1/catechumens/{catechumenId}/family-link":{"get":{"operationId":"catechesis.familyLinkStatus","summary":"Whether the student has an active family portal link","tags":["catechesis"],"security":[{"bearer":[]}],"parameters":[{"name":"catechumenId","in":"path","required":true,"schema":{"type":"string"}}],"responses":{"200":{"description":"OK","content":{"application/json":{"schema":{"$schema":"https://json-schema.org/draft/2020-12/schema","type":"object","properties":{"active":{"type":"boolean"},"createdAt":{"type":["string","null"]},"lastSeenAt":{"type":["string","null"]}},"required":["active","createdAt","lastSeenAt"],"additionalProperties":false}}}}},"x-mcp-tool":false},"post":{"operationId":"catechesis.createFamilyLink","summary":"Creates the family portal link (deactivates the previous one)","tags":["catechesis"],"security":[{"bearer":[]}],"parameters":[{"name":"catechumenId","in":"path","required":true,"schema":{"type":"string"}}],"responses":{"200":{"description":"OK","content":{"application/json":{"schema":{"$schema":"https://json-schema.org/draft/2020-12/schema","type":"object","properties":{"token":{"type":"string"}},"required":["token"],"additionalProperties":false}}}}},"x-mcp-tool":false,"requestBody":{"content":{"application/json":{"schema":{"$schema":"https://json-schema.org/draft/2020-12/schema","type":"object","properties":{"catechumenId":{"type":"string"}},"required":["catechumenId"]}}}}},"delete":{"operationId":"catechesis.revokeFamilyLink","summary":"Deactivates the family portal link","tags":["catechesis"],"security":[{"bearer":[]}],"parameters":[{"name":"catechumenId","in":"path","required":true,"schema":{"type":"string"}}],"responses":{"200":{"description":"OK","content":{"application/json":{"schema":{"$schema":"https://json-schema.org/draft/2020-12/schema","type":"object","properties":{"ok":{"type":"boolean","const":true}},"required":["ok"],"additionalProperties":false}}}}},"x-mcp-tool":false,"requestBody":{"content":{"application/json":{"schema":{"$schema":"https://json-schema.org/draft/2020-12/schema","type":"object","properties":{"catechumenId":{"type":"string"}},"required":["catechumenId"]}}}}}},"/v1/family/{token}":{"get":{"operationId":"catechesis.familyPortal","summary":"What the family sees: upcoming sessions, events, attendance, activities and sacraments","tags":["catechesis"],"security":[],"parameters":[{"name":"token","in":"path","required":true,"schema":{"type":"string","minLength":20,"maxLength":100}},{"name":"today","in":"query","required":false,"schema":{"type":"string","pattern":"^\\d{4}-\\d{2}-\\d{2}$"}}],"responses":{"200":{"description":"OK","content":{"application/json":{"schema":{"$schema":"https://json-schema.org/draft/2020-12/schema","type":"object","properties":{"orgName":{"type":"string"},"erasureRequestedAt":{"type":["string","null"]},"child":{"type":"object","properties":{"firstName":{"type":"string"},"fullName":{"type":"string"},"className":{"type":["string","null"]},"stage":{"type":["string","null"]},"stageKind":{"anyOf":[{"type":"string","enum":["pre_catechesis","first_communion","perseverance","confirmation","adult","catechumenate","altar_servers","missionary_childhood","youth_group","other"]},{"type":"null"}]},"weekday":{"anyOf":[{"type":"integer","minimum":0,"maximum":6},{"type":"null"}]},"startTime":{"type":["string","null"]},"location":{"type":["string","null"]}},"required":["firstName","fullName","className","stage","stageKind","weekday","startTime","location"],"additionalProperties":false},"next":{"type":"array","items":{"type":"object","properties":{"date":{"type":"string","pattern":"^\\d{4}-\\d{2}-\\d{2}$"},"theme":{"type":["string","null"]},"startTime":{"type":["string","null"]},"id":{"type":"string"},"swap":{"anyOf":[{"type":"object","properties":{"meetingId":{"type":"string"},"className":{"type":"string"},"date":{"type":"string","pattern":"^\\d{4}-\\d{2}-\\d{2}$"},"startTime":{"type":["string","null"]},"location":{"type":["string","null"]},"id":{"type":"string"},"canUndo":{"type":"boolean"}},"required":["meetingId","className","date","startTime","location","id","canUndo"],"additionalProperties":false},{"type":"null"}]},"alternatives":{"type":"array","items":{"type":"object","properties":{"meetingId":{"type":"string"},"className":{"type":"string"},"date":{"type":"string","pattern":"^\\d{4}-\\d{2}-\\d{2}$"},"startTime":{"type":["string","null"]},"location":{"type":["string","null"]}},"required":["meetingId","className","date","startTime","location"],"additionalProperties":false}}},"required":["date","theme","id","swap","alternatives"],"additionalProperties":false}},"events":{"type":"array","items":{"type":"object","properties":{"kind":{"type":"string","enum":["mass","parents","feast","break","vacation","retreat","sacrament","training","team","outing","charity","other"]},"title":{"type":"string"},"from":{"type":"string","pattern":"^\\d{4}-\\d{2}-\\d{2}$"},"to":{"type":"string","pattern":"^\\d{4}-\\d{2}-\\d{2}$"},"noClasses":{"type":"boolean"}},"required":["kind","title","from","to","noClasses"],"additionalProperties":false}},"attendance":{"type":"object","properties":{"present":{"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991},"late":{"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991},"absent":{"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991},"justified":{"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991},"total":{"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991},"rate":{"type":["number","null"]}},"required":["present","late","absent","justified","total","rate"],"additionalProperties":false},"recent":{"type":"array","items":{"type":"object","properties":{"date":{"type":"string","pattern":"^\\d{4}-\\d{2}-\\d{2}$"},"status":{"type":"string","enum":["present","late","absent","justified"]},"elsewhere":{"anyOf":[{"type":"object","properties":{"className":{"type":"string"},"date":{"type":"string"}},"required":["className","date"],"additionalProperties":false},{"type":"null"}]}},"required":["date","status","elsewhere"],"additionalProperties":false}},"activities":{"type":"array","items":{"type":"object","properties":{"id":{"type":"string"},"title":{"type":"string"},"description":{"type":["string","null"]},"dueDate":{"anyOf":[{"type":"string","pattern":"^\\d{4}-\\d{2}-\\d{2}$"},{"type":"null"}]},"done":{"type":"boolean"}},"required":["id","title","description","dueDate","done"],"additionalProperties":false}},"sacraments":{"type":"array","items":{"type":"object","properties":{"sacrament":{"type":"string","enum":["baptism","reconciliation","first_communion","confirmation"]},"status":{"type":"string","enum":["pending","scheduled","done"]},"date":{"anyOf":[{"type":"string","pattern":"^\\d{4}-\\d{2}-\\d{2}$"},{"type":"null"}]},"place":{"type":["string","null"]}},"required":["sacrament","status","date","place"],"additionalProperties":false}}},"required":["orgName","erasureRequestedAt","child","next","events","attendance","recent","activities","sacraments"],"additionalProperties":false}}}}},"x-mcp-tool":false}},"/v1/family/{token}/swaps":{"post":{"operationId":"catechesis.familySwap","summary":"The family moves the child to the same session of another class of the folder","tags":["catechesis"],"security":[],"parameters":[{"name":"token","in":"path","required":true,"schema":{"type":"string","minLength":20,"maxLength":100}}],"responses":{"200":{"description":"OK","content":{"application/json":{"schema":{"$schema":"https://json-schema.org/draft/2020-12/schema","type":"object","properties":{"meetingId":{"type":"string"},"className":{"type":"string"},"date":{"type":"string","pattern":"^\\d{4}-\\d{2}-\\d{2}$"},"startTime":{"type":["string","null"]},"location":{"type":["string","null"]},"id":{"type":"string"},"canUndo":{"type":"boolean"}},"required":["meetingId","className","date","startTime","location","id","canUndo"],"additionalProperties":false}}}}},"x-mcp-tool":false,"requestBody":{"content":{"application/json":{"schema":{"$schema":"https://json-schema.org/draft/2020-12/schema","type":"object","properties":{"token":{"type":"string","minLength":20,"maxLength":100},"fromMeetingId":{"type":"string"},"toMeetingId":{"type":"string"},"today":{"type":"string","pattern":"^\\d{4}-\\d{2}-\\d{2}$"}},"required":["token","fromMeetingId","toMeetingId"]}}}}}},"/v1/family/{token}/swaps/{swapId}":{"delete":{"operationId":"catechesis.familyUndoSwap","summary":"The family undoes the change of session day","tags":["catechesis"],"security":[],"parameters":[{"name":"token","in":"path","required":true,"schema":{"type":"string","minLength":20,"maxLength":100}},{"name":"swapId","in":"path","required":true,"schema":{"type":"string"}}],"responses":{"200":{"description":"OK","content":{"application/json":{"schema":{"$schema":"https://json-schema.org/draft/2020-12/schema","type":"object","properties":{"ok":{"type":"boolean","const":true}},"required":["ok"],"additionalProperties":false}}}}},"x-mcp-tool":false,"requestBody":{"content":{"application/json":{"schema":{"$schema":"https://json-schema.org/draft/2020-12/schema","type":"object","properties":{"token":{"type":"string","minLength":20,"maxLength":100},"swapId":{"type":"string"},"today":{"type":"string","pattern":"^\\d{4}-\\d{2}-\\d{2}$"}},"required":["token","swapId"]}}}}}},"/v1/class-groups/{groupId}/plan":{"get":{"operationId":"catechesis.groupPlan","summary":"The shared plan of a class folder: each topic with the date of each class","tags":["catechesis"],"security":[{"bearer":[]}],"parameters":[{"name":"groupId","in":"path","required":true,"schema":{"type":"string"}},{"name":"from","in":"query","required":false,"schema":{"type":"string","pattern":"^\\d{4}-\\d{2}-\\d{2}$"}}],"responses":{"200":{"description":"OK","content":{"application/json":{"schema":{"$schema":"https://json-schema.org/draft/2020-12/schema","type":"object","properties":{"group":{"type":"object","properties":{"id":{"type":"string"},"name":{"type":"string"}},"required":["id","name"],"additionalProperties":false},"canEdit":{"type":"boolean"},"classes":{"type":"array","items":{"type":"object","properties":{"id":{"type":"string"},"name":{"type":"string"},"weekday":{"anyOf":[{"type":"integer","minimum":0,"maximum":6},{"type":"null"}]}},"required":["id","name","weekday"],"additionalProperties":false}},"topics":{"type":"array","items":{"type":"object","properties":{"id":{"type":"string"},"title":{"type":"string"},"outline":{"type":["string","null"]},"weekOf":{"type":"string","pattern":"^\\d{4}-\\d{2}-\\d{2}$"},"meetings":{"type":"array","items":{"type":"object","properties":{"meetingId":{"type":"string"},"classId":{"type":"string"},"date":{"type":"string","pattern":"^\\d{4}-\\d{2}-\\d{2}$"},"status":{"type":"string","enum":["scheduled","completed","cancelled"]},"theme":{"type":["string","null"]},"outside":{"type":"boolean"}},"required":["meetingId","classId","date","status","theme","outside"],"additionalProperties":false}}},"required":["id","title","outline","weekOf","meetings"],"additionalProperties":false}},"suggestions":{"type":"array","items":{"type":"object","properties":{"title":{"type":"string"},"meetings":{"type":"array","items":{"type":"object","properties":{"meetingId":{"type":"string"},"classId":{"type":"string"},"date":{"type":"string","pattern":"^\\d{4}-\\d{2}-\\d{2}$"},"status":{"type":"string","enum":["scheduled","completed","cancelled"]},"theme":{"type":["string","null"]}},"required":["meetingId","classId","date","status","theme"],"additionalProperties":false}}},"required":["title","meetings"],"additionalProperties":false}}},"required":["group","canEdit","classes","topics","suggestions"],"additionalProperties":false}}}}},"x-mcp-tool":true},"post":{"operationId":"catechesis.planGroup","summary":"Plans a sequence of topics for every class of a folder, each on its own weekday","tags":["catechesis"],"security":[{"bearer":[]}],"parameters":[{"name":"groupId","in":"path","required":true,"schema":{"type":"string"}}],"responses":{"200":{"description":"OK","content":{"application/json":{"schema":{"$schema":"https://json-schema.org/draft/2020-12/schema","type":"object","properties":{"topics":{"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991},"created":{"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991},"updated":{"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991},"skipped":{"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991}},"required":["topics","created","updated","skipped"],"additionalProperties":false}}}}},"x-mcp-tool":false,"requestBody":{"content":{"application/json":{"schema":{"$schema":"https://json-schema.org/draft/2020-12/schema","type":"object","properties":{"groupId":{"type":"string"},"classId":{"type":"string"},"items":{"minItems":1,"maxItems":60,"type":"array","items":{"type":"object","properties":{"date":{"type":"string","pattern":"^\\d{4}-\\d{2}-\\d{2}$"},"theme":{"type":"string","minLength":1,"maxLength":200}},"required":["date","theme"]}},"weekStart":{"type":"integer","minimum":0,"maximum":6}},"required":["groupId","classId","items"]}}}}}},"/v1/class-groups/{groupId}/topics":{"post":{"operationId":"catechesis.createGroupTopic","summary":"Creates a folder topic linking one session of each class","tags":["catechesis"],"security":[{"bearer":[]}],"parameters":[{"name":"groupId","in":"path","required":true,"schema":{"type":"string"}}],"responses":{"200":{"description":"OK","content":{"application/json":{"schema":{"$schema":"https://json-schema.org/draft/2020-12/schema","type":"object","properties":{"id":{"type":"string"},"title":{"type":"string"},"outline":{"type":["string","null"]},"weekOf":{"type":"string","pattern":"^\\d{4}-\\d{2}-\\d{2}$"},"meetings":{"type":"array","items":{"type":"object","properties":{"meetingId":{"type":"string"},"classId":{"type":"string"},"date":{"type":"string","pattern":"^\\d{4}-\\d{2}-\\d{2}$"},"status":{"type":"string","enum":["scheduled","completed","cancelled"]},"theme":{"type":["string","null"]},"outside":{"type":"boolean"}},"required":["meetingId","classId","date","status","theme","outside"],"additionalProperties":false}}},"required":["id","title","outline","weekOf","meetings"],"additionalProperties":false}}}}},"x-mcp-tool":false,"requestBody":{"content":{"application/json":{"schema":{"$schema":"https://json-schema.org/draft/2020-12/schema","type":"object","properties":{"groupId":{"type":"string"},"title":{"type":"string","minLength":1,"maxLength":200},"outline":{"type":"string","maxLength":20000},"meetingIds":{"minItems":1,"maxItems":60,"type":"array","items":{"type":"string"}},"weekStart":{"type":"integer","minimum":0,"maximum":6}},"required":["groupId","title","meetingIds"]}}}}}},"/v1/group-topics/{topicId}":{"patch":{"operationId":"catechesis.updateGroupTopic","summary":"Edits a folder topic (title, outline, linked sessions)","tags":["catechesis"],"security":[{"bearer":[]}],"parameters":[{"name":"topicId","in":"path","required":true,"schema":{"type":"string"}}],"responses":{"200":{"description":"OK","content":{"application/json":{"schema":{"$schema":"https://json-schema.org/draft/2020-12/schema","type":"object","properties":{"id":{"type":"string"},"title":{"type":"string"},"outline":{"type":["string","null"]},"weekOf":{"type":"string","pattern":"^\\d{4}-\\d{2}-\\d{2}$"},"meetings":{"type":"array","items":{"type":"object","properties":{"meetingId":{"type":"string"},"classId":{"type":"string"},"date":{"type":"string","pattern":"^\\d{4}-\\d{2}-\\d{2}$"},"status":{"type":"string","enum":["scheduled","completed","cancelled"]},"theme":{"type":["string","null"]},"outside":{"type":"boolean"}},"required":["meetingId","classId","date","status","theme","outside"],"additionalProperties":false}}},"required":["id","title","outline","weekOf","meetings"],"additionalProperties":false}}}}},"x-mcp-tool":false,"requestBody":{"content":{"application/json":{"schema":{"$schema":"https://json-schema.org/draft/2020-12/schema","type":"object","properties":{"topicId":{"type":"string"},"title":{"type":"string","minLength":1,"maxLength":200},"outline":{"anyOf":[{"type":"string","maxLength":20000},{"type":"null"}]},"meetingIds":{"maxItems":60,"type":"array","items":{"type":"string"}}},"required":["topicId"]}}}}},"delete":{"operationId":"catechesis.deleteGroupTopic","summary":"Deletes a folder topic; the sessions stay","tags":["catechesis"],"security":[{"bearer":[]}],"parameters":[{"name":"topicId","in":"path","required":true,"schema":{"type":"string"}}],"responses":{"200":{"description":"OK","content":{"application/json":{"schema":{"$schema":"https://json-schema.org/draft/2020-12/schema","type":"object","properties":{"ok":{"type":"boolean","const":true}},"required":["ok"],"additionalProperties":false}}}}},"x-mcp-tool":false,"requestBody":{"content":{"application/json":{"schema":{"$schema":"https://json-schema.org/draft/2020-12/schema","type":"object","properties":{"topicId":{"type":"string"}},"required":["topicId"]}}}}}},"/v1/ai":{"get":{"operationId":"catechesis.aiStatus","summary":"Whether AI is available and how many credits are left this month","tags":["catechesis"],"security":[{"bearer":[]}],"parameters":[],"responses":{"200":{"description":"OK","content":{"application/json":{"schema":{"$schema":"https://json-schema.org/draft/2020-12/schema","type":"object","properties":{"available":{"type":"boolean"},"voice":{"type":"boolean"},"planImport":{"type":"boolean"},"limit":{"anyOf":[{"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991},{"type":"null"}]},"used":{"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991}},"required":["available","voice","planImport","limit","used"],"additionalProperties":false}}}}},"x-mcp-tool":false}},"/v1/ai/drafts":{"post":{"operationId":"catechesis.aiDraft","summary":"Uses AI to suggest a session outline or an activity (the person reviews it before using)","tags":["catechesis"],"security":[{"bearer":[]}],"parameters":[],"responses":{"200":{"description":"OK","content":{"application/json":{"schema":{"$schema":"https://json-schema.org/draft/2020-12/schema","type":"object","properties":{"id":{"type":"string"},"text":{"type":"string"},"title":{"type":["string","null"]}},"required":["id","text","title"],"additionalProperties":false}}}}},"x-mcp-tool":false,"requestBody":{"content":{"application/json":{"schema":{"$schema":"https://json-schema.org/draft/2020-12/schema","type":"object","properties":{"kind":{"type":"string","enum":["meeting","activity"]},"classId":{"type":"string"},"theme":{"type":"string","minLength":2,"maxLength":200},"meetingId":{"type":"string"},"hint":{"type":"string","maxLength":500}},"required":["kind","classId","theme"]}}}}}},"/v1/meetings/{meetingId}/voice-diary":{"post":{"operationId":"catechesis.voiceDiary","summary":"Sends a short voice note about a session to be transcribed and split into notes per student in the background (the person reviews it later; nothing is saved as notes)","tags":["catechesis"],"security":[{"bearer":[]}],"parameters":[{"name":"meetingId","in":"path","required":true,"schema":{"type":"string"}}],"responses":{"200":{"description":"OK","content":{"application/json":{"schema":{"$schema":"https://json-schema.org/draft/2020-12/schema","type":"object","properties":{"draftId":{"type":"string"},"status":{"type":"string","const":"processing"}},"required":["draftId","status"],"additionalProperties":false}}}}},"x-mcp-tool":false,"requestBody":{"content":{"application/json":{"schema":{"$schema":"https://json-schema.org/draft/2020-12/schema","type":"object","properties":{"meetingId":{"type":"string"},"audio":{"type":"string","minLength":100,"maxLength":4000000},"mime":{"type":"string","maxLength":80}},"required":["meetingId","audio","mime"]}}}}}},"/v1/voice-drafts":{"get":{"operationId":"catechesis.listVoiceDrafts","summary":"The person's voice diary drafts waiting for review (processing, ready or failed), newest first","tags":["catechesis"],"security":[{"bearer":[]}],"parameters":[],"responses":{"200":{"description":"OK","content":{"application/json":{"schema":{"$schema":"https://json-schema.org/draft/2020-12/schema","type":"object","properties":{"items":{"type":"array","items":{"type":"object","properties":{"id":{"type":"string"},"meetingId":{"type":"string"},"classId":{"type":"string"},"className":{"type":"string"},"date":{"type":"string","pattern":"^\\d{4}-\\d{2}-\\d{2}$"},"theme":{"type":["string","null"]},"status":{"type":"string","enum":["processing","ready","failed"]},"error":{"type":["string","null"]},"createdAt":{"type":"string"},"transcript":{"type":["string","null"]},"meeting":{"type":["string","null"]},"notes":{"type":"array","items":{"type":"object","properties":{"catechumenId":{"type":"string"},"fullName":{"type":"string"},"text":{"type":"string"}},"required":["catechumenId","fullName","text"],"additionalProperties":false}}},"required":["id","meetingId","classId","className","date","theme","status","error","createdAt","transcript","meeting","notes"],"additionalProperties":false}}},"required":["items"],"additionalProperties":false}}}}},"x-mcp-tool":false}},"/v1/voice-drafts/{draftId}":{"delete":{"operationId":"catechesis.discardVoiceDraft","summary":"Removes a voice diary draft (after saving the reviewed notes, or to drop it)","tags":["catechesis"],"security":[{"bearer":[]}],"parameters":[{"name":"draftId","in":"path","required":true,"schema":{"type":"string"}}],"responses":{"200":{"description":"OK","content":{"application/json":{"schema":{"$schema":"https://json-schema.org/draft/2020-12/schema","type":"object","properties":{"ok":{"type":"boolean","const":true}},"required":["ok"],"additionalProperties":false}}}}},"x-mcp-tool":false,"requestBody":{"content":{"application/json":{"schema":{"$schema":"https://json-schema.org/draft/2020-12/schema","type":"object","properties":{"draftId":{"type":"string"}},"required":["draftId"]}}}}}},"/v1/ai/drafts/{draftId}/accept":{"post":{"operationId":"catechesis.aiAccept","summary":"Records that the AI suggestion was used (adoption metric)","tags":["catechesis"],"security":[{"bearer":[]}],"parameters":[{"name":"draftId","in":"path","required":true,"schema":{"type":"string"}}],"responses":{"200":{"description":"OK","content":{"application/json":{"schema":{"$schema":"https://json-schema.org/draft/2020-12/schema","type":"object","properties":{"ok":{"type":"boolean","const":true}},"required":["ok"],"additionalProperties":false}}}}},"x-mcp-tool":false,"requestBody":{"content":{"application/json":{"schema":{"$schema":"https://json-schema.org/draft/2020-12/schema","type":"object","properties":{"draftId":{"type":"string"}},"required":["draftId"]}}}}}},"/v1/calendar/import/preview":{"post":{"operationId":"catechesis.importPlanPreview","summary":"Reads an existing catechesis plan (text, spreadsheet, PDF or photo) with AI and proposes calendar items with their conflicts, without saving","tags":["catechesis"],"security":[{"bearer":[]}],"parameters":[],"responses":{"200":{"description":"OK","content":{"application/json":{"schema":{"$schema":"https://json-schema.org/draft/2020-12/schema","type":"object","properties":{"generationId":{"type":"string"},"items":{"type":"array","items":{"type":"object","properties":{"ref":{"type":"string"},"type":{"type":"string","enum":["meeting","event"]},"kind":{"anyOf":[{"type":"string","enum":["mass","parents","feast","break","vacation","retreat","sacrament","training","team","outing","charity","other"]},{"type":"null"}]},"title":{"type":"string"},"from":{"type":"string","pattern":"^\\d{4}-\\d{2}-\\d{2}$"},"to":{"type":"string","pattern":"^\\d{4}-\\d{2}-\\d{2}$"},"classId":{"type":["string","null"]},"classText":{"type":["string","null"]},"noClasses":{"type":"boolean"},"notes":{"type":["string","null"]},"outline":{"type":["string","null"]},"guessed":{"type":"boolean"},"groupId":{"type":["string","null"]},"topic":{"anyOf":[{"type":"object","properties":{"key":{"type":"string"},"weekOf":{"type":"string","pattern":"^\\d{4}-\\d{2}-\\d{2}$"}},"required":["key","weekOf"],"additionalProperties":false},{"type":"null"}]},"conflicts":{"type":"array","items":{"type":"object","properties":{"kind":{"type":"string","enum":["feast","holiday","no_classes","meeting_exists","event_exists","duplicate","weekday","past","no_class","no_access"]},"name":{"type":["string","null"]},"existing":{"anyOf":[{"type":"object","properties":{"id":{"type":"string"},"title":{"type":["string","null"]},"editable":{"type":"boolean"},"cancelled":{"type":"boolean"},"hasOutline":{"type":"boolean"}},"required":["id","title","editable","cancelled","hasOutline"],"additionalProperties":false},{"type":"null"}]}},"required":["kind","name","existing"],"additionalProperties":false}},"suggestion":{"anyOf":[{"type":"string","pattern":"^\\d{4}-\\d{2}-\\d{2}$"},{"type":"null"}]}},"required":["ref","type","kind","title","from","to","classId","classText","noClasses","notes","outline","guessed","groupId","topic","conflicts","suggestion"],"additionalProperties":false}},"message":{"type":["string","null"]},"classes":{"type":"array","items":{"type":"object","properties":{"id":{"type":"string"},"name":{"type":"string"},"weekday":{"anyOf":[{"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991},{"type":"null"}]}},"required":["id","name","weekday"],"additionalProperties":false}}},"required":["generationId","items","message","classes"],"additionalProperties":false}}}}},"x-mcp-tool":false,"requestBody":{"content":{"application/json":{"schema":{"$schema":"https://json-schema.org/draft/2020-12/schema","type":"object","properties":{"text":{"type":"string","maxLength":200000},"files":{"maxItems":6,"type":"array","items":{"type":"object","properties":{"name":{"type":"string","minLength":1,"maxLength":200},"mime":{"type":"string","enum":["image/jpeg","image/png","image/webp","image/gif","application/pdf"]},"data":{"type":"string","minLength":8,"maxLength":15000000}},"required":["name","mime","data"]}},"hint":{"type":"string","maxLength":500},"groupId":{"type":"string"},"weekStart":{"type":"integer","minimum":0,"maximum":6}}}}}}}},"/v1/calendar/import":{"post":{"operationId":"catechesis.importPlanApply","summary":"Saves the reviewed items of an imported plan to the calendar","tags":["catechesis"],"security":[{"bearer":[]}],"parameters":[],"responses":{"200":{"description":"OK","content":{"application/json":{"schema":{"$schema":"https://json-schema.org/draft/2020-12/schema","type":"object","properties":{"events":{"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991},"meetings":{"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991},"merged":{"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991},"skipped":{"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991},"outlines":{"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991}},"required":["events","meetings","merged","skipped","outlines"],"additionalProperties":false}}}}},"x-mcp-tool":false,"requestBody":{"content":{"application/json":{"schema":{"$schema":"https://json-schema.org/draft/2020-12/schema","type":"object","properties":{"generationId":{"type":"string"},"items":{"minItems":1,"maxItems":1200,"type":"array","items":{"type":"object","properties":{"type":{"type":"string","enum":["meeting","event"]},"kind":{"type":"string","enum":["mass","parents","feast","break","vacation","retreat","sacrament","training","team","outing","charity","other"]},"title":{"type":"string","minLength":1,"maxLength":200},"from":{"type":"string","pattern":"^\\d{4}-\\d{2}-\\d{2}$"},"to":{"type":"string","pattern":"^\\d{4}-\\d{2}-\\d{2}$"},"classId":{"type":["string","null"]},"noClasses":{"type":"boolean"},"notes":{"type":"string","maxLength":2000},"mergeWith":{"type":"string"},"outline":{"type":"string","maxLength":20000},"groupId":{"type":"string"},"topic":{"type":"object","properties":{"key":{"type":"string","maxLength":20},"weekOf":{"type":"string","pattern":"^\\d{4}-\\d{2}-\\d{2}$"}},"required":["key","weekOf"]}},"required":["type","title","from","to"]}}},"required":["items"]}}}}}},"/v1/catechumens/{catechumenId}/pastoral-notes":{"get":{"operationId":"catechesis.listPastoralNotes","summary":"The student's pastoral notes (most recent first)","tags":["catechesis"],"security":[{"bearer":[]}],"parameters":[{"name":"catechumenId","in":"path","required":true,"schema":{"type":"string"}}],"responses":{"200":{"description":"OK","content":{"application/json":{"schema":{"$schema":"https://json-schema.org/draft/2020-12/schema","type":"object","properties":{"items":{"type":"array","items":{"type":"object","properties":{"id":{"type":"string"},"date":{"type":"string","pattern":"^\\d{4}-\\d{2}-\\d{2}$"},"text":{"type":"string"},"authorName":{"type":"string"},"createdAt":{"type":"string"},"edited":{"type":"boolean"},"canEdit":{"type":"boolean"}},"required":["id","date","text","authorName","createdAt","edited","canEdit"],"additionalProperties":false}}},"required":["items"],"additionalProperties":false}}}}},"x-mcp-tool":false},"post":{"operationId":"catechesis.addPastoralNote","summary":"Adds a pastoral note","tags":["catechesis"],"security":[{"bearer":[]}],"parameters":[{"name":"catechumenId","in":"path","required":true,"schema":{"type":"string"}}],"responses":{"200":{"description":"OK","content":{"application/json":{"schema":{"$schema":"https://json-schema.org/draft/2020-12/schema","type":"object","properties":{"id":{"type":"string"},"date":{"type":"string","pattern":"^\\d{4}-\\d{2}-\\d{2}$"},"text":{"type":"string"},"authorName":{"type":"string"},"createdAt":{"type":"string"},"edited":{"type":"boolean"},"canEdit":{"type":"boolean"}},"required":["id","date","text","authorName","createdAt","edited","canEdit"],"additionalProperties":false}}}}},"x-mcp-tool":false,"requestBody":{"content":{"application/json":{"schema":{"$schema":"https://json-schema.org/draft/2020-12/schema","type":"object","properties":{"catechumenId":{"type":"string"},"text":{"type":"string","minLength":2,"maxLength":4000},"date":{"type":"string","pattern":"^\\d{4}-\\d{2}-\\d{2}$"}},"required":["catechumenId","text"]}}}}}},"/v1/pastoral-notes/{noteId}":{"patch":{"operationId":"catechesis.updatePastoralNote","summary":"Edits a pastoral note","tags":["catechesis"],"security":[{"bearer":[]}],"parameters":[{"name":"noteId","in":"path","required":true,"schema":{"type":"string"}}],"responses":{"200":{"description":"OK","content":{"application/json":{"schema":{"$schema":"https://json-schema.org/draft/2020-12/schema","type":"object","properties":{"id":{"type":"string"},"date":{"type":"string","pattern":"^\\d{4}-\\d{2}-\\d{2}$"},"text":{"type":"string"},"authorName":{"type":"string"},"createdAt":{"type":"string"},"edited":{"type":"boolean"},"canEdit":{"type":"boolean"}},"required":["id","date","text","authorName","createdAt","edited","canEdit"],"additionalProperties":false}}}}},"x-mcp-tool":false,"requestBody":{"content":{"application/json":{"schema":{"$schema":"https://json-schema.org/draft/2020-12/schema","type":"object","properties":{"noteId":{"type":"string"},"text":{"type":"string","minLength":2,"maxLength":4000},"date":{"type":"string","pattern":"^\\d{4}-\\d{2}-\\d{2}$"}},"required":["noteId"]}}}}},"delete":{"operationId":"catechesis.deletePastoralNote","summary":"Deletes a pastoral note","tags":["catechesis"],"security":[{"bearer":[]}],"parameters":[{"name":"noteId","in":"path","required":true,"schema":{"type":"string"}}],"responses":{"200":{"description":"OK","content":{"application/json":{"schema":{"$schema":"https://json-schema.org/draft/2020-12/schema","type":"object","properties":{"ok":{"type":"boolean","const":true}},"required":["ok"],"additionalProperties":false}}}}},"x-mcp-tool":false,"requestBody":{"content":{"application/json":{"schema":{"$schema":"https://json-schema.org/draft/2020-12/schema","type":"object","properties":{"noteId":{"type":"string"}},"required":["noteId"]}}}}}},"/v1/family/{token}/erasure":{"post":{"operationId":"catechesis.requestFamilyErasure","summary":"The family asks the team to delete the student's data (from the family portal)","tags":["catechesis"],"security":[],"parameters":[{"name":"token","in":"path","required":true,"schema":{"type":"string","minLength":20,"maxLength":100}}],"responses":{"200":{"description":"OK","content":{"application/json":{"schema":{"$schema":"https://json-schema.org/draft/2020-12/schema","type":"object","properties":{"requestedAt":{"type":"string"}},"required":["requestedAt"],"additionalProperties":false}}}}},"x-mcp-tool":false,"requestBody":{"content":{"application/json":{"schema":{"$schema":"https://json-schema.org/draft/2020-12/schema","type":"object","properties":{"token":{"type":"string","minLength":20,"maxLength":100},"message":{"type":"string","maxLength":1000}},"required":["token"]}}}}}},"/v1/erasure-requests":{"get":{"operationId":"catechesis.listErasureRequests","summary":"Data deletion requests from families (open first)","tags":["catechesis"],"security":[{"bearer":[]}],"parameters":[],"responses":{"200":{"description":"OK","content":{"application/json":{"schema":{"$schema":"https://json-schema.org/draft/2020-12/schema","type":"object","properties":{"items":{"type":"array","items":{"type":"object","properties":{"id":{"type":"string"},"catechumenId":{"type":"string"},"fullName":{"type":["string","null"]},"className":{"type":["string","null"]},"message":{"type":["string","null"]},"createdAt":{"type":"string"},"status":{"type":"string","enum":["open","erased","dismissed"]},"resolvedAt":{"type":["string","null"]},"note":{"type":["string","null"]}},"required":["id","catechumenId","fullName","className","message","createdAt","status","resolvedAt","note"],"additionalProperties":false}}},"required":["items"],"additionalProperties":false}}}}},"x-mcp-tool":false}},"/v1/erasure-requests/{requestId}":{"post":{"operationId":"catechesis.resolveErasureRequest","summary":"Answers a family's deletion request: delete the student permanently or decline with a reason","tags":["catechesis"],"security":[{"bearer":[]}],"parameters":[{"name":"requestId","in":"path","required":true,"schema":{"type":"string"}}],"responses":{"200":{"description":"OK","content":{"application/json":{"schema":{"$schema":"https://json-schema.org/draft/2020-12/schema","type":"object","properties":{"ok":{"type":"boolean","const":true}},"required":["ok"],"additionalProperties":false}}}}},"x-mcp-tool":false,"requestBody":{"content":{"application/json":{"schema":{"$schema":"https://json-schema.org/draft/2020-12/schema","type":"object","properties":{"requestId":{"type":"string"},"action":{"type":"string","enum":["erase","dismiss"]},"note":{"type":"string","maxLength":1000}},"required":["requestId","action"]}}}}}},"/v1/diocese/metrics":{"get":{"operationId":"catechesis.dioceseMetrics","summary":"Diocese dashboard: catechesis figures for the period, overall, by region and by linked parish (numbers only, no students' data)","tags":["catechesis"],"security":[{"bearer":[]}],"parameters":[{"name":"from","in":"query","required":true,"schema":{"type":"string","pattern":"^\\d{4}-\\d{2}-\\d{2}$"}},{"name":"to","in":"query","required":true,"schema":{"type":"string","pattern":"^\\d{4}-\\d{2}-\\d{2}$"}}],"responses":{"200":{"description":"OK","content":{"application/json":{"schema":{"$schema":"https://json-schema.org/draft/2020-12/schema","type":"object","properties":{"totals":{"type":"object","properties":{"classes":{"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991},"catechists":{"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991},"enrolled":{"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991},"byStage":{"type":"object","propertyNames":{"type":"string"},"additionalProperties":{"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991}},"meetings":{"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991},"present":{"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991},"late":{"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991},"absent":{"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991},"justified":{"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991},"rate":{"type":["number","null"]},"prevRate":{"type":["number","null"]},"atRisk":{"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991},"followUp":{"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991},"staleClasses":{"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991},"sacraments":{"type":"object","propertyNames":{"type":"string"},"additionalProperties":{"type":"object","properties":{"pending":{"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991},"scheduled":{"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991},"done":{"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991}},"required":["pending","scheduled","done"],"additionalProperties":false}},"activities":{"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991},"handedIn":{"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991},"familyLinks":{"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991},"familyOpened":{"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991}},"required":["classes","catechists","enrolled","byStage","meetings","present","late","absent","justified","rate","prevRate","atRisk","followUp","staleClasses","sacraments","activities","handedIn","familyLinks","familyOpened"],"additionalProperties":false},"regions":{"type":"array","items":{"type":"object","properties":{"region":{"type":["string","null"]},"parishes":{"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991},"m":{"type":"object","properties":{"classes":{"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991},"catechists":{"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991},"enrolled":{"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991},"byStage":{"type":"object","propertyNames":{"type":"string"},"additionalProperties":{"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991}},"meetings":{"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991},"present":{"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991},"late":{"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991},"absent":{"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991},"justified":{"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991},"rate":{"type":["number","null"]},"prevRate":{"type":["number","null"]},"atRisk":{"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991},"followUp":{"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991},"staleClasses":{"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991},"sacraments":{"type":"object","propertyNames":{"type":"string"},"additionalProperties":{"type":"object","properties":{"pending":{"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991},"scheduled":{"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991},"done":{"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991}},"required":["pending","scheduled","done"],"additionalProperties":false}},"activities":{"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991},"handedIn":{"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991},"familyLinks":{"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991},"familyOpened":{"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991}},"required":["classes","catechists","enrolled","byStage","meetings","present","late","absent","justified","rate","prevRate","atRisk","followUp","staleClasses","sacraments","activities","handedIn","familyLinks","familyOpened"],"additionalProperties":false}},"required":["region","parishes","m"],"additionalProperties":false}},"parishes":{"type":"array","items":{"type":"object","properties":{"orgId":{"type":"string"},"name":{"type":"string"},"region":{"type":["string","null"]},"lastMeeting":{"anyOf":[{"type":"string","pattern":"^\\d{4}-\\d{2}-\\d{2}$"},{"type":"null"}]},"m":{"type":"object","properties":{"classes":{"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991},"catechists":{"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991},"enrolled":{"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991},"byStage":{"type":"object","propertyNames":{"type":"string"},"additionalProperties":{"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991}},"meetings":{"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991},"present":{"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991},"late":{"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991},"absent":{"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991},"justified":{"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991},"rate":{"type":["number","null"]},"prevRate":{"type":["number","null"]},"atRisk":{"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991},"followUp":{"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991},"staleClasses":{"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991},"sacraments":{"type":"object","propertyNames":{"type":"string"},"additionalProperties":{"type":"object","properties":{"pending":{"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991},"scheduled":{"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991},"done":{"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991}},"required":["pending","scheduled","done"],"additionalProperties":false}},"activities":{"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991},"handedIn":{"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991},"familyLinks":{"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991},"familyOpened":{"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991}},"required":["classes","catechists","enrolled","byStage","meetings","present","late","absent","justified","rate","prevRate","atRisk","followUp","staleClasses","sacraments","activities","handedIn","familyLinks","familyOpened"],"additionalProperties":false}},"required":["orgId","name","region","lastMeeting","m"],"additionalProperties":false}},"monthly":{"type":"array","items":{"type":"object","properties":{"month":{"type":"string"},"meetings":{"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991},"present":{"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991},"late":{"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991},"absent":{"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991},"justified":{"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991},"orgId":{"type":"string"}},"required":["month","meetings","present","late","absent","justified","orgId"],"additionalProperties":false}}},"required":["totals","regions","parishes","monthly"],"additionalProperties":false}}}}},"x-mcp-tool":true}},"/v1/diocese/metrics/{orgId}":{"get":{"operationId":"catechesis.dioceseParishMetrics","summary":"Diocese dashboard: one linked parish, class by class (numbers only)","tags":["catechesis"],"security":[{"bearer":[]}],"parameters":[{"name":"orgId","in":"path","required":true,"schema":{"type":"string"}},{"name":"from","in":"query","required":true,"schema":{"type":"string","pattern":"^\\d{4}-\\d{2}-\\d{2}$"}},{"name":"to","in":"query","required":true,"schema":{"type":"string","pattern":"^\\d{4}-\\d{2}-\\d{2}$"}}],"responses":{"200":{"description":"OK","content":{"application/json":{"schema":{"$schema":"https://json-schema.org/draft/2020-12/schema","type":"object","properties":{"orgId":{"type":"string"},"name":{"type":"string"},"region":{"type":["string","null"]},"m":{"type":"object","properties":{"classes":{"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991},"catechists":{"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991},"enrolled":{"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991},"byStage":{"type":"object","propertyNames":{"type":"string"},"additionalProperties":{"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991}},"meetings":{"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991},"present":{"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991},"late":{"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991},"absent":{"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991},"justified":{"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991},"rate":{"type":["number","null"]},"prevRate":{"type":["number","null"]},"atRisk":{"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991},"followUp":{"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991},"staleClasses":{"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991},"sacraments":{"type":"object","propertyNames":{"type":"string"},"additionalProperties":{"type":"object","properties":{"pending":{"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991},"scheduled":{"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991},"done":{"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991}},"required":["pending","scheduled","done"],"additionalProperties":false}},"activities":{"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991},"handedIn":{"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991},"familyLinks":{"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991},"familyOpened":{"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991}},"required":["classes","catechists","enrolled","byStage","meetings","present","late","absent","justified","rate","prevRate","atRisk","followUp","staleClasses","sacraments","activities","handedIn","familyLinks","familyOpened"],"additionalProperties":false},"monthly":{"type":"array","items":{"type":"object","properties":{"month":{"type":"string"},"meetings":{"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991},"present":{"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991},"late":{"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991},"absent":{"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991},"justified":{"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991}},"required":["month","meetings","present","late","absent","justified"],"additionalProperties":false}},"classes":{"type":"array","items":{"type":"object","properties":{"name":{"type":"string"},"stage":{"type":["string","null"]},"lastMeeting":{"anyOf":[{"type":"string","pattern":"^\\d{4}-\\d{2}-\\d{2}$"},{"type":"null"}]},"m":{"type":"object","properties":{"classes":{"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991},"catechists":{"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991},"enrolled":{"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991},"byStage":{"type":"object","propertyNames":{"type":"string"},"additionalProperties":{"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991}},"meetings":{"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991},"present":{"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991},"late":{"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991},"absent":{"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991},"justified":{"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991},"rate":{"type":["number","null"]},"prevRate":{"type":["number","null"]},"atRisk":{"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991},"followUp":{"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991},"staleClasses":{"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991},"sacraments":{"type":"object","propertyNames":{"type":"string"},"additionalProperties":{"type":"object","properties":{"pending":{"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991},"scheduled":{"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991},"done":{"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991}},"required":["pending","scheduled","done"],"additionalProperties":false}},"activities":{"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991},"handedIn":{"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991},"familyLinks":{"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991},"familyOpened":{"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991}},"required":["classes","catechists","enrolled","byStage","meetings","present","late","absent","justified","rate","prevRate","atRisk","followUp","staleClasses","sacraments","activities","handedIn","familyLinks","familyOpened"],"additionalProperties":false}},"required":["name","stage","lastMeeting","m"],"additionalProperties":false}}},"required":["orgId","name","region","m","monthly","classes"],"additionalProperties":false}}}}},"x-mcp-tool":true}},"/v1/confirmations":{"post":{"operationId":"catechesis.requestConfirmation","summary":"Parish: asks the diocese for a Confirmation date (up to 3 suggestions and the expected number of candidates)","tags":["catechesis"],"security":[{"bearer":[]}],"parameters":[],"responses":{"200":{"description":"OK","content":{"application/json":{"schema":{"$schema":"https://json-schema.org/draft/2020-12/schema","type":"object","properties":{"id":{"type":"string"},"orgId":{"type":"string"},"parishName":{"type":"string"},"region":{"type":["string","null"]},"dates":{"type":"array","items":{"type":"string","pattern":"^\\d{4}-\\d{2}-\\d{2}$"}},"expected":{"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991},"notes":{"type":["string","null"]},"status":{"type":"string","enum":["requested","confirmed","cancelled"]},"date":{"anyOf":[{"type":"string","pattern":"^\\d{4}-\\d{2}-\\d{2}$"},{"type":"null"}]},"presider":{"type":["string","null"]},"place":{"type":["string","null"]},"createdAt":{"type":"string"}},"required":["id","orgId","parishName","region","dates","expected","notes","status","date","presider","place","createdAt"],"additionalProperties":false}}}}},"x-mcp-tool":false,"requestBody":{"content":{"application/json":{"schema":{"$schema":"https://json-schema.org/draft/2020-12/schema","type":"object","properties":{"dates":{"minItems":1,"maxItems":3,"type":"array","items":{"type":"string","pattern":"^\\d{4}-\\d{2}-\\d{2}$"}},"expected":{"type":"integer","minimum":1,"maximum":2000},"notes":{"type":"string","maxLength":1000}},"required":["dates","expected"]}}}}},"get":{"operationId":"catechesis.listConfirmations","summary":"Confirmation schedule: the parish's own requests, or, for the diocese, those of its linked parishes","tags":["catechesis"],"security":[{"bearer":[]}],"parameters":[],"responses":{"200":{"description":"OK","content":{"application/json":{"schema":{"$schema":"https://json-schema.org/draft/2020-12/schema","type":"object","properties":{"items":{"type":"array","items":{"type":"object","properties":{"id":{"type":"string"},"orgId":{"type":"string"},"parishName":{"type":"string"},"region":{"type":["string","null"]},"dates":{"type":"array","items":{"type":"string","pattern":"^\\d{4}-\\d{2}-\\d{2}$"}},"expected":{"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991},"notes":{"type":["string","null"]},"status":{"type":"string","enum":["requested","confirmed","cancelled"]},"date":{"anyOf":[{"type":"string","pattern":"^\\d{4}-\\d{2}-\\d{2}$"},{"type":"null"}]},"presider":{"type":["string","null"]},"place":{"type":["string","null"]},"createdAt":{"type":"string"}},"required":["id","orgId","parishName","region","dates","expected","notes","status","date","presider","place","createdAt"],"additionalProperties":false}},"diocese":{"type":["string","null"]}},"required":["items","diocese"],"additionalProperties":false}}}}},"x-mcp-tool":false}},"/v1/confirmations/{requestId}/confirm":{"post":{"operationId":"catechesis.confirmConfirmation","summary":"Diocese: sets the date and who presides over a parish Confirmation","tags":["catechesis"],"security":[{"bearer":[]}],"parameters":[{"name":"requestId","in":"path","required":true,"schema":{"type":"string"}}],"responses":{"200":{"description":"OK","content":{"application/json":{"schema":{"$schema":"https://json-schema.org/draft/2020-12/schema","type":"object","properties":{"id":{"type":"string"},"orgId":{"type":"string"},"parishName":{"type":"string"},"region":{"type":["string","null"]},"dates":{"type":"array","items":{"type":"string","pattern":"^\\d{4}-\\d{2}-\\d{2}$"}},"expected":{"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991},"notes":{"type":["string","null"]},"status":{"type":"string","enum":["requested","confirmed","cancelled"]},"date":{"anyOf":[{"type":"string","pattern":"^\\d{4}-\\d{2}-\\d{2}$"},{"type":"null"}]},"presider":{"type":["string","null"]},"place":{"type":["string","null"]},"createdAt":{"type":"string"}},"required":["id","orgId","parishName","region","dates","expected","notes","status","date","presider","place","createdAt"],"additionalProperties":false}}}}},"x-mcp-tool":false,"requestBody":{"content":{"application/json":{"schema":{"$schema":"https://json-schema.org/draft/2020-12/schema","type":"object","properties":{"requestId":{"type":"string"},"date":{"type":"string","pattern":"^\\d{4}-\\d{2}-\\d{2}$"},"presider":{"type":"string","minLength":2,"maxLength":120},"place":{"type":"string","maxLength":120}},"required":["requestId","date","presider"]}}}}}},"/v1/confirmations/{requestId}/cancel":{"post":{"operationId":"catechesis.cancelConfirmation","summary":"Cancels a Confirmation request (the parish that asked, or the diocese)","tags":["catechesis"],"security":[{"bearer":[]}],"parameters":[{"name":"requestId","in":"path","required":true,"schema":{"type":"string"}}],"responses":{"200":{"description":"OK","content":{"application/json":{"schema":{"$schema":"https://json-schema.org/draft/2020-12/schema","type":"object","properties":{"id":{"type":"string"},"orgId":{"type":"string"},"parishName":{"type":"string"},"region":{"type":["string","null"]},"dates":{"type":"array","items":{"type":"string","pattern":"^\\d{4}-\\d{2}-\\d{2}$"}},"expected":{"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991},"notes":{"type":["string","null"]},"status":{"type":"string","enum":["requested","confirmed","cancelled"]},"date":{"anyOf":[{"type":"string","pattern":"^\\d{4}-\\d{2}-\\d{2}$"},{"type":"null"}]},"presider":{"type":["string","null"]},"place":{"type":["string","null"]},"createdAt":{"type":"string"}},"required":["id","orgId","parishName","region","dates","expected","notes","status","date","presider","place","createdAt"],"additionalProperties":false}}}}},"x-mcp-tool":false,"requestBody":{"content":{"application/json":{"schema":{"$schema":"https://json-schema.org/draft/2020-12/schema","type":"object","properties":{"requestId":{"type":"string"}},"required":["requestId"]}}}}}},"/v1/landing/hit":{"post":{"operationId":"activation.landingHit","summary":"Counts a sales page arrival or free-trial click (anonymous daily totals, no cookies)","tags":["activation"],"security":[],"parameters":[],"responses":{"200":{"description":"OK","content":{"application/json":{"schema":{"$schema":"https://json-schema.org/draft/2020-12/schema","type":"object","properties":{"ok":{"type":"boolean","const":true}},"required":["ok"],"additionalProperties":false}}}}},"x-mcp-tool":false,"requestBody":{"content":{"application/json":{"schema":{"$schema":"https://json-schema.org/draft/2020-12/schema","type":"object","properties":{"event":{"type":"string","enum":["view","cta"]},"page":{"type":"string","maxLength":500},"source":{"type":"string","maxLength":500},"campaign":{"type":"string","maxLength":500},"content":{"type":"string","maxLength":500}},"required":["event","page"]}}}}}},"/v1/activation/intent":{"put":{"operationId":"activation.setIntent","summary":"Sets (or changes) the onboarding goal","tags":["activation"],"security":[{"bearer":[]}],"parameters":[],"responses":{"200":{"description":"OK","content":{"application/json":{"schema":{"$schema":"https://json-schema.org/draft/2020-12/schema","type":"object","properties":{"ok":{"type":"boolean","const":true}},"required":["ok"],"additionalProperties":false}}}}},"x-mcp-tool":false,"requestBody":{"content":{"application/json":{"schema":{"$schema":"https://json-schema.org/draft/2020-12/schema","type":"object","properties":{"intent":{"type":"string","enum":["attendance","organize","explore"]}},"required":["intent"]}}}}}},"/v1/activation/profile":{"put":{"operationId":"activation.saveProfile","summary":"Saves onboarding answers (role, experience, group size, main concerns)","tags":["activation"],"security":[{"bearer":[]}],"parameters":[],"responses":{"200":{"description":"OK","content":{"application/json":{"schema":{"$schema":"https://json-schema.org/draft/2020-12/schema","type":"object","properties":{"ok":{"type":"boolean","const":true}},"required":["ok"],"additionalProperties":false}}}}},"x-mcp-tool":false,"requestBody":{"content":{"application/json":{"schema":{"$schema":"https://json-schema.org/draft/2020-12/schema","type":"object","properties":{"role":{"type":"string","enum":["catechist","coordinator","clergy","other"]},"experience":{"type":"string","enum":["first_year","few_years","many_years"]},"groupSize":{"type":"string","enum":["up_to_10","up_to_20","up_to_40","more"]},"pains":{"maxItems":5,"type":"array","items":{"type":"string","enum":["absences","families","preparing","paperwork","sacraments"]}}}}}}}}},"/v1/activation/track":{"post":{"operationId":"activation.track","summary":"Records a screen milestone the server cannot see (first time only)","tags":["activation"],"security":[{"bearer":[]}],"parameters":[],"responses":{"200":{"description":"OK","content":{"application/json":{"schema":{"$schema":"https://json-schema.org/draft/2020-12/schema","type":"object","properties":{"ok":{"type":"boolean","const":true}},"required":["ok"],"additionalProperties":false}}}}},"x-mcp-tool":false,"requestBody":{"content":{"application/json":{"schema":{"$schema":"https://json-schema.org/draft/2020-12/schema","type":"object","properties":{"key":{"type":"string","enum":["offer.viewed","offer.declined","first_call.saved","first_call.skipped","onboarding.resumed","onboarding.welcome","onboarding.role","onboarding.experience","onboarding.class","onboarding.meeting","onboarding.size","onboarding.pains","onboarding.result","onboarding.people","onboarding.building","onboarding.year","onboarding.first_call","onboarding.reminder","onboarding.commitment","onboarding.first_steps"]}},"required":["key"]}}}}}},"/v1/activation/skip":{"post":{"operationId":"activation.skip","summary":"Skips the first-steps setup and opens the app (first steps stay on the home screen)","tags":["activation"],"security":[{"bearer":[]}],"parameters":[],"responses":{"200":{"description":"OK","content":{"application/json":{"schema":{"$schema":"https://json-schema.org/draft/2020-12/schema","type":"object","properties":{"ok":{"type":"boolean","const":true}},"required":["ok"],"additionalProperties":false}}}}},"x-mcp-tool":false,"requestBody":{"content":{"application/json":{"schema":{"$schema":"https://json-schema.org/draft/2020-12/schema","type":"object","properties":{}}}}}}},"/v1/activation":{"get":{"operationId":"activation.status","summary":"Goal, activation progress and recommended next action","tags":["activation"],"security":[{"bearer":[]}],"parameters":[],"responses":{"200":{"description":"OK","content":{"application/json":{"schema":{"$schema":"https://json-schema.org/draft/2020-12/schema","type":"object","properties":{"intent":{"anyOf":[{"type":"string","enum":["attendance","organize","explore"]},{"type":"null"}]},"demo":{"type":"boolean"},"percent":{"type":"number"},"activated":{"type":"boolean"},"next":{"anyOf":[{"type":"object","properties":{"key":{"type":"string"},"label":{"type":"string"},"done":{"type":"boolean"},"isAha":{"type":"boolean"},"href":{"type":"string"}},"required":["key","label","done","isAha","href"],"additionalProperties":false},{"type":"null"}]},"steps":{"type":"array","items":{"type":"object","properties":{"key":{"type":"string"},"label":{"type":"string"},"done":{"type":"boolean"},"isAha":{"type":"boolean"},"href":{"type":"string"}},"required":["key","label","done","isAha","href"],"additionalProperties":false}},"minutesToValue":{"type":["number","null"]},"skipped":{"type":"boolean"},"onboardingOpen":{"type":"boolean"}},"required":["intent","demo","percent","activated","next","steps","minutesToValue","skipped"],"additionalProperties":false}}}}},"x-mcp-tool":true}},"/v1/documents":{"get":{"operationId":"library.listDocuments","summary":"The team's shared documents and the person's own, newest first, optionally filtered by words","tags":["library"],"security":[{"bearer":[]}],"parameters":[{"name":"q","in":"query","required":false,"schema":{"type":"string","maxLength":120}}],"responses":{"200":{"description":"OK","content":{"application/json":{"schema":{"$schema":"https://json-schema.org/draft/2020-12/schema","type":"object","properties":{"items":{"type":"array","items":{"type":"object","properties":{"id":{"type":"string"},"title":{"type":"string"},"kind":{"type":"string","enum":["file","text"]},"visibility":{"type":"string","enum":["private","team","diocese"]},"official":{"anyOf":[{"type":"object","properties":{"dioceseName":{"type":"string"},"status":{"type":"string","enum":["draft","published","withdrawn"]},"category":{"anyOf":[{"type":"string","enum":["guidelines","itinerary","materials","forms","notices"]},{"type":"null"}]},"audience":{"type":"string","enum":["all","coordination"]},"regions":{"type":"array","items":{"type":"string"}},"publishedAt":{"type":["string","null"]}},"required":["dioceseName","status","category","audience","regions","publishedAt"],"additionalProperties":false},{"type":"null"}]},"fileName":{"type":["string","null"]},"mimeType":{"type":["string","null"]},"size":{"anyOf":[{"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991},{"type":"null"}]},"ownerName":{"type":["string","null"]},"mine":{"type":"boolean"},"canEdit":{"type":"boolean"},"canDelete":{"type":"boolean"},"createdAt":{"type":"string"},"updatedAt":{"type":"string"}},"required":["id","title","kind","visibility","official","fileName","mimeType","size","ownerName","mine","canEdit","canDelete","createdAt","updatedAt"],"additionalProperties":false}},"uploads":{"type":"boolean"},"usedBytes":{"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991},"limitBytes":{"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991},"maxFileBytes":{"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991},"accepted":{"type":"array","items":{"type":"string"}}},"required":["items","uploads","usedBytes","limitBytes","maxFileBytes","accepted"],"additionalProperties":false}}}}},"x-mcp-tool":false},"post":{"operationId":"library.createDocument","summary":"Adds a document to the library: an uploaded file or a text written here","tags":["library"],"security":[{"bearer":[]}],"parameters":[],"responses":{"200":{"description":"OK","content":{"application/json":{"schema":{"$schema":"https://json-schema.org/draft/2020-12/schema","type":"object","properties":{"document":{"type":"object","properties":{"id":{"type":"string"},"title":{"type":"string"},"kind":{"type":"string","enum":["file","text"]},"visibility":{"type":"string","enum":["private","team","diocese"]},"official":{"anyOf":[{"type":"object","properties":{"dioceseName":{"type":"string"},"status":{"type":"string","enum":["draft","published","withdrawn"]},"category":{"anyOf":[{"type":"string","enum":["guidelines","itinerary","materials","forms","notices"]},{"type":"null"}]},"audience":{"type":"string","enum":["all","coordination"]},"regions":{"type":"array","items":{"type":"string"}},"publishedAt":{"type":["string","null"]}},"required":["dioceseName","status","category","audience","regions","publishedAt"],"additionalProperties":false},{"type":"null"}]},"fileName":{"type":["string","null"]},"mimeType":{"type":["string","null"]},"size":{"anyOf":[{"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991},{"type":"null"}]},"ownerName":{"type":["string","null"]},"mine":{"type":"boolean"},"canEdit":{"type":"boolean"},"canDelete":{"type":"boolean"},"createdAt":{"type":"string"},"updatedAt":{"type":"string"}},"required":["id","title","kind","visibility","official","fileName","mimeType","size","ownerName","mine","canEdit","canDelete","createdAt","updatedAt"],"additionalProperties":false}},"required":["document"],"additionalProperties":false}}}}},"x-mcp-tool":false,"requestBody":{"content":{"application/json":{"schema":{"$schema":"https://json-schema.org/draft/2020-12/schema","type":"object","properties":{"title":{"type":"string","minLength":1,"maxLength":160},"visibility":{"default":"private","type":"string","enum":["private","team","diocese"]},"body":{"type":"string","maxLength":100000},"file":{"type":"object","properties":{"name":{"type":"string","minLength":1,"maxLength":200},"data":{"type":"string","minLength":4,"maxLength":13981022}},"required":["name","data"]},"category":{"anyOf":[{"type":"string","enum":["guidelines","itinerary","materials","forms","notices"]},{"type":"null"}]},"audience":{"type":"string","enum":["all","coordination"]},"regions":{"maxItems":50,"type":"array","items":{"type":"string","minLength":1,"maxLength":60}}},"required":["title"]}}}}}},"/v1/documents/{documentId}":{"get":{"operationId":"library.getDocument","summary":"One document: the text, or the file as a data URL","tags":["library"],"security":[{"bearer":[]}],"parameters":[{"name":"documentId","in":"path","required":true,"schema":{"type":"string"}}],"responses":{"200":{"description":"OK","content":{"application/json":{"schema":{"$schema":"https://json-schema.org/draft/2020-12/schema","type":"object","properties":{"document":{"type":"object","properties":{"id":{"type":"string"},"title":{"type":"string"},"kind":{"type":"string","enum":["file","text"]},"visibility":{"type":"string","enum":["private","team","diocese"]},"official":{"anyOf":[{"type":"object","properties":{"dioceseName":{"type":"string"},"status":{"type":"string","enum":["draft","published","withdrawn"]},"category":{"anyOf":[{"type":"string","enum":["guidelines","itinerary","materials","forms","notices"]},{"type":"null"}]},"audience":{"type":"string","enum":["all","coordination"]},"regions":{"type":"array","items":{"type":"string"}},"publishedAt":{"type":["string","null"]}},"required":["dioceseName","status","category","audience","regions","publishedAt"],"additionalProperties":false},{"type":"null"}]},"fileName":{"type":["string","null"]},"mimeType":{"type":["string","null"]},"size":{"anyOf":[{"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991},{"type":"null"}]},"ownerName":{"type":["string","null"]},"mine":{"type":"boolean"},"canEdit":{"type":"boolean"},"canDelete":{"type":"boolean"},"createdAt":{"type":"string"},"updatedAt":{"type":"string"}},"required":["id","title","kind","visibility","official","fileName","mimeType","size","ownerName","mine","canEdit","canDelete","createdAt","updatedAt"],"additionalProperties":false},"body":{"type":["string","null"]},"dataUrl":{"type":["string","null"]}},"required":["document","body","dataUrl"],"additionalProperties":false}}}}},"x-mcp-tool":false},"patch":{"operationId":"library.updateDocument","summary":"Renames a document, changes who sees it, or edits its text (only the person who created it)","tags":["library"],"security":[{"bearer":[]}],"parameters":[{"name":"documentId","in":"path","required":true,"schema":{"type":"string"}}],"responses":{"200":{"description":"OK","content":{"application/json":{"schema":{"$schema":"https://json-schema.org/draft/2020-12/schema","type":"object","properties":{"document":{"type":"object","properties":{"id":{"type":"string"},"title":{"type":"string"},"kind":{"type":"string","enum":["file","text"]},"visibility":{"type":"string","enum":["private","team","diocese"]},"official":{"anyOf":[{"type":"object","properties":{"dioceseName":{"type":"string"},"status":{"type":"string","enum":["draft","published","withdrawn"]},"category":{"anyOf":[{"type":"string","enum":["guidelines","itinerary","materials","forms","notices"]},{"type":"null"}]},"audience":{"type":"string","enum":["all","coordination"]},"regions":{"type":"array","items":{"type":"string"}},"publishedAt":{"type":["string","null"]}},"required":["dioceseName","status","category","audience","regions","publishedAt"],"additionalProperties":false},{"type":"null"}]},"fileName":{"type":["string","null"]},"mimeType":{"type":["string","null"]},"size":{"anyOf":[{"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991},{"type":"null"}]},"ownerName":{"type":["string","null"]},"mine":{"type":"boolean"},"canEdit":{"type":"boolean"},"canDelete":{"type":"boolean"},"createdAt":{"type":"string"},"updatedAt":{"type":"string"}},"required":["id","title","kind","visibility","official","fileName","mimeType","size","ownerName","mine","canEdit","canDelete","createdAt","updatedAt"],"additionalProperties":false}},"required":["document"],"additionalProperties":false}}}}},"x-mcp-tool":false,"requestBody":{"content":{"application/json":{"schema":{"$schema":"https://json-schema.org/draft/2020-12/schema","type":"object","properties":{"documentId":{"type":"string"},"title":{"type":"string","minLength":1,"maxLength":160},"visibility":{"type":"string","enum":["private","team","diocese"]},"body":{"type":"string","maxLength":100000},"category":{"anyOf":[{"type":"string","enum":["guidelines","itinerary","materials","forms","notices"]},{"type":"null"}]},"audience":{"type":"string","enum":["all","coordination"]},"regions":{"maxItems":50,"type":"array","items":{"type":"string","minLength":1,"maxLength":60}}},"required":["documentId"]}}}}},"delete":{"operationId":"library.deleteDocument","summary":"Deletes a document permanently (its author, or a team admin for a shared one)","tags":["library"],"security":[{"bearer":[]}],"parameters":[{"name":"documentId","in":"path","required":true,"schema":{"type":"string"}}],"responses":{"200":{"description":"OK","content":{"application/json":{"schema":{"$schema":"https://json-schema.org/draft/2020-12/schema","type":"object","properties":{"ok":{"type":"boolean","const":true}},"required":["ok"],"additionalProperties":false}}}}},"x-mcp-tool":false,"requestBody":{"content":{"application/json":{"schema":{"$schema":"https://json-schema.org/draft/2020-12/schema","type":"object","properties":{"documentId":{"type":"string"}},"required":["documentId"]}}}}}},"/v1/documents/{documentId}/publish":{"post":{"operationId":"library.publishDocument","summary":"Diocese: publishes an official document to the linked parishes","tags":["library"],"security":[{"bearer":[]}],"parameters":[{"name":"documentId","in":"path","required":true,"schema":{"type":"string"}}],"responses":{"200":{"description":"OK","content":{"application/json":{"schema":{"$schema":"https://json-schema.org/draft/2020-12/schema","type":"object","properties":{"document":{"type":"object","properties":{"id":{"type":"string"},"title":{"type":"string"},"kind":{"type":"string","enum":["file","text"]},"visibility":{"type":"string","enum":["private","team","diocese"]},"official":{"anyOf":[{"type":"object","properties":{"dioceseName":{"type":"string"},"status":{"type":"string","enum":["draft","published","withdrawn"]},"category":{"anyOf":[{"type":"string","enum":["guidelines","itinerary","materials","forms","notices"]},{"type":"null"}]},"audience":{"type":"string","enum":["all","coordination"]},"regions":{"type":"array","items":{"type":"string"}},"publishedAt":{"type":["string","null"]}},"required":["dioceseName","status","category","audience","regions","publishedAt"],"additionalProperties":false},{"type":"null"}]},"fileName":{"type":["string","null"]},"mimeType":{"type":["string","null"]},"size":{"anyOf":[{"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991},{"type":"null"}]},"ownerName":{"type":["string","null"]},"mine":{"type":"boolean"},"canEdit":{"type":"boolean"},"canDelete":{"type":"boolean"},"createdAt":{"type":"string"},"updatedAt":{"type":"string"}},"required":["id","title","kind","visibility","official","fileName","mimeType","size","ownerName","mine","canEdit","canDelete","createdAt","updatedAt"],"additionalProperties":false}},"required":["document"],"additionalProperties":false}}}}},"x-mcp-tool":false,"requestBody":{"content":{"application/json":{"schema":{"$schema":"https://json-schema.org/draft/2020-12/schema","type":"object","properties":{"documentId":{"type":"string"}},"required":["documentId"]}}}}}},"/v1/documents/{documentId}/withdraw":{"post":{"operationId":"library.withdrawDocument","summary":"Diocese: withdraws an official document from the parishes without deleting it","tags":["library"],"security":[{"bearer":[]}],"parameters":[{"name":"documentId","in":"path","required":true,"schema":{"type":"string"}}],"responses":{"200":{"description":"OK","content":{"application/json":{"schema":{"$schema":"https://json-schema.org/draft/2020-12/schema","type":"object","properties":{"document":{"type":"object","properties":{"id":{"type":"string"},"title":{"type":"string"},"kind":{"type":"string","enum":["file","text"]},"visibility":{"type":"string","enum":["private","team","diocese"]},"official":{"anyOf":[{"type":"object","properties":{"dioceseName":{"type":"string"},"status":{"type":"string","enum":["draft","published","withdrawn"]},"category":{"anyOf":[{"type":"string","enum":["guidelines","itinerary","materials","forms","notices"]},{"type":"null"}]},"audience":{"type":"string","enum":["all","coordination"]},"regions":{"type":"array","items":{"type":"string"}},"publishedAt":{"type":["string","null"]}},"required":["dioceseName","status","category","audience","regions","publishedAt"],"additionalProperties":false},{"type":"null"}]},"fileName":{"type":["string","null"]},"mimeType":{"type":["string","null"]},"size":{"anyOf":[{"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991},{"type":"null"}]},"ownerName":{"type":["string","null"]},"mine":{"type":"boolean"},"canEdit":{"type":"boolean"},"canDelete":{"type":"boolean"},"createdAt":{"type":"string"},"updatedAt":{"type":"string"}},"required":["id","title","kind","visibility","official","fileName","mimeType","size","ownerName","mine","canEdit","canDelete","createdAt","updatedAt"],"additionalProperties":false}},"required":["document"],"additionalProperties":false}}}}},"x-mcp-tool":false,"requestBody":{"content":{"application/json":{"schema":{"$schema":"https://json-schema.org/draft/2020-12/schema","type":"object","properties":{"documentId":{"type":"string"}},"required":["documentId"]}}}}}},"/v1/documents/{documentId}/copy":{"post":{"operationId":"library.copyDocument","summary":"Copies an official text from the diocese into the team's library, to adapt","tags":["library"],"security":[{"bearer":[]}],"parameters":[{"name":"documentId","in":"path","required":true,"schema":{"type":"string"}}],"responses":{"200":{"description":"OK","content":{"application/json":{"schema":{"$schema":"https://json-schema.org/draft/2020-12/schema","type":"object","properties":{"document":{"type":"object","properties":{"id":{"type":"string"},"title":{"type":"string"},"kind":{"type":"string","enum":["file","text"]},"visibility":{"type":"string","enum":["private","team","diocese"]},"official":{"anyOf":[{"type":"object","properties":{"dioceseName":{"type":"string"},"status":{"type":"string","enum":["draft","published","withdrawn"]},"category":{"anyOf":[{"type":"string","enum":["guidelines","itinerary","materials","forms","notices"]},{"type":"null"}]},"audience":{"type":"string","enum":["all","coordination"]},"regions":{"type":"array","items":{"type":"string"}},"publishedAt":{"type":["string","null"]}},"required":["dioceseName","status","category","audience","regions","publishedAt"],"additionalProperties":false},{"type":"null"}]},"fileName":{"type":["string","null"]},"mimeType":{"type":["string","null"]},"size":{"anyOf":[{"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991},{"type":"null"}]},"ownerName":{"type":["string","null"]},"mine":{"type":"boolean"},"canEdit":{"type":"boolean"},"canDelete":{"type":"boolean"},"createdAt":{"type":"string"},"updatedAt":{"type":"string"}},"required":["id","title","kind","visibility","official","fileName","mimeType","size","ownerName","mine","canEdit","canDelete","createdAt","updatedAt"],"additionalProperties":false}},"required":["document"],"additionalProperties":false}}}}},"x-mcp-tool":false,"requestBody":{"content":{"application/json":{"schema":{"$schema":"https://json-schema.org/draft/2020-12/schema","type":"object","properties":{"documentId":{"type":"string"}},"required":["documentId"]}}}}}},"/v1/library/diocese-settings":{"get":{"operationId":"library.dioceseSettings","summary":"Which platform reference texts the diocese turned off for its linked parishes","tags":["library"],"security":[{"bearer":[]}],"parameters":[],"responses":{"200":{"description":"OK","content":{"application/json":{"schema":{"$schema":"https://json-schema.org/draft/2020-12/schema","type":"object","properties":{"hidden":{"type":"array","items":{"type":"string","enum":["bible","catechism","directory","patristics"]}},"canEdit":{"type":"boolean"}},"required":["hidden","canEdit"],"additionalProperties":false}}}}},"x-mcp-tool":false},"put":{"operationId":"library.setDioceseSettings","summary":"Turns platform reference texts on or off for the parishes linked to the diocese (diocese admins only)","tags":["library"],"security":[{"bearer":[]}],"parameters":[],"responses":{"200":{"description":"OK","content":{"application/json":{"schema":{"$schema":"https://json-schema.org/draft/2020-12/schema","type":"object","properties":{"hidden":{"type":"array","items":{"type":"string","enum":["bible","catechism","directory","patristics"]}},"canEdit":{"type":"boolean"}},"required":["hidden","canEdit"],"additionalProperties":false}}}}},"x-mcp-tool":false,"requestBody":{"content":{"application/json":{"schema":{"$schema":"https://json-schema.org/draft/2020-12/schema","type":"object","properties":{"hidden":{"maxItems":4,"type":"array","items":{"type":"string","enum":["bible","catechism","directory","patristics"]}}},"required":["hidden"]}}}}}},"/v1/library":{"get":{"operationId":"library.status","summary":"Which reference texts are available, with the source and license of each","tags":["library"],"security":[{"bearer":[]}],"parameters":[],"responses":{"200":{"description":"OK","content":{"application/json":{"schema":{"$schema":"https://json-schema.org/draft/2020-12/schema","type":"object","properties":{"bible":{"type":"object","properties":{"available":{"type":"boolean"},"locale":{"type":"string","enum":["pt-BR","en","es"]},"fallback":{"type":"boolean"},"books":{"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991},"verses":{"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991},"source":{"anyOf":[{"type":"object","properties":{"id":{"type":"string"},"title":{"type":"string"},"license":{"type":"string"},"notes":{"type":["string","null"]}},"required":["id","title","license","notes"],"additionalProperties":false},{"type":"null"}]}},"required":["available","locale","fallback","books","verses","source"],"additionalProperties":false},"catechism":{"type":"object","properties":{"available":{"type":"boolean"},"locale":{"type":"string","enum":["pt-BR","en","es"]},"fallback":{"type":"boolean"},"abbreviation":{"type":"string"},"paragraphs":{"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991},"of":{"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991},"source":{"anyOf":[{"type":"object","properties":{"id":{"type":"string"},"title":{"type":"string"},"license":{"type":"string"},"notes":{"type":["string","null"]}},"required":["id","title","license","notes"],"additionalProperties":false},{"type":"null"}]}},"required":["available","locale","fallback","abbreviation","paragraphs","of","source"],"additionalProperties":false},"directory":{"type":"object","properties":{"available":{"type":"boolean"},"locale":{"type":"string","enum":["pt-BR","en","es"]},"fallback":{"type":"boolean"},"paragraphs":{"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991},"of":{"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991},"source":{"anyOf":[{"type":"object","properties":{"id":{"type":"string"},"title":{"type":"string"},"license":{"type":"string"},"notes":{"type":["string","null"]}},"required":["id","title","license","notes"],"additionalProperties":false},{"type":"null"}]}},"required":["available","locale","fallback","paragraphs","of","source"],"additionalProperties":false},"hidden":{"type":"array","items":{"type":"string","enum":["bible","catechism","directory","patristics"]}},"hiddenBy":{"type":["string","null"]}},"required":["bible","catechism","directory","hidden","hiddenBy"],"additionalProperties":false}}}}},"x-mcp-tool":true}},"/v1/bible/books":{"get":{"operationId":"library.bibleBooks","summary":"Books of the Bible (Catholic canon, 73 books)","tags":["library"],"security":[{"bearer":[]}],"parameters":[],"responses":{"200":{"description":"OK","content":{"application/json":{"schema":{"$schema":"https://json-schema.org/draft/2020-12/schema","type":"object","properties":{"items":{"type":"array","items":{"type":"object","properties":{"position":{"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991},"name":{"type":"string"},"abbreviation":{"type":"string"},"testament":{"type":"string","enum":["OT","NT"]},"chapters":{"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991}},"required":["position","name","abbreviation","testament","chapters"],"additionalProperties":false}}},"required":["items"],"additionalProperties":false}}}}},"x-mcp-tool":true}},"/v1/bible/{book}/{chapter}":{"get":{"operationId":"library.bibleChapter","summary":"One chapter of the Bible","tags":["library"],"security":[{"bearer":[]}],"parameters":[{"name":"book","in":"path","required":true,"schema":{"type":"integer","minimum":1,"maximum":73}},{"name":"chapter","in":"path","required":true,"schema":{"type":"integer","minimum":1,"maximum":9007199254740991}}],"responses":{"200":{"description":"OK","content":{"application/json":{"schema":{"$schema":"https://json-schema.org/draft/2020-12/schema","type":"object","properties":{"locale":{"type":"string","enum":["pt-BR","en","es"]},"book":{"type":"object","properties":{"position":{"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991},"name":{"type":"string"},"abbreviation":{"type":"string"},"chapters":{"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991}},"required":["position","name","abbreviation","chapters"],"additionalProperties":false},"chapter":{"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991},"verses":{"type":"array","items":{"type":"object","properties":{"number":{"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991},"text":{"type":"string"}},"required":["number","text"],"additionalProperties":false}}},"required":["locale","book","chapter","verses"],"additionalProperties":false}}}}},"x-mcp-tool":true}},"/v1/bible/search":{"get":{"operationId":"library.bibleSearch","summary":"Searches the Bible by reference (e.g. \"Jo 3,16\") or by words","tags":["library"],"security":[{"bearer":[]}],"parameters":[{"name":"q","in":"query","required":true,"schema":{"type":"string","minLength":2,"maxLength":120}}],"responses":{"200":{"description":"OK","content":{"application/json":{"schema":{"$schema":"https://json-schema.org/draft/2020-12/schema","type":"object","properties":{"kind":{"type":"string","enum":["reference","text"]},"locale":{"type":"string","enum":["pt-BR","en","es"]},"reference":{"anyOf":[{"type":"object","properties":{"book":{"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991},"bookName":{"type":"string"},"abbreviation":{"type":"string"},"chapter":{"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991},"from":{"anyOf":[{"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991},{"type":"null"}]},"to":{"anyOf":[{"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991},{"type":"null"}]},"label":{"type":"string"}},"required":["book","bookName","abbreviation","chapter","from","to","label"],"additionalProperties":false},{"type":"null"}]},"items":{"type":"array","items":{"type":"object","properties":{"book":{"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991},"bookName":{"type":"string"},"abbreviation":{"type":"string"},"chapter":{"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991},"verse":{"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991},"text":{"type":"string"}},"required":["book","bookName","abbreviation","chapter","verse","text"],"additionalProperties":false}}},"required":["kind","locale","reference","items"],"additionalProperties":false}}}}},"x-mcp-tool":true}},"/v1/catechism":{"get":{"operationId":"library.catechism","summary":"Paragraphs of the Catechism of the Catholic Church starting at a number","tags":["library"],"security":[{"bearer":[]}],"parameters":[{"name":"from","in":"query","required":false,"schema":{"default":1,"type":"integer","minimum":1,"maximum":2865}},{"name":"limit","in":"query","required":false,"schema":{"default":20,"type":"integer","minimum":1,"maximum":50}}],"responses":{"200":{"description":"OK","content":{"application/json":{"schema":{"$schema":"https://json-schema.org/draft/2020-12/schema","type":"object","properties":{"locale":{"type":"string","enum":["pt-BR","en","es"]},"items":{"type":"array","items":{"type":"object","properties":{"number":{"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991},"text":{"type":"string"},"section":{"type":"string"}},"required":["number","text","section"],"additionalProperties":false}},"missing":{"type":"array","items":{"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991}},"next":{"anyOf":[{"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991},{"type":"null"}]},"prev":{"anyOf":[{"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991},{"type":"null"}]}},"required":["locale","items","missing","next","prev"],"additionalProperties":false}}}}},"x-mcp-tool":true}},"/v1/catechism/search":{"get":{"operationId":"library.catechismSearch","summary":"Searches the Catechism by number (e.g. 1213) or by words","tags":["library"],"security":[{"bearer":[]}],"parameters":[{"name":"q","in":"query","required":true,"schema":{"type":"string","minLength":1,"maxLength":120}}],"responses":{"200":{"description":"OK","content":{"application/json":{"schema":{"$schema":"https://json-schema.org/draft/2020-12/schema","type":"object","properties":{"locale":{"type":"string","enum":["pt-BR","en","es"]},"items":{"type":"array","items":{"type":"object","properties":{"number":{"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991},"text":{"type":"string"},"section":{"type":"string"}},"required":["number","text","section"],"additionalProperties":false}}},"required":["locale","items"],"additionalProperties":false}}}}},"x-mcp-tool":true}},"/v1/directory":{"get":{"operationId":"library.directory","summary":"Numbers of the Directory for Catechesis starting at a number","tags":["library"],"security":[{"bearer":[]}],"parameters":[{"name":"from","in":"query","required":false,"schema":{"default":1,"type":"integer","minimum":1,"maximum":428}},{"name":"limit","in":"query","required":false,"schema":{"default":20,"type":"integer","minimum":1,"maximum":50}}],"responses":{"200":{"description":"OK","content":{"application/json":{"schema":{"$schema":"https://json-schema.org/draft/2020-12/schema","type":"object","properties":{"locale":{"type":"string","enum":["pt-BR","en","es"]},"items":{"type":"array","items":{"type":"object","properties":{"number":{"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991},"part":{"type":"string"},"chapter":{"type":"string"},"title":{"type":"string"},"text":{"type":"string"}},"required":["number","part","chapter","title","text"],"additionalProperties":false}},"chapters":{"type":"array","items":{"type":"object","properties":{"part":{"type":"string"},"chapter":{"type":"string"},"first":{"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991}},"required":["part","chapter","first"],"additionalProperties":false}},"next":{"anyOf":[{"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991},{"type":"null"}]},"prev":{"anyOf":[{"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991},{"type":"null"}]}},"required":["locale","items","chapters","next","prev"],"additionalProperties":false}}}}},"x-mcp-tool":true}},"/v1/directory/search":{"get":{"operationId":"library.directorySearch","summary":"Searches the Directory for Catechesis by number or words","tags":["library"],"security":[{"bearer":[]}],"parameters":[{"name":"q","in":"query","required":true,"schema":{"type":"string","minLength":1,"maxLength":120}}],"responses":{"200":{"description":"OK","content":{"application/json":{"schema":{"$schema":"https://json-schema.org/draft/2020-12/schema","type":"object","properties":{"locale":{"type":"string","enum":["pt-BR","en","es"]},"items":{"type":"array","items":{"type":"object","properties":{"number":{"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991},"part":{"type":"string"},"chapter":{"type":"string"},"title":{"type":"string"},"text":{"type":"string"}},"required":["number","part","chapter","title","text"],"additionalProperties":false}}},"required":["locale","items"],"additionalProperties":false}}}}},"x-mcp-tool":true}},"/v1/patristics":{"get":{"operationId":"library.patristicWorks","summary":"Works of the Church Fathers in the library, translated by Catechis from the Greek or Latin original, with the translation status","tags":["library"],"security":[{"bearer":[]}],"parameters":[],"responses":{"200":{"description":"OK","content":{"application/json":{"schema":{"$schema":"https://json-schema.org/draft/2020-12/schema","type":"object","properties":{"items":{"type":"array","items":{"type":"object","properties":{"id":{"type":"string"},"author":{"type":"string"},"title":{"type":"string"},"date":{"type":"string"},"originalLanguage":{"type":"string","enum":["grc","la"]},"status":{"type":"string","enum":["draft","reviewed"]},"sections":{"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991},"authorshipNote":{"type":["string","null"]},"edition":{"type":"object","properties":{"title":{"type":"string"},"editor":{"type":"string"},"year":{"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991},"place":{"type":"string"},"url":{"type":"string"},"license":{"type":"string"}},"required":["title","editor","year","place","url","license"],"additionalProperties":false}},"required":["id","author","title","date","originalLanguage","status","sections","authorshipNote","edition"],"additionalProperties":false}}},"required":["items"],"additionalProperties":false}}}}},"x-mcp-tool":false}},"/v1/patristics/works/{work}":{"get":{"operationId":"library.patristicRead","summary":"Sections of a Church Fathers work, with the original text beside the translation, starting at a section","tags":["library"],"security":[{"bearer":[]}],"parameters":[{"name":"work","in":"path","required":true,"schema":{"type":"string","minLength":1,"maxLength":80}},{"name":"from","in":"query","required":false,"schema":{"default":1,"type":"integer","minimum":1,"maximum":9007199254740991}},{"name":"limit","in":"query","required":false,"schema":{"default":15,"type":"integer","minimum":1,"maximum":40}}],"responses":{"200":{"description":"OK","content":{"application/json":{"schema":{"$schema":"https://json-schema.org/draft/2020-12/schema","type":"object","properties":{"work":{"type":"object","properties":{"id":{"type":"string"},"author":{"type":"string"},"title":{"type":"string"},"date":{"type":"string"},"originalLanguage":{"type":"string","enum":["grc","la"]},"status":{"type":"string","enum":["draft","reviewed"]},"sections":{"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991},"authorshipNote":{"type":["string","null"]},"edition":{"type":"object","properties":{"title":{"type":"string"},"editor":{"type":"string"},"year":{"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991},"place":{"type":"string"},"url":{"type":"string"},"license":{"type":"string"}},"required":["title","editor","year","place","url","license"],"additionalProperties":false}},"required":["id","author","title","date","originalLanguage","status","sections","authorshipNote","edition"],"additionalProperties":false},"items":{"type":"array","items":{"type":"object","properties":{"seq":{"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991},"ref":{"type":"string"},"heading":{"type":["string","null"]},"editionPage":{"type":["string","null"]},"original":{"type":"string"},"text":{"type":"string"},"notes":{"type":"array","items":{"type":"string"}}},"required":["seq","ref","heading","editionPage","original","text","notes"],"additionalProperties":false}},"chapters":{"type":"array","items":{"type":"object","properties":{"chapter":{"type":"string"},"first":{"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991}},"required":["chapter","first"],"additionalProperties":false}},"next":{"anyOf":[{"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991},{"type":"null"}]},"prev":{"anyOf":[{"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991},{"type":"null"}]}},"required":["work","items","chapters","next","prev"],"additionalProperties":false}}}}},"x-mcp-tool":false}},"/v1/patristics/search":{"get":{"operationId":"library.patristicSearch","summary":"Searches the Church Fathers texts by words, in the language of the person","tags":["library"],"security":[{"bearer":[]}],"parameters":[{"name":"q","in":"query","required":true,"schema":{"type":"string","minLength":2,"maxLength":120}}],"responses":{"200":{"description":"OK","content":{"application/json":{"schema":{"$schema":"https://json-schema.org/draft/2020-12/schema","type":"object","properties":{"items":{"type":"array","items":{"type":"object","properties":{"seq":{"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991},"ref":{"type":"string"},"heading":{"type":["string","null"]},"editionPage":{"type":["string","null"]},"original":{"type":"string"},"text":{"type":"string"},"notes":{"type":"array","items":{"type":"string"}},"work":{"type":"string"},"workTitle":{"type":"string"}},"required":["seq","ref","heading","editionPage","original","text","notes","work","workTitle"],"additionalProperties":false}}},"required":["items"],"additionalProperties":false}}}}},"x-mcp-tool":false}},"/v1/community/me":{"get":{"operationId":"community.me","summary":"The person's community profile (null until they accept the rules) and whether they moderate","tags":["community"],"security":[{"bearer":[]}],"parameters":[],"responses":{"200":{"description":"OK","content":{"application/json":{"schema":{"$schema":"https://json-schema.org/draft/2020-12/schema","type":"object","properties":{"profile":{"anyOf":[{"type":"object","properties":{"displayName":{"type":"string"},"stages":{"type":"array","items":{"type":"string","enum":["pre_catechesis","first_communion","perseverance","confirmation","adult","catechumenate","altar_servers","missionary_childhood","youth_group","other"]}},"since":{"anyOf":[{"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991},{"type":"null"}]}},"required":["displayName","stages","since"],"additionalProperties":false},{"type":"null"}]},"moderator":{"type":"boolean"}},"required":["profile","moderator"],"additionalProperties":false}}}}},"x-mcp-tool":false},"put":{"operationId":"community.saveProfile","summary":"Creates or edits how the person appears in the community; creating it accepts the community rules","tags":["community"],"security":[{"bearer":[]}],"parameters":[],"responses":{"200":{"description":"OK","content":{"application/json":{"schema":{"$schema":"https://json-schema.org/draft/2020-12/schema","type":"object","properties":{"displayName":{"type":"string"},"stages":{"type":"array","items":{"type":"string","enum":["pre_catechesis","first_communion","perseverance","confirmation","adult","catechumenate","altar_servers","missionary_childhood","youth_group","other"]}},"since":{"anyOf":[{"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991},{"type":"null"}]}},"required":["displayName","stages","since"],"additionalProperties":false}}}}},"x-mcp-tool":false,"requestBody":{"content":{"application/json":{"schema":{"$schema":"https://json-schema.org/draft/2020-12/schema","type":"object","properties":{"displayName":{"type":"string","minLength":2,"maxLength":40},"stages":{"maxItems":7,"type":"array","items":{"type":"string","enum":["pre_catechesis","first_communion","perseverance","confirmation","adult","catechumenate","altar_servers","missionary_childhood","youth_group","other"]}},"since":{"anyOf":[{"type":"integer","minimum":1950,"maximum":2100},{"type":"null"}]},"acceptRules":{"type":"boolean","const":true}},"required":["displayName","stages","since","acceptRules"]}}}}}},"/v1/community/feed":{"get":{"operationId":"community.feed","summary":"Community posts in the person's language, newest first (20 per page)","tags":["community"],"security":[{"bearer":[]}],"parameters":[{"name":"before","in":"query","required":false,"schema":{"type":"string"}},{"name":"topic","in":"query","required":false,"schema":{"type":"string","enum":["plans","behavior","families","sacraments","prayer","other"]}}],"responses":{"200":{"description":"OK","content":{"application/json":{"schema":{"$schema":"https://json-schema.org/draft/2020-12/schema","type":"object","properties":{"items":{"type":"array","items":{"type":"object","properties":{"id":{"type":"string"},"kind":{"type":"string","enum":["question","prayer","plan","milestone","weekly"]},"topic":{"anyOf":[{"type":"string","enum":["plans","behavior","families","sacraments","prayer","other"]},{"type":"null"}]},"body":{"type":"string"},"plan":{"anyOf":[{"type":"object","properties":{"theme":{"type":"string","minLength":2,"maxLength":200},"notes":{"anyOf":[{"type":"string","maxLength":20000},{"type":"null"}]}},"required":["theme","notes"],"additionalProperties":false},{"type":"null"}]},"milestone":{"anyOf":[{"type":"object","properties":{"title":{"type":"string","minLength":2,"maxLength":120},"stats":{"maxItems":6,"type":"array","items":{"type":"object","properties":{"value":{"type":"string","maxLength":12},"label":{"type":"string","maxLength":60}},"required":["value","label"],"additionalProperties":false}}},"required":["title","stats"],"additionalProperties":false},{"type":"null"}]},"createdAt":{"type":"string"},"author":{"type":"object","properties":{"id":{"type":["string","null"]},"name":{"type":"string"},"stages":{"type":"array","items":{"type":"string","enum":["pre_catechesis","first_communion","perseverance","confirmation","adult","catechumenate","altar_servers","missionary_childhood","youth_group","other"]}},"years":{"anyOf":[{"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991},{"type":"null"}]},"godparent":{"anyOf":[{"type":"string","enum":["godmother","godfather"]},{"type":"null"}]}},"required":["id","name","stages","years","godparent"],"additionalProperties":false},"firstPost":{"type":"boolean"},"mine":{"type":"boolean"},"reactions":{"type":"object","properties":{"heart":{"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991},"prayed":{"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991},"used":{"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991},"mine":{"type":"array","items":{"type":"string","enum":["heart","prayed","used"]}}},"required":["heart","prayed","used","mine"],"additionalProperties":false},"replies":{"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991}},"required":["id","kind","topic","body","plan","milestone","createdAt","author","firstPost","mine","reactions","replies"],"additionalProperties":false}},"next":{"type":["string","null"]}},"required":["items","next"],"additionalProperties":false}}}}},"x-mcp-tool":false}},"/v1/community/posts":{"post":{"operationId":"community.createPost","summary":"Publishes a question, a prayer request, a shared session outline or a milestone","tags":["community"],"security":[{"bearer":[]}],"parameters":[],"responses":{"200":{"description":"OK","content":{"application/json":{"schema":{"$schema":"https://json-schema.org/draft/2020-12/schema","type":"object","properties":{"id":{"type":"string"},"kind":{"type":"string","enum":["question","prayer","plan","milestone","weekly"]},"topic":{"anyOf":[{"type":"string","enum":["plans","behavior","families","sacraments","prayer","other"]},{"type":"null"}]},"body":{"type":"string"},"plan":{"anyOf":[{"type":"object","properties":{"theme":{"type":"string","minLength":2,"maxLength":200},"notes":{"anyOf":[{"type":"string","maxLength":20000},{"type":"null"}]}},"required":["theme","notes"],"additionalProperties":false},{"type":"null"}]},"milestone":{"anyOf":[{"type":"object","properties":{"title":{"type":"string","minLength":2,"maxLength":120},"stats":{"maxItems":6,"type":"array","items":{"type":"object","properties":{"value":{"type":"string","maxLength":12},"label":{"type":"string","maxLength":60}},"required":["value","label"],"additionalProperties":false}}},"required":["title","stats"],"additionalProperties":false},{"type":"null"}]},"createdAt":{"type":"string"},"author":{"type":"object","properties":{"id":{"type":["string","null"]},"name":{"type":"string"},"stages":{"type":"array","items":{"type":"string","enum":["pre_catechesis","first_communion","perseverance","confirmation","adult","catechumenate","altar_servers","missionary_childhood","youth_group","other"]}},"years":{"anyOf":[{"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991},{"type":"null"}]},"godparent":{"anyOf":[{"type":"string","enum":["godmother","godfather"]},{"type":"null"}]}},"required":["id","name","stages","years","godparent"],"additionalProperties":false},"firstPost":{"type":"boolean"},"mine":{"type":"boolean"},"reactions":{"type":"object","properties":{"heart":{"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991},"prayed":{"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991},"used":{"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991},"mine":{"type":"array","items":{"type":"string","enum":["heart","prayed","used"]}}},"required":["heart","prayed","used","mine"],"additionalProperties":false},"replies":{"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991}},"required":["id","kind","topic","body","plan","milestone","createdAt","author","firstPost","mine","reactions","replies"],"additionalProperties":false}}}}},"x-mcp-tool":false,"requestBody":{"content":{"application/json":{"schema":{"$schema":"https://json-schema.org/draft/2020-12/schema","type":"object","properties":{"kind":{"type":"string","enum":["question","prayer","plan","milestone"]},"topic":{"anyOf":[{"type":"string","enum":["plans","behavior","families","sacraments","prayer","other"]},{"type":"null"}]},"body":{"type":"string","minLength":2,"maxLength":2000},"plan":{"type":"object","properties":{"theme":{"type":"string","minLength":2,"maxLength":200},"notes":{"anyOf":[{"type":"string","maxLength":20000},{"type":"null"}]}},"required":["theme","notes"]},"milestone":{"type":"object","properties":{"title":{"type":"string","minLength":2,"maxLength":120},"stats":{"maxItems":6,"type":"array","items":{"type":"object","properties":{"value":{"type":"string","maxLength":12},"label":{"type":"string","maxLength":60}},"required":["value","label"]}}},"required":["title","stats"]}},"required":["kind","body"]}}}}}},"/v1/community/posts/{postId}":{"delete":{"operationId":"community.deletePost","summary":"Deletes one of the person's posts (or any post, for moderators)","tags":["community"],"security":[{"bearer":[]}],"parameters":[{"name":"postId","in":"path","required":true,"schema":{"type":"string"}}],"responses":{"200":{"description":"OK","content":{"application/json":{"schema":{"$schema":"https://json-schema.org/draft/2020-12/schema","type":"object","properties":{"ok":{"type":"boolean","const":true}},"required":["ok"],"additionalProperties":false}}}}},"x-mcp-tool":false,"requestBody":{"content":{"application/json":{"schema":{"$schema":"https://json-schema.org/draft/2020-12/schema","type":"object","properties":{"postId":{"type":"string"}},"required":["postId"]}}}}}},"/v1/community/posts/{postId}/replies":{"get":{"operationId":"community.listReplies","summary":"Replies to a post, oldest first","tags":["community"],"security":[{"bearer":[]}],"parameters":[{"name":"postId","in":"path","required":true,"schema":{"type":"string"}}],"responses":{"200":{"description":"OK","content":{"application/json":{"schema":{"$schema":"https://json-schema.org/draft/2020-12/schema","type":"object","properties":{"items":{"type":"array","items":{"type":"object","properties":{"id":{"type":"string"},"body":{"type":"string"},"createdAt":{"type":"string"},"author":{"type":"object","properties":{"id":{"type":["string","null"]},"name":{"type":"string"},"stages":{"type":"array","items":{"type":"string","enum":["pre_catechesis","first_communion","perseverance","confirmation","adult","catechumenate","altar_servers","missionary_childhood","youth_group","other"]}},"years":{"anyOf":[{"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991},{"type":"null"}]},"godparent":{"anyOf":[{"type":"string","enum":["godmother","godfather"]},{"type":"null"}]}},"required":["id","name","stages","years","godparent"],"additionalProperties":false},"mine":{"type":"boolean"}},"required":["id","body","createdAt","author","mine"],"additionalProperties":false}}},"required":["items"],"additionalProperties":false}}}}},"x-mcp-tool":false},"post":{"operationId":"community.createReply","summary":"Replies to a post","tags":["community"],"security":[{"bearer":[]}],"parameters":[{"name":"postId","in":"path","required":true,"schema":{"type":"string"}}],"responses":{"200":{"description":"OK","content":{"application/json":{"schema":{"$schema":"https://json-schema.org/draft/2020-12/schema","type":"object","properties":{"id":{"type":"string"},"body":{"type":"string"},"createdAt":{"type":"string"},"author":{"type":"object","properties":{"id":{"type":["string","null"]},"name":{"type":"string"},"stages":{"type":"array","items":{"type":"string","enum":["pre_catechesis","first_communion","perseverance","confirmation","adult","catechumenate","altar_servers","missionary_childhood","youth_group","other"]}},"years":{"anyOf":[{"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991},{"type":"null"}]},"godparent":{"anyOf":[{"type":"string","enum":["godmother","godfather"]},{"type":"null"}]}},"required":["id","name","stages","years","godparent"],"additionalProperties":false},"mine":{"type":"boolean"}},"required":["id","body","createdAt","author","mine"],"additionalProperties":false}}}}},"x-mcp-tool":false,"requestBody":{"content":{"application/json":{"schema":{"$schema":"https://json-schema.org/draft/2020-12/schema","type":"object","properties":{"postId":{"type":"string"},"body":{"type":"string","minLength":2,"maxLength":1000}},"required":["postId","body"]}}}}}},"/v1/community/replies/{replyId}":{"delete":{"operationId":"community.deleteReply","summary":"Deletes one of the person's replies (or any reply, for moderators)","tags":["community"],"security":[{"bearer":[]}],"parameters":[{"name":"replyId","in":"path","required":true,"schema":{"type":"string"}}],"responses":{"200":{"description":"OK","content":{"application/json":{"schema":{"$schema":"https://json-schema.org/draft/2020-12/schema","type":"object","properties":{"ok":{"type":"boolean","const":true}},"required":["ok"],"additionalProperties":false}}}}},"x-mcp-tool":false,"requestBody":{"content":{"application/json":{"schema":{"$schema":"https://json-schema.org/draft/2020-12/schema","type":"object","properties":{"replyId":{"type":"string"}},"required":["replyId"]}}}}}},"/v1/community/posts/{postId}/reactions/{kind}":{"put":{"operationId":"community.react","summary":"Adds or removes a heart, \"I prayed for you\" or \"I used it in my class\" on a post","tags":["community"],"security":[{"bearer":[]}],"parameters":[{"name":"postId","in":"path","required":true,"schema":{"type":"string"}},{"name":"kind","in":"path","required":true,"schema":{"type":"string","enum":["heart","prayed","used"]}}],"responses":{"200":{"description":"OK","content":{"application/json":{"schema":{"$schema":"https://json-schema.org/draft/2020-12/schema","type":"object","properties":{"ok":{"type":"boolean","const":true}},"required":["ok"],"additionalProperties":false}}}}},"x-mcp-tool":false,"requestBody":{"content":{"application/json":{"schema":{"$schema":"https://json-schema.org/draft/2020-12/schema","type":"object","properties":{"postId":{"type":"string"},"kind":{"type":"string","enum":["heart","prayed","used"]},"on":{"type":"boolean"}},"required":["postId","kind","on"]}}}}}},"/v1/community/reports":{"post":{"operationId":"community.report","summary":"Reports a post or a reply to the Catechis team (3 reports hide it until review)","tags":["community"],"security":[{"bearer":[]}],"parameters":[],"responses":{"200":{"description":"OK","content":{"application/json":{"schema":{"$schema":"https://json-schema.org/draft/2020-12/schema","type":"object","properties":{"ok":{"type":"boolean","const":true}},"required":["ok"],"additionalProperties":false}}}}},"x-mcp-tool":false,"requestBody":{"content":{"application/json":{"schema":{"$schema":"https://json-schema.org/draft/2020-12/schema","type":"object","properties":{"postId":{"type":"string"},"replyId":{"type":"string"}},"required":["postId"]}}}}}}},"components":{"securitySchemes":{"bearer":{"type":"http","scheme":"bearer"}}}}