{"openapi":"3.1.0","info":{"title":"FastAPI","version":"0.1.0"},"paths":{"/":{"get":{"summary":"Health","operationId":"health__get","responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}}}}},"/health/vector":{"get":{"summary":"Vector Health","operationId":"vector_health_health_vector_get","responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}}}}},"/vectorize/{customer}/{case}":{"get":{"summary":"Get Vectorize Case Status","operationId":"get_vectorize_case_status_vectorize__customer___case__get","parameters":[{"name":"customer","in":"path","required":true,"schema":{"type":"string","title":"Customer"}},{"name":"case","in":"path","required":true,"schema":{"type":"string","title":"Case"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/vectorize":{"post":{"summary":"Vectorize Cms Case","operationId":"vectorize_cms_case_vectorize_post","requestBody":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/VectorizeRequestBody"}}},"required":true},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/vectorize/{customer}/{id}":{"delete":{"summary":"Remove Vectorized Case","operationId":"remove_vectorized_case_vectorize__customer___id__delete","parameters":[{"name":"customer","in":"path","required":true,"schema":{"type":"string","title":"Customer"}},{"name":"id","in":"path","required":true,"schema":{"type":"string","title":"Id"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/vectorize_case_files":{"post":{"summary":"Vectorize Cms File","operationId":"vectorize_cms_file_vectorize_case_files_post","requestBody":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/VectorizeCaseFileRequestBody"}}},"required":true},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/batch_vectorize_cases":{"post":{"summary":"Batch Vectorize Cases","operationId":"batch_vectorize_cases_batch_vectorize_cases_post","requestBody":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/BatchVectorizeCasesRequestBody"}}},"required":true},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/combine_records":{"post":{"summary":"Combine Records","operationId":"combine_records_combine_records_post","requestBody":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/CombineRecordsRequestBody"}}},"required":true},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/agent/ross":{"post":{"summary":"Invoke Agent","operationId":"invoke_agent_agent_ross_post","requestBody":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/InvokeAgentRequestBody"}}},"required":true},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/AgentResponse"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/search":{"post":{"summary":"Use Ross","operationId":"use_ross_search_post","requestBody":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/SearchRequestBody"}}},"required":true},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/read-emails":{"post":{"summary":"Get Emails From Sender","operationId":"get_emails_from_sender_read_emails_post","requestBody":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/MailBoxReadRequestBody"}}},"required":true},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"items":{},"type":"array","title":"Response Get Emails From Sender Read Emails Post"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/google/exchange-code":{"post":{"summary":"Exchange Google Code","operationId":"exchange_google_code_google_exchange_code_post","requestBody":{"content":{"application/json":{"schema":{"additionalProperties":true,"type":"object","title":"Body"}}},"required":true},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/google/token":{"post":{"summary":"Google Access Token","operationId":"google_access_token_google_token_post","requestBody":{"content":{"application/json":{"schema":{"additionalProperties":true,"type":"object","title":"Body"}}},"required":true},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/migrate_data":{"post":{"summary":"Migrate Data","operationId":"migrate_data_migrate_data_post","requestBody":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/MigrateDataRequestBody"}}},"required":true},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/cms/download-public-drive":{"post":{"summary":"Download Public Drive","operationId":"download_public_drive_cms_download_public_drive_post","requestBody":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/DownloadRequest"}}},"required":true},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/cms/download-drive-content":{"post":{"summary":"Download Public Drive","operationId":"download_public_drive_cms_download_drive_content_post","requestBody":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/DownloadFilesRequest"}}},"required":true},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/cms/download-drive-content-status":{"post":{"summary":"Download Public Drive Status","operationId":"download_public_drive_status_cms_download_drive_content_status_post","requestBody":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/DownloadFilesRequest"}}},"required":true},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/cms/integrations":{"get":{"summary":"Get Integration Tokens","operationId":"get_integration_tokens_cms_integrations_get","responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}}}}},"/cms/drive-files-count":{"post":{"summary":"Get Drive Files Count Api","operationId":"get_drive_files_count_api_cms_drive_files_count_post","requestBody":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/DownloadFilesRequest"}}},"required":true},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/cms/list-files":{"post":{"summary":"List Files Api","operationId":"list_files_api_cms_list_files_post","requestBody":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/CMSFolderStructureRequest"}}},"required":true},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/microsoft/exchange-code":{"post":{"summary":"Exchange Microsoft Code","operationId":"exchange_microsoft_code_microsoft_exchange_code_post","requestBody":{"content":{"application/json":{"schema":{"additionalProperties":true,"type":"object","title":"Body"}}},"required":true},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/microsoft/token":{"post":{"summary":"Microsoft Access Token","operationId":"microsoft_access_token_microsoft_token_post","requestBody":{"content":{"application/json":{"schema":{"additionalProperties":true,"type":"object","title":"Body"}}},"required":true},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}}},"components":{"schemas":{"AgentResponse":{"properties":{"answer":{"type":"string","title":"Answer"},"sources":{"items":{"additionalProperties":true,"type":"object"},"type":"array","title":"Sources"},"followup_questions":{"items":{"type":"string"},"type":"array","title":"Followup Questions","default":[]}},"type":"object","required":["answer","sources"],"title":"AgentResponse"},"BatchVectorizeCasesRequestBody":{"properties":{"customer":{"type":"string","title":"Customer"},"cases":{"items":{"type":"string"},"type":"array","title":"Cases"},"features":{"anyOf":[{"items":{"type":"string","enum":["chronology","metadata"]},"type":"array"},{"type":"null"}],"title":"Features"},"vector_stores":{"anyOf":[{"items":{"type":"string","enum":["general","medical"]},"type":"array"},{"type":"null"}],"title":"Vector Stores"}},"type":"object","required":["customer","cases"],"title":"BatchVectorizeCasesRequestBody"},"CMSFolderStructureRequest":{"properties":{"customer":{"type":"string","title":"Customer","default":""},"caseId":{"type":"string","title":"Caseid","default":"00000"},"drive_type":{"type":"string","title":"Drive Type","default":"gdrive"},"refresh":{"type":"boolean","title":"Refresh","default":false}},"type":"object","title":"CMSFolderStructureRequest"},"CombineRecordsRequestBody":{"properties":{"customer":{"type":"string","title":"Customer"},"case":{"type":"string","title":"Case"},"type":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Type","default":"medical"}},"type":"object","required":["customer","case"],"title":"CombineRecordsRequestBody"},"DownloadFilesRequest":{"properties":{"customer":{"type":"string","title":"Customer","default":""},"caseId":{"type":"string","title":"Caseid","default":""},"drive":{"type":"string","title":"Drive","default":"gdrive"},"files":{"items":{},"type":"array","title":"Files","default":[]},"sync_all":{"type":"boolean","title":"Sync All","default":false},"folder_id":{"type":"string","title":"Folder Id","default":""}},"type":"object","title":"DownloadFilesRequest"},"DownloadRequest":{"properties":{"link":{"type":"string","title":"Link"},"customer":{"type":"string","title":"Customer"},"drive":{"type":"string","title":"Drive"},"caseId":{"type":"string","title":"Caseid"}},"type":"object","required":["link","customer","drive","caseId"],"title":"DownloadRequest"},"HTTPValidationError":{"properties":{"detail":{"items":{"$ref":"#/components/schemas/ValidationError"},"type":"array","title":"Detail"}},"type":"object","title":"HTTPValidationError"},"InvokeAgentRequestBody":{"properties":{"request":{"type":"string","title":"Request"},"customer":{"type":"string","title":"Customer"},"case":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Case"},"history":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"History","default":""},"stream":{"type":"boolean","title":"Stream","default":false},"client":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Client","default":"email"},"urgent":{"anyOf":[{"type":"boolean"},{"type":"null"}],"title":"Urgent","default":false}},"type":"object","required":["request","customer"],"title":"InvokeAgentRequestBody"},"MailBoxReadRequestBody":{"properties":{"email":{"items":{"type":"string"},"type":"array","title":"Email"}},"type":"object","required":["email"],"title":"MailBoxReadRequestBody"},"MigrateDataRequestBody":{"properties":{"migration_type":{"type":"string","title":"Migration Type"},"customer":{"type":"string","title":"Customer"},"cases":{"items":{"type":"string"},"type":"array","title":"Cases","default":[]}},"type":"object","required":["migration_type","customer"],"title":"MigrateDataRequestBody"},"SearchRequestBody":{"properties":{"message":{"type":"string","title":"Message"},"customer":{"type":"string","title":"Customer"},"case":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Case"},"history":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"History","default":""},"keywords":{"anyOf":[{"items":{"type":"string"},"type":"array"},{"type":"null"}],"title":"Keywords"},"file_types":{"anyOf":[{"items":{"type":"string"},"type":"array"},{"type":"null"}],"title":"File Types"}},"type":"object","required":["message","customer"],"title":"SearchRequestBody"},"ValidationError":{"properties":{"loc":{"items":{"anyOf":[{"type":"string"},{"type":"integer"}]},"type":"array","title":"Location"},"msg":{"type":"string","title":"Message"},"type":{"type":"string","title":"Error Type"}},"type":"object","required":["loc","msg","type"],"title":"ValidationError"},"VectorizeCaseFileRequestBody":{"properties":{"customer":{"type":"string","title":"Customer"},"case":{"type":"string","title":"Case"},"file_names":{"items":{"type":"string"},"type":"array","title":"File Names"},"features":{"anyOf":[{"items":{"type":"string","enum":["chronology","metadata"]},"type":"array"},{"type":"null"}],"title":"Features"},"vector_stores":{"anyOf":[{"items":{"type":"string","enum":["general","medical"]},"type":"array"},{"type":"null"}],"title":"Vector Stores"}},"type":"object","required":["customer","case","file_names"],"title":"VectorizeCaseFileRequestBody"},"VectorizeRequestBody":{"properties":{"customer":{"type":"string","title":"Customer"},"case":{"type":"string","title":"Case"},"features":{"anyOf":[{"items":{"type":"string","enum":["chronology","metadata"]},"type":"array"},{"type":"null"}],"title":"Features"},"vector_stores":{"anyOf":[{"items":{"type":"string","enum":["general","medical"]},"type":"array"},{"type":"null"}],"title":"Vector Stores"}},"type":"object","required":["customer","case"],"title":"VectorizeRequestBody"}}}}