{"openapi":"3.1.0","info":{"title":"voice_component — client application API","description":"API of the caretaker management application: caregivers, caretakers and their relatives, planned calls, and\nread access to conversations and what follows from them (utterances, topics, facts, health issues, matters).\n\n- **Access:** every call needs the header `Authorization: Bearer <password>` (for now a shared server password);\n  without it, or with a wrong password — 401.\n- **IDs:** the application assigns the IDs of caregivers, caretakers and relatives and sends them when adding\n  (POST); the server assigns the IDs of planned calls. `conversation_id` — a conversation stored on the server.\n- **Lists:** `{\"items\": [...]}`.\n- **Time:** dates `YYYY-MM-DD`, local time without a time zone `YYYY-MM-DDTHH:MM:SS`.\n- **Writes:** unknown fields in the body — 422; PUT replaces all the data, a field left out of the body becomes\n  empty.\n- **Errors:** `{\"detail\": \"...\"}`, and for validation errors (422) `{\"detail\": [...]}` with a list of errors.\n- **Language:** texts produced from conversations (descriptions, names, utterances) are in Polish.","version":"1"},"servers":[{"url":"/App"}],"paths":{"/v1/caregivers":{"get":{"tags":["caregivers"],"summary":"List Caregivers","description":"All caregivers, ordered by last name.","operationId":"list_caregivers_v1_caregivers_get","responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/CaregiverList"}}}},"401":{"description":"Missing or wrong access password"}},"security":[{"HTTPBearer":[]}]},"post":{"tags":["caregivers"],"summary":"Add Caregiver","description":"New caregiver with an ID assigned by the application; the caregiver's URL is in the Location header.","operationId":"add_caregiver_v1_caregivers_post","requestBody":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/Caregiver"}}},"required":true},"responses":{"201":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Caregiver"}}}},"401":{"description":"Missing or wrong access password"},"409":{"description":"A caregiver with this ID already exists"},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}},"security":[{"HTTPBearer":[]}]}},"/v1/caregivers/{caregiver_id}":{"get":{"tags":["caregivers"],"summary":"Get Caregiver","description":"The caregiver with the given ID.","operationId":"get_caregiver_v1_caregivers__caregiver_id__get","security":[{"HTTPBearer":[]}],"parameters":[{"name":"caregiver_id","in":"path","required":true,"schema":{"type":"string","title":"Caregiver Id"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Caregiver"}}}},"401":{"description":"Missing or wrong access password"},"404":{"description":"Caregiver not found"},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}},"put":{"tags":["caregivers"],"summary":"Update Caregiver","description":"Replaces the caregiver's data with the data sent — a field left out of the body becomes empty.","operationId":"update_caregiver_v1_caregivers__caregiver_id__put","security":[{"HTTPBearer":[]}],"parameters":[{"name":"caregiver_id","in":"path","required":true,"schema":{"type":"string","title":"Caregiver Id"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/CaregiverData"}}}},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Caregiver"}}}},"401":{"description":"Missing or wrong access password"},"404":{"description":"Caregiver not found"},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}},"delete":{"tags":["caregivers"],"summary":"Delete Caregiver","description":"Deletes the caregiver — only one who has no caretakers.","operationId":"delete_caregiver_v1_caregivers__caregiver_id__delete","security":[{"HTTPBearer":[]}],"parameters":[{"name":"caregiver_id","in":"path","required":true,"schema":{"type":"string","title":"Caregiver Id"}}],"responses":{"204":{"description":"Successful Response"},"401":{"description":"Missing or wrong access password"},"404":{"description":"Caregiver not found"},"409":{"description":"Caregiver has caretakers"},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/v1/caretakers":{"get":{"tags":["caretakers"],"summary":"List Caretakers","description":"Caretakers ordered by last name — all of them or, with caregiver_id, that caregiver's caretakers.","operationId":"list_caretakers_v1_caretakers_get","security":[{"HTTPBearer":[]}],"parameters":[{"name":"caregiver_id","in":"query","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Caregiver Id"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/CaretakerList"}}}},"401":{"description":"Missing or wrong access password"},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}},"post":{"tags":["caretakers"],"summary":"Add Caretaker","description":"New caretaker with an ID assigned by the application; the caretaker's URL is in the Location header.","operationId":"add_caretaker_v1_caretakers_post","security":[{"HTTPBearer":[]}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/Caretaker"}}}},"responses":{"201":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Caretaker"}}}},"401":{"description":"Missing or wrong access password"},"422":{"description":"Invalid data or unknown caregiver"},"502":{"description":"Data saved, but the caretaker profile could not be written"},"409":{"description":"A caretaker with this ID already exists, or the phone number belongs to another caretaker"}}}},"/v1/caretakers/{caretaker_id}":{"get":{"tags":["caretakers"],"summary":"Get Caretaker","description":"The caretaker with the given ID.","operationId":"get_caretaker_v1_caretakers__caretaker_id__get","security":[{"HTTPBearer":[]}],"parameters":[{"name":"caretaker_id","in":"path","required":true,"schema":{"type":"string","title":"Caretaker Id"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Caretaker"}}}},"401":{"description":"Missing or wrong access password"},"404":{"description":"Caretaker not found"},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}},"put":{"tags":["caretakers"],"summary":"Update Caretaker","description":"Replaces the caretaker's data with the data sent — a field left out of the body becomes empty.","operationId":"update_caretaker_v1_caretakers__caretaker_id__put","security":[{"HTTPBearer":[]}],"parameters":[{"name":"caretaker_id","in":"path","required":true,"schema":{"type":"string","title":"Caretaker Id"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/CaretakerData"}}}},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Caretaker"}}}},"401":{"description":"Missing or wrong access password"},"404":{"description":"Caretaker not found"},"422":{"description":"Invalid data or unknown caregiver"},"502":{"description":"Data saved, but the caretaker profile could not be written"},"409":{"description":"Phone number already belongs to another caretaker"}}},"delete":{"tags":["caretakers"],"summary":"Delete Caretaker","description":"Deletes the caretaker together with the conversation history and everything derived from it, surveys,\navailability rules, planned calls and links to relatives; a relative with no other links is deleted too.","operationId":"delete_caretaker_v1_caretakers__caretaker_id__delete","security":[{"HTTPBearer":[]}],"parameters":[{"name":"caretaker_id","in":"path","required":true,"schema":{"type":"string","title":"Caretaker Id"}}],"responses":{"204":{"description":"Successful Response"},"401":{"description":"Missing or wrong access password"},"404":{"description":"Caretaker not found"},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/v1/caretakers/{caretaker_id}/relatives":{"get":{"tags":["relatives"],"summary":"List Relatives","description":"The caretaker's relatives, ordered by last name.","operationId":"list_relatives_v1_caretakers__caretaker_id__relatives_get","security":[{"HTTPBearer":[]}],"parameters":[{"name":"caretaker_id","in":"path","required":true,"schema":{"type":"string","title":"Caretaker Id"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/RelativeList"}}}},"401":{"description":"Missing or wrong access password"},"404":{"description":"Caretaker not found"},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}},"post":{"tags":["relatives"],"summary":"Add Relative","description":"New relative of the caretaker (the person and the link in one transaction); the URL is in the Location header.","operationId":"add_relative_v1_caretakers__caretaker_id__relatives_post","security":[{"HTTPBearer":[]}],"parameters":[{"name":"caretaker_id","in":"path","required":true,"schema":{"type":"string","title":"Caretaker Id"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/Relative"}}}},"responses":{"201":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Relative"}}}},"401":{"description":"Missing or wrong access password"},"404":{"description":"Caretaker not found"},"409":{"description":"A relative with this ID already exists"},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/v1/caretakers/{caretaker_id}/relatives/{relative_id}":{"get":{"tags":["relatives"],"summary":"Get Relative","description":"The caretaker's relative with the given ID.","operationId":"get_relative_v1_caretakers__caretaker_id__relatives__relative_id__get","security":[{"HTTPBearer":[]}],"parameters":[{"name":"caretaker_id","in":"path","required":true,"schema":{"type":"string","title":"Caretaker Id"}},{"name":"relative_id","in":"path","required":true,"schema":{"type":"string","title":"Relative Id"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Relative"}}}},"401":{"description":"Missing or wrong access password"},"404":{"description":"Caretaker or relative not found"},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}},"put":{"tags":["relatives"],"summary":"Update Relative","description":"Replaces the relative's data and relation code — a field left out of the body becomes empty.","operationId":"update_relative_v1_caretakers__caretaker_id__relatives__relative_id__put","security":[{"HTTPBearer":[]}],"parameters":[{"name":"caretaker_id","in":"path","required":true,"schema":{"type":"string","title":"Caretaker Id"}},{"name":"relative_id","in":"path","required":true,"schema":{"type":"string","title":"Relative Id"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/RelativeData"}}}},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Relative"}}}},"401":{"description":"Missing or wrong access password"},"404":{"description":"Caretaker or relative not found"},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}},"delete":{"tags":["relatives"],"summary":"Delete Relative","description":"Removes the link between the relative and the caretaker; a relative with no other links is deleted too.","operationId":"delete_relative_v1_caretakers__caretaker_id__relatives__relative_id__delete","security":[{"HTTPBearer":[]}],"parameters":[{"name":"caretaker_id","in":"path","required":true,"schema":{"type":"string","title":"Caretaker Id"}},{"name":"relative_id","in":"path","required":true,"schema":{"type":"string","title":"Relative Id"}}],"responses":{"204":{"description":"Successful Response"},"401":{"description":"Missing or wrong access password"},"404":{"description":"Caretaker or relative not found"},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/v1/caretakers/{caretaker_id}/conversations":{"get":{"tags":["conversations"],"summary":"Caretaker Conversations","description":"The caretaker's conversations, newest first.","operationId":"caretaker_conversations_v1_caretakers__caretaker_id__conversations_get","security":[{"HTTPBearer":[]}],"parameters":[{"name":"caretaker_id","in":"path","required":true,"schema":{"type":"string","title":"Caretaker Id"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ConversationList"}}}},"401":{"description":"Missing or wrong access password"},"404":{"description":"Caretaker not found"},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/v1/conversations/{conversation_id}/utterances":{"get":{"tags":["conversations"],"summary":"Conversation Utterances","description":"Utterances of the conversation in the order they were said (without the model's reasoning).","operationId":"conversation_utterances_v1_conversations__conversation_id__utterances_get","security":[{"HTTPBearer":[]}],"parameters":[{"name":"conversation_id","in":"path","required":true,"schema":{"type":"string","title":"Conversation Id"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/UtteranceList"}}}},"401":{"description":"Missing or wrong access password"},"404":{"description":"Conversation not found"},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/v1/caretakers/{caretaker_id}/topics":{"get":{"tags":["conversation memory"],"summary":"Caretaker Topics","description":"Topics from all of the caretaker's conversations.","operationId":"caretaker_topics_v1_caretakers__caretaker_id__topics_get","security":[{"HTTPBearer":[]}],"parameters":[{"name":"caretaker_id","in":"path","required":true,"schema":{"type":"string","title":"Caretaker Id"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/TopicList"}}}},"401":{"description":"Missing or wrong access password"},"404":{"description":"Caretaker not found"},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/v1/caretakers/{caretaker_id}/facts":{"get":{"tags":["conversation memory"],"summary":"Caretaker Facts","description":"Facts from all of the caretaker's conversations.","operationId":"caretaker_facts_v1_caretakers__caretaker_id__facts_get","security":[{"HTTPBearer":[]}],"parameters":[{"name":"caretaker_id","in":"path","required":true,"schema":{"type":"string","title":"Caretaker Id"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/FactList"}}}},"401":{"description":"Missing or wrong access password"},"404":{"description":"Caretaker not found"},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/v1/caretakers/{caretaker_id}/health-issues":{"get":{"tags":["conversation memory"],"summary":"Caretaker Health Issues","description":"Health issues from all of the caretaker's conversations; within a conversation, most serious first.","operationId":"caretaker_health_issues_v1_caretakers__caretaker_id__health_issues_get","security":[{"HTTPBearer":[]}],"parameters":[{"name":"caretaker_id","in":"path","required":true,"schema":{"type":"string","title":"Caretaker Id"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HealthIssueList"}}}},"401":{"description":"Missing or wrong access password"},"404":{"description":"Caretaker not found"},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/v1/conversations/{conversation_id}/topics":{"get":{"tags":["conversation memory"],"summary":"Conversation Topics","description":"Topics of the conversation.","operationId":"conversation_topics_v1_conversations__conversation_id__topics_get","security":[{"HTTPBearer":[]}],"parameters":[{"name":"conversation_id","in":"path","required":true,"schema":{"type":"string","title":"Conversation Id"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/TopicList"}}}},"401":{"description":"Missing or wrong access password"},"404":{"description":"Conversation not found"},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/v1/conversations/{conversation_id}/facts":{"get":{"tags":["conversation memory"],"summary":"Conversation Facts","description":"Facts from the conversation.","operationId":"conversation_facts_v1_conversations__conversation_id__facts_get","security":[{"HTTPBearer":[]}],"parameters":[{"name":"conversation_id","in":"path","required":true,"schema":{"type":"string","title":"Conversation Id"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/FactList"}}}},"401":{"description":"Missing or wrong access password"},"404":{"description":"Conversation not found"},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/v1/conversations/{conversation_id}/health-issues":{"get":{"tags":["conversation memory"],"summary":"Conversation Health Issues","description":"Health issues from the conversation, most serious first.","operationId":"conversation_health_issues_v1_conversations__conversation_id__health_issues_get","security":[{"HTTPBearer":[]}],"parameters":[{"name":"conversation_id","in":"path","required":true,"schema":{"type":"string","title":"Conversation Id"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HealthIssueList"}}}},"401":{"description":"Missing or wrong access password"},"404":{"description":"Conversation not found"},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/v1/caretakers/{caretaker_id}/matters":{"get":{"tags":["matters"],"summary":"Caretaker Matters","description":"The caretaker's matters, most recently opened first; with status — only open or only closed ones.","operationId":"caretaker_matters_v1_caretakers__caretaker_id__matters_get","security":[{"HTTPBearer":[]}],"parameters":[{"name":"caretaker_id","in":"path","required":true,"schema":{"type":"string","title":"Caretaker Id"}},{"name":"status","in":"query","required":false,"schema":{"anyOf":[{"enum":["open","closed"],"type":"string"},{"type":"null"}],"title":"Status"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/MatterList"}}}},"401":{"description":"Missing or wrong access password"},"404":{"description":"Caretaker not found"},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/v1/conversations/{conversation_id}/matters":{"get":{"tags":["matters"],"summary":"Conversation Matters","description":"Matters the conversation contributed a step to, in order of opening.","operationId":"conversation_matters_v1_conversations__conversation_id__matters_get","security":[{"HTTPBearer":[]}],"parameters":[{"name":"conversation_id","in":"path","required":true,"schema":{"type":"string","title":"Conversation Id"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/MatterList"}}}},"401":{"description":"Missing or wrong access password"},"404":{"description":"Conversation not found"},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/v1/matters/{matter_id}":{"get":{"tags":["matters"],"summary":"Get Matter","description":"The matter with its steps.","operationId":"get_matter_v1_matters__matter_id__get","security":[{"HTTPBearer":[]}],"parameters":[{"name":"matter_id","in":"path","required":true,"schema":{"type":"string","title":"Matter Id"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/MatterDetail"}}}},"401":{"description":"Missing or wrong access password"},"404":{"description":"Matter not found"},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}},"patch":{"tags":["matters"],"summary":"Close Matter","description":"The caregiver closes the matter (caregiver_close_date) or reopens it (null); the time cannot be in the\nfuture or before the matter was opened.","operationId":"close_matter_v1_matters__matter_id__patch","security":[{"HTTPBearer":[]}],"parameters":[{"name":"matter_id","in":"path","required":true,"schema":{"type":"string","title":"Matter Id"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/MatterClosing"}}}},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/MatterDetail"}}}},"401":{"description":"Missing or wrong access password"},"404":{"description":"Matter not found"},"422":{"description":"Closing time in the future or before the opening"}}}},"/v1/caretakers/{caretaker_id}/planned-calls":{"get":{"tags":["planned calls"],"summary":"Caretaker Planned Calls","description":"The caretaker's planned calls, latest time first; with status — only those with that status.","operationId":"caretaker_planned_calls_v1_caretakers__caretaker_id__planned_calls_get","security":[{"HTTPBearer":[]}],"parameters":[{"name":"caretaker_id","in":"path","required":true,"schema":{"type":"string","title":"Caretaker Id"}},{"name":"status","in":"query","required":false,"schema":{"anyOf":[{"enum":["planned","done","missed"],"type":"string"},{"type":"null"}],"title":"Status"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/PlannedCallList"}}}},"401":{"description":"Missing or wrong access password"},"404":{"description":"Caretaker not found"},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}},"post":{"tags":["planned calls"],"summary":"Add Planned Call","description":"New planned call for the caretaker; the server assigns the ID, the plan's URL is in the Location header.","operationId":"add_planned_call_v1_caretakers__caretaker_id__planned_calls_post","security":[{"HTTPBearer":[]}],"parameters":[{"name":"caretaker_id","in":"path","required":true,"schema":{"type":"string","title":"Caretaker Id"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/PlannedCallData"}}}},"responses":{"201":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/PlannedCall"}}}},"401":{"description":"Missing or wrong access password"},"404":{"description":"Caretaker not found"},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/v1/planned-calls/{plannedcall_id}":{"get":{"tags":["planned calls"],"summary":"Get Planned Call","description":"The planned call with the given ID; the status is up to date (overdue plans are closed).","operationId":"get_planned_call_v1_planned_calls__plannedcall_id__get","security":[{"HTTPBearer":[]}],"parameters":[{"name":"plannedcall_id","in":"path","required":true,"schema":{"type":"string","title":"Plannedcall Id"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/PlannedCall"}}}},"401":{"description":"Missing or wrong access password"},"404":{"description":"Planned call not found"},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}},"put":{"tags":["planned calls"],"summary":"Update Planned Call","description":"Replaces the time and requests of a waiting plan — a field left out of the body becomes empty.","operationId":"update_planned_call_v1_planned_calls__plannedcall_id__put","security":[{"HTTPBearer":[]}],"parameters":[{"name":"plannedcall_id","in":"path","required":true,"schema":{"type":"string","title":"Plannedcall Id"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/PlannedCallData"}}}},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/PlannedCall"}}}},"401":{"description":"Missing or wrong access password"},"404":{"description":"Planned call not found"},"409":{"description":"The call has already taken place or was closed as missed"},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}},"delete":{"tags":["planned calls"],"summary":"Delete Planned Call","description":"Cancels a waiting plan.","operationId":"delete_planned_call_v1_planned_calls__plannedcall_id__delete","security":[{"HTTPBearer":[]}],"parameters":[{"name":"plannedcall_id","in":"path","required":true,"schema":{"type":"string","title":"Plannedcall Id"}}],"responses":{"204":{"description":"Successful Response"},"401":{"description":"Missing or wrong access password"},"404":{"description":"Planned call not found"},"409":{"description":"The call has already taken place or was closed as missed"},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/v1/relation-codes":{"get":{"tags":["dictionaries"],"summary":"Relation Codes","description":"Relation codes for the caretaker_relation_code field of a caretaker (who the caregiver is to them) and of\na relative (who the relative is to the caretaker), e.g. DAU — daughter.","operationId":"relation_codes_v1_relation_codes_get","responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/RelationCodeList"}}}},"401":{"description":"Missing or wrong access password"}},"security":[{"HTTPBearer":[]}]}},"/v1/relatives":{"get":{"tags":["relatives"],"summary":"List All Relatives","description":"Relatives of all caretakers, ordered by last name; a relative of several caretakers appears once for each.","operationId":"list_all_relatives_v1_relatives_get","responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/CaretakerRelativeList"}}}},"401":{"description":"Missing or wrong access password"}},"security":[{"HTTPBearer":[]}]}}},"components":{"schemas":{"Caregiver":{"properties":{"caregiver_id":{"type":"string","minLength":1,"title":"Caregiver Id","description":"Caregiver ID assigned by the application."},"first_name":{"type":"string","minLength":1,"title":"First Name","description":"First name."},"last_name":{"type":"string","minLength":1,"title":"Last Name","description":"Last name."},"gender":{"type":"integer","enum":[0,1,2,9],"title":"Gender","description":"Sex — ISO/IEC 5218 code: 0 not known, 1 male, 2 female, 9 not applicable."},"city":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"City","description":"Town or city where the caregiver lives."},"birth_date":{"anyOf":[{"type":"string","format":"date"},{"type":"null"}],"title":"Birth Date","description":"Date of birth."},"phone_number":{"anyOf":[{"type":"string","pattern":"^\\+[1-9]\\d{1,14}$","examples":["+48600100200"]},{"type":"null"}],"title":"Phone Number","description":"Phone number in E.164 format."}},"additionalProperties":false,"type":"object","required":["caregiver_id","first_name","last_name","gender"],"title":"Caregiver","description":"Caregiver with ID — POST body and responses."},"CaregiverData":{"properties":{"first_name":{"type":"string","minLength":1,"title":"First Name","description":"First name."},"last_name":{"type":"string","minLength":1,"title":"Last Name","description":"Last name."},"gender":{"type":"integer","enum":[0,1,2,9],"title":"Gender","description":"Sex — ISO/IEC 5218 code: 0 not known, 1 male, 2 female, 9 not applicable."},"city":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"City","description":"Town or city where the caregiver lives."},"birth_date":{"anyOf":[{"type":"string","format":"date"},{"type":"null"}],"title":"Birth Date","description":"Date of birth."},"phone_number":{"anyOf":[{"type":"string","pattern":"^\\+[1-9]\\d{1,14}$","examples":["+48600100200"]},{"type":"null"}],"title":"Phone Number","description":"Phone number in E.164 format."}},"additionalProperties":false,"type":"object","required":["first_name","last_name","gender"],"title":"CaregiverData","description":"Caregiver data — PUT body."},"CaregiverList":{"properties":{"items":{"items":{"$ref":"#/components/schemas/Caregiver"},"type":"array","title":"Items"}},"type":"object","required":["items"],"title":"CaregiverList"},"Caretaker":{"properties":{"caretaker_id":{"type":"string","minLength":1,"title":"Caretaker Id","description":"Caretaker ID assigned by the application."},"caregiver_id":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Caregiver Id","description":"The caretaker's caregiver — an ID from /App/v1/caregivers."},"caretaker_relation_code":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Caretaker Relation Code","description":"Who the caregiver is to the caretaker — a code from /App/v1/relation-codes (e.g. DAU — daughter)."},"first_name":{"type":"string","minLength":1,"title":"First Name","description":"First name."},"last_name":{"type":"string","minLength":1,"title":"Last Name","description":"Last name."},"gender":{"type":"integer","enum":[0,1,2,9],"title":"Gender","description":"Sex — ISO/IEC 5218 code: 0 not known, 1 male, 2 female, 9 not applicable."},"city":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"City","description":"Town or city where the caretaker lives."},"birth_date":{"type":"string","format":"date","title":"Birth Date","description":"Date of birth."},"phone_number":{"anyOf":[{"type":"string","pattern":"^\\+[1-9]\\d{1,14}$","examples":["+48600100200"]},{"type":"null"}],"title":"Phone Number","description":"Phone number in E.164 format — the server recognizes the caller by it."},"description_from_surveys":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Description From Surveys","description":"Profile from surveys — goes into the caretaker profile that conversations use."}},"additionalProperties":false,"type":"object","required":["caretaker_id","first_name","last_name","gender","birth_date"],"title":"Caretaker","description":"Caretaker with ID — POST body and responses."},"CaretakerData":{"properties":{"caregiver_id":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Caregiver Id","description":"The caretaker's caregiver — an ID from /App/v1/caregivers."},"caretaker_relation_code":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Caretaker Relation Code","description":"Who the caregiver is to the caretaker — a code from /App/v1/relation-codes (e.g. DAU — daughter)."},"first_name":{"type":"string","minLength":1,"title":"First Name","description":"First name."},"last_name":{"type":"string","minLength":1,"title":"Last Name","description":"Last name."},"gender":{"type":"integer","enum":[0,1,2,9],"title":"Gender","description":"Sex — ISO/IEC 5218 code: 0 not known, 1 male, 2 female, 9 not applicable."},"city":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"City","description":"Town or city where the caretaker lives."},"birth_date":{"type":"string","format":"date","title":"Birth Date","description":"Date of birth."},"phone_number":{"anyOf":[{"type":"string","pattern":"^\\+[1-9]\\d{1,14}$","examples":["+48600100200"]},{"type":"null"}],"title":"Phone Number","description":"Phone number in E.164 format — the server recognizes the caller by it."},"description_from_surveys":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Description From Surveys","description":"Profile from surveys — goes into the caretaker profile that conversations use."}},"additionalProperties":false,"type":"object","required":["first_name","last_name","gender","birth_date"],"title":"CaretakerData","description":"Caretaker data — PUT body."},"CaretakerList":{"properties":{"items":{"items":{"$ref":"#/components/schemas/Caretaker"},"type":"array","title":"Items"}},"type":"object","required":["items"],"title":"CaretakerList"},"CaretakerRelative":{"properties":{"caretaker_id":{"type":"string","title":"Caretaker Id","description":"The caretaker the relative belongs to."},"relative_id":{"type":"string","minLength":1,"title":"Relative Id","description":"Relative ID assigned by the application."},"caretaker_relation_code":{"type":"string","minLength":1,"title":"Caretaker Relation Code","description":"Who the relative is to the caretaker — a code from /App/v1/relation-codes (e.g. DAU — daughter)."},"first_name":{"type":"string","minLength":1,"title":"First Name","description":"First name."},"last_name":{"type":"string","minLength":1,"title":"Last Name","description":"Last name."},"gender":{"type":"integer","enum":[0,1,2,9],"title":"Gender","description":"Sex — ISO/IEC 5218 code: 0 not known, 1 male, 2 female, 9 not applicable."},"city":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"City","description":"Town or city where the relative lives."},"birth_date":{"anyOf":[{"type":"string","format":"date"},{"type":"null"}],"title":"Birth Date","description":"Date of birth."},"phone_number":{"anyOf":[{"type":"string","pattern":"^\\+[1-9]\\d{1,14}$","examples":["+48600100200"]},{"type":"null"}],"title":"Phone Number","description":"Phone number in E.164 format."}},"additionalProperties":false,"type":"object","required":["caretaker_id","relative_id","caretaker_relation_code","first_name","last_name","gender"],"title":"CaretakerRelative","description":"Relative with the caretaker they belong to — an item of the list of all relatives."},"CaretakerRelativeList":{"properties":{"items":{"items":{"$ref":"#/components/schemas/CaretakerRelative"},"type":"array","title":"Items"}},"type":"object","required":["items"],"title":"CaretakerRelativeList"},"Conversation":{"properties":{"conversation_id":{"type":"string","title":"Conversation Id","description":"Conversation ID."},"start_timestamp":{"type":"string","format":"date-time","title":"Start Timestamp","description":"Start of the conversation (local time)."},"duration_in_seconds":{"type":"number","title":"Duration In Seconds","description":"Duration of the conversation in seconds."},"caretaker_id":{"type":"string","title":"Caretaker Id","description":"The caretaker the conversation was with."},"health_status":{"anyOf":[{"type":"string","enum":["WHITE","GREEN","LIME","YELLOW","ORANGE","RED","BLACK"]},{"type":"null"}],"title":"Health Status","description":"The caretaker's health status in the conversation (conversation analysis), WHITE to BLACK; empty before analysis."}},"type":"object","required":["conversation_id","start_timestamp","duration_in_seconds","caretaker_id","health_status"],"title":"Conversation"},"ConversationList":{"properties":{"items":{"items":{"$ref":"#/components/schemas/Conversation"},"type":"array","title":"Items"}},"type":"object","required":["items"],"title":"ConversationList"},"Fact":{"properties":{"fact_id":{"type":"string","title":"Fact Id","description":"Fact ID."},"conversation_id":{"type":"string","title":"Conversation Id","description":"The conversation the fact comes from."},"name":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Name","description":"Fact name — always empty for now."},"description":{"type":"string","title":"Description","description":"The fact."},"importance_score":{"type":"integer","title":"Importance Score","description":"Importance of the fact for the caretaker's life, 1–100."},"utterance_id":{"type":"string","title":"Utterance Id","description":"The utterance the fact comes from."},"parent_fact_id":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Parent Fact Id","description":"Parent fact — the content of a supposition, opinion or hypothesis is a child fact with lower confidence."},"confidence":{"type":"integer","title":"Confidence","description":"Confidence of the fact, 0–100."},"decay_rate":{"type":"integer","title":"Decay Rate","description":"Half-life of the fact in days (follows from its importance)."}},"type":"object","required":["fact_id","conversation_id","name","description","importance_score","utterance_id","parent_fact_id","confidence","decay_rate"],"title":"Fact"},"FactList":{"properties":{"items":{"items":{"$ref":"#/components/schemas/Fact"},"type":"array","title":"Items"}},"type":"object","required":["items"],"title":"FactList"},"HTTPValidationError":{"properties":{"detail":{"items":{"$ref":"#/components/schemas/ValidationError"},"type":"array","title":"Detail"}},"type":"object","title":"HTTPValidationError"},"HealthIssue":{"properties":{"healthissue_id":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Healthissue Id","description":"Health issue ID — always empty for now."},"conversation_id":{"type":"string","title":"Conversation Id","description":"The conversation in which the caretaker talked about the issue."},"name":{"type":"string","title":"Name","description":"Short name of the issue."},"description":{"type":"string","title":"Description","description":"The caretaker's account: what happened, in what circumstances and since when."},"level":{"type":"string","enum":["WHITE","GREEN","LIME","YELLOW","ORANGE","RED","BLACK"],"title":"Level","description":"How serious the issue is, WHITE to BLACK."}},"type":"object","required":["healthissue_id","conversation_id","name","description","level"],"title":"HealthIssue"},"HealthIssueList":{"properties":{"items":{"items":{"$ref":"#/components/schemas/HealthIssue"},"type":"array","title":"Items"}},"type":"object","required":["items"],"title":"HealthIssueList"},"Matter":{"properties":{"matter_id":{"type":"string","title":"Matter Id","description":"Matter ID."},"caretaker_id":{"type":"string","title":"Caretaker Id","description":"The caretaker the matter concerns."},"parent_matter_id":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Parent Matter Id","description":"Parent matter (one level)."},"description":{"type":"string","title":"Description","description":"What the matter is about."},"summary":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Summary","description":"Course of the matter — a description for conversations, rewritten after every step."},"is_purchase":{"type":"boolean","title":"Is Purchase","description":"Purchase — something has to be bought or ordered, no matter who does it."},"is_reminder":{"type":"boolean","title":"Is Reminder","description":"Reminder — the Assistant is to remind the caretaker about the matter."},"is_request":{"type":"boolean","title":"Is Request","description":"Request — someone other than the Assistant is to do something for the caretaker."},"is_message":{"type":"boolean","title":"Is Message","description":"Message — the Assistant is to pass something on to a specific person."},"due_date":{"anyOf":[{"type":"string","format":"date"},{"type":"null"}],"title":"Due Date","description":"Due date."},"due_time":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Due Time","description":"Due time, HH:MM."},"recurrence":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Recurrence","description":"How the reminder repeats (text in Polish, e.g. „codziennie” — every day)."},"open_date":{"type":"string","format":"date-time","title":"Open Date","description":"Start of the conversation in which the matter was opened."},"close_date":{"anyOf":[{"type":"string","format":"date-time"},{"type":"null"}],"title":"Close Date","description":"Start of the conversation in which the analysis found the matter finished; empty — it has not."},"caregiver_close_date":{"anyOf":[{"type":"string","format":"date-time"},{"type":"null"}],"title":"Caregiver Close Date","description":"When the caregiver closed the matter (PATCH); empty — they have not."}},"type":"object","required":["matter_id","caretaker_id","parent_matter_id","description","summary","is_purchase","is_reminder","is_request","is_message","due_date","due_time","recurrence","open_date","close_date","caregiver_close_date"],"title":"Matter","description":"Matter; its kind is set by independent is_* flags — a matter with none of them is an ongoing matter."},"MatterClosing":{"properties":{"caregiver_close_date":{"anyOf":[{"type":"string","format":"date-time"},{"type":"null"}],"title":"Caregiver Close Date","description":"When the caregiver closed the matter — local time without a time zone, e.g. 2026-11-29T14:05:00; not in the future and not before the matter was opened. null reopens the matter."}},"additionalProperties":false,"type":"object","required":["caregiver_close_date"],"title":"MatterClosing","description":"PATCH body: the caregiver closes the matter; null reopens it."},"MatterDetail":{"properties":{"matter_id":{"type":"string","title":"Matter Id","description":"Matter ID."},"caretaker_id":{"type":"string","title":"Caretaker Id","description":"The caretaker the matter concerns."},"parent_matter_id":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Parent Matter Id","description":"Parent matter (one level)."},"description":{"type":"string","title":"Description","description":"What the matter is about."},"summary":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Summary","description":"Course of the matter — a description for conversations, rewritten after every step."},"is_purchase":{"type":"boolean","title":"Is Purchase","description":"Purchase — something has to be bought or ordered, no matter who does it."},"is_reminder":{"type":"boolean","title":"Is Reminder","description":"Reminder — the Assistant is to remind the caretaker about the matter."},"is_request":{"type":"boolean","title":"Is Request","description":"Request — someone other than the Assistant is to do something for the caretaker."},"is_message":{"type":"boolean","title":"Is Message","description":"Message — the Assistant is to pass something on to a specific person."},"due_date":{"anyOf":[{"type":"string","format":"date"},{"type":"null"}],"title":"Due Date","description":"Due date."},"due_time":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Due Time","description":"Due time, HH:MM."},"recurrence":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Recurrence","description":"How the reminder repeats (text in Polish, e.g. „codziennie” — every day)."},"open_date":{"type":"string","format":"date-time","title":"Open Date","description":"Start of the conversation in which the matter was opened."},"close_date":{"anyOf":[{"type":"string","format":"date-time"},{"type":"null"}],"title":"Close Date","description":"Start of the conversation in which the analysis found the matter finished; empty — it has not."},"caregiver_close_date":{"anyOf":[{"type":"string","format":"date-time"},{"type":"null"}],"title":"Caregiver Close Date","description":"When the caregiver closed the matter (PATCH); empty — they have not."},"matter_items":{"items":{"$ref":"#/components/schemas/MatterItem"},"type":"array","title":"Matter Items","description":"Steps of the matter in conversation order."}},"type":"object","required":["matter_id","caretaker_id","parent_matter_id","description","summary","is_purchase","is_reminder","is_request","is_message","due_date","due_time","recurrence","open_date","close_date","caregiver_close_date","matter_items"],"title":"MatterDetail"},"MatterItem":{"properties":{"conversation_id":{"type":"string","title":"Conversation Id","description":"The conversation that contributed the step."},"description":{"type":"string","title":"Description","description":"What the conversation contributed to the matter."}},"type":"object","required":["conversation_id","description"],"title":"MatterItem","description":"Matter step — what a conversation contributed to the matter."},"MatterList":{"properties":{"items":{"items":{"$ref":"#/components/schemas/Matter"},"type":"array","title":"Items"}},"type":"object","required":["items"],"title":"MatterList"},"PlannedCall":{"properties":{"plannedcall_id":{"type":"string","title":"Plannedcall Id","description":"Plan ID assigned by the server."},"caretaker_id":{"type":"string","title":"Caretaker Id","description":"The caretaker to be called."},"source_conversation_id":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Source Conversation Id","description":"The conversation whose analysis set the time; empty — a plan added by the application."},"conversation_id":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Conversation Id","description":"The conversation that closed the plan (status done)."},"planned_time":{"type":"string","format":"date-time","title":"Planned Time","description":"Time of the call (local time)."},"status":{"type":"string","enum":["planned","done","missed"],"title":"Status","description":"planned — waiting, done — the call took place, missed — it did not."},"attempts":{"type":"integer","title":"Attempts","description":"Number of call attempts (not used yet — always 0)."},"last_attempt_time":{"anyOf":[{"type":"string","format":"date-time"},{"type":"null"}],"title":"Last Attempt Time","description":"Time of the last call attempt (not used yet)."},"requested_topics":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Requested Topics","description":"Requested topics of the call (one paragraph — one topic)."},"requested_points":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Requested Points","description":"Requested points of the call (one paragraph — one point)."}},"type":"object","required":["plannedcall_id","caretaker_id","source_conversation_id","conversation_id","planned_time","status","attempts","last_attempt_time","requested_topics","requested_points"],"title":"PlannedCall"},"PlannedCallData":{"properties":{"planned_time":{"type":"string","format":"date-time","title":"Planned Time","description":"Time of the call — local time without a time zone, e.g. 2026-12-01T10:00:00."},"requested_topics":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Requested Topics","description":"Requested topics of the call; a paragraph (blank line) separates one topic from the next."},"requested_points":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Requested Points","description":"Requested points of the call; a paragraph (blank line) separates one point from the next."}},"additionalProperties":false,"type":"object","required":["planned_time"],"title":"PlannedCallData","description":"Time and requests — POST and PUT body."},"PlannedCallList":{"properties":{"items":{"items":{"$ref":"#/components/schemas/PlannedCall"},"type":"array","title":"Items"}},"type":"object","required":["items"],"title":"PlannedCallList"},"RelationCode":{"properties":{"code":{"type":"string","title":"Code","description":"Relation code (HL7 v3 RoleCode), e.g. DAU."},"name":{"type":"string","title":"Name","description":"Name in Polish, e.g. córka (daughter)."}},"type":"object","required":["code","name"],"title":"RelationCode"},"RelationCodeList":{"properties":{"items":{"items":{"$ref":"#/components/schemas/RelationCode"},"type":"array","title":"Items"}},"type":"object","required":["items"],"title":"RelationCodeList"},"Relative":{"properties":{"relative_id":{"type":"string","minLength":1,"title":"Relative Id","description":"Relative ID assigned by the application."},"caretaker_relation_code":{"type":"string","minLength":1,"title":"Caretaker Relation Code","description":"Who the relative is to the caretaker — a code from /App/v1/relation-codes (e.g. DAU — daughter)."},"first_name":{"type":"string","minLength":1,"title":"First Name","description":"First name."},"last_name":{"type":"string","minLength":1,"title":"Last Name","description":"Last name."},"gender":{"type":"integer","enum":[0,1,2,9],"title":"Gender","description":"Sex — ISO/IEC 5218 code: 0 not known, 1 male, 2 female, 9 not applicable."},"city":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"City","description":"Town or city where the relative lives."},"birth_date":{"anyOf":[{"type":"string","format":"date"},{"type":"null"}],"title":"Birth Date","description":"Date of birth."},"phone_number":{"anyOf":[{"type":"string","pattern":"^\\+[1-9]\\d{1,14}$","examples":["+48600100200"]},{"type":"null"}],"title":"Phone Number","description":"Phone number in E.164 format."}},"additionalProperties":false,"type":"object","required":["relative_id","caretaker_relation_code","first_name","last_name","gender"],"title":"Relative","description":"Relative with ID — POST body and responses."},"RelativeData":{"properties":{"caretaker_relation_code":{"type":"string","minLength":1,"title":"Caretaker Relation Code","description":"Who the relative is to the caretaker — a code from /App/v1/relation-codes (e.g. DAU — daughter)."},"first_name":{"type":"string","minLength":1,"title":"First Name","description":"First name."},"last_name":{"type":"string","minLength":1,"title":"Last Name","description":"Last name."},"gender":{"type":"integer","enum":[0,1,2,9],"title":"Gender","description":"Sex — ISO/IEC 5218 code: 0 not known, 1 male, 2 female, 9 not applicable."},"city":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"City","description":"Town or city where the relative lives."},"birth_date":{"anyOf":[{"type":"string","format":"date"},{"type":"null"}],"title":"Birth Date","description":"Date of birth."},"phone_number":{"anyOf":[{"type":"string","pattern":"^\\+[1-9]\\d{1,14}$","examples":["+48600100200"]},{"type":"null"}],"title":"Phone Number","description":"Phone number in E.164 format."}},"additionalProperties":false,"type":"object","required":["caretaker_relation_code","first_name","last_name","gender"],"title":"RelativeData","description":"Relative data and relation code — PUT body."},"RelativeList":{"properties":{"items":{"items":{"$ref":"#/components/schemas/Relative"},"type":"array","title":"Items"}},"type":"object","required":["items"],"title":"RelativeList"},"Topic":{"properties":{"topic_id":{"type":"string","title":"Topic Id","description":"Topic ID."},"conversation_id":{"type":"string","title":"Conversation Id","description":"The conversation the topic came up in."},"name":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Name","description":"Topic name — always empty for now."},"description":{"type":"string","title":"Description","description":"What the topic was about."}},"type":"object","required":["topic_id","conversation_id","name","description"],"title":"Topic"},"TopicList":{"properties":{"items":{"items":{"$ref":"#/components/schemas/Topic"},"type":"array","title":"Items"}},"type":"object","required":["items"],"title":"TopicList"},"Utterance":{"properties":{"utterance_id":{"type":"string","title":"Utterance Id","description":"Utterance ID."},"conversation_id":{"type":"string","title":"Conversation Id","description":"The conversation the utterance belongs to."},"speaker_role":{"type":"string","enum":["Agent","Human"],"title":"Speaker Role","description":"Who is speaking: Agent — the Assistant, Human — the caretaker."},"text_content":{"type":"string","title":"Text Content","description":"Text of the utterance."},"start_timestamp":{"type":"string","format":"date-time","title":"Start Timestamp","description":"Start of the utterance (local time)."},"duration_in_seconds":{"type":"number","title":"Duration In Seconds","description":"Duration of the utterance in seconds."}},"type":"object","required":["utterance_id","conversation_id","speaker_role","text_content","start_timestamp","duration_in_seconds"],"title":"Utterance"},"UtteranceList":{"properties":{"items":{"items":{"$ref":"#/components/schemas/Utterance"},"type":"array","title":"Items"}},"type":"object","required":["items"],"title":"UtteranceList"},"ValidationError":{"properties":{"loc":{"items":{"anyOf":[{"type":"string"},{"type":"integer"}]},"type":"array","title":"Location"},"msg":{"type":"string","title":"Message"},"type":{"type":"string","title":"Error Type"},"input":{"title":"Input"},"ctx":{"type":"object","title":"Context"}},"type":"object","required":["loc","msg","type"],"title":"ValidationError"}},"securitySchemes":{"HTTPBearer":{"type":"http","description":"Shared password from the server variable ACCESS_PASSWORD","scheme":"bearer"}}},"tags":[{"name":"caregivers","description":"Caregivers — the people who look after caretakers."},{"name":"caretakers","description":"Caretakers — the people the Assistant talks to."},{"name":"relatives","description":"The caretaker's relatives (family, friends) with a relation code."},{"name":"conversations","description":"The caretaker's conversations and their utterances — read only."},{"name":"conversation memory","description":"Topics, facts and health issues from conversations — computed by conversation analysis; read only."},{"name":"matters","description":"The caretaker's matters from conversations (ongoing, purchases, reminders, requests, messages) — read, and closing by the caregiver."},{"name":"planned calls","description":"The caretaker's planned calls — time and requested topics."},{"name":"dictionaries","description":"Dictionaries of field values."}]}