{"openapi":"3.1.0","info":{"title":"cmmd-api","version":"1","description":"CMMD's API. Sign in to CMMD on this host so the browser sends its session cookie, and send the organization's id in `x-organization-id` and, to filter by one of its teams, the team's id in `x-team-id`. Every error is an RFC 9457 problem."},"servers":[{"url":"/"}],"paths":{"/me":{"get":{"operationId":"Me_me","summary":"Who is calling","tags":["Me"],"security":[{"session":[]}],"parameters":[],"responses":{"200":{"description":"OK","content":{"application/json":{"schema":{"type":"object","properties":{"request_id":{"type":"string"},"actor":{"type":"object","properties":{"type":{"type":"string","enum":["user","agent","external_agent","system"]},"user_id":{"type":"number"}},"required":["type"],"additionalProperties":false},"user":{"anyOf":[{"type":"object","properties":{"username":{"type":"string"},"first_name":{"type":"string"},"last_name":{"type":"string"},"email":{"type":"string"},"avatar_url":{"type":["string","null"]},"timezone":{"type":["string","null"]},"show_family_org":{"type":"boolean"}},"required":["username","first_name","last_name","email","avatar_url","timezone","show_family_org"],"additionalProperties":false},{"type":"null"}]},"organizations":{"type":"array","items":{"type":"object","properties":{"id":{"type":"number"},"name":{"type":"string"},"slug":{"type":"string"},"type":{"type":"string","enum":["company","team","personal","family"]},"is_default":{"type":"boolean"},"icon":{"type":"object","properties":{"url":{"type":["string","null"]},"url_dark":{"type":["string","null"]},"bg":{"type":["string","null"]},"bg_dark":{"type":["string","null"]},"text":{"type":["string","null"]}},"required":["url","url_dark","bg","bg_dark","text"],"additionalProperties":false},"teams":{"type":"array","items":{"type":"object","properties":{"id":{"type":"number"},"name":{"type":"string"},"color":{"type":"string"},"is_leader":{"type":"boolean"}},"required":["id","name","color","is_leader"],"additionalProperties":false}},"role":{"type":"string"},"permissions":{"type":"array","items":{"type":"string"}},"apps":{"type":"array","items":{"type":"object","properties":{"key":{"type":"string"},"status":{"type":"string","enum":["enabled","unpaid"]}},"required":["key","status"],"additionalProperties":false}},"apps_unavailable":{"type":"boolean"}},"required":["id","name","slug","type","is_default","icon","teams","role","permissions","apps","apps_unavailable"],"additionalProperties":false}}},"required":["request_id","actor","user","organizations"],"additionalProperties":false}}}},"401":{"description":"Unauthorized","content":{"application/problem+json":{"schema":{"$ref":"#/components/schemas/Problem"},"examples":{"auth.unauthenticated":{"value":{"type":"https://cmmd.ai/problems/auth.unauthenticated","title":"Unauthorized","status":401,"detail":"Sign in to continue","code":"auth.unauthenticated","request_id":"0199f1c2-7d4e-7a31-9b5f-2c8d4e6f8a10"}}}}}}}}},"/session":{"post":{"operationId":"Session_signIn","summary":"Sign in with email and password","tags":["Session"],"security":[],"parameters":[],"requestBody":{"required":true,"content":{"application/json":{"schema":{"type":"object","properties":{"email":{"type":"string"},"password":{"type":"string","minLength":1,"maxLength":1024}},"required":["email","password"]}}}},"responses":{"200":{"description":"OK","content":{"application/json":{"schema":{"type":"object","properties":{"user_id":{"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991},"expires_at":{"type":"string","format":"date-time"}},"required":["user_id","expires_at"],"additionalProperties":false}}}},"400":{"description":"Bad Request","content":{"application/problem+json":{"schema":{"$ref":"#/components/schemas/InvalidInputProblem"},"examples":{"pipeline.invalid_input":{"value":{"type":"https://cmmd.ai/problems/pipeline.invalid_input","title":"Bad Request","status":400,"detail":"Some fields are missing or not valid","code":"pipeline.invalid_input","details":{"errors":[{"pointer":"#/email","code":"invalid_type","expected":"string","detail":"Invalid input: expected string, received undefined"},{"pointer":"#/password","code":"invalid_type","expected":"string","detail":"Invalid input: expected string, received undefined"}]},"request_id":"0199f1c2-7d4e-7a31-9b5f-2c8d4e6f8a10"}}}}}},"401":{"description":"Unauthorized","content":{"application/problem+json":{"schema":{"$ref":"#/components/schemas/Problem"},"examples":{"auth.invalid_credentials":{"value":{"type":"https://cmmd.ai/problems/auth.invalid_credentials","title":"Unauthorized","status":401,"detail":"That email and password do not match an account; check them and sign in again","code":"auth.invalid_credentials","request_id":"0199f1c2-7d4e-7a31-9b5f-2c8d4e6f8a10"}},"auth.account_inactive":{"value":{"type":"https://cmmd.ai/problems/auth.account_inactive","title":"Unauthorized","status":401,"detail":"This account is not active; ask your administrator to restore it","code":"auth.account_inactive","request_id":"0199f1c2-7d4e-7a31-9b5f-2c8d4e6f8a10"}},"auth.account_locked":{"value":{"type":"https://cmmd.ai/problems/auth.account_locked","title":"Unauthorized","status":401,"detail":"This account is locked after too many failed sign-ins; try again later","code":"auth.account_locked","details":{"locked_until":"1970-01-01T00:00:00.000Z"},"retryable":true,"request_id":"0199f1c2-7d4e-7a31-9b5f-2c8d4e6f8a10"}}}}}},"429":{"description":"Too Many Requests","content":{"application/problem+json":{"schema":{"$ref":"#/components/schemas/Problem"},"examples":{"auth.too_many_sign_in_attempts":{"value":{"type":"https://cmmd.ai/problems/auth.too_many_sign_in_attempts","title":"Too Many Requests","status":429,"detail":"Too many sign-in attempts; wait a few minutes and try again","code":"auth.too_many_sign_in_attempts","details":{"retry_after_seconds":60},"retryable":true,"request_id":"0199f1c2-7d4e-7a31-9b5f-2c8d4e6f8a10"}}}}}},"503":{"description":"Service Unavailable","content":{"application/problem+json":{"schema":{"$ref":"#/components/schemas/Problem"},"examples":{"auth.sign_in_unavailable":{"value":{"type":"https://cmmd.ai/problems/auth.sign_in_unavailable","title":"Service Unavailable","status":503,"detail":"Signing in is not available right now; try again","code":"auth.sign_in_unavailable","retryable":true,"request_id":"0199f1c2-7d4e-7a31-9b5f-2c8d4e6f8a10"}}}}}}}},"delete":{"operationId":"Session_signOut","summary":"Sign out","tags":["Session"],"security":[],"parameters":[],"responses":{"200":{"description":"OK","content":{"application/json":{"schema":{"type":"object","properties":{"deleted_at":{"type":"string","format":"date-time"}},"required":["deleted_at"],"additionalProperties":false}}}}}}},"/v1/role-permissions/{role}":{"patch":{"operationId":"RolePermissions_update","summary":"Change some permissions of a role: give, take away or back to the role's default, each on its own","description":"Needs the `auth.edit_roles` permission in the organization.","tags":["RolePermissions"],"security":[{"session":[],"organization":[]}],"parameters":[{"name":"role","in":"path","required":true,"schema":{"type":"string","enum":["admin","manager","member","viewer"]}},{"name":"x-team-id","in":"header","required":false,"description":"One of the organization's active teams you are in, to filter by; missing, empty or `all` is every team.","schema":{"type":"string","pattern":"^([1-9][0-9]*|all)?$"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"type":"object","properties":{"changes":{"minItems":1,"maxItems":200,"type":"array","items":{"type":"object","properties":{"permission":{"type":"string","maxLength":200},"effect":{"type":"string","enum":["grant","revoke","default"]}},"required":["permission","effect"]}}},"required":["changes"]}}}},"responses":{"200":{"description":"OK","content":{"application/json":{"schema":{"type":"object","properties":{"role":{"type":"string","enum":["admin","manager","member","viewer"]},"changes":{"type":"array","items":{"type":"object","properties":{"permission":{"type":"string"},"effect":{"type":"string","enum":["grant","revoke"]},"updated_by":{"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991},"updated_at":{"type":"string","format":"date-time"}},"required":["permission","effect","updated_by","updated_at"],"additionalProperties":false}}},"required":["role","changes"],"additionalProperties":false}}}},"400":{"description":"Bad Request","content":{"application/problem+json":{"schema":{"anyOf":[{"$ref":"#/components/schemas/Problem"},{"$ref":"#/components/schemas/InvalidInputProblem"}]},"examples":{"auth.organization_required":{"value":{"type":"https://cmmd.ai/problems/auth.organization_required","title":"Bad Request","status":400,"detail":"Choose an organization to continue","code":"auth.organization_required","request_id":"0199f1c2-7d4e-7a31-9b5f-2c8d4e6f8a10"}},"auth.invalid_team":{"value":{"type":"https://cmmd.ai/problems/auth.invalid_team","title":"Bad Request","status":400,"detail":"The selected team is not valid; choose another team or all teams","code":"auth.invalid_team","request_id":"0199f1c2-7d4e-7a31-9b5f-2c8d4e6f8a10"}},"pipeline.invalid_input":{"value":{"type":"https://cmmd.ai/problems/pipeline.invalid_input","title":"Bad Request","status":400,"detail":"Some fields are missing or not valid","code":"pipeline.invalid_input","details":{"errors":[{"pointer":"#/changes","code":"invalid_type","expected":"array","detail":"Invalid input: expected array, received undefined"}]},"request_id":"0199f1c2-7d4e-7a31-9b5f-2c8d4e6f8a10"}},"auth.unknown_permission":{"value":{"type":"https://cmmd.ai/problems/auth.unknown_permission","title":"Bad Request","status":400,"detail":"That permission does not exist; choose one from the list of permissions","code":"auth.unknown_permission","details":{"errors":[{"pointer":"#/permission","code":"unknown_permission","detail":"No module declares notes.read"}]},"request_id":"0199f1c2-7d4e-7a31-9b5f-2c8d4e6f8a10"}},"auth.permission_not_grantable":{"value":{"type":"https://cmmd.ai/problems/auth.permission_not_grantable","title":"Bad Request","status":400,"detail":"That permission cannot be given to a role or a person; only the owner holds it","code":"auth.permission_not_grantable","details":{"errors":[{"pointer":"#/permission","code":"permission_not_grantable","detail":"auth.grant cannot be given"}]},"request_id":"0199f1c2-7d4e-7a31-9b5f-2c8d4e6f8a10"}}}}}},"401":{"description":"Unauthorized","content":{"application/problem+json":{"schema":{"$ref":"#/components/schemas/Problem"},"examples":{"auth.unauthenticated":{"value":{"type":"https://cmmd.ai/problems/auth.unauthenticated","title":"Unauthorized","status":401,"detail":"Sign in to continue","code":"auth.unauthenticated","request_id":"0199f1c2-7d4e-7a31-9b5f-2c8d4e6f8a10"}}}}}},"403":{"description":"Forbidden","content":{"application/problem+json":{"schema":{"$ref":"#/components/schemas/Problem"},"examples":{"auth.not_a_member":{"value":{"type":"https://cmmd.ai/problems/auth.not_a_member","title":"Forbidden","status":403,"detail":"You are not an active member of this organization","code":"auth.not_a_member","request_id":"0199f1c2-7d4e-7a31-9b5f-2c8d4e6f8a10"}},"auth.not_a_team_member":{"value":{"type":"https://cmmd.ai/problems/auth.not_a_team_member","title":"Forbidden","status":403,"detail":"You are not a member of the selected team; choose another team or all teams","code":"auth.not_a_team_member","request_id":"0199f1c2-7d4e-7a31-9b5f-2c8d4e6f8a10"}},"auth.missing_permission":{"value":{"type":"https://cmmd.ai/problems/auth.missing_permission","title":"Forbidden","status":403,"detail":"You don't have permission to do this; ask an owner or an admin of your organization","code":"auth.missing_permission","details":{"permission":"auth.edit_roles"},"request_id":"0199f1c2-7d4e-7a31-9b5f-2c8d4e6f8a10"}},"auth.person_required":{"value":{"type":"https://cmmd.ai/problems/auth.person_required","title":"Forbidden","status":403,"detail":"Only a signed-in person can do this","code":"auth.person_required","request_id":"0199f1c2-7d4e-7a31-9b5f-2c8d4e6f8a10"}}}}}},"404":{"description":"Not Found","content":{"application/problem+json":{"schema":{"$ref":"#/components/schemas/Problem"},"examples":{"auth.team_not_found":{"value":{"type":"https://cmmd.ai/problems/auth.team_not_found","title":"Not Found","status":404,"detail":"The selected team was not found; choose another team or all teams","code":"auth.team_not_found","request_id":"0199f1c2-7d4e-7a31-9b5f-2c8d4e6f8a10"}}}}}},"409":{"description":"Conflict","content":{"application/problem+json":{"schema":{"$ref":"#/components/schemas/Problem"},"examples":{"auth.role_permissions_changed":{"value":{"type":"https://cmmd.ai/problems/auth.role_permissions_changed","title":"Conflict","status":409,"detail":"Someone changed this role at the same time; try again","code":"auth.role_permissions_changed","details":{"role":"member","permission":"notes.read"},"retryable":true,"request_id":"0199f1c2-7d4e-7a31-9b5f-2c8d4e6f8a10"}}}}}}}}},"/v1/member-permissions":{"post":{"operationId":"MemberPermissions_create","summary":"Give a member a permission on top of their role, with a reason and an optional end; the same permission again renews it","description":"Needs the `auth.grant` permission in the organization.","tags":["MemberPermissions"],"security":[{"session":[],"organization":[]}],"parameters":[{"name":"x-team-id","in":"header","required":false,"description":"One of the organization's active teams you are in, to filter by; missing, empty or `all` is every team.","schema":{"type":"string","pattern":"^([1-9][0-9]*|all)?$"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"type":"object","properties":{"user_id":{"type":"integer","exclusiveMinimum":0,"maximum":9007199254740991},"permission":{"type":"string","maxLength":200},"reason":{"type":"string","minLength":1,"maxLength":500},"expires_at":{"anyOf":[{"type":"string","format":"date-time"},{"type":"null"}]}},"required":["user_id","permission","reason","expires_at"]}}}},"responses":{"201":{"description":"Created","content":{"application/json":{"schema":{"type":"object","properties":{"id":{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"},"permission":{"type":"string"},"reason":{"type":"string"},"expires_at":{"anyOf":[{"type":"string","format":"date-time"},{"type":"null"}]},"granted_by":{"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991},"granted_at":{"type":"string","format":"date-time"},"user_id":{"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991}},"required":["id","permission","reason","expires_at","granted_by","granted_at","user_id"],"additionalProperties":false}}}},"400":{"description":"Bad Request","content":{"application/problem+json":{"schema":{"anyOf":[{"$ref":"#/components/schemas/Problem"},{"$ref":"#/components/schemas/InvalidInputProblem"}]},"examples":{"auth.organization_required":{"value":{"type":"https://cmmd.ai/problems/auth.organization_required","title":"Bad Request","status":400,"detail":"Choose an organization to continue","code":"auth.organization_required","request_id":"0199f1c2-7d4e-7a31-9b5f-2c8d4e6f8a10"}},"auth.invalid_team":{"value":{"type":"https://cmmd.ai/problems/auth.invalid_team","title":"Bad Request","status":400,"detail":"The selected team is not valid; choose another team or all teams","code":"auth.invalid_team","request_id":"0199f1c2-7d4e-7a31-9b5f-2c8d4e6f8a10"}},"pipeline.invalid_input":{"value":{"type":"https://cmmd.ai/problems/pipeline.invalid_input","title":"Bad Request","status":400,"detail":"Some fields are missing or not valid","code":"pipeline.invalid_input","details":{"errors":[{"pointer":"#/user_id","code":"invalid_type","expected":"number","detail":"Invalid input: expected number, received NaN"},{"pointer":"#/permission","code":"invalid_type","expected":"string","detail":"Invalid input: expected string, received undefined"},{"pointer":"#/reason","code":"invalid_type","expected":"string","detail":"Invalid input: expected string, received undefined"},{"pointer":"#/expires_at","code":"invalid_type","expected":"date","detail":"Invalid input: expected date, received Date"}]},"request_id":"0199f1c2-7d4e-7a31-9b5f-2c8d4e6f8a10"}},"auth.unknown_permission":{"value":{"type":"https://cmmd.ai/problems/auth.unknown_permission","title":"Bad Request","status":400,"detail":"That permission does not exist; choose one from the list of permissions","code":"auth.unknown_permission","details":{"errors":[{"pointer":"#/permission","code":"unknown_permission","detail":"No module declares notes.read"}]},"request_id":"0199f1c2-7d4e-7a31-9b5f-2c8d4e6f8a10"}},"auth.permission_not_grantable":{"value":{"type":"https://cmmd.ai/problems/auth.permission_not_grantable","title":"Bad Request","status":400,"detail":"That permission cannot be given to a role or a person; only the owner holds it","code":"auth.permission_not_grantable","details":{"errors":[{"pointer":"#/permission","code":"permission_not_grantable","detail":"auth.grant cannot be given"}]},"request_id":"0199f1c2-7d4e-7a31-9b5f-2c8d4e6f8a10"}},"auth.expiry_in_past":{"value":{"type":"https://cmmd.ai/problems/auth.expiry_in_past","title":"Bad Request","status":400,"detail":"The end date has already passed; choose a later one or none","code":"auth.expiry_in_past","details":{"errors":[{"pointer":"#/expires_at","code":"expiry_in_past","detail":"The end date must be in the future"}]},"request_id":"0199f1c2-7d4e-7a31-9b5f-2c8d4e6f8a10"}}}}}},"401":{"description":"Unauthorized","content":{"application/problem+json":{"schema":{"$ref":"#/components/schemas/Problem"},"examples":{"auth.unauthenticated":{"value":{"type":"https://cmmd.ai/problems/auth.unauthenticated","title":"Unauthorized","status":401,"detail":"Sign in to continue","code":"auth.unauthenticated","request_id":"0199f1c2-7d4e-7a31-9b5f-2c8d4e6f8a10"}}}}}},"403":{"description":"Forbidden","content":{"application/problem+json":{"schema":{"$ref":"#/components/schemas/Problem"},"examples":{"auth.not_a_member":{"value":{"type":"https://cmmd.ai/problems/auth.not_a_member","title":"Forbidden","status":403,"detail":"You are not an active member of this organization","code":"auth.not_a_member","request_id":"0199f1c2-7d4e-7a31-9b5f-2c8d4e6f8a10"}},"auth.not_a_team_member":{"value":{"type":"https://cmmd.ai/problems/auth.not_a_team_member","title":"Forbidden","status":403,"detail":"You are not a member of the selected team; choose another team or all teams","code":"auth.not_a_team_member","request_id":"0199f1c2-7d4e-7a31-9b5f-2c8d4e6f8a10"}},"auth.missing_permission":{"value":{"type":"https://cmmd.ai/problems/auth.missing_permission","title":"Forbidden","status":403,"detail":"You don't have permission to do this; ask an owner or an admin of your organization","code":"auth.missing_permission","details":{"permission":"auth.grant"},"request_id":"0199f1c2-7d4e-7a31-9b5f-2c8d4e6f8a10"}},"auth.person_required":{"value":{"type":"https://cmmd.ai/problems/auth.person_required","title":"Forbidden","status":403,"detail":"Only a signed-in person can do this","code":"auth.person_required","request_id":"0199f1c2-7d4e-7a31-9b5f-2c8d4e6f8a10"}},"auth.self_grant":{"value":{"type":"https://cmmd.ai/problems/auth.self_grant","title":"Forbidden","status":403,"detail":"You cannot give a permission to yourself; ask another owner or admin","code":"auth.self_grant","request_id":"0199f1c2-7d4e-7a31-9b5f-2c8d4e6f8a10"}},"auth.permission_not_held":{"value":{"type":"https://cmmd.ai/problems/auth.permission_not_held","title":"Forbidden","status":403,"detail":"You can only give a permission you have yourself","code":"auth.permission_not_held","request_id":"0199f1c2-7d4e-7a31-9b5f-2c8d4e6f8a10"}}}}}},"404":{"description":"Not Found","content":{"application/problem+json":{"schema":{"$ref":"#/components/schemas/Problem"},"examples":{"auth.team_not_found":{"value":{"type":"https://cmmd.ai/problems/auth.team_not_found","title":"Not Found","status":404,"detail":"The selected team was not found; choose another team or all teams","code":"auth.team_not_found","request_id":"0199f1c2-7d4e-7a31-9b5f-2c8d4e6f8a10"}},"auth.member_not_found":{"value":{"type":"https://cmmd.ai/problems/auth.member_not_found","title":"Not Found","status":404,"detail":"That person is not a member of this organization","code":"auth.member_not_found","details":{"user_id":0},"request_id":"0199f1c2-7d4e-7a31-9b5f-2c8d4e6f8a10"}}}}}},"409":{"description":"Conflict","content":{"application/problem+json":{"schema":{"$ref":"#/components/schemas/Problem"},"examples":{"auth.member_permission_changed":{"value":{"type":"https://cmmd.ai/problems/auth.member_permission_changed","title":"Conflict","status":409,"detail":"Someone changed this person's permissions at the same time; try again","code":"auth.member_permission_changed","details":{"user_id":0,"permission":"notes.read"},"retryable":true,"request_id":"0199f1c2-7d4e-7a31-9b5f-2c8d4e6f8a10"}}}}}}}}},"/v1/member-permissions/{member_permission_id}":{"delete":{"operationId":"MemberPermissions_delete","summary":"Take away a permission given to a member, at once","description":"Needs the `auth.grant` permission in the organization.","tags":["MemberPermissions"],"security":[{"session":[],"organization":[]}],"parameters":[{"name":"member_permission_id","in":"path","required":true,"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)$"}},{"name":"x-team-id","in":"header","required":false,"description":"One of the organization's active teams you are in, to filter by; missing, empty or `all` is every team.","schema":{"type":"string","pattern":"^([1-9][0-9]*|all)?$"}}],"responses":{"200":{"description":"OK","content":{"application/json":{"schema":{"type":"object","properties":{"id":{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"},"deleted_at":{"type":"string","format":"date-time"}},"required":["id","deleted_at"],"additionalProperties":false}}}},"400":{"description":"Bad Request","content":{"application/problem+json":{"schema":{"anyOf":[{"$ref":"#/components/schemas/Problem"},{"$ref":"#/components/schemas/InvalidInputProblem"}]},"examples":{"auth.organization_required":{"value":{"type":"https://cmmd.ai/problems/auth.organization_required","title":"Bad Request","status":400,"detail":"Choose an organization to continue","code":"auth.organization_required","request_id":"0199f1c2-7d4e-7a31-9b5f-2c8d4e6f8a10"}},"auth.invalid_team":{"value":{"type":"https://cmmd.ai/problems/auth.invalid_team","title":"Bad Request","status":400,"detail":"The selected team is not valid; choose another team or all teams","code":"auth.invalid_team","request_id":"0199f1c2-7d4e-7a31-9b5f-2c8d4e6f8a10"}},"pipeline.invalid_input":{"value":{"type":"https://cmmd.ai/problems/pipeline.invalid_input","title":"Bad Request","status":400,"detail":"Some fields are missing or not valid","code":"pipeline.invalid_input","details":{"errors":[{"pointer":"#/member_permission_id","code":"invalid_type","expected":"string","detail":"Invalid input: expected string, received undefined"}]},"request_id":"0199f1c2-7d4e-7a31-9b5f-2c8d4e6f8a10"}}}}}},"401":{"description":"Unauthorized","content":{"application/problem+json":{"schema":{"$ref":"#/components/schemas/Problem"},"examples":{"auth.unauthenticated":{"value":{"type":"https://cmmd.ai/problems/auth.unauthenticated","title":"Unauthorized","status":401,"detail":"Sign in to continue","code":"auth.unauthenticated","request_id":"0199f1c2-7d4e-7a31-9b5f-2c8d4e6f8a10"}}}}}},"403":{"description":"Forbidden","content":{"application/problem+json":{"schema":{"$ref":"#/components/schemas/Problem"},"examples":{"auth.not_a_member":{"value":{"type":"https://cmmd.ai/problems/auth.not_a_member","title":"Forbidden","status":403,"detail":"You are not an active member of this organization","code":"auth.not_a_member","request_id":"0199f1c2-7d4e-7a31-9b5f-2c8d4e6f8a10"}},"auth.not_a_team_member":{"value":{"type":"https://cmmd.ai/problems/auth.not_a_team_member","title":"Forbidden","status":403,"detail":"You are not a member of the selected team; choose another team or all teams","code":"auth.not_a_team_member","request_id":"0199f1c2-7d4e-7a31-9b5f-2c8d4e6f8a10"}},"auth.missing_permission":{"value":{"type":"https://cmmd.ai/problems/auth.missing_permission","title":"Forbidden","status":403,"detail":"You don't have permission to do this; ask an owner or an admin of your organization","code":"auth.missing_permission","details":{"permission":"auth.grant"},"request_id":"0199f1c2-7d4e-7a31-9b5f-2c8d4e6f8a10"}},"auth.person_required":{"value":{"type":"https://cmmd.ai/problems/auth.person_required","title":"Forbidden","status":403,"detail":"Only a signed-in person can do this","code":"auth.person_required","request_id":"0199f1c2-7d4e-7a31-9b5f-2c8d4e6f8a10"}}}}}},"404":{"description":"Not Found","content":{"application/problem+json":{"schema":{"$ref":"#/components/schemas/Problem"},"examples":{"auth.team_not_found":{"value":{"type":"https://cmmd.ai/problems/auth.team_not_found","title":"Not Found","status":404,"detail":"The selected team was not found; choose another team or all teams","code":"auth.team_not_found","request_id":"0199f1c2-7d4e-7a31-9b5f-2c8d4e6f8a10"}},"auth.member_permission_not_found":{"value":{"type":"https://cmmd.ai/problems/auth.member_permission_not_found","title":"Not Found","status":404,"detail":"That permission was not found; it may have been taken away or expired already","code":"auth.member_permission_not_found","details":{"member_permission_id":"00000000-0000-0000-0000-000000000000"},"request_id":"0199f1c2-7d4e-7a31-9b5f-2c8d4e6f8a10"}}}}}}}}},"/v1/permissions":{"get":{"operationId":"Permissions_list","summary":"List every permission with its routes, tools and default roles; with a role or a person, who holds each one","description":"Needs the `auth.grant` permission in the organization.","tags":["Permissions"],"security":[{"session":[],"organization":[]}],"parameters":[{"name":"role","in":"query","required":false,"schema":{"type":"string","enum":["admin","manager","member","viewer"]}},{"name":"user_id","in":"query","required":false,"schema":{"type":"integer","exclusiveMinimum":0,"maximum":9007199254740991}},{"name":"x-team-id","in":"header","required":false,"description":"One of the organization's active teams you are in, to filter by; missing, empty or `all` is every team.","schema":{"type":"string","pattern":"^([1-9][0-9]*|all)?$"}}],"responses":{"200":{"description":"OK","content":{"application/json":{"schema":{"type":"object","properties":{"items":{"type":"array","items":{"type":"object","properties":{"permission":{"type":"string","pattern":"^[\\s\\S]{0,}\\.[\\s\\S]{0,}$"},"scope":{"type":"string","enum":["workspace","platform"]},"module":{"type":"string"},"label":{"type":"string"},"description":{"type":"string"},"apps":{"type":"array","items":{"type":"string"}},"routes":{"type":"array","items":{"type":"object","properties":{"method":{"type":"string"},"path":{"type":"string"}},"required":["method","path"],"additionalProperties":false}},"tools":{"type":"array","items":{"type":"object","properties":{"name":{"type":"string"},"title":{"type":"string"},"summary":{"type":"string"}},"required":["name","title","summary"],"additionalProperties":false}},"default_roles":{"type":"array","items":{"type":"string"}},"grantable":{"type":"boolean"},"held":{"anyOf":[{"type":"string","enum":["owner","role","extra"]},{"type":"null"}]},"extra":{"anyOf":[{"type":"object","properties":{"id":{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"},"reason":{"type":"string"},"expires_at":{"anyOf":[{"type":"string","format":"date-time"},{"type":"null"}]}},"required":["id","reason","expires_at"],"additionalProperties":false},{"type":"null"}]}},"required":["permission","scope","module","label","description","apps","routes","tools","default_roles","grantable","held","extra"],"additionalProperties":false}},"next_cursor":{"type":"null"}},"required":["items","next_cursor"],"additionalProperties":false}}}},"400":{"description":"Bad Request","content":{"application/problem+json":{"schema":{"anyOf":[{"$ref":"#/components/schemas/Problem"},{"$ref":"#/components/schemas/InvalidInputProblem"}]},"examples":{"auth.organization_required":{"value":{"type":"https://cmmd.ai/problems/auth.organization_required","title":"Bad Request","status":400,"detail":"Choose an organization to continue","code":"auth.organization_required","request_id":"0199f1c2-7d4e-7a31-9b5f-2c8d4e6f8a10"}},"auth.invalid_team":{"value":{"type":"https://cmmd.ai/problems/auth.invalid_team","title":"Bad Request","status":400,"detail":"The selected team is not valid; choose another team or all teams","code":"auth.invalid_team","request_id":"0199f1c2-7d4e-7a31-9b5f-2c8d4e6f8a10"}},"pipeline.invalid_input":{"value":{"type":"https://cmmd.ai/problems/pipeline.invalid_input","title":"Bad Request","status":400,"detail":"Some fields are missing or not valid","code":"pipeline.invalid_input","details":{"errors":[]},"request_id":"0199f1c2-7d4e-7a31-9b5f-2c8d4e6f8a10"}}}}}},"401":{"description":"Unauthorized","content":{"application/problem+json":{"schema":{"$ref":"#/components/schemas/Problem"},"examples":{"auth.unauthenticated":{"value":{"type":"https://cmmd.ai/problems/auth.unauthenticated","title":"Unauthorized","status":401,"detail":"Sign in to continue","code":"auth.unauthenticated","request_id":"0199f1c2-7d4e-7a31-9b5f-2c8d4e6f8a10"}}}}}},"403":{"description":"Forbidden","content":{"application/problem+json":{"schema":{"$ref":"#/components/schemas/Problem"},"examples":{"auth.not_a_member":{"value":{"type":"https://cmmd.ai/problems/auth.not_a_member","title":"Forbidden","status":403,"detail":"You are not an active member of this organization","code":"auth.not_a_member","request_id":"0199f1c2-7d4e-7a31-9b5f-2c8d4e6f8a10"}},"auth.not_a_team_member":{"value":{"type":"https://cmmd.ai/problems/auth.not_a_team_member","title":"Forbidden","status":403,"detail":"You are not a member of the selected team; choose another team or all teams","code":"auth.not_a_team_member","request_id":"0199f1c2-7d4e-7a31-9b5f-2c8d4e6f8a10"}},"auth.missing_permission":{"value":{"type":"https://cmmd.ai/problems/auth.missing_permission","title":"Forbidden","status":403,"detail":"You don't have permission to do this; ask an owner or an admin of your organization","code":"auth.missing_permission","details":{"permission":"auth.grant"},"request_id":"0199f1c2-7d4e-7a31-9b5f-2c8d4e6f8a10"}}}}}},"404":{"description":"Not Found","content":{"application/problem+json":{"schema":{"$ref":"#/components/schemas/Problem"},"examples":{"auth.team_not_found":{"value":{"type":"https://cmmd.ai/problems/auth.team_not_found","title":"Not Found","status":404,"detail":"The selected team was not found; choose another team or all teams","code":"auth.team_not_found","request_id":"0199f1c2-7d4e-7a31-9b5f-2c8d4e6f8a10"}},"auth.member_not_found":{"value":{"type":"https://cmmd.ai/problems/auth.member_not_found","title":"Not Found","status":404,"detail":"That person is not a member of this organization","code":"auth.member_not_found","details":{"user_id":0},"request_id":"0199f1c2-7d4e-7a31-9b5f-2c8d4e6f8a10"}}}}}}}}},"/v1/permission-requests":{"get":{"operationId":"PermissionRequests_list","summary":"List permission requests, newest first: all of the organization for whoever decides them, otherwise only your own","description":"Needs the `auth.request` permission in the organization.","tags":["PermissionRequests"],"security":[{"session":[],"organization":[]}],"parameters":[{"name":"cursor","in":"query","required":false,"schema":{"type":"string","pattern":"^[^_]+_[^_]+$"}},{"name":"limit","in":"query","required":false,"schema":{"default":20,"type":"integer","minimum":1,"maximum":100}},{"name":"status","in":"query","required":false,"schema":{"type":"string","enum":["pending","granted","denied","expired"]}},{"name":"x-team-id","in":"header","required":false,"description":"One of the organization's active teams you are in, to filter by; missing, empty or `all` is every team.","schema":{"type":"string","pattern":"^([1-9][0-9]*|all)?$"}}],"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)$"},"user_id":{"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991},"permission":{"type":"string","pattern":"^[\\s\\S]{0,}\\.[\\s\\S]{0,}$"},"reason":{"type":"string"},"status":{"type":"string","enum":["pending","granted","denied","expired"]},"expires_at":{"anyOf":[{"type":"string","format":"date-time"},{"type":"null"}]},"decided_by":{"anyOf":[{"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991},{"type":"null"}]},"decision_reason":{"type":["string","null"]},"decided_at":{"anyOf":[{"type":"string","format":"date-time"},{"type":"null"}]},"created_at":{"type":"string","format":"date-time"}},"required":["id","user_id","permission","reason","status","expires_at","decided_by","decision_reason","decided_at","created_at"],"additionalProperties":false}},"next_cursor":{"type":["string","null"]}},"required":["items","next_cursor"],"additionalProperties":false}}}},"400":{"description":"Bad Request","content":{"application/problem+json":{"schema":{"anyOf":[{"$ref":"#/components/schemas/Problem"},{"$ref":"#/components/schemas/InvalidInputProblem"}]},"examples":{"auth.organization_required":{"value":{"type":"https://cmmd.ai/problems/auth.organization_required","title":"Bad Request","status":400,"detail":"Choose an organization to continue","code":"auth.organization_required","request_id":"0199f1c2-7d4e-7a31-9b5f-2c8d4e6f8a10"}},"auth.invalid_team":{"value":{"type":"https://cmmd.ai/problems/auth.invalid_team","title":"Bad Request","status":400,"detail":"The selected team is not valid; choose another team or all teams","code":"auth.invalid_team","request_id":"0199f1c2-7d4e-7a31-9b5f-2c8d4e6f8a10"}},"pipeline.invalid_input":{"value":{"type":"https://cmmd.ai/problems/pipeline.invalid_input","title":"Bad Request","status":400,"detail":"Some fields are missing or not valid","code":"pipeline.invalid_input","details":{"errors":[]},"request_id":"0199f1c2-7d4e-7a31-9b5f-2c8d4e6f8a10"}}}}}},"401":{"description":"Unauthorized","content":{"application/problem+json":{"schema":{"$ref":"#/components/schemas/Problem"},"examples":{"auth.unauthenticated":{"value":{"type":"https://cmmd.ai/problems/auth.unauthenticated","title":"Unauthorized","status":401,"detail":"Sign in to continue","code":"auth.unauthenticated","request_id":"0199f1c2-7d4e-7a31-9b5f-2c8d4e6f8a10"}}}}}},"403":{"description":"Forbidden","content":{"application/problem+json":{"schema":{"$ref":"#/components/schemas/Problem"},"examples":{"auth.not_a_member":{"value":{"type":"https://cmmd.ai/problems/auth.not_a_member","title":"Forbidden","status":403,"detail":"You are not an active member of this organization","code":"auth.not_a_member","request_id":"0199f1c2-7d4e-7a31-9b5f-2c8d4e6f8a10"}},"auth.not_a_team_member":{"value":{"type":"https://cmmd.ai/problems/auth.not_a_team_member","title":"Forbidden","status":403,"detail":"You are not a member of the selected team; choose another team or all teams","code":"auth.not_a_team_member","request_id":"0199f1c2-7d4e-7a31-9b5f-2c8d4e6f8a10"}},"auth.missing_permission":{"value":{"type":"https://cmmd.ai/problems/auth.missing_permission","title":"Forbidden","status":403,"detail":"You don't have permission to do this; ask an owner or an admin of your organization","code":"auth.missing_permission","details":{"permission":"auth.request"},"request_id":"0199f1c2-7d4e-7a31-9b5f-2c8d4e6f8a10"}},"auth.person_required":{"value":{"type":"https://cmmd.ai/problems/auth.person_required","title":"Forbidden","status":403,"detail":"Only a signed-in person can do this","code":"auth.person_required","request_id":"0199f1c2-7d4e-7a31-9b5f-2c8d4e6f8a10"}}}}}},"404":{"description":"Not Found","content":{"application/problem+json":{"schema":{"$ref":"#/components/schemas/Problem"},"examples":{"auth.team_not_found":{"value":{"type":"https://cmmd.ai/problems/auth.team_not_found","title":"Not Found","status":404,"detail":"The selected team was not found; choose another team or all teams","code":"auth.team_not_found","request_id":"0199f1c2-7d4e-7a31-9b5f-2c8d4e6f8a10"}}}}}}}},"post":{"operationId":"PermissionRequests_create","summary":"Ask an owner or an admin for a permission, with a reason; asking again answers the pending one","description":"Needs the `auth.request` permission in the organization.","tags":["PermissionRequests"],"security":[{"session":[],"organization":[]}],"parameters":[{"name":"x-team-id","in":"header","required":false,"description":"One of the organization's active teams you are in, to filter by; missing, empty or `all` is every team.","schema":{"type":"string","pattern":"^([1-9][0-9]*|all)?$"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"type":"object","properties":{"permission":{"type":"string","maxLength":200},"reason":{"type":"string","minLength":1,"maxLength":500}},"required":["permission","reason"]}}}},"responses":{"201":{"description":"Created","content":{"application/json":{"schema":{"type":"object","properties":{"id":{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"},"user_id":{"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991},"permission":{"type":"string","pattern":"^[\\s\\S]{0,}\\.[\\s\\S]{0,}$"},"reason":{"type":"string"},"status":{"type":"string","enum":["pending","granted","denied","expired"]},"expires_at":{"anyOf":[{"type":"string","format":"date-time"},{"type":"null"}]},"decided_by":{"anyOf":[{"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991},{"type":"null"}]},"decision_reason":{"type":["string","null"]},"decided_at":{"anyOf":[{"type":"string","format":"date-time"},{"type":"null"}]},"created_at":{"type":"string","format":"date-time"}},"required":["id","user_id","permission","reason","status","expires_at","decided_by","decision_reason","decided_at","created_at"],"additionalProperties":false}}}},"400":{"description":"Bad Request","content":{"application/problem+json":{"schema":{"anyOf":[{"$ref":"#/components/schemas/Problem"},{"$ref":"#/components/schemas/InvalidInputProblem"}]},"examples":{"auth.organization_required":{"value":{"type":"https://cmmd.ai/problems/auth.organization_required","title":"Bad Request","status":400,"detail":"Choose an organization to continue","code":"auth.organization_required","request_id":"0199f1c2-7d4e-7a31-9b5f-2c8d4e6f8a10"}},"auth.invalid_team":{"value":{"type":"https://cmmd.ai/problems/auth.invalid_team","title":"Bad Request","status":400,"detail":"The selected team is not valid; choose another team or all teams","code":"auth.invalid_team","request_id":"0199f1c2-7d4e-7a31-9b5f-2c8d4e6f8a10"}},"pipeline.invalid_input":{"value":{"type":"https://cmmd.ai/problems/pipeline.invalid_input","title":"Bad Request","status":400,"detail":"Some fields are missing or not valid","code":"pipeline.invalid_input","details":{"errors":[{"pointer":"#/permission","code":"invalid_type","expected":"string","detail":"Invalid input: expected string, received undefined"},{"pointer":"#/reason","code":"invalid_type","expected":"string","detail":"Invalid input: expected string, received undefined"}]},"request_id":"0199f1c2-7d4e-7a31-9b5f-2c8d4e6f8a10"}},"auth.unknown_permission":{"value":{"type":"https://cmmd.ai/problems/auth.unknown_permission","title":"Bad Request","status":400,"detail":"That permission does not exist; choose one from the list of permissions","code":"auth.unknown_permission","details":{"errors":[{"pointer":"#/permission","code":"unknown_permission","detail":"No module declares notes.read"}]},"request_id":"0199f1c2-7d4e-7a31-9b5f-2c8d4e6f8a10"}},"auth.permission_not_grantable":{"value":{"type":"https://cmmd.ai/problems/auth.permission_not_grantable","title":"Bad Request","status":400,"detail":"That permission cannot be given to a role or a person; only the owner holds it","code":"auth.permission_not_grantable","details":{"errors":[{"pointer":"#/permission","code":"permission_not_grantable","detail":"auth.grant cannot be given"}]},"request_id":"0199f1c2-7d4e-7a31-9b5f-2c8d4e6f8a10"}}}}}},"401":{"description":"Unauthorized","content":{"application/problem+json":{"schema":{"$ref":"#/components/schemas/Problem"},"examples":{"auth.unauthenticated":{"value":{"type":"https://cmmd.ai/problems/auth.unauthenticated","title":"Unauthorized","status":401,"detail":"Sign in to continue","code":"auth.unauthenticated","request_id":"0199f1c2-7d4e-7a31-9b5f-2c8d4e6f8a10"}}}}}},"403":{"description":"Forbidden","content":{"application/problem+json":{"schema":{"$ref":"#/components/schemas/Problem"},"examples":{"auth.not_a_member":{"value":{"type":"https://cmmd.ai/problems/auth.not_a_member","title":"Forbidden","status":403,"detail":"You are not an active member of this organization","code":"auth.not_a_member","request_id":"0199f1c2-7d4e-7a31-9b5f-2c8d4e6f8a10"}},"auth.not_a_team_member":{"value":{"type":"https://cmmd.ai/problems/auth.not_a_team_member","title":"Forbidden","status":403,"detail":"You are not a member of the selected team; choose another team or all teams","code":"auth.not_a_team_member","request_id":"0199f1c2-7d4e-7a31-9b5f-2c8d4e6f8a10"}},"auth.missing_permission":{"value":{"type":"https://cmmd.ai/problems/auth.missing_permission","title":"Forbidden","status":403,"detail":"You don't have permission to do this; ask an owner or an admin of your organization","code":"auth.missing_permission","details":{"permission":"auth.request"},"request_id":"0199f1c2-7d4e-7a31-9b5f-2c8d4e6f8a10"}},"auth.person_required":{"value":{"type":"https://cmmd.ai/problems/auth.person_required","title":"Forbidden","status":403,"detail":"Only a signed-in person can do this","code":"auth.person_required","request_id":"0199f1c2-7d4e-7a31-9b5f-2c8d4e6f8a10"}}}}}},"404":{"description":"Not Found","content":{"application/problem+json":{"schema":{"$ref":"#/components/schemas/Problem"},"examples":{"auth.team_not_found":{"value":{"type":"https://cmmd.ai/problems/auth.team_not_found","title":"Not Found","status":404,"detail":"The selected team was not found; choose another team or all teams","code":"auth.team_not_found","request_id":"0199f1c2-7d4e-7a31-9b5f-2c8d4e6f8a10"}},"auth.member_not_found":{"value":{"type":"https://cmmd.ai/problems/auth.member_not_found","title":"Not Found","status":404,"detail":"That person is not a member of this organization","code":"auth.member_not_found","details":{"user_id":0},"request_id":"0199f1c2-7d4e-7a31-9b5f-2c8d4e6f8a10"}}}}}},"409":{"description":"Conflict","content":{"application/problem+json":{"schema":{"$ref":"#/components/schemas/Problem"},"examples":{"auth.permission_already_held":{"value":{"type":"https://cmmd.ai/problems/auth.permission_already_held","title":"Conflict","status":409,"detail":"You already have this permission","code":"auth.permission_already_held","details":{"permission":"notes.read"},"request_id":"0199f1c2-7d4e-7a31-9b5f-2c8d4e6f8a10"}},"auth.permission_request_changed":{"value":{"type":"https://cmmd.ai/problems/auth.permission_request_changed","title":"Conflict","status":409,"detail":"You asked for this permission twice at the same time; try again","code":"auth.permission_request_changed","details":{"permission":"notes.read"},"retryable":true,"request_id":"0199f1c2-7d4e-7a31-9b5f-2c8d4e6f8a10"}}}}}}}}},"/v1/permission-requests/{permission_request_id}":{"patch":{"operationId":"PermissionRequests_update","summary":"Grant a permission request, with a reason and an optional end, or deny it with a reason","description":"Needs the `auth.grant` permission in the organization.","tags":["PermissionRequests"],"security":[{"session":[],"organization":[]}],"parameters":[{"name":"permission_request_id","in":"path","required":true,"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)$"}},{"name":"x-team-id","in":"header","required":false,"description":"One of the organization's active teams you are in, to filter by; missing, empty or `all` is every team.","schema":{"type":"string","pattern":"^([1-9][0-9]*|all)?$"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"type":"object","properties":{"decision_reason":{"type":"string","minLength":1,"maxLength":500},"status":{"type":"string","enum":["granted","denied"]},"expires_at":{"anyOf":[{"type":"string","format":"date-time"},{"type":"null"}]}},"required":["decision_reason","status"]}}}},"responses":{"200":{"description":"OK","content":{"application/json":{"schema":{"type":"object","properties":{"id":{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"},"user_id":{"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991},"permission":{"type":"string","pattern":"^[\\s\\S]{0,}\\.[\\s\\S]{0,}$"},"reason":{"type":"string"},"status":{"type":"string","enum":["pending","granted","denied","expired"]},"expires_at":{"anyOf":[{"type":"string","format":"date-time"},{"type":"null"}]},"decided_by":{"anyOf":[{"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991},{"type":"null"}]},"decision_reason":{"type":["string","null"]},"decided_at":{"anyOf":[{"type":"string","format":"date-time"},{"type":"null"}]},"created_at":{"type":"string","format":"date-time"}},"required":["id","user_id","permission","reason","status","expires_at","decided_by","decision_reason","decided_at","created_at"],"additionalProperties":false}}}},"400":{"description":"Bad Request","content":{"application/problem+json":{"schema":{"anyOf":[{"$ref":"#/components/schemas/Problem"},{"$ref":"#/components/schemas/InvalidInputProblem"}]},"examples":{"auth.organization_required":{"value":{"type":"https://cmmd.ai/problems/auth.organization_required","title":"Bad Request","status":400,"detail":"Choose an organization to continue","code":"auth.organization_required","request_id":"0199f1c2-7d4e-7a31-9b5f-2c8d4e6f8a10"}},"auth.invalid_team":{"value":{"type":"https://cmmd.ai/problems/auth.invalid_team","title":"Bad Request","status":400,"detail":"The selected team is not valid; choose another team or all teams","code":"auth.invalid_team","request_id":"0199f1c2-7d4e-7a31-9b5f-2c8d4e6f8a10"}},"pipeline.invalid_input":{"value":{"type":"https://cmmd.ai/problems/pipeline.invalid_input","title":"Bad Request","status":400,"detail":"Some fields are missing or not valid","code":"pipeline.invalid_input","details":{"errors":[{"pointer":"#/decision_reason","code":"invalid_type","expected":"string","detail":"Invalid input: expected string, received undefined"},{"pointer":"#/status","code":"invalid_value","values":["granted","denied"],"detail":"Invalid option: expected one of \"granted\"|\"denied\""}]},"request_id":"0199f1c2-7d4e-7a31-9b5f-2c8d4e6f8a10"}},"auth.expiry_in_past":{"value":{"type":"https://cmmd.ai/problems/auth.expiry_in_past","title":"Bad Request","status":400,"detail":"The end date has already passed; choose a later one or none","code":"auth.expiry_in_past","details":{"errors":[{"pointer":"#/expires_at","code":"expiry_in_past","detail":"The end date must be in the future"}]},"request_id":"0199f1c2-7d4e-7a31-9b5f-2c8d4e6f8a10"}}}}}},"401":{"description":"Unauthorized","content":{"application/problem+json":{"schema":{"$ref":"#/components/schemas/Problem"},"examples":{"auth.unauthenticated":{"value":{"type":"https://cmmd.ai/problems/auth.unauthenticated","title":"Unauthorized","status":401,"detail":"Sign in to continue","code":"auth.unauthenticated","request_id":"0199f1c2-7d4e-7a31-9b5f-2c8d4e6f8a10"}}}}}},"403":{"description":"Forbidden","content":{"application/problem+json":{"schema":{"$ref":"#/components/schemas/Problem"},"examples":{"auth.not_a_member":{"value":{"type":"https://cmmd.ai/problems/auth.not_a_member","title":"Forbidden","status":403,"detail":"You are not an active member of this organization","code":"auth.not_a_member","request_id":"0199f1c2-7d4e-7a31-9b5f-2c8d4e6f8a10"}},"auth.not_a_team_member":{"value":{"type":"https://cmmd.ai/problems/auth.not_a_team_member","title":"Forbidden","status":403,"detail":"You are not a member of the selected team; choose another team or all teams","code":"auth.not_a_team_member","request_id":"0199f1c2-7d4e-7a31-9b5f-2c8d4e6f8a10"}},"auth.missing_permission":{"value":{"type":"https://cmmd.ai/problems/auth.missing_permission","title":"Forbidden","status":403,"detail":"You don't have permission to do this; ask an owner or an admin of your organization","code":"auth.missing_permission","details":{"permission":"auth.grant"},"request_id":"0199f1c2-7d4e-7a31-9b5f-2c8d4e6f8a10"}},"auth.person_required":{"value":{"type":"https://cmmd.ai/problems/auth.person_required","title":"Forbidden","status":403,"detail":"Only a signed-in person can do this","code":"auth.person_required","request_id":"0199f1c2-7d4e-7a31-9b5f-2c8d4e6f8a10"}},"auth.self_grant":{"value":{"type":"https://cmmd.ai/problems/auth.self_grant","title":"Forbidden","status":403,"detail":"You cannot give a permission to yourself; ask another owner or admin","code":"auth.self_grant","request_id":"0199f1c2-7d4e-7a31-9b5f-2c8d4e6f8a10"}},"auth.permission_not_held":{"value":{"type":"https://cmmd.ai/problems/auth.permission_not_held","title":"Forbidden","status":403,"detail":"You can only give a permission you have yourself","code":"auth.permission_not_held","request_id":"0199f1c2-7d4e-7a31-9b5f-2c8d4e6f8a10"}}}}}},"404":{"description":"Not Found","content":{"application/problem+json":{"schema":{"$ref":"#/components/schemas/Problem"},"examples":{"auth.team_not_found":{"value":{"type":"https://cmmd.ai/problems/auth.team_not_found","title":"Not Found","status":404,"detail":"The selected team was not found; choose another team or all teams","code":"auth.team_not_found","request_id":"0199f1c2-7d4e-7a31-9b5f-2c8d4e6f8a10"}},"auth.permission_request_not_found":{"value":{"type":"https://cmmd.ai/problems/auth.permission_request_not_found","title":"Not Found","status":404,"detail":"That permission ask was not found","code":"auth.permission_request_not_found","details":{"permission_request_id":"00000000-0000-0000-0000-000000000000"},"request_id":"0199f1c2-7d4e-7a31-9b5f-2c8d4e6f8a10"}},"auth.member_not_found":{"value":{"type":"https://cmmd.ai/problems/auth.member_not_found","title":"Not Found","status":404,"detail":"That person is not a member of this organization","code":"auth.member_not_found","details":{"user_id":0},"request_id":"0199f1c2-7d4e-7a31-9b5f-2c8d4e6f8a10"}}}}}},"409":{"description":"Conflict","content":{"application/problem+json":{"schema":{"$ref":"#/components/schemas/Problem"},"examples":{"auth.permission_request_decided":{"value":{"type":"https://cmmd.ai/problems/auth.permission_request_decided","title":"Conflict","status":409,"detail":"This permission ask was already answered","code":"auth.permission_request_decided","details":{"permission_request_id":"00000000-0000-0000-0000-000000000000"},"request_id":"0199f1c2-7d4e-7a31-9b5f-2c8d4e6f8a10"}},"auth.member_permission_changed":{"value":{"type":"https://cmmd.ai/problems/auth.member_permission_changed","title":"Conflict","status":409,"detail":"Someone changed this person's permissions at the same time; try again","code":"auth.member_permission_changed","details":{"user_id":0,"permission":"notes.read"},"retryable":true,"request_id":"0199f1c2-7d4e-7a31-9b5f-2c8d4e6f8a10"}}}}}}}}},"/v1/mcp":{"post":{"operationId":"Mcp_serve","summary":"Connect an AI client","tags":["Mcp"],"security":[{"agentToken":[]}],"parameters":[],"requestBody":{"required":true,"content":{"application/json":{"schema":{"type":"object","properties":{"jsonrpc":{"type":"string","const":"2.0"}},"required":["jsonrpc"],"additionalProperties":{}}}}},"responses":{"200":{"description":"OK","content":{"application/json":{"schema":{"type":"object","properties":{"jsonrpc":{"type":"string","const":"2.0"}},"required":["jsonrpc"],"additionalProperties":{}}}}},"400":{"description":"Bad Request","content":{"application/problem+json":{"schema":{"$ref":"#/components/schemas/InvalidInputProblem"},"examples":{"pipeline.invalid_input":{"value":{"type":"https://cmmd.ai/problems/pipeline.invalid_input","title":"Bad Request","status":400,"detail":"Some fields are missing or not valid","code":"pipeline.invalid_input","details":{"errors":[{"pointer":"#/jsonrpc","code":"invalid_value","values":["2.0"],"detail":"Invalid input: expected \"2.0\""}]},"request_id":"0199f1c2-7d4e-7a31-9b5f-2c8d4e6f8a10"}}}}}},"401":{"description":"Unauthorized","content":{"application/problem+json":{"schema":{"$ref":"#/components/schemas/Problem"},"examples":{"auth.unauthenticated":{"value":{"type":"https://cmmd.ai/problems/auth.unauthenticated","title":"Unauthorized","status":401,"detail":"Sign in to continue","code":"auth.unauthenticated","request_id":"0199f1c2-7d4e-7a31-9b5f-2c8d4e6f8a10"}}}}}},"403":{"description":"Forbidden","content":{"application/problem+json":{"schema":{"$ref":"#/components/schemas/Problem"},"examples":{"auth.not_a_member":{"value":{"type":"https://cmmd.ai/problems/auth.not_a_member","title":"Forbidden","status":403,"detail":"You are not an active member of this organization","code":"auth.not_a_member","request_id":"0199f1c2-7d4e-7a31-9b5f-2c8d4e6f8a10"}}}}}}}}},"/v1/notes":{"get":{"operationId":"Notes_list","summary":"List notes","description":"Needs the `notes.read` permission in the organization.","tags":["Notes"],"security":[{"session":[],"organization":[]}],"parameters":[{"name":"cursor","in":"query","required":false,"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)$"}},{"name":"limit","in":"query","required":false,"schema":{"default":20,"type":"integer","minimum":1,"maximum":100}},{"name":"archived","in":"query","required":false,"schema":{"type":["boolean","string"]}},{"name":"x-team-id","in":"header","required":false,"description":"One of the organization's active teams you are in, to filter by; missing, empty or `all` is every team.","schema":{"type":"string","pattern":"^([1-9][0-9]*|all)?$"}}],"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)$"},"title":{"type":"string"},"author_id":{"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991},"archived_at":{"anyOf":[{"type":"string","format":"date-time"},{"type":"null"}]},"created_at":{"type":"string","format":"date-time"},"updated_at":{"type":"string","format":"date-time"},"deleted_at":{"anyOf":[{"type":"string","format":"date-time"},{"type":"null"}]},"pinned":{"type":"boolean"}},"required":["id","title","author_id","archived_at","created_at","updated_at","deleted_at","pinned"],"additionalProperties":false}},"next_cursor":{"anyOf":[{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"},{"type":"null"}]}},"required":["items","next_cursor"],"additionalProperties":false}}}},"400":{"description":"Bad Request","content":{"application/problem+json":{"schema":{"anyOf":[{"$ref":"#/components/schemas/Problem"},{"$ref":"#/components/schemas/InvalidInputProblem"}]},"examples":{"auth.organization_required":{"value":{"type":"https://cmmd.ai/problems/auth.organization_required","title":"Bad Request","status":400,"detail":"Choose an organization to continue","code":"auth.organization_required","request_id":"0199f1c2-7d4e-7a31-9b5f-2c8d4e6f8a10"}},"auth.invalid_team":{"value":{"type":"https://cmmd.ai/problems/auth.invalid_team","title":"Bad Request","status":400,"detail":"The selected team is not valid; choose another team or all teams","code":"auth.invalid_team","request_id":"0199f1c2-7d4e-7a31-9b5f-2c8d4e6f8a10"}},"pipeline.invalid_input":{"value":{"type":"https://cmmd.ai/problems/pipeline.invalid_input","title":"Bad Request","status":400,"detail":"Some fields are missing or not valid","code":"pipeline.invalid_input","details":{"errors":[]},"request_id":"0199f1c2-7d4e-7a31-9b5f-2c8d4e6f8a10"}}}}}},"401":{"description":"Unauthorized","content":{"application/problem+json":{"schema":{"$ref":"#/components/schemas/Problem"},"examples":{"auth.unauthenticated":{"value":{"type":"https://cmmd.ai/problems/auth.unauthenticated","title":"Unauthorized","status":401,"detail":"Sign in to continue","code":"auth.unauthenticated","request_id":"0199f1c2-7d4e-7a31-9b5f-2c8d4e6f8a10"}}}}}},"402":{"description":"Payment Required","content":{"application/problem+json":{"schema":{"$ref":"#/components/schemas/Problem"},"examples":{"auth.app_not_in_plan":{"value":{"type":"https://cmmd.ai/problems/auth.app_not_in_plan","title":"Payment Required","status":402,"detail":"Your organization's subscription does not include this app","code":"auth.app_not_in_plan","details":{"app":"notes"},"request_id":"0199f1c2-7d4e-7a31-9b5f-2c8d4e6f8a10"}}}}}},"403":{"description":"Forbidden","content":{"application/problem+json":{"schema":{"$ref":"#/components/schemas/Problem"},"examples":{"auth.not_a_member":{"value":{"type":"https://cmmd.ai/problems/auth.not_a_member","title":"Forbidden","status":403,"detail":"You are not an active member of this organization","code":"auth.not_a_member","request_id":"0199f1c2-7d4e-7a31-9b5f-2c8d4e6f8a10"}},"auth.not_a_team_member":{"value":{"type":"https://cmmd.ai/problems/auth.not_a_team_member","title":"Forbidden","status":403,"detail":"You are not a member of the selected team; choose another team or all teams","code":"auth.not_a_team_member","request_id":"0199f1c2-7d4e-7a31-9b5f-2c8d4e6f8a10"}},"auth.missing_permission":{"value":{"type":"https://cmmd.ai/problems/auth.missing_permission","title":"Forbidden","status":403,"detail":"You don't have permission to do this; ask an owner or an admin of your organization","code":"auth.missing_permission","details":{"permission":"notes.read"},"request_id":"0199f1c2-7d4e-7a31-9b5f-2c8d4e6f8a10"}},"auth.app_disabled":{"value":{"type":"https://cmmd.ai/problems/auth.app_disabled","title":"Forbidden","status":403,"detail":"Your organization does not have this app on","code":"auth.app_disabled","details":{"app":"notes"},"request_id":"0199f1c2-7d4e-7a31-9b5f-2c8d4e6f8a10"}}}}}},"404":{"description":"Not Found","content":{"application/problem+json":{"schema":{"$ref":"#/components/schemas/Problem"},"examples":{"auth.team_not_found":{"value":{"type":"https://cmmd.ai/problems/auth.team_not_found","title":"Not Found","status":404,"detail":"The selected team was not found; choose another team or all teams","code":"auth.team_not_found","request_id":"0199f1c2-7d4e-7a31-9b5f-2c8d4e6f8a10"}}}}}},"503":{"description":"Service Unavailable","content":{"application/problem+json":{"schema":{"$ref":"#/components/schemas/Problem"},"examples":{"auth.apps_unavailable":{"value":{"type":"https://cmmd.ai/problems/auth.apps_unavailable","title":"Service Unavailable","status":503,"detail":"Your organization's apps cannot be checked right now; try again","code":"auth.apps_unavailable","details":{"app":"notes"},"retryable":true,"request_id":"0199f1c2-7d4e-7a31-9b5f-2c8d4e6f8a10"}}}}}}}},"post":{"operationId":"Notes_create","summary":"Create a note","description":"Needs the `notes.create` permission in the organization.","tags":["Notes"],"security":[{"session":[],"organization":[]}],"parameters":[{"name":"x-team-id","in":"header","required":false,"description":"One of the organization's active teams you are in, to filter by; missing, empty or `all` is every team.","schema":{"type":"string","pattern":"^([1-9][0-9]*|all)?$"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"type":"object","properties":{"title":{"type":"string","minLength":1,"maxLength":200},"body":{"type":"string","maxLength":20000},"pinned":{"type":"boolean"}},"required":["title","body"]}}}},"responses":{"201":{"description":"Created","content":{"application/json":{"schema":{"type":"object","properties":{"id":{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"},"title":{"type":"string"},"body":{"type":"string"},"author_id":{"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991},"archived_at":{"anyOf":[{"type":"string","format":"date-time"},{"type":"null"}]},"created_at":{"type":"string","format":"date-time"},"updated_at":{"type":"string","format":"date-time"},"deleted_at":{"anyOf":[{"type":"string","format":"date-time"},{"type":"null"}]},"pinned":{"type":"boolean"}},"required":["id","title","body","author_id","archived_at","created_at","updated_at","deleted_at","pinned"],"additionalProperties":false}}}},"400":{"description":"Bad Request","content":{"application/problem+json":{"schema":{"anyOf":[{"$ref":"#/components/schemas/Problem"},{"$ref":"#/components/schemas/InvalidInputProblem"}]},"examples":{"auth.organization_required":{"value":{"type":"https://cmmd.ai/problems/auth.organization_required","title":"Bad Request","status":400,"detail":"Choose an organization to continue","code":"auth.organization_required","request_id":"0199f1c2-7d4e-7a31-9b5f-2c8d4e6f8a10"}},"auth.invalid_team":{"value":{"type":"https://cmmd.ai/problems/auth.invalid_team","title":"Bad Request","status":400,"detail":"The selected team is not valid; choose another team or all teams","code":"auth.invalid_team","request_id":"0199f1c2-7d4e-7a31-9b5f-2c8d4e6f8a10"}},"pipeline.invalid_input":{"value":{"type":"https://cmmd.ai/problems/pipeline.invalid_input","title":"Bad Request","status":400,"detail":"Some fields are missing or not valid","code":"pipeline.invalid_input","details":{"errors":[{"pointer":"#/title","code":"invalid_type","expected":"string","detail":"Invalid input: expected string, received undefined"},{"pointer":"#/body","code":"invalid_type","expected":"string","detail":"Invalid input: expected string, received undefined"}]},"request_id":"0199f1c2-7d4e-7a31-9b5f-2c8d4e6f8a10"}}}}}},"401":{"description":"Unauthorized","content":{"application/problem+json":{"schema":{"$ref":"#/components/schemas/Problem"},"examples":{"auth.unauthenticated":{"value":{"type":"https://cmmd.ai/problems/auth.unauthenticated","title":"Unauthorized","status":401,"detail":"Sign in to continue","code":"auth.unauthenticated","request_id":"0199f1c2-7d4e-7a31-9b5f-2c8d4e6f8a10"}}}}}},"402":{"description":"Payment Required","content":{"application/problem+json":{"schema":{"$ref":"#/components/schemas/Problem"},"examples":{"auth.app_not_in_plan":{"value":{"type":"https://cmmd.ai/problems/auth.app_not_in_plan","title":"Payment Required","status":402,"detail":"Your organization's subscription does not include this app","code":"auth.app_not_in_plan","details":{"app":"notes"},"request_id":"0199f1c2-7d4e-7a31-9b5f-2c8d4e6f8a10"}}}}}},"403":{"description":"Forbidden","content":{"application/problem+json":{"schema":{"$ref":"#/components/schemas/Problem"},"examples":{"auth.not_a_member":{"value":{"type":"https://cmmd.ai/problems/auth.not_a_member","title":"Forbidden","status":403,"detail":"You are not an active member of this organization","code":"auth.not_a_member","request_id":"0199f1c2-7d4e-7a31-9b5f-2c8d4e6f8a10"}},"auth.not_a_team_member":{"value":{"type":"https://cmmd.ai/problems/auth.not_a_team_member","title":"Forbidden","status":403,"detail":"You are not a member of the selected team; choose another team or all teams","code":"auth.not_a_team_member","request_id":"0199f1c2-7d4e-7a31-9b5f-2c8d4e6f8a10"}},"auth.missing_permission":{"value":{"type":"https://cmmd.ai/problems/auth.missing_permission","title":"Forbidden","status":403,"detail":"You don't have permission to do this; ask an owner or an admin of your organization","code":"auth.missing_permission","details":{"permission":"notes.create"},"request_id":"0199f1c2-7d4e-7a31-9b5f-2c8d4e6f8a10"}},"auth.app_disabled":{"value":{"type":"https://cmmd.ai/problems/auth.app_disabled","title":"Forbidden","status":403,"detail":"Your organization does not have this app on","code":"auth.app_disabled","details":{"app":"notes"},"request_id":"0199f1c2-7d4e-7a31-9b5f-2c8d4e6f8a10"}},"auth.person_required":{"value":{"type":"https://cmmd.ai/problems/auth.person_required","title":"Forbidden","status":403,"detail":"Only a signed-in person can do this","code":"auth.person_required","request_id":"0199f1c2-7d4e-7a31-9b5f-2c8d4e6f8a10"}}}}}},"404":{"description":"Not Found","content":{"application/problem+json":{"schema":{"$ref":"#/components/schemas/Problem"},"examples":{"auth.team_not_found":{"value":{"type":"https://cmmd.ai/problems/auth.team_not_found","title":"Not Found","status":404,"detail":"The selected team was not found; choose another team or all teams","code":"auth.team_not_found","request_id":"0199f1c2-7d4e-7a31-9b5f-2c8d4e6f8a10"}}}}}},"503":{"description":"Service Unavailable","content":{"application/problem+json":{"schema":{"$ref":"#/components/schemas/Problem"},"examples":{"auth.apps_unavailable":{"value":{"type":"https://cmmd.ai/problems/auth.apps_unavailable","title":"Service Unavailable","status":503,"detail":"Your organization's apps cannot be checked right now; try again","code":"auth.apps_unavailable","details":{"app":"notes"},"retryable":true,"request_id":"0199f1c2-7d4e-7a31-9b5f-2c8d4e6f8a10"}}}}}}}}},"/v1/notes/{note_id}":{"get":{"operationId":"Notes_get","summary":"Get a note","description":"Needs the `notes.read` permission in the organization.","tags":["Notes"],"security":[{"session":[],"organization":[]}],"parameters":[{"name":"note_id","in":"path","required":true,"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)$"}},{"name":"x-team-id","in":"header","required":false,"description":"One of the organization's active teams you are in, to filter by; missing, empty or `all` is every team.","schema":{"type":"string","pattern":"^([1-9][0-9]*|all)?$"}}],"responses":{"200":{"description":"OK","content":{"application/json":{"schema":{"type":"object","properties":{"id":{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"},"title":{"type":"string"},"body":{"type":"string"},"author_id":{"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991},"archived_at":{"anyOf":[{"type":"string","format":"date-time"},{"type":"null"}]},"created_at":{"type":"string","format":"date-time"},"updated_at":{"type":"string","format":"date-time"},"deleted_at":{"anyOf":[{"type":"string","format":"date-time"},{"type":"null"}]},"pinned":{"type":"boolean"}},"required":["id","title","body","author_id","archived_at","created_at","updated_at","deleted_at","pinned"],"additionalProperties":false}}}},"400":{"description":"Bad Request","content":{"application/problem+json":{"schema":{"anyOf":[{"$ref":"#/components/schemas/Problem"},{"$ref":"#/components/schemas/InvalidInputProblem"}]},"examples":{"auth.organization_required":{"value":{"type":"https://cmmd.ai/problems/auth.organization_required","title":"Bad Request","status":400,"detail":"Choose an organization to continue","code":"auth.organization_required","request_id":"0199f1c2-7d4e-7a31-9b5f-2c8d4e6f8a10"}},"auth.invalid_team":{"value":{"type":"https://cmmd.ai/problems/auth.invalid_team","title":"Bad Request","status":400,"detail":"The selected team is not valid; choose another team or all teams","code":"auth.invalid_team","request_id":"0199f1c2-7d4e-7a31-9b5f-2c8d4e6f8a10"}},"pipeline.invalid_input":{"value":{"type":"https://cmmd.ai/problems/pipeline.invalid_input","title":"Bad Request","status":400,"detail":"Some fields are missing or not valid","code":"pipeline.invalid_input","details":{"errors":[{"pointer":"#/note_id","code":"invalid_type","expected":"string","detail":"Invalid input: expected string, received undefined"}]},"request_id":"0199f1c2-7d4e-7a31-9b5f-2c8d4e6f8a10"}}}}}},"401":{"description":"Unauthorized","content":{"application/problem+json":{"schema":{"$ref":"#/components/schemas/Problem"},"examples":{"auth.unauthenticated":{"value":{"type":"https://cmmd.ai/problems/auth.unauthenticated","title":"Unauthorized","status":401,"detail":"Sign in to continue","code":"auth.unauthenticated","request_id":"0199f1c2-7d4e-7a31-9b5f-2c8d4e6f8a10"}}}}}},"402":{"description":"Payment Required","content":{"application/problem+json":{"schema":{"$ref":"#/components/schemas/Problem"},"examples":{"auth.app_not_in_plan":{"value":{"type":"https://cmmd.ai/problems/auth.app_not_in_plan","title":"Payment Required","status":402,"detail":"Your organization's subscription does not include this app","code":"auth.app_not_in_plan","details":{"app":"notes"},"request_id":"0199f1c2-7d4e-7a31-9b5f-2c8d4e6f8a10"}}}}}},"403":{"description":"Forbidden","content":{"application/problem+json":{"schema":{"$ref":"#/components/schemas/Problem"},"examples":{"auth.not_a_member":{"value":{"type":"https://cmmd.ai/problems/auth.not_a_member","title":"Forbidden","status":403,"detail":"You are not an active member of this organization","code":"auth.not_a_member","request_id":"0199f1c2-7d4e-7a31-9b5f-2c8d4e6f8a10"}},"auth.not_a_team_member":{"value":{"type":"https://cmmd.ai/problems/auth.not_a_team_member","title":"Forbidden","status":403,"detail":"You are not a member of the selected team; choose another team or all teams","code":"auth.not_a_team_member","request_id":"0199f1c2-7d4e-7a31-9b5f-2c8d4e6f8a10"}},"auth.missing_permission":{"value":{"type":"https://cmmd.ai/problems/auth.missing_permission","title":"Forbidden","status":403,"detail":"You don't have permission to do this; ask an owner or an admin of your organization","code":"auth.missing_permission","details":{"permission":"notes.read"},"request_id":"0199f1c2-7d4e-7a31-9b5f-2c8d4e6f8a10"}},"auth.app_disabled":{"value":{"type":"https://cmmd.ai/problems/auth.app_disabled","title":"Forbidden","status":403,"detail":"Your organization does not have this app on","code":"auth.app_disabled","details":{"app":"notes"},"request_id":"0199f1c2-7d4e-7a31-9b5f-2c8d4e6f8a10"}}}}}},"404":{"description":"Not Found","content":{"application/problem+json":{"schema":{"$ref":"#/components/schemas/Problem"},"examples":{"auth.team_not_found":{"value":{"type":"https://cmmd.ai/problems/auth.team_not_found","title":"Not Found","status":404,"detail":"The selected team was not found; choose another team or all teams","code":"auth.team_not_found","request_id":"0199f1c2-7d4e-7a31-9b5f-2c8d4e6f8a10"}},"notes.not_found":{"value":{"type":"https://cmmd.ai/problems/notes.not_found","title":"Not Found","status":404,"detail":"The note does not exist","code":"notes.not_found","details":{},"request_id":"0199f1c2-7d4e-7a31-9b5f-2c8d4e6f8a10"}}}}}},"503":{"description":"Service Unavailable","content":{"application/problem+json":{"schema":{"$ref":"#/components/schemas/Problem"},"examples":{"auth.apps_unavailable":{"value":{"type":"https://cmmd.ai/problems/auth.apps_unavailable","title":"Service Unavailable","status":503,"detail":"Your organization's apps cannot be checked right now; try again","code":"auth.apps_unavailable","details":{"app":"notes"},"retryable":true,"request_id":"0199f1c2-7d4e-7a31-9b5f-2c8d4e6f8a10"}}}}}}}},"patch":{"operationId":"Notes_update","summary":"Update, archive or restore a note","description":"Needs the `notes.update` permission in the organization.","tags":["Notes"],"security":[{"session":[],"organization":[]}],"parameters":[{"name":"note_id","in":"path","required":true,"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)$"}},{"name":"x-team-id","in":"header","required":false,"description":"One of the organization's active teams you are in, to filter by; missing, empty or `all` is every team.","schema":{"type":"string","pattern":"^([1-9][0-9]*|all)?$"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"type":"object","properties":{"title":{"type":"string","minLength":1,"maxLength":200},"body":{"type":"string","maxLength":20000},"pinned":{"type":"boolean"},"archived":{"type":"boolean"}}}}}},"responses":{"200":{"description":"OK","content":{"application/json":{"schema":{"type":"object","properties":{"id":{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"},"title":{"type":"string"},"body":{"type":"string"},"author_id":{"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991},"archived_at":{"anyOf":[{"type":"string","format":"date-time"},{"type":"null"}]},"created_at":{"type":"string","format":"date-time"},"updated_at":{"type":"string","format":"date-time"},"deleted_at":{"anyOf":[{"type":"string","format":"date-time"},{"type":"null"}]},"pinned":{"type":"boolean"}},"required":["id","title","body","author_id","archived_at","created_at","updated_at","deleted_at","pinned"],"additionalProperties":false}}}},"400":{"description":"Bad Request","content":{"application/problem+json":{"schema":{"anyOf":[{"$ref":"#/components/schemas/Problem"},{"$ref":"#/components/schemas/InvalidInputProblem"}]},"examples":{"auth.organization_required":{"value":{"type":"https://cmmd.ai/problems/auth.organization_required","title":"Bad Request","status":400,"detail":"Choose an organization to continue","code":"auth.organization_required","request_id":"0199f1c2-7d4e-7a31-9b5f-2c8d4e6f8a10"}},"auth.invalid_team":{"value":{"type":"https://cmmd.ai/problems/auth.invalid_team","title":"Bad Request","status":400,"detail":"The selected team is not valid; choose another team or all teams","code":"auth.invalid_team","request_id":"0199f1c2-7d4e-7a31-9b5f-2c8d4e6f8a10"}},"pipeline.invalid_input":{"value":{"type":"https://cmmd.ai/problems/pipeline.invalid_input","title":"Bad Request","status":400,"detail":"Some fields are missing or not valid","code":"pipeline.invalid_input","details":{"errors":[{"pointer":"#/note_id","code":"invalid_type","expected":"nonoptional","detail":"Invalid input: expected nonoptional, received undefined"}]},"request_id":"0199f1c2-7d4e-7a31-9b5f-2c8d4e6f8a10"}}}}}},"401":{"description":"Unauthorized","content":{"application/problem+json":{"schema":{"$ref":"#/components/schemas/Problem"},"examples":{"auth.unauthenticated":{"value":{"type":"https://cmmd.ai/problems/auth.unauthenticated","title":"Unauthorized","status":401,"detail":"Sign in to continue","code":"auth.unauthenticated","request_id":"0199f1c2-7d4e-7a31-9b5f-2c8d4e6f8a10"}}}}}},"402":{"description":"Payment Required","content":{"application/problem+json":{"schema":{"$ref":"#/components/schemas/Problem"},"examples":{"auth.app_not_in_plan":{"value":{"type":"https://cmmd.ai/problems/auth.app_not_in_plan","title":"Payment Required","status":402,"detail":"Your organization's subscription does not include this app","code":"auth.app_not_in_plan","details":{"app":"notes"},"request_id":"0199f1c2-7d4e-7a31-9b5f-2c8d4e6f8a10"}}}}}},"403":{"description":"Forbidden","content":{"application/problem+json":{"schema":{"$ref":"#/components/schemas/Problem"},"examples":{"auth.not_a_member":{"value":{"type":"https://cmmd.ai/problems/auth.not_a_member","title":"Forbidden","status":403,"detail":"You are not an active member of this organization","code":"auth.not_a_member","request_id":"0199f1c2-7d4e-7a31-9b5f-2c8d4e6f8a10"}},"auth.not_a_team_member":{"value":{"type":"https://cmmd.ai/problems/auth.not_a_team_member","title":"Forbidden","status":403,"detail":"You are not a member of the selected team; choose another team or all teams","code":"auth.not_a_team_member","request_id":"0199f1c2-7d4e-7a31-9b5f-2c8d4e6f8a10"}},"auth.missing_permission":{"value":{"type":"https://cmmd.ai/problems/auth.missing_permission","title":"Forbidden","status":403,"detail":"You don't have permission to do this; ask an owner or an admin of your organization","code":"auth.missing_permission","details":{"permission":"notes.update"},"request_id":"0199f1c2-7d4e-7a31-9b5f-2c8d4e6f8a10"}},"auth.app_disabled":{"value":{"type":"https://cmmd.ai/problems/auth.app_disabled","title":"Forbidden","status":403,"detail":"Your organization does not have this app on","code":"auth.app_disabled","details":{"app":"notes"},"request_id":"0199f1c2-7d4e-7a31-9b5f-2c8d4e6f8a10"}},"auth.person_required":{"value":{"type":"https://cmmd.ai/problems/auth.person_required","title":"Forbidden","status":403,"detail":"Only a signed-in person can do this","code":"auth.person_required","request_id":"0199f1c2-7d4e-7a31-9b5f-2c8d4e6f8a10"}},"notes.edit_forbidden":{"value":{"type":"https://cmmd.ai/problems/notes.edit_forbidden","title":"Forbidden","status":403,"detail":"Only the note's author can edit it","code":"notes.edit_forbidden","details":{},"request_id":"0199f1c2-7d4e-7a31-9b5f-2c8d4e6f8a10"}},"notes.archive_forbidden":{"value":{"type":"https://cmmd.ai/problems/notes.archive_forbidden","title":"Forbidden","status":403,"detail":"Only the note's author, an owner or an admin can archive or restore it","code":"notes.archive_forbidden","details":{},"request_id":"0199f1c2-7d4e-7a31-9b5f-2c8d4e6f8a10"}}}}}},"404":{"description":"Not Found","content":{"application/problem+json":{"schema":{"$ref":"#/components/schemas/Problem"},"examples":{"auth.team_not_found":{"value":{"type":"https://cmmd.ai/problems/auth.team_not_found","title":"Not Found","status":404,"detail":"The selected team was not found; choose another team or all teams","code":"auth.team_not_found","request_id":"0199f1c2-7d4e-7a31-9b5f-2c8d4e6f8a10"}},"notes.not_found":{"value":{"type":"https://cmmd.ai/problems/notes.not_found","title":"Not Found","status":404,"detail":"The note does not exist","code":"notes.not_found","details":{},"request_id":"0199f1c2-7d4e-7a31-9b5f-2c8d4e6f8a10"}}}}}},"409":{"description":"Conflict","content":{"application/problem+json":{"schema":{"$ref":"#/components/schemas/Problem"},"examples":{"notes.changed":{"value":{"type":"https://cmmd.ai/problems/notes.changed","title":"Conflict","status":409,"detail":"Someone else changed this note; reload it and try again","code":"notes.changed","details":{},"retryable":true,"request_id":"0199f1c2-7d4e-7a31-9b5f-2c8d4e6f8a10"}}}}}},"503":{"description":"Service Unavailable","content":{"application/problem+json":{"schema":{"$ref":"#/components/schemas/Problem"},"examples":{"auth.apps_unavailable":{"value":{"type":"https://cmmd.ai/problems/auth.apps_unavailable","title":"Service Unavailable","status":503,"detail":"Your organization's apps cannot be checked right now; try again","code":"auth.apps_unavailable","details":{"app":"notes"},"retryable":true,"request_id":"0199f1c2-7d4e-7a31-9b5f-2c8d4e6f8a10"}}}}}}}},"delete":{"operationId":"Notes_delete","summary":"Delete a note","description":"Needs the `notes.delete` permission in the organization.","tags":["Notes"],"security":[{"session":[],"organization":[]}],"parameters":[{"name":"note_id","in":"path","required":true,"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)$"}},{"name":"x-team-id","in":"header","required":false,"description":"One of the organization's active teams you are in, to filter by; missing, empty or `all` is every team.","schema":{"type":"string","pattern":"^([1-9][0-9]*|all)?$"}}],"responses":{"200":{"description":"OK","content":{"application/json":{"schema":{"type":"object","properties":{"id":{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"},"deleted_at":{"anyOf":[{"type":"string","format":"date-time"},{"type":"null"}]}},"required":["id","deleted_at"],"additionalProperties":false}}}},"400":{"description":"Bad Request","content":{"application/problem+json":{"schema":{"anyOf":[{"$ref":"#/components/schemas/Problem"},{"$ref":"#/components/schemas/InvalidInputProblem"}]},"examples":{"auth.organization_required":{"value":{"type":"https://cmmd.ai/problems/auth.organization_required","title":"Bad Request","status":400,"detail":"Choose an organization to continue","code":"auth.organization_required","request_id":"0199f1c2-7d4e-7a31-9b5f-2c8d4e6f8a10"}},"auth.invalid_team":{"value":{"type":"https://cmmd.ai/problems/auth.invalid_team","title":"Bad Request","status":400,"detail":"The selected team is not valid; choose another team or all teams","code":"auth.invalid_team","request_id":"0199f1c2-7d4e-7a31-9b5f-2c8d4e6f8a10"}},"pipeline.invalid_input":{"value":{"type":"https://cmmd.ai/problems/pipeline.invalid_input","title":"Bad Request","status":400,"detail":"Some fields are missing or not valid","code":"pipeline.invalid_input","details":{"errors":[{"pointer":"#/note_id","code":"invalid_type","expected":"string","detail":"Invalid input: expected string, received undefined"}]},"request_id":"0199f1c2-7d4e-7a31-9b5f-2c8d4e6f8a10"}}}}}},"401":{"description":"Unauthorized","content":{"application/problem+json":{"schema":{"$ref":"#/components/schemas/Problem"},"examples":{"auth.unauthenticated":{"value":{"type":"https://cmmd.ai/problems/auth.unauthenticated","title":"Unauthorized","status":401,"detail":"Sign in to continue","code":"auth.unauthenticated","request_id":"0199f1c2-7d4e-7a31-9b5f-2c8d4e6f8a10"}}}}}},"402":{"description":"Payment Required","content":{"application/problem+json":{"schema":{"$ref":"#/components/schemas/Problem"},"examples":{"auth.app_not_in_plan":{"value":{"type":"https://cmmd.ai/problems/auth.app_not_in_plan","title":"Payment Required","status":402,"detail":"Your organization's subscription does not include this app","code":"auth.app_not_in_plan","details":{"app":"notes"},"request_id":"0199f1c2-7d4e-7a31-9b5f-2c8d4e6f8a10"}}}}}},"403":{"description":"Forbidden","content":{"application/problem+json":{"schema":{"$ref":"#/components/schemas/Problem"},"examples":{"auth.not_a_member":{"value":{"type":"https://cmmd.ai/problems/auth.not_a_member","title":"Forbidden","status":403,"detail":"You are not an active member of this organization","code":"auth.not_a_member","request_id":"0199f1c2-7d4e-7a31-9b5f-2c8d4e6f8a10"}},"auth.not_a_team_member":{"value":{"type":"https://cmmd.ai/problems/auth.not_a_team_member","title":"Forbidden","status":403,"detail":"You are not a member of the selected team; choose another team or all teams","code":"auth.not_a_team_member","request_id":"0199f1c2-7d4e-7a31-9b5f-2c8d4e6f8a10"}},"auth.missing_permission":{"value":{"type":"https://cmmd.ai/problems/auth.missing_permission","title":"Forbidden","status":403,"detail":"You don't have permission to do this; ask an owner or an admin of your organization","code":"auth.missing_permission","details":{"permission":"notes.delete"},"request_id":"0199f1c2-7d4e-7a31-9b5f-2c8d4e6f8a10"}},"auth.app_disabled":{"value":{"type":"https://cmmd.ai/problems/auth.app_disabled","title":"Forbidden","status":403,"detail":"Your organization does not have this app on","code":"auth.app_disabled","details":{"app":"notes"},"request_id":"0199f1c2-7d4e-7a31-9b5f-2c8d4e6f8a10"}},"auth.person_required":{"value":{"type":"https://cmmd.ai/problems/auth.person_required","title":"Forbidden","status":403,"detail":"Only a signed-in person can do this","code":"auth.person_required","request_id":"0199f1c2-7d4e-7a31-9b5f-2c8d4e6f8a10"}}}}}},"404":{"description":"Not Found","content":{"application/problem+json":{"schema":{"$ref":"#/components/schemas/Problem"},"examples":{"auth.team_not_found":{"value":{"type":"https://cmmd.ai/problems/auth.team_not_found","title":"Not Found","status":404,"detail":"The selected team was not found; choose another team or all teams","code":"auth.team_not_found","request_id":"0199f1c2-7d4e-7a31-9b5f-2c8d4e6f8a10"}},"notes.not_found":{"value":{"type":"https://cmmd.ai/problems/notes.not_found","title":"Not Found","status":404,"detail":"The note does not exist","code":"notes.not_found","details":{},"request_id":"0199f1c2-7d4e-7a31-9b5f-2c8d4e6f8a10"}}}}}},"409":{"description":"Conflict","content":{"application/problem+json":{"schema":{"$ref":"#/components/schemas/Problem"},"examples":{"notes.changed":{"value":{"type":"https://cmmd.ai/problems/notes.changed","title":"Conflict","status":409,"detail":"Someone else changed this note; reload it and try again","code":"notes.changed","details":{},"retryable":true,"request_id":"0199f1c2-7d4e-7a31-9b5f-2c8d4e6f8a10"}}}}}},"503":{"description":"Service Unavailable","content":{"application/problem+json":{"schema":{"$ref":"#/components/schemas/Problem"},"examples":{"auth.apps_unavailable":{"value":{"type":"https://cmmd.ai/problems/auth.apps_unavailable","title":"Service Unavailable","status":503,"detail":"Your organization's apps cannot be checked right now; try again","code":"auth.apps_unavailable","details":{"app":"notes"},"retryable":true,"request_id":"0199f1c2-7d4e-7a31-9b5f-2c8d4e6f8a10"}}}}}}}}},"/v1/list-items":{"get":{"operationId":"ListItems_list","summary":"List list items","description":"Needs the `list-items.read` permission in the organization.","tags":["ListItems"],"security":[{"session":[],"organization":[]}],"parameters":[{"name":"cursor","in":"query","required":false,"schema":{"type":"integer","exclusiveMinimum":0,"maximum":9007199254740991}},{"name":"limit","in":"query","required":false,"schema":{"default":20,"type":"integer","minimum":1,"maximum":100}},{"name":"type","in":"query","required":false,"schema":{"type":"string","enum":["item","idea","issue"]}},{"name":"status","in":"query","required":false,"schema":{"type":"string","enum":["new","in_progress","solved","archived"]}},{"name":"teamless","in":"query","required":false,"schema":{"type":["boolean","string"]}},{"name":"x-team-id","in":"header","required":false,"description":"One of the organization's active teams you are in, to filter by; missing, empty or `all` is every team.","schema":{"type":"string","pattern":"^([1-9][0-9]*|all)?$"}}],"responses":{"200":{"description":"OK","content":{"application/json":{"schema":{"type":"object","properties":{"items":{"type":"array","items":{"type":"object","properties":{"id":{"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991},"team_id":{"anyOf":[{"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991},{"type":"null"}]},"user_id":{"anyOf":[{"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991},{"type":"null"}]},"title":{"type":"string"},"type":{"type":"string","enum":["item","idea","issue"]},"status":{"type":"string","enum":["new","in_progress","solved","archived"]},"time_horizon":{"anyOf":[{"type":"string","enum":["weekly","quarterly","annual","longer_term"]},{"type":"null"}]},"assigned_to":{"anyOf":[{"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991},{"type":"null"}]},"assigned_item_id":{"type":["string","null"]},"assigned_item_type":{"type":["string","null"]},"due_date":{"anyOf":[{"type":"string","format":"date-time"},{"type":"null"}]},"priority":{"type":["string","null"]},"is_urgent":{"type":["boolean","null"]},"is_important":{"type":["boolean","null"]},"sort_order":{"anyOf":[{"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991},{"type":"null"}]},"created_at":{"type":"string","format":"date-time"},"updated_at":{"type":"string","format":"date-time"},"updated_by":{"anyOf":[{"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991},{"type":"null"}]},"deleted_at":{"anyOf":[{"type":"string","format":"date-time"},{"type":"null"}]}},"required":["id","team_id","user_id","title","type","status","time_horizon","assigned_to","assigned_item_id","assigned_item_type","due_date","priority","is_urgent","is_important","sort_order","created_at","updated_at","updated_by","deleted_at"],"additionalProperties":false}},"next_cursor":{"type":["string","null"]}},"required":["items","next_cursor"],"additionalProperties":false}}}},"400":{"description":"Bad Request","content":{"application/problem+json":{"schema":{"anyOf":[{"$ref":"#/components/schemas/Problem"},{"$ref":"#/components/schemas/InvalidInputProblem"}]},"examples":{"auth.organization_required":{"value":{"type":"https://cmmd.ai/problems/auth.organization_required","title":"Bad Request","status":400,"detail":"Choose an organization to continue","code":"auth.organization_required","request_id":"0199f1c2-7d4e-7a31-9b5f-2c8d4e6f8a10"}},"auth.invalid_team":{"value":{"type":"https://cmmd.ai/problems/auth.invalid_team","title":"Bad Request","status":400,"detail":"The selected team is not valid; choose another team or all teams","code":"auth.invalid_team","request_id":"0199f1c2-7d4e-7a31-9b5f-2c8d4e6f8a10"}},"pipeline.invalid_input":{"value":{"type":"https://cmmd.ai/problems/pipeline.invalid_input","title":"Bad Request","status":400,"detail":"Some fields are missing or not valid","code":"pipeline.invalid_input","details":{"errors":[]},"request_id":"0199f1c2-7d4e-7a31-9b5f-2c8d4e6f8a10"}}}}}},"401":{"description":"Unauthorized","content":{"application/problem+json":{"schema":{"$ref":"#/components/schemas/Problem"},"examples":{"auth.unauthenticated":{"value":{"type":"https://cmmd.ai/problems/auth.unauthenticated","title":"Unauthorized","status":401,"detail":"Sign in to continue","code":"auth.unauthenticated","request_id":"0199f1c2-7d4e-7a31-9b5f-2c8d4e6f8a10"}}}}}},"402":{"description":"Payment Required","content":{"application/problem+json":{"schema":{"$ref":"#/components/schemas/Problem"},"examples":{"auth.app_not_in_plan":{"value":{"type":"https://cmmd.ai/problems/auth.app_not_in_plan","title":"Payment Required","status":402,"detail":"Your organization's subscription does not include this app","code":"auth.app_not_in_plan","details":{"app":"the-list"},"request_id":"0199f1c2-7d4e-7a31-9b5f-2c8d4e6f8a10"}}}}}},"403":{"description":"Forbidden","content":{"application/problem+json":{"schema":{"$ref":"#/components/schemas/Problem"},"examples":{"auth.not_a_member":{"value":{"type":"https://cmmd.ai/problems/auth.not_a_member","title":"Forbidden","status":403,"detail":"You are not an active member of this organization","code":"auth.not_a_member","request_id":"0199f1c2-7d4e-7a31-9b5f-2c8d4e6f8a10"}},"auth.not_a_team_member":{"value":{"type":"https://cmmd.ai/problems/auth.not_a_team_member","title":"Forbidden","status":403,"detail":"You are not a member of the selected team; choose another team or all teams","code":"auth.not_a_team_member","request_id":"0199f1c2-7d4e-7a31-9b5f-2c8d4e6f8a10"}},"auth.missing_permission":{"value":{"type":"https://cmmd.ai/problems/auth.missing_permission","title":"Forbidden","status":403,"detail":"You don't have permission to do this; ask an owner or an admin of your organization","code":"auth.missing_permission","details":{"permission":"list-items.read"},"request_id":"0199f1c2-7d4e-7a31-9b5f-2c8d4e6f8a10"}},"auth.app_disabled":{"value":{"type":"https://cmmd.ai/problems/auth.app_disabled","title":"Forbidden","status":403,"detail":"Your organization does not have this app on","code":"auth.app_disabled","details":{"app":"the-list"},"request_id":"0199f1c2-7d4e-7a31-9b5f-2c8d4e6f8a10"}}}}}},"404":{"description":"Not Found","content":{"application/problem+json":{"schema":{"$ref":"#/components/schemas/Problem"},"examples":{"auth.team_not_found":{"value":{"type":"https://cmmd.ai/problems/auth.team_not_found","title":"Not Found","status":404,"detail":"The selected team was not found; choose another team or all teams","code":"auth.team_not_found","request_id":"0199f1c2-7d4e-7a31-9b5f-2c8d4e6f8a10"}}}}}},"503":{"description":"Service Unavailable","content":{"application/problem+json":{"schema":{"$ref":"#/components/schemas/Problem"},"examples":{"auth.apps_unavailable":{"value":{"type":"https://cmmd.ai/problems/auth.apps_unavailable","title":"Service Unavailable","status":503,"detail":"Your organization's apps cannot be checked right now; try again","code":"auth.apps_unavailable","details":{"app":"the-list"},"retryable":true,"request_id":"0199f1c2-7d4e-7a31-9b5f-2c8d4e6f8a10"}}}}}}}},"post":{"operationId":"ListItems_create","summary":"Create a list item","description":"Needs the `list-items.create` permission in the organization.","tags":["ListItems"],"security":[{"session":[],"organization":[]}],"parameters":[{"name":"x-team-id","in":"header","required":false,"description":"One of the organization's active teams you are in, to filter by; missing, empty or `all` is every team.","schema":{"type":"string","pattern":"^([1-9][0-9]*|all)?$"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"type":"object","properties":{"title":{"type":"string","minLength":1,"maxLength":500},"description":{"anyOf":[{"type":"string","maxLength":20000},{"type":"null"}]},"type":{"type":"string","enum":["item","idea","issue"]},"time_horizon":{"anyOf":[{"type":"string","enum":["weekly","quarterly","annual","longer_term"]},{"type":"null"}]},"assigned_to":{"anyOf":[{"type":"integer","exclusiveMinimum":0,"maximum":9007199254740991},{"type":"null"}]},"assigned_item_id":{"anyOf":[{"type":"string","maxLength":255},{"type":"null"}]},"assigned_item_type":{"anyOf":[{"type":"string","maxLength":50},{"type":"null"}]},"due_date":{"anyOf":[{"type":"string","format":"date-time"},{"type":"null"}]},"priority":{"anyOf":[{"type":"string","maxLength":50},{"type":"null"}]},"is_urgent":{"type":"boolean"},"is_important":{"type":"boolean"},"summary":{"anyOf":[{"type":"string","maxLength":20000},{"type":"null"}]},"thoughts":{"anyOf":[{"type":"string","maxLength":20000},{"type":"null"}]},"solution":{"anyOf":[{"type":"string","maxLength":20000},{"type":"null"}]},"root_cause":{"anyOf":[{"type":"string","maxLength":20000},{"type":"null"}]},"link_id":{"type":"integer","exclusiveMinimum":0,"maximum":9007199254740991},"link_type":{"type":"string","enum":["task","project","sidekick_chat","external_url"]},"target_id":{"type":"string","minLength":1,"maxLength":255},"target_title":{"type":"string","minLength":1,"maxLength":500},"target_url":{"type":"string","maxLength":1000,"format":"uri"},"brain_document_id":{"type":"integer","exclusiveMinimum":0,"maximum":9007199254740991},"attachment_id":{"type":"integer","exclusiveMinimum":0,"maximum":9007199254740991}},"required":["title"]}}}},"responses":{"201":{"description":"Created","content":{"application/json":{"schema":{"type":"object","properties":{"id":{"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991},"team_id":{"anyOf":[{"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991},{"type":"null"}]},"user_id":{"anyOf":[{"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991},{"type":"null"}]},"title":{"type":"string"},"description":{"type":["string","null"]},"type":{"type":"string","enum":["item","idea","issue"]},"status":{"type":"string","enum":["new","in_progress","solved","archived"]},"time_horizon":{"anyOf":[{"type":"string","enum":["weekly","quarterly","annual","longer_term"]},{"type":"null"}]},"assigned_to":{"anyOf":[{"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991},{"type":"null"}]},"assigned_item_id":{"type":["string","null"]},"assigned_item_type":{"type":["string","null"]},"due_date":{"anyOf":[{"type":"string","format":"date-time"},{"type":"null"}]},"priority":{"type":["string","null"]},"is_urgent":{"type":["boolean","null"]},"is_important":{"type":["boolean","null"]},"sort_order":{"anyOf":[{"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991},{"type":"null"}]},"summary":{"type":["string","null"]},"thoughts":{"type":["string","null"]},"solution":{"type":["string","null"]},"root_cause":{"type":["string","null"]},"created_at":{"type":"string","format":"date-time"},"updated_at":{"type":"string","format":"date-time"},"updated_by":{"anyOf":[{"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991},{"type":"null"}]},"deleted_at":{"anyOf":[{"type":"string","format":"date-time"},{"type":"null"}]}},"required":["id","team_id","user_id","title","description","type","status","time_horizon","assigned_to","assigned_item_id","assigned_item_type","due_date","priority","is_urgent","is_important","sort_order","summary","thoughts","solution","root_cause","created_at","updated_at","updated_by","deleted_at"],"additionalProperties":false}}}},"400":{"description":"Bad Request","content":{"application/problem+json":{"schema":{"anyOf":[{"$ref":"#/components/schemas/Problem"},{"$ref":"#/components/schemas/InvalidInputProblem"}]},"examples":{"auth.organization_required":{"value":{"type":"https://cmmd.ai/problems/auth.organization_required","title":"Bad Request","status":400,"detail":"Choose an organization to continue","code":"auth.organization_required","request_id":"0199f1c2-7d4e-7a31-9b5f-2c8d4e6f8a10"}},"auth.invalid_team":{"value":{"type":"https://cmmd.ai/problems/auth.invalid_team","title":"Bad Request","status":400,"detail":"The selected team is not valid; choose another team or all teams","code":"auth.invalid_team","request_id":"0199f1c2-7d4e-7a31-9b5f-2c8d4e6f8a10"}},"pipeline.invalid_input":{"value":{"type":"https://cmmd.ai/problems/pipeline.invalid_input","title":"Bad Request","status":400,"detail":"Some fields are missing or not valid","code":"pipeline.invalid_input","details":{"errors":[{"pointer":"#/title","code":"invalid_type","expected":"nonoptional","detail":"Invalid input: expected nonoptional, received undefined"}]},"request_id":"0199f1c2-7d4e-7a31-9b5f-2c8d4e6f8a10"}},"auth.invalid_member":{"value":{"type":"https://cmmd.ai/problems/auth.invalid_member","title":"Bad Request","status":400,"detail":"Someone you chose is not a member of this organization","code":"auth.invalid_member","details":{"errors":[{"pointer":"#/user_id","code":"invalid_member","detail":"This user is not an active member of this organization"}]},"request_id":"0199f1c2-7d4e-7a31-9b5f-2c8d4e6f8a10"}}}}}},"401":{"description":"Unauthorized","content":{"application/problem+json":{"schema":{"$ref":"#/components/schemas/Problem"},"examples":{"auth.unauthenticated":{"value":{"type":"https://cmmd.ai/problems/auth.unauthenticated","title":"Unauthorized","status":401,"detail":"Sign in to continue","code":"auth.unauthenticated","request_id":"0199f1c2-7d4e-7a31-9b5f-2c8d4e6f8a10"}}}}}},"402":{"description":"Payment Required","content":{"application/problem+json":{"schema":{"$ref":"#/components/schemas/Problem"},"examples":{"auth.app_not_in_plan":{"value":{"type":"https://cmmd.ai/problems/auth.app_not_in_plan","title":"Payment Required","status":402,"detail":"Your organization's subscription does not include this app","code":"auth.app_not_in_plan","details":{"app":"the-list"},"request_id":"0199f1c2-7d4e-7a31-9b5f-2c8d4e6f8a10"}}}}}},"403":{"description":"Forbidden","content":{"application/problem+json":{"schema":{"$ref":"#/components/schemas/Problem"},"examples":{"auth.not_a_member":{"value":{"type":"https://cmmd.ai/problems/auth.not_a_member","title":"Forbidden","status":403,"detail":"You are not an active member of this organization","code":"auth.not_a_member","request_id":"0199f1c2-7d4e-7a31-9b5f-2c8d4e6f8a10"}},"auth.not_a_team_member":{"value":{"type":"https://cmmd.ai/problems/auth.not_a_team_member","title":"Forbidden","status":403,"detail":"You are not a member of the selected team; choose another team or all teams","code":"auth.not_a_team_member","request_id":"0199f1c2-7d4e-7a31-9b5f-2c8d4e6f8a10"}},"auth.missing_permission":{"value":{"type":"https://cmmd.ai/problems/auth.missing_permission","title":"Forbidden","status":403,"detail":"You don't have permission to do this; ask an owner or an admin of your organization","code":"auth.missing_permission","details":{"permission":"list-items.create"},"request_id":"0199f1c2-7d4e-7a31-9b5f-2c8d4e6f8a10"}},"auth.app_disabled":{"value":{"type":"https://cmmd.ai/problems/auth.app_disabled","title":"Forbidden","status":403,"detail":"Your organization does not have this app on","code":"auth.app_disabled","details":{"app":"the-list"},"request_id":"0199f1c2-7d4e-7a31-9b5f-2c8d4e6f8a10"}}}}}},"404":{"description":"Not Found","content":{"application/problem+json":{"schema":{"$ref":"#/components/schemas/Problem"},"examples":{"auth.team_not_found":{"value":{"type":"https://cmmd.ai/problems/auth.team_not_found","title":"Not Found","status":404,"detail":"The selected team was not found; choose another team or all teams","code":"auth.team_not_found","request_id":"0199f1c2-7d4e-7a31-9b5f-2c8d4e6f8a10"}}}}}},"503":{"description":"Service Unavailable","content":{"application/problem+json":{"schema":{"$ref":"#/components/schemas/Problem"},"examples":{"auth.apps_unavailable":{"value":{"type":"https://cmmd.ai/problems/auth.apps_unavailable","title":"Service Unavailable","status":503,"detail":"Your organization's apps cannot be checked right now; try again","code":"auth.apps_unavailable","details":{"app":"the-list"},"retryable":true,"request_id":"0199f1c2-7d4e-7a31-9b5f-2c8d4e6f8a10"}}}}}}}}},"/v1/list-items/{list_item_id}":{"get":{"operationId":"ListItems_get","summary":"Get a list item","description":"Needs the `list-items.read` permission in the organization.","tags":["ListItems"],"security":[{"session":[],"organization":[]}],"parameters":[{"name":"list_item_id","in":"path","required":true,"schema":{"type":"integer","exclusiveMinimum":0,"maximum":9007199254740991}},{"name":"x-team-id","in":"header","required":false,"description":"One of the organization's active teams you are in, to filter by; missing, empty or `all` is every team.","schema":{"type":"string","pattern":"^([1-9][0-9]*|all)?$"}}],"responses":{"200":{"description":"OK","content":{"application/json":{"schema":{"type":"object","properties":{"id":{"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991},"team_id":{"anyOf":[{"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991},{"type":"null"}]},"user_id":{"anyOf":[{"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991},{"type":"null"}]},"title":{"type":"string"},"description":{"type":["string","null"]},"type":{"type":"string","enum":["item","idea","issue"]},"status":{"type":"string","enum":["new","in_progress","solved","archived"]},"time_horizon":{"anyOf":[{"type":"string","enum":["weekly","quarterly","annual","longer_term"]},{"type":"null"}]},"assigned_to":{"anyOf":[{"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991},{"type":"null"}]},"assigned_item_id":{"type":["string","null"]},"assigned_item_type":{"type":["string","null"]},"due_date":{"anyOf":[{"type":"string","format":"date-time"},{"type":"null"}]},"priority":{"type":["string","null"]},"is_urgent":{"type":["boolean","null"]},"is_important":{"type":["boolean","null"]},"sort_order":{"anyOf":[{"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991},{"type":"null"}]},"summary":{"type":["string","null"]},"thoughts":{"type":["string","null"]},"solution":{"type":["string","null"]},"root_cause":{"type":["string","null"]},"created_at":{"type":"string","format":"date-time"},"updated_at":{"type":"string","format":"date-time"},"updated_by":{"anyOf":[{"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991},{"type":"null"}]},"deleted_at":{"anyOf":[{"type":"string","format":"date-time"},{"type":"null"}]},"links":{"type":"array","items":{"type":"object","properties":{"id":{"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991},"list_item_id":{"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991},"created_by":{"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991},"link_type":{"type":"string","enum":["task","project","sidekick_chat","external_url"]},"target_id":{"type":"string"},"target_title":{"type":"string"},"target_url":{"type":["string","null"]},"created_at":{"type":"string","format":"date-time"},"updated_at":{"type":"string","format":"date-time"}},"required":["id","list_item_id","created_by","link_type","target_id","target_title","target_url","created_at","updated_at"],"additionalProperties":false}},"attachments":{"type":"array","items":{"type":"object","properties":{"id":{"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991},"brain_document_id":{"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991},"attached_by":{"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991},"created_at":{"type":"string","format":"date-time"},"title":{"type":"string"},"mime_type":{"type":["string","null"]}},"required":["id","brain_document_id","attached_by","created_at","title","mime_type"],"additionalProperties":false}}},"required":["id","team_id","user_id","title","description","type","status","time_horizon","assigned_to","assigned_item_id","assigned_item_type","due_date","priority","is_urgent","is_important","sort_order","summary","thoughts","solution","root_cause","created_at","updated_at","updated_by","deleted_at","links","attachments"],"additionalProperties":false}}}},"400":{"description":"Bad Request","content":{"application/problem+json":{"schema":{"anyOf":[{"$ref":"#/components/schemas/Problem"},{"$ref":"#/components/schemas/InvalidInputProblem"}]},"examples":{"auth.organization_required":{"value":{"type":"https://cmmd.ai/problems/auth.organization_required","title":"Bad Request","status":400,"detail":"Choose an organization to continue","code":"auth.organization_required","request_id":"0199f1c2-7d4e-7a31-9b5f-2c8d4e6f8a10"}},"auth.invalid_team":{"value":{"type":"https://cmmd.ai/problems/auth.invalid_team","title":"Bad Request","status":400,"detail":"The selected team is not valid; choose another team or all teams","code":"auth.invalid_team","request_id":"0199f1c2-7d4e-7a31-9b5f-2c8d4e6f8a10"}},"pipeline.invalid_input":{"value":{"type":"https://cmmd.ai/problems/pipeline.invalid_input","title":"Bad Request","status":400,"detail":"Some fields are missing or not valid","code":"pipeline.invalid_input","details":{"errors":[{"pointer":"#/list_item_id","code":"invalid_type","expected":"number","detail":"Invalid input: expected number, received NaN"}]},"request_id":"0199f1c2-7d4e-7a31-9b5f-2c8d4e6f8a10"}}}}}},"401":{"description":"Unauthorized","content":{"application/problem+json":{"schema":{"$ref":"#/components/schemas/Problem"},"examples":{"auth.unauthenticated":{"value":{"type":"https://cmmd.ai/problems/auth.unauthenticated","title":"Unauthorized","status":401,"detail":"Sign in to continue","code":"auth.unauthenticated","request_id":"0199f1c2-7d4e-7a31-9b5f-2c8d4e6f8a10"}}}}}},"402":{"description":"Payment Required","content":{"application/problem+json":{"schema":{"$ref":"#/components/schemas/Problem"},"examples":{"auth.app_not_in_plan":{"value":{"type":"https://cmmd.ai/problems/auth.app_not_in_plan","title":"Payment Required","status":402,"detail":"Your organization's subscription does not include this app","code":"auth.app_not_in_plan","details":{"app":"the-list"},"request_id":"0199f1c2-7d4e-7a31-9b5f-2c8d4e6f8a10"}}}}}},"403":{"description":"Forbidden","content":{"application/problem+json":{"schema":{"$ref":"#/components/schemas/Problem"},"examples":{"auth.not_a_member":{"value":{"type":"https://cmmd.ai/problems/auth.not_a_member","title":"Forbidden","status":403,"detail":"You are not an active member of this organization","code":"auth.not_a_member","request_id":"0199f1c2-7d4e-7a31-9b5f-2c8d4e6f8a10"}},"auth.not_a_team_member":{"value":{"type":"https://cmmd.ai/problems/auth.not_a_team_member","title":"Forbidden","status":403,"detail":"You are not a member of the selected team; choose another team or all teams","code":"auth.not_a_team_member","request_id":"0199f1c2-7d4e-7a31-9b5f-2c8d4e6f8a10"}},"auth.missing_permission":{"value":{"type":"https://cmmd.ai/problems/auth.missing_permission","title":"Forbidden","status":403,"detail":"You don't have permission to do this; ask an owner or an admin of your organization","code":"auth.missing_permission","details":{"permission":"list-items.read"},"request_id":"0199f1c2-7d4e-7a31-9b5f-2c8d4e6f8a10"}},"auth.app_disabled":{"value":{"type":"https://cmmd.ai/problems/auth.app_disabled","title":"Forbidden","status":403,"detail":"Your organization does not have this app on","code":"auth.app_disabled","details":{"app":"the-list"},"request_id":"0199f1c2-7d4e-7a31-9b5f-2c8d4e6f8a10"}}}}}},"404":{"description":"Not Found","content":{"application/problem+json":{"schema":{"$ref":"#/components/schemas/Problem"},"examples":{"auth.team_not_found":{"value":{"type":"https://cmmd.ai/problems/auth.team_not_found","title":"Not Found","status":404,"detail":"The selected team was not found; choose another team or all teams","code":"auth.team_not_found","request_id":"0199f1c2-7d4e-7a31-9b5f-2c8d4e6f8a10"}},"list_items.not_found":{"value":{"type":"https://cmmd.ai/problems/list_items.not_found","title":"Not Found","status":404,"detail":"The list item does not exist","code":"list_items.not_found","details":{},"request_id":"0199f1c2-7d4e-7a31-9b5f-2c8d4e6f8a10"}}}}}},"503":{"description":"Service Unavailable","content":{"application/problem+json":{"schema":{"$ref":"#/components/schemas/Problem"},"examples":{"auth.apps_unavailable":{"value":{"type":"https://cmmd.ai/problems/auth.apps_unavailable","title":"Service Unavailable","status":503,"detail":"Your organization's apps cannot be checked right now; try again","code":"auth.apps_unavailable","details":{"app":"the-list"},"retryable":true,"request_id":"0199f1c2-7d4e-7a31-9b5f-2c8d4e6f8a10"}}}}}}}},"patch":{"operationId":"ListItems_update","summary":"Update, archive or restore a list item","description":"Needs the `list-items.update` permission in the organization.","tags":["ListItems"],"security":[{"session":[],"organization":[]}],"parameters":[{"name":"list_item_id","in":"path","required":true,"schema":{"type":"integer","exclusiveMinimum":0,"maximum":9007199254740991}},{"name":"x-team-id","in":"header","required":false,"description":"One of the organization's active teams you are in, to filter by; missing, empty or `all` is every team.","schema":{"type":"string","pattern":"^([1-9][0-9]*|all)?$"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"type":"object","properties":{"title":{"type":"string","minLength":1,"maxLength":500},"description":{"anyOf":[{"type":"string","maxLength":20000},{"type":"null"}]},"type":{"type":"string","enum":["item","idea","issue"]},"status":{"type":"string","enum":["new","in_progress","solved","archived"]},"time_horizon":{"anyOf":[{"type":"string","enum":["weekly","quarterly","annual","longer_term"]},{"type":"null"}]},"assigned_to":{"anyOf":[{"type":"integer","exclusiveMinimum":0,"maximum":9007199254740991},{"type":"null"}]},"assigned_item_id":{"anyOf":[{"type":"string","maxLength":255},{"type":"null"}]},"assigned_item_type":{"anyOf":[{"type":"string","maxLength":50},{"type":"null"}]},"due_date":{"anyOf":[{"type":"string","format":"date-time"},{"type":"null"}]},"priority":{"anyOf":[{"type":"string","maxLength":50},{"type":"null"}]},"is_urgent":{"type":"boolean"},"is_important":{"type":"boolean"},"summary":{"anyOf":[{"type":"string","maxLength":20000},{"type":"null"}]},"thoughts":{"anyOf":[{"type":"string","maxLength":20000},{"type":"null"}]},"solution":{"anyOf":[{"type":"string","maxLength":20000},{"type":"null"}]},"root_cause":{"anyOf":[{"type":"string","maxLength":20000},{"type":"null"}]},"after_id":{"type":"integer","exclusiveMinimum":0,"maximum":9007199254740991},"before_id":{"type":"integer","exclusiveMinimum":0,"maximum":9007199254740991},"link_id":{"type":"integer","exclusiveMinimum":0,"maximum":9007199254740991},"link_type":{"type":"string","enum":["task","project","sidekick_chat","external_url"]},"target_id":{"type":"string","minLength":1,"maxLength":255},"target_title":{"type":"string","minLength":1,"maxLength":500},"target_url":{"type":"string","maxLength":1000,"format":"uri"},"brain_document_id":{"type":"integer","exclusiveMinimum":0,"maximum":9007199254740991},"attachment_id":{"type":"integer","exclusiveMinimum":0,"maximum":9007199254740991}}}}}},"responses":{"200":{"description":"OK","content":{"application/json":{"schema":{"type":"object","properties":{"id":{"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991},"team_id":{"anyOf":[{"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991},{"type":"null"}]},"user_id":{"anyOf":[{"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991},{"type":"null"}]},"title":{"type":"string"},"description":{"type":["string","null"]},"type":{"type":"string","enum":["item","idea","issue"]},"status":{"type":"string","enum":["new","in_progress","solved","archived"]},"time_horizon":{"anyOf":[{"type":"string","enum":["weekly","quarterly","annual","longer_term"]},{"type":"null"}]},"assigned_to":{"anyOf":[{"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991},{"type":"null"}]},"assigned_item_id":{"type":["string","null"]},"assigned_item_type":{"type":["string","null"]},"due_date":{"anyOf":[{"type":"string","format":"date-time"},{"type":"null"}]},"priority":{"type":["string","null"]},"is_urgent":{"type":["boolean","null"]},"is_important":{"type":["boolean","null"]},"sort_order":{"anyOf":[{"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991},{"type":"null"}]},"summary":{"type":["string","null"]},"thoughts":{"type":["string","null"]},"solution":{"type":["string","null"]},"root_cause":{"type":["string","null"]},"created_at":{"type":"string","format":"date-time"},"updated_at":{"type":"string","format":"date-time"},"updated_by":{"anyOf":[{"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991},{"type":"null"}]},"deleted_at":{"anyOf":[{"type":"string","format":"date-time"},{"type":"null"}]}},"required":["id","team_id","user_id","title","description","type","status","time_horizon","assigned_to","assigned_item_id","assigned_item_type","due_date","priority","is_urgent","is_important","sort_order","summary","thoughts","solution","root_cause","created_at","updated_at","updated_by","deleted_at"],"additionalProperties":false}}}},"400":{"description":"Bad Request","content":{"application/problem+json":{"schema":{"anyOf":[{"$ref":"#/components/schemas/Problem"},{"$ref":"#/components/schemas/InvalidInputProblem"}]},"examples":{"auth.organization_required":{"value":{"type":"https://cmmd.ai/problems/auth.organization_required","title":"Bad Request","status":400,"detail":"Choose an organization to continue","code":"auth.organization_required","request_id":"0199f1c2-7d4e-7a31-9b5f-2c8d4e6f8a10"}},"auth.invalid_team":{"value":{"type":"https://cmmd.ai/problems/auth.invalid_team","title":"Bad Request","status":400,"detail":"The selected team is not valid; choose another team or all teams","code":"auth.invalid_team","request_id":"0199f1c2-7d4e-7a31-9b5f-2c8d4e6f8a10"}},"pipeline.invalid_input":{"value":{"type":"https://cmmd.ai/problems/pipeline.invalid_input","title":"Bad Request","status":400,"detail":"Some fields are missing or not valid","code":"pipeline.invalid_input","details":{"errors":[{"pointer":"#/list_item_id","code":"invalid_type","expected":"nonoptional","detail":"Invalid input: expected nonoptional, received undefined"}]},"request_id":"0199f1c2-7d4e-7a31-9b5f-2c8d4e6f8a10"}},"auth.invalid_member":{"value":{"type":"https://cmmd.ai/problems/auth.invalid_member","title":"Bad Request","status":400,"detail":"Someone you chose is not a member of this organization","code":"auth.invalid_member","details":{"errors":[{"pointer":"#/user_id","code":"invalid_member","detail":"This user is not an active member of this organization"}]},"request_id":"0199f1c2-7d4e-7a31-9b5f-2c8d4e6f8a10"}},"list_items.invalid_position":{"value":{"type":"https://cmmd.ai/problems/list_items.invalid_position","title":"Bad Request","status":400,"detail":"The item cannot be moved there; reload the list and choose another place","code":"list_items.invalid_position","request_id":"0199f1c2-7d4e-7a31-9b5f-2c8d4e6f8a10"}}}}}},"401":{"description":"Unauthorized","content":{"application/problem+json":{"schema":{"$ref":"#/components/schemas/Problem"},"examples":{"auth.unauthenticated":{"value":{"type":"https://cmmd.ai/problems/auth.unauthenticated","title":"Unauthorized","status":401,"detail":"Sign in to continue","code":"auth.unauthenticated","request_id":"0199f1c2-7d4e-7a31-9b5f-2c8d4e6f8a10"}}}}}},"402":{"description":"Payment Required","content":{"application/problem+json":{"schema":{"$ref":"#/components/schemas/Problem"},"examples":{"auth.app_not_in_plan":{"value":{"type":"https://cmmd.ai/problems/auth.app_not_in_plan","title":"Payment Required","status":402,"detail":"Your organization's subscription does not include this app","code":"auth.app_not_in_plan","details":{"app":"the-list"},"request_id":"0199f1c2-7d4e-7a31-9b5f-2c8d4e6f8a10"}}}}}},"403":{"description":"Forbidden","content":{"application/problem+json":{"schema":{"$ref":"#/components/schemas/Problem"},"examples":{"auth.not_a_member":{"value":{"type":"https://cmmd.ai/problems/auth.not_a_member","title":"Forbidden","status":403,"detail":"You are not an active member of this organization","code":"auth.not_a_member","request_id":"0199f1c2-7d4e-7a31-9b5f-2c8d4e6f8a10"}},"auth.not_a_team_member":{"value":{"type":"https://cmmd.ai/problems/auth.not_a_team_member","title":"Forbidden","status":403,"detail":"You are not a member of the selected team; choose another team or all teams","code":"auth.not_a_team_member","request_id":"0199f1c2-7d4e-7a31-9b5f-2c8d4e6f8a10"}},"auth.missing_permission":{"value":{"type":"https://cmmd.ai/problems/auth.missing_permission","title":"Forbidden","status":403,"detail":"You don't have permission to do this; ask an owner or an admin of your organization","code":"auth.missing_permission","details":{"permission":"list-items.update"},"request_id":"0199f1c2-7d4e-7a31-9b5f-2c8d4e6f8a10"}},"auth.app_disabled":{"value":{"type":"https://cmmd.ai/problems/auth.app_disabled","title":"Forbidden","status":403,"detail":"Your organization does not have this app on","code":"auth.app_disabled","details":{"app":"the-list"},"request_id":"0199f1c2-7d4e-7a31-9b5f-2c8d4e6f8a10"}},"list_items.archive_forbidden":{"value":{"type":"https://cmmd.ai/problems/list_items.archive_forbidden","title":"Forbidden","status":403,"detail":"Only the item's author, its assignee, an owner or an admin can archive or restore it","code":"list_items.archive_forbidden","details":{},"request_id":"0199f1c2-7d4e-7a31-9b5f-2c8d4e6f8a10"}}}}}},"404":{"description":"Not Found","content":{"application/problem+json":{"schema":{"$ref":"#/components/schemas/Problem"},"examples":{"auth.team_not_found":{"value":{"type":"https://cmmd.ai/problems/auth.team_not_found","title":"Not Found","status":404,"detail":"The selected team was not found; choose another team or all teams","code":"auth.team_not_found","request_id":"0199f1c2-7d4e-7a31-9b5f-2c8d4e6f8a10"}},"list_items.not_found":{"value":{"type":"https://cmmd.ai/problems/list_items.not_found","title":"Not Found","status":404,"detail":"The list item does not exist","code":"list_items.not_found","details":{},"request_id":"0199f1c2-7d4e-7a31-9b5f-2c8d4e6f8a10"}}}}}},"503":{"description":"Service Unavailable","content":{"application/problem+json":{"schema":{"$ref":"#/components/schemas/Problem"},"examples":{"auth.apps_unavailable":{"value":{"type":"https://cmmd.ai/problems/auth.apps_unavailable","title":"Service Unavailable","status":503,"detail":"Your organization's apps cannot be checked right now; try again","code":"auth.apps_unavailable","details":{"app":"the-list"},"retryable":true,"request_id":"0199f1c2-7d4e-7a31-9b5f-2c8d4e6f8a10"}}}}}}}},"delete":{"operationId":"ListItems_delete","summary":"Delete a list item","description":"Needs the `list-items.delete` permission in the organization.","tags":["ListItems"],"security":[{"session":[],"organization":[]}],"parameters":[{"name":"list_item_id","in":"path","required":true,"schema":{"type":"integer","exclusiveMinimum":0,"maximum":9007199254740991}},{"name":"x-team-id","in":"header","required":false,"description":"One of the organization's active teams you are in, to filter by; missing, empty or `all` is every team.","schema":{"type":"string","pattern":"^([1-9][0-9]*|all)?$"}}],"responses":{"200":{"description":"OK","content":{"application/json":{"schema":{"type":"object","properties":{"id":{"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991},"deleted_at":{"type":"string","format":"date-time"}},"required":["id","deleted_at"],"additionalProperties":false}}}},"400":{"description":"Bad Request","content":{"application/problem+json":{"schema":{"anyOf":[{"$ref":"#/components/schemas/Problem"},{"$ref":"#/components/schemas/InvalidInputProblem"}]},"examples":{"auth.organization_required":{"value":{"type":"https://cmmd.ai/problems/auth.organization_required","title":"Bad Request","status":400,"detail":"Choose an organization to continue","code":"auth.organization_required","request_id":"0199f1c2-7d4e-7a31-9b5f-2c8d4e6f8a10"}},"auth.invalid_team":{"value":{"type":"https://cmmd.ai/problems/auth.invalid_team","title":"Bad Request","status":400,"detail":"The selected team is not valid; choose another team or all teams","code":"auth.invalid_team","request_id":"0199f1c2-7d4e-7a31-9b5f-2c8d4e6f8a10"}},"pipeline.invalid_input":{"value":{"type":"https://cmmd.ai/problems/pipeline.invalid_input","title":"Bad Request","status":400,"detail":"Some fields are missing or not valid","code":"pipeline.invalid_input","details":{"errors":[{"pointer":"#/list_item_id","code":"invalid_type","expected":"number","detail":"Invalid input: expected number, received NaN"}]},"request_id":"0199f1c2-7d4e-7a31-9b5f-2c8d4e6f8a10"}}}}}},"401":{"description":"Unauthorized","content":{"application/problem+json":{"schema":{"$ref":"#/components/schemas/Problem"},"examples":{"auth.unauthenticated":{"value":{"type":"https://cmmd.ai/problems/auth.unauthenticated","title":"Unauthorized","status":401,"detail":"Sign in to continue","code":"auth.unauthenticated","request_id":"0199f1c2-7d4e-7a31-9b5f-2c8d4e6f8a10"}}}}}},"402":{"description":"Payment Required","content":{"application/problem+json":{"schema":{"$ref":"#/components/schemas/Problem"},"examples":{"auth.app_not_in_plan":{"value":{"type":"https://cmmd.ai/problems/auth.app_not_in_plan","title":"Payment Required","status":402,"detail":"Your organization's subscription does not include this app","code":"auth.app_not_in_plan","details":{"app":"the-list"},"request_id":"0199f1c2-7d4e-7a31-9b5f-2c8d4e6f8a10"}}}}}},"403":{"description":"Forbidden","content":{"application/problem+json":{"schema":{"$ref":"#/components/schemas/Problem"},"examples":{"auth.not_a_member":{"value":{"type":"https://cmmd.ai/problems/auth.not_a_member","title":"Forbidden","status":403,"detail":"You are not an active member of this organization","code":"auth.not_a_member","request_id":"0199f1c2-7d4e-7a31-9b5f-2c8d4e6f8a10"}},"auth.not_a_team_member":{"value":{"type":"https://cmmd.ai/problems/auth.not_a_team_member","title":"Forbidden","status":403,"detail":"You are not a member of the selected team; choose another team or all teams","code":"auth.not_a_team_member","request_id":"0199f1c2-7d4e-7a31-9b5f-2c8d4e6f8a10"}},"auth.missing_permission":{"value":{"type":"https://cmmd.ai/problems/auth.missing_permission","title":"Forbidden","status":403,"detail":"You don't have permission to do this; ask an owner or an admin of your organization","code":"auth.missing_permission","details":{"permission":"list-items.delete"},"request_id":"0199f1c2-7d4e-7a31-9b5f-2c8d4e6f8a10"}},"auth.app_disabled":{"value":{"type":"https://cmmd.ai/problems/auth.app_disabled","title":"Forbidden","status":403,"detail":"Your organization does not have this app on","code":"auth.app_disabled","details":{"app":"the-list"},"request_id":"0199f1c2-7d4e-7a31-9b5f-2c8d4e6f8a10"}}}}}},"404":{"description":"Not Found","content":{"application/problem+json":{"schema":{"$ref":"#/components/schemas/Problem"},"examples":{"auth.team_not_found":{"value":{"type":"https://cmmd.ai/problems/auth.team_not_found","title":"Not Found","status":404,"detail":"The selected team was not found; choose another team or all teams","code":"auth.team_not_found","request_id":"0199f1c2-7d4e-7a31-9b5f-2c8d4e6f8a10"}},"list_items.not_found":{"value":{"type":"https://cmmd.ai/problems/list_items.not_found","title":"Not Found","status":404,"detail":"The list item does not exist","code":"list_items.not_found","details":{},"request_id":"0199f1c2-7d4e-7a31-9b5f-2c8d4e6f8a10"}}}}}},"503":{"description":"Service Unavailable","content":{"application/problem+json":{"schema":{"$ref":"#/components/schemas/Problem"},"examples":{"auth.apps_unavailable":{"value":{"type":"https://cmmd.ai/problems/auth.apps_unavailable","title":"Service Unavailable","status":503,"detail":"Your organization's apps cannot be checked right now; try again","code":"auth.apps_unavailable","details":{"app":"the-list"},"retryable":true,"request_id":"0199f1c2-7d4e-7a31-9b5f-2c8d4e6f8a10"}}}}}}}}},"/v1/list-items/{list_item_id}/links":{"post":{"operationId":"ListItems_addLinkTo","summary":"Link a list item to a task, project, chat or URL; an external_url link needs target_url","description":"Needs the `list-items.update` permission in the organization.","tags":["ListItems"],"security":[{"session":[],"organization":[]}],"parameters":[{"name":"list_item_id","in":"path","required":true,"schema":{"type":"integer","exclusiveMinimum":0,"maximum":9007199254740991}},{"name":"x-team-id","in":"header","required":false,"description":"One of the organization's active teams you are in, to filter by; missing, empty or `all` is every team.","schema":{"type":"string","pattern":"^([1-9][0-9]*|all)?$"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"type":"object","properties":{"link_type":{"type":"string","enum":["task","project","sidekick_chat","external_url"]},"target_id":{"type":"string","minLength":1,"maxLength":255},"target_title":{"type":"string","minLength":1,"maxLength":500},"target_url":{"type":"string","maxLength":1000,"format":"uri"}},"required":["link_type","target_id","target_title"]}}}},"responses":{"201":{"description":"Created","content":{"application/json":{"schema":{"type":"object","properties":{"id":{"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991},"list_item_id":{"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991},"created_by":{"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991},"link_type":{"type":"string","enum":["task","project","sidekick_chat","external_url"]},"target_id":{"type":"string"},"target_title":{"type":"string"},"target_url":{"type":["string","null"]},"created_at":{"type":"string","format":"date-time"},"updated_at":{"type":"string","format":"date-time"}},"required":["id","list_item_id","created_by","link_type","target_id","target_title","target_url","created_at","updated_at"],"additionalProperties":false}}}},"400":{"description":"Bad Request","content":{"application/problem+json":{"schema":{"anyOf":[{"$ref":"#/components/schemas/Problem"},{"$ref":"#/components/schemas/InvalidInputProblem"}]},"examples":{"auth.organization_required":{"value":{"type":"https://cmmd.ai/problems/auth.organization_required","title":"Bad Request","status":400,"detail":"Choose an organization to continue","code":"auth.organization_required","request_id":"0199f1c2-7d4e-7a31-9b5f-2c8d4e6f8a10"}},"auth.invalid_team":{"value":{"type":"https://cmmd.ai/problems/auth.invalid_team","title":"Bad Request","status":400,"detail":"The selected team is not valid; choose another team or all teams","code":"auth.invalid_team","request_id":"0199f1c2-7d4e-7a31-9b5f-2c8d4e6f8a10"}},"pipeline.invalid_input":{"value":{"type":"https://cmmd.ai/problems/pipeline.invalid_input","title":"Bad Request","status":400,"detail":"Some fields are missing or not valid","code":"pipeline.invalid_input","details":{"errors":[{"pointer":"#/link_type","code":"invalid_value","values":["task","project","sidekick_chat","external_url"],"detail":"Invalid option: expected one of \"task\"|\"project\"|\"sidekick_chat\"|\"external_url\""},{"pointer":"#/target_id","code":"invalid_type","expected":"string","detail":"Invalid input: expected string, received undefined"},{"pointer":"#/target_title","code":"invalid_type","expected":"string","detail":"Invalid input: expected string, received undefined"}]},"request_id":"0199f1c2-7d4e-7a31-9b5f-2c8d4e6f8a10"}}}}}},"401":{"description":"Unauthorized","content":{"application/problem+json":{"schema":{"$ref":"#/components/schemas/Problem"},"examples":{"auth.unauthenticated":{"value":{"type":"https://cmmd.ai/problems/auth.unauthenticated","title":"Unauthorized","status":401,"detail":"Sign in to continue","code":"auth.unauthenticated","request_id":"0199f1c2-7d4e-7a31-9b5f-2c8d4e6f8a10"}}}}}},"402":{"description":"Payment Required","content":{"application/problem+json":{"schema":{"$ref":"#/components/schemas/Problem"},"examples":{"auth.app_not_in_plan":{"value":{"type":"https://cmmd.ai/problems/auth.app_not_in_plan","title":"Payment Required","status":402,"detail":"Your organization's subscription does not include this app","code":"auth.app_not_in_plan","details":{"app":"the-list"},"request_id":"0199f1c2-7d4e-7a31-9b5f-2c8d4e6f8a10"}}}}}},"403":{"description":"Forbidden","content":{"application/problem+json":{"schema":{"$ref":"#/components/schemas/Problem"},"examples":{"auth.not_a_member":{"value":{"type":"https://cmmd.ai/problems/auth.not_a_member","title":"Forbidden","status":403,"detail":"You are not an active member of this organization","code":"auth.not_a_member","request_id":"0199f1c2-7d4e-7a31-9b5f-2c8d4e6f8a10"}},"auth.not_a_team_member":{"value":{"type":"https://cmmd.ai/problems/auth.not_a_team_member","title":"Forbidden","status":403,"detail":"You are not a member of the selected team; choose another team or all teams","code":"auth.not_a_team_member","request_id":"0199f1c2-7d4e-7a31-9b5f-2c8d4e6f8a10"}},"auth.missing_permission":{"value":{"type":"https://cmmd.ai/problems/auth.missing_permission","title":"Forbidden","status":403,"detail":"You don't have permission to do this; ask an owner or an admin of your organization","code":"auth.missing_permission","details":{"permission":"list-items.update"},"request_id":"0199f1c2-7d4e-7a31-9b5f-2c8d4e6f8a10"}},"auth.app_disabled":{"value":{"type":"https://cmmd.ai/problems/auth.app_disabled","title":"Forbidden","status":403,"detail":"Your organization does not have this app on","code":"auth.app_disabled","details":{"app":"the-list"},"request_id":"0199f1c2-7d4e-7a31-9b5f-2c8d4e6f8a10"}},"auth.person_required":{"value":{"type":"https://cmmd.ai/problems/auth.person_required","title":"Forbidden","status":403,"detail":"Only a signed-in person can do this","code":"auth.person_required","request_id":"0199f1c2-7d4e-7a31-9b5f-2c8d4e6f8a10"}}}}}},"404":{"description":"Not Found","content":{"application/problem+json":{"schema":{"$ref":"#/components/schemas/Problem"},"examples":{"auth.team_not_found":{"value":{"type":"https://cmmd.ai/problems/auth.team_not_found","title":"Not Found","status":404,"detail":"The selected team was not found; choose another team or all teams","code":"auth.team_not_found","request_id":"0199f1c2-7d4e-7a31-9b5f-2c8d4e6f8a10"}},"list_items.not_found":{"value":{"type":"https://cmmd.ai/problems/list_items.not_found","title":"Not Found","status":404,"detail":"The list item does not exist","code":"list_items.not_found","details":{},"request_id":"0199f1c2-7d4e-7a31-9b5f-2c8d4e6f8a10"}}}}}},"409":{"description":"Conflict","content":{"application/problem+json":{"schema":{"$ref":"#/components/schemas/Problem"},"examples":{"list_items.link_conflict":{"value":{"type":"https://cmmd.ai/problems/list_items.link_conflict","title":"Conflict","status":409,"detail":"Someone linked this item to the same thing at the same time; try again","code":"list_items.link_conflict","details":{},"retryable":true,"request_id":"0199f1c2-7d4e-7a31-9b5f-2c8d4e6f8a10"}}}}}},"503":{"description":"Service Unavailable","content":{"application/problem+json":{"schema":{"$ref":"#/components/schemas/Problem"},"examples":{"auth.apps_unavailable":{"value":{"type":"https://cmmd.ai/problems/auth.apps_unavailable","title":"Service Unavailable","status":503,"detail":"Your organization's apps cannot be checked right now; try again","code":"auth.apps_unavailable","details":{"app":"the-list"},"retryable":true,"request_id":"0199f1c2-7d4e-7a31-9b5f-2c8d4e6f8a10"}}}}}}}}},"/v1/list-items/{list_item_id}/links/{link_id}":{"delete":{"operationId":"ListItems_removeLinkOf","summary":"Remove a link of a list item","description":"Needs the `list-items.update` permission in the organization.","tags":["ListItems"],"security":[{"session":[],"organization":[]}],"parameters":[{"name":"list_item_id","in":"path","required":true,"schema":{"type":"integer","exclusiveMinimum":0,"maximum":9007199254740991}},{"name":"link_id","in":"path","required":true,"schema":{"type":"integer","exclusiveMinimum":0,"maximum":9007199254740991}},{"name":"x-team-id","in":"header","required":false,"description":"One of the organization's active teams you are in, to filter by; missing, empty or `all` is every team.","schema":{"type":"string","pattern":"^([1-9][0-9]*|all)?$"}}],"responses":{"200":{"description":"OK","content":{"application/json":{"schema":{"type":"object","properties":{"id":{"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991},"deleted_at":{"type":"string","format":"date-time"}},"required":["id","deleted_at"],"additionalProperties":false}}}},"400":{"description":"Bad Request","content":{"application/problem+json":{"schema":{"anyOf":[{"$ref":"#/components/schemas/Problem"},{"$ref":"#/components/schemas/InvalidInputProblem"}]},"examples":{"auth.organization_required":{"value":{"type":"https://cmmd.ai/problems/auth.organization_required","title":"Bad Request","status":400,"detail":"Choose an organization to continue","code":"auth.organization_required","request_id":"0199f1c2-7d4e-7a31-9b5f-2c8d4e6f8a10"}},"auth.invalid_team":{"value":{"type":"https://cmmd.ai/problems/auth.invalid_team","title":"Bad Request","status":400,"detail":"The selected team is not valid; choose another team or all teams","code":"auth.invalid_team","request_id":"0199f1c2-7d4e-7a31-9b5f-2c8d4e6f8a10"}},"pipeline.invalid_input":{"value":{"type":"https://cmmd.ai/problems/pipeline.invalid_input","title":"Bad Request","status":400,"detail":"Some fields are missing or not valid","code":"pipeline.invalid_input","details":{"errors":[{"pointer":"#/list_item_id","code":"invalid_type","expected":"number","detail":"Invalid input: expected number, received NaN"},{"pointer":"#/link_id","code":"invalid_type","expected":"number","detail":"Invalid input: expected number, received NaN"}]},"request_id":"0199f1c2-7d4e-7a31-9b5f-2c8d4e6f8a10"}}}}}},"401":{"description":"Unauthorized","content":{"application/problem+json":{"schema":{"$ref":"#/components/schemas/Problem"},"examples":{"auth.unauthenticated":{"value":{"type":"https://cmmd.ai/problems/auth.unauthenticated","title":"Unauthorized","status":401,"detail":"Sign in to continue","code":"auth.unauthenticated","request_id":"0199f1c2-7d4e-7a31-9b5f-2c8d4e6f8a10"}}}}}},"402":{"description":"Payment Required","content":{"application/problem+json":{"schema":{"$ref":"#/components/schemas/Problem"},"examples":{"auth.app_not_in_plan":{"value":{"type":"https://cmmd.ai/problems/auth.app_not_in_plan","title":"Payment Required","status":402,"detail":"Your organization's subscription does not include this app","code":"auth.app_not_in_plan","details":{"app":"the-list"},"request_id":"0199f1c2-7d4e-7a31-9b5f-2c8d4e6f8a10"}}}}}},"403":{"description":"Forbidden","content":{"application/problem+json":{"schema":{"$ref":"#/components/schemas/Problem"},"examples":{"auth.not_a_member":{"value":{"type":"https://cmmd.ai/problems/auth.not_a_member","title":"Forbidden","status":403,"detail":"You are not an active member of this organization","code":"auth.not_a_member","request_id":"0199f1c2-7d4e-7a31-9b5f-2c8d4e6f8a10"}},"auth.not_a_team_member":{"value":{"type":"https://cmmd.ai/problems/auth.not_a_team_member","title":"Forbidden","status":403,"detail":"You are not a member of the selected team; choose another team or all teams","code":"auth.not_a_team_member","request_id":"0199f1c2-7d4e-7a31-9b5f-2c8d4e6f8a10"}},"auth.missing_permission":{"value":{"type":"https://cmmd.ai/problems/auth.missing_permission","title":"Forbidden","status":403,"detail":"You don't have permission to do this; ask an owner or an admin of your organization","code":"auth.missing_permission","details":{"permission":"list-items.update"},"request_id":"0199f1c2-7d4e-7a31-9b5f-2c8d4e6f8a10"}},"auth.app_disabled":{"value":{"type":"https://cmmd.ai/problems/auth.app_disabled","title":"Forbidden","status":403,"detail":"Your organization does not have this app on","code":"auth.app_disabled","details":{"app":"the-list"},"request_id":"0199f1c2-7d4e-7a31-9b5f-2c8d4e6f8a10"}}}}}},"404":{"description":"Not Found","content":{"application/problem+json":{"schema":{"$ref":"#/components/schemas/Problem"},"examples":{"auth.team_not_found":{"value":{"type":"https://cmmd.ai/problems/auth.team_not_found","title":"Not Found","status":404,"detail":"The selected team was not found; choose another team or all teams","code":"auth.team_not_found","request_id":"0199f1c2-7d4e-7a31-9b5f-2c8d4e6f8a10"}},"list_items.not_found":{"value":{"type":"https://cmmd.ai/problems/list_items.not_found","title":"Not Found","status":404,"detail":"The list item does not exist","code":"list_items.not_found","details":{},"request_id":"0199f1c2-7d4e-7a31-9b5f-2c8d4e6f8a10"}},"list_items.link_not_found":{"value":{"type":"https://cmmd.ai/problems/list_items.link_not_found","title":"Not Found","status":404,"detail":"The link does not exist","code":"list_items.link_not_found","details":{},"request_id":"0199f1c2-7d4e-7a31-9b5f-2c8d4e6f8a10"}}}}}},"503":{"description":"Service Unavailable","content":{"application/problem+json":{"schema":{"$ref":"#/components/schemas/Problem"},"examples":{"auth.apps_unavailable":{"value":{"type":"https://cmmd.ai/problems/auth.apps_unavailable","title":"Service Unavailable","status":503,"detail":"Your organization's apps cannot be checked right now; try again","code":"auth.apps_unavailable","details":{"app":"the-list"},"retryable":true,"request_id":"0199f1c2-7d4e-7a31-9b5f-2c8d4e6f8a10"}}}}}}}}},"/v1/list-items/{list_item_id}/attachments":{"post":{"operationId":"ListItems_attachTo","summary":"Attach a Brain document the caller may view to a list item; the same document twice answers the same attachment","description":"Needs the `list-items.update` permission in the organization.","tags":["ListItems"],"security":[{"session":[],"organization":[]}],"parameters":[{"name":"list_item_id","in":"path","required":true,"schema":{"type":"integer","exclusiveMinimum":0,"maximum":9007199254740991}},{"name":"x-team-id","in":"header","required":false,"description":"One of the organization's active teams you are in, to filter by; missing, empty or `all` is every team.","schema":{"type":"string","pattern":"^([1-9][0-9]*|all)?$"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"type":"object","properties":{"brain_document_id":{"type":"integer","exclusiveMinimum":0,"maximum":9007199254740991}},"required":["brain_document_id"]}}}},"responses":{"201":{"description":"Created","content":{"application/json":{"schema":{"type":"object","properties":{"id":{"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991},"brain_document_id":{"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991},"attached_by":{"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991},"created_at":{"type":"string","format":"date-time"},"title":{"type":"string"},"mime_type":{"type":["string","null"]}},"required":["id","brain_document_id","attached_by","created_at","title","mime_type"],"additionalProperties":false}}}},"400":{"description":"Bad Request","content":{"application/problem+json":{"schema":{"anyOf":[{"$ref":"#/components/schemas/Problem"},{"$ref":"#/components/schemas/InvalidInputProblem"}]},"examples":{"auth.organization_required":{"value":{"type":"https://cmmd.ai/problems/auth.organization_required","title":"Bad Request","status":400,"detail":"Choose an organization to continue","code":"auth.organization_required","request_id":"0199f1c2-7d4e-7a31-9b5f-2c8d4e6f8a10"}},"auth.invalid_team":{"value":{"type":"https://cmmd.ai/problems/auth.invalid_team","title":"Bad Request","status":400,"detail":"The selected team is not valid; choose another team or all teams","code":"auth.invalid_team","request_id":"0199f1c2-7d4e-7a31-9b5f-2c8d4e6f8a10"}},"pipeline.invalid_input":{"value":{"type":"https://cmmd.ai/problems/pipeline.invalid_input","title":"Bad Request","status":400,"detail":"Some fields are missing or not valid","code":"pipeline.invalid_input","details":{"errors":[{"pointer":"#/brain_document_id","code":"invalid_type","expected":"number","detail":"Invalid input: expected number, received undefined"}]},"request_id":"0199f1c2-7d4e-7a31-9b5f-2c8d4e6f8a10"}}}}}},"401":{"description":"Unauthorized","content":{"application/problem+json":{"schema":{"$ref":"#/components/schemas/Problem"},"examples":{"auth.unauthenticated":{"value":{"type":"https://cmmd.ai/problems/auth.unauthenticated","title":"Unauthorized","status":401,"detail":"Sign in to continue","code":"auth.unauthenticated","request_id":"0199f1c2-7d4e-7a31-9b5f-2c8d4e6f8a10"}}}}}},"402":{"description":"Payment Required","content":{"application/problem+json":{"schema":{"$ref":"#/components/schemas/Problem"},"examples":{"auth.app_not_in_plan":{"value":{"type":"https://cmmd.ai/problems/auth.app_not_in_plan","title":"Payment Required","status":402,"detail":"Your organization's subscription does not include this app","code":"auth.app_not_in_plan","details":{"app":"the-list"},"request_id":"0199f1c2-7d4e-7a31-9b5f-2c8d4e6f8a10"}}}}}},"403":{"description":"Forbidden","content":{"application/problem+json":{"schema":{"$ref":"#/components/schemas/Problem"},"examples":{"auth.not_a_member":{"value":{"type":"https://cmmd.ai/problems/auth.not_a_member","title":"Forbidden","status":403,"detail":"You are not an active member of this organization","code":"auth.not_a_member","request_id":"0199f1c2-7d4e-7a31-9b5f-2c8d4e6f8a10"}},"auth.not_a_team_member":{"value":{"type":"https://cmmd.ai/problems/auth.not_a_team_member","title":"Forbidden","status":403,"detail":"You are not a member of the selected team; choose another team or all teams","code":"auth.not_a_team_member","request_id":"0199f1c2-7d4e-7a31-9b5f-2c8d4e6f8a10"}},"auth.missing_permission":{"value":{"type":"https://cmmd.ai/problems/auth.missing_permission","title":"Forbidden","status":403,"detail":"You don't have permission to do this; ask an owner or an admin of your organization","code":"auth.missing_permission","details":{"permission":"list-items.update"},"request_id":"0199f1c2-7d4e-7a31-9b5f-2c8d4e6f8a10"}},"auth.app_disabled":{"value":{"type":"https://cmmd.ai/problems/auth.app_disabled","title":"Forbidden","status":403,"detail":"Your organization does not have this app on","code":"auth.app_disabled","details":{"app":"the-list"},"request_id":"0199f1c2-7d4e-7a31-9b5f-2c8d4e6f8a10"}},"auth.person_required":{"value":{"type":"https://cmmd.ai/problems/auth.person_required","title":"Forbidden","status":403,"detail":"Only a signed-in person can do this","code":"auth.person_required","request_id":"0199f1c2-7d4e-7a31-9b5f-2c8d4e6f8a10"}}}}}},"404":{"description":"Not Found","content":{"application/problem+json":{"schema":{"$ref":"#/components/schemas/Problem"},"examples":{"auth.team_not_found":{"value":{"type":"https://cmmd.ai/problems/auth.team_not_found","title":"Not Found","status":404,"detail":"The selected team was not found; choose another team or all teams","code":"auth.team_not_found","request_id":"0199f1c2-7d4e-7a31-9b5f-2c8d4e6f8a10"}},"brain.document_not_found":{"value":{"type":"https://cmmd.ai/problems/brain.document_not_found","title":"Not Found","status":404,"detail":"The Brain document does not exist","code":"brain.document_not_found","details":{},"request_id":"0199f1c2-7d4e-7a31-9b5f-2c8d4e6f8a10"}},"list_items.not_found":{"value":{"type":"https://cmmd.ai/problems/list_items.not_found","title":"Not Found","status":404,"detail":"The list item does not exist","code":"list_items.not_found","details":{},"request_id":"0199f1c2-7d4e-7a31-9b5f-2c8d4e6f8a10"}}}}}},"409":{"description":"Conflict","content":{"application/problem+json":{"schema":{"$ref":"#/components/schemas/Problem"},"examples":{"list_items.attachment_conflict":{"value":{"type":"https://cmmd.ai/problems/list_items.attachment_conflict","title":"Conflict","status":409,"detail":"Someone attached this document to the item at the same time; try again","code":"list_items.attachment_conflict","details":{},"retryable":true,"request_id":"0199f1c2-7d4e-7a31-9b5f-2c8d4e6f8a10"}}}}}},"503":{"description":"Service Unavailable","content":{"application/problem+json":{"schema":{"$ref":"#/components/schemas/Problem"},"examples":{"auth.apps_unavailable":{"value":{"type":"https://cmmd.ai/problems/auth.apps_unavailable","title":"Service Unavailable","status":503,"detail":"Your organization's apps cannot be checked right now; try again","code":"auth.apps_unavailable","details":{"app":"the-list"},"retryable":true,"request_id":"0199f1c2-7d4e-7a31-9b5f-2c8d4e6f8a10"}}}}}}}}},"/v1/list-items/{list_item_id}/attachments/{attachment_id}":{"delete":{"operationId":"ListItems_detachFrom","summary":"Remove an attachment of a list item; the Brain document stays","description":"Needs the `list-items.update` permission in the organization.","tags":["ListItems"],"security":[{"session":[],"organization":[]}],"parameters":[{"name":"list_item_id","in":"path","required":true,"schema":{"type":"integer","exclusiveMinimum":0,"maximum":9007199254740991}},{"name":"attachment_id","in":"path","required":true,"schema":{"type":"integer","exclusiveMinimum":0,"maximum":9007199254740991}},{"name":"x-team-id","in":"header","required":false,"description":"One of the organization's active teams you are in, to filter by; missing, empty or `all` is every team.","schema":{"type":"string","pattern":"^([1-9][0-9]*|all)?$"}}],"responses":{"200":{"description":"OK","content":{"application/json":{"schema":{"type":"object","properties":{"id":{"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991},"deleted_at":{"type":"string","format":"date-time"}},"required":["id","deleted_at"],"additionalProperties":false}}}},"400":{"description":"Bad Request","content":{"application/problem+json":{"schema":{"anyOf":[{"$ref":"#/components/schemas/Problem"},{"$ref":"#/components/schemas/InvalidInputProblem"}]},"examples":{"auth.organization_required":{"value":{"type":"https://cmmd.ai/problems/auth.organization_required","title":"Bad Request","status":400,"detail":"Choose an organization to continue","code":"auth.organization_required","request_id":"0199f1c2-7d4e-7a31-9b5f-2c8d4e6f8a10"}},"auth.invalid_team":{"value":{"type":"https://cmmd.ai/problems/auth.invalid_team","title":"Bad Request","status":400,"detail":"The selected team is not valid; choose another team or all teams","code":"auth.invalid_team","request_id":"0199f1c2-7d4e-7a31-9b5f-2c8d4e6f8a10"}},"pipeline.invalid_input":{"value":{"type":"https://cmmd.ai/problems/pipeline.invalid_input","title":"Bad Request","status":400,"detail":"Some fields are missing or not valid","code":"pipeline.invalid_input","details":{"errors":[{"pointer":"#/list_item_id","code":"invalid_type","expected":"number","detail":"Invalid input: expected number, received NaN"},{"pointer":"#/attachment_id","code":"invalid_type","expected":"number","detail":"Invalid input: expected number, received NaN"}]},"request_id":"0199f1c2-7d4e-7a31-9b5f-2c8d4e6f8a10"}}}}}},"401":{"description":"Unauthorized","content":{"application/problem+json":{"schema":{"$ref":"#/components/schemas/Problem"},"examples":{"auth.unauthenticated":{"value":{"type":"https://cmmd.ai/problems/auth.unauthenticated","title":"Unauthorized","status":401,"detail":"Sign in to continue","code":"auth.unauthenticated","request_id":"0199f1c2-7d4e-7a31-9b5f-2c8d4e6f8a10"}}}}}},"402":{"description":"Payment Required","content":{"application/problem+json":{"schema":{"$ref":"#/components/schemas/Problem"},"examples":{"auth.app_not_in_plan":{"value":{"type":"https://cmmd.ai/problems/auth.app_not_in_plan","title":"Payment Required","status":402,"detail":"Your organization's subscription does not include this app","code":"auth.app_not_in_plan","details":{"app":"the-list"},"request_id":"0199f1c2-7d4e-7a31-9b5f-2c8d4e6f8a10"}}}}}},"403":{"description":"Forbidden","content":{"application/problem+json":{"schema":{"$ref":"#/components/schemas/Problem"},"examples":{"auth.not_a_member":{"value":{"type":"https://cmmd.ai/problems/auth.not_a_member","title":"Forbidden","status":403,"detail":"You are not an active member of this organization","code":"auth.not_a_member","request_id":"0199f1c2-7d4e-7a31-9b5f-2c8d4e6f8a10"}},"auth.not_a_team_member":{"value":{"type":"https://cmmd.ai/problems/auth.not_a_team_member","title":"Forbidden","status":403,"detail":"You are not a member of the selected team; choose another team or all teams","code":"auth.not_a_team_member","request_id":"0199f1c2-7d4e-7a31-9b5f-2c8d4e6f8a10"}},"auth.missing_permission":{"value":{"type":"https://cmmd.ai/problems/auth.missing_permission","title":"Forbidden","status":403,"detail":"You don't have permission to do this; ask an owner or an admin of your organization","code":"auth.missing_permission","details":{"permission":"list-items.update"},"request_id":"0199f1c2-7d4e-7a31-9b5f-2c8d4e6f8a10"}},"auth.app_disabled":{"value":{"type":"https://cmmd.ai/problems/auth.app_disabled","title":"Forbidden","status":403,"detail":"Your organization does not have this app on","code":"auth.app_disabled","details":{"app":"the-list"},"request_id":"0199f1c2-7d4e-7a31-9b5f-2c8d4e6f8a10"}}}}}},"404":{"description":"Not Found","content":{"application/problem+json":{"schema":{"$ref":"#/components/schemas/Problem"},"examples":{"auth.team_not_found":{"value":{"type":"https://cmmd.ai/problems/auth.team_not_found","title":"Not Found","status":404,"detail":"The selected team was not found; choose another team or all teams","code":"auth.team_not_found","request_id":"0199f1c2-7d4e-7a31-9b5f-2c8d4e6f8a10"}},"list_items.not_found":{"value":{"type":"https://cmmd.ai/problems/list_items.not_found","title":"Not Found","status":404,"detail":"The list item does not exist","code":"list_items.not_found","details":{},"request_id":"0199f1c2-7d4e-7a31-9b5f-2c8d4e6f8a10"}},"list_items.attachment_not_found":{"value":{"type":"https://cmmd.ai/problems/list_items.attachment_not_found","title":"Not Found","status":404,"detail":"The attachment does not exist","code":"list_items.attachment_not_found","details":{},"request_id":"0199f1c2-7d4e-7a31-9b5f-2c8d4e6f8a10"}}}}}},"503":{"description":"Service Unavailable","content":{"application/problem+json":{"schema":{"$ref":"#/components/schemas/Problem"},"examples":{"auth.apps_unavailable":{"value":{"type":"https://cmmd.ai/problems/auth.apps_unavailable","title":"Service Unavailable","status":503,"detail":"Your organization's apps cannot be checked right now; try again","code":"auth.apps_unavailable","details":{"app":"the-list"},"retryable":true,"request_id":"0199f1c2-7d4e-7a31-9b5f-2c8d4e6f8a10"}}}}}}}}},"/v1/conversations":{"get":{"operationId":"Conversations_list","summary":"List your conversations with Sidekick, most recent first: active, pinned or archived","description":"Needs the `sidekick.use` permission in the organization.","tags":["Conversations"],"security":[{"session":[],"organization":[]}],"parameters":[{"name":"cursor","in":"query","required":false,"schema":{"type":"string","pattern":"^[^_]+_[^_]+$"}},{"name":"limit","in":"query","required":false,"schema":{"default":20,"type":"integer","minimum":1,"maximum":100}},{"name":"status","in":"query","required":false,"schema":{"type":"string","enum":["active","archived"]}},{"name":"pinned","in":"query","required":false,"schema":{"type":["boolean","string"]}},{"name":"x-team-id","in":"header","required":false,"description":"One of the organization's active teams you are in, to filter by; missing, empty or `all` is every team.","schema":{"type":"string","pattern":"^([1-9][0-9]*|all)?$"}}],"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)$"},"title":{"type":["string","null"]},"status":{"type":"string","enum":["active","archived"]},"contract":{"type":"string","enum":["coach","your_ai"]},"created_at":{"type":"string","format":"date-time"},"last_message_at":{"type":"string","format":"date-time"},"pinned":{"type":"boolean"}},"required":["id","title","status","contract","created_at","last_message_at","pinned"],"additionalProperties":false}},"next_cursor":{"anyOf":[{"type":"string","pattern":"^[^_]+_[^_]+$"},{"type":"null"}]}},"required":["items","next_cursor"],"additionalProperties":false}}}},"400":{"description":"Bad Request","content":{"application/problem+json":{"schema":{"anyOf":[{"$ref":"#/components/schemas/Problem"},{"$ref":"#/components/schemas/InvalidInputProblem"}]},"examples":{"auth.organization_required":{"value":{"type":"https://cmmd.ai/problems/auth.organization_required","title":"Bad Request","status":400,"detail":"Choose an organization to continue","code":"auth.organization_required","request_id":"0199f1c2-7d4e-7a31-9b5f-2c8d4e6f8a10"}},"auth.invalid_team":{"value":{"type":"https://cmmd.ai/problems/auth.invalid_team","title":"Bad Request","status":400,"detail":"The selected team is not valid; choose another team or all teams","code":"auth.invalid_team","request_id":"0199f1c2-7d4e-7a31-9b5f-2c8d4e6f8a10"}},"pipeline.invalid_input":{"value":{"type":"https://cmmd.ai/problems/pipeline.invalid_input","title":"Bad Request","status":400,"detail":"Some fields are missing or not valid","code":"pipeline.invalid_input","details":{"errors":[]},"request_id":"0199f1c2-7d4e-7a31-9b5f-2c8d4e6f8a10"}}}}}},"401":{"description":"Unauthorized","content":{"application/problem+json":{"schema":{"$ref":"#/components/schemas/Problem"},"examples":{"auth.unauthenticated":{"value":{"type":"https://cmmd.ai/problems/auth.unauthenticated","title":"Unauthorized","status":401,"detail":"Sign in to continue","code":"auth.unauthenticated","request_id":"0199f1c2-7d4e-7a31-9b5f-2c8d4e6f8a10"}}}}}},"403":{"description":"Forbidden","content":{"application/problem+json":{"schema":{"$ref":"#/components/schemas/Problem"},"examples":{"auth.not_a_member":{"value":{"type":"https://cmmd.ai/problems/auth.not_a_member","title":"Forbidden","status":403,"detail":"You are not an active member of this organization","code":"auth.not_a_member","request_id":"0199f1c2-7d4e-7a31-9b5f-2c8d4e6f8a10"}},"auth.not_a_team_member":{"value":{"type":"https://cmmd.ai/problems/auth.not_a_team_member","title":"Forbidden","status":403,"detail":"You are not a member of the selected team; choose another team or all teams","code":"auth.not_a_team_member","request_id":"0199f1c2-7d4e-7a31-9b5f-2c8d4e6f8a10"}},"auth.missing_permission":{"value":{"type":"https://cmmd.ai/problems/auth.missing_permission","title":"Forbidden","status":403,"detail":"You don't have permission to do this; ask an owner or an admin of your organization","code":"auth.missing_permission","details":{"permission":"sidekick.use"},"request_id":"0199f1c2-7d4e-7a31-9b5f-2c8d4e6f8a10"}},"auth.person_required":{"value":{"type":"https://cmmd.ai/problems/auth.person_required","title":"Forbidden","status":403,"detail":"Only a signed-in person can do this","code":"auth.person_required","request_id":"0199f1c2-7d4e-7a31-9b5f-2c8d4e6f8a10"}}}}}},"404":{"description":"Not Found","content":{"application/problem+json":{"schema":{"$ref":"#/components/schemas/Problem"},"examples":{"auth.team_not_found":{"value":{"type":"https://cmmd.ai/problems/auth.team_not_found","title":"Not Found","status":404,"detail":"The selected team was not found; choose another team or all teams","code":"auth.team_not_found","request_id":"0199f1c2-7d4e-7a31-9b5f-2c8d4e6f8a10"}}}}}}}}},"/v1/conversations/{conversation_id}":{"get":{"operationId":"Conversations_get","summary":"Open one of your conversations with Sidekick, with the reply still being written, if any","description":"Needs the `sidekick.use` permission in the organization.","tags":["Conversations"],"security":[{"session":[],"organization":[]}],"parameters":[{"name":"conversation_id","in":"path","required":true,"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)$"}},{"name":"x-team-id","in":"header","required":false,"description":"One of the organization's active teams you are in, to filter by; missing, empty or `all` is every team.","schema":{"type":"string","pattern":"^([1-9][0-9]*|all)?$"}}],"responses":{"200":{"description":"OK","content":{"application/json":{"schema":{"type":"object","properties":{"id":{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"},"title":{"type":["string","null"]},"status":{"type":"string","enum":["active","archived"]},"contract":{"type":"string","enum":["coach","your_ai"]},"created_at":{"type":"string","format":"date-time"},"last_message_at":{"type":"string","format":"date-time"},"active_run_id":{"anyOf":[{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"},{"type":"null"}]},"pinned":{"type":"boolean"}},"required":["id","title","status","contract","created_at","last_message_at","active_run_id","pinned"],"additionalProperties":false}}}},"400":{"description":"Bad Request","content":{"application/problem+json":{"schema":{"anyOf":[{"$ref":"#/components/schemas/Problem"},{"$ref":"#/components/schemas/InvalidInputProblem"}]},"examples":{"auth.organization_required":{"value":{"type":"https://cmmd.ai/problems/auth.organization_required","title":"Bad Request","status":400,"detail":"Choose an organization to continue","code":"auth.organization_required","request_id":"0199f1c2-7d4e-7a31-9b5f-2c8d4e6f8a10"}},"auth.invalid_team":{"value":{"type":"https://cmmd.ai/problems/auth.invalid_team","title":"Bad Request","status":400,"detail":"The selected team is not valid; choose another team or all teams","code":"auth.invalid_team","request_id":"0199f1c2-7d4e-7a31-9b5f-2c8d4e6f8a10"}},"pipeline.invalid_input":{"value":{"type":"https://cmmd.ai/problems/pipeline.invalid_input","title":"Bad Request","status":400,"detail":"Some fields are missing or not valid","code":"pipeline.invalid_input","details":{"errors":[{"pointer":"#/conversation_id","code":"invalid_type","expected":"string","detail":"Invalid input: expected string, received undefined"}]},"request_id":"0199f1c2-7d4e-7a31-9b5f-2c8d4e6f8a10"}}}}}},"401":{"description":"Unauthorized","content":{"application/problem+json":{"schema":{"$ref":"#/components/schemas/Problem"},"examples":{"auth.unauthenticated":{"value":{"type":"https://cmmd.ai/problems/auth.unauthenticated","title":"Unauthorized","status":401,"detail":"Sign in to continue","code":"auth.unauthenticated","request_id":"0199f1c2-7d4e-7a31-9b5f-2c8d4e6f8a10"}}}}}},"403":{"description":"Forbidden","content":{"application/problem+json":{"schema":{"$ref":"#/components/schemas/Problem"},"examples":{"auth.not_a_member":{"value":{"type":"https://cmmd.ai/problems/auth.not_a_member","title":"Forbidden","status":403,"detail":"You are not an active member of this organization","code":"auth.not_a_member","request_id":"0199f1c2-7d4e-7a31-9b5f-2c8d4e6f8a10"}},"auth.not_a_team_member":{"value":{"type":"https://cmmd.ai/problems/auth.not_a_team_member","title":"Forbidden","status":403,"detail":"You are not a member of the selected team; choose another team or all teams","code":"auth.not_a_team_member","request_id":"0199f1c2-7d4e-7a31-9b5f-2c8d4e6f8a10"}},"auth.missing_permission":{"value":{"type":"https://cmmd.ai/problems/auth.missing_permission","title":"Forbidden","status":403,"detail":"You don't have permission to do this; ask an owner or an admin of your organization","code":"auth.missing_permission","details":{"permission":"sidekick.use"},"request_id":"0199f1c2-7d4e-7a31-9b5f-2c8d4e6f8a10"}},"auth.person_required":{"value":{"type":"https://cmmd.ai/problems/auth.person_required","title":"Forbidden","status":403,"detail":"Only a signed-in person can do this","code":"auth.person_required","request_id":"0199f1c2-7d4e-7a31-9b5f-2c8d4e6f8a10"}}}}}},"404":{"description":"Not Found","content":{"application/problem+json":{"schema":{"$ref":"#/components/schemas/Problem"},"examples":{"auth.team_not_found":{"value":{"type":"https://cmmd.ai/problems/auth.team_not_found","title":"Not Found","status":404,"detail":"The selected team was not found; choose another team or all teams","code":"auth.team_not_found","request_id":"0199f1c2-7d4e-7a31-9b5f-2c8d4e6f8a10"}},"runtime.conversation_not_found":{"value":{"type":"https://cmmd.ai/problems/runtime.conversation_not_found","title":"Not Found","status":404,"detail":"The Sidekick conversation does not exist; start a new one","code":"runtime.conversation_not_found","details":{"conversation_id":"0199f1c2-8a10-7b2c-9d3e-4f5a6b7c8d90"},"request_id":"0199f1c2-7d4e-7a31-9b5f-2c8d4e6f8a10"}}}}}}}},"patch":{"operationId":"Conversations_update","summary":"Rename, archive, restore, pin or unpin one of your conversations with Sidekick","description":"Needs the `sidekick.use` permission in the organization.","tags":["Conversations"],"security":[{"session":[],"organization":[]}],"parameters":[{"name":"conversation_id","in":"path","required":true,"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)$"}},{"name":"x-team-id","in":"header","required":false,"description":"One of the organization's active teams you are in, to filter by; missing, empty or `all` is every team.","schema":{"type":"string","pattern":"^([1-9][0-9]*|all)?$"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"type":"object","properties":{"title":{"type":"string","minLength":1,"maxLength":80},"status":{"type":"string","enum":["active","archived"]},"pinned":{"type":"boolean"}}}}}},"responses":{"200":{"description":"OK","content":{"application/json":{"schema":{"type":"object","properties":{"id":{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"},"title":{"type":["string","null"]},"status":{"type":"string","enum":["active","archived"]},"contract":{"type":"string","enum":["coach","your_ai"]},"created_at":{"type":"string","format":"date-time"},"last_message_at":{"type":"string","format":"date-time"},"pinned":{"type":"boolean"}},"required":["id","title","status","contract","created_at","last_message_at","pinned"],"additionalProperties":false}}}},"400":{"description":"Bad Request","content":{"application/problem+json":{"schema":{"anyOf":[{"$ref":"#/components/schemas/Problem"},{"$ref":"#/components/schemas/InvalidInputProblem"}]},"examples":{"auth.organization_required":{"value":{"type":"https://cmmd.ai/problems/auth.organization_required","title":"Bad Request","status":400,"detail":"Choose an organization to continue","code":"auth.organization_required","request_id":"0199f1c2-7d4e-7a31-9b5f-2c8d4e6f8a10"}},"auth.invalid_team":{"value":{"type":"https://cmmd.ai/problems/auth.invalid_team","title":"Bad Request","status":400,"detail":"The selected team is not valid; choose another team or all teams","code":"auth.invalid_team","request_id":"0199f1c2-7d4e-7a31-9b5f-2c8d4e6f8a10"}},"pipeline.invalid_input":{"value":{"type":"https://cmmd.ai/problems/pipeline.invalid_input","title":"Bad Request","status":400,"detail":"Some fields are missing or not valid","code":"pipeline.invalid_input","details":{"errors":[{"pointer":"#/conversation_id","code":"invalid_type","expected":"nonoptional","detail":"Invalid input: expected nonoptional, received undefined"}]},"request_id":"0199f1c2-7d4e-7a31-9b5f-2c8d4e6f8a10"}}}}}},"401":{"description":"Unauthorized","content":{"application/problem+json":{"schema":{"$ref":"#/components/schemas/Problem"},"examples":{"auth.unauthenticated":{"value":{"type":"https://cmmd.ai/problems/auth.unauthenticated","title":"Unauthorized","status":401,"detail":"Sign in to continue","code":"auth.unauthenticated","request_id":"0199f1c2-7d4e-7a31-9b5f-2c8d4e6f8a10"}}}}}},"403":{"description":"Forbidden","content":{"application/problem+json":{"schema":{"$ref":"#/components/schemas/Problem"},"examples":{"auth.not_a_member":{"value":{"type":"https://cmmd.ai/problems/auth.not_a_member","title":"Forbidden","status":403,"detail":"You are not an active member of this organization","code":"auth.not_a_member","request_id":"0199f1c2-7d4e-7a31-9b5f-2c8d4e6f8a10"}},"auth.not_a_team_member":{"value":{"type":"https://cmmd.ai/problems/auth.not_a_team_member","title":"Forbidden","status":403,"detail":"You are not a member of the selected team; choose another team or all teams","code":"auth.not_a_team_member","request_id":"0199f1c2-7d4e-7a31-9b5f-2c8d4e6f8a10"}},"auth.missing_permission":{"value":{"type":"https://cmmd.ai/problems/auth.missing_permission","title":"Forbidden","status":403,"detail":"You don't have permission to do this; ask an owner or an admin of your organization","code":"auth.missing_permission","details":{"permission":"sidekick.use"},"request_id":"0199f1c2-7d4e-7a31-9b5f-2c8d4e6f8a10"}},"auth.person_required":{"value":{"type":"https://cmmd.ai/problems/auth.person_required","title":"Forbidden","status":403,"detail":"Only a signed-in person can do this","code":"auth.person_required","request_id":"0199f1c2-7d4e-7a31-9b5f-2c8d4e6f8a10"}}}}}},"404":{"description":"Not Found","content":{"application/problem+json":{"schema":{"$ref":"#/components/schemas/Problem"},"examples":{"auth.team_not_found":{"value":{"type":"https://cmmd.ai/problems/auth.team_not_found","title":"Not Found","status":404,"detail":"The selected team was not found; choose another team or all teams","code":"auth.team_not_found","request_id":"0199f1c2-7d4e-7a31-9b5f-2c8d4e6f8a10"}},"runtime.conversation_not_found":{"value":{"type":"https://cmmd.ai/problems/runtime.conversation_not_found","title":"Not Found","status":404,"detail":"The Sidekick conversation does not exist; start a new one","code":"runtime.conversation_not_found","details":{"conversation_id":"0199f1c2-8a10-7b2c-9d3e-4f5a6b7c8d90"},"request_id":"0199f1c2-7d4e-7a31-9b5f-2c8d4e6f8a10"}}}}}},"409":{"description":"Conflict","content":{"application/problem+json":{"schema":{"$ref":"#/components/schemas/Problem"},"examples":{"runtime.conversation_archived":{"value":{"type":"https://cmmd.ai/problems/runtime.conversation_archived","title":"Conflict","status":409,"detail":"This conversation is archived; restore it first","code":"runtime.conversation_archived","details":{"conversation_id":"0199f1c2-8a10-7b2c-9d3e-4f5a6b7c8d90"},"request_id":"0199f1c2-7d4e-7a31-9b5f-2c8d4e6f8a10"}},"runtime.conversation_changed":{"value":{"type":"https://cmmd.ai/problems/runtime.conversation_changed","title":"Conflict","status":409,"detail":"This conversation changed at the same time; try again","code":"runtime.conversation_changed","details":{"conversation_id":"0199f1c2-8a10-7b2c-9d3e-4f5a6b7c8d90"},"retryable":true,"request_id":"0199f1c2-7d4e-7a31-9b5f-2c8d4e6f8a10"}}}}}}}},"delete":{"operationId":"Conversations_delete","summary":"Delete one of your conversations with Sidekick","description":"Needs the `sidekick.use` permission in the organization.","tags":["Conversations"],"security":[{"session":[],"organization":[]}],"parameters":[{"name":"conversation_id","in":"path","required":true,"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)$"}},{"name":"x-team-id","in":"header","required":false,"description":"One of the organization's active teams you are in, to filter by; missing, empty or `all` is every team.","schema":{"type":"string","pattern":"^([1-9][0-9]*|all)?$"}}],"responses":{"200":{"description":"OK","content":{"application/json":{"schema":{"type":"object","properties":{"id":{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"},"deleted_at":{"type":"string","format":"date-time"}},"required":["id","deleted_at"],"additionalProperties":false}}}},"400":{"description":"Bad Request","content":{"application/problem+json":{"schema":{"anyOf":[{"$ref":"#/components/schemas/Problem"},{"$ref":"#/components/schemas/InvalidInputProblem"}]},"examples":{"auth.organization_required":{"value":{"type":"https://cmmd.ai/problems/auth.organization_required","title":"Bad Request","status":400,"detail":"Choose an organization to continue","code":"auth.organization_required","request_id":"0199f1c2-7d4e-7a31-9b5f-2c8d4e6f8a10"}},"auth.invalid_team":{"value":{"type":"https://cmmd.ai/problems/auth.invalid_team","title":"Bad Request","status":400,"detail":"The selected team is not valid; choose another team or all teams","code":"auth.invalid_team","request_id":"0199f1c2-7d4e-7a31-9b5f-2c8d4e6f8a10"}},"pipeline.invalid_input":{"value":{"type":"https://cmmd.ai/problems/pipeline.invalid_input","title":"Bad Request","status":400,"detail":"Some fields are missing or not valid","code":"pipeline.invalid_input","details":{"errors":[{"pointer":"#/conversation_id","code":"invalid_type","expected":"string","detail":"Invalid input: expected string, received undefined"}]},"request_id":"0199f1c2-7d4e-7a31-9b5f-2c8d4e6f8a10"}}}}}},"401":{"description":"Unauthorized","content":{"application/problem+json":{"schema":{"$ref":"#/components/schemas/Problem"},"examples":{"auth.unauthenticated":{"value":{"type":"https://cmmd.ai/problems/auth.unauthenticated","title":"Unauthorized","status":401,"detail":"Sign in to continue","code":"auth.unauthenticated","request_id":"0199f1c2-7d4e-7a31-9b5f-2c8d4e6f8a10"}}}}}},"403":{"description":"Forbidden","content":{"application/problem+json":{"schema":{"$ref":"#/components/schemas/Problem"},"examples":{"auth.not_a_member":{"value":{"type":"https://cmmd.ai/problems/auth.not_a_member","title":"Forbidden","status":403,"detail":"You are not an active member of this organization","code":"auth.not_a_member","request_id":"0199f1c2-7d4e-7a31-9b5f-2c8d4e6f8a10"}},"auth.not_a_team_member":{"value":{"type":"https://cmmd.ai/problems/auth.not_a_team_member","title":"Forbidden","status":403,"detail":"You are not a member of the selected team; choose another team or all teams","code":"auth.not_a_team_member","request_id":"0199f1c2-7d4e-7a31-9b5f-2c8d4e6f8a10"}},"auth.missing_permission":{"value":{"type":"https://cmmd.ai/problems/auth.missing_permission","title":"Forbidden","status":403,"detail":"You don't have permission to do this; ask an owner or an admin of your organization","code":"auth.missing_permission","details":{"permission":"sidekick.use"},"request_id":"0199f1c2-7d4e-7a31-9b5f-2c8d4e6f8a10"}},"auth.person_required":{"value":{"type":"https://cmmd.ai/problems/auth.person_required","title":"Forbidden","status":403,"detail":"Only a signed-in person can do this","code":"auth.person_required","request_id":"0199f1c2-7d4e-7a31-9b5f-2c8d4e6f8a10"}}}}}},"404":{"description":"Not Found","content":{"application/problem+json":{"schema":{"$ref":"#/components/schemas/Problem"},"examples":{"auth.team_not_found":{"value":{"type":"https://cmmd.ai/problems/auth.team_not_found","title":"Not Found","status":404,"detail":"The selected team was not found; choose another team or all teams","code":"auth.team_not_found","request_id":"0199f1c2-7d4e-7a31-9b5f-2c8d4e6f8a10"}},"runtime.conversation_not_found":{"value":{"type":"https://cmmd.ai/problems/runtime.conversation_not_found","title":"Not Found","status":404,"detail":"The Sidekick conversation does not exist; start a new one","code":"runtime.conversation_not_found","details":{"conversation_id":"0199f1c2-8a10-7b2c-9d3e-4f5a6b7c8d90"},"request_id":"0199f1c2-7d4e-7a31-9b5f-2c8d4e6f8a10"}}}}}},"409":{"description":"Conflict","content":{"application/problem+json":{"schema":{"$ref":"#/components/schemas/Problem"},"examples":{"runtime.conversation_busy":{"value":{"type":"https://cmmd.ai/problems/runtime.conversation_busy","title":"Conflict","status":409,"detail":"Sidekick is still answering in this conversation; stop the reply or wait for it to finish, then try again","code":"runtime.conversation_busy","details":{"run_id":"0199f1c2-8a11-7c3d-8e4f-5a6b7c8d9e01"},"retryable":true,"request_id":"0199f1c2-7d4e-7a31-9b5f-2c8d4e6f8a10"}},"runtime.conversation_changed":{"value":{"type":"https://cmmd.ai/problems/runtime.conversation_changed","title":"Conflict","status":409,"detail":"This conversation changed at the same time; try again","code":"runtime.conversation_changed","details":{"conversation_id":"0199f1c2-8a10-7b2c-9d3e-4f5a6b7c8d90"},"retryable":true,"request_id":"0199f1c2-7d4e-7a31-9b5f-2c8d4e6f8a10"}}}}}}}}},"/v1/conversations/{conversation_id}/messages":{"get":{"operationId":"Conversations_listMessages","summary":"List the messages of one of your conversations with Sidekick, newest first","description":"Needs the `sidekick.use` permission in the organization.","tags":["Conversations"],"security":[{"session":[],"organization":[]}],"parameters":[{"name":"conversation_id","in":"path","required":true,"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)$"}},{"name":"cursor","in":"query","required":false,"schema":{"type":"integer","exclusiveMinimum":0,"maximum":9007199254740991}},{"name":"limit","in":"query","required":false,"schema":{"default":20,"type":"integer","minimum":1,"maximum":100}},{"name":"x-team-id","in":"header","required":false,"description":"One of the organization's active teams you are in, to filter by; missing, empty or `all` is every team.","schema":{"type":"string","pattern":"^([1-9][0-9]*|all)?$"}}],"responses":{"200":{"description":"OK","content":{"application/json":{"schema":{"type":"object","properties":{"items":{"type":"array","items":{"oneOf":[{"type":"object","properties":{"ui_message_id":{"type":"string"},"seq":{"type":"integer","exclusiveMinimum":0,"maximum":9007199254740991},"run_id":{"anyOf":[{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"},{"type":"null"}]},"created_at":{"type":"string","format":"date-time"},"status":{"type":"string","enum":["completed","aborted","failed"]},"role":{"type":"string","const":"user"},"parts":{"type":"array","items":{"oneOf":[{"type":"object","properties":{"type":{"type":"string","const":"text"},"text":{"type":"string"}},"required":["type","text"],"additionalProperties":false}]}}},"required":["ui_message_id","seq","run_id","created_at","status","role","parts"],"additionalProperties":false},{"type":"object","properties":{"ui_message_id":{"type":"string"},"seq":{"type":"integer","exclusiveMinimum":0,"maximum":9007199254740991},"run_id":{"anyOf":[{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"},{"type":"null"}]},"created_at":{"type":"string","format":"date-time"},"status":{"type":"string","enum":["completed","aborted","failed"]},"role":{"type":"string","const":"assistant"},"parts":{"type":"array","items":{"oneOf":[{"type":"object","properties":{"type":{"type":"string","const":"text"},"text":{"type":"string"},"step_index":{"type":"integer","minimum":0,"maximum":9007199254740991}},"required":["type","text","step_index"],"additionalProperties":false},{"type":"object","properties":{"type":{"type":"string","const":"reasoning"},"text":{"type":"string"},"step_index":{"type":"integer","minimum":0,"maximum":9007199254740991}},"required":["type","text","step_index"],"additionalProperties":false},{"type":"object","properties":{"type":{"type":"string","const":"tool_call"},"tool_call_id":{"type":"string","minLength":1},"tool_name":{"type":"string","minLength":1},"input":{"$ref":"#/$defs/__schema0"},"provider_executed":{"type":"boolean"},"step_index":{"type":"integer","minimum":0,"maximum":9007199254740991}},"required":["type","tool_call_id","tool_name","input","provider_executed","step_index"],"additionalProperties":false},{"type":"object","properties":{"type":{"type":"string","const":"tool_result"},"tool_call_id":{"type":"string","minLength":1},"tool_name":{"type":"string","minLength":1},"step_index":{"type":"integer","minimum":0,"maximum":9007199254740991},"output":{"oneOf":[{"type":"object","properties":{"kind":{"type":"string","const":"json"},"value":{"$ref":"#/$defs/__schema0"}},"required":["kind","value"],"additionalProperties":false},{"type":"object","properties":{"kind":{"type":"string","const":"error"},"code":{"type":"string","minLength":1}},"required":["kind","code"],"additionalProperties":false}]}},"required":["type","tool_call_id","tool_name","step_index","output"],"additionalProperties":false},{"type":"object","properties":{"type":{"type":"string","const":"notice"},"code":{"type":"string","minLength":1},"step_index":{"type":"integer","minimum":0,"maximum":9007199254740991}},"required":["type","code","step_index"],"additionalProperties":false}]}}},"required":["ui_message_id","seq","run_id","created_at","status","role","parts"],"additionalProperties":false}]}},"next_cursor":{"type":["string","null"]}},"required":["items","next_cursor"],"additionalProperties":false,"$defs":{"__schema0":{"anyOf":[{"type":"string"},{"type":"number"},{"type":"boolean"},{"type":"null"},{"type":"array","items":{"$ref":"#/$defs/__schema0"}},{"type":"object","propertyNames":{"type":"string"},"additionalProperties":{"$ref":"#/$defs/__schema0"}}]}}}}}},"400":{"description":"Bad Request","content":{"application/problem+json":{"schema":{"anyOf":[{"$ref":"#/components/schemas/Problem"},{"$ref":"#/components/schemas/InvalidInputProblem"}]},"examples":{"auth.organization_required":{"value":{"type":"https://cmmd.ai/problems/auth.organization_required","title":"Bad Request","status":400,"detail":"Choose an organization to continue","code":"auth.organization_required","request_id":"0199f1c2-7d4e-7a31-9b5f-2c8d4e6f8a10"}},"auth.invalid_team":{"value":{"type":"https://cmmd.ai/problems/auth.invalid_team","title":"Bad Request","status":400,"detail":"The selected team is not valid; choose another team or all teams","code":"auth.invalid_team","request_id":"0199f1c2-7d4e-7a31-9b5f-2c8d4e6f8a10"}},"pipeline.invalid_input":{"value":{"type":"https://cmmd.ai/problems/pipeline.invalid_input","title":"Bad Request","status":400,"detail":"Some fields are missing or not valid","code":"pipeline.invalid_input","details":{"errors":[{"pointer":"#/conversation_id","code":"invalid_type","expected":"string","detail":"Invalid input: expected string, received undefined"}]},"request_id":"0199f1c2-7d4e-7a31-9b5f-2c8d4e6f8a10"}}}}}},"401":{"description":"Unauthorized","content":{"application/problem+json":{"schema":{"$ref":"#/components/schemas/Problem"},"examples":{"auth.unauthenticated":{"value":{"type":"https://cmmd.ai/problems/auth.unauthenticated","title":"Unauthorized","status":401,"detail":"Sign in to continue","code":"auth.unauthenticated","request_id":"0199f1c2-7d4e-7a31-9b5f-2c8d4e6f8a10"}}}}}},"403":{"description":"Forbidden","content":{"application/problem+json":{"schema":{"$ref":"#/components/schemas/Problem"},"examples":{"auth.not_a_member":{"value":{"type":"https://cmmd.ai/problems/auth.not_a_member","title":"Forbidden","status":403,"detail":"You are not an active member of this organization","code":"auth.not_a_member","request_id":"0199f1c2-7d4e-7a31-9b5f-2c8d4e6f8a10"}},"auth.not_a_team_member":{"value":{"type":"https://cmmd.ai/problems/auth.not_a_team_member","title":"Forbidden","status":403,"detail":"You are not a member of the selected team; choose another team or all teams","code":"auth.not_a_team_member","request_id":"0199f1c2-7d4e-7a31-9b5f-2c8d4e6f8a10"}},"auth.missing_permission":{"value":{"type":"https://cmmd.ai/problems/auth.missing_permission","title":"Forbidden","status":403,"detail":"You don't have permission to do this; ask an owner or an admin of your organization","code":"auth.missing_permission","details":{"permission":"sidekick.use"},"request_id":"0199f1c2-7d4e-7a31-9b5f-2c8d4e6f8a10"}},"auth.person_required":{"value":{"type":"https://cmmd.ai/problems/auth.person_required","title":"Forbidden","status":403,"detail":"Only a signed-in person can do this","code":"auth.person_required","request_id":"0199f1c2-7d4e-7a31-9b5f-2c8d4e6f8a10"}}}}}},"404":{"description":"Not Found","content":{"application/problem+json":{"schema":{"$ref":"#/components/schemas/Problem"},"examples":{"auth.team_not_found":{"value":{"type":"https://cmmd.ai/problems/auth.team_not_found","title":"Not Found","status":404,"detail":"The selected team was not found; choose another team or all teams","code":"auth.team_not_found","request_id":"0199f1c2-7d4e-7a31-9b5f-2c8d4e6f8a10"}},"runtime.conversation_not_found":{"value":{"type":"https://cmmd.ai/problems/runtime.conversation_not_found","title":"Not Found","status":404,"detail":"The Sidekick conversation does not exist; start a new one","code":"runtime.conversation_not_found","details":{"conversation_id":"0199f1c2-8a10-7b2c-9d3e-4f5a6b7c8d90"},"request_id":"0199f1c2-7d4e-7a31-9b5f-2c8d4e6f8a10"}}}}}}}},"post":{"operationId":"Conversations_sendMessage","summary":"Send a message to Sidekick, starting the conversation if new; answers the reply to follow","description":"Needs the `sidekick.use` permission in the organization.","tags":["Conversations"],"security":[{"session":[],"organization":[]}],"parameters":[{"name":"conversation_id","in":"path","required":true,"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)$"}},{"name":"x-team-id","in":"header","required":false,"description":"One of the organization's active teams you are in, to filter by; missing, empty or `all` is every team.","schema":{"type":"string","pattern":"^([1-9][0-9]*|all)?$"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"type":"object","properties":{"message_id":{"type":"string","minLength":1,"maxLength":200},"parts":{"minItems":1,"type":"array","items":{"type":"object","properties":{"type":{"type":"string","const":"text"},"text":{"type":"string"}},"required":["type","text"]}},"time_zone":{"type":"string","minLength":1,"maxLength":64},"locale":{"type":"string","minLength":2,"maxLength":35},"contract":{"type":"string","enum":["coach","your_ai"]}},"required":["message_id","parts"]}}}},"responses":{"202":{"description":"Accepted","content":{"application/json":{"schema":{"type":"object","properties":{"id":{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"}},"required":["id"],"additionalProperties":false}}}},"400":{"description":"Bad Request","content":{"application/problem+json":{"schema":{"anyOf":[{"$ref":"#/components/schemas/Problem"},{"$ref":"#/components/schemas/InvalidInputProblem"}]},"examples":{"auth.organization_required":{"value":{"type":"https://cmmd.ai/problems/auth.organization_required","title":"Bad Request","status":400,"detail":"Choose an organization to continue","code":"auth.organization_required","request_id":"0199f1c2-7d4e-7a31-9b5f-2c8d4e6f8a10"}},"auth.invalid_team":{"value":{"type":"https://cmmd.ai/problems/auth.invalid_team","title":"Bad Request","status":400,"detail":"The selected team is not valid; choose another team or all teams","code":"auth.invalid_team","request_id":"0199f1c2-7d4e-7a31-9b5f-2c8d4e6f8a10"}},"pipeline.invalid_input":{"value":{"type":"https://cmmd.ai/problems/pipeline.invalid_input","title":"Bad Request","status":400,"detail":"Some fields are missing or not valid","code":"pipeline.invalid_input","details":{"errors":[{"pointer":"#/message_id","code":"invalid_type","expected":"string","detail":"Invalid input: expected string, received undefined"},{"pointer":"#/parts","code":"invalid_type","expected":"array","detail":"Invalid input: expected array, received undefined"}]},"request_id":"0199f1c2-7d4e-7a31-9b5f-2c8d4e6f8a10"}}}}}},"401":{"description":"Unauthorized","content":{"application/problem+json":{"schema":{"$ref":"#/components/schemas/Problem"},"examples":{"auth.unauthenticated":{"value":{"type":"https://cmmd.ai/problems/auth.unauthenticated","title":"Unauthorized","status":401,"detail":"Sign in to continue","code":"auth.unauthenticated","request_id":"0199f1c2-7d4e-7a31-9b5f-2c8d4e6f8a10"}}}}}},"403":{"description":"Forbidden","content":{"application/problem+json":{"schema":{"$ref":"#/components/schemas/Problem"},"examples":{"auth.not_a_member":{"value":{"type":"https://cmmd.ai/problems/auth.not_a_member","title":"Forbidden","status":403,"detail":"You are not an active member of this organization","code":"auth.not_a_member","request_id":"0199f1c2-7d4e-7a31-9b5f-2c8d4e6f8a10"}},"auth.not_a_team_member":{"value":{"type":"https://cmmd.ai/problems/auth.not_a_team_member","title":"Forbidden","status":403,"detail":"You are not a member of the selected team; choose another team or all teams","code":"auth.not_a_team_member","request_id":"0199f1c2-7d4e-7a31-9b5f-2c8d4e6f8a10"}},"auth.missing_permission":{"value":{"type":"https://cmmd.ai/problems/auth.missing_permission","title":"Forbidden","status":403,"detail":"You don't have permission to do this; ask an owner or an admin of your organization","code":"auth.missing_permission","details":{"permission":"sidekick.use"},"request_id":"0199f1c2-7d4e-7a31-9b5f-2c8d4e6f8a10"}},"auth.person_required":{"value":{"type":"https://cmmd.ai/problems/auth.person_required","title":"Forbidden","status":403,"detail":"Only a signed-in person can do this","code":"auth.person_required","request_id":"0199f1c2-7d4e-7a31-9b5f-2c8d4e6f8a10"}}}}}},"404":{"description":"Not Found","content":{"application/problem+json":{"schema":{"$ref":"#/components/schemas/Problem"},"examples":{"auth.team_not_found":{"value":{"type":"https://cmmd.ai/problems/auth.team_not_found","title":"Not Found","status":404,"detail":"The selected team was not found; choose another team or all teams","code":"auth.team_not_found","request_id":"0199f1c2-7d4e-7a31-9b5f-2c8d4e6f8a10"}},"runtime.conversation_not_found":{"value":{"type":"https://cmmd.ai/problems/runtime.conversation_not_found","title":"Not Found","status":404,"detail":"The Sidekick conversation does not exist; start a new one","code":"runtime.conversation_not_found","details":{"conversation_id":"0199f1c2-8a10-7b2c-9d3e-4f5a6b7c8d90"},"request_id":"0199f1c2-7d4e-7a31-9b5f-2c8d4e6f8a10"}}}}}},"409":{"description":"Conflict","content":{"application/problem+json":{"schema":{"$ref":"#/components/schemas/Problem"},"examples":{"runtime.conversation_archived":{"value":{"type":"https://cmmd.ai/problems/runtime.conversation_archived","title":"Conflict","status":409,"detail":"This conversation is archived; restore it first","code":"runtime.conversation_archived","details":{"conversation_id":"0199f1c2-8a10-7b2c-9d3e-4f5a6b7c8d90"},"request_id":"0199f1c2-7d4e-7a31-9b5f-2c8d4e6f8a10"}},"runtime.contract_is_fixed":{"value":{"type":"https://cmmd.ai/problems/runtime.contract_is_fixed","title":"Conflict","status":409,"detail":"This conversation keeps the way it started; start a new conversation to change it","code":"runtime.contract_is_fixed","details":{"conversation_id":"0199f1c2-8a10-7b2c-9d3e-4f5a6b7c8d90"},"request_id":"0199f1c2-7d4e-7a31-9b5f-2c8d4e6f8a10"}},"runtime.turn_in_progress":{"value":{"type":"https://cmmd.ai/problems/runtime.turn_in_progress","title":"Conflict","status":409,"detail":"Sidekick is still answering your previous message; try again when it finishes","code":"runtime.turn_in_progress","details":{"run_id":"0199f1c2-8a11-7c3d-8e4f-5a6b7c8d9e01"},"retryable":true,"request_id":"0199f1c2-7d4e-7a31-9b5f-2c8d4e6f8a10"}},"runtime.profile_retired":{"value":{"type":"https://cmmd.ai/problems/runtime.profile_retired","title":"Conflict","status":409,"detail":"This conversation can no longer continue; start a new one","code":"runtime.profile_retired","details":{"profile_id":"sidekick","conversation_id":"0199f1c2-8a10-7b2c-9d3e-4f5a6b7c8d90"},"request_id":"0199f1c2-7d4e-7a31-9b5f-2c8d4e6f8a10"}}}}}},"429":{"description":"Too Many Requests","content":{"application/problem+json":{"schema":{"$ref":"#/components/schemas/Problem"},"examples":{"runtime.rate_limited":{"value":{"type":"https://cmmd.ai/problems/runtime.rate_limited","title":"Too Many Requests","status":429,"detail":"You sent too many messages to Sidekick; try again in a minute","code":"runtime.rate_limited","details":{"retry_after_seconds":60},"retryable":true,"request_id":"0199f1c2-7d4e-7a31-9b5f-2c8d4e6f8a10"}}}}}},"503":{"description":"Service Unavailable","content":{"application/problem+json":{"schema":{"$ref":"#/components/schemas/Problem"},"examples":{"runtime.workers_unavailable":{"value":{"type":"https://cmmd.ai/problems/runtime.workers_unavailable","title":"Service Unavailable","status":503,"detail":"Sidekick is not available right now; try again in a minute","code":"runtime.workers_unavailable","retryable":true,"request_id":"0199f1c2-7d4e-7a31-9b5f-2c8d4e6f8a10"}},"runtime.admission_unavailable":{"value":{"type":"https://cmmd.ai/problems/runtime.admission_unavailable","title":"Service Unavailable","status":503,"detail":"Sidekick cannot take your message right now; try again in a few seconds","code":"runtime.admission_unavailable","retryable":true,"request_id":"0199f1c2-7d4e-7a31-9b5f-2c8d4e6f8a10"}}}}}}}}},"/v1/sidekick/runs/{run_id}":{"patch":{"operationId":"Runs_update","summary":"Stop a reply Sidekick is writing","description":"Needs the `sidekick.use` permission in the organization.","tags":["Runs"],"security":[{"session":[],"organization":[]}],"parameters":[{"name":"run_id","in":"path","required":true,"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)$"}},{"name":"x-team-id","in":"header","required":false,"description":"One of the organization's active teams you are in, to filter by; missing, empty or `all` is every team.","schema":{"type":"string","pattern":"^([1-9][0-9]*|all)?$"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"type":"object","properties":{"status":{"type":"string","const":"cancelled"}},"required":["status"]}}}},"responses":{"200":{"description":"OK","content":{"application/json":{"schema":{"type":"object","properties":{"id":{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"},"conversation_id":{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"},"status":{"type":"string","enum":["queued","running","waiting_approval","waiting_input","cancelling","completed","failed","cancelled","expired"]},"created_at":{"type":"string","format":"date-time"}},"required":["id","conversation_id","status","created_at"],"additionalProperties":false}}}},"400":{"description":"Bad Request","content":{"application/problem+json":{"schema":{"anyOf":[{"$ref":"#/components/schemas/Problem"},{"$ref":"#/components/schemas/InvalidInputProblem"}]},"examples":{"auth.organization_required":{"value":{"type":"https://cmmd.ai/problems/auth.organization_required","title":"Bad Request","status":400,"detail":"Choose an organization to continue","code":"auth.organization_required","request_id":"0199f1c2-7d4e-7a31-9b5f-2c8d4e6f8a10"}},"auth.invalid_team":{"value":{"type":"https://cmmd.ai/problems/auth.invalid_team","title":"Bad Request","status":400,"detail":"The selected team is not valid; choose another team or all teams","code":"auth.invalid_team","request_id":"0199f1c2-7d4e-7a31-9b5f-2c8d4e6f8a10"}},"pipeline.invalid_input":{"value":{"type":"https://cmmd.ai/problems/pipeline.invalid_input","title":"Bad Request","status":400,"detail":"Some fields are missing or not valid","code":"pipeline.invalid_input","details":{"errors":[{"pointer":"#/status","code":"invalid_value","values":["cancelled"],"detail":"Invalid input: expected \"cancelled\""}]},"request_id":"0199f1c2-7d4e-7a31-9b5f-2c8d4e6f8a10"}}}}}},"401":{"description":"Unauthorized","content":{"application/problem+json":{"schema":{"$ref":"#/components/schemas/Problem"},"examples":{"auth.unauthenticated":{"value":{"type":"https://cmmd.ai/problems/auth.unauthenticated","title":"Unauthorized","status":401,"detail":"Sign in to continue","code":"auth.unauthenticated","request_id":"0199f1c2-7d4e-7a31-9b5f-2c8d4e6f8a10"}}}}}},"403":{"description":"Forbidden","content":{"application/problem+json":{"schema":{"$ref":"#/components/schemas/Problem"},"examples":{"auth.not_a_member":{"value":{"type":"https://cmmd.ai/problems/auth.not_a_member","title":"Forbidden","status":403,"detail":"You are not an active member of this organization","code":"auth.not_a_member","request_id":"0199f1c2-7d4e-7a31-9b5f-2c8d4e6f8a10"}},"auth.not_a_team_member":{"value":{"type":"https://cmmd.ai/problems/auth.not_a_team_member","title":"Forbidden","status":403,"detail":"You are not a member of the selected team; choose another team or all teams","code":"auth.not_a_team_member","request_id":"0199f1c2-7d4e-7a31-9b5f-2c8d4e6f8a10"}},"auth.missing_permission":{"value":{"type":"https://cmmd.ai/problems/auth.missing_permission","title":"Forbidden","status":403,"detail":"You don't have permission to do this; ask an owner or an admin of your organization","code":"auth.missing_permission","details":{"permission":"sidekick.use"},"request_id":"0199f1c2-7d4e-7a31-9b5f-2c8d4e6f8a10"}},"auth.person_required":{"value":{"type":"https://cmmd.ai/problems/auth.person_required","title":"Forbidden","status":403,"detail":"Only a signed-in person can do this","code":"auth.person_required","request_id":"0199f1c2-7d4e-7a31-9b5f-2c8d4e6f8a10"}}}}}},"404":{"description":"Not Found","content":{"application/problem+json":{"schema":{"$ref":"#/components/schemas/Problem"},"examples":{"auth.team_not_found":{"value":{"type":"https://cmmd.ai/problems/auth.team_not_found","title":"Not Found","status":404,"detail":"The selected team was not found; choose another team or all teams","code":"auth.team_not_found","request_id":"0199f1c2-7d4e-7a31-9b5f-2c8d4e6f8a10"}},"runtime.run_not_found":{"value":{"type":"https://cmmd.ai/problems/runtime.run_not_found","title":"Not Found","status":404,"detail":"The Sidekick reply does not exist; send your message again","code":"runtime.run_not_found","details":{"run_id":"0199f1c2-8a11-7c3d-8e4f-5a6b7c8d9e01"},"request_id":"0199f1c2-7d4e-7a31-9b5f-2c8d4e6f8a10"}}}}}},"409":{"description":"Conflict","content":{"application/problem+json":{"schema":{"$ref":"#/components/schemas/Problem"},"examples":{"runtime.run_changed":{"value":{"type":"https://cmmd.ai/problems/runtime.run_changed","title":"Conflict","status":409,"detail":"The Sidekick reply changed; try again","code":"runtime.run_changed","details":{"run_id":"0199f1c2-8a11-7c3d-8e4f-5a6b7c8d9e01"},"retryable":true,"request_id":"0199f1c2-7d4e-7a31-9b5f-2c8d4e6f8a10"}}}}}}}}},"/v1/sidekick/runs/{run_id}/stream":{"get":{"operationId":"RunStream_stream","summary":"Follow Sidekick's reply as it is written; it can resume where it left off","description":"Needs the `sidekick.use` permission in the organization.","tags":["RunStream"],"security":[{"session":[],"organization":[]}],"parameters":[{"name":"run_id","in":"path","required":true,"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)$"}},{"name":"after_seq","in":"query","required":false,"schema":{"type":"integer","minimum":0,"maximum":2147483647}},{"name":"Last-Event-ID","in":"header","required":false,"description":"Resume after this event; the browser sends it when it reconnects.","schema":{"type":"string","maxLength":64,"pattern":"^[0-9a-fA-F-]{36}:\\d+$"}},{"name":"x-team-id","in":"header","required":false,"description":"One of the organization's active teams you are in, to filter by; missing, empty or `all` is every team.","schema":{"type":"string","pattern":"^([1-9][0-9]*|all)?$"}}],"responses":{"200":{"description":"Server-sent events: each frame is one part of the reply, and a frame with an `id` can be resumed after with `Last-Event-ID`. A reply that fails ends with an `error` part whose `errorText` is one of: `runtime.model_call_failed`, `runtime.model_timeout`, `runtime.context_overflow`, `runtime.unexpected_tool_calls`, `runtime.run_abandoned`, `runtime.profile_retired`, `runtime.access_lost`, `runtime.internal_error`.","content":{"text/event-stream":{"schema":{"type":"string"}}}},"400":{"description":"Bad Request","content":{"application/problem+json":{"schema":{"anyOf":[{"$ref":"#/components/schemas/Problem"},{"$ref":"#/components/schemas/InvalidInputProblem"}]},"examples":{"auth.organization_required":{"value":{"type":"https://cmmd.ai/problems/auth.organization_required","title":"Bad Request","status":400,"detail":"Choose an organization to continue","code":"auth.organization_required","request_id":"0199f1c2-7d4e-7a31-9b5f-2c8d4e6f8a10"}},"auth.invalid_team":{"value":{"type":"https://cmmd.ai/problems/auth.invalid_team","title":"Bad Request","status":400,"detail":"The selected team is not valid; choose another team or all teams","code":"auth.invalid_team","request_id":"0199f1c2-7d4e-7a31-9b5f-2c8d4e6f8a10"}},"pipeline.invalid_input":{"value":{"type":"https://cmmd.ai/problems/pipeline.invalid_input","title":"Bad Request","status":400,"detail":"Some fields are missing or not valid","code":"pipeline.invalid_input","details":{"errors":[{"pointer":"#/run_id","code":"invalid_type","expected":"string","detail":"Invalid input: expected string, received undefined"}]},"request_id":"0199f1c2-7d4e-7a31-9b5f-2c8d4e6f8a10"}}}}}},"401":{"description":"Unauthorized","content":{"application/problem+json":{"schema":{"$ref":"#/components/schemas/Problem"},"examples":{"auth.unauthenticated":{"value":{"type":"https://cmmd.ai/problems/auth.unauthenticated","title":"Unauthorized","status":401,"detail":"Sign in to continue","code":"auth.unauthenticated","request_id":"0199f1c2-7d4e-7a31-9b5f-2c8d4e6f8a10"}}}}}},"403":{"description":"Forbidden","content":{"application/problem+json":{"schema":{"$ref":"#/components/schemas/Problem"},"examples":{"auth.not_a_member":{"value":{"type":"https://cmmd.ai/problems/auth.not_a_member","title":"Forbidden","status":403,"detail":"You are not an active member of this organization","code":"auth.not_a_member","request_id":"0199f1c2-7d4e-7a31-9b5f-2c8d4e6f8a10"}},"auth.not_a_team_member":{"value":{"type":"https://cmmd.ai/problems/auth.not_a_team_member","title":"Forbidden","status":403,"detail":"You are not a member of the selected team; choose another team or all teams","code":"auth.not_a_team_member","request_id":"0199f1c2-7d4e-7a31-9b5f-2c8d4e6f8a10"}},"auth.missing_permission":{"value":{"type":"https://cmmd.ai/problems/auth.missing_permission","title":"Forbidden","status":403,"detail":"You don't have permission to do this; ask an owner or an admin of your organization","code":"auth.missing_permission","details":{"permission":"sidekick.use"},"request_id":"0199f1c2-7d4e-7a31-9b5f-2c8d4e6f8a10"}},"auth.person_required":{"value":{"type":"https://cmmd.ai/problems/auth.person_required","title":"Forbidden","status":403,"detail":"Only a signed-in person can do this","code":"auth.person_required","request_id":"0199f1c2-7d4e-7a31-9b5f-2c8d4e6f8a10"}}}}}},"404":{"description":"Not Found","content":{"application/problem+json":{"schema":{"$ref":"#/components/schemas/Problem"},"examples":{"auth.team_not_found":{"value":{"type":"https://cmmd.ai/problems/auth.team_not_found","title":"Not Found","status":404,"detail":"The selected team was not found; choose another team or all teams","code":"auth.team_not_found","request_id":"0199f1c2-7d4e-7a31-9b5f-2c8d4e6f8a10"}},"runtime.run_not_found":{"value":{"type":"https://cmmd.ai/problems/runtime.run_not_found","title":"Not Found","status":404,"detail":"The Sidekick reply does not exist; send your message again","code":"runtime.run_not_found","details":{"run_id":"0199f1c2-8a11-7c3d-8e4f-5a6b7c8d9e01"},"request_id":"0199f1c2-7d4e-7a31-9b5f-2c8d4e6f8a10"}}}}}}}}},"/v2/conversations":{"get":{"operationId":"TurnConversations_list","summary":"List your conversations with Sidekick, most recent first: active, pinned or archived","description":"Needs the `sidekick.use` permission in the organization.","tags":["TurnConversations"],"security":[{"session":[],"organization":[]}],"parameters":[{"name":"cursor","in":"query","required":false,"schema":{"type":"string","pattern":"^[^_]+_[^_]+$"}},{"name":"limit","in":"query","required":false,"schema":{"default":20,"type":"integer","minimum":1,"maximum":100}},{"name":"status","in":"query","required":false,"schema":{"type":"string","enum":["active","archived"]}},{"name":"pinned","in":"query","required":false,"schema":{"type":["boolean","string"]}},{"name":"x-team-id","in":"header","required":false,"description":"One of the organization's active teams you are in, to filter by; missing, empty or `all` is every team.","schema":{"type":"string","pattern":"^([1-9][0-9]*|all)?$"}}],"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)$"},"title":{"type":["string","null"]},"status":{"type":"string","enum":["active","archived"]},"contract":{"type":"string","enum":["coach","your_ai"]},"created_at":{"type":"string","format":"date-time"},"last_message_at":{"type":"string","format":"date-time"},"pinned":{"type":"boolean"}},"required":["id","title","status","contract","created_at","last_message_at","pinned"],"additionalProperties":false}},"next_cursor":{"anyOf":[{"type":"string","pattern":"^[^_]+_[^_]+$"},{"type":"null"}]}},"required":["items","next_cursor"],"additionalProperties":false}}}},"400":{"description":"Bad Request","content":{"application/problem+json":{"schema":{"anyOf":[{"$ref":"#/components/schemas/Problem"},{"$ref":"#/components/schemas/InvalidInputProblem"}]},"examples":{"auth.organization_required":{"value":{"type":"https://cmmd.ai/problems/auth.organization_required","title":"Bad Request","status":400,"detail":"Choose an organization to continue","code":"auth.organization_required","request_id":"0199f1c2-7d4e-7a31-9b5f-2c8d4e6f8a10"}},"auth.invalid_team":{"value":{"type":"https://cmmd.ai/problems/auth.invalid_team","title":"Bad Request","status":400,"detail":"The selected team is not valid; choose another team or all teams","code":"auth.invalid_team","request_id":"0199f1c2-7d4e-7a31-9b5f-2c8d4e6f8a10"}},"pipeline.invalid_input":{"value":{"type":"https://cmmd.ai/problems/pipeline.invalid_input","title":"Bad Request","status":400,"detail":"Some fields are missing or not valid","code":"pipeline.invalid_input","details":{"errors":[]},"request_id":"0199f1c2-7d4e-7a31-9b5f-2c8d4e6f8a10"}}}}}},"401":{"description":"Unauthorized","content":{"application/problem+json":{"schema":{"$ref":"#/components/schemas/Problem"},"examples":{"auth.unauthenticated":{"value":{"type":"https://cmmd.ai/problems/auth.unauthenticated","title":"Unauthorized","status":401,"detail":"Sign in to continue","code":"auth.unauthenticated","request_id":"0199f1c2-7d4e-7a31-9b5f-2c8d4e6f8a10"}}}}}},"403":{"description":"Forbidden","content":{"application/problem+json":{"schema":{"$ref":"#/components/schemas/Problem"},"examples":{"auth.not_a_member":{"value":{"type":"https://cmmd.ai/problems/auth.not_a_member","title":"Forbidden","status":403,"detail":"You are not an active member of this organization","code":"auth.not_a_member","request_id":"0199f1c2-7d4e-7a31-9b5f-2c8d4e6f8a10"}},"auth.not_a_team_member":{"value":{"type":"https://cmmd.ai/problems/auth.not_a_team_member","title":"Forbidden","status":403,"detail":"You are not a member of the selected team; choose another team or all teams","code":"auth.not_a_team_member","request_id":"0199f1c2-7d4e-7a31-9b5f-2c8d4e6f8a10"}},"auth.missing_permission":{"value":{"type":"https://cmmd.ai/problems/auth.missing_permission","title":"Forbidden","status":403,"detail":"You don't have permission to do this; ask an owner or an admin of your organization","code":"auth.missing_permission","details":{"permission":"sidekick.use"},"request_id":"0199f1c2-7d4e-7a31-9b5f-2c8d4e6f8a10"}},"auth.person_required":{"value":{"type":"https://cmmd.ai/problems/auth.person_required","title":"Forbidden","status":403,"detail":"Only a signed-in person can do this","code":"auth.person_required","request_id":"0199f1c2-7d4e-7a31-9b5f-2c8d4e6f8a10"}}}}}},"404":{"description":"Not Found","content":{"application/problem+json":{"schema":{"$ref":"#/components/schemas/Problem"},"examples":{"auth.team_not_found":{"value":{"type":"https://cmmd.ai/problems/auth.team_not_found","title":"Not Found","status":404,"detail":"The selected team was not found; choose another team or all teams","code":"auth.team_not_found","request_id":"0199f1c2-7d4e-7a31-9b5f-2c8d4e6f8a10"}}}}}}}}},"/v2/conversations/{conversation_id}":{"get":{"operationId":"TurnConversations_get","summary":"Open one of your conversations with Sidekick, with the answer still being written","description":"Needs the `sidekick.use` permission in the organization.","tags":["TurnConversations"],"security":[{"session":[],"organization":[]}],"parameters":[{"name":"conversation_id","in":"path","required":true,"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)$"}},{"name":"x-team-id","in":"header","required":false,"description":"One of the organization's active teams you are in, to filter by; missing, empty or `all` is every team.","schema":{"type":"string","pattern":"^([1-9][0-9]*|all)?$"}}],"responses":{"200":{"description":"OK","content":{"application/json":{"schema":{"type":"object","properties":{"id":{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"},"title":{"type":["string","null"]},"status":{"type":"string","enum":["active","archived"]},"contract":{"type":"string","enum":["coach","your_ai"]},"created_at":{"type":"string","format":"date-time"},"last_message_at":{"type":"string","format":"date-time"},"active_run_id":{"anyOf":[{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"},{"type":"null"}]},"pinned":{"type":"boolean"}},"required":["id","title","status","contract","created_at","last_message_at","active_run_id","pinned"],"additionalProperties":false}}}},"400":{"description":"Bad Request","content":{"application/problem+json":{"schema":{"anyOf":[{"$ref":"#/components/schemas/Problem"},{"$ref":"#/components/schemas/InvalidInputProblem"}]},"examples":{"auth.organization_required":{"value":{"type":"https://cmmd.ai/problems/auth.organization_required","title":"Bad Request","status":400,"detail":"Choose an organization to continue","code":"auth.organization_required","request_id":"0199f1c2-7d4e-7a31-9b5f-2c8d4e6f8a10"}},"auth.invalid_team":{"value":{"type":"https://cmmd.ai/problems/auth.invalid_team","title":"Bad Request","status":400,"detail":"The selected team is not valid; choose another team or all teams","code":"auth.invalid_team","request_id":"0199f1c2-7d4e-7a31-9b5f-2c8d4e6f8a10"}},"pipeline.invalid_input":{"value":{"type":"https://cmmd.ai/problems/pipeline.invalid_input","title":"Bad Request","status":400,"detail":"Some fields are missing or not valid","code":"pipeline.invalid_input","details":{"errors":[{"pointer":"#/conversation_id","code":"invalid_type","expected":"string","detail":"Invalid input: expected string, received undefined"}]},"request_id":"0199f1c2-7d4e-7a31-9b5f-2c8d4e6f8a10"}}}}}},"401":{"description":"Unauthorized","content":{"application/problem+json":{"schema":{"$ref":"#/components/schemas/Problem"},"examples":{"auth.unauthenticated":{"value":{"type":"https://cmmd.ai/problems/auth.unauthenticated","title":"Unauthorized","status":401,"detail":"Sign in to continue","code":"auth.unauthenticated","request_id":"0199f1c2-7d4e-7a31-9b5f-2c8d4e6f8a10"}}}}}},"403":{"description":"Forbidden","content":{"application/problem+json":{"schema":{"$ref":"#/components/schemas/Problem"},"examples":{"auth.not_a_member":{"value":{"type":"https://cmmd.ai/problems/auth.not_a_member","title":"Forbidden","status":403,"detail":"You are not an active member of this organization","code":"auth.not_a_member","request_id":"0199f1c2-7d4e-7a31-9b5f-2c8d4e6f8a10"}},"auth.not_a_team_member":{"value":{"type":"https://cmmd.ai/problems/auth.not_a_team_member","title":"Forbidden","status":403,"detail":"You are not a member of the selected team; choose another team or all teams","code":"auth.not_a_team_member","request_id":"0199f1c2-7d4e-7a31-9b5f-2c8d4e6f8a10"}},"auth.missing_permission":{"value":{"type":"https://cmmd.ai/problems/auth.missing_permission","title":"Forbidden","status":403,"detail":"You don't have permission to do this; ask an owner or an admin of your organization","code":"auth.missing_permission","details":{"permission":"sidekick.use"},"request_id":"0199f1c2-7d4e-7a31-9b5f-2c8d4e6f8a10"}},"auth.person_required":{"value":{"type":"https://cmmd.ai/problems/auth.person_required","title":"Forbidden","status":403,"detail":"Only a signed-in person can do this","code":"auth.person_required","request_id":"0199f1c2-7d4e-7a31-9b5f-2c8d4e6f8a10"}}}}}},"404":{"description":"Not Found","content":{"application/problem+json":{"schema":{"$ref":"#/components/schemas/Problem"},"examples":{"auth.team_not_found":{"value":{"type":"https://cmmd.ai/problems/auth.team_not_found","title":"Not Found","status":404,"detail":"The selected team was not found; choose another team or all teams","code":"auth.team_not_found","request_id":"0199f1c2-7d4e-7a31-9b5f-2c8d4e6f8a10"}},"runtime.conversation_not_found":{"value":{"type":"https://cmmd.ai/problems/runtime.conversation_not_found","title":"Not Found","status":404,"detail":"The Sidekick conversation does not exist; start a new one","code":"runtime.conversation_not_found","details":{"conversation_id":"0199f1c2-8a10-7b2c-9d3e-4f5a6b7c8d90"},"request_id":"0199f1c2-7d4e-7a31-9b5f-2c8d4e6f8a10"}}}}}}}},"patch":{"operationId":"TurnConversations_update","summary":"Rename, archive, restore, pin or unpin one of your conversations with Sidekick","description":"Needs the `sidekick.use` permission in the organization.","tags":["TurnConversations"],"security":[{"session":[],"organization":[]}],"parameters":[{"name":"conversation_id","in":"path","required":true,"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)$"}},{"name":"x-team-id","in":"header","required":false,"description":"One of the organization's active teams you are in, to filter by; missing, empty or `all` is every team.","schema":{"type":"string","pattern":"^([1-9][0-9]*|all)?$"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"type":"object","properties":{"title":{"type":"string","minLength":1,"maxLength":80},"status":{"type":"string","enum":["active","archived"]},"pinned":{"type":"boolean"}}}}}},"responses":{"200":{"description":"OK","content":{"application/json":{"schema":{"type":"object","properties":{"id":{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"},"title":{"type":["string","null"]},"status":{"type":"string","enum":["active","archived"]},"contract":{"type":"string","enum":["coach","your_ai"]},"created_at":{"type":"string","format":"date-time"},"last_message_at":{"type":"string","format":"date-time"},"pinned":{"type":"boolean"}},"required":["id","title","status","contract","created_at","last_message_at","pinned"],"additionalProperties":false}}}},"400":{"description":"Bad Request","content":{"application/problem+json":{"schema":{"anyOf":[{"$ref":"#/components/schemas/Problem"},{"$ref":"#/components/schemas/InvalidInputProblem"}]},"examples":{"auth.organization_required":{"value":{"type":"https://cmmd.ai/problems/auth.organization_required","title":"Bad Request","status":400,"detail":"Choose an organization to continue","code":"auth.organization_required","request_id":"0199f1c2-7d4e-7a31-9b5f-2c8d4e6f8a10"}},"auth.invalid_team":{"value":{"type":"https://cmmd.ai/problems/auth.invalid_team","title":"Bad Request","status":400,"detail":"The selected team is not valid; choose another team or all teams","code":"auth.invalid_team","request_id":"0199f1c2-7d4e-7a31-9b5f-2c8d4e6f8a10"}},"pipeline.invalid_input":{"value":{"type":"https://cmmd.ai/problems/pipeline.invalid_input","title":"Bad Request","status":400,"detail":"Some fields are missing or not valid","code":"pipeline.invalid_input","details":{"errors":[{"pointer":"#/conversation_id","code":"invalid_type","expected":"nonoptional","detail":"Invalid input: expected nonoptional, received undefined"}]},"request_id":"0199f1c2-7d4e-7a31-9b5f-2c8d4e6f8a10"}}}}}},"401":{"description":"Unauthorized","content":{"application/problem+json":{"schema":{"$ref":"#/components/schemas/Problem"},"examples":{"auth.unauthenticated":{"value":{"type":"https://cmmd.ai/problems/auth.unauthenticated","title":"Unauthorized","status":401,"detail":"Sign in to continue","code":"auth.unauthenticated","request_id":"0199f1c2-7d4e-7a31-9b5f-2c8d4e6f8a10"}}}}}},"403":{"description":"Forbidden","content":{"application/problem+json":{"schema":{"$ref":"#/components/schemas/Problem"},"examples":{"auth.not_a_member":{"value":{"type":"https://cmmd.ai/problems/auth.not_a_member","title":"Forbidden","status":403,"detail":"You are not an active member of this organization","code":"auth.not_a_member","request_id":"0199f1c2-7d4e-7a31-9b5f-2c8d4e6f8a10"}},"auth.not_a_team_member":{"value":{"type":"https://cmmd.ai/problems/auth.not_a_team_member","title":"Forbidden","status":403,"detail":"You are not a member of the selected team; choose another team or all teams","code":"auth.not_a_team_member","request_id":"0199f1c2-7d4e-7a31-9b5f-2c8d4e6f8a10"}},"auth.missing_permission":{"value":{"type":"https://cmmd.ai/problems/auth.missing_permission","title":"Forbidden","status":403,"detail":"You don't have permission to do this; ask an owner or an admin of your organization","code":"auth.missing_permission","details":{"permission":"sidekick.use"},"request_id":"0199f1c2-7d4e-7a31-9b5f-2c8d4e6f8a10"}},"auth.person_required":{"value":{"type":"https://cmmd.ai/problems/auth.person_required","title":"Forbidden","status":403,"detail":"Only a signed-in person can do this","code":"auth.person_required","request_id":"0199f1c2-7d4e-7a31-9b5f-2c8d4e6f8a10"}}}}}},"404":{"description":"Not Found","content":{"application/problem+json":{"schema":{"$ref":"#/components/schemas/Problem"},"examples":{"auth.team_not_found":{"value":{"type":"https://cmmd.ai/problems/auth.team_not_found","title":"Not Found","status":404,"detail":"The selected team was not found; choose another team or all teams","code":"auth.team_not_found","request_id":"0199f1c2-7d4e-7a31-9b5f-2c8d4e6f8a10"}},"runtime.conversation_not_found":{"value":{"type":"https://cmmd.ai/problems/runtime.conversation_not_found","title":"Not Found","status":404,"detail":"The Sidekick conversation does not exist; start a new one","code":"runtime.conversation_not_found","details":{"conversation_id":"0199f1c2-8a10-7b2c-9d3e-4f5a6b7c8d90"},"request_id":"0199f1c2-7d4e-7a31-9b5f-2c8d4e6f8a10"}}}}}},"409":{"description":"Conflict","content":{"application/problem+json":{"schema":{"$ref":"#/components/schemas/Problem"},"examples":{"runtime.conversation_archived":{"value":{"type":"https://cmmd.ai/problems/runtime.conversation_archived","title":"Conflict","status":409,"detail":"This conversation is archived; restore it first","code":"runtime.conversation_archived","details":{"conversation_id":"0199f1c2-8a10-7b2c-9d3e-4f5a6b7c8d90"},"request_id":"0199f1c2-7d4e-7a31-9b5f-2c8d4e6f8a10"}},"runtime.conversation_changed":{"value":{"type":"https://cmmd.ai/problems/runtime.conversation_changed","title":"Conflict","status":409,"detail":"This conversation changed at the same time; try again","code":"runtime.conversation_changed","details":{"conversation_id":"0199f1c2-8a10-7b2c-9d3e-4f5a6b7c8d90"},"retryable":true,"request_id":"0199f1c2-7d4e-7a31-9b5f-2c8d4e6f8a10"}}}}}}}},"delete":{"operationId":"TurnConversations_delete","summary":"Delete one of your conversations with Sidekick","description":"Needs the `sidekick.use` permission in the organization.","tags":["TurnConversations"],"security":[{"session":[],"organization":[]}],"parameters":[{"name":"conversation_id","in":"path","required":true,"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)$"}},{"name":"x-team-id","in":"header","required":false,"description":"One of the organization's active teams you are in, to filter by; missing, empty or `all` is every team.","schema":{"type":"string","pattern":"^([1-9][0-9]*|all)?$"}}],"responses":{"200":{"description":"OK","content":{"application/json":{"schema":{"type":"object","properties":{"id":{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"},"deleted_at":{"type":"string","format":"date-time"}},"required":["id","deleted_at"],"additionalProperties":false}}}},"400":{"description":"Bad Request","content":{"application/problem+json":{"schema":{"anyOf":[{"$ref":"#/components/schemas/Problem"},{"$ref":"#/components/schemas/InvalidInputProblem"}]},"examples":{"auth.organization_required":{"value":{"type":"https://cmmd.ai/problems/auth.organization_required","title":"Bad Request","status":400,"detail":"Choose an organization to continue","code":"auth.organization_required","request_id":"0199f1c2-7d4e-7a31-9b5f-2c8d4e6f8a10"}},"auth.invalid_team":{"value":{"type":"https://cmmd.ai/problems/auth.invalid_team","title":"Bad Request","status":400,"detail":"The selected team is not valid; choose another team or all teams","code":"auth.invalid_team","request_id":"0199f1c2-7d4e-7a31-9b5f-2c8d4e6f8a10"}},"pipeline.invalid_input":{"value":{"type":"https://cmmd.ai/problems/pipeline.invalid_input","title":"Bad Request","status":400,"detail":"Some fields are missing or not valid","code":"pipeline.invalid_input","details":{"errors":[{"pointer":"#/conversation_id","code":"invalid_type","expected":"string","detail":"Invalid input: expected string, received undefined"}]},"request_id":"0199f1c2-7d4e-7a31-9b5f-2c8d4e6f8a10"}}}}}},"401":{"description":"Unauthorized","content":{"application/problem+json":{"schema":{"$ref":"#/components/schemas/Problem"},"examples":{"auth.unauthenticated":{"value":{"type":"https://cmmd.ai/problems/auth.unauthenticated","title":"Unauthorized","status":401,"detail":"Sign in to continue","code":"auth.unauthenticated","request_id":"0199f1c2-7d4e-7a31-9b5f-2c8d4e6f8a10"}}}}}},"403":{"description":"Forbidden","content":{"application/problem+json":{"schema":{"$ref":"#/components/schemas/Problem"},"examples":{"auth.not_a_member":{"value":{"type":"https://cmmd.ai/problems/auth.not_a_member","title":"Forbidden","status":403,"detail":"You are not an active member of this organization","code":"auth.not_a_member","request_id":"0199f1c2-7d4e-7a31-9b5f-2c8d4e6f8a10"}},"auth.not_a_team_member":{"value":{"type":"https://cmmd.ai/problems/auth.not_a_team_member","title":"Forbidden","status":403,"detail":"You are not a member of the selected team; choose another team or all teams","code":"auth.not_a_team_member","request_id":"0199f1c2-7d4e-7a31-9b5f-2c8d4e6f8a10"}},"auth.missing_permission":{"value":{"type":"https://cmmd.ai/problems/auth.missing_permission","title":"Forbidden","status":403,"detail":"You don't have permission to do this; ask an owner or an admin of your organization","code":"auth.missing_permission","details":{"permission":"sidekick.use"},"request_id":"0199f1c2-7d4e-7a31-9b5f-2c8d4e6f8a10"}},"auth.person_required":{"value":{"type":"https://cmmd.ai/problems/auth.person_required","title":"Forbidden","status":403,"detail":"Only a signed-in person can do this","code":"auth.person_required","request_id":"0199f1c2-7d4e-7a31-9b5f-2c8d4e6f8a10"}}}}}},"404":{"description":"Not Found","content":{"application/problem+json":{"schema":{"$ref":"#/components/schemas/Problem"},"examples":{"auth.team_not_found":{"value":{"type":"https://cmmd.ai/problems/auth.team_not_found","title":"Not Found","status":404,"detail":"The selected team was not found; choose another team or all teams","code":"auth.team_not_found","request_id":"0199f1c2-7d4e-7a31-9b5f-2c8d4e6f8a10"}},"runtime.conversation_not_found":{"value":{"type":"https://cmmd.ai/problems/runtime.conversation_not_found","title":"Not Found","status":404,"detail":"The Sidekick conversation does not exist; start a new one","code":"runtime.conversation_not_found","details":{"conversation_id":"0199f1c2-8a10-7b2c-9d3e-4f5a6b7c8d90"},"request_id":"0199f1c2-7d4e-7a31-9b5f-2c8d4e6f8a10"}}}}}},"409":{"description":"Conflict","content":{"application/problem+json":{"schema":{"$ref":"#/components/schemas/Problem"},"examples":{"runtime.conversation_busy":{"value":{"type":"https://cmmd.ai/problems/runtime.conversation_busy","title":"Conflict","status":409,"detail":"Sidekick is still answering in this conversation; stop the reply or wait for it to finish, then try again","code":"runtime.conversation_busy","details":{"run_id":"0199f1c2-8a11-7c3d-8e4f-5a6b7c8d9e01"},"retryable":true,"request_id":"0199f1c2-7d4e-7a31-9b5f-2c8d4e6f8a10"}},"runtime.conversation_changed":{"value":{"type":"https://cmmd.ai/problems/runtime.conversation_changed","title":"Conflict","status":409,"detail":"This conversation changed at the same time; try again","code":"runtime.conversation_changed","details":{"conversation_id":"0199f1c2-8a10-7b2c-9d3e-4f5a6b7c8d90"},"retryable":true,"request_id":"0199f1c2-7d4e-7a31-9b5f-2c8d4e6f8a10"}}}}}}}}},"/v2/conversations/{conversation_id}/messages":{"get":{"operationId":"TurnConversations_listMessages","summary":"List the messages of one of your conversations with Sidekick, newest first","description":"Needs the `sidekick.use` permission in the organization.","tags":["TurnConversations"],"security":[{"session":[],"organization":[]}],"parameters":[{"name":"conversation_id","in":"path","required":true,"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)$"}},{"name":"cursor","in":"query","required":false,"schema":{"type":"integer","exclusiveMinimum":0,"maximum":9007199254740991}},{"name":"limit","in":"query","required":false,"schema":{"default":20,"type":"integer","minimum":1,"maximum":100}},{"name":"x-team-id","in":"header","required":false,"description":"One of the organization's active teams you are in, to filter by; missing, empty or `all` is every team.","schema":{"type":"string","pattern":"^([1-9][0-9]*|all)?$"}}],"responses":{"200":{"description":"OK","content":{"application/json":{"schema":{"type":"object","properties":{"items":{"type":"array","items":{"type":"object","properties":{"id":{"type":"string"},"role":{"type":"string","enum":["user","assistant"]},"parts":{"type":"array","items":{"$ref":"#/$defs/__schema0"}},"metadata":{"type":"object","properties":{"seq":{"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991},"status":{"type":"string","enum":["completed","failed","aborted"]},"created_at":{"type":"string","format":"date-time"},"client":{"type":"object","properties":{"time_zone":{"type":["string","null"]},"locale":{"type":["string","null"]}},"required":["time_zone","locale"],"additionalProperties":false},"agent":{"$ref":"#/$defs/__schema1"}},"required":["seq","status","created_at"],"additionalProperties":false}},"required":["id","role","parts","metadata"],"additionalProperties":false}},"next_cursor":{"type":["string","null"]}},"required":["items","next_cursor"],"additionalProperties":false,"$defs":{"__schema0":{"anyOf":[{"type":"string"},{"type":"number"},{"type":"boolean"},{"type":"null"},{"type":"array","items":{"$ref":"#/$defs/__schema0"}},{"type":"object","propertyNames":{"type":"string"},"additionalProperties":{"$ref":"#/$defs/__schema0"}}]},"__schema1":{"anyOf":[{"type":"string"},{"type":"number"},{"type":"boolean"},{"type":"null"},{"type":"array","items":{"$ref":"#/$defs/__schema1"}},{"type":"object","propertyNames":{"type":"string"},"additionalProperties":{"$ref":"#/$defs/__schema1"}}]}}}}}},"400":{"description":"Bad Request","content":{"application/problem+json":{"schema":{"anyOf":[{"$ref":"#/components/schemas/Problem"},{"$ref":"#/components/schemas/InvalidInputProblem"}]},"examples":{"auth.organization_required":{"value":{"type":"https://cmmd.ai/problems/auth.organization_required","title":"Bad Request","status":400,"detail":"Choose an organization to continue","code":"auth.organization_required","request_id":"0199f1c2-7d4e-7a31-9b5f-2c8d4e6f8a10"}},"auth.invalid_team":{"value":{"type":"https://cmmd.ai/problems/auth.invalid_team","title":"Bad Request","status":400,"detail":"The selected team is not valid; choose another team or all teams","code":"auth.invalid_team","request_id":"0199f1c2-7d4e-7a31-9b5f-2c8d4e6f8a10"}},"pipeline.invalid_input":{"value":{"type":"https://cmmd.ai/problems/pipeline.invalid_input","title":"Bad Request","status":400,"detail":"Some fields are missing or not valid","code":"pipeline.invalid_input","details":{"errors":[{"pointer":"#/conversation_id","code":"invalid_type","expected":"string","detail":"Invalid input: expected string, received undefined"}]},"request_id":"0199f1c2-7d4e-7a31-9b5f-2c8d4e6f8a10"}}}}}},"401":{"description":"Unauthorized","content":{"application/problem+json":{"schema":{"$ref":"#/components/schemas/Problem"},"examples":{"auth.unauthenticated":{"value":{"type":"https://cmmd.ai/problems/auth.unauthenticated","title":"Unauthorized","status":401,"detail":"Sign in to continue","code":"auth.unauthenticated","request_id":"0199f1c2-7d4e-7a31-9b5f-2c8d4e6f8a10"}}}}}},"403":{"description":"Forbidden","content":{"application/problem+json":{"schema":{"$ref":"#/components/schemas/Problem"},"examples":{"auth.not_a_member":{"value":{"type":"https://cmmd.ai/problems/auth.not_a_member","title":"Forbidden","status":403,"detail":"You are not an active member of this organization","code":"auth.not_a_member","request_id":"0199f1c2-7d4e-7a31-9b5f-2c8d4e6f8a10"}},"auth.not_a_team_member":{"value":{"type":"https://cmmd.ai/problems/auth.not_a_team_member","title":"Forbidden","status":403,"detail":"You are not a member of the selected team; choose another team or all teams","code":"auth.not_a_team_member","request_id":"0199f1c2-7d4e-7a31-9b5f-2c8d4e6f8a10"}},"auth.missing_permission":{"value":{"type":"https://cmmd.ai/problems/auth.missing_permission","title":"Forbidden","status":403,"detail":"You don't have permission to do this; ask an owner or an admin of your organization","code":"auth.missing_permission","details":{"permission":"sidekick.use"},"request_id":"0199f1c2-7d4e-7a31-9b5f-2c8d4e6f8a10"}},"auth.person_required":{"value":{"type":"https://cmmd.ai/problems/auth.person_required","title":"Forbidden","status":403,"detail":"Only a signed-in person can do this","code":"auth.person_required","request_id":"0199f1c2-7d4e-7a31-9b5f-2c8d4e6f8a10"}}}}}},"404":{"description":"Not Found","content":{"application/problem+json":{"schema":{"$ref":"#/components/schemas/Problem"},"examples":{"auth.team_not_found":{"value":{"type":"https://cmmd.ai/problems/auth.team_not_found","title":"Not Found","status":404,"detail":"The selected team was not found; choose another team or all teams","code":"auth.team_not_found","request_id":"0199f1c2-7d4e-7a31-9b5f-2c8d4e6f8a10"}},"runtime.conversation_not_found":{"value":{"type":"https://cmmd.ai/problems/runtime.conversation_not_found","title":"Not Found","status":404,"detail":"The Sidekick conversation does not exist; start a new one","code":"runtime.conversation_not_found","details":{"conversation_id":"0199f1c2-8a10-7b2c-9d3e-4f5a6b7c8d90"},"request_id":"0199f1c2-7d4e-7a31-9b5f-2c8d4e6f8a10"}}}}}}}},"post":{"operationId":"TurnConversations_send","summary":"Send a message to Sidekick and receive its answer as it is written","description":"Needs the `sidekick.use` permission in the organization.","tags":["TurnConversations"],"security":[{"session":[],"organization":[]}],"parameters":[{"name":"conversation_id","in":"path","required":true,"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)$"}},{"name":"x-cmmd-client","in":"header","required":false,"description":"Where the client runs and its version, `<surface>/<version>` (`web/1.4.0`).","schema":{"type":"string"}},{"name":"x-team-id","in":"header","required":false,"description":"One of the organization's active teams you are in, to filter by; missing, empty or `all` is every team.","schema":{"type":"string","pattern":"^([1-9][0-9]*|all)?$"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"type":"object","properties":{"message_id":{"type":"string","minLength":1,"maxLength":200},"parts":{"minItems":1,"type":"array","items":{"type":"object","properties":{"type":{"type":"string","const":"text"},"text":{"type":"string"}},"required":["type","text"]}},"time_zone":{"type":"string","minLength":1,"maxLength":64},"locale":{"type":"string","minLength":2,"maxLength":35},"contract":{"type":"string","enum":["coach","your_ai"]}},"required":["message_id","parts"]}}}},"responses":{"200":{"description":"Server-sent events: each frame is one part of the answer, from its first, and the `x-workflow-run-id` header names it. An answer that fails ends with an `error` part whose `errorText` is one of: `runtime.turn_failed`, `runtime.model_call_failed`, `runtime.model_timeout`.","content":{"text/event-stream":{"schema":{"type":"string"}}}},"400":{"description":"Bad Request","content":{"application/problem+json":{"schema":{"anyOf":[{"$ref":"#/components/schemas/Problem"},{"$ref":"#/components/schemas/InvalidInputProblem"}]},"examples":{"auth.organization_required":{"value":{"type":"https://cmmd.ai/problems/auth.organization_required","title":"Bad Request","status":400,"detail":"Choose an organization to continue","code":"auth.organization_required","request_id":"0199f1c2-7d4e-7a31-9b5f-2c8d4e6f8a10"}},"auth.invalid_team":{"value":{"type":"https://cmmd.ai/problems/auth.invalid_team","title":"Bad Request","status":400,"detail":"The selected team is not valid; choose another team or all teams","code":"auth.invalid_team","request_id":"0199f1c2-7d4e-7a31-9b5f-2c8d4e6f8a10"}},"pipeline.invalid_input":{"value":{"type":"https://cmmd.ai/problems/pipeline.invalid_input","title":"Bad Request","status":400,"detail":"Some fields are missing or not valid","code":"pipeline.invalid_input","details":{"errors":[{"pointer":"#/message_id","code":"invalid_type","expected":"string","detail":"Invalid input: expected string, received undefined"},{"pointer":"#/parts","code":"invalid_type","expected":"array","detail":"Invalid input: expected array, received undefined"}]},"request_id":"0199f1c2-7d4e-7a31-9b5f-2c8d4e6f8a10"}}}}}},"401":{"description":"Unauthorized","content":{"application/problem+json":{"schema":{"$ref":"#/components/schemas/Problem"},"examples":{"auth.unauthenticated":{"value":{"type":"https://cmmd.ai/problems/auth.unauthenticated","title":"Unauthorized","status":401,"detail":"Sign in to continue","code":"auth.unauthenticated","request_id":"0199f1c2-7d4e-7a31-9b5f-2c8d4e6f8a10"}}}}}},"403":{"description":"Forbidden","content":{"application/problem+json":{"schema":{"$ref":"#/components/schemas/Problem"},"examples":{"auth.not_a_member":{"value":{"type":"https://cmmd.ai/problems/auth.not_a_member","title":"Forbidden","status":403,"detail":"You are not an active member of this organization","code":"auth.not_a_member","request_id":"0199f1c2-7d4e-7a31-9b5f-2c8d4e6f8a10"}},"auth.not_a_team_member":{"value":{"type":"https://cmmd.ai/problems/auth.not_a_team_member","title":"Forbidden","status":403,"detail":"You are not a member of the selected team; choose another team or all teams","code":"auth.not_a_team_member","request_id":"0199f1c2-7d4e-7a31-9b5f-2c8d4e6f8a10"}},"auth.missing_permission":{"value":{"type":"https://cmmd.ai/problems/auth.missing_permission","title":"Forbidden","status":403,"detail":"You don't have permission to do this; ask an owner or an admin of your organization","code":"auth.missing_permission","details":{"permission":"sidekick.use"},"request_id":"0199f1c2-7d4e-7a31-9b5f-2c8d4e6f8a10"}},"auth.person_required":{"value":{"type":"https://cmmd.ai/problems/auth.person_required","title":"Forbidden","status":403,"detail":"Only a signed-in person can do this","code":"auth.person_required","request_id":"0199f1c2-7d4e-7a31-9b5f-2c8d4e6f8a10"}}}}}},"404":{"description":"Not Found","content":{"application/problem+json":{"schema":{"$ref":"#/components/schemas/Problem"},"examples":{"auth.team_not_found":{"value":{"type":"https://cmmd.ai/problems/auth.team_not_found","title":"Not Found","status":404,"detail":"The selected team was not found; choose another team or all teams","code":"auth.team_not_found","request_id":"0199f1c2-7d4e-7a31-9b5f-2c8d4e6f8a10"}},"runtime.conversation_not_found":{"value":{"type":"https://cmmd.ai/problems/runtime.conversation_not_found","title":"Not Found","status":404,"detail":"The Sidekick conversation does not exist; start a new one","code":"runtime.conversation_not_found","details":{"conversation_id":"0199f1c2-8a10-7b2c-9d3e-4f5a6b7c8d90"},"request_id":"0199f1c2-7d4e-7a31-9b5f-2c8d4e6f8a10"}}}}}},"409":{"description":"Conflict","content":{"application/problem+json":{"schema":{"$ref":"#/components/schemas/Problem"},"examples":{"runtime.conversation_archived":{"value":{"type":"https://cmmd.ai/problems/runtime.conversation_archived","title":"Conflict","status":409,"detail":"This conversation is archived; restore it first","code":"runtime.conversation_archived","details":{"conversation_id":"0199f1c2-8a10-7b2c-9d3e-4f5a6b7c8d90"},"request_id":"0199f1c2-7d4e-7a31-9b5f-2c8d4e6f8a10"}},"runtime.contract_is_fixed":{"value":{"type":"https://cmmd.ai/problems/runtime.contract_is_fixed","title":"Conflict","status":409,"detail":"This conversation keeps the way it started; start a new conversation to change it","code":"runtime.contract_is_fixed","details":{"conversation_id":"0199f1c2-8a10-7b2c-9d3e-4f5a6b7c8d90"},"request_id":"0199f1c2-7d4e-7a31-9b5f-2c8d4e6f8a10"}},"runtime.turn_in_progress":{"value":{"type":"https://cmmd.ai/problems/runtime.turn_in_progress","title":"Conflict","status":409,"detail":"Sidekick is still answering your previous message; try again when it finishes","code":"runtime.turn_in_progress","details":{"run_id":"0199f1c2-8a11-7c3d-8e4f-5a6b7c8d9e01"},"retryable":true,"request_id":"0199f1c2-7d4e-7a31-9b5f-2c8d4e6f8a10"}}}}}},"503":{"description":"Service Unavailable","content":{"application/problem+json":{"schema":{"$ref":"#/components/schemas/Problem"},"examples":{"runtime.maintenance":{"value":{"type":"https://cmmd.ai/problems/runtime.maintenance","title":"Service Unavailable","status":503,"detail":"Sidekick is being updated; try again in a moment","code":"runtime.maintenance","retryable":true,"request_id":"0199f1c2-7d4e-7a31-9b5f-2c8d4e6f8a10"}},"runtime.turn_engine_unavailable":{"value":{"type":"https://cmmd.ai/problems/runtime.turn_engine_unavailable","title":"Service Unavailable","status":503,"detail":"Sidekick is not available right now; try again in a minute","code":"runtime.turn_engine_unavailable","retryable":true,"request_id":"0199f1c2-7d4e-7a31-9b5f-2c8d4e6f8a10"}},"runtime.admission_unavailable":{"value":{"type":"https://cmmd.ai/problems/runtime.admission_unavailable","title":"Service Unavailable","status":503,"detail":"Sidekick cannot take your message right now; try again in a few seconds","code":"runtime.admission_unavailable","retryable":true,"request_id":"0199f1c2-7d4e-7a31-9b5f-2c8d4e6f8a10"}}}}}}}}},"/v2/sidekick/runs/{run_id}":{"patch":{"operationId":"TurnRuns_update","summary":"Stop an answer Sidekick is writing","description":"Needs the `sidekick.use` permission in the organization.","tags":["TurnRuns"],"security":[{"session":[],"organization":[]}],"parameters":[{"name":"run_id","in":"path","required":true,"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)$"}},{"name":"x-team-id","in":"header","required":false,"description":"One of the organization's active teams you are in, to filter by; missing, empty or `all` is every team.","schema":{"type":"string","pattern":"^([1-9][0-9]*|all)?$"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"type":"object","properties":{"status":{"type":"string","const":"cancelled"}},"required":["status"]}}}},"responses":{"200":{"description":"OK","content":{"application/json":{"schema":{"type":"object","properties":{"id":{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"},"conversation_id":{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"},"status":{"type":"string","enum":["queued","running","waiting_approval","waiting_input","cancelling","completed","failed","cancelled","expired"]},"stop_reason":{"anyOf":[{"type":"string","enum":["end_turn","error","user_cancel"]},{"type":"null"}]},"cancel_requested_at":{"anyOf":[{"type":"string","format":"date-time"},{"type":"null"}]},"created_at":{"type":"string","format":"date-time"},"finished_at":{"anyOf":[{"type":"string","format":"date-time"},{"type":"null"}]}},"required":["id","conversation_id","status","stop_reason","cancel_requested_at","created_at","finished_at"],"additionalProperties":false}}}},"400":{"description":"Bad Request","content":{"application/problem+json":{"schema":{"anyOf":[{"$ref":"#/components/schemas/Problem"},{"$ref":"#/components/schemas/InvalidInputProblem"}]},"examples":{"auth.organization_required":{"value":{"type":"https://cmmd.ai/problems/auth.organization_required","title":"Bad Request","status":400,"detail":"Choose an organization to continue","code":"auth.organization_required","request_id":"0199f1c2-7d4e-7a31-9b5f-2c8d4e6f8a10"}},"auth.invalid_team":{"value":{"type":"https://cmmd.ai/problems/auth.invalid_team","title":"Bad Request","status":400,"detail":"The selected team is not valid; choose another team or all teams","code":"auth.invalid_team","request_id":"0199f1c2-7d4e-7a31-9b5f-2c8d4e6f8a10"}},"pipeline.invalid_input":{"value":{"type":"https://cmmd.ai/problems/pipeline.invalid_input","title":"Bad Request","status":400,"detail":"Some fields are missing or not valid","code":"pipeline.invalid_input","details":{"errors":[{"pointer":"#/status","code":"invalid_value","values":["cancelled"],"detail":"Invalid input: expected \"cancelled\""}]},"request_id":"0199f1c2-7d4e-7a31-9b5f-2c8d4e6f8a10"}}}}}},"401":{"description":"Unauthorized","content":{"application/problem+json":{"schema":{"$ref":"#/components/schemas/Problem"},"examples":{"auth.unauthenticated":{"value":{"type":"https://cmmd.ai/problems/auth.unauthenticated","title":"Unauthorized","status":401,"detail":"Sign in to continue","code":"auth.unauthenticated","request_id":"0199f1c2-7d4e-7a31-9b5f-2c8d4e6f8a10"}}}}}},"403":{"description":"Forbidden","content":{"application/problem+json":{"schema":{"$ref":"#/components/schemas/Problem"},"examples":{"auth.not_a_member":{"value":{"type":"https://cmmd.ai/problems/auth.not_a_member","title":"Forbidden","status":403,"detail":"You are not an active member of this organization","code":"auth.not_a_member","request_id":"0199f1c2-7d4e-7a31-9b5f-2c8d4e6f8a10"}},"auth.not_a_team_member":{"value":{"type":"https://cmmd.ai/problems/auth.not_a_team_member","title":"Forbidden","status":403,"detail":"You are not a member of the selected team; choose another team or all teams","code":"auth.not_a_team_member","request_id":"0199f1c2-7d4e-7a31-9b5f-2c8d4e6f8a10"}},"auth.missing_permission":{"value":{"type":"https://cmmd.ai/problems/auth.missing_permission","title":"Forbidden","status":403,"detail":"You don't have permission to do this; ask an owner or an admin of your organization","code":"auth.missing_permission","details":{"permission":"sidekick.use"},"request_id":"0199f1c2-7d4e-7a31-9b5f-2c8d4e6f8a10"}},"auth.person_required":{"value":{"type":"https://cmmd.ai/problems/auth.person_required","title":"Forbidden","status":403,"detail":"Only a signed-in person can do this","code":"auth.person_required","request_id":"0199f1c2-7d4e-7a31-9b5f-2c8d4e6f8a10"}}}}}},"404":{"description":"Not Found","content":{"application/problem+json":{"schema":{"$ref":"#/components/schemas/Problem"},"examples":{"auth.team_not_found":{"value":{"type":"https://cmmd.ai/problems/auth.team_not_found","title":"Not Found","status":404,"detail":"The selected team was not found; choose another team or all teams","code":"auth.team_not_found","request_id":"0199f1c2-7d4e-7a31-9b5f-2c8d4e6f8a10"}},"runtime.run_not_found":{"value":{"type":"https://cmmd.ai/problems/runtime.run_not_found","title":"Not Found","status":404,"detail":"The Sidekick reply does not exist; send your message again","code":"runtime.run_not_found","details":{"run_id":"0199f1c2-8a11-7c3d-8e4f-5a6b7c8d9e01"},"request_id":"0199f1c2-7d4e-7a31-9b5f-2c8d4e6f8a10"}}}}}},"409":{"description":"Conflict","content":{"application/problem+json":{"schema":{"$ref":"#/components/schemas/Problem"},"examples":{"runtime.turn_changed":{"value":{"type":"https://cmmd.ai/problems/runtime.turn_changed","title":"Conflict","status":409,"detail":"This reply changed at the same time; try again","code":"runtime.turn_changed","details":{},"retryable":true,"request_id":"0199f1c2-7d4e-7a31-9b5f-2c8d4e6f8a10"}}}}}}}}}},"components":{"schemas":{"Problem":{"type":"object","properties":{"type":{"type":"string","format":"uri"},"title":{"type":"string"},"status":{"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991},"detail":{"type":"string"},"code":{"type":"string"},"details":{"type":"object","propertyNames":{"type":"string"},"additionalProperties":{}},"retryable":{"type":"boolean"},"request_id":{"type":"string"}},"required":["type","title","status","detail","code","request_id"],"additionalProperties":false},"InvalidInputProblem":{"type":"object","properties":{"type":{"type":"string","format":"uri"},"title":{"type":"string"},"status":{"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991},"detail":{"type":"string"},"code":{"type":"string","const":"pipeline.invalid_input"},"details":{"type":"object","properties":{"errors":{"type":"array","items":{"type":"object","properties":{"pointer":{"type":"string"},"code":{"type":"string"},"minimum":{"type":"number"},"maximum":{"type":"number"},"expected":{"type":"string"},"format":{"type":"string"},"values":{"type":"array","items":{}},"detail":{"type":"string"}},"required":["pointer","code","detail"],"additionalProperties":false}}},"required":["errors"],"additionalProperties":false},"retryable":{"type":"boolean"},"request_id":{"type":"string"}},"required":["type","title","status","detail","code","details","request_id"],"additionalProperties":false}},"securitySchemes":{"session":{"type":"apiKey","in":"cookie","name":"cmmd.sid","description":"CMMD's session cookie. Browsers do not let this page set it: sign in to CMMD on the same host, or set it in the developer tools; the browser then sends it."},"organization":{"type":"apiKey","in":"header","name":"x-organization-id","description":"The id of the organization the request acts in; you must be a member."},"agentToken":{"type":"http","scheme":"bearer","description":"An agent token, for AI clients: it acts for one person in one organization, so no organization header is sent."}}}}