{"info":{"title":"Kipivo API","version":"0.0.1"},"servers":[{"url":"/api/v1"}],"components":{"securitySchemes":{"sessionCookie":{"type":"apiKey","in":"cookie","name":"kipivo.session_token"},"secureSessionCookie":{"type":"apiKey","in":"cookie","name":"__Secure-kipivo.session_token"},"apiKeyAuthorization":{"type":"apiKey","in":"header","name":"Authorization","description":"Use ApiKey followed by your personal API key."},"apiBearer":{"type":"http","scheme":"bearer","bearerFormat":"JWT"}},"schemas":{"UndefinedError":{"title":"UndefinedError","type":"object","properties":{"defined":{"const":false},"code":{"type":"string"},"message":{"type":"string"},"data":{}},"required":["defined","code","message"]},"BadRequest":{"title":"BAD_REQUEST","type":"object","properties":{"defined":{"const":true},"code":{"const":"BAD_REQUEST"},"message":{"type":"string"},"data":{}},"required":["defined","code","message"]},"Unauthorized":{"title":"UNAUTHORIZED","type":"object","properties":{"defined":{"const":true},"code":{"const":"UNAUTHORIZED"},"message":{"type":"string"},"data":{}},"required":["defined","code","message"]},"Forbidden":{"title":"FORBIDDEN","type":"object","properties":{"defined":{"const":true},"code":{"const":"FORBIDDEN"},"message":{"type":"string"},"data":{}},"required":["defined","code","message"]},"NotFound":{"title":"NOT_FOUND","type":"object","properties":{"defined":{"const":true},"code":{"const":"NOT_FOUND"},"message":{"type":"string"},"data":{}},"required":["defined","code","message"]},"Conflict":{"title":"CONFLICT","type":"object","properties":{"defined":{"const":true},"code":{"const":"CONFLICT"},"message":{"type":"string"},"data":{}},"required":["defined","code","message"]},"UnprocessableContent":{"title":"UNPROCESSABLE_CONTENT","type":"object","properties":{"defined":{"const":true},"code":{"const":"UNPROCESSABLE_CONTENT"},"message":{"type":"string"},"data":{}},"required":["defined","code","message"]},"TooManyRequests":{"title":"TOO_MANY_REQUESTS","type":"object","properties":{"defined":{"const":true},"code":{"const":"TOO_MANY_REQUESTS"},"message":{"type":"string"},"data":{}},"required":["defined","code","message"]},"ServiceUnavailable":{"title":"SERVICE_UNAVAILABLE","type":"object","properties":{"defined":{"const":true},"code":{"const":"SERVICE_UNAVAILABLE"},"message":{"type":"string"},"data":{}},"required":["defined","code","message"]},"SetupClosed":{"title":"SETUP_CLOSED","type":"object","properties":{"defined":{"const":true},"code":{"const":"SETUP_CLOSED"},"message":{"type":"string"},"data":{}},"required":["defined","code","message"]}}},"openapi":"3.1.1","paths":{"/auth/token":{"post":{"operationId":"auth.token.exchange","summary":"Exchange an API key for a short-lived token","responses":{"200":{"description":"OK","content":{"application/json":{"schema":{"type":"object","properties":{"access_token":{"type":"string"},"token_type":{"type":"string","const":"Bearer"},"expires_in":{"type":"integer","exclusiveMinimum":0,"maximum":9007199254740991}},"required":["access_token","token_type","expires_in"],"additionalProperties":false}}}},"400":{"description":"400","content":{"application/json":{"schema":{"oneOf":[{"$ref":"#/components/schemas/BadRequest"},{"$ref":"#/components/schemas/UndefinedError"}]}}}},"401":{"description":"401","content":{"application/json":{"schema":{"oneOf":[{"$ref":"#/components/schemas/Unauthorized"},{"$ref":"#/components/schemas/UndefinedError"}]}}}},"403":{"description":"403","content":{"application/json":{"schema":{"oneOf":[{"$ref":"#/components/schemas/Forbidden"},{"$ref":"#/components/schemas/UndefinedError"}]}}}},"404":{"description":"404","content":{"application/json":{"schema":{"oneOf":[{"$ref":"#/components/schemas/NotFound"},{"$ref":"#/components/schemas/UndefinedError"}]}}}},"409":{"description":"409","content":{"application/json":{"schema":{"oneOf":[{"$ref":"#/components/schemas/Conflict"},{"$ref":"#/components/schemas/UndefinedError"}]}}}},"422":{"description":"422","content":{"application/json":{"schema":{"oneOf":[{"$ref":"#/components/schemas/UnprocessableContent"},{"$ref":"#/components/schemas/UndefinedError"}]}}}},"429":{"description":"429","content":{"application/json":{"schema":{"oneOf":[{"$ref":"#/components/schemas/TooManyRequests"},{"$ref":"#/components/schemas/UndefinedError"}]}}}},"503":{"description":"503","content":{"application/json":{"schema":{"oneOf":[{"$ref":"#/components/schemas/ServiceUnavailable"},{"$ref":"#/components/schemas/UndefinedError"}]}}}}},"security":[{"apiKeyAuthorization":[]}]}},"/setup":{"get":{"operationId":"setup.get","summary":"Check installation status","responses":{"200":{"description":"OK","content":{"application/json":{"schema":{"type":"object","properties":{"open":{"type":"boolean"}},"required":["open"],"additionalProperties":false}}}},"503":{"description":"503","content":{"application/json":{"schema":{"oneOf":[{"$ref":"#/components/schemas/ServiceUnavailable"},{"$ref":"#/components/schemas/UndefinedError"}]}}}}}},"post":{"operationId":"setup.create","summary":"Create the first administrator","requestBody":{"required":true,"content":{"application/json":{"schema":{"type":"object","properties":{"name":{"type":"string","minLength":1,"maxLength":128},"email":{"type":"string","maxLength":254,"format":"email","pattern":"^(?:[A-Za-z0-9_'+\\-]+\\.)*[A-Za-z0-9_'+\\-]*[A-Za-z0-9_+-]@(?:[A-Za-z0-9][A-Za-z0-9\\-]*\\.)+[A-Za-z]{2,}$"},"password":{"type":"string","minLength":12,"maxLength":128}},"required":["name","email","password"],"additionalProperties":false}}}},"responses":{"200":{"description":"OK","content":{"application/json":{"schema":{"type":"object","properties":{"ok":{"type":"boolean","const":true}},"required":["ok"],"additionalProperties":false}}}},"403":{"description":"403","content":{"application/json":{"schema":{"oneOf":[{"$ref":"#/components/schemas/Forbidden"},{"$ref":"#/components/schemas/UndefinedError"}]}}}},"409":{"description":"Installation is closed.","content":{"application/json":{"schema":{"oneOf":[{"$ref":"#/components/schemas/SetupClosed"},{"$ref":"#/components/schemas/UndefinedError"}]}}}},"503":{"description":"503","content":{"application/json":{"schema":{"oneOf":[{"$ref":"#/components/schemas/ServiceUnavailable"},{"$ref":"#/components/schemas/UndefinedError"}]}}}}},"parameters":[{"in":"header","name":"Origin","required":true,"schema":{"type":"string"},"description":"Must match a configured trusted Web origin."}]}},"/system/ping":{"get":{"operationId":"system.ping","summary":"Check API connectivity","responses":{"200":{"description":"OK","content":{"application/json":{"schema":{"type":"object","properties":{"ok":{"type":"boolean","const":true}},"required":["ok"],"additionalProperties":false}}}}}}},"/accounts/{id}/board":{"get":{"operationId":"accounts.board.get","summary":"Read your personal board","parameters":[{"in":"path","required":true,"name":"id","schema":{"type":"string","minLength":1,"maxLength":128}}],"responses":{"200":{"description":"OK","content":{"application/json":{"schema":{"type":"object","properties":{"revision":{"type":"integer","minimum":0,"maximum":2147483647},"tasks":{"type":"array","items":{"type":"object","properties":{"id":{"type":"string","minLength":1,"maxLength":128},"title":{"type":"string","minLength":1,"maxLength":140},"note":{"type":"string","maxLength":2000},"stage":{"type":"string","enum":["todo","active","done"]}},"required":["id","title","note","stage"],"additionalProperties":false}}},"required":["revision","tasks"],"additionalProperties":false}}}},"401":{"description":"Sign in to continue.","content":{"application/json":{"schema":{"oneOf":[{"$ref":"#/components/schemas/Unauthorized"},{"$ref":"#/components/schemas/UndefinedError"}]}}}},"403":{"description":"This action is not permitted.","content":{"application/json":{"schema":{"oneOf":[{"$ref":"#/components/schemas/Forbidden"},{"$ref":"#/components/schemas/UndefinedError"}]}}}},"503":{"description":"Account service is unavailable.","content":{"application/json":{"schema":{"oneOf":[{"$ref":"#/components/schemas/ServiceUnavailable"},{"$ref":"#/components/schemas/UndefinedError"}]}}}}},"security":[{"sessionCookie":[]},{"secureSessionCookie":[]}]},"put":{"operationId":"accounts.board.update","summary":"Save a revision of your personal board","parameters":[{"in":"path","required":true,"name":"id","schema":{"type":"string","minLength":1,"maxLength":128}},{"in":"header","name":"Origin","required":true,"schema":{"type":"string"},"description":"Must match a configured trusted Web origin."}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"type":"object","properties":{"revision":{"type":"integer","minimum":0,"maximum":2147483647},"tasks":{"type":"array","items":{"type":"object","properties":{"id":{"type":"string","minLength":1,"maxLength":128},"title":{"type":"string","minLength":1,"maxLength":140},"note":{"type":"string","maxLength":2000},"stage":{"type":"string","enum":["todo","active","done"]}},"required":["id","title","note","stage"]}}},"required":["revision","tasks"],"additionalProperties":false}}}},"responses":{"200":{"description":"OK","content":{"application/json":{"schema":{"type":"object","properties":{"revision":{"type":"integer","minimum":0,"maximum":2147483647},"tasks":{"type":"array","items":{"type":"object","properties":{"id":{"type":"string","minLength":1,"maxLength":128},"title":{"type":"string","minLength":1,"maxLength":140},"note":{"type":"string","maxLength":2000},"stage":{"type":"string","enum":["todo","active","done"]}},"required":["id","title","note","stage"],"additionalProperties":false}}},"required":["revision","tasks"],"additionalProperties":false}}}},"401":{"description":"Sign in to continue.","content":{"application/json":{"schema":{"oneOf":[{"$ref":"#/components/schemas/Unauthorized"},{"$ref":"#/components/schemas/UndefinedError"}]}}}},"403":{"description":"This action is not permitted.","content":{"application/json":{"schema":{"oneOf":[{"$ref":"#/components/schemas/Forbidden"},{"$ref":"#/components/schemas/UndefinedError"}]}}}},"409":{"description":"The board has a newer revision.","content":{"application/json":{"schema":{"oneOf":[{"$ref":"#/components/schemas/Conflict"},{"$ref":"#/components/schemas/UndefinedError"}]}}}},"503":{"description":"Account service is unavailable.","content":{"application/json":{"schema":{"oneOf":[{"$ref":"#/components/schemas/ServiceUnavailable"},{"$ref":"#/components/schemas/UndefinedError"}]}}}}},"security":[{"sessionCookie":[]},{"secureSessionCookie":[]}]}},"/accounts/{id}/board/watch":{"get":{"operationId":"accounts.board.watch","summary":"Check for changes to your personal board","parameters":[{"in":"path","required":true,"name":"id","schema":{"type":"string","minLength":1,"maxLength":128}},{"in":"query","name":"revision","schema":{"type":"integer","minimum":0,"maximum":2147483647},"allowEmptyValue":true,"allowReserved":true,"required":true}],"responses":{"200":{"description":"OK","content":{"application/json":{"schema":{"type":"object","properties":{"changed":{"type":"boolean"},"retryAfterMs":{"type":"integer","minimum":0,"maximum":9007199254740991}},"required":["changed","retryAfterMs"],"additionalProperties":false}}}},"401":{"description":"Sign in to continue.","content":{"application/json":{"schema":{"oneOf":[{"$ref":"#/components/schemas/Unauthorized"},{"$ref":"#/components/schemas/UndefinedError"}]}}}},"403":{"description":"This action is not permitted.","content":{"application/json":{"schema":{"oneOf":[{"$ref":"#/components/schemas/Forbidden"},{"$ref":"#/components/schemas/UndefinedError"}]}}}},"503":{"description":"Account service is unavailable.","content":{"application/json":{"schema":{"oneOf":[{"$ref":"#/components/schemas/ServiceUnavailable"},{"$ref":"#/components/schemas/UndefinedError"}]}}}}},"security":[{"sessionCookie":[]},{"secureSessionCookie":[]}]}},"/accounts/me":{"get":{"operationId":"accounts.me.get","summary":"Get the signed-in account and its permissions","responses":{"200":{"description":"OK","content":{"application/json":{"schema":{"type":"object","properties":{"id":{"type":"string","minLength":1,"maxLength":128},"name":{"type":"string"},"email":{"type":"string","format":"email","pattern":"^(?:[A-Za-z0-9_'+\\-]+\\.)*[A-Za-z0-9_'+\\-]*[A-Za-z0-9_+-]@(?:[A-Za-z0-9][A-Za-z0-9\\-]*\\.)+[A-Za-z]{2,}$"},"role":{"type":"string","enum":["member","admin"]},"settings":{"type":"object","properties":{"menuLabel":{"type":"string","enum":["name","email"]}},"required":["menuLabel"],"additionalProperties":false},"permissions":{"type":"array","items":{"type":"string","enum":["account.read","accounts.read","accounts.roles.update","accounts.sessions.revoke","accounts.sign_in_links.send","settings.manage","audit.read"]}}},"required":["id","name","email","role","settings","permissions"],"additionalProperties":false}}}},"401":{"description":"Sign in to continue.","content":{"application/json":{"schema":{"oneOf":[{"$ref":"#/components/schemas/Unauthorized"},{"$ref":"#/components/schemas/UndefinedError"}]}}}},"403":{"description":"This action is not permitted.","content":{"application/json":{"schema":{"oneOf":[{"$ref":"#/components/schemas/Forbidden"},{"$ref":"#/components/schemas/UndefinedError"}]}}}},"429":{"description":"429","content":{"application/json":{"schema":{"oneOf":[{"$ref":"#/components/schemas/TooManyRequests"},{"$ref":"#/components/schemas/UndefinedError"}]}}}},"503":{"description":"Account service is unavailable.","content":{"application/json":{"schema":{"oneOf":[{"$ref":"#/components/schemas/ServiceUnavailable"},{"$ref":"#/components/schemas/UndefinedError"}]}}}}},"security":[{"sessionCookie":[]},{"secureSessionCookie":[]},{"apiBearer":[]}]}},"/accounts/me/api-keys":{"get":{"operationId":"accounts.me.apiKeys.list","summary":"List your API keys","responses":{"200":{"description":"OK","content":{"application/json":{"schema":{"type":"array","items":{"type":"object","properties":{"name":{"type":"string","minLength":1,"maxLength":80},"id":{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"},"suffix":{"type":"string","minLength":4,"maxLength":4},"createdAt":{"type":"string","format":"date-time","pattern":"^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))T(?:(?:[01]\\d|2[0-3]):[0-5]\\d:[0-5]\\d(?:\\.\\d+)?(?:Z))$"},"expiresAt":{"type":"string","format":"date-time","pattern":"^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))T(?:(?:[01]\\d|2[0-3]):[0-5]\\d:[0-5]\\d(?:\\.\\d+)?(?:Z))$"},"active":{"type":"boolean"}},"required":["name","id","suffix","createdAt","expiresAt","active"],"additionalProperties":false}}}}},"401":{"description":"Sign in to continue.","content":{"application/json":{"schema":{"oneOf":[{"$ref":"#/components/schemas/Unauthorized"},{"$ref":"#/components/schemas/UndefinedError"}]}}}},"403":{"description":"This action is not permitted.","content":{"application/json":{"schema":{"oneOf":[{"$ref":"#/components/schemas/Forbidden"},{"$ref":"#/components/schemas/UndefinedError"}]}}}},"503":{"description":"Account service is unavailable.","content":{"application/json":{"schema":{"oneOf":[{"$ref":"#/components/schemas/ServiceUnavailable"},{"$ref":"#/components/schemas/UndefinedError"}]}}}}},"security":[{"sessionCookie":[]},{"secureSessionCookie":[]}]},"post":{"operationId":"accounts.me.apiKeys.create","summary":"Create an API key","requestBody":{"required":true,"content":{"application/json":{"schema":{"type":"object","properties":{"name":{"type":"string","minLength":1,"maxLength":80}},"required":["name"],"additionalProperties":false}}}},"responses":{"200":{"description":"OK","content":{"application/json":{"schema":{"type":"object","properties":{"name":{"type":"string","minLength":1,"maxLength":80},"id":{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"},"suffix":{"type":"string","minLength":4,"maxLength":4},"createdAt":{"type":"string","format":"date-time","pattern":"^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))T(?:(?:[01]\\d|2[0-3]):[0-5]\\d:[0-5]\\d(?:\\.\\d+)?(?:Z))$"},"expiresAt":{"type":"string","format":"date-time","pattern":"^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))T(?:(?:[01]\\d|2[0-3]):[0-5]\\d:[0-5]\\d(?:\\.\\d+)?(?:Z))$"},"active":{"type":"boolean"},"key":{"type":"string"}},"required":["name","id","suffix","createdAt","expiresAt","active","key"],"additionalProperties":false}}}},"401":{"description":"Sign in to continue.","content":{"application/json":{"schema":{"oneOf":[{"$ref":"#/components/schemas/Unauthorized"},{"$ref":"#/components/schemas/UndefinedError"}]}}}},"403":{"description":"This action is not permitted.","content":{"application/json":{"schema":{"oneOf":[{"$ref":"#/components/schemas/Forbidden"},{"$ref":"#/components/schemas/UndefinedError"}]}}}},"503":{"description":"Account service is unavailable.","content":{"application/json":{"schema":{"oneOf":[{"$ref":"#/components/schemas/ServiceUnavailable"},{"$ref":"#/components/schemas/UndefinedError"}]}}}}},"security":[{"sessionCookie":[]},{"secureSessionCookie":[]}],"parameters":[{"in":"header","name":"Origin","required":true,"schema":{"type":"string"},"description":"Must match a configured trusted Web origin."}]}},"/accounts/me/api-keys/{id}":{"delete":{"operationId":"accounts.me.apiKeys.revoke","summary":"Revoke an API key","parameters":[{"in":"path","required":true,"name":"id","schema":{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"}},{"in":"header","name":"Origin","required":true,"schema":{"type":"string"},"description":"Must match a configured trusted Web origin."}],"responses":{"200":{"description":"OK","content":{"application/json":{"schema":{"type":"object","properties":{"revoked":{"type":"boolean","const":true}},"required":["revoked"],"additionalProperties":false}}}},"401":{"description":"Sign in to continue.","content":{"application/json":{"schema":{"oneOf":[{"$ref":"#/components/schemas/Unauthorized"},{"$ref":"#/components/schemas/UndefinedError"}]}}}},"403":{"description":"This action is not permitted.","content":{"application/json":{"schema":{"oneOf":[{"$ref":"#/components/schemas/Forbidden"},{"$ref":"#/components/schemas/UndefinedError"}]}}}},"404":{"description":"API key not found.","content":{"application/json":{"schema":{"oneOf":[{"$ref":"#/components/schemas/NotFound"},{"$ref":"#/components/schemas/UndefinedError"}]}}}},"503":{"description":"Account service is unavailable.","content":{"application/json":{"schema":{"oneOf":[{"$ref":"#/components/schemas/ServiceUnavailable"},{"$ref":"#/components/schemas/UndefinedError"}]}}}}},"security":[{"sessionCookie":[]},{"secureSessionCookie":[]}]}},"/accounts/me/settings":{"get":{"operationId":"accounts.me.settings.get","summary":"Read your personal settings","responses":{"200":{"description":"OK","content":{"application/json":{"schema":{"type":"object","properties":{"menuLabel":{"type":"string","enum":["name","email"]}},"required":["menuLabel"],"additionalProperties":false}}}},"401":{"description":"Sign in to continue.","content":{"application/json":{"schema":{"oneOf":[{"$ref":"#/components/schemas/Unauthorized"},{"$ref":"#/components/schemas/UndefinedError"}]}}}},"403":{"description":"This action is not permitted.","content":{"application/json":{"schema":{"oneOf":[{"$ref":"#/components/schemas/Forbidden"},{"$ref":"#/components/schemas/UndefinedError"}]}}}},"503":{"description":"Account service is unavailable.","content":{"application/json":{"schema":{"oneOf":[{"$ref":"#/components/schemas/ServiceUnavailable"},{"$ref":"#/components/schemas/UndefinedError"}]}}}}},"security":[{"sessionCookie":[]},{"secureSessionCookie":[]}]},"put":{"operationId":"accounts.me.settings.update","summary":"Save your personal settings","requestBody":{"required":true,"content":{"application/json":{"schema":{"type":"object","properties":{"menuLabel":{"type":"string","enum":["name","email"]}},"required":["menuLabel"],"additionalProperties":false}}}},"responses":{"200":{"description":"OK","content":{"application/json":{"schema":{"type":"object","properties":{"menuLabel":{"type":"string","enum":["name","email"]}},"required":["menuLabel"],"additionalProperties":false}}}},"401":{"description":"Sign in to continue.","content":{"application/json":{"schema":{"oneOf":[{"$ref":"#/components/schemas/Unauthorized"},{"$ref":"#/components/schemas/UndefinedError"}]}}}},"403":{"description":"This action is not permitted.","content":{"application/json":{"schema":{"oneOf":[{"$ref":"#/components/schemas/Forbidden"},{"$ref":"#/components/schemas/UndefinedError"}]}}}},"503":{"description":"Account service is unavailable.","content":{"application/json":{"schema":{"oneOf":[{"$ref":"#/components/schemas/ServiceUnavailable"},{"$ref":"#/components/schemas/UndefinedError"}]}}}}},"security":[{"sessionCookie":[]},{"secureSessionCookie":[]}],"parameters":[{"in":"header","name":"Origin","required":true,"schema":{"type":"string"},"description":"Must match a configured trusted Web origin."}]}},"/admin/audit-logs":{"get":{"operationId":"admin.auditLogs.list","summary":"List administrator audit records","description":"Requires audit.read. Pass nextCursor with the same action filter.","parameters":[{"in":"query","name":"action","schema":{"type":"string","enum":["account.role_changed","account.sessions_revoked","account.sign_in_link_requested","settings.directory_saved","settings.email_saved"]},"allowEmptyValue":true,"allowReserved":true},{"in":"query","name":"cursor","schema":{"type":"string","pattern":"^[1-9]\\d{0,18}$"},"allowEmptyValue":true,"allowReserved":true},{"in":"query","name":"limit","schema":{"type":"integer","minimum":1,"maximum":50},"allowEmptyValue":true,"allowReserved":true}],"responses":{"200":{"description":"OK","content":{"application/json":{"schema":{"type":"object","properties":{"items":{"type":"array","items":{"type":"object","properties":{"id":{"type":"string","pattern":"^[1-9]\\d{0,18}$"},"createdAt":{"type":"string","format":"date-time","pattern":"^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))T(?:(?:[01]\\d|2[0-3]):[0-5]\\d:[0-5]\\d(?:\\.\\d+)?(?:Z))$"},"actorId":{"type":"string","minLength":1,"maxLength":128},"actorName":{"type":["string","null"]},"targetName":{"type":["string","null"]},"event":{"oneOf":[{"type":"object","properties":{"action":{"type":"string","const":"account.role_changed"},"targetId":{"type":"string","minLength":1,"maxLength":128},"before":{"type":"string","enum":["member","admin"]},"after":{"type":"string","enum":["member","admin"]}},"required":["action","targetId","before","after"],"additionalProperties":false},{"type":"object","properties":{"action":{"type":"string","const":"account.sessions_revoked"},"targetId":{"type":"string","minLength":1,"maxLength":128},"count":{"type":"integer","exclusiveMinimum":0,"maximum":9007199254740991}},"required":["action","targetId","count"],"additionalProperties":false},{"type":"object","properties":{"action":{"type":"string","const":"account.sign_in_link_requested"},"targetId":{"type":"string","minLength":1,"maxLength":128}},"required":["action","targetId"],"additionalProperties":false},{"type":"object","properties":{"action":{"type":"string","const":"settings.directory_saved"},"pageSize":{"type":"integer","minimum":1,"maximum":100}},"required":["action","pageSize"],"additionalProperties":false},{"type":"object","properties":{"action":{"type":"string","const":"settings.email_saved"},"enabled":{"type":"boolean"},"hasApiKey":{"type":"boolean"}},"required":["action","enabled","hasApiKey"],"additionalProperties":false}]}},"required":["id","createdAt","actorId","actorName","targetName","event"],"additionalProperties":false}},"nextCursor":{"anyOf":[{"type":"string","pattern":"^[1-9]\\d{0,18}$"},{"type":"null"}]}},"required":["items","nextCursor"],"additionalProperties":false}}}},"401":{"description":"Sign in to continue.","content":{"application/json":{"schema":{"oneOf":[{"$ref":"#/components/schemas/Unauthorized"},{"$ref":"#/components/schemas/UndefinedError"}]}}}},"403":{"description":"This action is not permitted.","content":{"application/json":{"schema":{"oneOf":[{"$ref":"#/components/schemas/Forbidden"},{"$ref":"#/components/schemas/UndefinedError"}]}}}},"503":{"description":"Account service is unavailable.","content":{"application/json":{"schema":{"oneOf":[{"$ref":"#/components/schemas/ServiceUnavailable"},{"$ref":"#/components/schemas/UndefinedError"}]}}}}},"security":[{"sessionCookie":[]},{"secureSessionCookie":[]}]}},"/admin/accounts":{"get":{"operationId":"admin.accounts.list","summary":"List accounts","description":"Filter by name, email, role, or email verification. Use nextCursor with the same filters.","parameters":[{"in":"query","name":"cursor","schema":{"type":"string","minLength":1,"maxLength":128},"allowEmptyValue":true,"allowReserved":true},{"in":"query","name":"limit","schema":{"type":"integer","minimum":1,"maximum":100},"allowEmptyValue":true,"allowReserved":true},{"in":"query","name":"role","schema":{"type":"string","enum":["member","admin"]},"allowEmptyValue":true,"allowReserved":true},{"in":"query","name":"verification","schema":{"type":"string","enum":["verified","unverified"]},"allowEmptyValue":true,"allowReserved":true},{"in":"query","name":"query","schema":{"type":"string","maxLength":128},"allowEmptyValue":true,"allowReserved":true}],"responses":{"200":{"description":"OK","content":{"application/json":{"schema":{"type":"object","properties":{"items":{"type":"array","items":{"type":"object","properties":{"id":{"type":"string","minLength":1,"maxLength":128},"name":{"type":"string"},"email":{"type":"string","format":"email","pattern":"^(?:[A-Za-z0-9_'+\\-]+\\.)*[A-Za-z0-9_'+\\-]*[A-Za-z0-9_+-]@(?:[A-Za-z0-9][A-Za-z0-9\\-]*\\.)+[A-Za-z]{2,}$"},"role":{"type":"string","enum":["member","admin"]}},"required":["id","name","email","role"],"additionalProperties":false}},"nextCursor":{"anyOf":[{"type":"string","minLength":1,"maxLength":128},{"type":"null"}]}},"required":["items","nextCursor"],"additionalProperties":false}}}},"401":{"description":"Sign in to continue.","content":{"application/json":{"schema":{"oneOf":[{"$ref":"#/components/schemas/Unauthorized"},{"$ref":"#/components/schemas/UndefinedError"}]}}}},"403":{"description":"This action is not permitted.","content":{"application/json":{"schema":{"oneOf":[{"$ref":"#/components/schemas/Forbidden"},{"$ref":"#/components/schemas/UndefinedError"}]}}}},"503":{"description":"Account service is unavailable.","content":{"application/json":{"schema":{"oneOf":[{"$ref":"#/components/schemas/ServiceUnavailable"},{"$ref":"#/components/schemas/UndefinedError"}]}}}}},"security":[{"sessionCookie":[]},{"secureSessionCookie":[]}]}},"/admin/accounts/{id}":{"get":{"operationId":"admin.accounts.get","summary":"Read account details","parameters":[{"in":"path","required":true,"name":"id","schema":{"type":"string","minLength":1,"maxLength":128}}],"responses":{"200":{"description":"OK","content":{"application/json":{"schema":{"type":"object","properties":{"id":{"type":"string","minLength":1,"maxLength":128},"name":{"type":"string"},"email":{"type":"string","format":"email","pattern":"^(?:[A-Za-z0-9_'+\\-]+\\.)*[A-Za-z0-9_'+\\-]*[A-Za-z0-9_+-]@(?:[A-Za-z0-9][A-Za-z0-9\\-]*\\.)+[A-Za-z]{2,}$"},"role":{"type":"string","enum":["member","admin"]},"emailVerified":{"type":"boolean"},"createdAt":{"type":"string","format":"date-time","pattern":"^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))T(?:(?:[01]\\d|2[0-3]):[0-5]\\d:[0-5]\\d(?:\\.\\d+)?(?:Z))$"},"signInMethods":{"type":"array","items":{"type":"string"}},"activeSessions":{"type":"integer","minimum":0,"maximum":9007199254740991}},"required":["id","name","email","role","emailVerified","createdAt","signInMethods","activeSessions"],"additionalProperties":false}}}},"401":{"description":"Sign in to continue.","content":{"application/json":{"schema":{"oneOf":[{"$ref":"#/components/schemas/Unauthorized"},{"$ref":"#/components/schemas/UndefinedError"}]}}}},"403":{"description":"This action is not permitted.","content":{"application/json":{"schema":{"oneOf":[{"$ref":"#/components/schemas/Forbidden"},{"$ref":"#/components/schemas/UndefinedError"}]}}}},"404":{"description":"Account not found.","content":{"application/json":{"schema":{"oneOf":[{"$ref":"#/components/schemas/NotFound"},{"$ref":"#/components/schemas/UndefinedError"}]}}}},"503":{"description":"Account service is unavailable.","content":{"application/json":{"schema":{"oneOf":[{"$ref":"#/components/schemas/ServiceUnavailable"},{"$ref":"#/components/schemas/UndefinedError"}]}}}}},"security":[{"sessionCookie":[]},{"secureSessionCookie":[]}]}},"/admin/accounts/{id}/sign-in-links":{"post":{"operationId":"admin.accounts.signInLinks.create","summary":"Request a one-time login link for an existing account","description":"Requires accounts.sign_in_links.send. Uses the account's registered email and queues delivery.","parameters":[{"in":"path","required":true,"name":"id","schema":{"type":"string","minLength":1,"maxLength":128}},{"in":"header","name":"Origin","required":true,"schema":{"type":"string"},"description":"Must match a configured trusted Web origin."}],"responses":{"200":{"description":"OK","content":{"application/json":{"schema":{"type":"object","properties":{"accepted":{"type":"boolean","const":true}},"required":["accepted"],"additionalProperties":false}}}},"401":{"description":"Sign in to continue.","content":{"application/json":{"schema":{"oneOf":[{"$ref":"#/components/schemas/Unauthorized"},{"$ref":"#/components/schemas/UndefinedError"}]}}}},"403":{"description":"This action is not permitted.","content":{"application/json":{"schema":{"oneOf":[{"$ref":"#/components/schemas/Forbidden"},{"$ref":"#/components/schemas/UndefinedError"}]}}}},"404":{"description":"Account not found.","content":{"application/json":{"schema":{"oneOf":[{"$ref":"#/components/schemas/NotFound"},{"$ref":"#/components/schemas/UndefinedError"}]}}}},"429":{"description":"A sign-in link was recently requested for this account.","content":{"application/json":{"schema":{"oneOf":[{"$ref":"#/components/schemas/TooManyRequests"},{"$ref":"#/components/schemas/UndefinedError"}]}}}},"503":{"description":"Account service is unavailable.","content":{"application/json":{"schema":{"oneOf":[{"$ref":"#/components/schemas/ServiceUnavailable"},{"$ref":"#/components/schemas/UndefinedError"}]}}}}},"security":[{"sessionCookie":[]},{"secureSessionCookie":[]}]}},"/admin/accounts/{id}/sessions":{"delete":{"operationId":"admin.accounts.sessions.revoke","summary":"Revoke another account's active sessions","description":"Requires accounts.sessions.revoke and the trusted Web Origin.","parameters":[{"in":"path","required":true,"name":"id","schema":{"type":"string","minLength":1,"maxLength":128}},{"in":"header","name":"Origin","required":true,"schema":{"type":"string"},"description":"Must match a configured trusted Web origin."}],"requestBody":{"content":{"application/json":{"schema":{"type":"object","properties":{}}}}},"responses":{"200":{"description":"OK","content":{"application/json":{"schema":{"type":"object","properties":{"revoked":{"type":"integer","minimum":0,"maximum":9007199254740991}},"required":["revoked"],"additionalProperties":false}}}},"401":{"description":"Sign in to continue.","content":{"application/json":{"schema":{"oneOf":[{"$ref":"#/components/schemas/Unauthorized"},{"$ref":"#/components/schemas/UndefinedError"}]}}}},"403":{"description":"This action is not permitted.","content":{"application/json":{"schema":{"oneOf":[{"$ref":"#/components/schemas/Forbidden"},{"$ref":"#/components/schemas/UndefinedError"}]}}}},"404":{"description":"Account not found.","content":{"application/json":{"schema":{"oneOf":[{"$ref":"#/components/schemas/NotFound"},{"$ref":"#/components/schemas/UndefinedError"}]}}}},"503":{"description":"Account service is unavailable.","content":{"application/json":{"schema":{"oneOf":[{"$ref":"#/components/schemas/ServiceUnavailable"},{"$ref":"#/components/schemas/UndefinedError"}]}}}}},"security":[{"sessionCookie":[]},{"secureSessionCookie":[]}]}},"/admin/accounts/{id}/role":{"put":{"operationId":"admin.accounts.role.update","summary":"Set another account's role","description":"Requires the trusted Web Origin and forbids changing your own role.","parameters":[{"in":"path","required":true,"name":"id","schema":{"type":"string","minLength":1,"maxLength":128}},{"in":"header","name":"Origin","required":true,"schema":{"type":"string"},"description":"Must match a configured trusted Web origin."}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"type":"object","properties":{"role":{"type":"string","enum":["member","admin"]}},"required":["role"]}}}},"responses":{"200":{"description":"OK","content":{"application/json":{"schema":{"type":"object","properties":{"id":{"type":"string","minLength":1,"maxLength":128},"name":{"type":"string"},"email":{"type":"string","format":"email","pattern":"^(?:[A-Za-z0-9_'+\\-]+\\.)*[A-Za-z0-9_'+\\-]*[A-Za-z0-9_+-]@(?:[A-Za-z0-9][A-Za-z0-9\\-]*\\.)+[A-Za-z]{2,}$"},"role":{"type":"string","enum":["member","admin"]}},"required":["id","name","email","role"],"additionalProperties":false}}}},"401":{"description":"Sign in to continue.","content":{"application/json":{"schema":{"oneOf":[{"$ref":"#/components/schemas/Unauthorized"},{"$ref":"#/components/schemas/UndefinedError"}]}}}},"403":{"description":"This action is not permitted.","content":{"application/json":{"schema":{"oneOf":[{"$ref":"#/components/schemas/Forbidden"},{"$ref":"#/components/schemas/UndefinedError"}]}}}},"404":{"description":"Account not found.","content":{"application/json":{"schema":{"oneOf":[{"$ref":"#/components/schemas/NotFound"},{"$ref":"#/components/schemas/UndefinedError"}]}}}},"503":{"description":"Account service is unavailable.","content":{"application/json":{"schema":{"oneOf":[{"$ref":"#/components/schemas/ServiceUnavailable"},{"$ref":"#/components/schemas/UndefinedError"}]}}}}},"security":[{"sessionCookie":[]},{"secureSessionCookie":[]}]}},"/admin/settings/email":{"get":{"operationId":"admin.settings.email.get","summary":"Read redacted email delivery settings","responses":{"200":{"description":"OK","content":{"application/json":{"schema":{"type":"object","properties":{"enabled":{"type":"boolean"},"from":{"anyOf":[{"type":"string","maxLength":254,"format":"email","pattern":"^(?:[A-Za-z0-9_'+\\-]+\\.)*[A-Za-z0-9_'+\\-]*[A-Za-z0-9_+-]@(?:[A-Za-z0-9][A-Za-z0-9\\-]*\\.)+[A-Za-z]{2,}$"},{"type":"null"}]},"hasApiKey":{"type":"boolean"}},"required":["enabled","from","hasApiKey"],"additionalProperties":false}}}},"401":{"description":"Sign in to continue.","content":{"application/json":{"schema":{"oneOf":[{"$ref":"#/components/schemas/Unauthorized"},{"$ref":"#/components/schemas/UndefinedError"}]}}}},"403":{"description":"This action is not permitted.","content":{"application/json":{"schema":{"oneOf":[{"$ref":"#/components/schemas/Forbidden"},{"$ref":"#/components/schemas/UndefinedError"}]}}}},"503":{"description":"Account service is unavailable.","content":{"application/json":{"schema":{"oneOf":[{"$ref":"#/components/schemas/ServiceUnavailable"},{"$ref":"#/components/schemas/UndefinedError"}]}}}}},"security":[{"sessionCookie":[]},{"secureSessionCookie":[]}]},"put":{"operationId":"admin.settings.email.update","summary":"Configure instance email delivery","requestBody":{"required":true,"content":{"application/json":{"schema":{"type":"object","properties":{"enabled":{"type":"boolean"},"from":{"anyOf":[{"type":"string","maxLength":254,"format":"email","pattern":"^(?:[A-Za-z0-9_'+\\-]+\\.)*[A-Za-z0-9_'+\\-]*[A-Za-z0-9_+-]@(?:[A-Za-z0-9][A-Za-z0-9\\-]*\\.)+[A-Za-z]{2,}$"},{"type":"null"}]},"apiKey":{"anyOf":[{"type":"string","minLength":1,"maxLength":2048},{"type":"null"}]}},"required":["enabled","from"],"additionalProperties":false}}}},"responses":{"200":{"description":"OK","content":{"application/json":{"schema":{"type":"object","properties":{"enabled":{"type":"boolean"},"from":{"anyOf":[{"type":"string","maxLength":254,"format":"email","pattern":"^(?:[A-Za-z0-9_'+\\-]+\\.)*[A-Za-z0-9_'+\\-]*[A-Za-z0-9_+-]@(?:[A-Za-z0-9][A-Za-z0-9\\-]*\\.)+[A-Za-z]{2,}$"},{"type":"null"}]},"hasApiKey":{"type":"boolean"}},"required":["enabled","from","hasApiKey"],"additionalProperties":false}}}},"400":{"description":"An enabled sender requires an address and API key.","content":{"application/json":{"schema":{"oneOf":[{"$ref":"#/components/schemas/BadRequest"},{"$ref":"#/components/schemas/UndefinedError"}]}}}},"401":{"description":"Sign in to continue.","content":{"application/json":{"schema":{"oneOf":[{"$ref":"#/components/schemas/Unauthorized"},{"$ref":"#/components/schemas/UndefinedError"}]}}}},"403":{"description":"This action is not permitted.","content":{"application/json":{"schema":{"oneOf":[{"$ref":"#/components/schemas/Forbidden"},{"$ref":"#/components/schemas/UndefinedError"}]}}}},"503":{"description":"Account service is unavailable.","content":{"application/json":{"schema":{"oneOf":[{"$ref":"#/components/schemas/ServiceUnavailable"},{"$ref":"#/components/schemas/UndefinedError"}]}}}}},"security":[{"sessionCookie":[]},{"secureSessionCookie":[]}],"parameters":[{"in":"header","name":"Origin","required":true,"schema":{"type":"string"},"description":"Must match a configured trusted Web origin."}]}},"/admin/settings/directory":{"get":{"operationId":"admin.settings.directory.get","summary":"Read instance directory settings","responses":{"200":{"description":"OK","content":{"application/json":{"schema":{"type":"object","properties":{"pageSize":{"type":"integer","minimum":1,"maximum":100}},"required":["pageSize"],"additionalProperties":false}}}},"401":{"description":"Sign in to continue.","content":{"application/json":{"schema":{"oneOf":[{"$ref":"#/components/schemas/Unauthorized"},{"$ref":"#/components/schemas/UndefinedError"}]}}}},"403":{"description":"This action is not permitted.","content":{"application/json":{"schema":{"oneOf":[{"$ref":"#/components/schemas/Forbidden"},{"$ref":"#/components/schemas/UndefinedError"}]}}}},"503":{"description":"Account service is unavailable.","content":{"application/json":{"schema":{"oneOf":[{"$ref":"#/components/schemas/ServiceUnavailable"},{"$ref":"#/components/schemas/UndefinedError"}]}}}}},"security":[{"sessionCookie":[]},{"secureSessionCookie":[]}]},"put":{"operationId":"admin.settings.directory.update","summary":"Save instance directory settings","requestBody":{"required":true,"content":{"application/json":{"schema":{"type":"object","properties":{"pageSize":{"type":"integer","minimum":1,"maximum":100}},"required":["pageSize"],"additionalProperties":false}}}},"responses":{"200":{"description":"OK","content":{"application/json":{"schema":{"type":"object","properties":{"pageSize":{"type":"integer","minimum":1,"maximum":100}},"required":["pageSize"],"additionalProperties":false}}}},"401":{"description":"Sign in to continue.","content":{"application/json":{"schema":{"oneOf":[{"$ref":"#/components/schemas/Unauthorized"},{"$ref":"#/components/schemas/UndefinedError"}]}}}},"403":{"description":"This action is not permitted.","content":{"application/json":{"schema":{"oneOf":[{"$ref":"#/components/schemas/Forbidden"},{"$ref":"#/components/schemas/UndefinedError"}]}}}},"503":{"description":"Account service is unavailable.","content":{"application/json":{"schema":{"oneOf":[{"$ref":"#/components/schemas/ServiceUnavailable"},{"$ref":"#/components/schemas/UndefinedError"}]}}}}},"security":[{"sessionCookie":[]},{"secureSessionCookie":[]}],"parameters":[{"in":"header","name":"Origin","required":true,"schema":{"type":"string"},"description":"Must match a configured trusted Web origin."}]}},"/files":{"get":{"operationId":"files.list","summary":"List your files and account quota","responses":{"200":{"description":"OK","content":{"application/json":{"schema":{"type":"object","properties":{"items":{"type":"array","items":{"type":"object","properties":{"id":{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"},"name":{"type":"string","minLength":1,"maxLength":255},"size":{"type":"integer","minimum":0,"maximum":26214400},"createdAt":{"type":"string","format":"date-time","pattern":"^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))T(?:(?:[01]\\d|2[0-3]):[0-5]\\d:[0-5]\\d(?:\\.\\d+)?(?:Z))$"}},"required":["id","name","size","createdAt"],"additionalProperties":false}},"quota":{"type":"object","properties":{"usedBytes":{"type":"integer","minimum":0,"maximum":9007199254740991},"reservedBytes":{"type":"integer","minimum":0,"maximum":9007199254740991},"limitBytes":{"type":"integer","exclusiveMinimum":0,"maximum":9007199254740991}},"required":["usedBytes","reservedBytes","limitBytes"],"additionalProperties":false}},"required":["items","quota"],"additionalProperties":false}}}},"401":{"description":"Sign in to continue.","content":{"application/json":{"schema":{"oneOf":[{"$ref":"#/components/schemas/Unauthorized"},{"$ref":"#/components/schemas/UndefinedError"}]}}}},"403":{"description":"This action is not permitted.","content":{"application/json":{"schema":{"oneOf":[{"$ref":"#/components/schemas/Forbidden"},{"$ref":"#/components/schemas/UndefinedError"}]}}}},"503":{"description":"File storage is unavailable.","content":{"application/json":{"schema":{"oneOf":[{"$ref":"#/components/schemas/ServiceUnavailable"},{"$ref":"#/components/schemas/UndefinedError"}]}}}}},"security":[{"sessionCookie":[]},{"secureSessionCookie":[]}]}},"/files/{id}":{"delete":{"operationId":"files.delete","summary":"Delete your file","parameters":[{"in":"path","required":true,"name":"id","schema":{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"}},{"in":"header","name":"Origin","required":true,"schema":{"type":"string"},"description":"Must match a configured trusted Web origin."}],"responses":{"200":{"description":"OK","content":{"application/json":{"schema":{"type":"object","properties":{"deleted":{"type":"boolean","const":true}},"required":["deleted"],"additionalProperties":false}}}},"401":{"description":"Sign in to continue.","content":{"application/json":{"schema":{"oneOf":[{"$ref":"#/components/schemas/Unauthorized"},{"$ref":"#/components/schemas/UndefinedError"}]}}}},"403":{"description":"This action is not permitted.","content":{"application/json":{"schema":{"oneOf":[{"$ref":"#/components/schemas/Forbidden"},{"$ref":"#/components/schemas/UndefinedError"}]}}}},"404":{"description":"File not found.","content":{"application/json":{"schema":{"oneOf":[{"$ref":"#/components/schemas/NotFound"},{"$ref":"#/components/schemas/UndefinedError"}]}}}},"503":{"description":"File storage is unavailable.","content":{"application/json":{"schema":{"oneOf":[{"$ref":"#/components/schemas/ServiceUnavailable"},{"$ref":"#/components/schemas/UndefinedError"}]}}}}},"security":[{"sessionCookie":[]},{"secureSessionCookie":[]}]}},"/orgs/{orgId}/board":{"get":{"operationId":"orgs.board.get","summary":"Read an organization board","parameters":[{"in":"path","required":true,"name":"orgId","schema":{"type":"string","minLength":1,"maxLength":128}}],"responses":{"200":{"description":"OK","content":{"application/json":{"schema":{"type":"object","properties":{"revision":{"type":"integer","minimum":0,"maximum":2147483647},"tasks":{"type":"array","items":{"type":"object","properties":{"id":{"type":"string","minLength":1,"maxLength":128},"title":{"type":"string","minLength":1,"maxLength":140},"note":{"type":"string","maxLength":2000},"stage":{"type":"string","enum":["todo","active","done"]}},"required":["id","title","note","stage"],"additionalProperties":false}}},"required":["revision","tasks"],"additionalProperties":false}}}},"401":{"description":"Sign in to continue.","content":{"application/json":{"schema":{"oneOf":[{"$ref":"#/components/schemas/Unauthorized"},{"$ref":"#/components/schemas/UndefinedError"}]}}}},"403":{"description":"This action is not permitted.","content":{"application/json":{"schema":{"oneOf":[{"$ref":"#/components/schemas/Forbidden"},{"$ref":"#/components/schemas/UndefinedError"}]}}}},"404":{"description":"Team board not found.","content":{"application/json":{"schema":{"oneOf":[{"$ref":"#/components/schemas/NotFound"},{"$ref":"#/components/schemas/UndefinedError"}]}}}},"503":{"description":"Account service is unavailable.","content":{"application/json":{"schema":{"oneOf":[{"$ref":"#/components/schemas/ServiceUnavailable"},{"$ref":"#/components/schemas/UndefinedError"}]}}}}},"security":[{"sessionCookie":[]},{"secureSessionCookie":[]}]},"put":{"operationId":"orgs.board.update","summary":"Save a revision of an organization board","parameters":[{"in":"path","required":true,"name":"orgId","schema":{"type":"string","minLength":1,"maxLength":128}},{"in":"header","name":"Origin","required":true,"schema":{"type":"string"},"description":"Must match a configured trusted Web origin."}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"type":"object","properties":{"revision":{"type":"integer","minimum":0,"maximum":2147483647},"tasks":{"type":"array","items":{"type":"object","properties":{"id":{"type":"string","minLength":1,"maxLength":128},"title":{"type":"string","minLength":1,"maxLength":140},"note":{"type":"string","maxLength":2000},"stage":{"type":"string","enum":["todo","active","done"]}},"required":["id","title","note","stage"]}}},"required":["revision","tasks"],"additionalProperties":false}}}},"responses":{"200":{"description":"OK","content":{"application/json":{"schema":{"type":"object","properties":{"revision":{"type":"integer","minimum":0,"maximum":2147483647},"tasks":{"type":"array","items":{"type":"object","properties":{"id":{"type":"string","minLength":1,"maxLength":128},"title":{"type":"string","minLength":1,"maxLength":140},"note":{"type":"string","maxLength":2000},"stage":{"type":"string","enum":["todo","active","done"]}},"required":["id","title","note","stage"],"additionalProperties":false}}},"required":["revision","tasks"],"additionalProperties":false}}}},"401":{"description":"Sign in to continue.","content":{"application/json":{"schema":{"oneOf":[{"$ref":"#/components/schemas/Unauthorized"},{"$ref":"#/components/schemas/UndefinedError"}]}}}},"403":{"description":"This action is not permitted.","content":{"application/json":{"schema":{"oneOf":[{"$ref":"#/components/schemas/Forbidden"},{"$ref":"#/components/schemas/UndefinedError"}]}}}},"404":{"description":"Team board not found.","content":{"application/json":{"schema":{"oneOf":[{"$ref":"#/components/schemas/NotFound"},{"$ref":"#/components/schemas/UndefinedError"}]}}}},"409":{"description":"The board has a newer revision.","content":{"application/json":{"schema":{"oneOf":[{"$ref":"#/components/schemas/Conflict"},{"$ref":"#/components/schemas/UndefinedError"}]}}}},"503":{"description":"Account service is unavailable.","content":{"application/json":{"schema":{"oneOf":[{"$ref":"#/components/schemas/ServiceUnavailable"},{"$ref":"#/components/schemas/UndefinedError"}]}}}}},"security":[{"sessionCookie":[]},{"secureSessionCookie":[]}]}},"/orgs/{orgId}/board/watch":{"get":{"operationId":"orgs.board.watch","summary":"Check for changes to an organization board","parameters":[{"in":"path","required":true,"name":"orgId","schema":{"type":"string","minLength":1,"maxLength":128}},{"in":"query","name":"revision","schema":{"type":"integer","minimum":0,"maximum":2147483647},"allowEmptyValue":true,"allowReserved":true,"required":true}],"responses":{"200":{"description":"OK","content":{"application/json":{"schema":{"type":"object","properties":{"changed":{"type":"boolean"},"retryAfterMs":{"type":"integer","minimum":0,"maximum":9007199254740991}},"required":["changed","retryAfterMs"],"additionalProperties":false}}}},"401":{"description":"Sign in to continue.","content":{"application/json":{"schema":{"oneOf":[{"$ref":"#/components/schemas/Unauthorized"},{"$ref":"#/components/schemas/UndefinedError"}]}}}},"403":{"description":"This action is not permitted.","content":{"application/json":{"schema":{"oneOf":[{"$ref":"#/components/schemas/Forbidden"},{"$ref":"#/components/schemas/UndefinedError"}]}}}},"404":{"description":"Team board not found.","content":{"application/json":{"schema":{"oneOf":[{"$ref":"#/components/schemas/NotFound"},{"$ref":"#/components/schemas/UndefinedError"}]}}}},"503":{"description":"Account service is unavailable.","content":{"application/json":{"schema":{"oneOf":[{"$ref":"#/components/schemas/ServiceUnavailable"},{"$ref":"#/components/schemas/UndefinedError"}]}}}}},"security":[{"sessionCookie":[]},{"secureSessionCookie":[]}]}}}}