{"openapi":"3.1.0","info":{"title":"File Manager System","description":"Agentic AI Platform","version":"3.0.2"},"paths":{"/api/v1/workspaces":{"get":{"tags":["deal-workspaces"],"summary":"List Workspaces","operationId":"list_workspaces_api_v1_workspaces_get","responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"items":{"$ref":"#/components/schemas/DealWorkspaceResponse"},"type":"array","title":"Response List Workspaces Api V1 Workspaces Get"}}}}},"security":[{"HTTPBearer":[]}]},"post":{"tags":["deal-workspaces"],"summary":"Create Workspace","operationId":"create_workspace_api_v1_workspaces_post","requestBody":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/CreateDealWorkspaceRequest"}}},"required":true},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/DealWorkspaceResponse"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}},"security":[{"HTTPBearer":[]}]}},"/api/v1/workspaces/{deal_workspace_id}":{"get":{"tags":["deal-workspaces"],"summary":"Get Workspace","operationId":"get_workspace_api_v1_workspaces__deal_workspace_id__get","security":[{"HTTPBearer":[]}],"parameters":[{"name":"deal_workspace_id","in":"path","required":true,"schema":{"type":"string","title":"Deal Workspace Id"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/DealWorkspaceResponse"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}},"patch":{"tags":["deal-workspaces"],"summary":"Update Workspace","operationId":"update_workspace_api_v1_workspaces__deal_workspace_id__patch","security":[{"HTTPBearer":[]}],"parameters":[{"name":"deal_workspace_id","in":"path","required":true,"schema":{"type":"string","title":"Deal Workspace Id"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/UpdateDealWorkspaceRequest"}}}},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/DealWorkspaceResponse"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}},"delete":{"tags":["deal-workspaces"],"summary":"Delete Workspace Permanently","description":"Hide the workspace at once and remove everything it owns in the background; asking again re-runs a purge.","operationId":"delete_workspace_permanently_api_v1_workspaces__deal_workspace_id__delete","security":[{"HTTPBearer":[]}],"parameters":[{"name":"deal_workspace_id","in":"path","required":true,"schema":{"type":"string","title":"Deal Workspace Id"}}],"responses":{"202":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/WorkspaceDeletionResponse"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/v1/workspaces/{deal_workspace_id}/archive":{"post":{"tags":["deal-workspaces"],"summary":"Archive Workspace","operationId":"archive_workspace_api_v1_workspaces__deal_workspace_id__archive_post","security":[{"HTTPBearer":[]}],"parameters":[{"name":"deal_workspace_id","in":"path","required":true,"schema":{"type":"string","title":"Deal Workspace Id"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/DealWorkspaceResponse"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/v1/workspaces/{deal_workspace_id}/unarchive":{"post":{"tags":["deal-workspaces"],"summary":"Unarchive Workspace","operationId":"unarchive_workspace_api_v1_workspaces__deal_workspace_id__unarchive_post","security":[{"HTTPBearer":[]}],"parameters":[{"name":"deal_workspace_id","in":"path","required":true,"schema":{"type":"string","title":"Deal Workspace Id"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/DealWorkspaceResponse"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/v1/workspaces/{deal_workspace_id}/logo":{"put":{"tags":["deal-workspaces"],"summary":"Set Workspace Icon Logo","operationId":"set_workspace_icon_logo_api_v1_workspaces__deal_workspace_id__logo_put","security":[{"HTTPBearer":[]}],"parameters":[{"name":"deal_workspace_id","in":"path","required":true,"schema":{"type":"string","title":"Deal Workspace Id"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/SetWorkspaceIconLogoRequest"}}}},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/DealWorkspaceResponse"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}},"delete":{"tags":["deal-workspaces"],"summary":"Remove Workspace Logo","operationId":"remove_workspace_logo_api_v1_workspaces__deal_workspace_id__logo_delete","security":[{"HTTPBearer":[]}],"parameters":[{"name":"deal_workspace_id","in":"path","required":true,"schema":{"type":"string","title":"Deal Workspace Id"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/DealWorkspaceResponse"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/v1/workspaces/{deal_workspace_id}/logo/image":{"put":{"tags":["deal-workspaces"],"summary":"Upload Workspace Logo Image","operationId":"upload_workspace_logo_image_api_v1_workspaces__deal_workspace_id__logo_image_put","security":[{"HTTPBearer":[]}],"parameters":[{"name":"deal_workspace_id","in":"path","required":true,"schema":{"type":"string","title":"Deal Workspace Id"}}],"requestBody":{"required":true,"content":{"multipart/form-data":{"schema":{"$ref":"#/components/schemas/Body_upload_workspace_logo_image_api_v1_workspaces__deal_workspace_id__logo_image_put"}}}},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/DealWorkspaceResponse"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}},"get":{"tags":["deal-workspaces"],"summary":"Get Workspace Logo Image","operationId":"get_workspace_logo_image_api_v1_workspaces__deal_workspace_id__logo_image_get","security":[{"HTTPBearer":[]}],"parameters":[{"name":"deal_workspace_id","in":"path","required":true,"schema":{"type":"string","title":"Deal Workspace Id"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/v1/workspaces/{deal_workspace_id}/activity":{"get":{"tags":["deal-workspaces"],"summary":"List Workspace Activity","operationId":"list_workspace_activity_api_v1_workspaces__deal_workspace_id__activity_get","security":[{"HTTPBearer":[]}],"parameters":[{"name":"deal_workspace_id","in":"path","required":true,"schema":{"type":"string","title":"Deal Workspace Id"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/v1/workspaces/{deal_workspace_id}/validate-workflow-start":{"post":{"tags":["deal-workspaces"],"summary":"Validate Workflow Start Public Alias","operationId":"validate_workflow_start_public_alias_api_v1_workspaces__deal_workspace_id__validate_workflow_start_post","security":[{"HTTPBearer":[]}],"parameters":[{"name":"deal_workspace_id","in":"path","required":true,"schema":{"type":"string","title":"Deal Workspace Id"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/v1/internal/workspaces/{deal_workspace_id}/validate-workflow-start":{"post":{"tags":["internal-workspaces"],"summary":"Validate Workflow Start","operationId":"validate_workflow_start_api_v1_internal_workspaces__deal_workspace_id__validate_workflow_start_post","security":[{"HTTPBearer":[]}],"parameters":[{"name":"deal_workspace_id","in":"path","required":true,"schema":{"type":"string","title":"Deal Workspace Id"}}],"requestBody":{"content":{"application/json":{"schema":{"anyOf":[{"$ref":"#/components/schemas/ValidateDealWorkspaceRequest"},{"type":"null"}],"title":"Payload"}}}},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ValidatedDealWorkspaceResponse"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/v1/internal/workspaces/{deal_workspace_id}/validate-workflow-read":{"post":{"tags":["internal-workspaces"],"summary":"Validate Workflow Read","operationId":"validate_workflow_read_api_v1_internal_workspaces__deal_workspace_id__validate_workflow_read_post","security":[{"HTTPBearer":[]}],"parameters":[{"name":"deal_workspace_id","in":"path","required":true,"schema":{"type":"string","title":"Deal Workspace Id"}}],"requestBody":{"content":{"application/json":{"schema":{"anyOf":[{"$ref":"#/components/schemas/ValidateDealWorkspaceRequest"},{"type":"null"}],"title":"Payload"}}}},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ValidatedDealWorkspaceResponse"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/v1/memory/firm-rules":{"get":{"tags":["memory"],"summary":"Get Firm Rules","operationId":"get_firm_rules_api_v1_memory_firm_rules_get","responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/FirmRules"}}}}},"security":[{"HTTPBearer":[]}]},"put":{"tags":["memory"],"summary":"Put Firm Rules","operationId":"put_firm_rules_api_v1_memory_firm_rules_put","requestBody":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/SaveFirmRulesRequest"}}},"required":true},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/FirmRules"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}},"security":[{"HTTPBearer":[]}]}},"/api/v1/memory":{"get":{"tags":["memory"],"summary":"List Memories","operationId":"list_memories_api_v1_memory_get","security":[{"HTTPBearer":[]}],"parameters":[{"name":"scope","in":"query","required":true,"schema":{"enum":["deal","user"],"type":"string","title":"Scope"}},{"name":"deal_workspace_id","in":"query","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Deal Workspace Id"}},{"name":"status","in":"query","required":false,"schema":{"enum":["active","archived"],"type":"string","default":"active","title":"Status"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"type":"array","items":{"$ref":"#/components/schemas/MemoryListItem"},"title":"Response List Memories Api V1 Memory Get"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}},"post":{"tags":["memory"],"summary":"Create Memory","operationId":"create_memory_api_v1_memory_post","security":[{"HTTPBearer":[]}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/CreateMemoryRequest"}}}},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"type":"object","additionalProperties":true,"title":"Response Create Memory Api V1 Memory Post"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/v1/memory/{memory_id}":{"get":{"tags":["memory"],"summary":"Get Memory","operationId":"get_memory_api_v1_memory__memory_id__get","security":[{"HTTPBearer":[]}],"parameters":[{"name":"memory_id","in":"path","required":true,"schema":{"type":"string","title":"Memory Id"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"type":"object","additionalProperties":true,"title":"Response Get Memory Api V1 Memory  Memory Id  Get"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}},"patch":{"tags":["memory"],"summary":"Update Memory","operationId":"update_memory_api_v1_memory__memory_id__patch","security":[{"HTTPBearer":[]}],"parameters":[{"name":"memory_id","in":"path","required":true,"schema":{"type":"string","title":"Memory Id"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/UpdateMemoryRequest"}}}},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"type":"object","additionalProperties":true,"title":"Response Update Memory Api V1 Memory  Memory Id  Patch"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/v1/memory/{memory_id}/archive":{"post":{"tags":["memory"],"summary":"Archive Memory","operationId":"archive_memory_api_v1_memory__memory_id__archive_post","security":[{"HTTPBearer":[]}],"parameters":[{"name":"memory_id","in":"path","required":true,"schema":{"type":"string","title":"Memory Id"}}],"requestBody":{"content":{"application/json":{"schema":{"anyOf":[{"$ref":"#/components/schemas/ArchiveMemoryRequest"},{"type":"null"}],"title":"Payload"}}}},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"type":"object","additionalProperties":true,"title":"Response Archive Memory Api V1 Memory  Memory Id  Archive Post"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/v1/memory/{memory_id}/restore":{"post":{"tags":["memory"],"summary":"Restore Memory","operationId":"restore_memory_api_v1_memory__memory_id__restore_post","security":[{"HTTPBearer":[]}],"parameters":[{"name":"memory_id","in":"path","required":true,"schema":{"type":"string","title":"Memory Id"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"type":"object","additionalProperties":true,"title":"Response Restore Memory Api V1 Memory  Memory Id  Restore Post"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/v1/profile":{"get":{"tags":["profile"],"summary":"Get Profile","operationId":"get_profile_api_v1_profile_get","responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ProfileView"}}}}},"security":[{"HTTPBearer":[]}]},"patch":{"tags":["profile"],"summary":"Change Profile","operationId":"change_profile_api_v1_profile_patch","requestBody":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ProfileChanges"}}},"required":true},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ProfileView"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}},"security":[{"HTTPBearer":[]}]}},"/api/v1/profile/voice/mails":{"post":{"tags":["profile"],"summary":"Learn From Mails","operationId":"learn_from_mails_api_v1_profile_voice_mails_post","requestBody":{"content":{"multipart/form-data":{"schema":{"$ref":"#/components/schemas/Body_learn_from_mails_api_v1_profile_voice_mails_post"}}}},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ProfileView"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}},"security":[{"HTTPBearer":[]}]}},"/api/v1/profile/voice":{"delete":{"tags":["profile"],"summary":"Start Voice Over","operationId":"start_voice_over_api_v1_profile_voice_delete","responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ProfileView"}}}}},"security":[{"HTTPBearer":[]}]}},"/api/v1/workspaces/{deal_workspace_id}/files/{file_id}/download":{"get":{"tags":["file-manager"],"summary":"Download Workspace File","operationId":"download_workspace_file_api_v1_workspaces__deal_workspace_id__files__file_id__download_get","security":[{"HTTPBearer":[]}],"parameters":[{"name":"deal_workspace_id","in":"path","required":true,"schema":{"type":"string","title":"Deal Workspace Id"}},{"name":"file_id","in":"path","required":true,"schema":{"type":"string","title":"File Id"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/v1/files/{file_entry_id}/download":{"get":{"tags":["file-manager"],"summary":"Download Global File","operationId":"download_global_file_api_v1_files__file_entry_id__download_get","security":[{"HTTPBearer":[]}],"parameters":[{"name":"file_entry_id","in":"path","required":true,"schema":{"type":"string","title":"File Entry Id"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/v1/workspaces/{deal_workspace_id}/files/import-drive":{"post":{"tags":["file-manager"],"summary":"Import Workspace Drive Files","operationId":"import_workspace_drive_files_api_v1_workspaces__deal_workspace_id__files_import_drive_post","security":[{"HTTPBearer":[]}],"parameters":[{"name":"deal_workspace_id","in":"path","required":true,"schema":{"type":"string","title":"Deal Workspace Id"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/WorkspaceDriveImportRequest"}}}},"responses":{"202":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/v1/workspaces/{deal_workspace_id}/files/import-drive/stream":{"get":{"tags":["file-manager"],"summary":"Stream Drive Import Progress","operationId":"stream_drive_import_progress_api_v1_workspaces__deal_workspace_id__files_import_drive_stream_get","security":[{"HTTPBearer":[]}],"parameters":[{"name":"deal_workspace_id","in":"path","required":true,"schema":{"type":"string","title":"Deal Workspace Id"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/v1/workspaces/{deal_workspace_id}/files/{file_id}/rename":{"put":{"tags":["file-manager"],"summary":"Rename Workspace File","operationId":"rename_workspace_file_api_v1_workspaces__deal_workspace_id__files__file_id__rename_put","security":[{"HTTPBearer":[]}],"parameters":[{"name":"deal_workspace_id","in":"path","required":true,"schema":{"type":"string","title":"Deal Workspace Id"}},{"name":"file_id","in":"path","required":true,"schema":{"type":"string","title":"File Id"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/RenameRequest"}}}},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/S3EntryResponse"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/v1/workspaces/{deal_workspace_id}/files/{file_id}":{"delete":{"tags":["file-manager"],"summary":"Delete Workspace File","operationId":"delete_workspace_file_api_v1_workspaces__deal_workspace_id__files__file_id__delete","security":[{"HTTPBearer":[]}],"parameters":[{"name":"deal_workspace_id","in":"path","required":true,"schema":{"type":"string","title":"Deal Workspace Id"}},{"name":"file_id","in":"path","required":true,"schema":{"type":"string","title":"File Id"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/v1/workspaces/{deal_workspace_id}/artifacts":{"get":{"tags":["artifact-service"],"summary":"List Workspace Generated Artifacts","operationId":"list_workspace_generated_artifacts_api_v1_workspaces__deal_workspace_id__artifacts_get","security":[{"HTTPBearer":[]}],"parameters":[{"name":"deal_workspace_id","in":"path","required":true,"schema":{"type":"string","title":"Deal Workspace Id"}},{"name":"limit","in":"query","required":false,"schema":{"type":"integer","maximum":500,"minimum":1,"description":"Maximum generated artifact files to return","default":100,"title":"Limit"},"description":"Maximum generated artifact files to return"},{"name":"category","in":"query","required":false,"schema":{"type":"string","description":"Generated artifact category id or all","default":"all","title":"Category"},"description":"Generated artifact category id or all"}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/GeneratedArtifactsResponse"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/v1/workspaces/{deal_workspace_id}/artifacts/{artifact_id}":{"get":{"tags":["artifact-service"],"summary":"Get Workspace Generated Artifact","operationId":"get_workspace_generated_artifact_api_v1_workspaces__deal_workspace_id__artifacts__artifact_id__get","security":[{"HTTPBearer":[]}],"parameters":[{"name":"deal_workspace_id","in":"path","required":true,"schema":{"type":"string","title":"Deal Workspace Id"}},{"name":"artifact_id","in":"path","required":true,"schema":{"type":"string","title":"Artifact Id"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/v1/workspaces/{deal_workspace_id}/artifacts/generated/intents":{"post":{"tags":["artifact-service"],"summary":"Create Workspace Generated Artifact Intent","operationId":"create_workspace_generated_artifact_intent_api_v1_workspaces__deal_workspace_id__artifacts_generated_intents_post","security":[{"HTTPBearer":[]}],"parameters":[{"name":"deal_workspace_id","in":"path","required":true,"schema":{"type":"string","title":"Deal Workspace Id"}},{"name":"Idempotency-Key","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Idempotency-Key"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/CreateGeneratedArtifactIntentRequest"}}}},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/GeneratedArtifactIntentResponse"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/v1/workspaces/{deal_workspace_id}/artifacts/generated/{artifact_id}/complete":{"post":{"tags":["artifact-service"],"summary":"Complete Workspace Generated Artifact","operationId":"complete_workspace_generated_artifact_api_v1_workspaces__deal_workspace_id__artifacts_generated__artifact_id__complete_post","security":[{"HTTPBearer":[]}],"parameters":[{"name":"deal_workspace_id","in":"path","required":true,"schema":{"type":"string","title":"Deal Workspace Id"}},{"name":"artifact_id","in":"path","required":true,"schema":{"type":"string","title":"Artifact Id"}},{"name":"Idempotency-Key","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Idempotency-Key"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/CompleteGeneratedArtifactRequest"}}}},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/CompleteGeneratedArtifactResponse"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/v1/artifacts/generated/intents":{"post":{"tags":["artifact-service"],"summary":"Create Generated Artifact Intent","operationId":"create_generated_artifact_intent_api_v1_artifacts_generated_intents_post","security":[{"HTTPBearer":[]}],"parameters":[{"name":"Idempotency-Key","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Idempotency-Key"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/CreateGeneratedArtifactIntentRequest"}}}},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/GeneratedArtifactIntentResponse"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/v1/artifacts/generated/{artifact_id}/complete":{"post":{"tags":["artifact-service"],"summary":"Complete Generated Artifact","operationId":"complete_generated_artifact_api_v1_artifacts_generated__artifact_id__complete_post","security":[{"HTTPBearer":[]}],"parameters":[{"name":"artifact_id","in":"path","required":true,"schema":{"type":"string","title":"Artifact Id"}},{"name":"Idempotency-Key","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Idempotency-Key"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/CompleteGeneratedArtifactRequest"}}}},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/CompleteGeneratedArtifactResponse"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/v1/slide-library/slides/ingest":{"post":{"tags":["slide-library"],"summary":"Ingest Slides","operationId":"ingest_slides_api_v1_slide_library_slides_ingest_post","requestBody":{"content":{"multipart/form-data":{"schema":{"$ref":"#/components/schemas/Body_ingest_slides_api_v1_slide_library_slides_ingest_post"}}},"required":true},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/SlideLibraryIngestResponse"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}},"security":[{"HTTPBearer":[]}]}},"/api/v1/slide-library/slides":{"get":{"tags":["slide-library"],"summary":"List Slides","operationId":"list_slides_api_v1_slide_library_slides_get","security":[{"HTTPBearer":[]}],"parameters":[{"name":"limit","in":"query","required":false,"schema":{"type":"integer","maximum":5000,"minimum":1,"default":1000,"title":"Limit"}},{"name":"offset","in":"query","required":false,"schema":{"type":"integer","minimum":0,"default":0,"title":"Offset"}},{"name":"tags","in":"query","required":false,"schema":{"anyOf":[{"type":"array","items":{"type":"string"}},{"type":"null"}],"title":"Tags"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/SlideLibraryListResponse"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/v1/slide-library/slides/search":{"post":{"tags":["slide-library"],"summary":"Search Slides","operationId":"search_slides_api_v1_slide_library_slides_search_post","requestBody":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/SlideLibrarySearchRequest"}}},"required":true},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/SlideLibrarySearchResponse"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}},"security":[{"HTTPBearer":[]}]}},"/api/v1/slide-library/tags":{"get":{"tags":["slide-library"],"summary":"List Tags","operationId":"list_tags_api_v1_slide_library_tags_get","responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/SlideLibraryTagsResponse"}}}}},"security":[{"HTTPBearer":[]}]}},"/api/v1/slide-library/slides/{slide_id}/tags":{"patch":{"tags":["slide-library"],"summary":"Replace Slide Tags","operationId":"replace_slide_tags_api_v1_slide_library_slides__slide_id__tags_patch","security":[{"HTTPBearer":[]}],"parameters":[{"name":"slide_id","in":"path","required":true,"schema":{"type":"string","title":"Slide Id"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/SlideLibraryReplaceTagsRequest"}}}},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/SlideLibraryItem"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/v1/slide-library/slides/{slide_id}":{"get":{"tags":["slide-library"],"summary":"Get Slide","operationId":"get_slide_api_v1_slide_library_slides__slide_id__get","security":[{"HTTPBearer":[]}],"parameters":[{"name":"slide_id","in":"path","required":true,"schema":{"type":"string","title":"Slide Id"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}},"delete":{"tags":["slide-library"],"summary":"Delete Slide","operationId":"delete_slide_api_v1_slide_library_slides__slide_id__delete","security":[{"HTTPBearer":[]}],"parameters":[{"name":"slide_id","in":"path","required":true,"schema":{"type":"string","title":"Slide Id"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/SlideLibraryDeleteResponse"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/v1/slide-library/slides/{slide_id}/preview":{"get":{"tags":["slide-library"],"summary":"Preview Slide","operationId":"preview_slide_api_v1_slide_library_slides__slide_id__preview_get","security":[{"HTTPBearer":[]}],"parameters":[{"name":"slide_id","in":"path","required":true,"schema":{"type":"string","title":"Slide Id"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/v1/slide-references/web":{"post":{"tags":["slide-references"],"summary":"Search Web References","operationId":"search_web_references_api_v1_slide_references_web_post","requestBody":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/WebReferenceRequest"}}},"required":true},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/WebReferenceResponse"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}},"security":[{"HTTPBearer":[]}]}},"/api/v1/slide-library/designs":{"get":{"tags":["design-library"],"summary":"List Designs","operationId":"list_designs_api_v1_slide_library_designs_get","responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"items":{"$ref":"#/components/schemas/Design"},"type":"array","title":"Response List Designs Api V1 Slide Library Designs Get"}}}}},"security":[{"HTTPBearer":[]}]},"post":{"tags":["design-library"],"summary":"Create Design","description":"Create a design and optionally accept visual references.\n\nReferences are persisted immediately as pending; Slide Library enroll runs via side-runner.","operationId":"create_design_api_v1_slide_library_designs_post","requestBody":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/CreateDesignRequest"}}},"required":true},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/CreateDesignResponse"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}},"security":[{"HTTPBearer":[]}]}},"/api/v1/slide-library/designs/search":{"get":{"tags":["design-library"],"summary":"Search Designs","operationId":"search_designs_api_v1_slide_library_designs_search_get","security":[{"HTTPBearer":[]}],"parameters":[{"name":"reference_name","in":"query","required":true,"schema":{"type":"string","title":"Reference Name"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"type":"array","items":{"$ref":"#/components/schemas/Design"},"title":"Response Search Designs Api V1 Slide Library Designs Search Get"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/v1/slide-library/designs/{design_id}":{"get":{"tags":["design-library"],"summary":"Get Design","operationId":"get_design_api_v1_slide_library_designs__design_id__get","security":[{"HTTPBearer":[]}],"parameters":[{"name":"design_id","in":"path","required":true,"schema":{"type":"string","title":"Design Id"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Design"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}},"patch":{"tags":["design-library"],"summary":"Update Design","operationId":"update_design_api_v1_slide_library_designs__design_id__patch","security":[{"HTTPBearer":[]}],"parameters":[{"name":"design_id","in":"path","required":true,"schema":{"type":"string","title":"Design Id"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/UpdateDesignRequest"}}}},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Design"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}},"delete":{"tags":["design-library"],"summary":"Delete Design","operationId":"delete_design_api_v1_slide_library_designs__design_id__delete","security":[{"HTTPBearer":[]}],"parameters":[{"name":"design_id","in":"path","required":true,"schema":{"type":"string","title":"Design Id"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"type":"object","additionalProperties":true,"title":"Response Delete Design Api V1 Slide Library Designs  Design Id  Delete"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/v1/slide-library/designs/{design_id}/documents":{"get":{"tags":["design-library"],"summary":"List Design Documents","operationId":"list_design_documents_api_v1_slide_library_designs__design_id__documents_get","security":[{"HTTPBearer":[]}],"parameters":[{"name":"design_id","in":"path","required":true,"schema":{"type":"string","title":"Design Id"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"type":"array","items":{"$ref":"#/components/schemas/DesignDocument"},"title":"Response List Design Documents Api V1 Slide Library Designs  Design Id  Documents Get"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/v1/slide-library/designs/{design_id}/references":{"get":{"tags":["design-library"],"summary":"List Design References","description":"Durable design references from resources.json (no thread required).","operationId":"list_design_references_api_v1_slide_library_designs__design_id__references_get","security":[{"HTTPBearer":[]}],"parameters":[{"name":"design_id","in":"path","required":true,"schema":{"type":"string","title":"Design Id"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"type":"array","items":{"$ref":"#/components/schemas/DesignReferenceItem"},"title":"Response List Design References Api V1 Slide Library Designs  Design Id  References Get"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/v1/slide-library/designs/{design_id}/references/{reference_id}/retry":{"post":{"tags":["design-library"],"summary":"Retry Design Reference","description":"Re-queue Slide Library enrollment for a failed (or stuck) visual reference.","operationId":"retry_design_reference_api_v1_slide_library_designs__design_id__references__reference_id__retry_post","security":[{"HTTPBearer":[]}],"parameters":[{"name":"design_id","in":"path","required":true,"schema":{"type":"string","title":"Design Id"}},{"name":"reference_id","in":"path","required":true,"schema":{"type":"string","title":"Reference Id"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/DesignReferenceItem"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/v1/slide-library/designs/documents/read-by-id":{"post":{"tags":["design-library"],"summary":"Read Design Documents By Id","operationId":"read_design_documents_by_id_api_v1_slide_library_designs_documents_read_by_id_post","requestBody":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ReadDocsByIdRequest"}}},"required":true},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"items":{"$ref":"#/components/schemas/DesignDocument"},"type":"array","title":"Response Read Design Documents By Id Api V1 Slide Library Designs Documents Read By Id Post"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}},"security":[{"HTTPBearer":[]}]}},"/api/v1/workspaces/{deal_workspace_id}/slide-library/designs/{design_id}/conversational-agent/threads/{thread_id}/drafts":{"get":{"tags":["design-library","design-library-authoring"],"summary":"Get Draft","operationId":"get_draft_api_v1_workspaces__deal_workspace_id__slide_library_designs__design_id__conversational_agent_threads__thread_id__drafts_get","security":[{"HTTPBearer":[]}],"parameters":[{"name":"design_id","in":"path","required":true,"schema":{"type":"string","title":"Design Id"}},{"name":"thread_id","in":"path","required":true,"schema":{"type":"string","title":"Thread Id"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}},"put":{"tags":["design-library","design-library-authoring"],"summary":"Update Draft","operationId":"update_draft_api_v1_workspaces__deal_workspace_id__slide_library_designs__design_id__conversational_agent_threads__thread_id__drafts_put","security":[{"HTTPBearer":[]}],"parameters":[{"name":"design_id","in":"path","required":true,"schema":{"type":"string","title":"Design Id"}},{"name":"thread_id","in":"path","required":true,"schema":{"type":"string","title":"Thread Id"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/UpdateDraftRequest"}}}},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/v1/workspaces/{deal_workspace_id}/slide-library/designs/{design_id}/conversational-agent/threads/{thread_id}/resources":{"put":{"tags":["design-library","design-library-authoring"],"summary":"Update Resources","description":"Save design References into the draft + design resources.json, then enqueue enroll jobs.\n\nDoes NOT await Slide Library describe/embed/index on the request path.","operationId":"update_resources_api_v1_workspaces__deal_workspace_id__slide_library_designs__design_id__conversational_agent_threads__thread_id__resources_put","security":[{"HTTPBearer":[]}],"parameters":[{"name":"design_id","in":"path","required":true,"schema":{"type":"string","title":"Design Id"}},{"name":"thread_id","in":"path","required":true,"schema":{"type":"string","title":"Thread Id"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/UpdateResourcesRequest"}}}},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/v1/workspaces/{deal_workspace_id}/slide-library/designs/{design_id}/conversational-agent/threads/{thread_id}/commit":{"post":{"tags":["design-library","design-library-authoring"],"summary":"Commit Draft","operationId":"commit_draft_api_v1_workspaces__deal_workspace_id__slide_library_designs__design_id__conversational_agent_threads__thread_id__commit_post","security":[{"HTTPBearer":[]}],"parameters":[{"name":"design_id","in":"path","required":true,"schema":{"type":"string","title":"Design Id"}},{"name":"thread_id","in":"path","required":true,"schema":{"type":"string","title":"Thread Id"}}],"requestBody":{"content":{"application/json":{"schema":{"anyOf":[{"$ref":"#/components/schemas/CommitDraftRequest"},{"type":"null"}],"title":"Req"}}}},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/v1/workspaces/{deal_workspace_id}/slide-library/designs/{design_id}/conversational-agent/documents":{"get":{"tags":["design-library","design-library-authoring"],"summary":"List Documents","operationId":"list_documents_api_v1_workspaces__deal_workspace_id__slide_library_designs__design_id__conversational_agent_documents_get","security":[{"HTTPBearer":[]}],"parameters":[{"name":"design_id","in":"path","required":true,"schema":{"type":"string","title":"Design Id"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/v1/workspaces/{deal_workspace_id}/slide-library/designs/{design_id}/conversational-agent/init":{"post":{"tags":["design-library","design-library-authoring"],"summary":"Init Conversation","operationId":"init_conversation_api_v1_workspaces__deal_workspace_id__slide_library_designs__design_id__conversational_agent_init_post","security":[{"HTTPBearer":[]}],"parameters":[{"name":"design_id","in":"path","required":true,"schema":{"type":"string","title":"Design Id"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/InitConversationRequest"}}}},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/v1/workspaces/{deal_workspace_id}/slide-library/designs/{design_id}/conversational-agent/threads":{"get":{"tags":["design-library","design-library-authoring"],"summary":"List Threads","operationId":"list_threads_api_v1_workspaces__deal_workspace_id__slide_library_designs__design_id__conversational_agent_threads_get","security":[{"HTTPBearer":[]}],"parameters":[{"name":"design_id","in":"path","required":true,"schema":{"type":"string","title":"Design Id"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/v1/workspaces/{deal_workspace_id}/slide-library/designs/{design_id}/conversational-agent/threads/{thread_id}":{"delete":{"tags":["design-library","design-library-authoring"],"summary":"Delete Thread","operationId":"delete_thread_api_v1_workspaces__deal_workspace_id__slide_library_designs__design_id__conversational_agent_threads__thread_id__delete","security":[{"HTTPBearer":[]}],"parameters":[{"name":"thread_id","in":"path","required":true,"schema":{"type":"string","title":"Thread Id"}},{"name":"design_id","in":"path","required":true,"schema":{"type":"string","title":"Design Id"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/v1/workspaces/{deal_workspace_id}/slide-library/designs/{design_id}/conversational-agent/threads/{thread_id}/rename":{"post":{"tags":["design-library","design-library-authoring"],"summary":"Rename Thread","operationId":"rename_thread_api_v1_workspaces__deal_workspace_id__slide_library_designs__design_id__conversational_agent_threads__thread_id__rename_post","security":[{"HTTPBearer":[]}],"parameters":[{"name":"thread_id","in":"path","required":true,"schema":{"type":"string","title":"Thread Id"}},{"name":"design_id","in":"path","required":true,"schema":{"type":"string","title":"Design Id"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/RenameConversationRequest"}}}},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/v1/workspaces/{deal_workspace_id}/slide-library/designs/{design_id}/conversational-agent/threads/{thread_id}/fork":{"post":{"tags":["design-library","design-library-authoring"],"summary":"Fork Conversation","operationId":"fork_conversation_api_v1_workspaces__deal_workspace_id__slide_library_designs__design_id__conversational_agent_threads__thread_id__fork_post","security":[{"HTTPBearer":[]}],"parameters":[{"name":"thread_id","in":"path","required":true,"schema":{"type":"string","title":"Thread Id"}},{"name":"design_id","in":"path","required":true,"schema":{"type":"string","title":"Design Id"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ForkThreadRequest"}}}},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/v1/workspaces/{deal_workspace_id}/slide-library/designs/{design_id}/conversational-agent/threads/{thread_id}/activate":{"post":{"tags":["design-library","design-library-authoring"],"summary":"Activate Message","operationId":"activate_message_api_v1_workspaces__deal_workspace_id__slide_library_designs__design_id__conversational_agent_threads__thread_id__activate_post","security":[{"HTTPBearer":[]}],"parameters":[{"name":"thread_id","in":"path","required":true,"schema":{"type":"string","title":"Thread Id"}},{"name":"design_id","in":"path","required":true,"schema":{"type":"string","title":"Design Id"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ActivateMessageRequest"}}}},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/v1/workspaces/{deal_workspace_id}/slide-library/designs/{design_id}/conversational-agent/threads/{thread_id}/in-flight":{"get":{"tags":["design-library","design-library-authoring"],"summary":"Get In Flight Turn","operationId":"get_in_flight_turn_api_v1_workspaces__deal_workspace_id__slide_library_designs__design_id__conversational_agent_threads__thread_id__in_flight_get","security":[{"HTTPBearer":[]}],"parameters":[{"name":"thread_id","in":"path","required":true,"schema":{"type":"string","title":"Thread Id"}},{"name":"design_id","in":"path","required":true,"schema":{"type":"string","title":"Design Id"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/InFlightTurnResponse"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/v1/workspaces/{deal_workspace_id}/slide-library/designs/{design_id}/conversational-agent/threads/{thread_id}/turn-starts":{"get":{"tags":["design-library","design-library-authoring"],"summary":"Watch Turn Starts","operationId":"watch_turn_starts_api_v1_workspaces__deal_workspace_id__slide_library_designs__design_id__conversational_agent_threads__thread_id__turn_starts_get","security":[{"HTTPBearer":[]}],"parameters":[{"name":"thread_id","in":"path","required":true,"schema":{"type":"string","title":"Thread Id"}},{"name":"design_id","in":"path","required":true,"schema":{"type":"string","title":"Design Id"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/v1/workspaces/{deal_workspace_id}/slide-library/designs/{design_id}/conversational-agent/threads/in-flight":{"post":{"tags":["design-library","design-library-authoring"],"summary":"Get In Flight Many","operationId":"get_in_flight_many_api_v1_workspaces__deal_workspace_id__slide_library_designs__design_id__conversational_agent_threads_in_flight_post","requestBody":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/InFlightManyRequest"}}},"required":true},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/InFlightManyResponse"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}},"security":[{"HTTPBearer":[]}]}},"/api/v1/workspaces/{deal_workspace_id}/slide-library/designs/{design_id}/conversational-agent/threads/{thread_id}/messages/stream":{"post":{"tags":["design-library","design-library-authoring"],"summary":"Stream Message","operationId":"stream_message_api_v1_workspaces__deal_workspace_id__slide_library_designs__design_id__conversational_agent_threads__thread_id__messages_stream_post","security":[{"HTTPBearer":[]}],"parameters":[{"name":"thread_id","in":"path","required":true,"schema":{"type":"string","title":"Thread Id"}},{"name":"design_id","in":"path","required":true,"schema":{"type":"string","title":"Design Id"}},{"name":"Last-Event-ID","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Last-Event-Id"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/StreamMessageRequest"}}}},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/v1/workspaces/{deal_workspace_id}/slide-library/designs/{design_id}/conversational-agent/threads/{thread_id}/turns/{turn_id}/cancel":{"post":{"tags":["design-library","design-library-authoring"],"summary":"Cancel Turn","operationId":"cancel_turn_api_v1_workspaces__deal_workspace_id__slide_library_designs__design_id__conversational_agent_threads__thread_id__turns__turn_id__cancel_post","security":[{"HTTPBearer":[]}],"parameters":[{"name":"thread_id","in":"path","required":true,"schema":{"type":"string","title":"Thread Id"}},{"name":"turn_id","in":"path","required":true,"schema":{"type":"string","title":"Turn Id"}},{"name":"design_id","in":"path","required":true,"schema":{"type":"string","title":"Design Id"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/v1/workspaces/{deal_workspace_id}/slide-library/designs/{design_id}/conversational-agent/threads/{thread_id}/turns/{turn_id}/steer":{"post":{"tags":["design-library","design-library-authoring"],"summary":"Steer Turn","operationId":"steer_turn_api_v1_workspaces__deal_workspace_id__slide_library_designs__design_id__conversational_agent_threads__thread_id__turns__turn_id__steer_post","security":[{"HTTPBearer":[]}],"parameters":[{"name":"thread_id","in":"path","required":true,"schema":{"type":"string","title":"Thread Id"}},{"name":"turn_id","in":"path","required":true,"schema":{"type":"string","title":"Turn Id"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/SteerRequest"}}}},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/v1/workspaces/{deal_workspace_id}/slide-library/designs/{design_id}/conversational-agent/threads/{thread_id}/turns/{turn_id}/tool-call-answer":{"post":{"tags":["design-library","design-library-authoring"],"summary":"Submit Tool Call Answer","operationId":"submit_tool_call_answer_api_v1_workspaces__deal_workspace_id__slide_library_designs__design_id__conversational_agent_threads__thread_id__turns__turn_id__tool_call_answer_post","security":[{"HTTPBearer":[]}],"parameters":[{"name":"thread_id","in":"path","required":true,"schema":{"type":"string","title":"Thread Id"}},{"name":"turn_id","in":"path","required":true,"schema":{"type":"string","title":"Turn Id"}},{"name":"design_id","in":"path","required":true,"schema":{"type":"string","title":"Design Id"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/HumanInputAnswer"}}}},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HumanInputAnswerResponse"}}}},"404":{"description":"No parked loop","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HumanInputAnswerError"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/v1/workspaces/{deal_workspace_id}/slide-library/designs/{design_id}/conversational-agent/threads/{thread_id}/edits/{edit_id}/accept":{"post":{"tags":["design-library","design-library-authoring"],"summary":"Accept Edit","operationId":"accept_edit_api_v1_workspaces__deal_workspace_id__slide_library_designs__design_id__conversational_agent_threads__thread_id__edits__edit_id__accept_post","security":[{"HTTPBearer":[]}],"parameters":[{"name":"thread_id","in":"path","required":true,"schema":{"type":"string","title":"Thread Id"}},{"name":"edit_id","in":"path","required":true,"schema":{"type":"string","title":"Edit Id"}},{"name":"design_id","in":"path","required":true,"schema":{"type":"string","title":"Design Id"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ReviewEditRequest"}}}},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/v1/workspaces/{deal_workspace_id}/slide-library/designs/{design_id}/conversational-agent/threads/{thread_id}/accept-all":{"post":{"tags":["design-library","design-library-authoring"],"summary":"Accept All","operationId":"accept_all_api_v1_workspaces__deal_workspace_id__slide_library_designs__design_id__conversational_agent_threads__thread_id__accept_all_post","security":[{"HTTPBearer":[]}],"parameters":[{"name":"thread_id","in":"path","required":true,"schema":{"type":"string","title":"Thread Id"}},{"name":"design_id","in":"path","required":true,"schema":{"type":"string","title":"Design Id"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ReviewEditRequest"}}}},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/v1/workspaces/{deal_workspace_id}/slide-library/designs/{design_id}/conversational-agent/threads/{thread_id}/edits/{edit_id}/decline":{"post":{"tags":["design-library","design-library-authoring"],"summary":"Decline Edit","operationId":"decline_edit_api_v1_workspaces__deal_workspace_id__slide_library_designs__design_id__conversational_agent_threads__thread_id__edits__edit_id__decline_post","security":[{"HTTPBearer":[]}],"parameters":[{"name":"thread_id","in":"path","required":true,"schema":{"type":"string","title":"Thread Id"}},{"name":"edit_id","in":"path","required":true,"schema":{"type":"string","title":"Edit Id"}},{"name":"design_id","in":"path","required":true,"schema":{"type":"string","title":"Design Id"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ReviewEditRequest"}}}},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/v1/workspaces/{deal_workspace_id}/slide-library/designs/{design_id}/conversational-agent/threads/{thread_id}/changes/{change_id}/accept":{"post":{"tags":["design-library","design-library-authoring"],"summary":"Accept Change","operationId":"accept_change_api_v1_workspaces__deal_workspace_id__slide_library_designs__design_id__conversational_agent_threads__thread_id__changes__change_id__accept_post","security":[{"HTTPBearer":[]}],"parameters":[{"name":"thread_id","in":"path","required":true,"schema":{"type":"string","title":"Thread Id"}},{"name":"change_id","in":"path","required":true,"schema":{"type":"string","title":"Change Id"}},{"name":"design_id","in":"path","required":true,"schema":{"type":"string","title":"Design Id"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ReviewEditRequest"}}}},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/v1/workspaces/{deal_workspace_id}/slide-library/designs/{design_id}/conversational-agent/threads/{thread_id}/changes/{change_id}/decline":{"post":{"tags":["design-library","design-library-authoring"],"summary":"Decline Change","operationId":"decline_change_api_v1_workspaces__deal_workspace_id__slide_library_designs__design_id__conversational_agent_threads__thread_id__changes__change_id__decline_post","security":[{"HTTPBearer":[]}],"parameters":[{"name":"thread_id","in":"path","required":true,"schema":{"type":"string","title":"Thread Id"}},{"name":"change_id","in":"path","required":true,"schema":{"type":"string","title":"Change Id"}},{"name":"design_id","in":"path","required":true,"schema":{"type":"string","title":"Design Id"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ReviewEditRequest"}}}},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/v1/workspaces/{deal_workspace_id}/slide-library/designs/{design_id}/conversational-agent/proposals/{proposal_id}/approve":{"post":{"tags":["design-library","design-library-authoring"],"summary":"Approve Proposal","operationId":"approve_proposal_api_v1_workspaces__deal_workspace_id__slide_library_designs__design_id__conversational_agent_proposals__proposal_id__approve_post","security":[{"HTTPBearer":[]}],"parameters":[{"name":"proposal_id","in":"path","required":true,"schema":{"type":"string","title":"Proposal Id"}},{"name":"design_id","in":"path","required":true,"schema":{"type":"string","title":"Design Id"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ApproveProposalRequest"}}}},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/v1/manager/drive/sync":{"post":{"tags":["manager"],"summary":"Trigger Drive Sync","operationId":"trigger_drive_sync_api_v1_manager_drive_sync_post","requestBody":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/DriveSyncRequest"}}},"required":true},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}},"security":[{"HTTPBearer":[]}]}},"/api/v1/manager/drive/indexed-files":{"get":{"tags":["manager"],"summary":"Get Indexed Files","operationId":"get_indexed_files_api_v1_manager_drive_indexed_files_get","security":[{"HTTPBearer":[]}],"parameters":[{"name":"deal_workspace_id","in":"query","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Deal Workspace Id"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/v1/manager/drive/indexed-files/{file_id}/content":{"get":{"tags":["manager"],"summary":"Get Indexed File Content","operationId":"get_indexed_file_content_api_v1_manager_drive_indexed_files__file_id__content_get","security":[{"HTTPBearer":[]}],"parameters":[{"name":"file_id","in":"path","required":true,"schema":{"type":"string","title":"File Id"}},{"name":"deal_workspace_id","in":"query","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Deal Workspace Id"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/v1/manager/drive/indexed-files/{file_id}/summary":{"get":{"tags":["manager"],"summary":"Get Indexed File Summary","operationId":"get_indexed_file_summary_api_v1_manager_drive_indexed_files__file_id__summary_get","security":[{"HTTPBearer":[]}],"parameters":[{"name":"file_id","in":"path","required":true,"schema":{"type":"string","title":"File Id"}},{"name":"deal_workspace_id","in":"query","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Deal Workspace Id"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/v1/manager/suggestions":{"get":{"tags":["manager"],"summary":"Get Suggestions","operationId":"get_suggestions_api_v1_manager_suggestions_get","security":[{"HTTPBearer":[]}],"parameters":[{"name":"deal_workspace_id","in":"query","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Deal Workspace Id"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}},"post":{"tags":["manager"],"summary":"Add Suggestion","operationId":"add_suggestion_api_v1_manager_suggestions_post","security":[{"HTTPBearer":[]}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/AddSuggestionRequest"}}}},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}},"delete":{"tags":["manager"],"summary":"Delete Suggestion","operationId":"delete_suggestion_api_v1_manager_suggestions_delete","security":[{"HTTPBearer":[]}],"parameters":[{"name":"deal_workspace_id","in":"query","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Deal Workspace Id"}},{"name":"content","in":"query","required":true,"schema":{"type":"string","title":"Content"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/v1/manager/threads/{thread_id}/session-files":{"get":{"tags":["manager"],"summary":"List Session Files","operationId":"list_session_files_api_v1_manager_threads__thread_id__session_files_get","security":[{"HTTPBearer":[]}],"parameters":[{"name":"thread_id","in":"path","required":true,"schema":{"type":"string","title":"Thread Id"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}},"put":{"tags":["manager"],"summary":"Save Session File","description":"Save an edited session file over itself, found by its id so a rename meanwhile does not matter.\n\n`If-Match` carries the `modified_at` the client opened the file at; a file changed since then is not overwritten\n(412), so the assistant's edits made meanwhile are not lost. Without the header the save always goes through.","operationId":"save_session_file_api_v1_manager_threads__thread_id__session_files_put","security":[{"HTTPBearer":[]}],"parameters":[{"name":"thread_id","in":"path","required":true,"schema":{"type":"string","title":"Thread Id"}},{"name":"file_id","in":"query","required":true,"schema":{"type":"string","description":"The id of the session file being saved","title":"File Id"},"description":"The id of the session file being saved"}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/v1/manager/threads/{thread_id}/session-files/undo":{"post":{"tags":["manager"],"summary":"Undo Session File Change","description":"Put back the version of the file from before its last change, whoever made it.","operationId":"undo_session_file_change_api_v1_manager_threads__thread_id__session_files_undo_post","security":[{"HTTPBearer":[]}],"parameters":[{"name":"thread_id","in":"path","required":true,"schema":{"type":"string","title":"Thread Id"}},{"name":"file_id","in":"query","required":true,"schema":{"type":"string","description":"The id of the session file","title":"File Id"},"description":"The id of the session file"}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/v1/manager/threads/{thread_id}/session-files/edit":{"post":{"tags":["manager"],"summary":"Edit Session File","description":"Apply the user's edits from the file preview through the same editor the assistant uses, so formatting survives.\n\n`If-Match` carries the file's version as the preview opened it (the download's `ETag`); a file changed since then\nis not edited (412).","operationId":"edit_session_file_api_v1_manager_threads__thread_id__session_files_edit_post","security":[{"HTTPBearer":[]}],"parameters":[{"name":"thread_id","in":"path","required":true,"schema":{"type":"string","title":"Thread Id"}},{"name":"file_id","in":"query","required":true,"schema":{"type":"string","description":"The id of the session file","title":"File Id"},"description":"The id of the session file"},{"name":"if-match","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"If-Match"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/SessionFileEditRequest"}}}},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/v1/manager/threads/{thread_id}/session-files/download":{"get":{"tags":["manager"],"summary":"Download Session File","operationId":"download_session_file_api_v1_manager_threads__thread_id__session_files_download_get","security":[{"HTTPBearer":[]}],"parameters":[{"name":"thread_id","in":"path","required":true,"schema":{"type":"string","title":"Thread Id"}},{"name":"file_id","in":"query","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"File Id"}},{"name":"path","in":"query","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Path"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/v1/manager/threads/{thread_id}/session-files/publish":{"post":{"tags":["manager"],"summary":"Publish Session File","operationId":"publish_session_file_api_v1_manager_threads__thread_id__session_files_publish_post","security":[{"HTTPBearer":[]}],"parameters":[{"name":"thread_id","in":"path","required":true,"schema":{"type":"string","title":"Thread Id"}},{"name":"file_id","in":"query","required":true,"schema":{"type":"string","title":"File Id"}},{"name":"deal_workspace_id","in":"query","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Deal Workspace Id"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/v1/manager/threads/{thread_id}/target-lists/state":{"get":{"tags":["manager"],"summary":"Get Target List State","description":"The target list's content for the review card, read by the orchestrator.\n\nThe card first knows only the list's name (the agent gives it); the answer it saves carries the id.","operationId":"get_target_list_state_api_v1_manager_threads__thread_id__target_lists_state_get","security":[{"HTTPBearer":[]}],"parameters":[{"name":"thread_id","in":"path","required":true,"schema":{"type":"string","title":"Thread Id"}},{"name":"file_id","in":"query","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"File Id"}},{"name":"path","in":"query","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Path"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/v1/manager/threads/{thread_id}/target-lists/save":{"post":{"tags":["manager"],"summary":"Save Target List","description":"Save the review card's edits into the file; ``approve`` also marks it reviewed. Only the card calls this.","operationId":"save_target_list_api_v1_manager_threads__thread_id__target_lists_save_post","security":[{"HTTPBearer":[]}],"parameters":[{"name":"thread_id","in":"path","required":true,"schema":{"type":"string","title":"Thread Id"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/TargetListSaveRequest"}}}},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/v1/manager/threads/{thread_id}/webhooks/task-complete":{"post":{"tags":["manager"],"summary":"Task Complete Webhook","operationId":"task_complete_webhook_api_v1_manager_threads__thread_id__webhooks_task_complete_post","security":[{"HTTPBearer":[]}],"parameters":[{"name":"thread_id","in":"path","required":true,"schema":{"type":"string","title":"Thread Id"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/TaskCompleteWebhookRequest"}}}},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/v1/manager/threads":{"get":{"tags":["manager","manager"],"summary":"List Chats","operationId":"list_chats_api_v1_manager_threads_get","security":[{"HTTPBearer":[]}],"parameters":[{"name":"workspace","in":"query","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"description":"all, none, or a workspace id","title":"Workspace"},"description":"all, none, or a workspace id"},{"name":"deal_workspace_id","in":"query","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"description":"Older spelling of workspace=<id>","title":"Deal Workspace Id"},"description":"Older spelling of workspace=<id>"},{"name":"limit","in":"query","required":false,"schema":{"type":"integer","maximum":1000,"minimum":1,"default":200,"title":"Limit"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/v1/manager/threads/{thread_id}/move":{"post":{"tags":["manager","manager"],"summary":"Move Chat","operationId":"move_chat_api_v1_manager_threads__thread_id__move_post","security":[{"HTTPBearer":[]}],"parameters":[{"name":"thread_id","in":"path","required":true,"schema":{"type":"string","title":"Thread Id"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/MoveThreadRequest"}}}},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/v1/manager/threads/{thread_id}/ui-components":{"get":{"tags":["manager","manager"],"summary":"List Ui Components","operationId":"list_ui_components_api_v1_manager_threads__thread_id__ui_components_get","security":[{"HTTPBearer":[]}],"parameters":[{"name":"thread_id","in":"path","required":true,"schema":{"type":"string","title":"Thread Id"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/v1/manager/threads/{thread_id}/ui-components/{component_id}/steps":{"post":{"tags":["manager","manager"],"summary":"Change Ui Component","operationId":"change_ui_component_api_v1_manager_threads__thread_id__ui_components__component_id__steps_post","security":[{"HTTPBearer":[]}],"parameters":[{"name":"thread_id","in":"path","required":true,"schema":{"type":"string","title":"Thread Id"}},{"name":"component_id","in":"path","required":true,"schema":{"type":"string","title":"Component Id"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/StepsRequest"}}}},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/v1/manager/threads/{thread_id}/session-files/office-config":{"get":{"tags":["manager"],"summary":"Office Config","operationId":"office_config_api_v1_manager_threads__thread_id__session_files_office_config_get","security":[{"HTTPBearer":[]}],"parameters":[{"name":"thread_id","in":"path","required":true,"schema":{"type":"string","title":"Thread Id"}},{"name":"file_id","in":"query","required":true,"schema":{"type":"string","title":"File Id"}},{"name":"mode","in":"query","required":false,"schema":{"enum":["edit","view"],"type":"string","default":"edit","title":"Mode"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"type":"object","additionalProperties":true,"title":"Response Office Config Api V1 Manager Threads  Thread Id  Session Files Office Config Get"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/v1/manager/office-files/{token}":{"get":{"tags":["manager"],"summary":"Office File","operationId":"office_file_api_v1_manager_office_files__token__get","security":[{"HTTPBearer":[]}],"parameters":[{"name":"token","in":"path","required":true,"schema":{"type":"string","title":"Token"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/v1/manager/office-callbacks/{token}":{"post":{"tags":["manager"],"summary":"Office Callback","operationId":"office_callback_api_v1_manager_office_callbacks__token__post","security":[{"HTTPBearer":[]}],"parameters":[{"name":"token","in":"path","required":true,"schema":{"type":"string","title":"Token"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"type":"object","additionalProperties":{"type":"integer"},"title":"Response Office Callback Api V1 Manager Office Callbacks  Token  Post"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/v1/manager/threads/{thread_id}/office-jobs/{job_id}/activity":{"get":{"tags":["manager","manager"],"summary":"Activity","operationId":"activity_api_v1_manager_threads__thread_id__office_jobs__job_id__activity_get","security":[{"HTTPBearer":[]}],"parameters":[{"name":"thread_id","in":"path","required":true,"schema":{"type":"string","title":"Thread Id"}},{"name":"job_id","in":"path","required":true,"schema":{"type":"string","title":"Job Id"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/v1/manager/threads/{thread_id}/office-jobs/{job_id}/slides/{slide}":{"get":{"tags":["manager","manager"],"summary":"Slide Picture","description":"The revision in the URL only names the picture for the browser's cache; the latest kept picture is served.","operationId":"slide_picture_api_v1_manager_threads__thread_id__office_jobs__job_id__slides__slide__get","security":[{"HTTPBearer":[]}],"parameters":[{"name":"thread_id","in":"path","required":true,"schema":{"type":"string","title":"Thread Id"}},{"name":"job_id","in":"path","required":true,"schema":{"type":"string","title":"Job Id"}},{"name":"slide","in":"path","required":true,"schema":{"type":"integer","title":"Slide"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/v1/manager/threads/{thread_id}/office-jobs/{job_id}/notes":{"post":{"tags":["manager","manager"],"summary":"Send Note","operationId":"send_note_api_v1_manager_threads__thread_id__office_jobs__job_id__notes_post","security":[{"HTTPBearer":[]}],"parameters":[{"name":"thread_id","in":"path","required":true,"schema":{"type":"string","title":"Thread Id"}},{"name":"job_id","in":"path","required":true,"schema":{"type":"string","title":"Job Id"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/NoteRequest"}}}},"responses":{"202":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/v1/manager/init":{"post":{"tags":["manager"],"summary":"Init Conversation","operationId":"init_conversation_api_v1_manager_init_post","security":[{"HTTPBearer":[]}],"parameters":[{"name":"deal_workspace_id","in":"query","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Deal Workspace Id"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/InitConversationRequest"}}}},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/v1/manager/threads/{thread_id}":{"delete":{"tags":["manager"],"summary":"Delete Thread","operationId":"delete_thread_api_v1_manager_threads__thread_id__delete","security":[{"HTTPBearer":[]}],"parameters":[{"name":"thread_id","in":"path","required":true,"schema":{"type":"string","title":"Thread Id"}},{"name":"deal_workspace_id","in":"query","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Deal Workspace Id"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/v1/manager/threads/{thread_id}/rename":{"post":{"tags":["manager"],"summary":"Rename Thread","operationId":"rename_thread_api_v1_manager_threads__thread_id__rename_post","security":[{"HTTPBearer":[]}],"parameters":[{"name":"thread_id","in":"path","required":true,"schema":{"type":"string","title":"Thread Id"}},{"name":"deal_workspace_id","in":"query","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Deal Workspace Id"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/RenameConversationRequest"}}}},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/v1/manager/threads/{thread_id}/fork":{"post":{"tags":["manager"],"summary":"Fork Conversation","operationId":"fork_conversation_api_v1_manager_threads__thread_id__fork_post","security":[{"HTTPBearer":[]}],"parameters":[{"name":"thread_id","in":"path","required":true,"schema":{"type":"string","title":"Thread Id"}},{"name":"deal_workspace_id","in":"query","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Deal Workspace Id"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ForkThreadRequest"}}}},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/v1/manager/threads/{thread_id}/activate":{"post":{"tags":["manager"],"summary":"Activate Message","operationId":"activate_message_api_v1_manager_threads__thread_id__activate_post","security":[{"HTTPBearer":[]}],"parameters":[{"name":"thread_id","in":"path","required":true,"schema":{"type":"string","title":"Thread Id"}},{"name":"deal_workspace_id","in":"query","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Deal Workspace Id"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ActivateMessageRequest"}}}},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/v1/manager/threads/{thread_id}/in-flight":{"get":{"tags":["manager"],"summary":"Get In Flight Turn","operationId":"get_in_flight_turn_api_v1_manager_threads__thread_id__in_flight_get","security":[{"HTTPBearer":[]}],"parameters":[{"name":"thread_id","in":"path","required":true,"schema":{"type":"string","title":"Thread Id"}},{"name":"deal_workspace_id","in":"query","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Deal Workspace Id"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/InFlightTurnResponse"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/v1/manager/threads/{thread_id}/turn-starts":{"get":{"tags":["manager"],"summary":"Watch Turn Starts","operationId":"watch_turn_starts_api_v1_manager_threads__thread_id__turn_starts_get","security":[{"HTTPBearer":[]}],"parameters":[{"name":"thread_id","in":"path","required":true,"schema":{"type":"string","title":"Thread Id"}},{"name":"deal_workspace_id","in":"query","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Deal Workspace Id"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/v1/manager/threads/in-flight":{"post":{"tags":["manager"],"summary":"Get In Flight Many","operationId":"get_in_flight_many_api_v1_manager_threads_in_flight_post","requestBody":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/InFlightManyRequest"}}},"required":true},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/InFlightManyResponse"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}},"security":[{"HTTPBearer":[]}]}},"/api/v1/manager/threads/{thread_id}/messages/stream":{"post":{"tags":["manager"],"summary":"Stream Message","operationId":"stream_message_api_v1_manager_threads__thread_id__messages_stream_post","security":[{"HTTPBearer":[]}],"parameters":[{"name":"thread_id","in":"path","required":true,"schema":{"type":"string","title":"Thread Id"}},{"name":"deal_workspace_id","in":"query","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Deal Workspace Id"}},{"name":"Last-Event-ID","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Last-Event-Id"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/StreamMessageRequest"}}}},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/v1/manager/threads/{thread_id}/turns/{turn_id}/cancel":{"post":{"tags":["manager"],"summary":"Cancel Turn","operationId":"cancel_turn_api_v1_manager_threads__thread_id__turns__turn_id__cancel_post","security":[{"HTTPBearer":[]}],"parameters":[{"name":"thread_id","in":"path","required":true,"schema":{"type":"string","title":"Thread Id"}},{"name":"turn_id","in":"path","required":true,"schema":{"type":"string","title":"Turn Id"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/v1/manager/threads/{thread_id}/turns/{turn_id}/steer":{"post":{"tags":["manager"],"summary":"Steer Turn","operationId":"steer_turn_api_v1_manager_threads__thread_id__turns__turn_id__steer_post","security":[{"HTTPBearer":[]}],"parameters":[{"name":"thread_id","in":"path","required":true,"schema":{"type":"string","title":"Thread Id"}},{"name":"turn_id","in":"path","required":true,"schema":{"type":"string","title":"Turn Id"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/SteerRequest"}}}},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/v1/manager/threads/{thread_id}/turns/{turn_id}/tool-call-answer":{"post":{"tags":["manager"],"summary":"Submit Tool Call Answer","operationId":"submit_tool_call_answer_api_v1_manager_threads__thread_id__turns__turn_id__tool_call_answer_post","security":[{"HTTPBearer":[]}],"parameters":[{"name":"thread_id","in":"path","required":true,"schema":{"type":"string","title":"Thread Id"}},{"name":"turn_id","in":"path","required":true,"schema":{"type":"string","title":"Turn Id"}},{"name":"deal_workspace_id","in":"query","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Deal Workspace Id"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/HumanInputAnswer"}}}},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HumanInputAnswerResponse"}}}},"404":{"description":"No parked loop","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HumanInputAnswerError"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/v1/manager/threads/{thread_id}/edits/{edit_id}/accept":{"post":{"tags":["manager"],"summary":"Accept Edit","operationId":"accept_edit_api_v1_manager_threads__thread_id__edits__edit_id__accept_post","security":[{"HTTPBearer":[]}],"parameters":[{"name":"thread_id","in":"path","required":true,"schema":{"type":"string","title":"Thread Id"}},{"name":"edit_id","in":"path","required":true,"schema":{"type":"string","title":"Edit Id"}},{"name":"deal_workspace_id","in":"query","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Deal Workspace Id"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ReviewEditRequest"}}}},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/v1/manager/threads/{thread_id}/accept-all":{"post":{"tags":["manager"],"summary":"Accept All","operationId":"accept_all_api_v1_manager_threads__thread_id__accept_all_post","security":[{"HTTPBearer":[]}],"parameters":[{"name":"thread_id","in":"path","required":true,"schema":{"type":"string","title":"Thread Id"}},{"name":"deal_workspace_id","in":"query","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Deal Workspace Id"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ReviewEditRequest"}}}},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/v1/manager/threads/{thread_id}/edits/{edit_id}/decline":{"post":{"tags":["manager"],"summary":"Decline Edit","operationId":"decline_edit_api_v1_manager_threads__thread_id__edits__edit_id__decline_post","security":[{"HTTPBearer":[]}],"parameters":[{"name":"thread_id","in":"path","required":true,"schema":{"type":"string","title":"Thread Id"}},{"name":"edit_id","in":"path","required":true,"schema":{"type":"string","title":"Edit Id"}},{"name":"deal_workspace_id","in":"query","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Deal Workspace Id"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ReviewEditRequest"}}}},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/v1/manager/threads/{thread_id}/changes/{change_id}/accept":{"post":{"tags":["manager"],"summary":"Accept Change","operationId":"accept_change_api_v1_manager_threads__thread_id__changes__change_id__accept_post","security":[{"HTTPBearer":[]}],"parameters":[{"name":"thread_id","in":"path","required":true,"schema":{"type":"string","title":"Thread Id"}},{"name":"change_id","in":"path","required":true,"schema":{"type":"string","title":"Change Id"}},{"name":"deal_workspace_id","in":"query","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Deal Workspace Id"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ReviewEditRequest"}}}},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/v1/manager/threads/{thread_id}/changes/{change_id}/decline":{"post":{"tags":["manager"],"summary":"Decline Change","operationId":"decline_change_api_v1_manager_threads__thread_id__changes__change_id__decline_post","security":[{"HTTPBearer":[]}],"parameters":[{"name":"thread_id","in":"path","required":true,"schema":{"type":"string","title":"Thread Id"}},{"name":"change_id","in":"path","required":true,"schema":{"type":"string","title":"Change Id"}},{"name":"deal_workspace_id","in":"query","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Deal Workspace Id"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ReviewEditRequest"}}}},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/v1/manager/proposals/{proposal_id}/approve":{"post":{"tags":["manager"],"summary":"Approve Proposal","operationId":"approve_proposal_api_v1_manager_proposals__proposal_id__approve_post","security":[{"HTTPBearer":[]}],"parameters":[{"name":"proposal_id","in":"path","required":true,"schema":{"type":"string","title":"Proposal Id"}},{"name":"deal_workspace_id","in":"query","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Deal Workspace Id"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ApproveProposalRequest"}}}},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/v1/manager/skills":{"get":{"tags":["manager","manager-skills"],"summary":"List Skills","operationId":"list_skills_api_v1_manager_skills_get","responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"items":{"$ref":"#/components/schemas/ManagerSkill"},"type":"array","title":"Response List Skills Api V1 Manager Skills Get"}}}}},"security":[{"HTTPBearer":[]}]},"post":{"tags":["manager","manager-skills"],"summary":"Create Skill","operationId":"create_skill_api_v1_manager_skills_post","requestBody":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/CreateSkillRequest"}}},"required":true},"responses":{"201":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ManagerSkill"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}},"security":[{"HTTPBearer":[]}]}},"/api/v1/manager/skills/{skill_id}":{"get":{"tags":["manager","manager-skills"],"summary":"Get Skill","operationId":"get_skill_api_v1_manager_skills__skill_id__get","security":[{"HTTPBearer":[]}],"parameters":[{"name":"skill_id","in":"path","required":true,"schema":{"type":"string","title":"Skill Id"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ManagerSkill"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}},"put":{"tags":["manager","manager-skills"],"summary":"Update Skill","operationId":"update_skill_api_v1_manager_skills__skill_id__put","security":[{"HTTPBearer":[]}],"parameters":[{"name":"skill_id","in":"path","required":true,"schema":{"type":"string","title":"Skill Id"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/UpdateSkillRequest"}}}},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ManagerSkill"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}},"patch":{"tags":["manager","manager-skills"],"summary":"Set Skill Enabled","description":"The on/off switch: changes nothing else, so it cannot overwrite instructions edited since the page loaded.","operationId":"set_skill_enabled_api_v1_manager_skills__skill_id__patch","security":[{"HTTPBearer":[]}],"parameters":[{"name":"skill_id","in":"path","required":true,"schema":{"type":"string","title":"Skill Id"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/SetSkillEnabledRequest"}}}},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ManagerSkill"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}},"delete":{"tags":["manager","manager-skills"],"summary":"Delete Skill","operationId":"delete_skill_api_v1_manager_skills__skill_id__delete","security":[{"HTTPBearer":[]}],"parameters":[{"name":"skill_id","in":"path","required":true,"schema":{"type":"string","title":"Skill Id"}}],"responses":{"204":{"description":"Successful Response"},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/v1/workspaces/{deal_workspace_id}/manager/threads/{thread_id}/chat-files/dedup":{"post":{"tags":["manager-chat-files"],"summary":"Dedup Chat File","operationId":"dedup_chat_file_api_v1_workspaces__deal_workspace_id__manager_threads__thread_id__chat_files_dedup_post","security":[{"HTTPBearer":[]}],"parameters":[{"name":"deal_workspace_id","in":"path","required":true,"schema":{"type":"string","title":"Deal Workspace Id"}},{"name":"thread_id","in":"path","required":true,"schema":{"type":"string","title":"Thread Id"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ChatFileDedupRequest"}}}},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ChatFileDedupResponse"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/v1/workspaces/{deal_workspace_id}/manager/threads/{thread_id}/chat-files":{"post":{"tags":["manager-chat-files"],"summary":"Upload Chat File","operationId":"upload_chat_file_api_v1_workspaces__deal_workspace_id__manager_threads__thread_id__chat_files_post","security":[{"HTTPBearer":[]}],"parameters":[{"name":"deal_workspace_id","in":"path","required":true,"schema":{"type":"string","title":"Deal Workspace Id"}},{"name":"thread_id","in":"path","required":true,"schema":{"type":"string","title":"Thread Id"}}],"requestBody":{"required":true,"content":{"multipart/form-data":{"schema":{"$ref":"#/components/schemas/Body_upload_chat_file_api_v1_workspaces__deal_workspace_id__manager_threads__thread_id__chat_files_post"}}}},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ChatFileRecord"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}},"get":{"tags":["manager-chat-files"],"summary":"List Chat Files","operationId":"list_chat_files_api_v1_workspaces__deal_workspace_id__manager_threads__thread_id__chat_files_get","security":[{"HTTPBearer":[]}],"parameters":[{"name":"deal_workspace_id","in":"path","required":true,"schema":{"type":"string","title":"Deal Workspace Id"}},{"name":"thread_id","in":"path","required":true,"schema":{"type":"string","title":"Thread Id"}},{"name":"limit","in":"query","required":false,"schema":{"type":"integer","maximum":500,"minimum":1,"default":100,"title":"Limit"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ChatFileListResponse"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/v1/workspaces/{deal_workspace_id}/manager/threads/{thread_id}/chat-files/{chat_file_id}/download":{"get":{"tags":["manager-chat-files"],"summary":"Download Chat File","operationId":"download_chat_file_api_v1_workspaces__deal_workspace_id__manager_threads__thread_id__chat_files__chat_file_id__download_get","security":[{"HTTPBearer":[]}],"parameters":[{"name":"deal_workspace_id","in":"path","required":true,"schema":{"type":"string","title":"Deal Workspace Id"}},{"name":"thread_id","in":"path","required":true,"schema":{"type":"string","title":"Thread Id"}},{"name":"chat_file_id","in":"path","required":true,"schema":{"type":"string","title":"Chat File Id"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ChatFileDownloadResponse"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/v1/workspaces/{deal_workspace_id}/manager/threads/{thread_id}/chat-files/{chat_file_id}/promote":{"post":{"tags":["manager-chat-files"],"summary":"Promote Chat File","operationId":"promote_chat_file_api_v1_workspaces__deal_workspace_id__manager_threads__thread_id__chat_files__chat_file_id__promote_post","security":[{"HTTPBearer":[]}],"parameters":[{"name":"deal_workspace_id","in":"path","required":true,"schema":{"type":"string","title":"Deal Workspace Id"}},{"name":"thread_id","in":"path","required":true,"schema":{"type":"string","title":"Thread Id"}},{"name":"chat_file_id","in":"path","required":true,"schema":{"type":"string","title":"Chat File Id"}},{"name":"display_name","in":"query","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Display Name"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ChatFilePromoteResponse"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/v1/workspaces/{deal_workspace_id}/manager/threads/{thread_id}/chat-files/{chat_file_id}":{"delete":{"tags":["manager-chat-files"],"summary":"Delete Chat File","operationId":"delete_chat_file_api_v1_workspaces__deal_workspace_id__manager_threads__thread_id__chat_files__chat_file_id__delete","security":[{"HTTPBearer":[]}],"parameters":[{"name":"deal_workspace_id","in":"path","required":true,"schema":{"type":"string","title":"Deal Workspace Id"}},{"name":"thread_id","in":"path","required":true,"schema":{"type":"string","title":"Thread Id"}},{"name":"chat_file_id","in":"path","required":true,"schema":{"type":"string","title":"Chat File Id"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"type":"object","additionalProperties":true,"title":"Response Delete Chat File Api V1 Workspaces  Deal Workspace Id  Manager Threads  Thread Id  Chat Files  Chat File Id  Delete"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/v1/manager/threads/{thread_id}/chat-files/dedup":{"post":{"tags":["manager-chat-files"],"summary":"Dedup Thread Chat File","operationId":"dedup_thread_chat_file_api_v1_manager_threads__thread_id__chat_files_dedup_post","security":[{"HTTPBearer":[]}],"parameters":[{"name":"thread_id","in":"path","required":true,"schema":{"type":"string","title":"Thread Id"}},{"name":"deal_workspace_id","in":"query","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Deal Workspace Id"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ChatFileDedupRequest"}}}},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ChatFileDedupResponse"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/v1/manager/threads/{thread_id}/chat-files":{"post":{"tags":["manager-chat-files"],"summary":"Upload Thread Chat File","operationId":"upload_thread_chat_file_api_v1_manager_threads__thread_id__chat_files_post","security":[{"HTTPBearer":[]}],"parameters":[{"name":"thread_id","in":"path","required":true,"schema":{"type":"string","title":"Thread Id"}},{"name":"deal_workspace_id","in":"query","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Deal Workspace Id"}}],"requestBody":{"required":true,"content":{"multipart/form-data":{"schema":{"$ref":"#/components/schemas/Body_upload_thread_chat_file_api_v1_manager_threads__thread_id__chat_files_post"}}}},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ChatFileRecord"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}},"get":{"tags":["manager-chat-files"],"summary":"List Thread Chat Files","operationId":"list_thread_chat_files_api_v1_manager_threads__thread_id__chat_files_get","security":[{"HTTPBearer":[]}],"parameters":[{"name":"thread_id","in":"path","required":true,"schema":{"type":"string","title":"Thread Id"}},{"name":"limit","in":"query","required":false,"schema":{"type":"integer","maximum":500,"minimum":1,"default":100,"title":"Limit"}},{"name":"deal_workspace_id","in":"query","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Deal Workspace Id"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ChatFileListResponse"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/v1/manager/threads/{thread_id}/chat-files/{chat_file_id}/download":{"get":{"tags":["manager-chat-files"],"summary":"Download Thread Chat File","operationId":"download_thread_chat_file_api_v1_manager_threads__thread_id__chat_files__chat_file_id__download_get","security":[{"HTTPBearer":[]}],"parameters":[{"name":"thread_id","in":"path","required":true,"schema":{"type":"string","title":"Thread Id"}},{"name":"chat_file_id","in":"path","required":true,"schema":{"type":"string","title":"Chat File Id"}},{"name":"deal_workspace_id","in":"query","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Deal Workspace Id"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ChatFileDownloadResponse"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/v1/manager/threads/{thread_id}/chat-files/{chat_file_id}/promote":{"post":{"tags":["manager-chat-files"],"summary":"Promote Thread Chat File","operationId":"promote_thread_chat_file_api_v1_manager_threads__thread_id__chat_files__chat_file_id__promote_post","security":[{"HTTPBearer":[]}],"parameters":[{"name":"thread_id","in":"path","required":true,"schema":{"type":"string","title":"Thread Id"}},{"name":"chat_file_id","in":"path","required":true,"schema":{"type":"string","title":"Chat File Id"}},{"name":"display_name","in":"query","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Display Name"}},{"name":"deal_workspace_id","in":"query","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Deal Workspace Id"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ChatFilePromoteResponse"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/v1/manager/threads/{thread_id}/chat-files/{chat_file_id}":{"delete":{"tags":["manager-chat-files"],"summary":"Delete Thread Chat File","operationId":"delete_thread_chat_file_api_v1_manager_threads__thread_id__chat_files__chat_file_id__delete","security":[{"HTTPBearer":[]}],"parameters":[{"name":"thread_id","in":"path","required":true,"schema":{"type":"string","title":"Thread Id"}},{"name":"chat_file_id","in":"path","required":true,"schema":{"type":"string","title":"Chat File Id"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"type":"object","additionalProperties":true,"title":"Response Delete Thread Chat File Api V1 Manager Threads  Thread Id  Chat Files  Chat File Id  Delete"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/v1/manager/threads/{thread_id}/deck-export":{"post":{"tags":["manager"],"summary":"Export Thread Deck","description":"Build the .pptx for the deck in the request and bind it to this chat thread.\n\nThe file is built from the request, which is what the person sees. The chat's saved deck is only created here when\nthe chat has none yet (the assistant's outline): an export never replaces a saved deck, since the request is a\nprojection of it that leaves out fields and bumps the version under the canvas's feet.\nThe narrative stays in the thread and is read back through GET /threads/{thread_id}/context.","operationId":"export_thread_deck_api_v1_manager_threads__thread_id__deck_export_post","security":[{"HTTPBearer":[]}],"parameters":[{"name":"thread_id","in":"path","required":true,"schema":{"type":"string","title":"Thread Id"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/DeckExportRequest"}}}},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/DeckExportDownloadResponse"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}},"get":{"tags":["manager"],"summary":"Redownload Thread Deck","description":"Re-download the same deck an earlier export produced.\n\nThis is the URL export_deck's file line actually points a chat user at, so it has\nto be servable with a plain GET and no request body -- it rebuilds the file\ndeterministically from the skeleton the POST persisted, rather than requiring the\noriginal outline payload again.","operationId":"redownload_thread_deck_api_v1_manager_threads__thread_id__deck_export_get","security":[{"HTTPBearer":[]}],"parameters":[{"name":"thread_id","in":"path","required":true,"schema":{"type":"string","title":"Thread Id"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/DeckExportDownloadResponse"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/v1/manager/threads/{thread_id}/deck":{"get":{"tags":["manager"],"summary":"Get Thread Deck Draft","description":"Retrieve the current persisted deck draft for a thread.\n\nA chat that never had a slide canvas answers an empty draft at version 0 (what the first save expects), not 404:\nevery chat page asks, so \"none yet\" is the normal answer rather than an error.","operationId":"get_thread_deck_draft_api_v1_manager_threads__thread_id__deck_get","security":[{"HTTPBearer":[]}],"parameters":[{"name":"thread_id","in":"path","required":true,"schema":{"type":"string","title":"Thread Id"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/DeckDraftResponse"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}},"put":{"tags":["manager"],"summary":"Update Thread Deck Draft","description":"Atomically update the persisted deck draft for a thread with OCC.","operationId":"update_thread_deck_draft_api_v1_manager_threads__thread_id__deck_put","security":[{"HTTPBearer":[]}],"parameters":[{"name":"thread_id","in":"path","required":true,"schema":{"type":"string","title":"Thread Id"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/DeckDraftUpdateRequest"}}}},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/DeckDraftResponse"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/v1/manager/threads/{thread_id}/context":{"get":{"tags":["manager"],"summary":"Get Thread Context","description":"Serve a chat thread's own content, verbatim, to the add-in and the slide services.\n\nThis is the single source of deck context. Callers identify a thread by the\nbrae:session_id tag on the exported .pptx.","operationId":"get_thread_context_api_v1_manager_threads__thread_id__context_get","security":[{"HTTPBearer":[]}],"parameters":[{"name":"thread_id","in":"path","required":true,"schema":{"type":"string","title":"Thread Id"}},{"name":"deal_workspace_id","in":"query","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Deal Workspace Id"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ThreadContextResponse"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/v1/workspaces/{deal_workspace_id}/manager/threads/{thread_id}/workflow-runs":{"get":{"tags":["manager-workflow-runs"],"summary":"List Thread Workflow Runs","operationId":"list_thread_workflow_runs_api_v1_workspaces__deal_workspace_id__manager_threads__thread_id__workflow_runs_get","security":[{"HTTPBearer":[]}],"parameters":[{"name":"deal_workspace_id","in":"path","required":true,"schema":{"type":"string","title":"Deal Workspace Id"}},{"name":"thread_id","in":"path","required":true,"schema":{"type":"string","title":"Thread Id"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"type":"object","additionalProperties":{"type":"array","items":{"$ref":"#/components/schemas/WorkflowRunLink"}},"title":"Response List Thread Workflow Runs Api V1 Workspaces  Deal Workspace Id  Manager Threads  Thread Id  Workflow Runs Get"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/v1/manager/threads/{thread_id}/workflow-runs":{"get":{"tags":["manager-workflow-runs"],"summary":"List Chat Workflow Runs","operationId":"list_chat_workflow_runs_api_v1_manager_threads__thread_id__workflow_runs_get","security":[{"HTTPBearer":[]}],"parameters":[{"name":"thread_id","in":"path","required":true,"schema":{"type":"string","title":"Thread Id"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"type":"object","additionalProperties":{"type":"array","items":{"$ref":"#/components/schemas/WorkflowRunLink"}},"title":"Response List Chat Workflow Runs Api V1 Manager Threads  Thread Id  Workflow Runs Get"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/v1/manager/threads/{thread_id}/slide-outline/runs/{run_id}/stream":{"get":{"tags":["manager-slide-outline"],"summary":"Stream Chat Run","operationId":"stream_chat_run_api_v1_manager_threads__thread_id__slide_outline_runs__run_id__stream_get","security":[{"HTTPBearer":[]}],"parameters":[{"name":"thread_id","in":"path","required":true,"schema":{"type":"string","title":"Thread Id"}},{"name":"run_id","in":"path","required":true,"schema":{"type":"string","title":"Run Id"}},{"name":"after_seq","in":"query","required":false,"schema":{"type":"integer","default":0,"title":"After Seq"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/v1/manager/threads/{thread_id}/slide-outline/runs/{run_id}/slides/{position}/retry":{"post":{"tags":["manager-slide-outline"],"summary":"Retry Chat Slide","operationId":"retry_chat_slide_api_v1_manager_threads__thread_id__slide_outline_runs__run_id__slides__position__retry_post","security":[{"HTTPBearer":[]}],"parameters":[{"name":"thread_id","in":"path","required":true,"schema":{"type":"string","title":"Thread Id"}},{"name":"run_id","in":"path","required":true,"schema":{"type":"string","title":"Run Id"}},{"name":"position","in":"path","required":true,"schema":{"type":"integer","title":"Position"}},{"name":"deal_workspace_id","in":"query","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Deal Workspace Id"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/RetrySlideRequest"}}}},"responses":{"202":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/RetrySlideResponse"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/v1/workspaces/{workspace_id}/slide-outline/runs":{"post":{"tags":["slide-service"],"summary":"Start Run","operationId":"start_run_api_v1_workspaces__workspace_id__slide_outline_runs_post","security":[{"HTTPBearer":[]}],"parameters":[{"name":"workspace_id","in":"path","required":true,"schema":{"type":"string","title":"Workspace Id"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/StartRunRequest"}}}},"responses":{"202":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/StartRunResponse"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/v1/workspaces/{workspace_id}/slide-outline/runs/{run_id}/status":{"get":{"tags":["slide-service"],"summary":"Get Run Status","operationId":"get_run_status_api_v1_workspaces__workspace_id__slide_outline_runs__run_id__status_get","security":[{"HTTPBearer":[]}],"parameters":[{"name":"workspace_id","in":"path","required":true,"schema":{"type":"string","title":"Workspace Id"}},{"name":"run_id","in":"path","required":true,"schema":{"type":"string","title":"Run Id"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/RunStatusResponse"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/v1/workspaces/{workspace_id}/slide-outline/runs/{run_id}/stream":{"get":{"tags":["slide-service"],"summary":"Stream Run","description":"SSE stream of slide.running / slide.ready / slide.failed / run.finished events.\n\nDelegates entirely to Stream Core (agentic_be.streaming) for replay-by-seq and live\nfanout -- the same durable event log deck_composer's own session stream uses. This\nroute supplies only the workspace check, the stream key, and a status snapshot for a\nclient that connects mid-run.","operationId":"stream_run_api_v1_workspaces__workspace_id__slide_outline_runs__run_id__stream_get","security":[{"HTTPBearer":[]}],"parameters":[{"name":"workspace_id","in":"path","required":true,"schema":{"type":"string","title":"Workspace Id"}},{"name":"run_id","in":"path","required":true,"schema":{"type":"string","title":"Run Id"}},{"name":"after_seq","in":"query","required":false,"schema":{"type":"integer","default":0,"title":"After Seq"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/v1/workspaces/{workspace_id}/slide-outline/runs/{run_id}/slides/{position}/retry":{"post":{"tags":["slide-service"],"summary":"Retry Slide","description":"Requeues one failed slide of a run and returns at once.\n\nThe slide regenerates in the background from the seed stored with the run, outline\nrow included; its result arrives on the run's stream like any other slide. Answering\nbefore generation keeps the request far inside the edge proxy's response limit.","operationId":"retry_slide_api_v1_workspaces__workspace_id__slide_outline_runs__run_id__slides__position__retry_post","security":[{"HTTPBearer":[]}],"parameters":[{"name":"workspace_id","in":"path","required":true,"schema":{"type":"string","title":"Workspace Id"}},{"name":"run_id","in":"path","required":true,"schema":{"type":"string","title":"Run Id"}},{"name":"position","in":"path","required":true,"schema":{"type":"integer","title":"Position"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/RetrySlideRequest"}}}},"responses":{"202":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/RetrySlideResponse"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/v1/workspaces/{workspace_id}/slide-outline/generate-slide":{"post":{"tags":["slide-service"],"summary":"Generate Slide","operationId":"generate_slide_api_v1_workspaces__workspace_id__slide_outline_generate_slide_post","security":[{"HTTPBearer":[]}],"parameters":[{"name":"workspace_id","in":"path","required":true,"schema":{"type":"string","title":"Workspace Id"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/GenerateSingleSlideRequest"}}}},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/SlideBlueprint"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/v1/workspaces/{deal_workspace_id}/template-iteration/sessions/{session_id}/conversational-agent/init":{"post":{"tags":["template-iteration","template-iteration-conversational-agent"],"summary":"Init Conversation","operationId":"init_conversation_api_v1_workspaces__deal_workspace_id__template_iteration_sessions__session_id__conversational_agent_init_post","security":[{"HTTPBearer":[]}],"parameters":[{"name":"session_id","in":"path","required":true,"schema":{"type":"string","title":"Session Id"}},{"name":"deal_workspace_id","in":"path","required":true,"schema":{"type":"string","title":"Deal Workspace Id"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/InitConversationRequest"}}}},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/v1/workspaces/{deal_workspace_id}/template-iteration/sessions/{session_id}/conversational-agent/threads":{"get":{"tags":["template-iteration","template-iteration-conversational-agent"],"summary":"List Threads","operationId":"list_threads_api_v1_workspaces__deal_workspace_id__template_iteration_sessions__session_id__conversational_agent_threads_get","security":[{"HTTPBearer":[]}],"parameters":[{"name":"session_id","in":"path","required":true,"schema":{"type":"string","title":"Session Id"}},{"name":"deal_workspace_id","in":"path","required":true,"schema":{"type":"string","title":"Deal Workspace Id"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/v1/workspaces/{deal_workspace_id}/template-iteration/sessions/{session_id}/conversational-agent/threads/{thread_id}":{"delete":{"tags":["template-iteration","template-iteration-conversational-agent"],"summary":"Delete Thread","operationId":"delete_thread_api_v1_workspaces__deal_workspace_id__template_iteration_sessions__session_id__conversational_agent_threads__thread_id__delete","security":[{"HTTPBearer":[]}],"parameters":[{"name":"thread_id","in":"path","required":true,"schema":{"type":"string","title":"Thread Id"}},{"name":"session_id","in":"path","required":true,"schema":{"type":"string","title":"Session Id"}},{"name":"deal_workspace_id","in":"path","required":true,"schema":{"type":"string","title":"Deal Workspace Id"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/v1/workspaces/{deal_workspace_id}/template-iteration/sessions/{session_id}/conversational-agent/threads/{thread_id}/rename":{"post":{"tags":["template-iteration","template-iteration-conversational-agent"],"summary":"Rename Thread","operationId":"rename_thread_api_v1_workspaces__deal_workspace_id__template_iteration_sessions__session_id__conversational_agent_threads__thread_id__rename_post","security":[{"HTTPBearer":[]}],"parameters":[{"name":"thread_id","in":"path","required":true,"schema":{"type":"string","title":"Thread Id"}},{"name":"session_id","in":"path","required":true,"schema":{"type":"string","title":"Session Id"}},{"name":"deal_workspace_id","in":"path","required":true,"schema":{"type":"string","title":"Deal Workspace Id"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/RenameConversationRequest"}}}},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/v1/workspaces/{deal_workspace_id}/template-iteration/sessions/{session_id}/conversational-agent/threads/{thread_id}/fork":{"post":{"tags":["template-iteration","template-iteration-conversational-agent"],"summary":"Fork Conversation","operationId":"fork_conversation_api_v1_workspaces__deal_workspace_id__template_iteration_sessions__session_id__conversational_agent_threads__thread_id__fork_post","security":[{"HTTPBearer":[]}],"parameters":[{"name":"thread_id","in":"path","required":true,"schema":{"type":"string","title":"Thread Id"}},{"name":"session_id","in":"path","required":true,"schema":{"type":"string","title":"Session Id"}},{"name":"deal_workspace_id","in":"path","required":true,"schema":{"type":"string","title":"Deal Workspace Id"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ForkThreadRequest"}}}},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/v1/workspaces/{deal_workspace_id}/template-iteration/sessions/{session_id}/conversational-agent/threads/{thread_id}/activate":{"post":{"tags":["template-iteration","template-iteration-conversational-agent"],"summary":"Activate Message","operationId":"activate_message_api_v1_workspaces__deal_workspace_id__template_iteration_sessions__session_id__conversational_agent_threads__thread_id__activate_post","security":[{"HTTPBearer":[]}],"parameters":[{"name":"thread_id","in":"path","required":true,"schema":{"type":"string","title":"Thread Id"}},{"name":"session_id","in":"path","required":true,"schema":{"type":"string","title":"Session Id"}},{"name":"deal_workspace_id","in":"path","required":true,"schema":{"type":"string","title":"Deal Workspace Id"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ActivateMessageRequest"}}}},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/v1/workspaces/{deal_workspace_id}/template-iteration/sessions/{session_id}/conversational-agent/threads/{thread_id}/in-flight":{"get":{"tags":["template-iteration","template-iteration-conversational-agent"],"summary":"Get In Flight Turn","operationId":"get_in_flight_turn_api_v1_workspaces__deal_workspace_id__template_iteration_sessions__session_id__conversational_agent_threads__thread_id__in_flight_get","security":[{"HTTPBearer":[]}],"parameters":[{"name":"thread_id","in":"path","required":true,"schema":{"type":"string","title":"Thread Id"}},{"name":"session_id","in":"path","required":true,"schema":{"type":"string","title":"Session Id"}},{"name":"deal_workspace_id","in":"path","required":true,"schema":{"type":"string","title":"Deal Workspace Id"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/InFlightTurnResponse"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/v1/workspaces/{deal_workspace_id}/template-iteration/sessions/{session_id}/conversational-agent/threads/{thread_id}/turn-starts":{"get":{"tags":["template-iteration","template-iteration-conversational-agent"],"summary":"Watch Turn Starts","operationId":"watch_turn_starts_api_v1_workspaces__deal_workspace_id__template_iteration_sessions__session_id__conversational_agent_threads__thread_id__turn_starts_get","security":[{"HTTPBearer":[]}],"parameters":[{"name":"thread_id","in":"path","required":true,"schema":{"type":"string","title":"Thread Id"}},{"name":"deal_workspace_id","in":"path","required":true,"schema":{"type":"string","title":"Deal Workspace Id"}},{"name":"session_id","in":"path","required":true,"schema":{"type":"string","title":"Session Id"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/v1/workspaces/{deal_workspace_id}/template-iteration/sessions/{session_id}/conversational-agent/threads/in-flight":{"post":{"tags":["template-iteration","template-iteration-conversational-agent"],"summary":"Get In Flight Many","operationId":"get_in_flight_many_api_v1_workspaces__deal_workspace_id__template_iteration_sessions__session_id__conversational_agent_threads_in_flight_post","requestBody":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/InFlightManyRequest"}}},"required":true},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/InFlightManyResponse"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}},"security":[{"HTTPBearer":[]}]}},"/api/v1/workspaces/{deal_workspace_id}/template-iteration/sessions/{session_id}/conversational-agent/threads/{thread_id}/messages/stream":{"post":{"tags":["template-iteration","template-iteration-conversational-agent"],"summary":"Stream Message","operationId":"stream_message_api_v1_workspaces__deal_workspace_id__template_iteration_sessions__session_id__conversational_agent_threads__thread_id__messages_stream_post","security":[{"HTTPBearer":[]}],"parameters":[{"name":"thread_id","in":"path","required":true,"schema":{"type":"string","title":"Thread Id"}},{"name":"session_id","in":"path","required":true,"schema":{"type":"string","title":"Session Id"}},{"name":"deal_workspace_id","in":"path","required":true,"schema":{"type":"string","title":"Deal Workspace Id"}},{"name":"Last-Event-ID","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Last-Event-Id"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/StreamMessageRequest"}}}},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/v1/workspaces/{deal_workspace_id}/template-iteration/sessions/{session_id}/conversational-agent/threads/{thread_id}/turns/{turn_id}/cancel":{"post":{"tags":["template-iteration","template-iteration-conversational-agent"],"summary":"Cancel Turn","operationId":"cancel_turn_api_v1_workspaces__deal_workspace_id__template_iteration_sessions__session_id__conversational_agent_threads__thread_id__turns__turn_id__cancel_post","security":[{"HTTPBearer":[]}],"parameters":[{"name":"thread_id","in":"path","required":true,"schema":{"type":"string","title":"Thread Id"}},{"name":"turn_id","in":"path","required":true,"schema":{"type":"string","title":"Turn Id"}},{"name":"session_id","in":"path","required":true,"schema":{"type":"string","title":"Session Id"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/v1/workspaces/{deal_workspace_id}/template-iteration/sessions/{session_id}/conversational-agent/threads/{thread_id}/turns/{turn_id}/steer":{"post":{"tags":["template-iteration","template-iteration-conversational-agent"],"summary":"Steer Turn","operationId":"steer_turn_api_v1_workspaces__deal_workspace_id__template_iteration_sessions__session_id__conversational_agent_threads__thread_id__turns__turn_id__steer_post","security":[{"HTTPBearer":[]}],"parameters":[{"name":"thread_id","in":"path","required":true,"schema":{"type":"string","title":"Thread Id"}},{"name":"turn_id","in":"path","required":true,"schema":{"type":"string","title":"Turn Id"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/SteerRequest"}}}},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/v1/workspaces/{deal_workspace_id}/template-iteration/sessions/{session_id}/conversational-agent/threads/{thread_id}/turns/{turn_id}/tool-call-answer":{"post":{"tags":["template-iteration","template-iteration-conversational-agent"],"summary":"Submit Tool Call Answer","operationId":"submit_tool_call_answer_api_v1_workspaces__deal_workspace_id__template_iteration_sessions__session_id__conversational_agent_threads__thread_id__turns__turn_id__tool_call_answer_post","security":[{"HTTPBearer":[]}],"parameters":[{"name":"thread_id","in":"path","required":true,"schema":{"type":"string","title":"Thread Id"}},{"name":"turn_id","in":"path","required":true,"schema":{"type":"string","title":"Turn Id"}},{"name":"session_id","in":"path","required":true,"schema":{"type":"string","title":"Session Id"}},{"name":"deal_workspace_id","in":"path","required":true,"schema":{"type":"string","title":"Deal Workspace Id"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/HumanInputAnswer"}}}},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HumanInputAnswerResponse"}}}},"404":{"description":"No parked loop","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HumanInputAnswerError"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/v1/workspaces/{deal_workspace_id}/template-iteration/sessions/{session_id}/conversational-agent/threads/{thread_id}/edits/{edit_id}/accept":{"post":{"tags":["template-iteration","template-iteration-conversational-agent"],"summary":"Accept Edit","operationId":"accept_edit_api_v1_workspaces__deal_workspace_id__template_iteration_sessions__session_id__conversational_agent_threads__thread_id__edits__edit_id__accept_post","security":[{"HTTPBearer":[]}],"parameters":[{"name":"thread_id","in":"path","required":true,"schema":{"type":"string","title":"Thread Id"}},{"name":"edit_id","in":"path","required":true,"schema":{"type":"string","title":"Edit Id"}},{"name":"session_id","in":"path","required":true,"schema":{"type":"string","title":"Session Id"}},{"name":"deal_workspace_id","in":"path","required":true,"schema":{"type":"string","title":"Deal Workspace Id"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ReviewEditRequest"}}}},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/v1/workspaces/{deal_workspace_id}/template-iteration/sessions/{session_id}/conversational-agent/threads/{thread_id}/accept-all":{"post":{"tags":["template-iteration","template-iteration-conversational-agent"],"summary":"Accept All","operationId":"accept_all_api_v1_workspaces__deal_workspace_id__template_iteration_sessions__session_id__conversational_agent_threads__thread_id__accept_all_post","security":[{"HTTPBearer":[]}],"parameters":[{"name":"thread_id","in":"path","required":true,"schema":{"type":"string","title":"Thread Id"}},{"name":"session_id","in":"path","required":true,"schema":{"type":"string","title":"Session Id"}},{"name":"deal_workspace_id","in":"path","required":true,"schema":{"type":"string","title":"Deal Workspace Id"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ReviewEditRequest"}}}},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/v1/workspaces/{deal_workspace_id}/template-iteration/sessions/{session_id}/conversational-agent/threads/{thread_id}/edits/{edit_id}/decline":{"post":{"tags":["template-iteration","template-iteration-conversational-agent"],"summary":"Decline Edit","operationId":"decline_edit_api_v1_workspaces__deal_workspace_id__template_iteration_sessions__session_id__conversational_agent_threads__thread_id__edits__edit_id__decline_post","security":[{"HTTPBearer":[]}],"parameters":[{"name":"thread_id","in":"path","required":true,"schema":{"type":"string","title":"Thread Id"}},{"name":"edit_id","in":"path","required":true,"schema":{"type":"string","title":"Edit Id"}},{"name":"session_id","in":"path","required":true,"schema":{"type":"string","title":"Session Id"}},{"name":"deal_workspace_id","in":"path","required":true,"schema":{"type":"string","title":"Deal Workspace Id"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ReviewEditRequest"}}}},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/v1/workspaces/{deal_workspace_id}/template-iteration/sessions/{session_id}/conversational-agent/threads/{thread_id}/changes/{change_id}/accept":{"post":{"tags":["template-iteration","template-iteration-conversational-agent"],"summary":"Accept Change","operationId":"accept_change_api_v1_workspaces__deal_workspace_id__template_iteration_sessions__session_id__conversational_agent_threads__thread_id__changes__change_id__accept_post","security":[{"HTTPBearer":[]}],"parameters":[{"name":"thread_id","in":"path","required":true,"schema":{"type":"string","title":"Thread Id"}},{"name":"change_id","in":"path","required":true,"schema":{"type":"string","title":"Change Id"}},{"name":"session_id","in":"path","required":true,"schema":{"type":"string","title":"Session Id"}},{"name":"deal_workspace_id","in":"path","required":true,"schema":{"type":"string","title":"Deal Workspace Id"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ReviewEditRequest"}}}},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/v1/workspaces/{deal_workspace_id}/template-iteration/sessions/{session_id}/conversational-agent/threads/{thread_id}/changes/{change_id}/decline":{"post":{"tags":["template-iteration","template-iteration-conversational-agent"],"summary":"Decline Change","operationId":"decline_change_api_v1_workspaces__deal_workspace_id__template_iteration_sessions__session_id__conversational_agent_threads__thread_id__changes__change_id__decline_post","security":[{"HTTPBearer":[]}],"parameters":[{"name":"thread_id","in":"path","required":true,"schema":{"type":"string","title":"Thread Id"}},{"name":"change_id","in":"path","required":true,"schema":{"type":"string","title":"Change Id"}},{"name":"session_id","in":"path","required":true,"schema":{"type":"string","title":"Session Id"}},{"name":"deal_workspace_id","in":"path","required":true,"schema":{"type":"string","title":"Deal Workspace Id"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ReviewEditRequest"}}}},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/v1/workspaces/{deal_workspace_id}/template-iteration/sessions/{session_id}/conversational-agent/proposals/{proposal_id}/approve":{"post":{"tags":["template-iteration","template-iteration-conversational-agent"],"summary":"Approve Proposal","operationId":"approve_proposal_api_v1_workspaces__deal_workspace_id__template_iteration_sessions__session_id__conversational_agent_proposals__proposal_id__approve_post","security":[{"HTTPBearer":[]}],"parameters":[{"name":"proposal_id","in":"path","required":true,"schema":{"type":"string","title":"Proposal Id"}},{"name":"session_id","in":"path","required":true,"schema":{"type":"string","title":"Session Id"}},{"name":"deal_workspace_id","in":"path","required":true,"schema":{"type":"string","title":"Deal Workspace Id"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ApproveProposalRequest"}}}},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/v1/workspaces/{deal_workspace_id}/template-iteration/sessions":{"post":{"tags":["template-iteration"],"summary":"Create Template Iteration Session","operationId":"create_template_iteration_session_api_v1_workspaces__deal_workspace_id__template_iteration_sessions_post","security":[{"HTTPBearer":[]}],"parameters":[{"name":"deal_workspace_id","in":"path","required":true,"schema":{"type":"string","title":"Deal Workspace Id"}}],"requestBody":{"required":true,"content":{"multipart/form-data":{"schema":{"$ref":"#/components/schemas/Body_create_template_iteration_session_api_v1_workspaces__deal_workspace_id__template_iteration_sessions_post"}}}},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}},"get":{"tags":["template-iteration"],"summary":"List Template Iteration Sessions","operationId":"list_template_iteration_sessions_api_v1_workspaces__deal_workspace_id__template_iteration_sessions_get","security":[{"HTTPBearer":[]}],"parameters":[{"name":"deal_workspace_id","in":"path","required":true,"schema":{"type":"string","title":"Deal Workspace Id"}},{"name":"q","in":"query","required":false,"schema":{"type":"string","description":"Optional search across title or session id","default":"","title":"Q"},"description":"Optional search across title or session id"},{"name":"limit","in":"query","required":false,"schema":{"type":"integer","maximum":100,"minimum":1,"description":"Maximum number of sessions to return","default":20,"title":"Limit"},"description":"Maximum number of sessions to return"}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/v1/workspaces/{deal_workspace_id}/template-iteration/sessions/{session_id}":{"get":{"tags":["template-iteration"],"summary":"Get Template Iteration Session","operationId":"get_template_iteration_session_api_v1_workspaces__deal_workspace_id__template_iteration_sessions__session_id__get","security":[{"HTTPBearer":[]}],"parameters":[{"name":"deal_workspace_id","in":"path","required":true,"schema":{"type":"string","title":"Deal Workspace Id"}},{"name":"session_id","in":"path","required":true,"schema":{"type":"string","title":"Session Id"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}},"delete":{"tags":["template-iteration"],"summary":"Delete Template Iteration Session","operationId":"delete_template_iteration_session_api_v1_workspaces__deal_workspace_id__template_iteration_sessions__session_id__delete","security":[{"HTTPBearer":[]}],"parameters":[{"name":"deal_workspace_id","in":"path","required":true,"schema":{"type":"string","title":"Deal Workspace Id"}},{"name":"session_id","in":"path","required":true,"schema":{"type":"string","title":"Session Id"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/TemplateIterationDeleteSessionResponse"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/v1/workspaces/{deal_workspace_id}/template-iteration/sessions/{session_id}/context":{"get":{"tags":["template-iteration"],"summary":"Get Template Iteration Context","operationId":"get_template_iteration_context_api_v1_workspaces__deal_workspace_id__template_iteration_sessions__session_id__context_get","security":[{"HTTPBearer":[]}],"parameters":[{"name":"deal_workspace_id","in":"path","required":true,"schema":{"type":"string","title":"Deal Workspace Id"}},{"name":"session_id","in":"path","required":true,"schema":{"type":"string","title":"Session Id"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/v1/workspaces/{deal_workspace_id}/template-iteration/sessions/{session_id}/context/artifacts":{"post":{"tags":["template-iteration"],"summary":"Add Template Iteration Context Artifacts","operationId":"add_template_iteration_context_artifacts_api_v1_workspaces__deal_workspace_id__template_iteration_sessions__session_id__context_artifacts_post","security":[{"HTTPBearer":[]}],"parameters":[{"name":"deal_workspace_id","in":"path","required":true,"schema":{"type":"string","title":"Deal Workspace Id"}},{"name":"session_id","in":"path","required":true,"schema":{"type":"string","title":"Session Id"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/v1/workspaces/{deal_workspace_id}/template-iteration/sessions/{session_id}/context/artifacts/{artifact_id}":{"delete":{"tags":["template-iteration"],"summary":"Remove Template Iteration Context Artifact","operationId":"remove_template_iteration_context_artifact_api_v1_workspaces__deal_workspace_id__template_iteration_sessions__session_id__context_artifacts__artifact_id__delete","security":[{"HTTPBearer":[]}],"parameters":[{"name":"deal_workspace_id","in":"path","required":true,"schema":{"type":"string","title":"Deal Workspace Id"}},{"name":"session_id","in":"path","required":true,"schema":{"type":"string","title":"Session Id"}},{"name":"artifact_id","in":"path","required":true,"schema":{"type":"string","title":"Artifact Id"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/v1/workspaces/{deal_workspace_id}/template-iteration/sessions/{session_id}/image":{"delete":{"tags":["template-iteration"],"summary":"Clear Template Iteration Current Image","operationId":"clear_template_iteration_current_image_api_v1_workspaces__deal_workspace_id__template_iteration_sessions__session_id__image_delete","security":[{"HTTPBearer":[]}],"parameters":[{"name":"deal_workspace_id","in":"path","required":true,"schema":{"type":"string","title":"Deal Workspace Id"}},{"name":"session_id","in":"path","required":true,"schema":{"type":"string","title":"Session Id"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}},"get":{"tags":["template-iteration"],"summary":"Get Template Iteration Image","operationId":"get_template_iteration_image_api_v1_workspaces__deal_workspace_id__template_iteration_sessions__session_id__image_get","security":[{"HTTPBearer":[]}],"parameters":[{"name":"deal_workspace_id","in":"path","required":true,"schema":{"type":"string","title":"Deal Workspace Id"}},{"name":"session_id","in":"path","required":true,"schema":{"type":"string","title":"Session Id"}},{"name":"v","in":"query","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"V"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/v1/workspaces/{deal_workspace_id}/template-iteration/sessions/{session_id}/title":{"patch":{"tags":["template-iteration"],"summary":"Update Template Iteration Title","operationId":"update_template_iteration_title_api_v1_workspaces__deal_workspace_id__template_iteration_sessions__session_id__title_patch","security":[{"HTTPBearer":[]}],"parameters":[{"name":"deal_workspace_id","in":"path","required":true,"schema":{"type":"string","title":"Deal Workspace Id"}},{"name":"session_id","in":"path","required":true,"schema":{"type":"string","title":"Session Id"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/TemplateIterationTitleUpdateRequest"}}}},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/v1/workspaces/{deal_workspace_id}/template-iteration/sessions/{session_id}/prompt":{"patch":{"tags":["template-iteration"],"summary":"Update Template Iteration Prompt","operationId":"update_template_iteration_prompt_api_v1_workspaces__deal_workspace_id__template_iteration_sessions__session_id__prompt_patch","security":[{"HTTPBearer":[]}],"parameters":[{"name":"deal_workspace_id","in":"path","required":true,"schema":{"type":"string","title":"Deal Workspace Id"}},{"name":"session_id","in":"path","required":true,"schema":{"type":"string","title":"Session Id"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/TemplateIterationPromptUpdateRequest"}}}},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/v1/workspaces/{deal_workspace_id}/template-iteration/sessions/{session_id}/regenerate-image":{"post":{"tags":["template-iteration"],"summary":"Regenerate Template Iteration Image","operationId":"regenerate_template_iteration_image_api_v1_workspaces__deal_workspace_id__template_iteration_sessions__session_id__regenerate_image_post","security":[{"HTTPBearer":[]}],"parameters":[{"name":"deal_workspace_id","in":"path","required":true,"schema":{"type":"string","title":"Deal Workspace Id"}},{"name":"session_id","in":"path","required":true,"schema":{"type":"string","title":"Session Id"}}],"requestBody":{"content":{"application/json":{"schema":{"anyOf":[{"$ref":"#/components/schemas/TemplateIterationImageRegenerateRequest"},{"type":"null"}],"title":"Payload"}}}},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/v1/workspaces/{deal_workspace_id}/template-iteration/sessions/{session_id}/regenerate-annotated":{"post":{"tags":["template-iteration"],"summary":"Regenerate Template Iteration Image Annotated","operationId":"regenerate_template_iteration_image_annotated_api_v1_workspaces__deal_workspace_id__template_iteration_sessions__session_id__regenerate_annotated_post","security":[{"HTTPBearer":[]}],"parameters":[{"name":"deal_workspace_id","in":"path","required":true,"schema":{"type":"string","title":"Deal Workspace Id"}},{"name":"session_id","in":"path","required":true,"schema":{"type":"string","title":"Session Id"}}],"requestBody":{"required":true,"content":{"multipart/form-data":{"schema":{"$ref":"#/components/schemas/Body_regenerate_template_iteration_image_annotated_api_v1_workspaces__deal_workspace_id__template_iteration_sessions__session_id__regenerate_annotated_post"}}}},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/TemplateIterationCreateSessionResponse"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/v1/workspaces/{deal_workspace_id}/template-iteration/sessions/{session_id}/artifacts/{artifact_id}":{"get":{"tags":["template-iteration"],"summary":"Get Template Iteration Artifact","operationId":"get_template_iteration_artifact_api_v1_workspaces__deal_workspace_id__template_iteration_sessions__session_id__artifacts__artifact_id__get","security":[{"HTTPBearer":[]}],"parameters":[{"name":"deal_workspace_id","in":"path","required":true,"schema":{"type":"string","title":"Deal Workspace Id"}},{"name":"session_id","in":"path","required":true,"schema":{"type":"string","title":"Session Id"}},{"name":"artifact_id","in":"path","required":true,"schema":{"type":"string","title":"Artifact Id"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/v1/workspaces/{deal_workspace_id}/template-iteration/sessions/{session_id}/synthesize-annotation":{"post":{"tags":["template-iteration"],"summary":"Synthesize Template Iteration Annotation","operationId":"synthesize_template_iteration_annotation_api_v1_workspaces__deal_workspace_id__template_iteration_sessions__session_id__synthesize_annotation_post","security":[{"HTTPBearer":[]}],"parameters":[{"name":"deal_workspace_id","in":"path","required":true,"schema":{"type":"string","title":"Deal Workspace Id"}},{"name":"session_id","in":"path","required":true,"schema":{"type":"string","title":"Session Id"}}],"requestBody":{"required":true,"content":{"multipart/form-data":{"schema":{"$ref":"#/components/schemas/Body_synthesize_template_iteration_annotation_api_v1_workspaces__deal_workspace_id__template_iteration_sessions__session_id__synthesize_annotation_post"}}}},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/v1/workspaces/{deal_workspace_id}/template-iteration/sessions/{session_id}/regenerate-with-mask":{"post":{"tags":["template-iteration"],"summary":"Regenerate Template Iteration Image With Mask","operationId":"regenerate_template_iteration_image_with_mask_api_v1_workspaces__deal_workspace_id__template_iteration_sessions__session_id__regenerate_with_mask_post","security":[{"HTTPBearer":[]}],"parameters":[{"name":"deal_workspace_id","in":"path","required":true,"schema":{"type":"string","title":"Deal Workspace Id"}},{"name":"session_id","in":"path","required":true,"schema":{"type":"string","title":"Session Id"}}],"requestBody":{"required":true,"content":{"multipart/form-data":{"schema":{"$ref":"#/components/schemas/Body_regenerate_template_iteration_image_with_mask_api_v1_workspaces__deal_workspace_id__template_iteration_sessions__session_id__regenerate_with_mask_post"}}}},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/TemplateIterationCreateSessionResponse"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/v1/workspaces/{deal_workspace_id}/image-versioning/registries/{registry_id}/history":{"get":{"tags":["image-versioning"],"summary":"Get History","operationId":"get_history_api_v1_workspaces__deal_workspace_id__image_versioning_registries__registry_id__history_get","security":[{"HTTPBearer":[]}],"parameters":[{"name":"deal_workspace_id","in":"path","required":true,"schema":{"type":"string","title":"Deal Workspace Id"}},{"name":"registry_id","in":"path","required":true,"schema":{"type":"string","title":"Registry Id"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/v1/workspaces/{deal_workspace_id}/image-versioning/registries/{registry_id}/rollback":{"post":{"tags":["image-versioning"],"summary":"Rollback","operationId":"rollback_api_v1_workspaces__deal_workspace_id__image_versioning_registries__registry_id__rollback_post","security":[{"HTTPBearer":[]}],"parameters":[{"name":"deal_workspace_id","in":"path","required":true,"schema":{"type":"string","title":"Deal Workspace Id"}},{"name":"registry_id","in":"path","required":true,"schema":{"type":"string","title":"Registry Id"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/RollbackRequest"}}}},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/v1/workspaces/{deal_workspace_id}/image-versioning/registries/{registry_id}/branches/rename":{"post":{"tags":["image-versioning"],"summary":"Rename Branch","operationId":"rename_branch_api_v1_workspaces__deal_workspace_id__image_versioning_registries__registry_id__branches_rename_post","security":[{"HTTPBearer":[]}],"parameters":[{"name":"deal_workspace_id","in":"path","required":true,"schema":{"type":"string","title":"Deal Workspace Id"}},{"name":"registry_id","in":"path","required":true,"schema":{"type":"string","title":"Registry Id"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/RenameBranchRequest"}}}},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/v1/workspaces/{deal_workspace_id}/image-versioning/registries/{registry_id}/versions/{version_id}/label":{"patch":{"tags":["image-versioning"],"summary":"Update Label","operationId":"update_label_api_v1_workspaces__deal_workspace_id__image_versioning_registries__registry_id__versions__version_id__label_patch","security":[{"HTTPBearer":[]}],"parameters":[{"name":"deal_workspace_id","in":"path","required":true,"schema":{"type":"string","title":"Deal Workspace Id"}},{"name":"registry_id","in":"path","required":true,"schema":{"type":"string","title":"Registry Id"}},{"name":"version_id","in":"path","required":true,"schema":{"type":"string","title":"Version Id"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/UpdateLabelRequest"}}}},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/v1/workspaces/{deal_workspace_id}/image-versioning/registries/{registry_id}/versions/{version_id}/image":{"get":{"tags":["image-versioning"],"summary":"Get Version Image","operationId":"get_version_image_api_v1_workspaces__deal_workspace_id__image_versioning_registries__registry_id__versions__version_id__image_get","security":[{"HTTPBearer":[]}],"parameters":[{"name":"deal_workspace_id","in":"path","required":true,"schema":{"type":"string","title":"Deal Workspace Id"}},{"name":"registry_id","in":"path","required":true,"schema":{"type":"string","title":"Registry Id"}},{"name":"version_id","in":"path","required":true,"schema":{"type":"string","title":"Version Id"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/v1/workspaces/{deal_workspace_id}/image-versioning/registries/{registry_id}/versions/{version_id}/annotation-image":{"get":{"tags":["image-versioning"],"summary":"Get Version Annotation Image","operationId":"get_version_annotation_image_api_v1_workspaces__deal_workspace_id__image_versioning_registries__registry_id__versions__version_id__annotation_image_get","security":[{"HTTPBearer":[]}],"parameters":[{"name":"deal_workspace_id","in":"path","required":true,"schema":{"type":"string","title":"Deal Workspace Id"}},{"name":"registry_id","in":"path","required":true,"schema":{"type":"string","title":"Registry Id"}},{"name":"version_id","in":"path","required":true,"schema":{"type":"string","title":"Version Id"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/v1/workspaces/{deal_workspace_id}/crm/projects/create":{"post":{"tags":["Workspace CRM Projects"],"summary":"Create Workspace Project","operationId":"create_workspace_project_api_v1_workspaces__deal_workspace_id__crm_projects_create_post","security":[{"HTTPBearer":[]}],"parameters":[{"name":"deal_workspace_id","in":"path","required":true,"schema":{"type":"string","title":"Deal Workspace Id"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ProjectCreate"}}}},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Project"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/v1/workspaces/{deal_workspace_id}/crm/projects/list":{"get":{"tags":["Workspace CRM Projects"],"summary":"List Workspace Projects","operationId":"list_workspace_projects_api_v1_workspaces__deal_workspace_id__crm_projects_list_get","security":[{"HTTPBearer":[]}],"parameters":[{"name":"deal_workspace_id","in":"path","required":true,"schema":{"type":"string","title":"Deal Workspace Id"}},{"name":"status","in":"query","required":false,"schema":{"anyOf":[{"$ref":"#/components/schemas/ProjectStatus"},{"type":"null"}],"title":"Status"}},{"name":"include_dropped","in":"query","required":false,"schema":{"type":"boolean","description":"Include dropped projects","default":false,"title":"Include Dropped"},"description":"Include dropped projects"},{"name":"include_closed","in":"query","required":false,"schema":{"type":"boolean","description":"Include closed projects","default":false,"title":"Include Closed"},"description":"Include closed projects"},{"name":"include_deleted","in":"query","required":false,"schema":{"type":"boolean","description":"Include deleted projects","default":false,"title":"Include Deleted"},"description":"Include deleted projects"},{"name":"batch_id","in":"query","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"description":"Filter projects by CRM batch","title":"Batch Id"},"description":"Filter projects by CRM batch"}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"type":"array","items":{"$ref":"#/components/schemas/Project"},"title":"Response List Workspace Projects Api V1 Workspaces  Deal Workspace Id  Crm Projects List Get"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/v1/workspaces/{deal_workspace_id}/crm/projects/{crm_project_id}":{"get":{"tags":["Workspace CRM Projects"],"summary":"Get Workspace Project","operationId":"get_workspace_project_api_v1_workspaces__deal_workspace_id__crm_projects__crm_project_id__get","security":[{"HTTPBearer":[]}],"parameters":[{"name":"deal_workspace_id","in":"path","required":true,"schema":{"type":"string","title":"Deal Workspace Id"}},{"name":"crm_project_id","in":"path","required":true,"schema":{"type":"string","title":"Crm Project Id"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Project"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}},"put":{"tags":["Workspace CRM Projects"],"summary":"Update Workspace Project","operationId":"update_workspace_project_api_v1_workspaces__deal_workspace_id__crm_projects__crm_project_id__put","security":[{"HTTPBearer":[]}],"parameters":[{"name":"deal_workspace_id","in":"path","required":true,"schema":{"type":"string","title":"Deal Workspace Id"}},{"name":"crm_project_id","in":"path","required":true,"schema":{"type":"string","title":"Crm Project Id"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ProjectUpdate"}}}},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Project"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}},"delete":{"tags":["Workspace CRM Projects"],"summary":"Delete Workspace Project","operationId":"delete_workspace_project_api_v1_workspaces__deal_workspace_id__crm_projects__crm_project_id__delete","security":[{"HTTPBearer":[]}],"parameters":[{"name":"deal_workspace_id","in":"path","required":true,"schema":{"type":"string","title":"Deal Workspace Id"}},{"name":"crm_project_id","in":"path","required":true,"schema":{"type":"string","title":"Crm Project Id"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/v1/workspaces/{deal_workspace_id}/crm/projects/{crm_project_id}/duplicate-template":{"post":{"tags":["Workspace CRM Projects"],"summary":"Duplicate Workspace Project Template","operationId":"duplicate_workspace_project_template_api_v1_workspaces__deal_workspace_id__crm_projects__crm_project_id__duplicate_template_post","security":[{"HTTPBearer":[]}],"parameters":[{"name":"deal_workspace_id","in":"path","required":true,"schema":{"type":"string","title":"Deal Workspace Id"}},{"name":"crm_project_id","in":"path","required":true,"schema":{"type":"string","title":"Crm Project Id"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ProjectDuplicateTemplateRequest"}}}},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Project"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/v1/workspaces/{deal_workspace_id}/crm/projects/{crm_project_id}/stats":{"get":{"tags":["Workspace CRM Projects"],"summary":"Get Workspace Project Stats","operationId":"get_workspace_project_stats_api_v1_workspaces__deal_workspace_id__crm_projects__crm_project_id__stats_get","security":[{"HTTPBearer":[]}],"parameters":[{"name":"deal_workspace_id","in":"path","required":true,"schema":{"type":"string","title":"Deal Workspace Id"}},{"name":"crm_project_id","in":"path","required":true,"schema":{"type":"string","title":"Crm Project Id"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"anyOf":[{"$ref":"#/components/schemas/ProjectStatsResponse"},{"type":"object","additionalProperties":true}],"title":"Response Get Workspace Project Stats Api V1 Workspaces  Deal Workspace Id  Crm Projects  Crm Project Id  Stats Get"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/v1/workspaces/{deal_workspace_id}/crm/projects/{crm_project_id}/summary":{"get":{"tags":["Workspace CRM Projects"],"summary":"Get Workspace Project Summary","operationId":"get_workspace_project_summary_api_v1_workspaces__deal_workspace_id__crm_projects__crm_project_id__summary_get","security":[{"HTTPBearer":[]}],"parameters":[{"name":"deal_workspace_id","in":"path","required":true,"schema":{"type":"string","title":"Deal Workspace Id"}},{"name":"crm_project_id","in":"path","required":true,"schema":{"type":"string","title":"Crm Project Id"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/v1/workspaces/{deal_workspace_id}/crm/projects/{crm_project_id}/mail-templates":{"get":{"tags":["Workspace CRM Projects"],"summary":"Get Workspace Project Templates","operationId":"get_workspace_project_templates_api_v1_workspaces__deal_workspace_id__crm_projects__crm_project_id__mail_templates_get","security":[{"HTTPBearer":[]}],"parameters":[{"name":"deal_workspace_id","in":"path","required":true,"schema":{"type":"string","title":"Deal Workspace Id"}},{"name":"crm_project_id","in":"path","required":true,"schema":{"type":"string","title":"Crm Project Id"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/v1/workspaces/{deal_workspace_id}/crm/projects/{crm_project_id}/mail-events":{"get":{"tags":["Workspace CRM Projects"],"summary":"Get Workspace Project Mail Events","operationId":"get_workspace_project_mail_events_api_v1_workspaces__deal_workspace_id__crm_projects__crm_project_id__mail_events_get","security":[{"HTTPBearer":[]}],"parameters":[{"name":"deal_workspace_id","in":"path","required":true,"schema":{"type":"string","title":"Deal Workspace Id"}},{"name":"crm_project_id","in":"path","required":true,"schema":{"type":"string","title":"Crm Project Id"}},{"name":"limit","in":"query","required":false,"schema":{"type":"integer","maximum":500,"minimum":1,"default":100,"title":"Limit"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/v1/workspaces/{deal_workspace_id}/crm/batches":{"get":{"tags":["Workspace CRM Project Batches"],"summary":"List Workspace Batches","operationId":"list_workspace_batches_api_v1_workspaces__deal_workspace_id__crm_batches_get","security":[{"HTTPBearer":[]}],"parameters":[{"name":"deal_workspace_id","in":"path","required":true,"schema":{"type":"string","title":"Deal Workspace Id"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"type":"array","items":{"$ref":"#/components/schemas/ProjectBatchResponse"},"title":"Response List Workspace Batches Api V1 Workspaces  Deal Workspace Id  Crm Batches Get"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}},"post":{"tags":["Workspace CRM Project Batches"],"summary":"Create Workspace Batch","operationId":"create_workspace_batch_api_v1_workspaces__deal_workspace_id__crm_batches_post","security":[{"HTTPBearer":[]}],"parameters":[{"name":"deal_workspace_id","in":"path","required":true,"schema":{"type":"string","title":"Deal Workspace Id"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ProjectBatchCreate"}}}},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ProjectBatchResponse"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/v1/workspaces/{deal_workspace_id}/crm/batches/{batch_id}":{"patch":{"tags":["Workspace CRM Project Batches"],"summary":"Rename Workspace Batch","operationId":"rename_workspace_batch_api_v1_workspaces__deal_workspace_id__crm_batches__batch_id__patch","security":[{"HTTPBearer":[]}],"parameters":[{"name":"deal_workspace_id","in":"path","required":true,"schema":{"type":"string","title":"Deal Workspace Id"}},{"name":"batch_id","in":"path","required":true,"schema":{"type":"string","title":"Batch Id"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ProjectBatchUpdate"}}}},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ProjectBatchResponse"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}},"delete":{"tags":["Workspace CRM Project Batches"],"summary":"Delete Workspace Batch","operationId":"delete_workspace_batch_api_v1_workspaces__deal_workspace_id__crm_batches__batch_id__delete","security":[{"HTTPBearer":[]}],"parameters":[{"name":"deal_workspace_id","in":"path","required":true,"schema":{"type":"string","title":"Deal Workspace Id"}},{"name":"batch_id","in":"path","required":true,"schema":{"type":"string","title":"Batch Id"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/v1/workspaces/{deal_workspace_id}/crm/projects/{crm_project_id}/contacts":{"post":{"tags":["Workspace CRM Contacts"],"summary":"Add Workspace Contact Endpoint","operationId":"add_workspace_contact_endpoint_api_v1_workspaces__deal_workspace_id__crm_projects__crm_project_id__contacts_post","security":[{"HTTPBearer":[]}],"parameters":[{"name":"deal_workspace_id","in":"path","required":true,"schema":{"type":"string","title":"Deal Workspace Id"}},{"name":"crm_project_id","in":"path","required":true,"schema":{"type":"string","title":"Crm Project Id"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/AddContactRequest"}}}},"responses":{"201":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/agentic_be__crm__schemas__contact_schemas__Contact"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}},"get":{"tags":["Workspace CRM Contacts"],"summary":"Get Workspace Contacts Endpoint","operationId":"get_workspace_contacts_endpoint_api_v1_workspaces__deal_workspace_id__crm_projects__crm_project_id__contacts_get","security":[{"HTTPBearer":[]}],"parameters":[{"name":"deal_workspace_id","in":"path","required":true,"schema":{"type":"string","title":"Deal Workspace Id"}},{"name":"crm_project_id","in":"path","required":true,"schema":{"type":"string","title":"Crm Project Id"}},{"name":"search","in":"query","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Search"}},{"name":"statuses","in":"query","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Statuses"}},{"name":"page","in":"query","required":false,"schema":{"anyOf":[{"type":"integer","minimum":1},{"type":"null"}],"title":"Page"}},{"name":"page_size","in":"query","required":false,"schema":{"anyOf":[{"type":"integer","maximum":200,"minimum":1},{"type":"null"}],"title":"Page Size"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ListContactsResponse"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/v1/workspaces/{deal_workspace_id}/crm/contacts/{contact_id}":{"get":{"tags":["Workspace CRM Contacts"],"summary":"Get Workspace Contact Endpoint","operationId":"get_workspace_contact_endpoint_api_v1_workspaces__deal_workspace_id__crm_contacts__contact_id__get","security":[{"HTTPBearer":[]}],"parameters":[{"name":"deal_workspace_id","in":"path","required":true,"schema":{"type":"string","title":"Deal Workspace Id"}},{"name":"contact_id","in":"path","required":true,"schema":{"type":"string","title":"Contact Id"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/agentic_be__crm__schemas__contact_schemas__Contact"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}},"patch":{"tags":["Workspace CRM Contacts"],"summary":"Update Workspace Contact Endpoint","operationId":"update_workspace_contact_endpoint_api_v1_workspaces__deal_workspace_id__crm_contacts__contact_id__patch","security":[{"HTTPBearer":[]}],"parameters":[{"name":"deal_workspace_id","in":"path","required":true,"schema":{"type":"string","title":"Deal Workspace Id"}},{"name":"contact_id","in":"path","required":true,"schema":{"type":"string","title":"Contact Id"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/UpdateContactRequest"}}}},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/agentic_be__crm__schemas__contact_schemas__Contact"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}},"delete":{"tags":["Workspace CRM Contacts"],"summary":"Delete Workspace Contact Endpoint","operationId":"delete_workspace_contact_endpoint_api_v1_workspaces__deal_workspace_id__crm_contacts__contact_id__delete","security":[{"HTTPBearer":[]}],"parameters":[{"name":"deal_workspace_id","in":"path","required":true,"schema":{"type":"string","title":"Deal Workspace Id"}},{"name":"contact_id","in":"path","required":true,"schema":{"type":"string","title":"Contact Id"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/DeleteContactResponse"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/v1/workspaces/{deal_workspace_id}/crm/projects/{crm_project_id}/contacts/import":{"post":{"tags":["Workspace CRM Contacts"],"summary":"Import Workspace Contacts Endpoint","operationId":"import_workspace_contacts_endpoint_api_v1_workspaces__deal_workspace_id__crm_projects__crm_project_id__contacts_import_post","security":[{"HTTPBearer":[]}],"parameters":[{"name":"deal_workspace_id","in":"path","required":true,"schema":{"type":"string","title":"Deal Workspace Id"}},{"name":"crm_project_id","in":"path","required":true,"schema":{"type":"string","title":"Crm Project Id"}}],"requestBody":{"required":true,"content":{"multipart/form-data":{"schema":{"$ref":"#/components/schemas/Body_import_workspace_contacts_endpoint_api_v1_workspaces__deal_workspace_id__crm_projects__crm_project_id__contacts_import_post"}}}},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ImportContactsResponse"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/v1/workspaces/{deal_workspace_id}/crm/contacts/bulk/delete":{"post":{"tags":["Workspace CRM Contacts"],"summary":"Bulk Delete Workspace Contacts Endpoint","operationId":"bulk_delete_workspace_contacts_endpoint_api_v1_workspaces__deal_workspace_id__crm_contacts_bulk_delete_post","security":[{"HTTPBearer":[]}],"parameters":[{"name":"deal_workspace_id","in":"path","required":true,"schema":{"type":"string","title":"Deal Workspace Id"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/BulkDeleteContactsRequest"}}}},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/BulkDeleteContactsResponse"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/v1/workspaces/{deal_workspace_id}/crm/contacts/move":{"post":{"tags":["Workspace CRM Contacts"],"summary":"Move Workspace Contacts Endpoint","operationId":"move_workspace_contacts_endpoint_api_v1_workspaces__deal_workspace_id__crm_contacts_move_post","security":[{"HTTPBearer":[]}],"parameters":[{"name":"deal_workspace_id","in":"path","required":true,"schema":{"type":"string","title":"Deal Workspace Id"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/MoveContactsRequest"}}}},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/MoveContactsResponse"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/v1/workspaces/{deal_workspace_id}/crm/contacts/batch-synergy":{"post":{"tags":["Workspace CRM Contacts"],"summary":"Batch Set Workspace Synergy Endpoint","description":"Batch toggle synergy for contacts owned by the route workspace.","operationId":"batch_set_workspace_synergy_endpoint_api_v1_workspaces__deal_workspace_id__crm_contacts_batch_synergy_post","security":[{"HTTPBearer":[]}],"parameters":[{"name":"deal_workspace_id","in":"path","required":true,"schema":{"type":"string","title":"Deal Workspace Id"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/BulkSetSynergyRequest"}}}},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/BulkSetSynergyResponse"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/v1/workspaces/{deal_workspace_id}/crm/contacts/{contact_id}/generate-sequence":{"post":{"tags":["Workspace CRM Contacts"],"summary":"Generate Workspace Contact Sequence Endpoint","operationId":"generate_workspace_contact_sequence_endpoint_api_v1_workspaces__deal_workspace_id__crm_contacts__contact_id__generate_sequence_post","security":[{"HTTPBearer":[]}],"parameters":[{"name":"deal_workspace_id","in":"path","required":true,"schema":{"type":"string","title":"Deal Workspace Id"}},{"name":"contact_id","in":"path","required":true,"schema":{"type":"string","title":"Contact Id"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/GenerateEmailSequenceRequest"}}}},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/GenerateEmailSequenceResponse"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/v1/workspaces/{deal_workspace_id}/crm/contacts/projects/{crm_project_id}/synergy":{"post":{"tags":["Workspace CRM Contacts"],"summary":"Set Workspace Project Sequence Synergy Endpoint","operationId":"set_workspace_project_sequence_synergy_endpoint_api_v1_workspaces__deal_workspace_id__crm_contacts_projects__crm_project_id__synergy_post","security":[{"HTTPBearer":[]}],"parameters":[{"name":"deal_workspace_id","in":"path","required":true,"schema":{"type":"string","title":"Deal Workspace Id"}},{"name":"crm_project_id","in":"path","required":true,"schema":{"type":"string","title":"Crm Project Id"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/SequenceSynergyRequest"}}}},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ProjectSequenceTemplateResponse"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/v1/workspaces/{deal_workspace_id}/crm/contacts/{contact_id}/synergy":{"post":{"tags":["Workspace CRM Contacts"],"summary":"Set Workspace Contact Sequence Synergy Endpoint","operationId":"set_workspace_contact_sequence_synergy_endpoint_api_v1_workspaces__deal_workspace_id__crm_contacts__contact_id__synergy_post","security":[{"HTTPBearer":[]}],"parameters":[{"name":"deal_workspace_id","in":"path","required":true,"schema":{"type":"string","title":"Deal Workspace Id"}},{"name":"contact_id","in":"path","required":true,"schema":{"type":"string","title":"Contact Id"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/SequenceSynergyRequest"}}}},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ContactSequenceTemplateResponse"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/v1/workspaces/{deal_workspace_id}/crm/contacts/{contact_id}/reset-template":{"post":{"tags":["Workspace CRM Contacts"],"summary":"Reset Workspace Contact Sequence Template Endpoint","operationId":"reset_workspace_contact_sequence_template_endpoint_api_v1_workspaces__deal_workspace_id__crm_contacts__contact_id__reset_template_post","security":[{"HTTPBearer":[]}],"parameters":[{"name":"deal_workspace_id","in":"path","required":true,"schema":{"type":"string","title":"Deal Workspace Id"}},{"name":"contact_id","in":"path","required":true,"schema":{"type":"string","title":"Contact Id"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ContactSequenceTemplateResponse"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/v1/workspaces/{deal_workspace_id}/crm/contacts/projects/{crm_project_id}/generate-all-emails":{"post":{"tags":["Workspace CRM Contacts"],"summary":"Generate Workspace Project Emails Endpoint","operationId":"generate_workspace_project_emails_endpoint_api_v1_workspaces__deal_workspace_id__crm_contacts_projects__crm_project_id__generate_all_emails_post","security":[{"HTTPBearer":[]}],"parameters":[{"name":"deal_workspace_id","in":"path","required":true,"schema":{"type":"string","title":"Deal Workspace Id"}},{"name":"crm_project_id","in":"path","required":true,"schema":{"type":"string","title":"Crm Project Id"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/GenerateProjectEmailsRequest"}}}},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/GenerateProjectEmailsResponse"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/v1/workspaces/{deal_workspace_id}/crm/contacts/{contact_id}/status":{"post":{"tags":["Workspace CRM Contacts"],"summary":"Update Workspace Contact Status Endpoint","operationId":"update_workspace_contact_status_endpoint_api_v1_workspaces__deal_workspace_id__crm_contacts__contact_id__status_post","security":[{"HTTPBearer":[]}],"parameters":[{"name":"deal_workspace_id","in":"path","required":true,"schema":{"type":"string","title":"Deal Workspace Id"}},{"name":"contact_id","in":"path","required":true,"schema":{"type":"string","title":"Contact Id"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/UpdateContactStatusRequest"}}}},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/agentic_be__crm__schemas__contact_schemas__Contact"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/v1/workspaces/{deal_workspace_id}/crm/contacts/{contact_id}/brevo-events":{"get":{"tags":["Workspace CRM Contacts"],"summary":"Get Workspace Contact Brevo Events","operationId":"get_workspace_contact_brevo_events_api_v1_workspaces__deal_workspace_id__crm_contacts__contact_id__brevo_events_get","security":[{"HTTPBearer":[]}],"parameters":[{"name":"deal_workspace_id","in":"path","required":true,"schema":{"type":"string","title":"Deal Workspace Id"}},{"name":"contact_id","in":"path","required":true,"schema":{"type":"string","title":"Contact Id"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"type":"object","additionalProperties":true,"title":"Response Get Workspace Contact Brevo Events Api V1 Workspaces  Deal Workspace Id  Crm Contacts  Contact Id  Brevo Events Get"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/v1/workspaces/{deal_workspace_id}/crm/contacts/send-now":{"post":{"tags":["Workspace CRM Contacts"],"summary":"Send Workspace Contacts Next Step Now Endpoint","operationId":"send_workspace_contacts_next_step_now_endpoint_api_v1_workspaces__deal_workspace_id__crm_contacts_send_now_post","security":[{"HTTPBearer":[]}],"parameters":[{"name":"deal_workspace_id","in":"path","required":true,"schema":{"type":"string","title":"Deal Workspace Id"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/BulkSendNowRequest"}}}},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/BulkSendNowResponse"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/v1/workspaces/{deal_workspace_id}/crm/contacts/activate-schedule":{"post":{"tags":["Workspace CRM Contacts"],"summary":"Activate Workspace Schedule","operationId":"activate_workspace_schedule_api_v1_workspaces__deal_workspace_id__crm_contacts_activate_schedule_post","security":[{"HTTPBearer":[]}],"parameters":[{"name":"deal_workspace_id","in":"path","required":true,"schema":{"type":"string","title":"Deal Workspace Id"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ActivateScheduleRequest"}}}},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ActivateScheduleResponse"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/v1/workspaces/{deal_workspace_id}/crm/contacts/reschedule-sequence-bulk":{"post":{"tags":["Workspace CRM Contacts"],"summary":"Reschedule Workspace Sequence Bulk","operationId":"reschedule_workspace_sequence_bulk_api_v1_workspaces__deal_workspace_id__crm_contacts_reschedule_sequence_bulk_post","security":[{"HTTPBearer":[]}],"parameters":[{"name":"deal_workspace_id","in":"path","required":true,"schema":{"type":"string","title":"Deal Workspace Id"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/BulkRescheduleSequenceRequest"}}}},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/BulkRescheduleSequenceResponse"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/v1/workspaces/{deal_workspace_id}/crm/contacts/{contact_id}/pause-schedule":{"post":{"tags":["Workspace CRM Contacts"],"summary":"Pause Workspace Contact Schedule Endpoint","operationId":"pause_workspace_contact_schedule_endpoint_api_v1_workspaces__deal_workspace_id__crm_contacts__contact_id__pause_schedule_post","security":[{"HTTPBearer":[]}],"parameters":[{"name":"deal_workspace_id","in":"path","required":true,"schema":{"type":"string","title":"Deal Workspace Id"}},{"name":"contact_id","in":"path","required":true,"schema":{"type":"string","title":"Contact Id"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/PauseScheduleResponse"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/v1/workspaces/{deal_workspace_id}/crm/contacts/pause-schedule-bulk":{"post":{"tags":["Workspace CRM Contacts"],"summary":"Pause Workspace Contact Schedule Bulk Endpoint","operationId":"pause_workspace_contact_schedule_bulk_endpoint_api_v1_workspaces__deal_workspace_id__crm_contacts_pause_schedule_bulk_post","security":[{"HTTPBearer":[]}],"parameters":[{"name":"deal_workspace_id","in":"path","required":true,"schema":{"type":"string","title":"Deal Workspace Id"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/BulkPauseScheduleRequest"}}}},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/BulkPauseScheduleResponse"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/v1/workspaces/{deal_workspace_id}/crm/contacts/{contact_id}/resume-schedule":{"post":{"tags":["Workspace CRM Contacts"],"summary":"Resume Workspace Contact Schedule Endpoint","operationId":"resume_workspace_contact_schedule_endpoint_api_v1_workspaces__deal_workspace_id__crm_contacts__contact_id__resume_schedule_post","security":[{"HTTPBearer":[]}],"parameters":[{"name":"deal_workspace_id","in":"path","required":true,"schema":{"type":"string","title":"Deal Workspace Id"}},{"name":"contact_id","in":"path","required":true,"schema":{"type":"string","title":"Contact Id"}},{"name":"crm_project_id","in":"query","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"description":"Optional: Update contact's crm_project_id when resuming from pause","title":"Crm Project Id"},"description":"Optional: Update contact's crm_project_id when resuming from pause"}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ResumeScheduleResponse"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/v1/workspaces/{deal_workspace_id}/crm/contacts/resume-schedule-bulk":{"post":{"tags":["Workspace CRM Contacts"],"summary":"Resume Workspace Contact Schedule Bulk Endpoint","operationId":"resume_workspace_contact_schedule_bulk_endpoint_api_v1_workspaces__deal_workspace_id__crm_contacts_resume_schedule_bulk_post","security":[{"HTTPBearer":[]}],"parameters":[{"name":"deal_workspace_id","in":"path","required":true,"schema":{"type":"string","title":"Deal Workspace Id"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/BulkResumeScheduleRequest"}}}},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/BulkResumeScheduleResponse"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/v1/workspaces/{deal_workspace_id}/crm/contacts/{contact_id}/emails":{"get":{"tags":["Workspace CRM Contacts"],"summary":"Get Workspace Contact Emails","operationId":"get_workspace_contact_emails_api_v1_workspaces__deal_workspace_id__crm_contacts__contact_id__emails_get","security":[{"HTTPBearer":[]}],"parameters":[{"name":"deal_workspace_id","in":"path","required":true,"schema":{"type":"string","title":"Deal Workspace Id"}},{"name":"contact_id","in":"path","required":true,"schema":{"type":"string","title":"Contact Id"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/v1/workspaces/{deal_workspace_id}/crm/contacts/{contact_id}/notes":{"get":{"tags":["Workspace CRM Contact Notes"],"summary":"List Contact Notes Endpoint","operationId":"list_contact_notes_endpoint_api_v1_workspaces__deal_workspace_id__crm_contacts__contact_id__notes_get","security":[{"HTTPBearer":[]}],"parameters":[{"name":"deal_workspace_id","in":"path","required":true,"schema":{"type":"string","title":"Deal Workspace Id"}},{"name":"contact_id","in":"path","required":true,"schema":{"type":"string","title":"Contact Id"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"type":"array","items":{"$ref":"#/components/schemas/ContactNoteOut"},"title":"Response List Contact Notes Endpoint Api V1 Workspaces  Deal Workspace Id  Crm Contacts  Contact Id  Notes Get"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}},"post":{"tags":["Workspace CRM Contact Notes"],"summary":"Add Contact Note Endpoint","operationId":"add_contact_note_endpoint_api_v1_workspaces__deal_workspace_id__crm_contacts__contact_id__notes_post","security":[{"HTTPBearer":[]}],"parameters":[{"name":"deal_workspace_id","in":"path","required":true,"schema":{"type":"string","title":"Deal Workspace Id"}},{"name":"contact_id","in":"path","required":true,"schema":{"type":"string","title":"Contact Id"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/CreateContactNoteRequest"}}}},"responses":{"201":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ContactNoteOut"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/v1/workspaces/{deal_workspace_id}/crm/contacts/{contact_id}/notes/{note_id}":{"patch":{"tags":["Workspace CRM Contact Notes"],"summary":"Update Contact Note Endpoint","operationId":"update_contact_note_endpoint_api_v1_workspaces__deal_workspace_id__crm_contacts__contact_id__notes__note_id__patch","security":[{"HTTPBearer":[]}],"parameters":[{"name":"deal_workspace_id","in":"path","required":true,"schema":{"type":"string","title":"Deal Workspace Id"}},{"name":"contact_id","in":"path","required":true,"schema":{"type":"string","title":"Contact Id"}},{"name":"note_id","in":"path","required":true,"schema":{"type":"string","title":"Note Id"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/UpdateContactNoteRequest"}}}},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ContactNoteOut"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}},"delete":{"tags":["Workspace CRM Contact Notes"],"summary":"Delete Contact Note Endpoint","operationId":"delete_contact_note_endpoint_api_v1_workspaces__deal_workspace_id__crm_contacts__contact_id__notes__note_id__delete","security":[{"HTTPBearer":[]}],"parameters":[{"name":"deal_workspace_id","in":"path","required":true,"schema":{"type":"string","title":"Deal Workspace Id"}},{"name":"contact_id","in":"path","required":true,"schema":{"type":"string","title":"Contact Id"}},{"name":"note_id","in":"path","required":true,"schema":{"type":"string","title":"Note Id"}}],"responses":{"204":{"description":"Successful Response"},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/v1/workspaces/{deal_workspace_id}/crm/contacts/mail-overlap":{"post":{"tags":["Workspace CRM Mail Overlap"],"summary":"Check Mail Overlap Endpoint","operationId":"check_mail_overlap_endpoint_api_v1_workspaces__deal_workspace_id__crm_contacts_mail_overlap_post","security":[{"HTTPBearer":[]}],"parameters":[{"name":"deal_workspace_id","in":"path","required":true,"schema":{"type":"string","title":"Deal Workspace Id"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/MailOverlapRequest"}}}},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/MailOverlapResponse"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/v1/workspaces/{deal_workspace_id}/crm/campaigns/{campaign_id}/topics":{"get":{"tags":["Workspace CRM Campaign Topics"],"summary":"List Topics Endpoint","operationId":"list_topics_endpoint_api_v1_workspaces__deal_workspace_id__crm_campaigns__campaign_id__topics_get","security":[{"HTTPBearer":[]}],"parameters":[{"name":"deal_workspace_id","in":"path","required":true,"schema":{"type":"string","title":"Deal Workspace Id"}},{"name":"campaign_id","in":"path","required":true,"schema":{"type":"string","title":"Campaign Id"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"type":"array","items":{"$ref":"#/components/schemas/CampaignTopicOut"},"title":"Response List Topics Endpoint Api V1 Workspaces  Deal Workspace Id  Crm Campaigns  Campaign Id  Topics Get"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}},"post":{"tags":["Workspace CRM Campaign Topics"],"summary":"Add Topic Endpoint","operationId":"add_topic_endpoint_api_v1_workspaces__deal_workspace_id__crm_campaigns__campaign_id__topics_post","security":[{"HTTPBearer":[]}],"parameters":[{"name":"deal_workspace_id","in":"path","required":true,"schema":{"type":"string","title":"Deal Workspace Id"}},{"name":"campaign_id","in":"path","required":true,"schema":{"type":"string","title":"Campaign Id"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/CreateCampaignTopicRequest"}}}},"responses":{"201":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/CampaignTopicOut"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/v1/workspaces/{deal_workspace_id}/crm/campaigns/{campaign_id}/topics/{topic_id}":{"patch":{"tags":["Workspace CRM Campaign Topics"],"summary":"Update Topic Endpoint","operationId":"update_topic_endpoint_api_v1_workspaces__deal_workspace_id__crm_campaigns__campaign_id__topics__topic_id__patch","security":[{"HTTPBearer":[]}],"parameters":[{"name":"deal_workspace_id","in":"path","required":true,"schema":{"type":"string","title":"Deal Workspace Id"}},{"name":"campaign_id","in":"path","required":true,"schema":{"type":"string","title":"Campaign Id"}},{"name":"topic_id","in":"path","required":true,"schema":{"type":"string","title":"Topic Id"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/UpdateCampaignTopicRequest"}}}},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/CampaignTopicOut"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}},"delete":{"tags":["Workspace CRM Campaign Topics"],"summary":"Delete Topic Endpoint","operationId":"delete_topic_endpoint_api_v1_workspaces__deal_workspace_id__crm_campaigns__campaign_id__topics__topic_id__delete","security":[{"HTTPBearer":[]}],"parameters":[{"name":"deal_workspace_id","in":"path","required":true,"schema":{"type":"string","title":"Deal Workspace Id"}},{"name":"campaign_id","in":"path","required":true,"schema":{"type":"string","title":"Campaign Id"}},{"name":"topic_id","in":"path","required":true,"schema":{"type":"string","title":"Topic Id"}}],"responses":{"204":{"description":"Successful Response"},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/v1/workspaces/{deal_workspace_id}/crm/campaigns/{campaign_id}/agent/ui-components":{"get":{"tags":["crm-campaign-assistant"],"summary":"List Ui Components","operationId":"list_ui_components_api_v1_workspaces__deal_workspace_id__crm_campaigns__campaign_id__agent_ui_components_get","security":[{"HTTPBearer":[]}],"parameters":[{"name":"deal_workspace_id","in":"path","required":true,"schema":{"type":"string","title":"Deal Workspace Id"}},{"name":"campaign_id","in":"path","required":true,"schema":{"type":"string","title":"Campaign Id"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"type":"object","additionalProperties":true,"title":"Response List Ui Components Api V1 Workspaces  Deal Workspace Id  Crm Campaigns  Campaign Id  Agent Ui Components Get"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/v1/workspaces/{deal_workspace_id}/crm/campaigns/{campaign_id}/agent/ui-components/{component_id}/steps":{"post":{"tags":["crm-campaign-assistant"],"summary":"Change Ui Component","operationId":"change_ui_component_api_v1_workspaces__deal_workspace_id__crm_campaigns__campaign_id__agent_ui_components__component_id__steps_post","security":[{"HTTPBearer":[]}],"parameters":[{"name":"component_id","in":"path","required":true,"schema":{"type":"string","title":"Component Id"}},{"name":"deal_workspace_id","in":"path","required":true,"schema":{"type":"string","title":"Deal Workspace Id"}},{"name":"campaign_id","in":"path","required":true,"schema":{"type":"string","title":"Campaign Id"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/StepsBody"}}}},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"type":"object","additionalProperties":true,"title":"Response Change Ui Component Api V1 Workspaces  Deal Workspace Id  Crm Campaigns  Campaign Id  Agent Ui Components  Component Id  Steps Post"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/v1/workspaces/{deal_workspace_id}/crm/campaigns/{campaign_id}/agent":{"get":{"tags":["crm-campaign-assistant"],"summary":"Read Conversation","operationId":"read_conversation_api_v1_workspaces__deal_workspace_id__crm_campaigns__campaign_id__agent_get","security":[{"HTTPBearer":[]}],"parameters":[{"name":"deal_workspace_id","in":"path","required":true,"schema":{"type":"string","title":"Deal Workspace Id"}},{"name":"campaign_id","in":"path","required":true,"schema":{"type":"string","title":"Campaign Id"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"type":"object","additionalProperties":true,"title":"Response Read Conversation Api V1 Workspaces  Deal Workspace Id  Crm Campaigns  Campaign Id  Agent Get"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/v1/workspaces/{deal_workspace_id}/crm/campaigns/{campaign_id}/agent/in-flight":{"get":{"tags":["crm-campaign-assistant"],"summary":"In Flight Turn","operationId":"in_flight_turn_api_v1_workspaces__deal_workspace_id__crm_campaigns__campaign_id__agent_in_flight_get","security":[{"HTTPBearer":[]}],"parameters":[{"name":"deal_workspace_id","in":"path","required":true,"schema":{"type":"string","title":"Deal Workspace Id"}},{"name":"campaign_id","in":"path","required":true,"schema":{"type":"string","title":"Campaign Id"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/InFlightTurnResponse"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/v1/workspaces/{deal_workspace_id}/crm/campaigns/{campaign_id}/agent/turn-starts":{"get":{"tags":["crm-campaign-assistant"],"summary":"Watch Turn Starts","description":"The open chat's live line, as the Manager chat has: it carries a card another tab changed (and each turn that\nstarts), so a tick shows here within a second or two. Only ids and versions travel on it, so a public mount may\nhave it too; the page reads the card again through the list route. The thread is the mount's own.","operationId":"watch_turn_starts_api_v1_workspaces__deal_workspace_id__crm_campaigns__campaign_id__agent_turn_starts_get","security":[{"HTTPBearer":[]}],"parameters":[{"name":"deal_workspace_id","in":"path","required":true,"schema":{"type":"string","title":"Deal Workspace Id"}},{"name":"campaign_id","in":"path","required":true,"schema":{"type":"string","title":"Campaign Id"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/v1/workspaces/{deal_workspace_id}/crm/campaigns/{campaign_id}/agent/messages/stream":{"post":{"tags":["crm-campaign-assistant"],"summary":"Send Message","operationId":"send_message_api_v1_workspaces__deal_workspace_id__crm_campaigns__campaign_id__agent_messages_stream_post","security":[{"HTTPBearer":[]}],"parameters":[{"name":"deal_workspace_id","in":"path","required":true,"schema":{"type":"string","title":"Deal Workspace Id"}},{"name":"campaign_id","in":"path","required":true,"schema":{"type":"string","title":"Campaign Id"}},{"name":"Last-Event-ID","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Last-Event-Id"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/StreamMessageRequest"}}}},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/v1/workspaces/{deal_workspace_id}/crm/campaigns/{campaign_id}/agent/turns/{turn_id}/tool-call-answer":{"post":{"tags":["crm-campaign-assistant"],"summary":"Answer Question","operationId":"answer_question_api_v1_workspaces__deal_workspace_id__crm_campaigns__campaign_id__agent_turns__turn_id__tool_call_answer_post","security":[{"HTTPBearer":[]}],"parameters":[{"name":"turn_id","in":"path","required":true,"schema":{"type":"string","title":"Turn Id"}},{"name":"deal_workspace_id","in":"path","required":true,"schema":{"type":"string","title":"Deal Workspace Id"}},{"name":"campaign_id","in":"path","required":true,"schema":{"type":"string","title":"Campaign Id"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/HumanInputAnswer"}}}},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HumanInputAnswerResponse"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/v1/workspaces/{deal_workspace_id}/crm/campaigns/{campaign_id}/agent/turns/{turn_id}/steer":{"post":{"tags":["crm-campaign-assistant"],"summary":"Send Now","operationId":"send_now_api_v1_workspaces__deal_workspace_id__crm_campaigns__campaign_id__agent_turns__turn_id__steer_post","security":[{"HTTPBearer":[]}],"parameters":[{"name":"turn_id","in":"path","required":true,"schema":{"type":"string","title":"Turn Id"}},{"name":"deal_workspace_id","in":"path","required":true,"schema":{"type":"string","title":"Deal Workspace Id"}},{"name":"campaign_id","in":"path","required":true,"schema":{"type":"string","title":"Campaign Id"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/SteerRequest"}}}},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/v1/workspaces/{deal_workspace_id}/crm/campaigns/{campaign_id}/agent/conversations":{"get":{"tags":["crm-campaign-assistant"],"summary":"Read Conversations","operationId":"read_conversations_api_v1_workspaces__deal_workspace_id__crm_campaigns__campaign_id__agent_conversations_get","security":[{"HTTPBearer":[]}],"parameters":[{"name":"deal_workspace_id","in":"path","required":true,"schema":{"type":"string","title":"Deal Workspace Id"}},{"name":"campaign_id","in":"path","required":true,"schema":{"type":"string","title":"Campaign Id"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"type":"object","additionalProperties":true,"title":"Response Read Conversations Api V1 Workspaces  Deal Workspace Id  Crm Campaigns  Campaign Id  Agent Conversations Get"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/v1/workspaces/{deal_workspace_id}/crm/campaigns/{campaign_id}/agent/conversations/new":{"post":{"tags":["crm-campaign-assistant"],"summary":"New Conversation","operationId":"new_conversation_api_v1_workspaces__deal_workspace_id__crm_campaigns__campaign_id__agent_conversations_new_post","security":[{"HTTPBearer":[]}],"parameters":[{"name":"deal_workspace_id","in":"path","required":true,"schema":{"type":"string","title":"Deal Workspace Id"}},{"name":"campaign_id","in":"path","required":true,"schema":{"type":"string","title":"Campaign Id"}}],"responses":{"204":{"description":"Successful Response"},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/v1/workspaces/{deal_workspace_id}/crm/campaigns/{campaign_id}/agent/conversations/{conversation_id}/open":{"post":{"tags":["crm-campaign-assistant"],"summary":"Open Conversation","operationId":"open_conversation_api_v1_workspaces__deal_workspace_id__crm_campaigns__campaign_id__agent_conversations__conversation_id__open_post","security":[{"HTTPBearer":[]}],"parameters":[{"name":"conversation_id","in":"path","required":true,"schema":{"type":"string","title":"Conversation Id"}},{"name":"deal_workspace_id","in":"path","required":true,"schema":{"type":"string","title":"Deal Workspace Id"}},{"name":"campaign_id","in":"path","required":true,"schema":{"type":"string","title":"Campaign Id"}}],"responses":{"204":{"description":"Successful Response"},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/v1/workspaces/{deal_workspace_id}/crm/campaigns/{campaign_id}/agent/conversations/{conversation_id}":{"delete":{"tags":["crm-campaign-assistant"],"summary":"Remove Conversation","operationId":"remove_conversation_api_v1_workspaces__deal_workspace_id__crm_campaigns__campaign_id__agent_conversations__conversation_id__delete","security":[{"HTTPBearer":[]}],"parameters":[{"name":"conversation_id","in":"path","required":true,"schema":{"type":"string","title":"Conversation Id"}},{"name":"deal_workspace_id","in":"path","required":true,"schema":{"type":"string","title":"Deal Workspace Id"}},{"name":"campaign_id","in":"path","required":true,"schema":{"type":"string","title":"Campaign Id"}}],"responses":{"204":{"description":"Successful Response"},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/v1/workspaces/{deal_workspace_id}/crm/campaigns/{campaign_id}/template/agent/ui-components":{"get":{"tags":["crm-template-assistant"],"summary":"List Ui Components","operationId":"list_ui_components_api_v1_workspaces__deal_workspace_id__crm_campaigns__campaign_id__template_agent_ui_components_get","security":[{"HTTPBearer":[]}],"parameters":[{"name":"deal_workspace_id","in":"path","required":true,"schema":{"type":"string","title":"Deal Workspace Id"}},{"name":"campaign_id","in":"path","required":true,"schema":{"type":"string","title":"Campaign Id"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"type":"object","additionalProperties":true,"title":"Response List Ui Components Api V1 Workspaces  Deal Workspace Id  Crm Campaigns  Campaign Id  Template Agent Ui Components Get"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/v1/workspaces/{deal_workspace_id}/crm/campaigns/{campaign_id}/template/agent/ui-components/{component_id}/steps":{"post":{"tags":["crm-template-assistant"],"summary":"Change Ui Component","operationId":"change_ui_component_api_v1_workspaces__deal_workspace_id__crm_campaigns__campaign_id__template_agent_ui_components__component_id__steps_post","security":[{"HTTPBearer":[]}],"parameters":[{"name":"component_id","in":"path","required":true,"schema":{"type":"string","title":"Component Id"}},{"name":"deal_workspace_id","in":"path","required":true,"schema":{"type":"string","title":"Deal Workspace Id"}},{"name":"campaign_id","in":"path","required":true,"schema":{"type":"string","title":"Campaign Id"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/StepsBody"}}}},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"type":"object","additionalProperties":true,"title":"Response Change Ui Component Api V1 Workspaces  Deal Workspace Id  Crm Campaigns  Campaign Id  Template Agent Ui Components  Component Id  Steps Post"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/v1/workspaces/{deal_workspace_id}/crm/campaigns/{campaign_id}/template/agent":{"get":{"tags":["crm-template-assistant"],"summary":"Read Conversation","operationId":"read_conversation_api_v1_workspaces__deal_workspace_id__crm_campaigns__campaign_id__template_agent_get","security":[{"HTTPBearer":[]}],"parameters":[{"name":"deal_workspace_id","in":"path","required":true,"schema":{"type":"string","title":"Deal Workspace Id"}},{"name":"campaign_id","in":"path","required":true,"schema":{"type":"string","title":"Campaign Id"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"type":"object","additionalProperties":true,"title":"Response Read Conversation Api V1 Workspaces  Deal Workspace Id  Crm Campaigns  Campaign Id  Template Agent Get"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/v1/workspaces/{deal_workspace_id}/crm/campaigns/{campaign_id}/template/agent/in-flight":{"get":{"tags":["crm-template-assistant"],"summary":"In Flight Turn","operationId":"in_flight_turn_api_v1_workspaces__deal_workspace_id__crm_campaigns__campaign_id__template_agent_in_flight_get","security":[{"HTTPBearer":[]}],"parameters":[{"name":"deal_workspace_id","in":"path","required":true,"schema":{"type":"string","title":"Deal Workspace Id"}},{"name":"campaign_id","in":"path","required":true,"schema":{"type":"string","title":"Campaign Id"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/InFlightTurnResponse"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/v1/workspaces/{deal_workspace_id}/crm/campaigns/{campaign_id}/template/agent/turn-starts":{"get":{"tags":["crm-template-assistant"],"summary":"Watch Turn Starts","description":"The open chat's live line, as the Manager chat has: it carries a card another tab changed (and each turn that\nstarts), so a tick shows here within a second or two. Only ids and versions travel on it, so a public mount may\nhave it too; the page reads the card again through the list route. The thread is the mount's own.","operationId":"watch_turn_starts_api_v1_workspaces__deal_workspace_id__crm_campaigns__campaign_id__template_agent_turn_starts_get","security":[{"HTTPBearer":[]}],"parameters":[{"name":"deal_workspace_id","in":"path","required":true,"schema":{"type":"string","title":"Deal Workspace Id"}},{"name":"campaign_id","in":"path","required":true,"schema":{"type":"string","title":"Campaign Id"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/v1/workspaces/{deal_workspace_id}/crm/campaigns/{campaign_id}/template/agent/messages/stream":{"post":{"tags":["crm-template-assistant"],"summary":"Send Message","operationId":"send_message_api_v1_workspaces__deal_workspace_id__crm_campaigns__campaign_id__template_agent_messages_stream_post","security":[{"HTTPBearer":[]}],"parameters":[{"name":"deal_workspace_id","in":"path","required":true,"schema":{"type":"string","title":"Deal Workspace Id"}},{"name":"campaign_id","in":"path","required":true,"schema":{"type":"string","title":"Campaign Id"}},{"name":"Last-Event-ID","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Last-Event-Id"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/StreamMessageRequest"}}}},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/v1/workspaces/{deal_workspace_id}/crm/campaigns/{campaign_id}/template/agent/turns/{turn_id}/tool-call-answer":{"post":{"tags":["crm-template-assistant"],"summary":"Answer Question","operationId":"answer_question_api_v1_workspaces__deal_workspace_id__crm_campaigns__campaign_id__template_agent_turns__turn_id__tool_call_answer_post","security":[{"HTTPBearer":[]}],"parameters":[{"name":"turn_id","in":"path","required":true,"schema":{"type":"string","title":"Turn Id"}},{"name":"deal_workspace_id","in":"path","required":true,"schema":{"type":"string","title":"Deal Workspace Id"}},{"name":"campaign_id","in":"path","required":true,"schema":{"type":"string","title":"Campaign Id"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/HumanInputAnswer"}}}},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HumanInputAnswerResponse"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/v1/workspaces/{deal_workspace_id}/crm/campaigns/{campaign_id}/template/agent/turns/{turn_id}/steer":{"post":{"tags":["crm-template-assistant"],"summary":"Send Now","operationId":"send_now_api_v1_workspaces__deal_workspace_id__crm_campaigns__campaign_id__template_agent_turns__turn_id__steer_post","security":[{"HTTPBearer":[]}],"parameters":[{"name":"turn_id","in":"path","required":true,"schema":{"type":"string","title":"Turn Id"}},{"name":"deal_workspace_id","in":"path","required":true,"schema":{"type":"string","title":"Deal Workspace Id"}},{"name":"campaign_id","in":"path","required":true,"schema":{"type":"string","title":"Campaign Id"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/SteerRequest"}}}},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/v1/workspaces/{deal_workspace_id}/crm/campaigns/{campaign_id}/template/agent/conversations":{"get":{"tags":["crm-template-assistant"],"summary":"Read Conversations","operationId":"read_conversations_api_v1_workspaces__deal_workspace_id__crm_campaigns__campaign_id__template_agent_conversations_get","security":[{"HTTPBearer":[]}],"parameters":[{"name":"deal_workspace_id","in":"path","required":true,"schema":{"type":"string","title":"Deal Workspace Id"}},{"name":"campaign_id","in":"path","required":true,"schema":{"type":"string","title":"Campaign Id"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"type":"object","additionalProperties":true,"title":"Response Read Conversations Api V1 Workspaces  Deal Workspace Id  Crm Campaigns  Campaign Id  Template Agent Conversations Get"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/v1/workspaces/{deal_workspace_id}/crm/campaigns/{campaign_id}/template/agent/conversations/new":{"post":{"tags":["crm-template-assistant"],"summary":"New Conversation","operationId":"new_conversation_api_v1_workspaces__deal_workspace_id__crm_campaigns__campaign_id__template_agent_conversations_new_post","security":[{"HTTPBearer":[]}],"parameters":[{"name":"deal_workspace_id","in":"path","required":true,"schema":{"type":"string","title":"Deal Workspace Id"}},{"name":"campaign_id","in":"path","required":true,"schema":{"type":"string","title":"Campaign Id"}}],"responses":{"204":{"description":"Successful Response"},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/v1/workspaces/{deal_workspace_id}/crm/campaigns/{campaign_id}/template/agent/conversations/{conversation_id}/open":{"post":{"tags":["crm-template-assistant"],"summary":"Open Conversation","operationId":"open_conversation_api_v1_workspaces__deal_workspace_id__crm_campaigns__campaign_id__template_agent_conversations__conversation_id__open_post","security":[{"HTTPBearer":[]}],"parameters":[{"name":"conversation_id","in":"path","required":true,"schema":{"type":"string","title":"Conversation Id"}},{"name":"deal_workspace_id","in":"path","required":true,"schema":{"type":"string","title":"Deal Workspace Id"}},{"name":"campaign_id","in":"path","required":true,"schema":{"type":"string","title":"Campaign Id"}}],"responses":{"204":{"description":"Successful Response"},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/v1/workspaces/{deal_workspace_id}/crm/campaigns/{campaign_id}/template/agent/conversations/{conversation_id}":{"delete":{"tags":["crm-template-assistant"],"summary":"Remove Conversation","operationId":"remove_conversation_api_v1_workspaces__deal_workspace_id__crm_campaigns__campaign_id__template_agent_conversations__conversation_id__delete","security":[{"HTTPBearer":[]}],"parameters":[{"name":"conversation_id","in":"path","required":true,"schema":{"type":"string","title":"Conversation Id"}},{"name":"deal_workspace_id","in":"path","required":true,"schema":{"type":"string","title":"Deal Workspace Id"}},{"name":"campaign_id","in":"path","required":true,"schema":{"type":"string","title":"Campaign Id"}}],"responses":{"204":{"description":"Successful Response"},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/v1/workspaces/{deal_workspace_id}/crm/campaigns/{campaign_id}/contacts/{contact_id}/agent/ui-components":{"get":{"tags":["crm-contact-assistant"],"summary":"List Ui Components","operationId":"list_ui_components_api_v1_workspaces__deal_workspace_id__crm_campaigns__campaign_id__contacts__contact_id__agent_ui_components_get","security":[{"HTTPBearer":[]}],"parameters":[{"name":"deal_workspace_id","in":"path","required":true,"schema":{"type":"string","title":"Deal Workspace Id"}},{"name":"campaign_id","in":"path","required":true,"schema":{"type":"string","title":"Campaign Id"}},{"name":"contact_id","in":"path","required":true,"schema":{"type":"string","title":"Contact Id"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"type":"object","additionalProperties":true,"title":"Response List Ui Components Api V1 Workspaces  Deal Workspace Id  Crm Campaigns  Campaign Id  Contacts  Contact Id  Agent Ui Components Get"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/v1/workspaces/{deal_workspace_id}/crm/campaigns/{campaign_id}/contacts/{contact_id}/agent/ui-components/{component_id}/steps":{"post":{"tags":["crm-contact-assistant"],"summary":"Change Ui Component","operationId":"change_ui_component_api_v1_workspaces__deal_workspace_id__crm_campaigns__campaign_id__contacts__contact_id__agent_ui_components__component_id__steps_post","security":[{"HTTPBearer":[]}],"parameters":[{"name":"component_id","in":"path","required":true,"schema":{"type":"string","title":"Component Id"}},{"name":"deal_workspace_id","in":"path","required":true,"schema":{"type":"string","title":"Deal Workspace Id"}},{"name":"campaign_id","in":"path","required":true,"schema":{"type":"string","title":"Campaign Id"}},{"name":"contact_id","in":"path","required":true,"schema":{"type":"string","title":"Contact Id"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/StepsBody"}}}},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"type":"object","additionalProperties":true,"title":"Response Change Ui Component Api V1 Workspaces  Deal Workspace Id  Crm Campaigns  Campaign Id  Contacts  Contact Id  Agent Ui Components  Component Id  Steps Post"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/v1/workspaces/{deal_workspace_id}/crm/campaigns/{campaign_id}/contacts/{contact_id}/agent":{"get":{"tags":["crm-contact-assistant"],"summary":"Read Conversation","operationId":"read_conversation_api_v1_workspaces__deal_workspace_id__crm_campaigns__campaign_id__contacts__contact_id__agent_get","security":[{"HTTPBearer":[]}],"parameters":[{"name":"deal_workspace_id","in":"path","required":true,"schema":{"type":"string","title":"Deal Workspace Id"}},{"name":"campaign_id","in":"path","required":true,"schema":{"type":"string","title":"Campaign Id"}},{"name":"contact_id","in":"path","required":true,"schema":{"type":"string","title":"Contact Id"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"type":"object","additionalProperties":true,"title":"Response Read Conversation Api V1 Workspaces  Deal Workspace Id  Crm Campaigns  Campaign Id  Contacts  Contact Id  Agent Get"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/v1/workspaces/{deal_workspace_id}/crm/campaigns/{campaign_id}/contacts/{contact_id}/agent/in-flight":{"get":{"tags":["crm-contact-assistant"],"summary":"In Flight Turn","operationId":"in_flight_turn_api_v1_workspaces__deal_workspace_id__crm_campaigns__campaign_id__contacts__contact_id__agent_in_flight_get","security":[{"HTTPBearer":[]}],"parameters":[{"name":"deal_workspace_id","in":"path","required":true,"schema":{"type":"string","title":"Deal Workspace Id"}},{"name":"campaign_id","in":"path","required":true,"schema":{"type":"string","title":"Campaign Id"}},{"name":"contact_id","in":"path","required":true,"schema":{"type":"string","title":"Contact Id"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/InFlightTurnResponse"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/v1/workspaces/{deal_workspace_id}/crm/campaigns/{campaign_id}/contacts/{contact_id}/agent/turn-starts":{"get":{"tags":["crm-contact-assistant"],"summary":"Watch Turn Starts","description":"The open chat's live line, as the Manager chat has: it carries a card another tab changed (and each turn that\nstarts), so a tick shows here within a second or two. Only ids and versions travel on it, so a public mount may\nhave it too; the page reads the card again through the list route. The thread is the mount's own.","operationId":"watch_turn_starts_api_v1_workspaces__deal_workspace_id__crm_campaigns__campaign_id__contacts__contact_id__agent_turn_starts_get","security":[{"HTTPBearer":[]}],"parameters":[{"name":"deal_workspace_id","in":"path","required":true,"schema":{"type":"string","title":"Deal Workspace Id"}},{"name":"campaign_id","in":"path","required":true,"schema":{"type":"string","title":"Campaign Id"}},{"name":"contact_id","in":"path","required":true,"schema":{"type":"string","title":"Contact Id"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/v1/workspaces/{deal_workspace_id}/crm/campaigns/{campaign_id}/contacts/{contact_id}/agent/messages/stream":{"post":{"tags":["crm-contact-assistant"],"summary":"Send Message","operationId":"send_message_api_v1_workspaces__deal_workspace_id__crm_campaigns__campaign_id__contacts__contact_id__agent_messages_stream_post","security":[{"HTTPBearer":[]}],"parameters":[{"name":"deal_workspace_id","in":"path","required":true,"schema":{"type":"string","title":"Deal Workspace Id"}},{"name":"campaign_id","in":"path","required":true,"schema":{"type":"string","title":"Campaign Id"}},{"name":"contact_id","in":"path","required":true,"schema":{"type":"string","title":"Contact Id"}},{"name":"Last-Event-ID","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Last-Event-Id"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/StreamMessageRequest"}}}},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/v1/workspaces/{deal_workspace_id}/crm/campaigns/{campaign_id}/contacts/{contact_id}/agent/turns/{turn_id}/tool-call-answer":{"post":{"tags":["crm-contact-assistant"],"summary":"Answer Question","operationId":"answer_question_api_v1_workspaces__deal_workspace_id__crm_campaigns__campaign_id__contacts__contact_id__agent_turns__turn_id__tool_call_answer_post","security":[{"HTTPBearer":[]}],"parameters":[{"name":"turn_id","in":"path","required":true,"schema":{"type":"string","title":"Turn Id"}},{"name":"deal_workspace_id","in":"path","required":true,"schema":{"type":"string","title":"Deal Workspace Id"}},{"name":"campaign_id","in":"path","required":true,"schema":{"type":"string","title":"Campaign Id"}},{"name":"contact_id","in":"path","required":true,"schema":{"type":"string","title":"Contact Id"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/HumanInputAnswer"}}}},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HumanInputAnswerResponse"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/v1/workspaces/{deal_workspace_id}/crm/campaigns/{campaign_id}/contacts/{contact_id}/agent/turns/{turn_id}/steer":{"post":{"tags":["crm-contact-assistant"],"summary":"Send Now","operationId":"send_now_api_v1_workspaces__deal_workspace_id__crm_campaigns__campaign_id__contacts__contact_id__agent_turns__turn_id__steer_post","security":[{"HTTPBearer":[]}],"parameters":[{"name":"turn_id","in":"path","required":true,"schema":{"type":"string","title":"Turn Id"}},{"name":"deal_workspace_id","in":"path","required":true,"schema":{"type":"string","title":"Deal Workspace Id"}},{"name":"campaign_id","in":"path","required":true,"schema":{"type":"string","title":"Campaign Id"}},{"name":"contact_id","in":"path","required":true,"schema":{"type":"string","title":"Contact Id"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/SteerRequest"}}}},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/v1/workspaces/{deal_workspace_id}/crm/campaigns/{campaign_id}/contacts/{contact_id}/agent/conversations":{"get":{"tags":["crm-contact-assistant"],"summary":"Read Conversations","operationId":"read_conversations_api_v1_workspaces__deal_workspace_id__crm_campaigns__campaign_id__contacts__contact_id__agent_conversations_get","security":[{"HTTPBearer":[]}],"parameters":[{"name":"deal_workspace_id","in":"path","required":true,"schema":{"type":"string","title":"Deal Workspace Id"}},{"name":"campaign_id","in":"path","required":true,"schema":{"type":"string","title":"Campaign Id"}},{"name":"contact_id","in":"path","required":true,"schema":{"type":"string","title":"Contact Id"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"type":"object","additionalProperties":true,"title":"Response Read Conversations Api V1 Workspaces  Deal Workspace Id  Crm Campaigns  Campaign Id  Contacts  Contact Id  Agent Conversations Get"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/v1/workspaces/{deal_workspace_id}/crm/campaigns/{campaign_id}/contacts/{contact_id}/agent/conversations/new":{"post":{"tags":["crm-contact-assistant"],"summary":"New Conversation","operationId":"new_conversation_api_v1_workspaces__deal_workspace_id__crm_campaigns__campaign_id__contacts__contact_id__agent_conversations_new_post","security":[{"HTTPBearer":[]}],"parameters":[{"name":"deal_workspace_id","in":"path","required":true,"schema":{"type":"string","title":"Deal Workspace Id"}},{"name":"campaign_id","in":"path","required":true,"schema":{"type":"string","title":"Campaign Id"}},{"name":"contact_id","in":"path","required":true,"schema":{"type":"string","title":"Contact Id"}}],"responses":{"204":{"description":"Successful Response"},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/v1/workspaces/{deal_workspace_id}/crm/campaigns/{campaign_id}/contacts/{contact_id}/agent/conversations/{conversation_id}/open":{"post":{"tags":["crm-contact-assistant"],"summary":"Open Conversation","operationId":"open_conversation_api_v1_workspaces__deal_workspace_id__crm_campaigns__campaign_id__contacts__contact_id__agent_conversations__conversation_id__open_post","security":[{"HTTPBearer":[]}],"parameters":[{"name":"conversation_id","in":"path","required":true,"schema":{"type":"string","title":"Conversation Id"}},{"name":"deal_workspace_id","in":"path","required":true,"schema":{"type":"string","title":"Deal Workspace Id"}},{"name":"campaign_id","in":"path","required":true,"schema":{"type":"string","title":"Campaign Id"}},{"name":"contact_id","in":"path","required":true,"schema":{"type":"string","title":"Contact Id"}}],"responses":{"204":{"description":"Successful Response"},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/v1/workspaces/{deal_workspace_id}/crm/campaigns/{campaign_id}/contacts/{contact_id}/agent/conversations/{conversation_id}":{"delete":{"tags":["crm-contact-assistant"],"summary":"Remove Conversation","operationId":"remove_conversation_api_v1_workspaces__deal_workspace_id__crm_campaigns__campaign_id__contacts__contact_id__agent_conversations__conversation_id__delete","security":[{"HTTPBearer":[]}],"parameters":[{"name":"conversation_id","in":"path","required":true,"schema":{"type":"string","title":"Conversation Id"}},{"name":"deal_workspace_id","in":"path","required":true,"schema":{"type":"string","title":"Deal Workspace Id"}},{"name":"campaign_id","in":"path","required":true,"schema":{"type":"string","title":"Campaign Id"}},{"name":"contact_id","in":"path","required":true,"schema":{"type":"string","title":"Contact Id"}}],"responses":{"204":{"description":"Successful Response"},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/v1/workspaces/{deal_workspace_id}/crm/campaigns/{campaign_id}/assistant-jobs":{"post":{"tags":["Workspace CRM Assistant Jobs"],"summary":"Queue Assistant Jobs","operationId":"queue_assistant_jobs_api_v1_workspaces__deal_workspace_id__crm_campaigns__campaign_id__assistant_jobs_post","security":[{"HTTPBearer":[]}],"parameters":[{"name":"deal_workspace_id","in":"path","required":true,"schema":{"type":"string","title":"Deal Workspace Id"}},{"name":"campaign_id","in":"path","required":true,"schema":{"type":"string","title":"Campaign Id"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/QueueJobsRequest"}}}},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/QueueJobsResponse"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}},"get":{"tags":["Workspace CRM Assistant Jobs"],"summary":"List Assistant Jobs","operationId":"list_assistant_jobs_api_v1_workspaces__deal_workspace_id__crm_campaigns__campaign_id__assistant_jobs_get","security":[{"HTTPBearer":[]}],"parameters":[{"name":"deal_workspace_id","in":"path","required":true,"schema":{"type":"string","title":"Deal Workspace Id"}},{"name":"campaign_id","in":"path","required":true,"schema":{"type":"string","title":"Campaign Id"}},{"name":"state","in":"query","required":false,"schema":{"const":"open","type":"string","default":"open","title":"State"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/OpenJobsResponse"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/v1/workspaces/{deal_workspace_id}/crm/campaigns/{campaign_id}/assistant-jobs/all":{"post":{"tags":["Workspace CRM Assistant Jobs"],"summary":"Queue Assistant Jobs For Campaign","description":"Research contacts and Personalize: a job for every contact of the campaign, read here so a list the page shows in parts is covered\nwhole. Contacts with a job already open are skipped, and Personalize also skips contacts who replied or were dropped and\ncontacts with no usable email; the drainer runs `jobs.MAX_CONCURRENT_JOBS` at a time.","operationId":"queue_assistant_jobs_for_campaign_api_v1_workspaces__deal_workspace_id__crm_campaigns__campaign_id__assistant_jobs_all_post","security":[{"HTTPBearer":[]}],"parameters":[{"name":"deal_workspace_id","in":"path","required":true,"schema":{"type":"string","title":"Deal Workspace Id"}},{"name":"campaign_id","in":"path","required":true,"schema":{"type":"string","title":"Campaign Id"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/QueueAllJobsRequest"}}}},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/QueueJobsResponse"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/v1/workspaces/{deal_workspace_id}/crm/campaigns/{campaign_id}/assistant-jobs/latest":{"get":{"tags":["Workspace CRM Assistant Jobs"],"summary":"List Latest Assistant Jobs","description":"What each contact's row shows: the newest job of each contact and kind, whether it is waiting, running, done or failed.","operationId":"list_latest_assistant_jobs_api_v1_workspaces__deal_workspace_id__crm_campaigns__campaign_id__assistant_jobs_latest_get","security":[{"HTTPBearer":[]}],"parameters":[{"name":"deal_workspace_id","in":"path","required":true,"schema":{"type":"string","title":"Deal Workspace Id"}},{"name":"campaign_id","in":"path","required":true,"schema":{"type":"string","title":"Campaign Id"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/LatestJobsResponse"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/v1/workspaces/{deal_workspace_id}/crm/projects/{crm_project_id}/contacts/import-from-buyerlist":{"post":{"tags":["Workspace CRM Contact Finding"],"summary":"Import Contacts From Buyerlist Endpoint","operationId":"import_contacts_from_buyerlist_endpoint_api_v1_workspaces__deal_workspace_id__crm_projects__crm_project_id__contacts_import_from_buyerlist_post","security":[{"HTTPBearer":[]}],"parameters":[{"name":"deal_workspace_id","in":"path","required":true,"schema":{"type":"string","title":"Deal Workspace Id"}},{"name":"crm_project_id","in":"path","required":true,"schema":{"type":"string","title":"Crm Project Id"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ImportFromBuyerlistRequest"}}}},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ImportFromBuyerlistResponse"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/v1/workspaces/{deal_workspace_id}/crm/projects/{crm_project_id}/contacts/buyerlist-file":{"post":{"tags":["Workspace CRM Contact Finding"],"summary":"Upload Buyerlist File Endpoint","operationId":"upload_buyerlist_file_endpoint_api_v1_workspaces__deal_workspace_id__crm_projects__crm_project_id__contacts_buyerlist_file_post","security":[{"HTTPBearer":[]}],"parameters":[{"name":"deal_workspace_id","in":"path","required":true,"schema":{"type":"string","title":"Deal Workspace Id"}},{"name":"crm_project_id","in":"path","required":true,"schema":{"type":"string","title":"Crm Project Id"}}],"requestBody":{"required":true,"content":{"multipart/form-data":{"schema":{"$ref":"#/components/schemas/Body_upload_buyerlist_file_endpoint_api_v1_workspaces__deal_workspace_id__crm_projects__crm_project_id__contacts_buyerlist_file_post"}}}},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}},"delete":{"tags":["Workspace CRM Contact Finding"],"summary":"Delete Buyerlist File Endpoint","operationId":"delete_buyerlist_file_endpoint_api_v1_workspaces__deal_workspace_id__crm_projects__crm_project_id__contacts_buyerlist_file_delete","security":[{"HTTPBearer":[]}],"parameters":[{"name":"deal_workspace_id","in":"path","required":true,"schema":{"type":"string","title":"Deal Workspace Id"}},{"name":"crm_project_id","in":"path","required":true,"schema":{"type":"string","title":"Crm Project Id"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}},"get":{"tags":["Workspace CRM Contact Finding"],"summary":"Get Buyerlist File Endpoint","operationId":"get_buyerlist_file_endpoint_api_v1_workspaces__deal_workspace_id__crm_projects__crm_project_id__contacts_buyerlist_file_get","security":[{"HTTPBearer":[]}],"parameters":[{"name":"deal_workspace_id","in":"path","required":true,"schema":{"type":"string","title":"Deal Workspace Id"}},{"name":"crm_project_id","in":"path","required":true,"schema":{"type":"string","title":"Crm Project Id"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/v1/workspaces/{deal_workspace_id}/crm/projects/{crm_project_id}/contacts/contact-finding/phase-1":{"post":{"tags":["Workspace CRM Contact Finding"],"summary":"Run Contact Finding Phase One Endpoint","operationId":"run_contact_finding_phase_one_endpoint_api_v1_workspaces__deal_workspace_id__crm_projects__crm_project_id__contacts_contact_finding_phase_1_post","security":[{"HTTPBearer":[]}],"parameters":[{"name":"deal_workspace_id","in":"path","required":true,"schema":{"type":"string","title":"Deal Workspace Id"}},{"name":"crm_project_id","in":"path","required":true,"schema":{"type":"string","title":"Crm Project Id"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ContactFindingPhase1Request"}}}},"responses":{"202":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ContactFindingProgressResponse"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/v1/workspaces/{deal_workspace_id}/crm/projects/{crm_project_id}/contacts/contact-finding/phase-2":{"post":{"tags":["Workspace CRM Contact Finding"],"summary":"Run Contact Finding Phase Two Endpoint","operationId":"run_contact_finding_phase_two_endpoint_api_v1_workspaces__deal_workspace_id__crm_projects__crm_project_id__contacts_contact_finding_phase_2_post","security":[{"HTTPBearer":[]}],"parameters":[{"name":"deal_workspace_id","in":"path","required":true,"schema":{"type":"string","title":"Deal Workspace Id"}},{"name":"crm_project_id","in":"path","required":true,"schema":{"type":"string","title":"Crm Project Id"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ContactFindingPhase2Request"}}}},"responses":{"202":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ContactFindingProgressResponse"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/v1/workspaces/{deal_workspace_id}/crm/projects/{crm_project_id}/contacts/contact-finding/progress/{task_id}":{"get":{"tags":["Workspace CRM Contact Finding"],"summary":"Get Contact Finding Progress Endpoint","operationId":"get_contact_finding_progress_endpoint_api_v1_workspaces__deal_workspace_id__crm_projects__crm_project_id__contacts_contact_finding_progress__task_id__get","security":[{"HTTPBearer":[]}],"parameters":[{"name":"deal_workspace_id","in":"path","required":true,"schema":{"type":"string","title":"Deal Workspace Id"}},{"name":"crm_project_id","in":"path","required":true,"schema":{"type":"string","title":"Crm Project Id"}},{"name":"task_id","in":"path","required":true,"schema":{"type":"string","title":"Task Id"}},{"name":"after_seq","in":"query","required":false,"schema":{"type":"integer","default":0,"title":"After Seq"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"type":"object","additionalProperties":true,"title":"Response Get Contact Finding Progress Endpoint Api V1 Workspaces  Deal Workspace Id  Crm Projects  Crm Project Id  Contacts Contact Finding Progress  Task Id  Get"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/v1/workspaces/{deal_workspace_id}/crm/projects/{crm_project_id}/contacts/contact-finding/progress/{task_id}/stream":{"get":{"tags":["Workspace CRM Contact Finding"],"summary":"Stream Contact Finding Progress Endpoint","operationId":"stream_contact_finding_progress_endpoint_api_v1_workspaces__deal_workspace_id__crm_projects__crm_project_id__contacts_contact_finding_progress__task_id__stream_get","security":[{"HTTPBearer":[]}],"parameters":[{"name":"deal_workspace_id","in":"path","required":true,"schema":{"type":"string","title":"Deal Workspace Id"}},{"name":"crm_project_id","in":"path","required":true,"schema":{"type":"string","title":"Crm Project Id"}},{"name":"task_id","in":"path","required":true,"schema":{"type":"string","title":"Task Id"}},{"name":"after_seq","in":"query","required":false,"schema":{"type":"integer","default":0,"title":"After Seq"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/v1/workspaces/{deal_workspace_id}/crm/projects/{crm_project_id}/contacts/contact-finding/active-tasks":{"get":{"tags":["Workspace CRM Contact Finding"],"summary":"Get Active Contact Finding Tasks Endpoint","operationId":"get_active_contact_finding_tasks_endpoint_api_v1_workspaces__deal_workspace_id__crm_projects__crm_project_id__contacts_contact_finding_active_tasks_get","security":[{"HTTPBearer":[]}],"parameters":[{"name":"deal_workspace_id","in":"path","required":true,"schema":{"type":"string","title":"Deal Workspace Id"}},{"name":"crm_project_id","in":"path","required":true,"schema":{"type":"string","title":"Crm Project Id"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/v1/workspaces/{deal_workspace_id}/crm/emails/":{"get":{"tags":["Workspace CRM Emails"],"summary":"Get Workspace Company Emails","operationId":"get_workspace_company_emails_api_v1_workspaces__deal_workspace_id__crm_emails__get","security":[{"HTTPBearer":[]}],"parameters":[{"name":"deal_workspace_id","in":"path","required":true,"schema":{"type":"string","title":"Deal Workspace Id"}},{"name":"status","in":"query","required":false,"schema":{"anyOf":[{"$ref":"#/components/schemas/STATUS"},{"type":"null"}],"title":"Status"}},{"name":"contact_id","in":"query","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Contact Id"}},{"name":"company_id","in":"query","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Company Id"}},{"name":"crm_project_id","in":"query","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Crm Project Id"}},{"name":"include_body","in":"query","required":false,"schema":{"type":"boolean","default":true,"title":"Include Body"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ListCompanyEmailsResponse"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/v1/workspaces/{deal_workspace_id}/crm/emails/update/{email_id}":{"patch":{"tags":["Workspace CRM Emails"],"summary":"Update Workspace Email Endpoint","operationId":"update_workspace_email_endpoint_api_v1_workspaces__deal_workspace_id__crm_emails_update__email_id__patch","security":[{"HTTPBearer":[]}],"parameters":[{"name":"deal_workspace_id","in":"path","required":true,"schema":{"type":"string","title":"Deal Workspace Id"}},{"name":"email_id","in":"path","required":true,"schema":{"type":"string","title":"Email Id"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Email"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/v1/workspaces/{deal_workspace_id}/crm/emails/{email_id}/suggestions/{suggestion_id}/accept":{"post":{"tags":["Workspace CRM Emails"],"summary":"Accept Workspace Email Suggestion","operationId":"accept_workspace_email_suggestion_api_v1_workspaces__deal_workspace_id__crm_emails__email_id__suggestions__suggestion_id__accept_post","security":[{"HTTPBearer":[]}],"parameters":[{"name":"deal_workspace_id","in":"path","required":true,"schema":{"type":"string","title":"Deal Workspace Id"}},{"name":"email_id","in":"path","required":true,"schema":{"type":"string","title":"Email Id"}},{"name":"suggestion_id","in":"path","required":true,"schema":{"type":"string","title":"Suggestion Id"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Email"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/v1/workspaces/{deal_workspace_id}/crm/emails/{email_id}/suggestions/{suggestion_id}/reject":{"post":{"tags":["Workspace CRM Emails"],"summary":"Reject Workspace Email Suggestion","operationId":"reject_workspace_email_suggestion_api_v1_workspaces__deal_workspace_id__crm_emails__email_id__suggestions__suggestion_id__reject_post","security":[{"HTTPBearer":[]}],"parameters":[{"name":"deal_workspace_id","in":"path","required":true,"schema":{"type":"string","title":"Deal Workspace Id"}},{"name":"email_id","in":"path","required":true,"schema":{"type":"string","title":"Email Id"}},{"name":"suggestion_id","in":"path","required":true,"schema":{"type":"string","title":"Suggestion Id"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Email"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/v1/workspaces/{deal_workspace_id}/crm/emails/send-draft":{"post":{"tags":["Workspace CRM Emails"],"summary":"Send Workspace Draft","operationId":"send_workspace_draft_api_v1_workspaces__deal_workspace_id__crm_emails_send_draft_post","security":[{"HTTPBearer":[]}],"parameters":[{"name":"deal_workspace_id","in":"path","required":true,"schema":{"type":"string","title":"Deal Workspace Id"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/SendDraftRequest"}}}},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/v1/workspaces/{deal_workspace_id}/crm/emails/schedule":{"post":{"tags":["Workspace CRM Emails"],"summary":"Schedule Workspace Email","operationId":"schedule_workspace_email_api_v1_workspaces__deal_workspace_id__crm_emails_schedule_post","security":[{"HTTPBearer":[]}],"parameters":[{"name":"deal_workspace_id","in":"path","required":true,"schema":{"type":"string","title":"Deal Workspace Id"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ScheduleEmailRequest"}}}},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ScheduleEmailResponse"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/v1/workspaces/{deal_workspace_id}/crm/emails/schedule-draft":{"post":{"tags":["Workspace CRM Emails"],"summary":"Schedule Workspace Draft","operationId":"schedule_workspace_draft_api_v1_workspaces__deal_workspace_id__crm_emails_schedule_draft_post","security":[{"HTTPBearer":[]}],"parameters":[{"name":"deal_workspace_id","in":"path","required":true,"schema":{"type":"string","title":"Deal Workspace Id"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ScheduleEmailRequest"}}}},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ScheduleEmailResponse"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/v1/workspaces/{deal_workspace_id}/crm/emails/regenerate-draft":{"post":{"tags":["Workspace CRM Emails"],"summary":"Regenerate Workspace Draft","operationId":"regenerate_workspace_draft_api_v1_workspaces__deal_workspace_id__crm_emails_regenerate_draft_post","security":[{"HTTPBearer":[]}],"parameters":[{"name":"deal_workspace_id","in":"path","required":true,"schema":{"type":"string","title":"Deal Workspace Id"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/RegenerateDraftRequest"}}}},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"type":"array","items":{"$ref":"#/components/schemas/Email"},"title":"Response Regenerate Workspace Draft Api V1 Workspaces  Deal Workspace Id  Crm Emails Regenerate Draft Post"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/v1/workspaces/{deal_workspace_id}/crm/emails/reschedule-sequence-step":{"post":{"tags":["Workspace CRM Emails"],"summary":"Reschedule Workspace Sequence Step","operationId":"reschedule_workspace_sequence_step_api_v1_workspaces__deal_workspace_id__crm_emails_reschedule_sequence_step_post","security":[{"HTTPBearer":[]}],"parameters":[{"name":"deal_workspace_id","in":"path","required":true,"schema":{"type":"string","title":"Deal Workspace Id"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/RescheduleSequenceStepRequest"}}}},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/RescheduleSequenceStepResponse"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/v1/workspaces/{deal_workspace_id}/crm/emails/{email_id}/reset-to-template":{"post":{"tags":["Workspace CRM Emails"],"summary":"Reset Workspace Email To Template","operationId":"reset_workspace_email_to_template_api_v1_workspaces__deal_workspace_id__crm_emails__email_id__reset_to_template_post","security":[{"HTTPBearer":[]}],"parameters":[{"name":"deal_workspace_id","in":"path","required":true,"schema":{"type":"string","title":"Deal Workspace Id"}},{"name":"email_id","in":"path","required":true,"schema":{"type":"string","title":"Email Id"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Email"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/v1/workspaces/{deal_workspace_id}/crm/mail-events":{"get":{"tags":["Workspace CRM Mail Events"],"summary":"List Workspace Mail Events","operationId":"list_workspace_mail_events_api_v1_workspaces__deal_workspace_id__crm_mail_events_get","security":[{"HTTPBearer":[]}],"parameters":[{"name":"deal_workspace_id","in":"path","required":true,"schema":{"type":"string","title":"Deal Workspace Id"}},{"name":"crm_project_id","in":"query","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"description":"Filter by crm_project_id (JOIN through contacts on contact_id)","title":"Crm Project Id"},"description":"Filter by crm_project_id (JOIN through contacts on contact_id)"},{"name":"search","in":"query","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"description":"Filter by contact name or email (ILIKE)","title":"Search"},"description":"Filter by contact name or email (ILIKE)"},{"name":"contact_email","in":"query","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"description":"Filter by contact email (ILIKE)","title":"Contact Email"},"description":"Filter by contact email (ILIKE)"},{"name":"contact_id","in":"query","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"description":"Filter by a specific contact_id","title":"Contact Id"},"description":"Filter by a specific contact_id"},{"name":"sequence_type","in":"query","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"description":"Filter by sequence step: cold_mail, fu1, fu2, fu3, fu4","title":"Sequence Type"},"description":"Filter by sequence step: cold_mail, fu1, fu2, fu3, fu4"},{"name":"event_type","in":"query","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"description":"Brevo event type: delivered, opened, clicked, reply, hard_bounce …","title":"Event Type"},"description":"Brevo event type: delivered, opened, clicked, reply, hard_bounce …"},{"name":"log_level","in":"query","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"description":"Filter by log level: info, warning, error","title":"Log Level"},"description":"Filter by log level: info, warning, error"},{"name":"date_from","in":"query","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"description":"ISO date lower bound, e.g. 2025-01-01","title":"Date From"},"description":"ISO date lower bound, e.g. 2025-01-01"},{"name":"date_to","in":"query","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"description":"ISO date upper bound, e.g. 2025-12-31","title":"Date To"},"description":"ISO date upper bound, e.g. 2025-12-31"},{"name":"limit","in":"query","required":false,"schema":{"type":"integer","maximum":500,"minimum":1,"default":100,"title":"Limit"}},{"name":"offset","in":"query","required":false,"schema":{"type":"integer","minimum":0,"default":0,"title":"Offset"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"type":"object","additionalProperties":true,"title":"Response List Workspace Mail Events Api V1 Workspaces  Deal Workspace Id  Crm Mail Events Get"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/v1/workspaces/{deal_workspace_id}/crm/mail-events/conversational-agent/threads/{thread_id}/ui-components":{"get":{"tags":["Workspace CRM Mail Events","manager"],"summary":"List Ui Components","operationId":"list_ui_components_api_v1_workspaces__deal_workspace_id__crm_mail_events_conversational_agent_threads__thread_id__ui_components_get","security":[{"HTTPBearer":[]}],"parameters":[{"name":"thread_id","in":"path","required":true,"schema":{"type":"string","title":"Thread Id"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/v1/workspaces/{deal_workspace_id}/crm/mail-events/conversational-agent/threads/{thread_id}/ui-components/{component_id}/steps":{"post":{"tags":["Workspace CRM Mail Events","manager"],"summary":"Change Ui Component","operationId":"change_ui_component_api_v1_workspaces__deal_workspace_id__crm_mail_events_conversational_agent_threads__thread_id__ui_components__component_id__steps_post","security":[{"HTTPBearer":[]}],"parameters":[{"name":"thread_id","in":"path","required":true,"schema":{"type":"string","title":"Thread Id"}},{"name":"component_id","in":"path","required":true,"schema":{"type":"string","title":"Component Id"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/StepsRequest"}}}},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/v1/workspaces/{deal_workspace_id}/crm/mail-events/conversational-agent/init":{"post":{"tags":["Workspace CRM Mail Events"],"summary":"Init Conversation","operationId":"init_conversation_api_v1_workspaces__deal_workspace_id__crm_mail_events_conversational_agent_init_post","security":[{"HTTPBearer":[]}],"parameters":[{"name":"deal_workspace_id","in":"path","required":true,"schema":{"type":"string","title":"Deal Workspace Id"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/InitConversationRequest"}}}},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/v1/workspaces/{deal_workspace_id}/crm/mail-events/conversational-agent/threads":{"get":{"tags":["Workspace CRM Mail Events"],"summary":"List Threads","operationId":"list_threads_api_v1_workspaces__deal_workspace_id__crm_mail_events_conversational_agent_threads_get","security":[{"HTTPBearer":[]}],"parameters":[{"name":"deal_workspace_id","in":"path","required":true,"schema":{"type":"string","title":"Deal Workspace Id"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/v1/workspaces/{deal_workspace_id}/crm/mail-events/conversational-agent/threads/{thread_id}":{"delete":{"tags":["Workspace CRM Mail Events"],"summary":"Delete Thread","operationId":"delete_thread_api_v1_workspaces__deal_workspace_id__crm_mail_events_conversational_agent_threads__thread_id__delete","security":[{"HTTPBearer":[]}],"parameters":[{"name":"thread_id","in":"path","required":true,"schema":{"type":"string","title":"Thread Id"}},{"name":"deal_workspace_id","in":"path","required":true,"schema":{"type":"string","title":"Deal Workspace Id"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/v1/workspaces/{deal_workspace_id}/crm/mail-events/conversational-agent/threads/{thread_id}/rename":{"post":{"tags":["Workspace CRM Mail Events"],"summary":"Rename Thread","operationId":"rename_thread_api_v1_workspaces__deal_workspace_id__crm_mail_events_conversational_agent_threads__thread_id__rename_post","security":[{"HTTPBearer":[]}],"parameters":[{"name":"thread_id","in":"path","required":true,"schema":{"type":"string","title":"Thread Id"}},{"name":"deal_workspace_id","in":"path","required":true,"schema":{"type":"string","title":"Deal Workspace Id"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/RenameConversationRequest"}}}},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/v1/workspaces/{deal_workspace_id}/crm/mail-events/conversational-agent/threads/{thread_id}/fork":{"post":{"tags":["Workspace CRM Mail Events"],"summary":"Fork Conversation","operationId":"fork_conversation_api_v1_workspaces__deal_workspace_id__crm_mail_events_conversational_agent_threads__thread_id__fork_post","security":[{"HTTPBearer":[]}],"parameters":[{"name":"thread_id","in":"path","required":true,"schema":{"type":"string","title":"Thread Id"}},{"name":"deal_workspace_id","in":"path","required":true,"schema":{"type":"string","title":"Deal Workspace Id"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ForkThreadRequest"}}}},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/v1/workspaces/{deal_workspace_id}/crm/mail-events/conversational-agent/threads/{thread_id}/activate":{"post":{"tags":["Workspace CRM Mail Events"],"summary":"Activate Message","operationId":"activate_message_api_v1_workspaces__deal_workspace_id__crm_mail_events_conversational_agent_threads__thread_id__activate_post","security":[{"HTTPBearer":[]}],"parameters":[{"name":"thread_id","in":"path","required":true,"schema":{"type":"string","title":"Thread Id"}},{"name":"deal_workspace_id","in":"path","required":true,"schema":{"type":"string","title":"Deal Workspace Id"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ActivateMessageRequest"}}}},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/v1/workspaces/{deal_workspace_id}/crm/mail-events/conversational-agent/threads/{thread_id}/in-flight":{"get":{"tags":["Workspace CRM Mail Events"],"summary":"Get In Flight Turn","operationId":"get_in_flight_turn_api_v1_workspaces__deal_workspace_id__crm_mail_events_conversational_agent_threads__thread_id__in_flight_get","security":[{"HTTPBearer":[]}],"parameters":[{"name":"thread_id","in":"path","required":true,"schema":{"type":"string","title":"Thread Id"}},{"name":"deal_workspace_id","in":"path","required":true,"schema":{"type":"string","title":"Deal Workspace Id"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/InFlightTurnResponse"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/v1/workspaces/{deal_workspace_id}/crm/mail-events/conversational-agent/threads/{thread_id}/turn-starts":{"get":{"tags":["Workspace CRM Mail Events"],"summary":"Watch Turn Starts","operationId":"watch_turn_starts_api_v1_workspaces__deal_workspace_id__crm_mail_events_conversational_agent_threads__thread_id__turn_starts_get","security":[{"HTTPBearer":[]}],"parameters":[{"name":"thread_id","in":"path","required":true,"schema":{"type":"string","title":"Thread Id"}},{"name":"deal_workspace_id","in":"path","required":true,"schema":{"type":"string","title":"Deal Workspace Id"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/v1/workspaces/{deal_workspace_id}/crm/mail-events/conversational-agent/threads/in-flight":{"post":{"tags":["Workspace CRM Mail Events"],"summary":"Get In Flight Many","operationId":"get_in_flight_many_api_v1_workspaces__deal_workspace_id__crm_mail_events_conversational_agent_threads_in_flight_post","requestBody":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/InFlightManyRequest"}}},"required":true},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/InFlightManyResponse"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}},"security":[{"HTTPBearer":[]}]}},"/api/v1/workspaces/{deal_workspace_id}/crm/mail-events/conversational-agent/threads/{thread_id}/messages/stream":{"post":{"tags":["Workspace CRM Mail Events"],"summary":"Stream Message","operationId":"stream_message_api_v1_workspaces__deal_workspace_id__crm_mail_events_conversational_agent_threads__thread_id__messages_stream_post","security":[{"HTTPBearer":[]}],"parameters":[{"name":"thread_id","in":"path","required":true,"schema":{"type":"string","title":"Thread Id"}},{"name":"deal_workspace_id","in":"path","required":true,"schema":{"type":"string","title":"Deal Workspace Id"}},{"name":"Last-Event-ID","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Last-Event-Id"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/StreamMessageRequest"}}}},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/v1/workspaces/{deal_workspace_id}/crm/mail-events/conversational-agent/threads/{thread_id}/turns/{turn_id}/cancel":{"post":{"tags":["Workspace CRM Mail Events"],"summary":"Cancel Turn","operationId":"cancel_turn_api_v1_workspaces__deal_workspace_id__crm_mail_events_conversational_agent_threads__thread_id__turns__turn_id__cancel_post","security":[{"HTTPBearer":[]}],"parameters":[{"name":"thread_id","in":"path","required":true,"schema":{"type":"string","title":"Thread Id"}},{"name":"turn_id","in":"path","required":true,"schema":{"type":"string","title":"Turn Id"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/v1/workspaces/{deal_workspace_id}/crm/mail-events/conversational-agent/threads/{thread_id}/turns/{turn_id}/steer":{"post":{"tags":["Workspace CRM Mail Events"],"summary":"Steer Turn","operationId":"steer_turn_api_v1_workspaces__deal_workspace_id__crm_mail_events_conversational_agent_threads__thread_id__turns__turn_id__steer_post","security":[{"HTTPBearer":[]}],"parameters":[{"name":"thread_id","in":"path","required":true,"schema":{"type":"string","title":"Thread Id"}},{"name":"turn_id","in":"path","required":true,"schema":{"type":"string","title":"Turn Id"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/SteerRequest"}}}},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/v1/workspaces/{deal_workspace_id}/crm/mail-events/conversational-agent/threads/{thread_id}/turns/{turn_id}/tool-call-answer":{"post":{"tags":["Workspace CRM Mail Events"],"summary":"Submit Tool Call Answer","operationId":"submit_tool_call_answer_api_v1_workspaces__deal_workspace_id__crm_mail_events_conversational_agent_threads__thread_id__turns__turn_id__tool_call_answer_post","security":[{"HTTPBearer":[]}],"parameters":[{"name":"thread_id","in":"path","required":true,"schema":{"type":"string","title":"Thread Id"}},{"name":"turn_id","in":"path","required":true,"schema":{"type":"string","title":"Turn Id"}},{"name":"deal_workspace_id","in":"path","required":true,"schema":{"type":"string","title":"Deal Workspace Id"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/HumanInputAnswer"}}}},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HumanInputAnswerResponse"}}}},"404":{"description":"No parked loop","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HumanInputAnswerError"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/v1/workspaces/{deal_workspace_id}/crm/mail-events/conversational-agent/threads/{thread_id}/edits/{edit_id}/accept":{"post":{"tags":["Workspace CRM Mail Events"],"summary":"Accept Edit","operationId":"accept_edit_api_v1_workspaces__deal_workspace_id__crm_mail_events_conversational_agent_threads__thread_id__edits__edit_id__accept_post","security":[{"HTTPBearer":[]}],"parameters":[{"name":"thread_id","in":"path","required":true,"schema":{"type":"string","title":"Thread Id"}},{"name":"edit_id","in":"path","required":true,"schema":{"type":"string","title":"Edit Id"}},{"name":"deal_workspace_id","in":"path","required":true,"schema":{"type":"string","title":"Deal Workspace Id"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ReviewEditRequest"}}}},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/v1/workspaces/{deal_workspace_id}/crm/mail-events/conversational-agent/threads/{thread_id}/accept-all":{"post":{"tags":["Workspace CRM Mail Events"],"summary":"Accept All","operationId":"accept_all_api_v1_workspaces__deal_workspace_id__crm_mail_events_conversational_agent_threads__thread_id__accept_all_post","security":[{"HTTPBearer":[]}],"parameters":[{"name":"thread_id","in":"path","required":true,"schema":{"type":"string","title":"Thread Id"}},{"name":"deal_workspace_id","in":"path","required":true,"schema":{"type":"string","title":"Deal Workspace Id"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ReviewEditRequest"}}}},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/v1/workspaces/{deal_workspace_id}/crm/mail-events/conversational-agent/threads/{thread_id}/edits/{edit_id}/decline":{"post":{"tags":["Workspace CRM Mail Events"],"summary":"Decline Edit","operationId":"decline_edit_api_v1_workspaces__deal_workspace_id__crm_mail_events_conversational_agent_threads__thread_id__edits__edit_id__decline_post","security":[{"HTTPBearer":[]}],"parameters":[{"name":"thread_id","in":"path","required":true,"schema":{"type":"string","title":"Thread Id"}},{"name":"edit_id","in":"path","required":true,"schema":{"type":"string","title":"Edit Id"}},{"name":"deal_workspace_id","in":"path","required":true,"schema":{"type":"string","title":"Deal Workspace Id"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ReviewEditRequest"}}}},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/v1/workspaces/{deal_workspace_id}/crm/mail-events/conversational-agent/threads/{thread_id}/changes/{change_id}/accept":{"post":{"tags":["Workspace CRM Mail Events"],"summary":"Accept Change","operationId":"accept_change_api_v1_workspaces__deal_workspace_id__crm_mail_events_conversational_agent_threads__thread_id__changes__change_id__accept_post","security":[{"HTTPBearer":[]}],"parameters":[{"name":"thread_id","in":"path","required":true,"schema":{"type":"string","title":"Thread Id"}},{"name":"change_id","in":"path","required":true,"schema":{"type":"string","title":"Change Id"}},{"name":"deal_workspace_id","in":"path","required":true,"schema":{"type":"string","title":"Deal Workspace Id"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ReviewEditRequest"}}}},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/v1/workspaces/{deal_workspace_id}/crm/mail-events/conversational-agent/threads/{thread_id}/changes/{change_id}/decline":{"post":{"tags":["Workspace CRM Mail Events"],"summary":"Decline Change","operationId":"decline_change_api_v1_workspaces__deal_workspace_id__crm_mail_events_conversational_agent_threads__thread_id__changes__change_id__decline_post","security":[{"HTTPBearer":[]}],"parameters":[{"name":"thread_id","in":"path","required":true,"schema":{"type":"string","title":"Thread Id"}},{"name":"change_id","in":"path","required":true,"schema":{"type":"string","title":"Change Id"}},{"name":"deal_workspace_id","in":"path","required":true,"schema":{"type":"string","title":"Deal Workspace Id"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ReviewEditRequest"}}}},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/v1/workspaces/{deal_workspace_id}/crm/mail-events/conversational-agent/proposals/{proposal_id}/approve":{"post":{"tags":["Workspace CRM Mail Events"],"summary":"Approve Proposal","operationId":"approve_proposal_api_v1_workspaces__deal_workspace_id__crm_mail_events_conversational_agent_proposals__proposal_id__approve_post","security":[{"HTTPBearer":[]}],"parameters":[{"name":"proposal_id","in":"path","required":true,"schema":{"type":"string","title":"Proposal Id"}},{"name":"deal_workspace_id","in":"path","required":true,"schema":{"type":"string","title":"Deal Workspace Id"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ApproveProposalRequest"}}}},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/v1/workspaces/{deal_workspace_id}/crm/templates/{crm_project_id}":{"get":{"tags":["Workspace CRM Templates"],"summary":"Get Workspace Templates","operationId":"get_workspace_templates_api_v1_workspaces__deal_workspace_id__crm_templates__crm_project_id__get","security":[{"HTTPBearer":[]}],"parameters":[{"name":"deal_workspace_id","in":"path","required":true,"schema":{"type":"string","title":"Deal Workspace Id"}},{"name":"crm_project_id","in":"path","required":true,"schema":{"type":"string","title":"Crm Project Id"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/TemplatesResponse"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}},"put":{"tags":["Workspace CRM Templates"],"summary":"Save Workspace Templates","operationId":"save_workspace_templates_api_v1_workspaces__deal_workspace_id__crm_templates__crm_project_id__put","security":[{"HTTPBearer":[]}],"parameters":[{"name":"deal_workspace_id","in":"path","required":true,"schema":{"type":"string","title":"Deal Workspace Id"}},{"name":"crm_project_id","in":"path","required":true,"schema":{"type":"string","title":"Crm Project Id"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/SaveTemplatesRequest"}}}},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/TemplatesResponse"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}},"delete":{"tags":["Workspace CRM Templates"],"summary":"Clear Workspace Templates","operationId":"clear_workspace_templates_api_v1_workspaces__deal_workspace_id__crm_templates__crm_project_id__delete","security":[{"HTTPBearer":[]}],"parameters":[{"name":"deal_workspace_id","in":"path","required":true,"schema":{"type":"string","title":"Deal Workspace Id"}},{"name":"crm_project_id","in":"path","required":true,"schema":{"type":"string","title":"Crm Project Id"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/TemplatesResponse"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/v1/workspaces/{deal_workspace_id}/crm/templates/{crm_project_id}/render":{"post":{"tags":["Workspace CRM Templates"],"summary":"Render Workspace Template","operationId":"render_workspace_template_api_v1_workspaces__deal_workspace_id__crm_templates__crm_project_id__render_post","security":[{"HTTPBearer":[]}],"parameters":[{"name":"deal_workspace_id","in":"path","required":true,"schema":{"type":"string","title":"Deal Workspace Id"}},{"name":"crm_project_id","in":"path","required":true,"schema":{"type":"string","title":"Crm Project Id"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/RenderTemplateRequest"}}}},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/RenderTemplateResponse"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/v1/workspaces/{deal_workspace_id}/crm/templates/{crm_project_id}/attachments/{template_type}":{"post":{"tags":["Workspace CRM Templates"],"summary":"Upload Workspace Template Attachment","operationId":"upload_workspace_template_attachment_api_v1_workspaces__deal_workspace_id__crm_templates__crm_project_id__attachments__template_type__post","security":[{"HTTPBearer":[]}],"parameters":[{"name":"deal_workspace_id","in":"path","required":true,"schema":{"type":"string","title":"Deal Workspace Id"}},{"name":"crm_project_id","in":"path","required":true,"schema":{"type":"string","title":"Crm Project Id"}},{"name":"template_type","in":"path","required":true,"schema":{"type":"string","title":"Template Type"}}],"requestBody":{"required":true,"content":{"multipart/form-data":{"schema":{"$ref":"#/components/schemas/Body_upload_workspace_template_attachment_api_v1_workspaces__deal_workspace_id__crm_templates__crm_project_id__attachments__template_type__post"}}}},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/TemplateAttachmentResponse"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/v1/workspaces/{deal_workspace_id}/crm/projects/{crm_project_id}/notes":{"post":{"tags":["Workspace CRM Notes"],"summary":"Create Workspace Note","operationId":"create_workspace_note_api_v1_workspaces__deal_workspace_id__crm_projects__crm_project_id__notes_post","security":[{"HTTPBearer":[]}],"parameters":[{"name":"deal_workspace_id","in":"path","required":true,"schema":{"type":"string","title":"Deal Workspace Id"}},{"name":"crm_project_id","in":"path","required":true,"schema":{"type":"string","title":"Crm Project Id"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/CreateNoteRequest"}}}},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/NoteResponse"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}},"get":{"tags":["Workspace CRM Notes"],"summary":"List Workspace Notes","operationId":"list_workspace_notes_api_v1_workspaces__deal_workspace_id__crm_projects__crm_project_id__notes_get","security":[{"HTTPBearer":[]}],"parameters":[{"name":"deal_workspace_id","in":"path","required":true,"schema":{"type":"string","title":"Deal Workspace Id"}},{"name":"crm_project_id","in":"path","required":true,"schema":{"type":"string","title":"Crm Project Id"}},{"name":"pinned","in":"query","required":false,"schema":{"anyOf":[{"type":"boolean"},{"type":"null"}],"title":"Pinned"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/v1/workspaces/{deal_workspace_id}/crm/notes/{note_id}":{"put":{"tags":["Workspace CRM Notes"],"summary":"Update Workspace Note","operationId":"update_workspace_note_api_v1_workspaces__deal_workspace_id__crm_notes__note_id__put","security":[{"HTTPBearer":[]}],"parameters":[{"name":"deal_workspace_id","in":"path","required":true,"schema":{"type":"string","title":"Deal Workspace Id"}},{"name":"note_id","in":"path","required":true,"schema":{"type":"integer","title":"Note Id"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/UpdateNoteRequest"}}}},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/NoteResponse"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}},"patch":{"tags":["Workspace CRM Notes"],"summary":"Mark Workspace Note As Deleted","operationId":"mark_workspace_note_as_deleted_api_v1_workspaces__deal_workspace_id__crm_notes__note_id__patch","security":[{"HTTPBearer":[]}],"parameters":[{"name":"deal_workspace_id","in":"path","required":true,"schema":{"type":"string","title":"Deal Workspace Id"}},{"name":"note_id","in":"path","required":true,"schema":{"type":"integer","title":"Note Id"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/v1/workspaces/{deal_workspace_id}/crm/notes/{note_id}/pin":{"put":{"tags":["Workspace CRM Notes"],"summary":"Set Workspace Pin Note","operationId":"set_workspace_pin_note_api_v1_workspaces__deal_workspace_id__crm_notes__note_id__pin_put","security":[{"HTTPBearer":[]}],"parameters":[{"name":"deal_workspace_id","in":"path","required":true,"schema":{"type":"string","title":"Deal Workspace Id"}},{"name":"note_id","in":"path","required":true,"schema":{"type":"integer","title":"Note Id"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/PinNoteRequest"}}}},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/NoteResponse"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/v1/workspaces/{deal_workspace_id}/crm/companies":{"get":{"tags":["Workspace CRM Companies"],"summary":"Get Workspace Companies Endpoint","operationId":"get_workspace_companies_endpoint_api_v1_workspaces__deal_workspace_id__crm_companies_get","security":[{"HTTPBearer":[]}],"parameters":[{"name":"deal_workspace_id","in":"path","required":true,"schema":{"type":"string","title":"Deal Workspace Id"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"type":"array","items":{"$ref":"#/components/schemas/Company"},"title":"Response Get Workspace Companies Endpoint Api V1 Workspaces  Deal Workspace Id  Crm Companies Get"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/v1/workspaces/{deal_workspace_id}/crm/companies/import":{"post":{"tags":["Workspace CRM Companies"],"summary":"Import Workspace Companies Endpoint","operationId":"import_workspace_companies_endpoint_api_v1_workspaces__deal_workspace_id__crm_companies_import_post","security":[{"HTTPBearer":[]}],"parameters":[{"name":"deal_workspace_id","in":"path","required":true,"schema":{"type":"string","title":"Deal Workspace Id"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ImportCompaniesRequest"}}}},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ImportCompaniesResponse"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/v1/workspaces/{deal_workspace_id}/crm/companies/{company_id}":{"get":{"tags":["Workspace CRM Companies"],"summary":"Get Workspace Company Endpoint","operationId":"get_workspace_company_endpoint_api_v1_workspaces__deal_workspace_id__crm_companies__company_id__get","security":[{"HTTPBearer":[]}],"parameters":[{"name":"deal_workspace_id","in":"path","required":true,"schema":{"type":"string","title":"Deal Workspace Id"}},{"name":"company_id","in":"path","required":true,"schema":{"type":"string","title":"Company Id"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Company"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}},"patch":{"tags":["Workspace CRM Companies"],"summary":"Update Workspace Company Endpoint","operationId":"update_workspace_company_endpoint_api_v1_workspaces__deal_workspace_id__crm_companies__company_id__patch","security":[{"HTTPBearer":[]}],"parameters":[{"name":"deal_workspace_id","in":"path","required":true,"schema":{"type":"string","title":"Deal Workspace Id"}},{"name":"company_id","in":"path","required":true,"schema":{"type":"string","title":"Company Id"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/UpdateCompanyRequest"}}}},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/UpdateCompanyResponse"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}},"delete":{"tags":["Workspace CRM Companies"],"summary":"Delete Workspace Company Endpoint","operationId":"delete_workspace_company_endpoint_api_v1_workspaces__deal_workspace_id__crm_companies__company_id__delete","security":[{"HTTPBearer":[]}],"parameters":[{"name":"deal_workspace_id","in":"path","required":true,"schema":{"type":"string","title":"Deal Workspace Id"}},{"name":"company_id","in":"path","required":true,"schema":{"type":"string","title":"Company Id"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/DeleteCompanyResponse"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/v1/workspaces/{deal_workspace_id}/crm/projects/{crm_project_id}/export":{"post":{"tags":["Workspace CRM Export"],"summary":"Export Campaign Endpoint","operationId":"export_campaign_endpoint_api_v1_workspaces__deal_workspace_id__crm_projects__crm_project_id__export_post","security":[{"HTTPBearer":[]}],"parameters":[{"name":"deal_workspace_id","in":"path","required":true,"schema":{"type":"string","title":"Deal Workspace Id"}},{"name":"crm_project_id","in":"path","required":true,"schema":{"type":"string","title":"Crm Project Id"}},{"name":"time_zone","in":"query","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Time Zone"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/v1/workspaces/{deal_workspace_id}/crm/batches/{batch_id}/export":{"post":{"tags":["Workspace CRM Export"],"summary":"Export Batch Endpoint","operationId":"export_batch_endpoint_api_v1_workspaces__deal_workspace_id__crm_batches__batch_id__export_post","security":[{"HTTPBearer":[]}],"parameters":[{"name":"deal_workspace_id","in":"path","required":true,"schema":{"type":"string","title":"Deal Workspace Id"}},{"name":"batch_id","in":"path","required":true,"schema":{"type":"string","title":"Batch Id"}},{"name":"time_zone","in":"query","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Time Zone"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/v1/workspaces/{deal_workspace_id}/crm/export":{"post":{"tags":["Workspace CRM Export"],"summary":"Export Workspace Endpoint","operationId":"export_workspace_endpoint_api_v1_workspaces__deal_workspace_id__crm_export_post","security":[{"HTTPBearer":[]}],"parameters":[{"name":"deal_workspace_id","in":"path","required":true,"schema":{"type":"string","title":"Deal Workspace Id"}},{"name":"time_zone","in":"query","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Time Zone"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/v1/workspaces/{workspace_id}/knowledge_base/upload":{"post":{"tags":["knowledge-base"],"summary":"Upload Document","operationId":"upload_document_api_v1_workspaces__workspace_id__knowledge_base_upload_post","security":[{"HTTPBearer":[]}],"parameters":[{"name":"workspace_id","in":"path","required":true,"schema":{"type":"string","format":"uuid","title":"Workspace Id"}}],"requestBody":{"required":true,"content":{"multipart/form-data":{"schema":{"$ref":"#/components/schemas/Body_upload_document_api_v1_workspaces__workspace_id__knowledge_base_upload_post"}}}},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/JobResponse"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/v1/workspaces/{workspace_id}/knowledge_base/upload/batch":{"post":{"tags":["knowledge-base"],"summary":"Upload Batch","operationId":"upload_batch_api_v1_workspaces__workspace_id__knowledge_base_upload_batch_post","security":[{"HTTPBearer":[]}],"parameters":[{"name":"workspace_id","in":"path","required":true,"schema":{"type":"string","format":"uuid","title":"Workspace Id"}}],"requestBody":{"required":true,"content":{"multipart/form-data":{"schema":{"$ref":"#/components/schemas/Body_upload_batch_api_v1_workspaces__workspace_id__knowledge_base_upload_batch_post"}}}},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"type":"array","items":{"$ref":"#/components/schemas/JobResponse"},"title":"Response Upload Batch Api V1 Workspaces  Workspace Id  Knowledge Base Upload Batch Post"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/v1/workspaces/{workspace_id}/knowledge_base/jobs/{job_id}":{"get":{"tags":["knowledge-base"],"summary":"Get Job","operationId":"get_job_api_v1_workspaces__workspace_id__knowledge_base_jobs__job_id__get","security":[{"HTTPBearer":[]}],"parameters":[{"name":"workspace_id","in":"path","required":true,"schema":{"type":"string","format":"uuid","title":"Workspace Id"}},{"name":"job_id","in":"path","required":true,"schema":{"type":"string","format":"uuid","title":"Job Id"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/JobStatusResponse"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/v1/workspaces/{workspace_id}/knowledge_base/documents":{"get":{"tags":["knowledge-base"],"summary":"List Documents","operationId":"list_documents_api_v1_workspaces__workspace_id__knowledge_base_documents_get","security":[{"HTTPBearer":[]}],"parameters":[{"name":"workspace_id","in":"path","required":true,"schema":{"type":"string","format":"uuid","title":"Workspace Id"}},{"name":"file_type","in":"query","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"File Type"}},{"name":"search","in":"query","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Search"}},{"name":"limit","in":"query","required":false,"schema":{"type":"integer","maximum":100,"minimum":1,"default":50,"title":"Limit"}},{"name":"offset","in":"query","required":false,"schema":{"type":"integer","minimum":0,"default":0,"title":"Offset"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/KnowledgeBaseListResponse"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/v1/workspaces/{workspace_id}/knowledge_base/documents/{document_id}":{"get":{"tags":["knowledge-base"],"summary":"Get Document","operationId":"get_document_api_v1_workspaces__workspace_id__knowledge_base_documents__document_id__get","security":[{"HTTPBearer":[]}],"parameters":[{"name":"workspace_id","in":"path","required":true,"schema":{"type":"string","format":"uuid","title":"Workspace Id"}},{"name":"document_id","in":"path","required":true,"schema":{"type":"string","format":"uuid","title":"Document Id"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/DocumentResponse"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}},"delete":{"tags":["knowledge-base"],"summary":"Delete Document","operationId":"delete_document_api_v1_workspaces__workspace_id__knowledge_base_documents__document_id__delete","security":[{"HTTPBearer":[]}],"parameters":[{"name":"workspace_id","in":"path","required":true,"schema":{"type":"string","format":"uuid","title":"Workspace Id"}},{"name":"document_id","in":"path","required":true,"schema":{"type":"string","format":"uuid","title":"Document Id"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/DeleteResponse"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/v1/workspaces/{workspace_id}/knowledge_base/documents/{document_id}/download":{"get":{"tags":["knowledge-base"],"summary":"Download Document","operationId":"download_document_api_v1_workspaces__workspace_id__knowledge_base_documents__document_id__download_get","security":[{"HTTPBearer":[]}],"parameters":[{"name":"workspace_id","in":"path","required":true,"schema":{"type":"string","format":"uuid","title":"Workspace Id"}},{"name":"document_id","in":"path","required":true,"schema":{"type":"string","format":"uuid","title":"Document Id"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"type":"object","additionalProperties":{"type":"string"},"title":"Response Download Document Api V1 Workspaces  Workspace Id  Knowledge Base Documents  Document Id  Download Get"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/v1/workspaces/{workspace_id}/knowledge_base/retrieve":{"post":{"tags":["knowledge-base"],"summary":"Retrieve Context","description":"Retrieve grounded knowledge base context for a workspace query.","operationId":"retrieve_context_api_v1_workspaces__workspace_id__knowledge_base_retrieve_post","security":[{"HTTPBearer":[]}],"parameters":[{"name":"workspace_id","in":"path","required":true,"schema":{"type":"string","format":"uuid","title":"Workspace Id"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/RetrievalRequest"}}}},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/KBRetrievalResult"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/v1/workspaces/{workspace_id}/knowledge_base/sources":{"get":{"tags":["knowledge-base"],"summary":"List Workspace Sources","description":"List available registered data sources for a workspace.","operationId":"list_workspace_sources_api_v1_workspaces__workspace_id__knowledge_base_sources_get","security":[{"HTTPBearer":[]}],"parameters":[{"name":"workspace_id","in":"path","required":true,"schema":{"type":"string","format":"uuid","title":"Workspace Id"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"type":"array","items":{"$ref":"#/components/schemas/DataSourceDescriptorResponse"},"title":"Response List Workspace Sources Api V1 Workspaces  Workspace Id  Knowledge Base Sources Get"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/v1/workspaces/{workspace_id}/knowledge_base/dry-run/ingest":{"post":{"tags":["knowledge-base-debug"],"summary":"Dry Run Ingest Route","operationId":"dry_run_ingest_route_api_v1_workspaces__workspace_id__knowledge_base_dry_run_ingest_post","security":[{"HTTPBearer":[]}],"parameters":[{"name":"workspace_id","in":"path","required":true,"schema":{"type":"string","format":"uuid","title":"Workspace Id"}}],"requestBody":{"required":true,"content":{"multipart/form-data":{"schema":{"$ref":"#/components/schemas/Body_dry_run_ingest_route_api_v1_workspaces__workspace_id__knowledge_base_dry_run_ingest_post"}}}},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"type":"object","additionalProperties":true,"title":"Response Dry Run Ingest Route Api V1 Workspaces  Workspace Id  Knowledge Base Dry Run Ingest Post"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/v1/workspaces/{workspace_id}/knowledge_base/dry-run/retrieve":{"post":{"tags":["knowledge-base-debug"],"summary":"Dry Run Retrieve Route","operationId":"dry_run_retrieve_route_api_v1_workspaces__workspace_id__knowledge_base_dry_run_retrieve_post","security":[{"HTTPBearer":[]}],"parameters":[{"name":"workspace_id","in":"path","required":true,"schema":{"type":"string","format":"uuid","title":"Workspace Id"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"type":"object","additionalProperties":true,"title":"Body"}}}},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"type":"object","additionalProperties":true,"title":"Response Dry Run Retrieve Route Api V1 Workspaces  Workspace Id  Knowledge Base Dry Run Retrieve Post"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/v1/workspaces/{workspace_id}/knowledge_base/logs":{"get":{"tags":["knowledge-base-debug"],"summary":"Logs","operationId":"logs_api_v1_workspaces__workspace_id__knowledge_base_logs_get","security":[{"HTTPBearer":[]}],"parameters":[{"name":"workspace_id","in":"path","required":true,"schema":{"type":"string","format":"uuid","title":"Workspace Id"}},{"name":"limit","in":"query","required":false,"schema":{"type":"integer","maximum":1000,"minimum":1,"default":100,"title":"Limit"}},{"name":"since_id","in":"query","required":false,"schema":{"anyOf":[{"type":"integer"},{"type":"null"}],"title":"Since Id"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"type":"object","additionalProperties":true,"title":"Response Logs Api V1 Workspaces  Workspace Id  Knowledge Base Logs Get"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/v1/workspaces/{workspace_id}/knowledge_base/data-flow":{"get":{"tags":["knowledge-base-debug"],"summary":"Data Flow","operationId":"data_flow_api_v1_workspaces__workspace_id__knowledge_base_data_flow_get","security":[{"HTTPBearer":[]}],"parameters":[{"name":"workspace_id","in":"path","required":true,"schema":{"type":"string","format":"uuid","title":"Workspace Id"}},{"name":"limit","in":"query","required":false,"schema":{"type":"integer","maximum":1000,"minimum":1,"default":100,"title":"Limit"}},{"name":"since_id","in":"query","required":false,"schema":{"anyOf":[{"type":"integer"},{"type":"null"}],"title":"Since Id"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"type":"object","additionalProperties":true,"title":"Response Data Flow Api V1 Workspaces  Workspace Id  Knowledge Base Data Flow Get"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/v1/workspaces/{workspace_id}/knowledge_base/config":{"get":{"tags":["knowledge-base-debug"],"summary":"Get Config","operationId":"get_config_api_v1_workspaces__workspace_id__knowledge_base_config_get","security":[{"HTTPBearer":[]}],"parameters":[{"name":"workspace_id","in":"path","required":true,"schema":{"type":"string","format":"uuid","title":"Workspace Id"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"type":"object","additionalProperties":true,"title":"Response Get Config Api V1 Workspaces  Workspace Id  Knowledge Base Config Get"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}},"patch":{"tags":["knowledge-base-debug"],"summary":"Update Config","operationId":"update_config_api_v1_workspaces__workspace_id__knowledge_base_config_patch","security":[{"HTTPBearer":[]}],"parameters":[{"name":"workspace_id","in":"path","required":true,"schema":{"type":"string","format":"uuid","title":"Workspace Id"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"type":"object","additionalProperties":true,"title":"Updates"}}}},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"type":"object","additionalProperties":true,"title":"Response Update Config Api V1 Workspaces  Workspace Id  Knowledge Base Config Patch"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/v1/google-calendar":{"get":{"tags":["google-calendar"],"summary":"Get Calendar Status","operationId":"get_calendar_status_api_v1_google_calendar_get","responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/CalendarStatus"}}}}},"security":[{"HTTPBearer":[]}]},"delete":{"tags":["google-calendar"],"summary":"Disconnect Calendar Route","description":"Disconnect: Google is asked to revoke access and the token is deleted. Works even when the connector is switched\noff on the server, so a person can always withdraw access.","operationId":"disconnect_calendar_route_api_v1_google_calendar_delete","responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/CalendarStatus"}}}}},"security":[{"HTTPBearer":[]}]}},"/api/v1/google-calendar/connect":{"post":{"tags":["google-calendar"],"summary":"Connect Calendar Route","description":"Connect the Google account that just signed in, so the chat can read this person's calendar.","operationId":"connect_calendar_route_api_v1_google_calendar_connect_post","requestBody":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ConnectCalendarRequest"}}},"required":true},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/CalendarStatus"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}},"security":[{"HTTPBearer":[]}]}},"/api/v1/google-calendar/allow-event-creation":{"post":{"tags":["google-calendar"],"summary":"Allow Event Creation Route","description":"The connected person agreed on Google's screen that BRAE may create events on their own calendar.","operationId":"allow_event_creation_route_api_v1_google_calendar_allow_event_creation_post","requestBody":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ConnectCalendarRequest"}}},"required":true},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/CalendarStatus"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}},"security":[{"HTTPBearer":[]}]}},"/api/v1/google-calendar/drafts/{draft_id}":{"get":{"tags":["google-calendar"],"summary":"Get Draft Route","operationId":"get_draft_route_api_v1_google_calendar_drafts__draft_id__get","security":[{"HTTPBearer":[]}],"parameters":[{"name":"draft_id","in":"path","required":true,"schema":{"type":"string","title":"Draft Id"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/DraftResponse"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/v1/google-calendar/drafts/{draft_id}/confirm":{"post":{"tags":["google-calendar"],"summary":"Confirm Draft Route","description":"The person pressed \"Create event\": create it at Google now. Pressing again returns the same event.","operationId":"confirm_draft_route_api_v1_google_calendar_drafts__draft_id__confirm_post","security":[{"HTTPBearer":[]}],"parameters":[{"name":"draft_id","in":"path","required":true,"schema":{"type":"string","title":"Draft Id"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/DraftResponse"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/v1/google-calendar/drafts/{draft_id}/cancel":{"post":{"tags":["google-calendar"],"summary":"Cancel Draft Route","description":"Drop a draft. Works even when the connector is switched off, so a person can always withdraw one.","operationId":"cancel_draft_route_api_v1_google_calendar_drafts__draft_id__cancel_post","security":[{"HTTPBearer":[]}],"parameters":[{"name":"draft_id","in":"path","required":true,"schema":{"type":"string","title":"Draft Id"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/DraftResponse"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/v1/gmail-send":{"get":{"tags":["gmail-send"],"summary":"Get Gmail Send Status","operationId":"get_gmail_send_status_api_v1_gmail_send_get","responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/GmailSendStatus"}}}}},"security":[{"HTTPBearer":[]}]},"delete":{"tags":["gmail-send"],"summary":"Disconnect Gmail Route","description":"Disconnect Gmail: Google is asked to revoke access, the token is deleted, and waiting emails are cancelled.\nWorks even when sending is switched off on the server, so a user can always withdraw access.\n\nNot on Internal: the team's connection carries every Microsoft-hosted recipient's mail, and cancelling would stop\nthe whole team's waiting emails. Access can still be withdrawn in the Google account; emails then wait.","operationId":"disconnect_gmail_route_api_v1_gmail_send_delete","responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/GmailSendStatus"}}}}},"security":[{"HTTPBearer":[]}]}},"/api/v1/gmail-send/connect":{"post":{"tags":["gmail-send"],"summary":"Connect Gmail Route","description":"Connect the Gmail account that just signed in, so approved CRM emails go out from it.","operationId":"connect_gmail_route_api_v1_gmail_send_connect_post","requestBody":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ConnectGmailRequest"}}},"required":true},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/GmailSendStatus"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}},"security":[{"HTTPBearer":[]}]}},"/api/v1/workspaces/{deal_workspace_id}/canvases":{"get":{"tags":["canvases"],"summary":"List Canvases","operationId":"list_canvases_api_v1_workspaces__deal_workspace_id__canvases_get","security":[{"HTTPBearer":[]}],"parameters":[{"name":"deal_workspace_id","in":"path","required":true,"schema":{"type":"string","title":"Deal Workspace Id"}},{"name":"limit","in":"query","required":false,"schema":{"type":"integer","maximum":200,"minimum":1,"default":50,"title":"Limit"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"type":"array","items":{"$ref":"#/components/schemas/CanvasSummary"},"title":"Response List Canvases Api V1 Workspaces  Deal Workspace Id  Canvases Get"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/v1/workspaces/{deal_workspace_id}/canvases/{canvas_id}":{"get":{"tags":["canvases"],"summary":"Get Canvas","operationId":"get_canvas_api_v1_workspaces__deal_workspace_id__canvases__canvas_id__get","security":[{"HTTPBearer":[]}],"parameters":[{"name":"deal_workspace_id","in":"path","required":true,"schema":{"type":"string","title":"Deal Workspace Id"}},{"name":"canvas_id","in":"path","required":true,"schema":{"type":"string","title":"Canvas Id"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/CanvasDetail"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/v1/workspaces/{deal_workspace_id}/canvases/{canvas_id}/versions/{version}":{"get":{"tags":["canvases"],"summary":"Get Canvas Version","operationId":"get_canvas_version_api_v1_workspaces__deal_workspace_id__canvases__canvas_id__versions__version__get","security":[{"HTTPBearer":[]}],"parameters":[{"name":"deal_workspace_id","in":"path","required":true,"schema":{"type":"string","title":"Deal Workspace Id"}},{"name":"canvas_id","in":"path","required":true,"schema":{"type":"string","title":"Canvas Id"}},{"name":"version","in":"path","required":true,"schema":{"type":"integer","title":"Version"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/CanvasVersionSource"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/v1/workspaces/{deal_workspace_id}/canvases/{canvas_id}/publish":{"post":{"tags":["canvases"],"summary":"Publish Canvas","operationId":"publish_canvas_api_v1_workspaces__deal_workspace_id__canvases__canvas_id__publish_post","security":[{"HTTPBearer":[]}],"parameters":[{"name":"deal_workspace_id","in":"path","required":true,"schema":{"type":"string","title":"Deal Workspace Id"}},{"name":"canvas_id","in":"path","required":true,"schema":{"type":"string","title":"Canvas Id"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/PublishRequest"}}}},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/PublishResponse"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}},"delete":{"tags":["canvases"],"summary":"Unpublish Canvas","operationId":"unpublish_canvas_api_v1_workspaces__deal_workspace_id__canvases__canvas_id__publish_delete","security":[{"HTTPBearer":[]}],"parameters":[{"name":"deal_workspace_id","in":"path","required":true,"schema":{"type":"string","title":"Deal Workspace Id"}},{"name":"canvas_id","in":"path","required":true,"schema":{"type":"string","title":"Canvas Id"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/UnpublishResponse"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/v1/manager/threads/{thread_id}/canvases":{"get":{"tags":["canvases"],"summary":"List Chat Canvases","operationId":"list_chat_canvases_api_v1_manager_threads__thread_id__canvases_get","security":[{"HTTPBearer":[]}],"parameters":[{"name":"thread_id","in":"path","required":true,"schema":{"type":"string","title":"Thread Id"}},{"name":"limit","in":"query","required":false,"schema":{"type":"integer","maximum":200,"minimum":1,"default":50,"title":"Limit"}},{"name":"deal_workspace_id","in":"query","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Deal Workspace Id"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"type":"array","items":{"$ref":"#/components/schemas/CanvasSummary"},"title":"Response List Chat Canvases Api V1 Manager Threads  Thread Id  Canvases Get"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/v1/manager/threads/{thread_id}/canvases/{canvas_id}":{"get":{"tags":["canvases"],"summary":"Get Chat Canvas","operationId":"get_chat_canvas_api_v1_manager_threads__thread_id__canvases__canvas_id__get","security":[{"HTTPBearer":[]}],"parameters":[{"name":"thread_id","in":"path","required":true,"schema":{"type":"string","title":"Thread Id"}},{"name":"canvas_id","in":"path","required":true,"schema":{"type":"string","title":"Canvas Id"}},{"name":"deal_workspace_id","in":"query","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Deal Workspace Id"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/CanvasDetail"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/v1/manager/threads/{thread_id}/canvases/{canvas_id}/versions/{version}":{"get":{"tags":["canvases"],"summary":"Get Chat Canvas Version","operationId":"get_chat_canvas_version_api_v1_manager_threads__thread_id__canvases__canvas_id__versions__version__get","security":[{"HTTPBearer":[]}],"parameters":[{"name":"thread_id","in":"path","required":true,"schema":{"type":"string","title":"Thread Id"}},{"name":"canvas_id","in":"path","required":true,"schema":{"type":"string","title":"Canvas Id"}},{"name":"version","in":"path","required":true,"schema":{"type":"integer","title":"Version"}},{"name":"deal_workspace_id","in":"query","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Deal Workspace Id"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/CanvasVersionSource"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/v1/manager/threads/{thread_id}/canvases/{canvas_id}/versions":{"post":{"tags":["canvases"],"summary":"Save Chat Canvas Edits","operationId":"save_chat_canvas_edits_api_v1_manager_threads__thread_id__canvases__canvas_id__versions_post","security":[{"HTTPBearer":[]}],"parameters":[{"name":"thread_id","in":"path","required":true,"schema":{"type":"string","title":"Thread Id"}},{"name":"canvas_id","in":"path","required":true,"schema":{"type":"string","title":"Canvas Id"}},{"name":"deal_workspace_id","in":"query","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Deal Workspace Id"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/SaveEditsRequest"}}}},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/SaveEditsResponse"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/v1/manager/threads/{thread_id}/canvases/{canvas_id}/publish":{"post":{"tags":["canvases"],"summary":"Publish Chat Canvas","operationId":"publish_chat_canvas_api_v1_manager_threads__thread_id__canvases__canvas_id__publish_post","security":[{"HTTPBearer":[]}],"parameters":[{"name":"thread_id","in":"path","required":true,"schema":{"type":"string","title":"Thread Id"}},{"name":"canvas_id","in":"path","required":true,"schema":{"type":"string","title":"Canvas Id"}},{"name":"deal_workspace_id","in":"query","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Deal Workspace Id"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/PublishRequest"}}}},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/PublishResponse"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}},"delete":{"tags":["canvases"],"summary":"Unpublish Chat Canvas","operationId":"unpublish_chat_canvas_api_v1_manager_threads__thread_id__canvases__canvas_id__publish_delete","security":[{"HTTPBearer":[]}],"parameters":[{"name":"thread_id","in":"path","required":true,"schema":{"type":"string","title":"Thread Id"}},{"name":"canvas_id","in":"path","required":true,"schema":{"type":"string","title":"Canvas Id"}},{"name":"deal_workspace_id","in":"query","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Deal Workspace Id"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/UnpublishResponse"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/v1/manager/threads/{thread_id}/canvases/{canvas_id}/query":{"post":{"tags":["canvases"],"summary":"Query Chat Canvas","operationId":"query_chat_canvas_api_v1_manager_threads__thread_id__canvases__canvas_id__query_post","security":[{"HTTPBearer":[]}],"parameters":[{"name":"thread_id","in":"path","required":true,"schema":{"type":"string","title":"Thread Id"}},{"name":"canvas_id","in":"path","required":true,"schema":{"type":"string","title":"Canvas Id"}},{"name":"deal_workspace_id","in":"query","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Deal Workspace Id"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/CanvasDataQuery"}}}},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/v1/manager/threads/{thread_id}/canvases/{canvas_id}/export":{"post":{"tags":["canvases"],"summary":"Export Chat Canvas","operationId":"export_chat_canvas_api_v1_manager_threads__thread_id__canvases__canvas_id__export_post","security":[{"HTTPBearer":[]}],"parameters":[{"name":"thread_id","in":"path","required":true,"schema":{"type":"string","title":"Thread Id"}},{"name":"canvas_id","in":"path","required":true,"schema":{"type":"string","title":"Canvas Id"}},{"name":"deal_workspace_id","in":"query","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Deal Workspace Id"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/CanvasExportRequest"}}}},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/v1/manager/artifacts":{"get":{"tags":["manager-artifacts"],"summary":"List Artifacts Route","operationId":"list_artifacts_route_api_v1_manager_artifacts_get","security":[{"HTTPBearer":[]}],"parameters":[{"name":"workspace","in":"query","required":false,"schema":{"type":"string","description":"all, none, or a workspace id","default":"all","title":"Workspace"},"description":"all, none, or a workspace id"},{"name":"origin","in":"query","required":false,"schema":{"enum":["all","chat","candidate_research","enrichment","company_research","industry_research","decks","comparable_companies","pitch","strip_profile","uploads"],"type":"string","description":"all, chat, or the tool that made the file","default":"all","title":"Origin"},"description":"all, chat, or the tool that made the file"},{"name":"limit","in":"query","required":false,"schema":{"type":"integer","maximum":500,"minimum":1,"default":100,"title":"Limit"}},{"name":"run","in":"query","required":false,"schema":{"anyOf":[{"type":"string","format":"uuid"},{"type":"null"}],"description":"only the files this workflow run produced; workspace and origin are then ignored","title":"Run"},"description":"only the files this workflow run produced; workspace and origin are then ignored"}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/v1/public/canvases/{slug}":{"get":{"tags":["public-canvases"],"summary":"Get Published Canvas","operationId":"get_published_canvas_api_v1_public_canvases__slug__get","security":[{"HTTPBearer":[]}],"parameters":[{"name":"slug","in":"path","required":true,"schema":{"type":"string","title":"Slug"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/PublishedCanvas"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/v1/auth/signed-in":{"get":{"tags":["auth"],"summary":"Signed In","operationId":"signed_in_api_v1_auth_signed_in_get","responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"additionalProperties":{"anyOf":[{"type":"string"},{"type":"boolean"},{"type":"null"}]},"type":"object","title":"Response Signed In Api V1 Auth Signed In Get"}}}}},"security":[{"HTTPBearer":[]}]}},"/api/v1/addin/sign-in/codes":{"post":{"tags":["addin"],"summary":"Register","operationId":"register_api_v1_addin_sign_in_codes_post","requestBody":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/RegisterCodeBody"}}},"required":true},"responses":{"201":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}},"security":[{"HTTPBearer":[]}]}},"/api/v1/addin/sign-in/poll":{"post":{"tags":["addin"],"summary":"Poll","operationId":"poll_api_v1_addin_sign_in_poll_post","requestBody":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/PollBody"}}},"required":true},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/PollAnswer"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}},"security":[{"HTTPBearer":[]}]}},"/api/v1/addin/sign-in/codes/{user_code}":{"get":{"tags":["addin"],"summary":"Look Up","operationId":"look_up_api_v1_addin_sign_in_codes__user_code__get","security":[{"HTTPBearer":[]}],"parameters":[{"name":"user_code","in":"path","required":true,"schema":{"type":"string","title":"User Code"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/CodeView"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/v1/addin/sign-in/codes/{user_code}/approve":{"post":{"tags":["addin"],"summary":"Approve","operationId":"approve_api_v1_addin_sign_in_codes__user_code__approve_post","security":[{"HTTPBearer":[]}],"parameters":[{"name":"user_code","in":"path","required":true,"schema":{"type":"string","title":"User Code"}}],"responses":{"204":{"description":"Successful Response"},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/v1/addin/sign-in/codes/{user_code}/cancel":{"post":{"tags":["addin"],"summary":"Cancel","operationId":"cancel_api_v1_addin_sign_in_codes__user_code__cancel_post","security":[{"HTTPBearer":[]}],"parameters":[{"name":"user_code","in":"path","required":true,"schema":{"type":"string","title":"User Code"}}],"responses":{"204":{"description":"Successful Response"},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/v1/addin/me":{"get":{"tags":["addin"],"summary":"Signed In As","description":"Who the add-in is signed in as. The access gate has already checked the team list, or Terms and a plan.","operationId":"signed_in_as_api_v1_addin_me_get","responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/SignedInView"}}}}},"security":[{"HTTPBearer":[]}]}},"/api/v1/addin/sign-out":{"post":{"tags":["addin"],"summary":"Sign Out","operationId":"sign_out_api_v1_addin_sign_out_post","responses":{"204":{"description":"Successful Response"}},"security":[{"HTTPBearer":[]}]}},"/api/v1/addin/model/responses":{"post":{"tags":["addin"],"summary":"Responses","operationId":"responses_api_v1_addin_model_responses_post","responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}}},"security":[{"HTTPBearer":[]}]}},"/api/v1/addin/model/chat/completions":{"post":{"tags":["addin"],"summary":"Chat Completions","operationId":"chat_completions_api_v1_addin_model_chat_completions_post","responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}}},"security":[{"HTTPBearer":[]}]}},"/api/v1/places/resolve":{"post":{"tags":["places"],"summary":"Resolve Places","operationId":"resolve_places_api_v1_places_resolve_post","requestBody":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ResolveBody"}}},"required":true},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"additionalProperties":true,"type":"object","title":"Response Resolve Places Api V1 Places Resolve Post"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}},"security":[{"HTTPBearer":[]}]}},"/api/v1/auth/email-check":{"post":{"tags":["auth"],"summary":"Check Email","operationId":"check_email_api_v1_auth_email_check_post","requestBody":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/EmailCheckBody"}}},"required":true},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/EmailCheckResult"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}},"security":[{"HTTPBearer":[]}]}},"/api/v1/consent":{"get":{"tags":["consent"],"summary":"Get Consent","operationId":"get_consent_api_v1_consent_get","responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ConsentStatus"}}}}},"security":[{"HTTPBearer":[]}]},"post":{"tags":["consent"],"summary":"Accept Consent","operationId":"accept_consent_api_v1_consent_post","requestBody":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/AcceptConsent"}}},"required":true},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ConsentStatus"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}},"security":[{"HTTPBearer":[]}]}},"/api/v1/billing/me":{"get":{"tags":["billing"],"summary":"Get Billing Status","operationId":"get_billing_status_api_v1_billing_me_get","responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/BillingStatus"}}}}},"security":[{"HTTPBearer":[]}]}},"/api/v1/billing/plans":{"get":{"tags":["billing"],"summary":"List Plans","description":"The plans on sale here, cheapest first: the paywall's cards.","operationId":"list_plans_api_v1_billing_plans_get","responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"items":{"$ref":"#/components/schemas/PlanOffer"},"type":"array","title":"Response List Plans Api V1 Billing Plans Get"}}}}},"security":[{"HTTPBearer":[]}]}},"/api/v1/billing/sync":{"post":{"tags":["billing"],"summary":"Sync Billing Status","description":"Re-read the user's state from Polar now (after checkout, or when access looks wrong).","operationId":"sync_billing_status_api_v1_billing_sync_post","responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/BillingStatus"}}}}},"security":[{"HTTPBearer":[]}]}},"/api/v1/billing/checkout":{"post":{"tags":["billing"],"summary":"Create Checkout","operationId":"create_checkout_api_v1_billing_checkout_post","requestBody":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/CheckoutRequest"}}},"required":true},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/RedirectUrl"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}},"security":[{"HTTPBearer":[]}]}},"/api/v1/billing/change-plan":{"post":{"tags":["billing"],"summary":"Change Plan","description":"Move a subscriber to a longer billing period (see plan_change).","operationId":"change_plan_api_v1_billing_change_plan_post","requestBody":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/CheckoutRequest"}}},"required":true},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/BillingStatus"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}},"security":[{"HTTPBearer":[]}]}},"/api/v1/billing/portal":{"post":{"tags":["billing"],"summary":"Create Portal Session","operationId":"create_portal_session_api_v1_billing_portal_post","responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/RedirectUrl"}}}}},"security":[{"HTTPBearer":[]}]}},"/api/v1/billing/polar/webhook":{"post":{"tags":["billing"],"summary":"Receive Polar Webhook","description":"Polar deliveries. Unauthenticated by design: the Polar signature is the check.\n\nSubscribe the endpoint to the subscription.* events, order.paid and order.refunded. Each subscription event\ntriggers a re-read of that user's subscriptions, so events arriving late or out of order cannot\nleave access wrong.","operationId":"receive_polar_webhook_api_v1_billing_polar_webhook_post","responses":{"202":{"description":"Successful Response","content":{"application/json":{"schema":{}}}}},"security":[{"HTTPBearer":[]}]}},"/api/v1/contact-chat":{"get":{"tags":["contact-chat"],"summary":"Read Conversation","description":"The user's messages (only those newer than ``after`` when given). Empty before their first message.","operationId":"read_conversation_api_v1_contact_chat_get","security":[{"HTTPBearer":[]}],"parameters":[{"name":"after","in":"query","required":false,"schema":{"anyOf":[{"type":"string","format":"uuid"},{"type":"null"}],"title":"After"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ContactThreadOut"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/v1/contact-chat/unread":{"get":{"tags":["contact-chat"],"summary":"Read Unread","operationId":"read_unread_api_v1_contact_chat_unread_get","responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/UnreadOut"}}}}},"security":[{"HTTPBearer":[]}]}},"/api/v1/contact-chat/messages":{"post":{"tags":["contact-chat"],"summary":"Send Message","description":"Saves the message; returns it, plus the away note when it was sent outside reply hours.","operationId":"send_message_api_v1_contact_chat_messages_post","requestBody":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/SendMessageBody"}}},"required":true},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"items":{"$ref":"#/components/schemas/ContactMessageOut"},"type":"array","title":"Response Send Message Api V1 Contact Chat Messages Post"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}},"security":[{"HTTPBearer":[]}]}},"/api/v1/contact-chat/read":{"post":{"tags":["contact-chat"],"summary":"Mark Read","operationId":"mark_read_api_v1_contact_chat_read_post","responses":{"204":{"description":"Successful Response"}},"security":[{"HTTPBearer":[]}]}},"/api/v1/staff/inbox":{"get":{"tags":["contact-chat-staff"],"summary":"List Inbox","operationId":"list_inbox_api_v1_staff_inbox_get","responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"items":{"$ref":"#/components/schemas/InboxConversationOut"},"type":"array","title":"Response List Inbox Api V1 Staff Inbox Get"}}}}},"security":[{"HTTPBearer":[]}]}},"/api/v1/staff/inbox/{conversation_id}":{"get":{"tags":["contact-chat-staff"],"summary":"Read Thread","operationId":"read_thread_api_v1_staff_inbox__conversation_id__get","security":[{"HTTPBearer":[]}],"parameters":[{"name":"conversation_id","in":"path","required":true,"schema":{"type":"string","format":"uuid","title":"Conversation Id"}},{"name":"after","in":"query","required":false,"schema":{"anyOf":[{"type":"string","format":"uuid"},{"type":"null"}],"title":"After"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/InboxThreadOut"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/v1/staff/inbox/{conversation_id}/messages":{"post":{"tags":["contact-chat-staff"],"summary":"Reply","operationId":"reply_api_v1_staff_inbox__conversation_id__messages_post","security":[{"HTTPBearer":[]}],"parameters":[{"name":"conversation_id","in":"path","required":true,"schema":{"type":"string","format":"uuid","title":"Conversation Id"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/StaffReplyBody"}}}},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ContactMessageOut"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/v1/staff/inbox/{conversation_id}/read":{"post":{"tags":["contact-chat-staff"],"summary":"Mark Read","operationId":"mark_read_api_v1_staff_inbox__conversation_id__read_post","security":[{"HTTPBearer":[]}],"parameters":[{"name":"conversation_id","in":"path","required":true,"schema":{"type":"string","format":"uuid","title":"Conversation Id"}}],"responses":{"204":{"description":"Successful Response"},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/v1/first-run":{"get":{"tags":["first-run"],"summary":"Read First Run","operationId":"read_first_run_api_v1_first_run_get","responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/FirstRunStatus"}}}}},"security":[{"HTTPBearer":[]}]}},"/api/v1/first-run/tour-done":{"post":{"tags":["first-run"],"summary":"Finish Tour","operationId":"finish_tour_api_v1_first_run_tour_done_post","responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/FirstRunStatus"}}}}},"security":[{"HTTPBearer":[]}]}},"/api/v1/first-run/deal":{"post":{"tags":["first-run"],"summary":"Name Deal","operationId":"name_deal_api_v1_first_run_deal_post","requestBody":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/DealName"}}},"required":true},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/FirstRunStatus"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}},"security":[{"HTTPBearer":[]}]}},"/api/v1/first-run/deal/files-done":{"post":{"tags":["first-run"],"summary":"Finish Deal Files","operationId":"finish_deal_files_api_v1_first_run_deal_files_done_post","responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/FirstRunStatus"}}}}},"security":[{"HTTPBearer":[]}]}},"/api/v1/first-run/workspace-tour/done":{"post":{"tags":["first-run"],"summary":"Finish Workspace Tour","description":"Finished or skipped, the deal workspace tour is not offered again.","operationId":"finish_workspace_tour_api_v1_first_run_workspace_tour_done_post","responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/FirstRunStatus"}}}}},"security":[{"HTTPBearer":[]}]}},"/api/v1/first-run/buyer-list/start":{"post":{"tags":["first-run"],"summary":"Start Buyer List","operationId":"start_buyer_list_api_v1_first_run_buyer_list_start_post","responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/BuyerListStart"}}}}},"security":[{"HTTPBearer":[]}]}},"/api/v1/workspaces/{deal_workspace_id}/dd/irl-projects":{"get":{"tags":["dd-irl"],"summary":"List Irl Projects","operationId":"list_irl_projects_api_v1_workspaces__deal_workspace_id__dd_irl_projects_get","security":[{"HTTPBearer":[]}],"parameters":[{"name":"deal_workspace_id","in":"path","required":true,"schema":{"type":"string","title":"Deal Workspace Id"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"type":"array","items":{"$ref":"#/components/schemas/IrlProjectSummary"},"title":"Response List Irl Projects Api V1 Workspaces  Deal Workspace Id  Dd Irl Projects Get"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/v1/workspaces/{deal_workspace_id}/dd/irl-projects/{project_id}":{"get":{"tags":["dd-irl"],"summary":"Get Irl Project","operationId":"get_irl_project_api_v1_workspaces__deal_workspace_id__dd_irl_projects__project_id__get","security":[{"HTTPBearer":[]}],"parameters":[{"name":"project_id","in":"path","required":true,"schema":{"type":"string","title":"Project Id"}},{"name":"deal_workspace_id","in":"path","required":true,"schema":{"type":"string","title":"Deal Workspace Id"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/IrlProject"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}},"patch":{"tags":["dd-irl"],"summary":"Update Irl Project","operationId":"update_irl_project_api_v1_workspaces__deal_workspace_id__dd_irl_projects__project_id__patch","security":[{"HTTPBearer":[]}],"parameters":[{"name":"project_id","in":"path","required":true,"schema":{"type":"string","title":"Project Id"}},{"name":"deal_workspace_id","in":"path","required":true,"schema":{"type":"string","title":"Deal Workspace Id"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/IrlProjectPatch"}}}},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/IrlProject"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/v1/workspaces/{deal_workspace_id}/dd/irl-projects/{project_id}/items":{"post":{"tags":["dd-irl"],"summary":"Add Irl Item","operationId":"add_irl_item_api_v1_workspaces__deal_workspace_id__dd_irl_projects__project_id__items_post","security":[{"HTTPBearer":[]}],"parameters":[{"name":"project_id","in":"path","required":true,"schema":{"type":"string","title":"Project Id"}},{"name":"deal_workspace_id","in":"path","required":true,"schema":{"type":"string","title":"Deal Workspace Id"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/AddIrlItemRequest"}}}},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/IrlItem"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/v1/workspaces/{deal_workspace_id}/dd/irl-projects/{project_id}/publish":{"post":{"tags":["dd-irl"],"summary":"Publish Irl Project","operationId":"publish_irl_project_api_v1_workspaces__deal_workspace_id__dd_irl_projects__project_id__publish_post","security":[{"HTTPBearer":[]}],"parameters":[{"name":"project_id","in":"path","required":true,"schema":{"type":"string","title":"Project Id"}},{"name":"deal_workspace_id","in":"path","required":true,"schema":{"type":"string","title":"Deal Workspace Id"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/IrlProject"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/v1/workspaces/{deal_workspace_id}/dd/irl-projects/{project_id}/unpublish":{"post":{"tags":["dd-irl"],"summary":"Unpublish Irl Project","operationId":"unpublish_irl_project_api_v1_workspaces__deal_workspace_id__dd_irl_projects__project_id__unpublish_post","security":[{"HTTPBearer":[]}],"parameters":[{"name":"project_id","in":"path","required":true,"schema":{"type":"string","title":"Project Id"}},{"name":"deal_workspace_id","in":"path","required":true,"schema":{"type":"string","title":"Deal Workspace Id"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/IrlProject"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/v1/workspaces/{deal_workspace_id}/dd/irl-projects/{project_id}/share":{"post":{"tags":["dd-irl"],"summary":"Share Irl Items","operationId":"share_irl_items_api_v1_workspaces__deal_workspace_id__dd_irl_projects__project_id__share_post","security":[{"HTTPBearer":[]}],"parameters":[{"name":"project_id","in":"path","required":true,"schema":{"type":"string","title":"Project Id"}},{"name":"deal_workspace_id","in":"path","required":true,"schema":{"type":"string","title":"Deal Workspace Id"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ShareItemsBody"}}}},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/IrlProject"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/v1/workspaces/{deal_workspace_id}/dd/irl-projects/{project_id}/due-dates":{"post":{"tags":["dd-irl"],"summary":"Set Irl Due Dates","operationId":"set_irl_due_dates_api_v1_workspaces__deal_workspace_id__dd_irl_projects__project_id__due_dates_post","security":[{"HTTPBearer":[]}],"parameters":[{"name":"project_id","in":"path","required":true,"schema":{"type":"string","title":"Project Id"}},{"name":"deal_workspace_id","in":"path","required":true,"schema":{"type":"string","title":"Deal Workspace Id"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/DueDatesBody"}}}},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/IrlProject"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/v1/workspaces/{deal_workspace_id}/dd/irl-items/{item_id}/notes":{"post":{"tags":["dd-irl"],"summary":"Add Irl Item Note","operationId":"add_irl_item_note_api_v1_workspaces__deal_workspace_id__dd_irl_items__item_id__notes_post","security":[{"HTTPBearer":[]}],"parameters":[{"name":"item_id","in":"path","required":true,"schema":{"type":"string","title":"Item Id"}},{"name":"deal_workspace_id","in":"path","required":true,"schema":{"type":"string","title":"Deal Workspace Id"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/NewFirmNoteBody"}}}},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Note"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/v1/workspaces/{deal_workspace_id}/dd/irl-items/{item_id}":{"patch":{"tags":["dd-irl"],"summary":"Update Irl Item","operationId":"update_irl_item_api_v1_workspaces__deal_workspace_id__dd_irl_items__item_id__patch","security":[{"HTTPBearer":[]}],"parameters":[{"name":"item_id","in":"path","required":true,"schema":{"type":"string","title":"Item Id"}},{"name":"deal_workspace_id","in":"path","required":true,"schema":{"type":"string","title":"Deal Workspace Id"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/IrlItemPatch"}}}},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/IrlItem"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}},"delete":{"tags":["dd-irl"],"summary":"Delete Irl Item","operationId":"delete_irl_item_api_v1_workspaces__deal_workspace_id__dd_irl_items__item_id__delete","security":[{"HTTPBearer":[]}],"parameters":[{"name":"item_id","in":"path","required":true,"schema":{"type":"string","title":"Item Id"}},{"name":"deal_workspace_id","in":"path","required":true,"schema":{"type":"string","title":"Deal Workspace Id"}}],"responses":{"204":{"description":"Successful Response"},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/v1/workspaces/{deal_workspace_id}/dd/irl-items/{item_id}/accept":{"post":{"tags":["dd-irl"],"summary":"Accept Irl Item","operationId":"accept_irl_item_api_v1_workspaces__deal_workspace_id__dd_irl_items__item_id__accept_post","security":[{"HTTPBearer":[]}],"parameters":[{"name":"item_id","in":"path","required":true,"schema":{"type":"string","title":"Item Id"}},{"name":"deal_workspace_id","in":"path","required":true,"schema":{"type":"string","title":"Deal Workspace Id"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/IrlItem"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/v1/workspaces/{deal_workspace_id}/dd/irl-items/{item_id}/reopen":{"post":{"tags":["dd-irl"],"summary":"Reopen Irl Item","operationId":"reopen_irl_item_api_v1_workspaces__deal_workspace_id__dd_irl_items__item_id__reopen_post","security":[{"HTTPBearer":[]}],"parameters":[{"name":"item_id","in":"path","required":true,"schema":{"type":"string","title":"Item Id"}},{"name":"deal_workspace_id","in":"path","required":true,"schema":{"type":"string","title":"Deal Workspace Id"}}],"requestBody":{"content":{"application/json":{"schema":{"anyOf":[{"$ref":"#/components/schemas/ReopenBody"},{"type":"null"}],"title":"Body"}}}},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/IrlItem"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/v1/workspaces/{deal_workspace_id}/dd/irl-items/{item_id}/check":{"post":{"tags":["dd-irl"],"summary":"Check Irl Item Again","operationId":"check_irl_item_again_api_v1_workspaces__deal_workspace_id__dd_irl_items__item_id__check_post","security":[{"HTTPBearer":[]}],"parameters":[{"name":"item_id","in":"path","required":true,"schema":{"type":"string","title":"Item Id"}},{"name":"deal_workspace_id","in":"path","required":true,"schema":{"type":"string","title":"Deal Workspace Id"}}],"responses":{"202":{"description":"Successful Response","content":{"application/json":{"schema":{"type":"object","additionalProperties":{"type":"boolean"},"title":"Response Check Irl Item Again Api V1 Workspaces  Deal Workspace Id  Dd Irl Items  Item Id  Check Post"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/v1/workspaces/{deal_workspace_id}/dd/files/{file_id}/download":{"get":{"tags":["dd-irl"],"summary":"Get Answer File Download","operationId":"get_answer_file_download_api_v1_workspaces__deal_workspace_id__dd_files__file_id__download_get","security":[{"HTTPBearer":[]}],"parameters":[{"name":"file_id","in":"path","required":true,"schema":{"type":"string","title":"File Id"}},{"name":"deal_workspace_id","in":"path","required":true,"schema":{"type":"string","title":"Deal Workspace Id"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/FileUrl"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/v1/workspaces/{deal_workspace_id}/dd/buyers":{"get":{"tags":["dd-buyers"],"summary":"List Buyers","operationId":"list_buyers_api_v1_workspaces__deal_workspace_id__dd_buyers_get","security":[{"HTTPBearer":[]}],"parameters":[{"name":"deal_workspace_id","in":"path","required":true,"schema":{"type":"string","title":"Deal Workspace Id"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"type":"array","items":{"$ref":"#/components/schemas/BuyerProjectSummary"},"title":"Response List Buyers Api V1 Workspaces  Deal Workspace Id  Dd Buyers Get"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}},"post":{"tags":["dd-buyers"],"summary":"Create Buyer","operationId":"create_buyer_api_v1_workspaces__deal_workspace_id__dd_buyers_post","security":[{"HTTPBearer":[]}],"parameters":[{"name":"deal_workspace_id","in":"path","required":true,"schema":{"type":"string","title":"Deal Workspace Id"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/NewBuyerBody"}}}},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/BuyerProject"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/v1/workspaces/{deal_workspace_id}/dd/buyers/{buyer_id}":{"get":{"tags":["dd-buyers"],"summary":"Get Buyer","operationId":"get_buyer_api_v1_workspaces__deal_workspace_id__dd_buyers__buyer_id__get","security":[{"HTTPBearer":[]}],"parameters":[{"name":"buyer_id","in":"path","required":true,"schema":{"type":"string","title":"Buyer Id"}},{"name":"deal_workspace_id","in":"path","required":true,"schema":{"type":"string","title":"Deal Workspace Id"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/BuyerProject"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}},"patch":{"tags":["dd-buyers"],"summary":"Update Buyer","operationId":"update_buyer_api_v1_workspaces__deal_workspace_id__dd_buyers__buyer_id__patch","security":[{"HTTPBearer":[]}],"parameters":[{"name":"buyer_id","in":"path","required":true,"schema":{"type":"string","title":"Buyer Id"}},{"name":"deal_workspace_id","in":"path","required":true,"schema":{"type":"string","title":"Deal Workspace Id"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/BuyerPatch"}}}},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/BuyerProject"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}},"delete":{"tags":["dd-buyers"],"summary":"Delete Buyer","operationId":"delete_buyer_api_v1_workspaces__deal_workspace_id__dd_buyers__buyer_id__delete","security":[{"HTTPBearer":[]}],"parameters":[{"name":"buyer_id","in":"path","required":true,"schema":{"type":"string","title":"Buyer Id"}},{"name":"deal_workspace_id","in":"path","required":true,"schema":{"type":"string","title":"Deal Workspace Id"}}],"responses":{"204":{"description":"Successful Response"},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/v1/workspaces/{deal_workspace_id}/dd/buyers/{buyer_id}/publish":{"post":{"tags":["dd-buyers"],"summary":"Publish Buyer","operationId":"publish_buyer_api_v1_workspaces__deal_workspace_id__dd_buyers__buyer_id__publish_post","security":[{"HTTPBearer":[]}],"parameters":[{"name":"buyer_id","in":"path","required":true,"schema":{"type":"string","title":"Buyer Id"}},{"name":"deal_workspace_id","in":"path","required":true,"schema":{"type":"string","title":"Deal Workspace Id"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/BuyerProject"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/v1/workspaces/{deal_workspace_id}/dd/buyers/{buyer_id}/unpublish":{"post":{"tags":["dd-buyers"],"summary":"Unpublish Buyer","operationId":"unpublish_buyer_api_v1_workspaces__deal_workspace_id__dd_buyers__buyer_id__unpublish_post","security":[{"HTTPBearer":[]}],"parameters":[{"name":"buyer_id","in":"path","required":true,"schema":{"type":"string","title":"Buyer Id"}},{"name":"deal_workspace_id","in":"path","required":true,"schema":{"type":"string","title":"Deal Workspace Id"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/BuyerProject"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/v1/workspaces/{deal_workspace_id}/dd/buyer-requests/{request_id}":{"patch":{"tags":["dd-buyers"],"summary":"Update Buyer Request","operationId":"update_buyer_request_api_v1_workspaces__deal_workspace_id__dd_buyer_requests__request_id__patch","security":[{"HTTPBearer":[]}],"parameters":[{"name":"request_id","in":"path","required":true,"schema":{"type":"string","title":"Request Id"}},{"name":"deal_workspace_id","in":"path","required":true,"schema":{"type":"string","title":"Deal Workspace Id"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/BuyerRequestPatch"}}}},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/BuyerRequest"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}},"delete":{"tags":["dd-buyers"],"summary":"Remove Buyer Request","operationId":"remove_buyer_request_api_v1_workspaces__deal_workspace_id__dd_buyer_requests__request_id__delete","security":[{"HTTPBearer":[]}],"parameters":[{"name":"request_id","in":"path","required":true,"schema":{"type":"string","title":"Request Id"}},{"name":"deal_workspace_id","in":"path","required":true,"schema":{"type":"string","title":"Deal Workspace Id"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/BuyerProject"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/v1/workspaces/{deal_workspace_id}/dd/buyer-requests/{request_id}/release":{"post":{"tags":["dd-buyers"],"summary":"Release Buyer Request","operationId":"release_buyer_request_api_v1_workspaces__deal_workspace_id__dd_buyer_requests__request_id__release_post","security":[{"HTTPBearer":[]}],"parameters":[{"name":"request_id","in":"path","required":true,"schema":{"type":"string","title":"Request Id"}},{"name":"deal_workspace_id","in":"path","required":true,"schema":{"type":"string","title":"Deal Workspace Id"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ReleaseBody"}}}},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/BuyerRequest"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/v1/workspaces/{deal_workspace_id}/dd/buyer-requests/{request_id}/withdraw":{"post":{"tags":["dd-buyers"],"summary":"Withdraw Buyer Release","operationId":"withdraw_buyer_release_api_v1_workspaces__deal_workspace_id__dd_buyer_requests__request_id__withdraw_post","security":[{"HTTPBearer":[]}],"parameters":[{"name":"request_id","in":"path","required":true,"schema":{"type":"string","title":"Request Id"}},{"name":"deal_workspace_id","in":"path","required":true,"schema":{"type":"string","title":"Deal Workspace Id"}}],"requestBody":{"content":{"application/json":{"schema":{"anyOf":[{"$ref":"#/components/schemas/WithdrawBody"},{"type":"null"}],"title":"Body"}}}},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/BuyerRequest"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/v1/workspaces/{deal_workspace_id}/dd/buyer-requests/{request_id}/notes":{"post":{"tags":["dd-buyers"],"summary":"Add Buyer Request Note","operationId":"add_buyer_request_note_api_v1_workspaces__deal_workspace_id__dd_buyer_requests__request_id__notes_post","security":[{"HTTPBearer":[]}],"parameters":[{"name":"request_id","in":"path","required":true,"schema":{"type":"string","title":"Request Id"}},{"name":"deal_workspace_id","in":"path","required":true,"schema":{"type":"string","title":"Deal Workspace Id"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/NewFirmNoteBody"}}}},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Note"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/v1/workspaces/{deal_workspace_id}/dd/buyers/{buyer_id}/export.xlsx":{"get":{"tags":["dd-buyers"],"summary":"Export Buyer Requests","operationId":"export_buyer_requests_api_v1_workspaces__deal_workspace_id__dd_buyers__buyer_id__export_xlsx_get","security":[{"HTTPBearer":[]}],"parameters":[{"name":"buyer_id","in":"path","required":true,"schema":{"type":"string","title":"Buyer Id"}},{"name":"deal_workspace_id","in":"path","required":true,"schema":{"type":"string","title":"Deal Workspace Id"}},{"name":"codes","in":"query","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"description":"Request codes to include, separated by commas; all when absent.","title":"Codes"},"description":"Request codes to include, separated by commas; all when absent."},{"name":"sources","in":"query","required":false,"schema":{"type":"boolean","description":"Add a sheet with every source.","default":false,"title":"Sources"},"description":"Add a sheet with every source."}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/v1/workspaces/{deal_workspace_id}/dd/buyer-requests/{request_id}/files":{"post":{"tags":["dd-buyers"],"summary":"Attach Request Files","operationId":"attach_request_files_api_v1_workspaces__deal_workspace_id__dd_buyer_requests__request_id__files_post","security":[{"HTTPBearer":[]}],"parameters":[{"name":"request_id","in":"path","required":true,"schema":{"type":"string","title":"Request Id"}},{"name":"deal_workspace_id","in":"path","required":true,"schema":{"type":"string","title":"Deal Workspace Id"}}],"requestBody":{"content":{"multipart/form-data":{"schema":{"$ref":"#/components/schemas/Body_attach_request_files_api_v1_workspaces__deal_workspace_id__dd_buyer_requests__request_id__files_post"}}}},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/BuyerRequest"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/v1/workspaces/{deal_workspace_id}/dd/buyer-requests/{request_id}/files/{file_id}":{"delete":{"tags":["dd-buyers"],"summary":"Remove Request File","operationId":"remove_request_file_api_v1_workspaces__deal_workspace_id__dd_buyer_requests__request_id__files__file_id__delete","security":[{"HTTPBearer":[]}],"parameters":[{"name":"request_id","in":"path","required":true,"schema":{"type":"string","title":"Request Id"}},{"name":"file_id","in":"path","required":true,"schema":{"type":"string","title":"File Id"}},{"name":"deal_workspace_id","in":"path","required":true,"schema":{"type":"string","title":"Deal Workspace Id"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/BuyerRequest"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/v1/workspaces/{deal_workspace_id}/dd/buyers/{buyer_id}/answering":{"get":{"tags":["dd-answering"],"summary":"Answering Status","operationId":"answering_status_api_v1_workspaces__deal_workspace_id__dd_buyers__buyer_id__answering_get","security":[{"HTTPBearer":[]}],"parameters":[{"name":"buyer_id","in":"path","required":true,"schema":{"type":"string","title":"Buyer Id"}},{"name":"deal_workspace_id","in":"path","required":true,"schema":{"type":"string","title":"Deal Workspace Id"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/AnsweringStatus"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/v1/workspaces/{deal_workspace_id}/dd/buyers/{buyer_id}/answering/start":{"post":{"tags":["dd-answering"],"summary":"Start Answering","operationId":"start_answering_api_v1_workspaces__deal_workspace_id__dd_buyers__buyer_id__answering_start_post","security":[{"HTTPBearer":[]}],"parameters":[{"name":"buyer_id","in":"path","required":true,"schema":{"type":"string","title":"Buyer Id"}},{"name":"deal_workspace_id","in":"path","required":true,"schema":{"type":"string","title":"Deal Workspace Id"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/AnsweringStatus"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/v1/workspaces/{deal_workspace_id}/dd/buyers/{buyer_id}/answering/pause":{"post":{"tags":["dd-answering"],"summary":"Pause Answering","operationId":"pause_answering_api_v1_workspaces__deal_workspace_id__dd_buyers__buyer_id__answering_pause_post","security":[{"HTTPBearer":[]}],"parameters":[{"name":"buyer_id","in":"path","required":true,"schema":{"type":"string","title":"Buyer Id"}},{"name":"deal_workspace_id","in":"path","required":true,"schema":{"type":"string","title":"Deal Workspace Id"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/AnsweringStatus"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/v1/workspaces/{deal_workspace_id}/dd/buyers/{buyer_id}/answering/resume":{"post":{"tags":["dd-answering"],"summary":"Resume Answering","operationId":"resume_answering_api_v1_workspaces__deal_workspace_id__dd_buyers__buyer_id__answering_resume_post","security":[{"HTTPBearer":[]}],"parameters":[{"name":"buyer_id","in":"path","required":true,"schema":{"type":"string","title":"Buyer Id"}},{"name":"deal_workspace_id","in":"path","required":true,"schema":{"type":"string","title":"Deal Workspace Id"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/AnsweringStatus"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/v1/workspaces/{deal_workspace_id}/dd/buyer-requests/{request_id}/answer":{"post":{"tags":["dd-answering"],"summary":"Answer Request","operationId":"answer_request_api_v1_workspaces__deal_workspace_id__dd_buyer_requests__request_id__answer_post","security":[{"HTTPBearer":[]}],"parameters":[{"name":"request_id","in":"path","required":true,"schema":{"type":"string","title":"Request Id"}},{"name":"deal_workspace_id","in":"path","required":true,"schema":{"type":"string","title":"Deal Workspace Id"}}],"requestBody":{"content":{"application/json":{"schema":{"anyOf":[{"$ref":"#/components/schemas/AnswerBody"},{"type":"null"}],"title":"Body"}}}},"responses":{"202":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/AnsweringStatus"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/v1/workspaces/{deal_workspace_id}/dd/buyers/{buyer_id}/questions":{"get":{"tags":["dd-questions"],"summary":"Waiting Questions","operationId":"waiting_questions_api_v1_workspaces__deal_workspace_id__dd_buyers__buyer_id__questions_get","security":[{"HTTPBearer":[]}],"parameters":[{"name":"buyer_id","in":"path","required":true,"schema":{"type":"string","title":"Buyer Id"}},{"name":"deal_workspace_id","in":"path","required":true,"schema":{"type":"string","title":"Deal Workspace Id"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/WaitingQuestions"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/v1/workspaces/{deal_workspace_id}/dd/irl-projects/{project_id}/emails":{"get":{"tags":["dd-email"],"summary":"Get Email Setup","operationId":"get_email_setup_api_v1_workspaces__deal_workspace_id__dd_irl_projects__project_id__emails_get","security":[{"HTTPBearer":[]}],"parameters":[{"name":"project_id","in":"path","required":true,"schema":{"type":"string","title":"Project Id"}},{"name":"deal_workspace_id","in":"path","required":true,"schema":{"type":"string","title":"Deal Workspace Id"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/EmailSetup"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}},"patch":{"tags":["dd-email"],"summary":"Patch Email Setup","operationId":"patch_email_setup_api_v1_workspaces__deal_workspace_id__dd_irl_projects__project_id__emails_patch","security":[{"HTTPBearer":[]}],"parameters":[{"name":"project_id","in":"path","required":true,"schema":{"type":"string","title":"Project Id"}},{"name":"deal_workspace_id","in":"path","required":true,"schema":{"type":"string","title":"Deal Workspace Id"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/EmailSettingsPatch"}}}},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/EmailSetup"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/v1/workspaces/{deal_workspace_id}/dd/irl-projects/{project_id}/contacts":{"post":{"tags":["dd-email"],"summary":"Add Contact","operationId":"add_contact_api_v1_workspaces__deal_workspace_id__dd_irl_projects__project_id__contacts_post","security":[{"HTTPBearer":[]}],"parameters":[{"name":"project_id","in":"path","required":true,"schema":{"type":"string","title":"Project Id"}},{"name":"deal_workspace_id","in":"path","required":true,"schema":{"type":"string","title":"Deal Workspace Id"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/NewContactBody"}}}},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/agentic_be__dd__models__Contact"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/v1/workspaces/{deal_workspace_id}/dd/contacts/{contact_id}":{"patch":{"tags":["dd-email"],"summary":"Update Contact","operationId":"update_contact_api_v1_workspaces__deal_workspace_id__dd_contacts__contact_id__patch","security":[{"HTTPBearer":[]}],"parameters":[{"name":"contact_id","in":"path","required":true,"schema":{"type":"string","title":"Contact Id"}},{"name":"deal_workspace_id","in":"path","required":true,"schema":{"type":"string","title":"Deal Workspace Id"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ContactPatch"}}}},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/agentic_be__dd__models__Contact"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}},"delete":{"tags":["dd-email"],"summary":"Delete Contact","operationId":"delete_contact_api_v1_workspaces__deal_workspace_id__dd_contacts__contact_id__delete","security":[{"HTTPBearer":[]}],"parameters":[{"name":"contact_id","in":"path","required":true,"schema":{"type":"string","title":"Contact Id"}},{"name":"deal_workspace_id","in":"path","required":true,"schema":{"type":"string","title":"Deal Workspace Id"}}],"responses":{"204":{"description":"Successful Response"},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/v1/workspaces/{deal_workspace_id}/dd/irl-projects/{project_id}/schedules/{kind}":{"put":{"tags":["dd-email"],"summary":"Save Schedule","operationId":"save_schedule_api_v1_workspaces__deal_workspace_id__dd_irl_projects__project_id__schedules__kind__put","security":[{"HTTPBearer":[]}],"parameters":[{"name":"project_id","in":"path","required":true,"schema":{"type":"string","title":"Project Id"}},{"name":"kind","in":"path","required":true,"schema":{"enum":["summary","reminder"],"type":"string","title":"Kind"}},{"name":"deal_workspace_id","in":"path","required":true,"schema":{"type":"string","title":"Deal Workspace Id"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ScheduleBody"}}}},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Schedule"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/v1/workspaces/{deal_workspace_id}/dd/irl-projects/{project_id}/emails/preview":{"get":{"tags":["dd-email"],"summary":"Get Email Preview","operationId":"get_email_preview_api_v1_workspaces__deal_workspace_id__dd_irl_projects__project_id__emails_preview_get","security":[{"HTTPBearer":[]}],"parameters":[{"name":"project_id","in":"path","required":true,"schema":{"type":"string","title":"Project Id"}},{"name":"deal_workspace_id","in":"path","required":true,"schema":{"type":"string","title":"Deal Workspace Id"}},{"name":"kind","in":"query","required":true,"schema":{"enum":["summary","reminder"],"type":"string","title":"Kind"}},{"name":"contactId","in":"query","required":true,"schema":{"type":"string","title":"Contactid"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/EmailPreview"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/v1/workspaces/{deal_workspace_id}/dd/irl-projects/{project_id}/emails/send-now":{"post":{"tags":["dd-email"],"summary":"Send Now","operationId":"send_now_api_v1_workspaces__deal_workspace_id__dd_irl_projects__project_id__emails_send_now_post","security":[{"HTTPBearer":[]}],"parameters":[{"name":"project_id","in":"path","required":true,"schema":{"type":"string","title":"Project Id"}},{"name":"deal_workspace_id","in":"path","required":true,"schema":{"type":"string","title":"Deal Workspace Id"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/SendNowBody"}}}},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/SendNowResult"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/v1/workspaces/{deal_workspace_id}/dd/irl-projects/{project_id}/outbox":{"get":{"tags":["dd-email"],"summary":"Get Outbox","operationId":"get_outbox_api_v1_workspaces__deal_workspace_id__dd_irl_projects__project_id__outbox_get","security":[{"HTTPBearer":[]}],"parameters":[{"name":"project_id","in":"path","required":true,"schema":{"type":"string","title":"Project Id"}},{"name":"deal_workspace_id","in":"path","required":true,"schema":{"type":"string","title":"Deal Workspace Id"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"type":"array","items":{"$ref":"#/components/schemas/OutboundEmail"},"title":"Response Get Outbox Api V1 Workspaces  Deal Workspace Id  Dd Irl Projects  Project Id  Outbox Get"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/v1/workspaces/{deal_workspace_id}/dd/irl-projects/{project_id}/email-history":{"get":{"tags":["dd-email"],"summary":"Get Email History","operationId":"get_email_history_api_v1_workspaces__deal_workspace_id__dd_irl_projects__project_id__email_history_get","security":[{"HTTPBearer":[]}],"parameters":[{"name":"project_id","in":"path","required":true,"schema":{"type":"string","title":"Project Id"}},{"name":"deal_workspace_id","in":"path","required":true,"schema":{"type":"string","title":"Deal Workspace Id"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"type":"array","items":{"$ref":"#/components/schemas/OutboundEmail"},"title":"Response Get Email History Api V1 Workspaces  Deal Workspace Id  Dd Irl Projects  Project Id  Email History Get"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/v1/workspaces/{deal_workspace_id}/dd/outbound-emails/{email_id}":{"patch":{"tags":["dd-email"],"summary":"Edit Outbound Email","operationId":"edit_outbound_email_api_v1_workspaces__deal_workspace_id__dd_outbound_emails__email_id__patch","security":[{"HTTPBearer":[]}],"parameters":[{"name":"email_id","in":"path","required":true,"schema":{"type":"string","title":"Email Id"}},{"name":"deal_workspace_id","in":"path","required":true,"schema":{"type":"string","title":"Deal Workspace Id"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/OutboundEdit"}}}},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/OutboundEmail"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/v1/workspaces/{deal_workspace_id}/dd/outbound-emails/{email_id}/skip":{"post":{"tags":["dd-email"],"summary":"Skip Outbound Email","operationId":"skip_outbound_email_api_v1_workspaces__deal_workspace_id__dd_outbound_emails__email_id__skip_post","security":[{"HTTPBearer":[]}],"parameters":[{"name":"email_id","in":"path","required":true,"schema":{"type":"string","title":"Email Id"}},{"name":"deal_workspace_id","in":"path","required":true,"schema":{"type":"string","title":"Deal Workspace Id"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/OutboundEmail"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/v1/workspaces/{deal_workspace_id}/dd/outbound-emails/{email_id}/retry":{"post":{"tags":["dd-email"],"summary":"Retry Outbound Email","operationId":"retry_outbound_email_api_v1_workspaces__deal_workspace_id__dd_outbound_emails__email_id__retry_post","security":[{"HTTPBearer":[]}],"parameters":[{"name":"email_id","in":"path","required":true,"schema":{"type":"string","title":"Email Id"}},{"name":"deal_workspace_id","in":"path","required":true,"schema":{"type":"string","title":"Deal Workspace Id"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/OutboundEmail"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/v1/workspaces/{deal_workspace_id}/dd/outbound-emails/{email_id}/send":{"post":{"tags":["dd-email"],"summary":"Send Outbound Email","operationId":"send_outbound_email_api_v1_workspaces__deal_workspace_id__dd_outbound_emails__email_id__send_post","security":[{"HTTPBearer":[]}],"parameters":[{"name":"email_id","in":"path","required":true,"schema":{"type":"string","title":"Email Id"}},{"name":"deal_workspace_id","in":"path","required":true,"schema":{"type":"string","title":"Deal Workspace Id"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/OutboundEmail"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/v1/public/dd/irl/{slug}":{"get":{"tags":["dd-public"],"summary":"Get Public Irl","operationId":"get_public_irl_api_v1_public_dd_irl__slug__get","security":[{"HTTPBearer":[]}],"parameters":[{"name":"slug","in":"path","required":true,"schema":{"type":"string","title":"Slug"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/PublicIrl"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/v1/public/dd/irl/{slug}/items/{item_id}/answers":{"post":{"tags":["dd-public"],"summary":"Submit Irl Answer","operationId":"submit_irl_answer_api_v1_public_dd_irl__slug__items__item_id__answers_post","security":[{"HTTPBearer":[]}],"parameters":[{"name":"item_id","in":"path","required":true,"schema":{"type":"string","title":"Item Id"}},{"name":"slug","in":"path","required":true,"schema":{"type":"string","title":"Slug"}}],"requestBody":{"content":{"multipart/form-data":{"schema":{"$ref":"#/components/schemas/Body_submit_irl_answer_api_v1_public_dd_irl__slug__items__item_id__answers_post"}}}},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Answer"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/v1/public/dd/irl/{slug}/answers/{answer_id}":{"get":{"tags":["dd-public"],"summary":"Get Irl Answer","operationId":"get_irl_answer_api_v1_public_dd_irl__slug__answers__answer_id__get","security":[{"HTTPBearer":[]}],"parameters":[{"name":"answer_id","in":"path","required":true,"schema":{"type":"string","title":"Answer Id"}},{"name":"slug","in":"path","required":true,"schema":{"type":"string","title":"Slug"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Answer"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/v1/public/dd/irl/{slug}/items/{item_id}/notes":{"post":{"tags":["dd-public"],"summary":"Add Irl Client Note","operationId":"add_irl_client_note_api_v1_public_dd_irl__slug__items__item_id__notes_post","security":[{"HTTPBearer":[]}],"parameters":[{"name":"item_id","in":"path","required":true,"schema":{"type":"string","title":"Item Id"}},{"name":"slug","in":"path","required":true,"schema":{"type":"string","title":"Slug"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/NewOutsideNoteBody"}}}},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/PublicNote"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/v1/public/dd/irl/{slug}/files/{file_id}/{shown_name}":{"get":{"tags":["dd-public"],"summary":"Download Irl File","operationId":"download_irl_file_api_v1_public_dd_irl__slug__files__file_id___shown_name__get","security":[{"HTTPBearer":[]}],"parameters":[{"name":"file_id","in":"path","required":true,"schema":{"type":"string","title":"File Id"}},{"name":"shown_name","in":"path","required":true,"schema":{"type":"string","title":"Shown Name"}},{"name":"slug","in":"path","required":true,"schema":{"type":"string","title":"Slug"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/v1/public/dd/buyer/{slug}":{"get":{"tags":["dd-public"],"summary":"Get Public Buyer","operationId":"get_public_buyer_api_v1_public_dd_buyer__slug__get","security":[{"HTTPBearer":[]}],"parameters":[{"name":"slug","in":"path","required":true,"schema":{"type":"string","title":"Slug"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/PublicBuyer"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/v1/public/dd/buyer/{slug}/files/{file_id}/{shown_name}":{"get":{"tags":["dd-public"],"summary":"Download Buyer File","operationId":"download_buyer_file_api_v1_public_dd_buyer__slug__files__file_id___shown_name__get","security":[{"HTTPBearer":[]}],"parameters":[{"name":"file_id","in":"path","required":true,"schema":{"type":"string","title":"File Id"}},{"name":"shown_name","in":"path","required":true,"schema":{"type":"string","title":"Shown Name"}},{"name":"slug","in":"path","required":true,"schema":{"type":"string","title":"Slug"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/v1/public/dd/buyer/{slug}/requests":{"post":{"tags":["dd-public"],"summary":"Add Public Buyer Request","operationId":"add_public_buyer_request_api_v1_public_dd_buyer__slug__requests_post","security":[{"HTTPBearer":[]}],"parameters":[{"name":"slug","in":"path","required":true,"schema":{"type":"string","title":"Slug"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/NewPublicRequestBody"}}}},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/PublicBuyerRequest"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/v1/public/dd/buyer/{slug}/requests/{code}/notes":{"post":{"tags":["dd-public"],"summary":"Add Public Buyer Note","operationId":"add_public_buyer_note_api_v1_public_dd_buyer__slug__requests__code__notes_post","security":[{"HTTPBearer":[]}],"parameters":[{"name":"code","in":"path","required":true,"schema":{"type":"string","title":"Code"}},{"name":"slug","in":"path","required":true,"schema":{"type":"string","title":"Slug"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/NewOutsideNoteBody"}}}},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/PublicNote"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/v1/workspaces/{deal_workspace_id}/dd/irl-projects/{project_id}/agent/ui-components":{"get":{"tags":["dd-agent"],"summary":"List Ui Components","operationId":"list_ui_components_api_v1_workspaces__deal_workspace_id__dd_irl_projects__project_id__agent_ui_components_get","security":[{"HTTPBearer":[]}],"parameters":[{"name":"project_id","in":"path","required":true,"schema":{"type":"string","title":"Project Id"}},{"name":"deal_workspace_id","in":"path","required":true,"schema":{"type":"string","title":"Deal Workspace Id"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"type":"object","additionalProperties":true,"title":"Response List Ui Components Api V1 Workspaces  Deal Workspace Id  Dd Irl Projects  Project Id  Agent Ui Components Get"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/v1/workspaces/{deal_workspace_id}/dd/irl-projects/{project_id}/agent/ui-components/{component_id}/steps":{"post":{"tags":["dd-agent"],"summary":"Change Ui Component","operationId":"change_ui_component_api_v1_workspaces__deal_workspace_id__dd_irl_projects__project_id__agent_ui_components__component_id__steps_post","security":[{"HTTPBearer":[]}],"parameters":[{"name":"component_id","in":"path","required":true,"schema":{"type":"string","title":"Component Id"}},{"name":"project_id","in":"path","required":true,"schema":{"type":"string","title":"Project Id"}},{"name":"deal_workspace_id","in":"path","required":true,"schema":{"type":"string","title":"Deal Workspace Id"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/StepsBody"}}}},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"type":"object","additionalProperties":true,"title":"Response Change Ui Component Api V1 Workspaces  Deal Workspace Id  Dd Irl Projects  Project Id  Agent Ui Components  Component Id  Steps Post"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/v1/workspaces/{deal_workspace_id}/dd/irl-projects/{project_id}/agent":{"get":{"tags":["dd-agent"],"summary":"Read Conversation","operationId":"read_conversation_api_v1_workspaces__deal_workspace_id__dd_irl_projects__project_id__agent_get","security":[{"HTTPBearer":[]}],"parameters":[{"name":"project_id","in":"path","required":true,"schema":{"type":"string","title":"Project Id"}},{"name":"deal_workspace_id","in":"path","required":true,"schema":{"type":"string","title":"Deal Workspace Id"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"type":"object","additionalProperties":true,"title":"Response Read Conversation Api V1 Workspaces  Deal Workspace Id  Dd Irl Projects  Project Id  Agent Get"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/v1/workspaces/{deal_workspace_id}/dd/irl-projects/{project_id}/agent/in-flight":{"get":{"tags":["dd-agent"],"summary":"In Flight Turn","operationId":"in_flight_turn_api_v1_workspaces__deal_workspace_id__dd_irl_projects__project_id__agent_in_flight_get","security":[{"HTTPBearer":[]}],"parameters":[{"name":"project_id","in":"path","required":true,"schema":{"type":"string","title":"Project Id"}},{"name":"deal_workspace_id","in":"path","required":true,"schema":{"type":"string","title":"Deal Workspace Id"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/InFlightTurnResponse"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/v1/workspaces/{deal_workspace_id}/dd/irl-projects/{project_id}/agent/turn-starts":{"get":{"tags":["dd-agent"],"summary":"Watch Turn Starts","description":"The open chat's live line, as the Manager chat has: it carries a card another tab changed (and each turn that\nstarts), so a tick shows here within a second or two. Only ids and versions travel on it, so a public mount may\nhave it too; the page reads the card again through the list route. The thread is the mount's own.","operationId":"watch_turn_starts_api_v1_workspaces__deal_workspace_id__dd_irl_projects__project_id__agent_turn_starts_get","security":[{"HTTPBearer":[]}],"parameters":[{"name":"project_id","in":"path","required":true,"schema":{"type":"string","title":"Project Id"}},{"name":"deal_workspace_id","in":"path","required":true,"schema":{"type":"string","title":"Deal Workspace Id"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/v1/workspaces/{deal_workspace_id}/dd/irl-projects/{project_id}/agent/messages/stream":{"post":{"tags":["dd-agent"],"summary":"Send Message","operationId":"send_message_api_v1_workspaces__deal_workspace_id__dd_irl_projects__project_id__agent_messages_stream_post","security":[{"HTTPBearer":[]}],"parameters":[{"name":"project_id","in":"path","required":true,"schema":{"type":"string","title":"Project Id"}},{"name":"deal_workspace_id","in":"path","required":true,"schema":{"type":"string","title":"Deal Workspace Id"}},{"name":"Last-Event-ID","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Last-Event-Id"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/StreamMessageRequest"}}}},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/v1/workspaces/{deal_workspace_id}/dd/irl-projects/{project_id}/agent/turns/{turn_id}/tool-call-answer":{"post":{"tags":["dd-agent"],"summary":"Answer Question","operationId":"answer_question_api_v1_workspaces__deal_workspace_id__dd_irl_projects__project_id__agent_turns__turn_id__tool_call_answer_post","security":[{"HTTPBearer":[]}],"parameters":[{"name":"turn_id","in":"path","required":true,"schema":{"type":"string","title":"Turn Id"}},{"name":"project_id","in":"path","required":true,"schema":{"type":"string","title":"Project Id"}},{"name":"deal_workspace_id","in":"path","required":true,"schema":{"type":"string","title":"Deal Workspace Id"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/HumanInputAnswer"}}}},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HumanInputAnswerResponse"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/v1/workspaces/{deal_workspace_id}/dd/irl-projects/{project_id}/agent/turns/{turn_id}/steer":{"post":{"tags":["dd-agent"],"summary":"Send Now","operationId":"send_now_api_v1_workspaces__deal_workspace_id__dd_irl_projects__project_id__agent_turns__turn_id__steer_post","security":[{"HTTPBearer":[]}],"parameters":[{"name":"turn_id","in":"path","required":true,"schema":{"type":"string","title":"Turn Id"}},{"name":"project_id","in":"path","required":true,"schema":{"type":"string","title":"Project Id"}},{"name":"deal_workspace_id","in":"path","required":true,"schema":{"type":"string","title":"Deal Workspace Id"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/SteerRequest"}}}},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/v1/workspaces/{deal_workspace_id}/dd/buyers/{buyer_id}/agent/ui-components":{"get":{"tags":["dd-agent"],"summary":"List Ui Components","operationId":"list_ui_components_api_v1_workspaces__deal_workspace_id__dd_buyers__buyer_id__agent_ui_components_get","security":[{"HTTPBearer":[]}],"parameters":[{"name":"buyer_id","in":"path","required":true,"schema":{"type":"string","title":"Buyer Id"}},{"name":"deal_workspace_id","in":"path","required":true,"schema":{"type":"string","title":"Deal Workspace Id"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"type":"object","additionalProperties":true,"title":"Response List Ui Components Api V1 Workspaces  Deal Workspace Id  Dd Buyers  Buyer Id  Agent Ui Components Get"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/v1/workspaces/{deal_workspace_id}/dd/buyers/{buyer_id}/agent/ui-components/{component_id}/steps":{"post":{"tags":["dd-agent"],"summary":"Change Ui Component","operationId":"change_ui_component_api_v1_workspaces__deal_workspace_id__dd_buyers__buyer_id__agent_ui_components__component_id__steps_post","security":[{"HTTPBearer":[]}],"parameters":[{"name":"component_id","in":"path","required":true,"schema":{"type":"string","title":"Component Id"}},{"name":"buyer_id","in":"path","required":true,"schema":{"type":"string","title":"Buyer Id"}},{"name":"deal_workspace_id","in":"path","required":true,"schema":{"type":"string","title":"Deal Workspace Id"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/StepsBody"}}}},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"type":"object","additionalProperties":true,"title":"Response Change Ui Component Api V1 Workspaces  Deal Workspace Id  Dd Buyers  Buyer Id  Agent Ui Components  Component Id  Steps Post"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/v1/workspaces/{deal_workspace_id}/dd/buyers/{buyer_id}/agent":{"get":{"tags":["dd-agent"],"summary":"Read Conversation","operationId":"read_conversation_api_v1_workspaces__deal_workspace_id__dd_buyers__buyer_id__agent_get","security":[{"HTTPBearer":[]}],"parameters":[{"name":"buyer_id","in":"path","required":true,"schema":{"type":"string","title":"Buyer Id"}},{"name":"deal_workspace_id","in":"path","required":true,"schema":{"type":"string","title":"Deal Workspace Id"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"type":"object","additionalProperties":true,"title":"Response Read Conversation Api V1 Workspaces  Deal Workspace Id  Dd Buyers  Buyer Id  Agent Get"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/v1/workspaces/{deal_workspace_id}/dd/buyers/{buyer_id}/agent/in-flight":{"get":{"tags":["dd-agent"],"summary":"In Flight Turn","operationId":"in_flight_turn_api_v1_workspaces__deal_workspace_id__dd_buyers__buyer_id__agent_in_flight_get","security":[{"HTTPBearer":[]}],"parameters":[{"name":"buyer_id","in":"path","required":true,"schema":{"type":"string","title":"Buyer Id"}},{"name":"deal_workspace_id","in":"path","required":true,"schema":{"type":"string","title":"Deal Workspace Id"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/InFlightTurnResponse"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/v1/workspaces/{deal_workspace_id}/dd/buyers/{buyer_id}/agent/turn-starts":{"get":{"tags":["dd-agent"],"summary":"Watch Turn Starts","description":"The open chat's live line, as the Manager chat has: it carries a card another tab changed (and each turn that\nstarts), so a tick shows here within a second or two. Only ids and versions travel on it, so a public mount may\nhave it too; the page reads the card again through the list route. The thread is the mount's own.","operationId":"watch_turn_starts_api_v1_workspaces__deal_workspace_id__dd_buyers__buyer_id__agent_turn_starts_get","security":[{"HTTPBearer":[]}],"parameters":[{"name":"buyer_id","in":"path","required":true,"schema":{"type":"string","title":"Buyer Id"}},{"name":"deal_workspace_id","in":"path","required":true,"schema":{"type":"string","title":"Deal Workspace Id"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/v1/workspaces/{deal_workspace_id}/dd/buyers/{buyer_id}/agent/messages/stream":{"post":{"tags":["dd-agent"],"summary":"Send Message","operationId":"send_message_api_v1_workspaces__deal_workspace_id__dd_buyers__buyer_id__agent_messages_stream_post","security":[{"HTTPBearer":[]}],"parameters":[{"name":"buyer_id","in":"path","required":true,"schema":{"type":"string","title":"Buyer Id"}},{"name":"deal_workspace_id","in":"path","required":true,"schema":{"type":"string","title":"Deal Workspace Id"}},{"name":"Last-Event-ID","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Last-Event-Id"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/StreamMessageRequest"}}}},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/v1/workspaces/{deal_workspace_id}/dd/buyers/{buyer_id}/agent/turns/{turn_id}/tool-call-answer":{"post":{"tags":["dd-agent"],"summary":"Answer Question","operationId":"answer_question_api_v1_workspaces__deal_workspace_id__dd_buyers__buyer_id__agent_turns__turn_id__tool_call_answer_post","security":[{"HTTPBearer":[]}],"parameters":[{"name":"turn_id","in":"path","required":true,"schema":{"type":"string","title":"Turn Id"}},{"name":"buyer_id","in":"path","required":true,"schema":{"type":"string","title":"Buyer Id"}},{"name":"deal_workspace_id","in":"path","required":true,"schema":{"type":"string","title":"Deal Workspace Id"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/HumanInputAnswer"}}}},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HumanInputAnswerResponse"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/v1/workspaces/{deal_workspace_id}/dd/buyers/{buyer_id}/agent/turns/{turn_id}/steer":{"post":{"tags":["dd-agent"],"summary":"Send Now","operationId":"send_now_api_v1_workspaces__deal_workspace_id__dd_buyers__buyer_id__agent_turns__turn_id__steer_post","security":[{"HTTPBearer":[]}],"parameters":[{"name":"turn_id","in":"path","required":true,"schema":{"type":"string","title":"Turn Id"}},{"name":"buyer_id","in":"path","required":true,"schema":{"type":"string","title":"Buyer Id"}},{"name":"deal_workspace_id","in":"path","required":true,"schema":{"type":"string","title":"Deal Workspace Id"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/SteerRequest"}}}},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/v1/workspaces/{deal_workspace_id}/dd/buyers/{buyer_id}/requests/{request_id}/agent/ui-components":{"get":{"tags":["dd-agent"],"summary":"List Ui Components","operationId":"list_ui_components_api_v1_workspaces__deal_workspace_id__dd_buyers__buyer_id__requests__request_id__agent_ui_components_get","security":[{"HTTPBearer":[]}],"parameters":[{"name":"buyer_id","in":"path","required":true,"schema":{"type":"string","title":"Buyer Id"}},{"name":"request_id","in":"path","required":true,"schema":{"type":"string","title":"Request Id"}},{"name":"deal_workspace_id","in":"path","required":true,"schema":{"type":"string","title":"Deal Workspace Id"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"type":"object","additionalProperties":true,"title":"Response List Ui Components Api V1 Workspaces  Deal Workspace Id  Dd Buyers  Buyer Id  Requests  Request Id  Agent Ui Components Get"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/v1/workspaces/{deal_workspace_id}/dd/buyers/{buyer_id}/requests/{request_id}/agent/ui-components/{component_id}/steps":{"post":{"tags":["dd-agent"],"summary":"Change Ui Component","operationId":"change_ui_component_api_v1_workspaces__deal_workspace_id__dd_buyers__buyer_id__requests__request_id__agent_ui_components__component_id__steps_post","security":[{"HTTPBearer":[]}],"parameters":[{"name":"component_id","in":"path","required":true,"schema":{"type":"string","title":"Component Id"}},{"name":"buyer_id","in":"path","required":true,"schema":{"type":"string","title":"Buyer Id"}},{"name":"request_id","in":"path","required":true,"schema":{"type":"string","title":"Request Id"}},{"name":"deal_workspace_id","in":"path","required":true,"schema":{"type":"string","title":"Deal Workspace Id"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/StepsBody"}}}},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"type":"object","additionalProperties":true,"title":"Response Change Ui Component Api V1 Workspaces  Deal Workspace Id  Dd Buyers  Buyer Id  Requests  Request Id  Agent Ui Components  Component Id  Steps Post"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/v1/workspaces/{deal_workspace_id}/dd/buyers/{buyer_id}/requests/{request_id}/agent":{"get":{"tags":["dd-agent"],"summary":"Read Conversation","operationId":"read_conversation_api_v1_workspaces__deal_workspace_id__dd_buyers__buyer_id__requests__request_id__agent_get","security":[{"HTTPBearer":[]}],"parameters":[{"name":"buyer_id","in":"path","required":true,"schema":{"type":"string","title":"Buyer Id"}},{"name":"request_id","in":"path","required":true,"schema":{"type":"string","title":"Request Id"}},{"name":"deal_workspace_id","in":"path","required":true,"schema":{"type":"string","title":"Deal Workspace Id"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"type":"object","additionalProperties":true,"title":"Response Read Conversation Api V1 Workspaces  Deal Workspace Id  Dd Buyers  Buyer Id  Requests  Request Id  Agent Get"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/v1/workspaces/{deal_workspace_id}/dd/buyers/{buyer_id}/requests/{request_id}/agent/in-flight":{"get":{"tags":["dd-agent"],"summary":"In Flight Turn","operationId":"in_flight_turn_api_v1_workspaces__deal_workspace_id__dd_buyers__buyer_id__requests__request_id__agent_in_flight_get","security":[{"HTTPBearer":[]}],"parameters":[{"name":"buyer_id","in":"path","required":true,"schema":{"type":"string","title":"Buyer Id"}},{"name":"request_id","in":"path","required":true,"schema":{"type":"string","title":"Request Id"}},{"name":"deal_workspace_id","in":"path","required":true,"schema":{"type":"string","title":"Deal Workspace Id"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/InFlightTurnResponse"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/v1/workspaces/{deal_workspace_id}/dd/buyers/{buyer_id}/requests/{request_id}/agent/turn-starts":{"get":{"tags":["dd-agent"],"summary":"Watch Turn Starts","description":"The open chat's live line, as the Manager chat has: it carries a card another tab changed (and each turn that\nstarts), so a tick shows here within a second or two. Only ids and versions travel on it, so a public mount may\nhave it too; the page reads the card again through the list route. The thread is the mount's own.","operationId":"watch_turn_starts_api_v1_workspaces__deal_workspace_id__dd_buyers__buyer_id__requests__request_id__agent_turn_starts_get","security":[{"HTTPBearer":[]}],"parameters":[{"name":"buyer_id","in":"path","required":true,"schema":{"type":"string","title":"Buyer Id"}},{"name":"request_id","in":"path","required":true,"schema":{"type":"string","title":"Request Id"}},{"name":"deal_workspace_id","in":"path","required":true,"schema":{"type":"string","title":"Deal Workspace Id"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/v1/workspaces/{deal_workspace_id}/dd/buyers/{buyer_id}/requests/{request_id}/agent/messages/stream":{"post":{"tags":["dd-agent"],"summary":"Send Message","operationId":"send_message_api_v1_workspaces__deal_workspace_id__dd_buyers__buyer_id__requests__request_id__agent_messages_stream_post","security":[{"HTTPBearer":[]}],"parameters":[{"name":"buyer_id","in":"path","required":true,"schema":{"type":"string","title":"Buyer Id"}},{"name":"request_id","in":"path","required":true,"schema":{"type":"string","title":"Request Id"}},{"name":"deal_workspace_id","in":"path","required":true,"schema":{"type":"string","title":"Deal Workspace Id"}},{"name":"Last-Event-ID","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Last-Event-Id"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/StreamMessageRequest"}}}},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/v1/workspaces/{deal_workspace_id}/dd/buyers/{buyer_id}/requests/{request_id}/agent/turns/{turn_id}/tool-call-answer":{"post":{"tags":["dd-agent"],"summary":"Answer Question","operationId":"answer_question_api_v1_workspaces__deal_workspace_id__dd_buyers__buyer_id__requests__request_id__agent_turns__turn_id__tool_call_answer_post","security":[{"HTTPBearer":[]}],"parameters":[{"name":"turn_id","in":"path","required":true,"schema":{"type":"string","title":"Turn Id"}},{"name":"buyer_id","in":"path","required":true,"schema":{"type":"string","title":"Buyer Id"}},{"name":"request_id","in":"path","required":true,"schema":{"type":"string","title":"Request Id"}},{"name":"deal_workspace_id","in":"path","required":true,"schema":{"type":"string","title":"Deal Workspace Id"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/HumanInputAnswer"}}}},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HumanInputAnswerResponse"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/v1/workspaces/{deal_workspace_id}/dd/buyers/{buyer_id}/requests/{request_id}/agent/turns/{turn_id}/steer":{"post":{"tags":["dd-agent"],"summary":"Send Now","operationId":"send_now_api_v1_workspaces__deal_workspace_id__dd_buyers__buyer_id__requests__request_id__agent_turns__turn_id__steer_post","security":[{"HTTPBearer":[]}],"parameters":[{"name":"turn_id","in":"path","required":true,"schema":{"type":"string","title":"Turn Id"}},{"name":"buyer_id","in":"path","required":true,"schema":{"type":"string","title":"Buyer Id"}},{"name":"request_id","in":"path","required":true,"schema":{"type":"string","title":"Request Id"}},{"name":"deal_workspace_id","in":"path","required":true,"schema":{"type":"string","title":"Deal Workspace Id"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/SteerRequest"}}}},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/v1/public/dd/irl/{slug}/agent/ui-components":{"get":{"tags":["dd-agent-public"],"summary":"List Ui Components","operationId":"list_ui_components_api_v1_public_dd_irl__slug__agent_ui_components_get","security":[{"HTTPBearer":[]}],"parameters":[{"name":"slug","in":"path","required":true,"schema":{"type":"string","title":"Slug"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"type":"object","additionalProperties":true,"title":"Response List Ui Components Api V1 Public Dd Irl  Slug  Agent Ui Components Get"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/v1/public/dd/irl/{slug}/agent/ui-components/{component_id}/steps":{"post":{"tags":["dd-agent-public"],"summary":"Change Ui Component","operationId":"change_ui_component_api_v1_public_dd_irl__slug__agent_ui_components__component_id__steps_post","security":[{"HTTPBearer":[]}],"parameters":[{"name":"component_id","in":"path","required":true,"schema":{"type":"string","title":"Component Id"}},{"name":"slug","in":"path","required":true,"schema":{"type":"string","title":"Slug"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/StepsBody"}}}},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"type":"object","additionalProperties":true,"title":"Response Change Ui Component Api V1 Public Dd Irl  Slug  Agent Ui Components  Component Id  Steps Post"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/v1/public/dd/irl/{slug}/agent":{"get":{"tags":["dd-agent-public"],"summary":"Read Conversation","operationId":"read_conversation_api_v1_public_dd_irl__slug__agent_get","security":[{"HTTPBearer":[]}],"parameters":[{"name":"slug","in":"path","required":true,"schema":{"type":"string","title":"Slug"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"type":"object","additionalProperties":true,"title":"Response Read Conversation Api V1 Public Dd Irl  Slug  Agent Get"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/v1/public/dd/irl/{slug}/agent/in-flight":{"get":{"tags":["dd-agent-public"],"summary":"In Flight Turn","operationId":"in_flight_turn_api_v1_public_dd_irl__slug__agent_in_flight_get","security":[{"HTTPBearer":[]}],"parameters":[{"name":"slug","in":"path","required":true,"schema":{"type":"string","title":"Slug"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/InFlightTurnResponse"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/v1/public/dd/irl/{slug}/agent/turn-starts":{"get":{"tags":["dd-agent-public"],"summary":"Watch Turn Starts","description":"The open chat's live line, as the Manager chat has: it carries a card another tab changed (and each turn that\nstarts), so a tick shows here within a second or two. Only ids and versions travel on it, so a public mount may\nhave it too; the page reads the card again through the list route. The thread is the mount's own.","operationId":"watch_turn_starts_api_v1_public_dd_irl__slug__agent_turn_starts_get","security":[{"HTTPBearer":[]}],"parameters":[{"name":"slug","in":"path","required":true,"schema":{"type":"string","title":"Slug"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/v1/public/dd/irl/{slug}/agent/messages/stream":{"post":{"tags":["dd-agent-public"],"summary":"Send Message","operationId":"send_message_api_v1_public_dd_irl__slug__agent_messages_stream_post","security":[{"HTTPBearer":[]}],"parameters":[{"name":"slug","in":"path","required":true,"schema":{"type":"string","title":"Slug"}},{"name":"Last-Event-ID","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Last-Event-Id"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/PublicStreamMessageRequest"}}}},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/v1/public/dd/buyer/{slug}/agent/ui-components":{"get":{"tags":["dd-agent-public"],"summary":"List Ui Components","operationId":"list_ui_components_api_v1_public_dd_buyer__slug__agent_ui_components_get","security":[{"HTTPBearer":[]}],"parameters":[{"name":"slug","in":"path","required":true,"schema":{"type":"string","title":"Slug"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"type":"object","additionalProperties":true,"title":"Response List Ui Components Api V1 Public Dd Buyer  Slug  Agent Ui Components Get"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/v1/public/dd/buyer/{slug}/agent/ui-components/{component_id}/steps":{"post":{"tags":["dd-agent-public"],"summary":"Change Ui Component","operationId":"change_ui_component_api_v1_public_dd_buyer__slug__agent_ui_components__component_id__steps_post","security":[{"HTTPBearer":[]}],"parameters":[{"name":"component_id","in":"path","required":true,"schema":{"type":"string","title":"Component Id"}},{"name":"slug","in":"path","required":true,"schema":{"type":"string","title":"Slug"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/StepsBody"}}}},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"type":"object","additionalProperties":true,"title":"Response Change Ui Component Api V1 Public Dd Buyer  Slug  Agent Ui Components  Component Id  Steps Post"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/v1/public/dd/buyer/{slug}/agent":{"get":{"tags":["dd-agent-public"],"summary":"Read Conversation","operationId":"read_conversation_api_v1_public_dd_buyer__slug__agent_get","security":[{"HTTPBearer":[]}],"parameters":[{"name":"slug","in":"path","required":true,"schema":{"type":"string","title":"Slug"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"type":"object","additionalProperties":true,"title":"Response Read Conversation Api V1 Public Dd Buyer  Slug  Agent Get"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/v1/public/dd/buyer/{slug}/agent/in-flight":{"get":{"tags":["dd-agent-public"],"summary":"In Flight Turn","operationId":"in_flight_turn_api_v1_public_dd_buyer__slug__agent_in_flight_get","security":[{"HTTPBearer":[]}],"parameters":[{"name":"slug","in":"path","required":true,"schema":{"type":"string","title":"Slug"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/InFlightTurnResponse"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/v1/public/dd/buyer/{slug}/agent/turn-starts":{"get":{"tags":["dd-agent-public"],"summary":"Watch Turn Starts","description":"The open chat's live line, as the Manager chat has: it carries a card another tab changed (and each turn that\nstarts), so a tick shows here within a second or two. Only ids and versions travel on it, so a public mount may\nhave it too; the page reads the card again through the list route. The thread is the mount's own.","operationId":"watch_turn_starts_api_v1_public_dd_buyer__slug__agent_turn_starts_get","security":[{"HTTPBearer":[]}],"parameters":[{"name":"slug","in":"path","required":true,"schema":{"type":"string","title":"Slug"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/v1/public/dd/buyer/{slug}/agent/messages/stream":{"post":{"tags":["dd-agent-public"],"summary":"Send Message","operationId":"send_message_api_v1_public_dd_buyer__slug__agent_messages_stream_post","security":[{"HTTPBearer":[]}],"parameters":[{"name":"slug","in":"path","required":true,"schema":{"type":"string","title":"Slug"}},{"name":"Last-Event-ID","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Last-Event-Id"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/PublicStreamMessageRequest"}}}},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/v1/workspaces/{deal_workspace_id}/dd/irl-projects/{project_id}/agent/conversations":{"get":{"tags":["dd-agent"],"summary":"Read Conversations","operationId":"read_conversations_api_v1_workspaces__deal_workspace_id__dd_irl_projects__project_id__agent_conversations_get","security":[{"HTTPBearer":[]}],"parameters":[{"name":"project_id","in":"path","required":true,"schema":{"type":"string","title":"Project Id"}},{"name":"deal_workspace_id","in":"path","required":true,"schema":{"type":"string","title":"Deal Workspace Id"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"type":"object","additionalProperties":true,"title":"Response Read Conversations Api V1 Workspaces  Deal Workspace Id  Dd Irl Projects  Project Id  Agent Conversations Get"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/v1/workspaces/{deal_workspace_id}/dd/irl-projects/{project_id}/agent/conversations/new":{"post":{"tags":["dd-agent"],"summary":"New Conversation","operationId":"new_conversation_api_v1_workspaces__deal_workspace_id__dd_irl_projects__project_id__agent_conversations_new_post","security":[{"HTTPBearer":[]}],"parameters":[{"name":"project_id","in":"path","required":true,"schema":{"type":"string","title":"Project Id"}},{"name":"deal_workspace_id","in":"path","required":true,"schema":{"type":"string","title":"Deal Workspace Id"}}],"responses":{"204":{"description":"Successful Response"},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/v1/workspaces/{deal_workspace_id}/dd/irl-projects/{project_id}/agent/conversations/{conversation_id}/open":{"post":{"tags":["dd-agent"],"summary":"Open Conversation","operationId":"open_conversation_api_v1_workspaces__deal_workspace_id__dd_irl_projects__project_id__agent_conversations__conversation_id__open_post","security":[{"HTTPBearer":[]}],"parameters":[{"name":"conversation_id","in":"path","required":true,"schema":{"type":"string","title":"Conversation Id"}},{"name":"project_id","in":"path","required":true,"schema":{"type":"string","title":"Project Id"}},{"name":"deal_workspace_id","in":"path","required":true,"schema":{"type":"string","title":"Deal Workspace Id"}}],"responses":{"204":{"description":"Successful Response"},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/v1/workspaces/{deal_workspace_id}/dd/irl-projects/{project_id}/agent/conversations/{conversation_id}":{"delete":{"tags":["dd-agent"],"summary":"Remove Conversation","operationId":"remove_conversation_api_v1_workspaces__deal_workspace_id__dd_irl_projects__project_id__agent_conversations__conversation_id__delete","security":[{"HTTPBearer":[]}],"parameters":[{"name":"conversation_id","in":"path","required":true,"schema":{"type":"string","title":"Conversation Id"}},{"name":"project_id","in":"path","required":true,"schema":{"type":"string","title":"Project Id"}},{"name":"deal_workspace_id","in":"path","required":true,"schema":{"type":"string","title":"Deal Workspace Id"}}],"responses":{"204":{"description":"Successful Response"},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/v1/workspaces/{deal_workspace_id}/dd/buyers/{buyer_id}/agent/conversations":{"get":{"tags":["dd-agent"],"summary":"Read Conversations","operationId":"read_conversations_api_v1_workspaces__deal_workspace_id__dd_buyers__buyer_id__agent_conversations_get","security":[{"HTTPBearer":[]}],"parameters":[{"name":"buyer_id","in":"path","required":true,"schema":{"type":"string","title":"Buyer Id"}},{"name":"deal_workspace_id","in":"path","required":true,"schema":{"type":"string","title":"Deal Workspace Id"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"type":"object","additionalProperties":true,"title":"Response Read Conversations Api V1 Workspaces  Deal Workspace Id  Dd Buyers  Buyer Id  Agent Conversations Get"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/v1/workspaces/{deal_workspace_id}/dd/buyers/{buyer_id}/agent/conversations/new":{"post":{"tags":["dd-agent"],"summary":"New Conversation","operationId":"new_conversation_api_v1_workspaces__deal_workspace_id__dd_buyers__buyer_id__agent_conversations_new_post","security":[{"HTTPBearer":[]}],"parameters":[{"name":"buyer_id","in":"path","required":true,"schema":{"type":"string","title":"Buyer Id"}},{"name":"deal_workspace_id","in":"path","required":true,"schema":{"type":"string","title":"Deal Workspace Id"}}],"responses":{"204":{"description":"Successful Response"},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/v1/workspaces/{deal_workspace_id}/dd/buyers/{buyer_id}/agent/conversations/{conversation_id}/open":{"post":{"tags":["dd-agent"],"summary":"Open Conversation","operationId":"open_conversation_api_v1_workspaces__deal_workspace_id__dd_buyers__buyer_id__agent_conversations__conversation_id__open_post","security":[{"HTTPBearer":[]}],"parameters":[{"name":"conversation_id","in":"path","required":true,"schema":{"type":"string","title":"Conversation Id"}},{"name":"buyer_id","in":"path","required":true,"schema":{"type":"string","title":"Buyer Id"}},{"name":"deal_workspace_id","in":"path","required":true,"schema":{"type":"string","title":"Deal Workspace Id"}}],"responses":{"204":{"description":"Successful Response"},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/v1/workspaces/{deal_workspace_id}/dd/buyers/{buyer_id}/agent/conversations/{conversation_id}":{"delete":{"tags":["dd-agent"],"summary":"Remove Conversation","operationId":"remove_conversation_api_v1_workspaces__deal_workspace_id__dd_buyers__buyer_id__agent_conversations__conversation_id__delete","security":[{"HTTPBearer":[]}],"parameters":[{"name":"conversation_id","in":"path","required":true,"schema":{"type":"string","title":"Conversation Id"}},{"name":"buyer_id","in":"path","required":true,"schema":{"type":"string","title":"Buyer Id"}},{"name":"deal_workspace_id","in":"path","required":true,"schema":{"type":"string","title":"Deal Workspace Id"}}],"responses":{"204":{"description":"Successful Response"},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/":{"get":{"summary":"Root","description":"Root endpoint with system information.","operationId":"root__get","responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}}},"security":[{"HTTPBearer":[]}]}},"/ready":{"get":{"summary":"Readiness","description":"Unauthenticated API readiness with explicit worker/beat separation. The API answers while the database is down,\nand says so, so a database outage never gets the API restarted.","operationId":"readiness_ready_get","responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"additionalProperties":true,"type":"object","title":"Response Readiness Ready Get"}}}}},"security":[{"HTTPBearer":[]}]}},"/api/v1/health":{"get":{"summary":"Api V1 Health","description":"Compatibility health endpoint used by the frontend bootstrap check.","operationId":"api_v1_health_api_v1_health_get","responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"additionalProperties":{"type":"string"},"type":"object","title":"Response Api V1 Health Api V1 Health Get"}}}}},"security":[{"HTTPBearer":[]}]}}},"components":{"schemas":{"AcceptConsent":{"properties":{"version":{"type":"string","title":"Version"},"terms_privacy":{"type":"boolean","const":true,"title":"Terms Privacy"},"ai_and_transfer":{"type":"boolean","const":true,"title":"Ai And Transfer"},"marketing":{"type":"boolean","title":"Marketing"}},"type":"object","required":["version","terms_privacy","ai_and_transfer","marketing"],"title":"AcceptConsent"},"ActivateMessageRequest":{"properties":{"messageId":{"type":"string","title":"Messageid"}},"type":"object","required":["messageId"],"title":"ActivateMessageRequest"},"ActivateScheduleRequest":{"properties":{"contact_ids":{"items":{"type":"string"},"type":"array","title":"Contact Ids","description":"List of contact IDs to activate schedule for"},"crm_project_id":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Crm Project Id","description":"CRM project selected in the UI; contacts must belong to this project"},"scheduled_times_by_type":{"anyOf":[{"additionalProperties":{"type":"string","format":"date-time"},"type":"object"},{"type":"null"}],"title":"Scheduled Times By Type","description":"Optional manual schedule for the 5-step sequence when activating a single contact"},"deal_workspace_id":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Deal Workspace Id"}},"type":"object","required":["contact_ids"],"title":"ActivateScheduleRequest"},"ActivateScheduleResponse":{"properties":{"activated_count":{"type":"integer","title":"Activated Count","description":"Number of emails activated (draft → planned)"},"contact_count":{"type":"integer","title":"Contact Count","description":"Number of contacts processed"},"message":{"type":"string","title":"Message","description":"Summary message"}},"type":"object","required":["activated_count","contact_count","message"],"title":"ActivateScheduleResponse"},"AddContactRequest":{"properties":{"name":{"type":"string","title":"Name","description":"Contact name"},"crm_project_id":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Crm Project Id","description":"Associated project identifier"},"deal_workspace_id":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Deal Workspace Id","description":"Workspace identifier; must match workspace route when provided"},"project_name":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Project Name","description":"Associated project name (for error messages)"},"company_id":{"type":"string","title":"Company Id","description":"External company identifier"},"company":{"type":"string","title":"Company","description":"Company name"},"website":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Website","description":"Company website; when given it replaces the company's stored website"},"email_name":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Email Name","description":"Email user name (auto-derived from email if not provided)"},"email":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Email","description":"Contact email address"},"title":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Title","description":"Contact role or title"},"phone":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Phone","description":"Contact phone number"},"synergy":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Synergy","description":"Synergy data"},"note":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Note","description":"Becomes the contact's first note"}},"type":"object","required":["name","company_id","company"],"title":"AddContactRequest"},"AddIrlItemRequest":{"properties":{"sectionId":{"type":"string","title":"Sectionid","default":""},"requestText":{"type":"string","minLength":1,"title":"Requesttext"},"pic":{"type":"string","title":"Pic","default":""},"clientNote":{"type":"string","title":"Clientnote","default":""},"internalNote":{"type":"string","title":"Internalnote","default":""},"category":{"type":"string","title":"Category","default":""},"newSectionTitle":{"type":"string","title":"Newsectiontitle","default":""}},"type":"object","required":["requestText"],"title":"AddIrlItemRequest","description":"What the app sends to add one item: an existing section, or the title of a new section to add it in, so a list\nstarted from scratch can get its first item (field test 12 Nov, task 3)."},"AddSuggestionRequest":{"properties":{"deal_workspace_id":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Deal Workspace Id"},"content":{"type":"string","title":"Content"}},"type":"object","required":["content"],"title":"AddSuggestionRequest"},"Answer":{"properties":{"id":{"type":"string","title":"Id"},"body":{"type":"string","title":"Body"},"files":{"items":{"$ref":"#/components/schemas/AnswerFile"},"type":"array","title":"Files"},"checkLevel":{"anyOf":[{"type":"string","enum":["ok","partial","unclear"]},{"type":"null"}],"title":"Checklevel"},"checkMessage":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Checkmessage"},"clientReason":{"anyOf":[{"$ref":"#/components/schemas/ClientReason"},{"type":"null"}]},"createdAt":{"type":"string","format":"date-time","title":"Createdat"}},"type":"object","required":["id","body","files","checkLevel","checkMessage","clientReason","createdAt"],"title":"Answer"},"AnswerBody":{"properties":{"instructions":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Instructions"}},"type":"object","title":"AnswerBody"},"AnswerEvidence":{"properties":{"fact":{"type":"string","title":"Fact"},"kind":{"type":"string","enum":["verified","representation","position"],"title":"Kind"},"source":{"anyOf":[{"$ref":"#/components/schemas/Source"},{"type":"null"}]}},"type":"object","required":["fact","kind"],"title":"AnswerEvidence"},"AnswerFile":{"properties":{"fileId":{"type":"string","title":"Fileid"},"filename":{"type":"string","title":"Filename"}},"type":"object","required":["fileId","filename"],"title":"AnswerFile"},"AnswerGap":{"properties":{"gap":{"type":"string","title":"Gap"},"whyItMatters":{"type":"string","title":"Whyitmatters"},"proposedRequest":{"type":"string","title":"Proposedrequest"}},"type":"object","required":["gap","whyItMatters","proposedRequest"],"title":"AnswerGap"},"AnswerStrategy":{"properties":{"issue":{"type":"string","title":"Issue"},"approach":{"items":{"type":"string"},"type":"array","title":"Approach"},"solution":{"items":{"type":"string"},"type":"array","title":"Solution"},"alternatives":{"items":{"type":"string"},"type":"array","title":"Alternatives"}},"type":"object","required":["issue","approach","solution","alternatives"],"title":"AnswerStrategy"},"AnsweringStatus":{"properties":{"slots":{"type":"integer","title":"Slots"},"paused":{"type":"boolean","title":"Paused"},"running":{"items":{"$ref":"#/components/schemas/RunningAnswer"},"type":"array","title":"Running"},"askingTeam":{"items":{"$ref":"#/components/schemas/RunningAnswer"},"type":"array","title":"Askingteam"},"queued":{"type":"integer","title":"Queued"},"done":{"type":"integer","title":"Done"},"failed":{"type":"integer","title":"Failed"},"notStarted":{"type":"integer","title":"Notstarted"},"waitingForCapacity":{"type":"boolean","title":"Waitingforcapacity"},"brief":{"anyOf":[{"$ref":"#/components/schemas/BriefProgress"},{"type":"null"}]}},"type":"object","required":["slots","paused","running","queued","done","failed","notStarted","waitingForCapacity"],"title":"AnsweringStatus","description":"Where the automatic answering of one buyer's requests stands."},"ApproveProposalRequest":{"properties":{"threadId":{"type":"string","title":"Threadid"},"approvedOperationIds":{"items":{"type":"string"},"type":"array","minItems":1,"title":"Approvedoperationids"},"actorId":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Actorid"}},"type":"object","required":["threadId","approvedOperationIds"],"title":"ApproveProposalRequest"},"ArchiveMemoryRequest":{"properties":{"reason":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Reason"}},"type":"object","title":"ArchiveMemoryRequest"},"AttachmentRequest":{"properties":{"name":{"type":"string","title":"Name"},"mimeType":{"type":"string","title":"Mimetype"},"data":{"type":"string","title":"Data","default":""},"chatFileId":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Chatfileid"}},"type":"object","required":["name","mimeType"],"title":"AttachmentRequest"},"Avoid":{"properties":{"never":{"type":"string","title":"Never"},"instead":{"type":"string","title":"Instead","default":""}},"type":"object","required":["never"],"title":"Avoid","description":"Something a writer might reach for that this person never writes, and what they write instead."},"BillingStatus":{"properties":{"has_access":{"type":"boolean","title":"Has Access"},"notice":{"anyOf":[{"type":"string","enum":["plan_ends","payment_failed","trial_converts","trial_ends"]},{"type":"null"}],"title":"Notice"},"plan":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Plan"},"plan_price_usd_cents":{"anyOf":[{"type":"integer"},{"type":"null"}],"title":"Plan Price Usd Cents"},"plan_billing_months":{"anyOf":[{"type":"integer"},{"type":"null"}],"title":"Plan Billing Months"},"status":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Status"},"current_period_end":{"anyOf":[{"type":"string","format":"date-time"},{"type":"null"}],"title":"Current Period End"},"cancel_at_period_end":{"type":"boolean","title":"Cancel At Period End"},"trial_end":{"anyOf":[{"type":"string","format":"date-time"},{"type":"null"}],"title":"Trial End"},"trial_available":{"type":"boolean","title":"Trial Available"},"pending_plan":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Pending Plan"},"pending_plan_starts_at":{"anyOf":[{"type":"string","format":"date-time"},{"type":"null"}],"title":"Pending Plan Starts At"},"pending_plan_price_usd_cents":{"anyOf":[{"type":"integer"},{"type":"null"}],"title":"Pending Plan Price Usd Cents"},"pending_plan_billing_months":{"anyOf":[{"type":"integer"},{"type":"null"}],"title":"Pending Plan Billing Months"},"access_pass_ends_at":{"anyOf":[{"type":"string","format":"date-time"},{"type":"null"}],"title":"Access Pass Ends At"}},"type":"object","required":["has_access","notice","plan","plan_price_usd_cents","plan_billing_months","status","current_period_end","cancel_at_period_end","trial_end","trial_available","pending_plan","pending_plan_starts_at","pending_plan_price_usd_cents","pending_plan_billing_months","access_pass_ends_at"],"title":"BillingStatus"},"Body_attach_request_files_api_v1_workspaces__deal_workspace_id__dd_buyer_requests__request_id__files_post":{"properties":{"files":{"anyOf":[{"items":{"type":"string","contentMediaType":"application/octet-stream"},"type":"array"},{"type":"null"}],"title":"Files"}},"type":"object","title":"Body_attach_request_files_api_v1_workspaces__deal_workspace_id__dd_buyer_requests__request_id__files_post"},"Body_create_template_iteration_session_api_v1_workspaces__deal_workspace_id__template_iteration_sessions_post":{"properties":{"user_input_text":{"type":"string","title":"User Input Text"},"title":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Title"},"selected_design_id":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Selected Design Id"},"files":{"items":{"type":"string","contentMediaType":"application/octet-stream"},"type":"array","title":"Files","default":[]},"library_slide_ids":{"items":{"type":"string"},"type":"array","title":"Library Slide Ids","default":[]}},"type":"object","required":["user_input_text"],"title":"Body_create_template_iteration_session_api_v1_workspaces__deal_workspace_id__template_iteration_sessions_post"},"Body_dry_run_ingest_route_api_v1_workspaces__workspace_id__knowledge_base_dry_run_ingest_post":{"properties":{"file":{"type":"string","contentMediaType":"application/octet-stream","title":"File"}},"type":"object","required":["file"],"title":"Body_dry_run_ingest_route_api_v1_workspaces__workspace_id__knowledge_base_dry_run_ingest_post"},"Body_import_workspace_contacts_endpoint_api_v1_workspaces__deal_workspace_id__crm_projects__crm_project_id__contacts_import_post":{"properties":{"file":{"type":"string","contentMediaType":"application/octet-stream","title":"File"}},"type":"object","required":["file"],"title":"Body_import_workspace_contacts_endpoint_api_v1_workspaces__deal_workspace_id__crm_projects__crm_project_id__contacts_import_post"},"Body_ingest_slides_api_v1_slide_library_slides_ingest_post":{"properties":{"files":{"items":{"type":"string","contentMediaType":"application/octet-stream"},"type":"array","title":"Files"},"tags_json":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Tags Json"}},"type":"object","required":["files"],"title":"Body_ingest_slides_api_v1_slide_library_slides_ingest_post"},"Body_learn_from_mails_api_v1_profile_voice_mails_post":{"properties":{"text":{"type":"string","title":"Text","default":""},"files":{"anyOf":[{"items":{"type":"string","contentMediaType":"application/octet-stream"},"type":"array"},{"type":"null"}],"title":"Files"}},"type":"object","title":"Body_learn_from_mails_api_v1_profile_voice_mails_post"},"Body_regenerate_template_iteration_image_annotated_api_v1_workspaces__deal_workspace_id__template_iteration_sessions__session_id__regenerate_annotated_post":{"properties":{"annotation_text":{"type":"string","title":"Annotation Text"},"annotated_image":{"type":"string","contentMediaType":"application/octet-stream","title":"Annotated Image"},"mask":{"type":"string","contentMediaType":"application/octet-stream","title":"Mask"}},"type":"object","required":["annotation_text","annotated_image","mask"],"title":"Body_regenerate_template_iteration_image_annotated_api_v1_workspaces__deal_workspace_id__template_iteration_sessions__session_id__regenerate_annotated_post"},"Body_regenerate_template_iteration_image_with_mask_api_v1_workspaces__deal_workspace_id__template_iteration_sessions__session_id__regenerate_with_mask_post":{"properties":{"new_synthesized_prompt":{"type":"string","title":"New Synthesized Prompt"},"refined_annotation_instruction":{"type":"string","title":"Refined Annotation Instruction"},"mask":{"type":"string","contentMediaType":"application/octet-stream","title":"Mask"},"annotated_image":{"type":"string","contentMediaType":"application/octet-stream","title":"Annotated Image"}},"type":"object","required":["new_synthesized_prompt","refined_annotation_instruction","mask","annotated_image"],"title":"Body_regenerate_template_iteration_image_with_mask_api_v1_workspaces__deal_workspace_id__template_iteration_sessions__session_id__regenerate_with_mask_post"},"Body_submit_irl_answer_api_v1_public_dd_irl__slug__items__item_id__answers_post":{"properties":{"body":{"type":"string","maxLength":10000,"title":"Body","default":""},"files":{"anyOf":[{"items":{"type":"string","contentMediaType":"application/octet-stream"},"type":"array"},{"type":"null"}],"title":"Files"},"submissionKey":{"anyOf":[{"type":"string","maxLength":100},{"type":"null"}],"title":"Submissionkey"}},"type":"object","title":"Body_submit_irl_answer_api_v1_public_dd_irl__slug__items__item_id__answers_post"},"Body_synthesize_template_iteration_annotation_api_v1_workspaces__deal_workspace_id__template_iteration_sessions__session_id__synthesize_annotation_post":{"properties":{"annotation_text":{"type":"string","title":"Annotation Text","default":""},"annotated_image":{"type":"string","contentMediaType":"application/octet-stream","title":"Annotated Image"},"annotations_json":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Annotations Json"},"attachment_meta_json":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Attachment Meta Json"},"attachment_images":{"anyOf":[{"items":{"type":"string","contentMediaType":"application/octet-stream"},"type":"array"},{"type":"null"}],"title":"Attachment Images"}},"type":"object","required":["annotated_image"],"title":"Body_synthesize_template_iteration_annotation_api_v1_workspaces__deal_workspace_id__template_iteration_sessions__session_id__synthesize_annotation_post"},"Body_upload_batch_api_v1_workspaces__workspace_id__knowledge_base_upload_batch_post":{"properties":{"files":{"items":{"type":"string","contentMediaType":"application/octet-stream"},"type":"array","title":"Files"}},"type":"object","required":["files"],"title":"Body_upload_batch_api_v1_workspaces__workspace_id__knowledge_base_upload_batch_post"},"Body_upload_buyerlist_file_endpoint_api_v1_workspaces__deal_workspace_id__crm_projects__crm_project_id__contacts_buyerlist_file_post":{"properties":{"file":{"type":"string","contentMediaType":"application/octet-stream","title":"File"}},"type":"object","required":["file"],"title":"Body_upload_buyerlist_file_endpoint_api_v1_workspaces__deal_workspace_id__crm_projects__crm_project_id__contacts_buyerlist_file_post"},"Body_upload_chat_file_api_v1_workspaces__deal_workspace_id__manager_threads__thread_id__chat_files_post":{"properties":{"file":{"type":"string","contentMediaType":"application/octet-stream","title":"File"},"checksum_sha256":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Checksum Sha256"}},"type":"object","required":["file"],"title":"Body_upload_chat_file_api_v1_workspaces__deal_workspace_id__manager_threads__thread_id__chat_files_post"},"Body_upload_document_api_v1_workspaces__workspace_id__knowledge_base_upload_post":{"properties":{"file":{"type":"string","contentMediaType":"application/octet-stream","title":"File"}},"type":"object","required":["file"],"title":"Body_upload_document_api_v1_workspaces__workspace_id__knowledge_base_upload_post"},"Body_upload_thread_chat_file_api_v1_manager_threads__thread_id__chat_files_post":{"properties":{"file":{"type":"string","contentMediaType":"application/octet-stream","title":"File"},"checksum_sha256":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Checksum Sha256"}},"type":"object","required":["file"],"title":"Body_upload_thread_chat_file_api_v1_manager_threads__thread_id__chat_files_post"},"Body_upload_workspace_logo_image_api_v1_workspaces__deal_workspace_id__logo_image_put":{"properties":{"file":{"type":"string","contentMediaType":"application/octet-stream","title":"File"}},"type":"object","required":["file"],"title":"Body_upload_workspace_logo_image_api_v1_workspaces__deal_workspace_id__logo_image_put"},"Body_upload_workspace_template_attachment_api_v1_workspaces__deal_workspace_id__crm_templates__crm_project_id__attachments__template_type__post":{"properties":{"attachment":{"type":"string","contentMediaType":"application/octet-stream","title":"Attachment"}},"type":"object","required":["attachment"],"title":"Body_upload_workspace_template_attachment_api_v1_workspaces__deal_workspace_id__crm_templates__crm_project_id__attachments__template_type__post"},"BriefProgress":{"properties":{"state":{"type":"string","enum":["queued","running"],"title":"State"},"updating":{"type":"boolean","title":"Updating"},"step":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Step"}},"type":"object","required":["state","updating","step"],"title":"BriefProgress","description":"The deal's evidence brief being written (`updating`: one existed already) before this buyer's requests start. It\nruns in the buyer's assistant conversation, where the team follows it."},"BulkDeleteContactsRequest":{"properties":{"contact_ids":{"items":{"type":"string"},"type":"array","title":"Contact Ids","description":"List of contact IDs to delete"},"deal_workspace_id":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Deal Workspace Id"}},"type":"object","required":["contact_ids"],"title":"BulkDeleteContactsRequest","description":"Request schema for bulk deleting contacts.","example":{"contact_ids":["id1","id2","id3"]}},"BulkDeleteContactsResponse":{"properties":{"total_requested":{"type":"integer","title":"Total Requested","description":"Total number of contacts requested for deletion"},"successful_count":{"type":"integer","title":"Successful Count","description":"Number of successfully deleted contacts"},"failed_count":{"type":"integer","title":"Failed Count","description":"Number of contacts that failed to delete"},"deleted_contacts":{"items":{"$ref":"#/components/schemas/DeleteContactResponse"},"type":"array","title":"Deleted Contacts","description":"Details of deleted contacts"},"failed_contacts":{"items":{"additionalProperties":true,"type":"object"},"type":"array","title":"Failed Contacts","description":"Details of contacts that failed to delete (contact_id and error message)"},"message":{"type":"string","title":"Message","description":"Summary message"}},"type":"object","required":["total_requested","successful_count","failed_count","deleted_contacts","message"],"title":"BulkDeleteContactsResponse","description":"Response schema for bulk delete operation."},"BulkPauseScheduleRequest":{"properties":{"contact_ids":{"items":{"type":"string"},"type":"array","title":"Contact Ids","description":"List of contact IDs to pause"},"deal_workspace_id":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Deal Workspace Id"}},"type":"object","required":["contact_ids"],"title":"BulkPauseScheduleRequest"},"BulkPauseScheduleResponse":{"properties":{"success":{"type":"boolean","title":"Success"},"requested_count":{"type":"integer","title":"Requested Count"},"processed_count":{"type":"integer","title":"Processed Count"},"paused_contact_count":{"type":"integer","title":"Paused Contact Count"},"skipped_count":{"type":"integer","title":"Skipped Count"},"failed_count":{"type":"integer","title":"Failed Count"},"message":{"type":"string","title":"Message"},"results":{"items":{"$ref":"#/components/schemas/BulkPauseScheduleResult"},"type":"array","title":"Results"}},"type":"object","required":["success","requested_count","processed_count","paused_contact_count","skipped_count","failed_count","message"],"title":"BulkPauseScheduleResponse"},"BulkPauseScheduleResult":{"properties":{"contact_id":{"type":"string","title":"Contact Id"},"success":{"type":"boolean","title":"Success"},"status":{"type":"string","title":"Status","description":"paused, skipped, or failed"},"paused_count":{"type":"integer","title":"Paused Count","default":0},"message":{"type":"string","title":"Message"}},"type":"object","required":["contact_id","success","status","message"],"title":"BulkPauseScheduleResult"},"BulkRescheduleSequenceRequest":{"properties":{"contact_ids":{"items":{"type":"string"},"type":"array","title":"Contact Ids","description":"List of contact IDs to reschedule"},"crm_project_id":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Crm Project Id","description":"CRM project selected in the UI; contacts must belong to this project"},"scheduled_times_by_type":{"additionalProperties":{"type":"string","format":"date-time"},"type":"object","title":"Scheduled Times By Type","description":"Shared manual schedule for the 5-step sequence across all selected contacts"},"deal_workspace_id":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Deal Workspace Id"}},"type":"object","required":["contact_ids","scheduled_times_by_type"],"title":"BulkRescheduleSequenceRequest"},"BulkRescheduleSequenceResponse":{"properties":{"success":{"type":"boolean","title":"Success"},"contact_count":{"type":"integer","title":"Contact Count","description":"Number of contacts successfully rescheduled"},"rescheduled_count":{"type":"integer","title":"Rescheduled Count","description":"Number of unsent sequence steps updated"},"message":{"type":"string","title":"Message","description":"Summary message"}},"type":"object","required":["success","contact_count","rescheduled_count","message"],"title":"BulkRescheduleSequenceResponse"},"BulkResumeScheduleRequest":{"properties":{"contact_ids":{"items":{"type":"string"},"type":"array","title":"Contact Ids","description":"List of contact IDs to resume"},"crm_project_id":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Crm Project Id","description":"Optional project ID to apply when resuming selected contacts"},"deal_workspace_id":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Deal Workspace Id"}},"type":"object","required":["contact_ids"],"title":"BulkResumeScheduleRequest"},"BulkResumeScheduleResponse":{"properties":{"success":{"type":"boolean","title":"Success"},"requested_count":{"type":"integer","title":"Requested Count"},"processed_count":{"type":"integer","title":"Processed Count"},"resumed_contact_count":{"type":"integer","title":"Resumed Contact Count"},"skipped_count":{"type":"integer","title":"Skipped Count"},"failed_count":{"type":"integer","title":"Failed Count"},"message":{"type":"string","title":"Message"},"results":{"items":{"$ref":"#/components/schemas/BulkResumeScheduleResult"},"type":"array","title":"Results"}},"type":"object","required":["success","requested_count","processed_count","resumed_contact_count","skipped_count","failed_count","message"],"title":"BulkResumeScheduleResponse"},"BulkResumeScheduleResult":{"properties":{"contact_id":{"type":"string","title":"Contact Id"},"success":{"type":"boolean","title":"Success"},"status":{"type":"string","title":"Status","description":"resumed, skipped, or failed"},"resumed_count":{"type":"integer","title":"Resumed Count","default":0},"message":{"type":"string","title":"Message"}},"type":"object","required":["contact_id","success","status","message"],"title":"BulkResumeScheduleResult"},"BulkSendNowRequest":{"properties":{"contact_ids":{"items":{"type":"string"},"type":"array","title":"Contact Ids","description":"Contacts to send their next email to"},"crm_project_id":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Crm Project Id","description":"CRM project selected in the UI; contacts must belong to this project"}},"type":"object","required":["contact_ids"],"title":"BulkSendNowRequest","description":"Request schema for bulk send now: each contact gets the next step of its sequence.","example":{"contact_ids":["id1","id2","id3"]}},"BulkSendNowResponse":{"properties":{"success":{"type":"boolean","title":"Success","description":"Whether at least one mail was queued to send now"},"requested_count":{"type":"integer","title":"Requested Count","description":"Total requested contacts"},"processed_count":{"type":"integer","title":"Processed Count","description":"Total processed contacts"},"queued_count":{"type":"integer","title":"Queued Count","description":"Number of mails queued to send now"},"skipped_count":{"type":"integer","title":"Skipped Count","description":"Number of skipped contacts"},"failed_count":{"type":"integer","title":"Failed Count","description":"Number of failed contacts"},"message":{"type":"string","title":"Message","description":"Summary message"},"results":{"items":{"$ref":"#/components/schemas/BulkSendNowResult"},"type":"array","title":"Results","description":"Per-contact outcomes"}},"type":"object","required":["success","requested_count","processed_count","queued_count","skipped_count","failed_count","message","results"],"title":"BulkSendNowResponse","description":"Response schema for bulk send now."},"BulkSendNowResult":{"properties":{"contact_id":{"type":"string","title":"Contact Id","description":"Contact identifier"},"success":{"type":"boolean","title":"Success","description":"Whether the action succeeded for this contact"},"status":{"type":"string","title":"Status","description":"queued | skipped | failed"},"email_id":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Email Id","description":"The mail queued or skipped for this contact"},"message":{"type":"string","title":"Message","description":"Human-readable result message"},"error":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Error","description":"Optional error detail"}},"type":"object","required":["contact_id","success","status","message"],"title":"BulkSendNowResult","description":"Per-contact result for bulk send now."},"BulkSetSynergyRequest":{"properties":{"contact_ids":{"items":{"type":"string"},"type":"array","title":"Contact Ids","description":"List of contact IDs to toggle synergy for"},"enabled":{"type":"boolean","title":"Enabled","description":"Whether to enable or disable synergy in sequence emails"}},"type":"object","required":["contact_ids","enabled"],"title":"BulkSetSynergyRequest","description":"Request schema for bulk setting sequence synergy on/off.","example":{"contact_ids":["id1","id2","id3"],"enabled":false}},"BulkSetSynergyResponse":{"properties":{"success":{"type":"boolean","title":"Success","description":"Whether the operation executed successfully"},"requested_count":{"type":"integer","title":"Requested Count","description":"Total requested contacts"},"processed_count":{"type":"integer","title":"Processed Count","description":"Total processed contacts"},"successful_count":{"type":"integer","title":"Successful Count","description":"Number of contacts updated successfully"},"failed_count":{"type":"integer","title":"Failed Count","description":"Number of failed contacts"},"synergy_enabled":{"type":"boolean","title":"Synergy Enabled","description":"The enabled state that was set"},"message":{"type":"string","title":"Message","description":"Summary message"},"results":{"items":{"$ref":"#/components/schemas/BulkSetSynergyResult"},"type":"array","title":"Results","description":"Per-contact outcomes"}},"type":"object","required":["success","requested_count","processed_count","successful_count","failed_count","synergy_enabled","message","results"],"title":"BulkSetSynergyResponse","description":"Response schema for bulk synergy toggle operation."},"BulkSetSynergyResult":{"properties":{"contact_id":{"type":"string","title":"Contact Id","description":"Contact identifier"},"success":{"type":"boolean","title":"Success","description":"Whether the action succeeded for this contact"},"status":{"type":"string","title":"Status","description":"success | failed"},"synergy_enabled":{"anyOf":[{"type":"boolean"},{"type":"null"}],"title":"Synergy Enabled","description":"Updated synergy_enabled state"},"synergy":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Synergy","description":"Renderable synergy text if enabled, None otherwise"},"synergy_status":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Synergy Status","description":"Status of synergy: available|not_found|not_generated|disabled"},"updated_emails":{"type":"integer","title":"Updated Emails","description":"Number of emails updated","default":0},"message":{"type":"string","title":"Message","description":"Human-readable result message"}},"type":"object","required":["contact_id","success","status","message"],"title":"BulkSetSynergyResult","description":"Per-contact result for bulk synergy operation."},"BuyerAnswer":{"properties":{"state":{"type":"string","enum":["notStarted","queued","running","done","failed"],"title":"State","default":"notStarted"},"step":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Step"},"outcome":{"anyOf":[{"type":"string","enum":["draft","partial","client","forYou"]},{"type":"null"}],"title":"Outcome"},"strategy":{"anyOf":[{"$ref":"#/components/schemas/AnswerStrategy"},{"type":"null"}]},"gaps":{"items":{"$ref":"#/components/schemas/AnswerGap"},"type":"array","title":"Gaps"},"evidence":{"items":{"$ref":"#/components/schemas/AnswerEvidence"},"type":"array","title":"Evidence"},"recommendation":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Recommendation"},"answeredAt":{"anyOf":[{"type":"string","format":"date-time"},{"type":"null"}],"title":"Answeredat"},"error":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Error"}},"type":"object","title":"BuyerAnswer","description":"What the answering assistant worked out for one request, and where its work stands. Firm only."},"BuyerCounts":{"properties":{"total":{"type":"integer","title":"Total"},"released":{"type":"integer","title":"Released"},"held":{"type":"integer","title":"Held"},"withdrawn":{"type":"integer","title":"Withdrawn"},"queued":{"type":"integer","title":"Queued"},"answering":{"type":"integer","title":"Answering"},"askingTeam":{"type":"integer","title":"Askingteam"},"needsClient":{"type":"integer","title":"Needsclient"},"draftNeeded":{"type":"integer","title":"Draftneeded"},"ready":{"type":"integer","title":"Ready"},"draftReady":{"type":"integer","title":"Draftready"},"review":{"type":"integer","title":"Review"},"waiting":{"type":"integer","title":"Waiting"},"sensitiveReview":{"type":"integer","title":"Sensitivereview"},"newBuyerNotes":{"type":"integer","title":"Newbuyernotes"},"reviewStatus":{"$ref":"#/components/schemas/ReviewStatusCounts"}},"type":"object","required":["total","released","held","withdrawn","queued","answering","askingTeam","needsClient","draftNeeded","ready","draftReady","review","waiting","sensitiveReview","newBuyerNotes","reviewStatus"],"title":"BuyerCounts"},"BuyerDraft":{"properties":{"body":{"type":"string","title":"Body"},"files":{"items":{"$ref":"#/components/schemas/OfferedFile"},"type":"array","title":"Files"},"sources":{"items":{"$ref":"#/components/schemas/Source"},"type":"array","title":"Sources","default":[]},"drawnFrom":{"items":{"type":"string","enum":["clientAnswer","knowledgeBase","dealTeam"]},"type":"array","title":"Drawnfrom","default":[]},"written":{"type":"boolean","title":"Written","default":false},"sourcesFromEarlierDraft":{"type":"boolean","title":"Sourcesfromearlierdraft","default":false}},"type":"object","required":["body","files"],"title":"BuyerDraft"},"BuyerListStart":{"properties":{"started":{"type":"boolean","title":"Started"},"thread_id":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Thread Id"}},"type":"object","required":["started","thread_id"],"title":"BuyerListStart"},"BuyerPatch":{"properties":{"name":{"anyOf":[{"type":"string","minLength":1},{"type":"null"}],"title":"Name"},"kind":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Kind"},"language":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Language"},"dealLabel":{"anyOf":[{"type":"string","minLength":1},{"type":"null"}],"title":"Deallabel"},"context":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Context"},"buyerBriefing":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Buyerbriefing"}},"type":"object","title":"BuyerPatch"},"BuyerProject":{"properties":{"id":{"type":"string","title":"Id"},"name":{"type":"string","title":"Name"},"kind":{"type":"string","title":"Kind"},"language":{"type":"string","title":"Language"},"dealLabel":{"type":"string","title":"Deallabel"},"context":{"type":"string","title":"Context"},"buyerBriefing":{"type":"string","title":"Buyerbriefing"},"status":{"type":"string","enum":["draft","published"],"title":"Status"},"publicUrl":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Publicurl"},"firmName":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Firmname"},"counts":{"$ref":"#/components/schemas/BuyerCounts"},"requests":{"items":{"$ref":"#/components/schemas/BuyerRequest"},"type":"array","title":"Requests"}},"type":"object","required":["id","name","kind","language","dealLabel","context","buyerBriefing","status","publicUrl","firmName","counts","requests"],"title":"BuyerProject"},"BuyerProjectSummary":{"properties":{"id":{"type":"string","title":"Id"},"name":{"type":"string","title":"Name"},"kind":{"type":"string","title":"Kind"},"status":{"type":"string","enum":["draft","published"],"title":"Status"},"counts":{"$ref":"#/components/schemas/BuyerCounts"},"updatedAt":{"type":"string","format":"date-time","title":"Updatedat"}},"type":"object","required":["id","name","kind","status","counts","updatedAt"],"title":"BuyerProjectSummary"},"BuyerRequest":{"properties":{"id":{"type":"string","title":"Id"},"code":{"type":"string","title":"Code"},"requestText":{"type":"string","title":"Requesttext"},"source":{"type":"string","enum":["list","link"],"title":"Source"},"section":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Section"},"category":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Category"},"dueDate":{"anyOf":[{"type":"string","format":"date"},{"type":"null"}],"title":"Duedate"},"pic":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Pic"},"reference":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Reference"},"createdAt":{"type":"string","format":"date-time","title":"Createdat"},"state":{"type":"string","enum":["open","held","released"],"title":"State"},"displayState":{"type":"string","enum":["released","held","withdrawn","queued","answering","askingTeam","needsClient","draftNeeded","ready","draftReady","review","waiting"],"title":"Displaystate"},"irlItems":{"items":{"$ref":"#/components/schemas/IrlItemRef"},"type":"array","title":"Irlitems"},"draft":{"$ref":"#/components/schemas/BuyerDraft"},"release":{"anyOf":[{"$ref":"#/components/schemas/Release"},{"type":"null"}]},"withdrawals":{"items":{"$ref":"#/components/schemas/ReleaseWithdrawal"},"type":"array","title":"Withdrawals","default":[]},"holdHistory":{"items":{"$ref":"#/components/schemas/HoldEvent"},"type":"array","title":"Holdhistory","default":[]},"linkedAnswerDifferences":{"items":{"$ref":"#/components/schemas/LinkedAnswerDifference"},"type":"array","title":"Linkedanswerdifferences","default":[]},"linkedAnswerComparisons":{"items":{"$ref":"#/components/schemas/LinkedAnswerComparison"},"type":"array","title":"Linkedanswercomparisons","default":[]},"notes":{"items":{"$ref":"#/components/schemas/Note"},"type":"array","title":"Notes"},"newBuyerNote":{"type":"boolean","title":"Newbuyernote","default":false},"answer":{"$ref":"#/components/schemas/BuyerAnswer","default":{"state":"notStarted","gaps":[],"evidence":[]}},"sensitivity":{"anyOf":[{"$ref":"#/components/schemas/BuyerSensitivity"},{"type":"null"}]},"reviewStatus":{"anyOf":[{"type":"string","enum":["reviewed","toBeUpdated","inDiscussion","needsSignOff"]},{"type":"null"}],"title":"Reviewstatus"},"reviewStatusBy":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Reviewstatusby"},"reviewStatusAt":{"anyOf":[{"type":"string","format":"date-time"},{"type":"null"}],"title":"Reviewstatusat"},"reviewHistory":{"items":{"$ref":"#/components/schemas/ReviewEvent"},"type":"array","title":"Reviewhistory"}},"type":"object","required":["id","code","requestText","source","createdAt","state","displayState","irlItems","draft","release","notes"],"title":"BuyerRequest"},"BuyerRequestPatch":{"properties":{"requestText":{"anyOf":[{"type":"string","maxLength":2000,"minLength":1},{"type":"null"}],"title":"Requesttext"},"irlItemIds":{"anyOf":[{"items":{"type":"string"},"type":"array"},{"type":"null"}],"title":"Irlitemids"},"state":{"anyOf":[{"type":"string","enum":["open","held"]},{"type":"null"}],"title":"State"},"reason":{"anyOf":[{"type":"string","maxLength":10000},{"type":"null"}],"title":"Reason"},"draftBody":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Draftbody"},"section":{"anyOf":[{"type":"string","maxLength":300},{"type":"null"}],"title":"Section"},"category":{"anyOf":[{"type":"string","maxLength":300},{"type":"null"}],"title":"Category"},"dueDate":{"anyOf":[{"type":"string","format":"date"},{"type":"null"}],"title":"Duedate"},"pic":{"anyOf":[{"type":"string","maxLength":300},{"type":"null"}],"title":"Pic"},"reference":{"anyOf":[{"type":"string","maxLength":300},{"type":"null"}],"title":"Reference"},"reviewStatus":{"anyOf":[{"type":"string","enum":["reviewed","toBeUpdated","inDiscussion","needsSignOff"]},{"type":"null"}],"title":"Reviewstatus"}},"type":"object","title":"BuyerRequestPatch"},"BuyerSensitivity":{"properties":{"reason":{"type":"string","title":"Reason"}},"type":"object","required":["reason"],"title":"BuyerSensitivity","description":"Why the assistant thinks the answer is sensitive, as a warning for the person who releases it. Firm only."},"BuyerlistImportBuyerResult":{"properties":{"buyer_name":{"type":"string","title":"Buyer Name"},"domain":{"type":"string","title":"Domain"},"status":{"type":"string","title":"Status"},"contacts":{"type":"integer","title":"Contacts"},"notes":{"type":"string","title":"Notes","default":""}},"type":"object","required":["buyer_name","domain","status","contacts"],"title":"BuyerlistImportBuyerResult"},"CalendarStatus":{"properties":{"connected":{"type":"boolean","title":"Connected"},"account_email":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Account Email"},"client_id":{"type":"string","title":"Client Id"},"scopes":{"items":{"type":"string"},"type":"array","title":"Scopes"},"can_create_events":{"type":"boolean","title":"Can Create Events"},"write_scopes":{"items":{"type":"string"},"type":"array","title":"Write Scopes"}},"type":"object","required":["connected","account_email","client_id","scopes","can_create_events","write_scopes"],"title":"CalendarStatus"},"CampaignTopicOut":{"properties":{"id":{"type":"string","title":"Id"},"campaign_id":{"type":"string","title":"Campaign Id"},"title":{"type":"string","title":"Title"},"body":{"type":"string","title":"Body"},"sources":{"items":{"type":"string"},"type":"array","title":"Sources"},"position":{"type":"integer","title":"Position"},"version":{"type":"integer","title":"Version"},"updated_at":{"type":"string","format":"date-time","title":"Updated At"},"updated_by":{"type":"string","title":"Updated By"}},"type":"object","required":["id","campaign_id","title","body","sources","position","version","updated_at","updated_by"],"title":"CampaignTopicOut"},"CanvasDataQuery":{"properties":{"query":{"type":"string","title":"Query"},"params":{"additionalProperties":true,"type":"object","title":"Params"}},"additionalProperties":false,"type":"object","required":["query","params"],"title":"CanvasDataQuery"},"CanvasDetail":{"properties":{"id":{"type":"string","title":"Id"},"title":{"type":"string","title":"Title"},"summary":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Summary"},"latest_version":{"type":"integer","title":"Latest Version"},"published_version":{"anyOf":[{"type":"integer"},{"type":"null"}],"title":"Published Version"},"created_by_thread_id":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Created By Thread Id"},"updated_at":{"type":"string","format":"date-time","title":"Updated At"},"published_slug":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Published Slug"},"versions":{"items":{"$ref":"#/components/schemas/CanvasVersionInfo"},"type":"array","title":"Versions"}},"type":"object","required":["id","title","summary","latest_version","published_version","created_by_thread_id","updated_at","published_slug","versions"],"title":"CanvasDetail"},"CanvasExportPage":{"properties":{"index":{"type":"integer","minimum":0.0,"title":"Index"},"width":{"type":"integer","maximum":30000.0,"minimum":1.0,"title":"Width"},"height":{"type":"integer","maximum":30000.0,"minimum":1.0,"title":"Height"}},"type":"object","required":["index","width","height"],"title":"CanvasExportPage"},"CanvasExportRequest":{"properties":{"format":{"type":"string","enum":["pdf","image"],"title":"Format"},"size":{"type":"string","enum":["original","widescreen","a4"],"title":"Size","default":"original"},"html":{"type":"string","minLength":1,"title":"Html"},"width":{"type":"integer","maximum":4000.0,"minimum":200.0,"title":"Width"},"pages":{"items":{"$ref":"#/components/schemas/CanvasExportPage"},"type":"array","maxItems":30,"minItems":1,"title":"Pages"}},"type":"object","required":["format","html","width","pages"],"title":"CanvasExportRequest"},"CanvasSummary":{"properties":{"id":{"type":"string","title":"Id"},"title":{"type":"string","title":"Title"},"summary":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Summary"},"latest_version":{"type":"integer","title":"Latest Version"},"published_version":{"anyOf":[{"type":"integer"},{"type":"null"}],"title":"Published Version"},"created_by_thread_id":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Created By Thread Id"},"updated_at":{"type":"string","format":"date-time","title":"Updated At"}},"type":"object","required":["id","title","summary","latest_version","published_version","created_by_thread_id","updated_at"],"title":"CanvasSummary"},"CanvasVersionInfo":{"properties":{"version":{"type":"integer","title":"Version"},"verified":{"type":"boolean","title":"Verified"},"thread_id":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Thread Id"},"created_at":{"type":"string","format":"date-time","title":"Created At"}},"type":"object","required":["version","verified","thread_id","created_at"],"title":"CanvasVersionInfo"},"CanvasVersionSource":{"properties":{"canvas_id":{"type":"string","title":"Canvas Id"},"version":{"type":"integer","title":"Version"},"format":{"type":"string","enum":["jsx","html"],"title":"Format"},"source":{"type":"string","title":"Source"}},"type":"object","required":["canvas_id","version","format","source"],"title":"CanvasVersionSource"},"ChatFileDedupRequest":{"properties":{"checksum_sha256":{"type":"string","maxLength":64,"minLength":64,"title":"Checksum Sha256"},"size_bytes":{"type":"integer","minimum":0.0,"title":"Size Bytes"},"mime_type":{"type":"string","title":"Mime Type"},"filename":{"type":"string","title":"Filename"}},"type":"object","required":["checksum_sha256","size_bytes","mime_type","filename"],"title":"ChatFileDedupRequest"},"ChatFileDedupResponse":{"properties":{"reused":{"type":"boolean","title":"Reused"},"upload_required":{"type":"boolean","title":"Upload Required"},"chat_file":{"anyOf":[{"$ref":"#/components/schemas/ChatFileRecord"},{"type":"null"}]}},"type":"object","required":["reused","upload_required"],"title":"ChatFileDedupResponse"},"ChatFileDownloadResponse":{"properties":{"chat_file_id":{"type":"string","title":"Chat File Id"},"download_url":{"type":"string","title":"Download Url"},"mime_type":{"type":"string","title":"Mime Type"},"filename":{"type":"string","title":"Filename"}},"type":"object","required":["chat_file_id","download_url","mime_type","filename"],"title":"ChatFileDownloadResponse"},"ChatFileListResponse":{"properties":{"items":{"items":{"$ref":"#/components/schemas/ChatFileRecord"},"type":"array","title":"Items"}},"type":"object","required":["items"],"title":"ChatFileListResponse"},"ChatFilePromoteResponse":{"properties":{"chat_file_id":{"type":"string","title":"Chat File Id"},"file_entry_id":{"type":"string","title":"File Entry Id"},"created":{"type":"boolean","title":"Created"},"saved_as":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Saved As"}},"type":"object","required":["chat_file_id","file_entry_id","created"],"title":"ChatFilePromoteResponse"},"ChatFileRecord":{"properties":{"chat_file_id":{"type":"string","title":"Chat File Id"},"deal_workspace_id":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Deal Workspace Id"},"thread_id":{"type":"string","title":"Thread Id"},"file_artifact_id":{"type":"string","title":"File Artifact Id"},"generated_artifact_id":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Generated Artifact Id"},"checksum_sha256":{"type":"string","title":"Checksum Sha256"},"filename":{"type":"string","title":"Filename"},"mime_type":{"type":"string","title":"Mime Type"},"size_bytes":{"type":"integer","title":"Size Bytes"},"source":{"type":"string","title":"Source"},"file_entry_id":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"File Entry Id"},"created_at":{"anyOf":[{"type":"string","format":"date-time"},{"type":"null"}],"title":"Created At"},"session_file_id":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Session File Id"}},"type":"object","required":["chat_file_id","thread_id","file_artifact_id","checksum_sha256","filename","mime_type","size_bytes","source"],"title":"ChatFileRecord"},"CheckoutRequest":{"properties":{"plan":{"type":"string","title":"Plan"}},"type":"object","required":["plan"],"title":"CheckoutRequest"},"ClientReason":{"properties":{"body":{"type":"string","title":"Body"},"createdAt":{"type":"string","format":"date-time","title":"Createdat"}},"type":"object","required":["body","createdAt"],"title":"ClientReason","description":"The client's explanation after a check, kept as a shared note and linked to the answer."},"ClientStateCounts":{"properties":{"accepted":{"type":"integer","title":"Accepted"},"waiting":{"type":"integer","title":"Waiting"},"needsMore":{"type":"integer","title":"Needsmore"},"notStarted":{"type":"integer","title":"Notstarted"}},"type":"object","required":["accepted","waiting","needsMore","notStarted"],"title":"ClientStateCounts","description":"The four numbers of the client page's header; they add up to the list. See `client_state`."},"CodeView":{"properties":{"user_code":{"type":"string","title":"User Code"},"app":{"type":"string","enum":["powerpoint","excel","claude"],"title":"App"},"return_to":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Return To"}},"type":"object","required":["user_code","app"],"title":"CodeView"},"CommitDraftRequest":{"properties":{"expected_revision":{"anyOf":[{"type":"integer"},{"type":"null"}],"title":"Expected Revision"}},"type":"object","title":"CommitDraftRequest"},"Company":{"properties":{"company_id":{"type":"string","title":"Company Id","description":"External company identifier"},"company_name":{"type":"string","title":"Company Name","description":"Company display name"},"website":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Website","description":"Company website URL"},"created_at":{"type":"string","format":"date-time","title":"Created At","description":"Creation timestamp"}},"type":"object","required":["company_id","company_name","created_at"],"title":"Company","description":"Company metadata schema."},"CompanyEmailDetail":{"properties":{"suggested_edits":{"anyOf":[{"items":{"$ref":"#/components/schemas/SuggestedEdit"},"type":"array"},{"type":"null"}],"title":"Suggested Edits","description":"Pending suggestions, each with whether it still fits the mail"},"suggestion_preview_html":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Suggestion Preview Html","description":"The current body with every pending suggestion marked in place"},"id":{"type":"string","title":"Id","description":"Email identifier"},"company_id":{"type":"string","title":"Company Id","description":"Associated company identifier"},"deal_workspace_id":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Deal Workspace Id","description":"Owning DealWorkspace identifier"},"contact_name":{"type":"string","title":"Contact Name","description":"Contact name"},"contact_id":{"type":"string","title":"Contact Id","description":"Associated contact identifier"},"company_name":{"type":"string","title":"Company Name","description":"Company name"},"crm_project_id":{"type":"string","title":"Crm Project Id","description":"Associated project identifier"},"company_email":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Company Email","description":"Company email address"},"email_name":{"type":"string","title":"Email Name","description":"Email user name"},"subject":{"type":"string","title":"Subject","description":"Email subject"},"body_content":{"type":"string","title":"Body Content","description":"Email body content"},"body_is_personalized":{"type":"boolean","title":"Body Is Personalized","description":"Whether the email body was manually personalized","default":false},"attachment_url":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Attachment Url","description":"Attachment URL for the email"},"attachment_filename":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Attachment Filename","description":"Clean normalized filename for display"},"type":{"anyOf":[{"$ref":"#/components/schemas/TYPE"},{"type":"string"}],"title":"Type","description":"Email type (cold mail or follow-up)","default":"COLD-MAIL"},"status":{"anyOf":[{"$ref":"#/components/schemas/STATUS"},{"type":"null"}],"description":"Email status"},"stopped_reason":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Stopped Reason","description":"Machine-readable reason the sequence step was stopped or skipped"},"status_detail":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Status Detail","description":"Human-readable explanation for the current stopped or skipped state"},"latest_event":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Latest Event","description":"Latest Brevo tracking event recorded for this email"},"send_provider":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Send Provider","description":"Service that sent the email: 'brevo' or 'gmail'; None until sent"},"schedule_time":{"anyOf":[{"type":"string","format":"date-time"},{"type":"null"}],"title":"Schedule Time","description":"Scheduled time for sending the email"},"sent_at":{"anyOf":[{"type":"string","format":"date-time"},{"type":"null"}],"title":"Sent At","description":"Timestamp when the email was sent"},"created_at":{"type":"string","format":"date-time","title":"Created At","description":"Creation timestamp"}},"type":"object","required":["id","company_id","contact_name","contact_id","company_name","crm_project_id","email_name","subject","body_content","status"],"title":"CompanyEmailDetail","description":"Email with company information"},"CompanyImportItem":{"properties":{"name":{"type":"string","title":"Name","description":"Contact name"},"company_id":{"type":"string","title":"Company Id","description":"External company identifier"},"company":{"type":"string","title":"Company","description":"Company the contact belongs to"},"crm_project_id":{"type":"string","title":"Crm Project Id","description":"CRM project identifier the contact is associated with"},"deal_workspace_id":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Deal Workspace Id","description":"Workspace identifier; must match workspace route when provided"},"email":{"anyOf":[{"type":"string","format":"email"},{"type":"null"}],"title":"Email","description":"Contact email address"},"email_name":{"type":"string","title":"Email Name","description":"Email user name"},"phone":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Phone","description":"Contact phone number"},"synergy":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Synergy","description":"Synergy data"}},"type":"object","required":["name","company_id","company","crm_project_id","email_name"],"title":"CompanyImportItem"},"CompleteGeneratedArtifactRequest":{"properties":{"uploaded_size_bytes":{"type":"integer","minimum":0.0,"title":"Uploaded Size Bytes"},"uploaded_checksum_sha256":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Uploaded Checksum Sha256"},"uploaded_etag":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Uploaded Etag"},"metadata":{"additionalProperties":true,"type":"object","title":"Metadata"}},"type":"object","required":["uploaded_size_bytes"],"title":"CompleteGeneratedArtifactRequest"},"CompleteGeneratedArtifactResponse":{"properties":{"artifact_id":{"type":"string","title":"Artifact Id"},"file_entry_id":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"File Entry Id"},"file_manager_id":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"File Manager Id"},"status":{"$ref":"#/components/schemas/GeneratedArtifactStatus"},"source_service":{"type":"string","title":"Source Service"},"source_run_id":{"type":"string","title":"Source Run Id"},"artifact_kind":{"type":"string","title":"Artifact Kind"},"filename":{"type":"string","title":"Filename"},"mime_type":{"type":"string","title":"Mime Type"},"size_bytes":{"anyOf":[{"type":"integer"},{"type":"null"}],"title":"Size Bytes"},"s3_key":{"type":"string","title":"S3 Key"},"path":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Path"},"download":{"anyOf":[{"$ref":"#/components/schemas/GeneratedArtifactDownloadReference"},{"type":"null"}]},"failure_code":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Failure Code"},"failure_message":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Failure Message"}},"type":"object","required":["artifact_id","status","source_service","source_run_id","artifact_kind","filename","mime_type","s3_key"],"title":"CompleteGeneratedArtifactResponse"},"ComponentSource":{"properties":{"componentId":{"type":"string","maxLength":100,"minLength":1,"title":"Componentid"},"action":{"type":"string","maxLength":50,"minLength":1,"title":"Action"}},"type":"object","required":["componentId","action"],"title":"ComponentSource","description":"The component a message comes from: a person's confirm on it (see `ui_components/submit.py`)."},"ConnectCalendarRequest":{"properties":{"code":{"type":"string","maxLength":2048,"minLength":1,"title":"Code"}},"type":"object","required":["code"],"title":"ConnectCalendarRequest","description":"What the browser got from Google's sign-in pop-up: a one-time code the server trades for tokens."},"ConnectGmailRequest":{"properties":{"code":{"type":"string","maxLength":2048,"minLength":1,"title":"Code"}},"type":"object","required":["code"],"title":"ConnectGmailRequest","description":"What the browser got from Google's sign-in pop-up: a one-time code the server trades for tokens."},"ConsentStatus":{"properties":{"version":{"type":"string","title":"Version"},"accepted":{"type":"boolean","title":"Accepted"},"accepted_at":{"anyOf":[{"type":"string","format":"date-time"},{"type":"null"}],"title":"Accepted At"}},"type":"object","required":["version","accepted","accepted_at"],"title":"ConsentStatus"},"ContactFindingPhase1Request":{"properties":{"max_buyers":{"anyOf":[{"type":"integer","minimum":1.0},{"type":"null"}],"title":"Max Buyers"}},"type":"object","title":"ContactFindingPhase1Request"},"ContactFindingPhase2Request":{"properties":{"contact_ids":{"anyOf":[{"items":{"type":"string"},"type":"array"},{"type":"null"}],"title":"Contact Ids"},"only_missing_email":{"type":"boolean","title":"Only Missing Email","default":true}},"type":"object","title":"ContactFindingPhase2Request"},"ContactFindingProgressResponse":{"properties":{"task_id":{"type":"string","title":"Task Id"},"status":{"type":"string","title":"Status"},"processed":{"type":"integer","title":"Processed"},"total":{"type":"integer","title":"Total"},"current_item":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Current Item"},"result":{"anyOf":[{"additionalProperties":true,"type":"object"},{"type":"null"}],"title":"Result"},"error":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Error"}},"type":"object","required":["task_id","status","processed","total"],"title":"ContactFindingProgressResponse"},"ContactMailOverlap":{"properties":{"contact_id":{"type":"string","title":"Contact Id"},"contact_status":{"anyOf":[{"type":"string","enum":["Responded","Dropped"]},{"type":"null"}],"title":"Contact Status","description":"Set when this contact has already answered or was rejected"},"other_campaign_mails":{"items":{"$ref":"#/components/schemas/OtherCampaignMail"},"type":"array","title":"Other Campaign Mails","description":"Mails to the same address, in the workspace's other campaigns, that are sent, queued or planned"},"blocked_by_campaigns":{"items":{"type":"string"},"type":"array","title":"Blocked By Campaigns","description":"Names of the campaigns whose planned mail to the same person stops this contact's mail from going out; empty when nothing does"},"will_not_send":{"type":"boolean","title":"Will Not Send","description":"True when the dispatcher will cancel this contact's mail: the contact has answered or was dropped, or a mail planned in another campaign holds it back. The other lists only inform"}},"type":"object","required":["contact_id","contact_status","other_campaign_mails","will_not_send"],"title":"ContactMailOverlap"},"ContactMessageOut":{"properties":{"id":{"type":"string","format":"uuid","title":"Id"},"sender":{"type":"string","enum":["user","staff","system"],"title":"Sender"},"body":{"type":"string","title":"Body"},"context":{"anyOf":[{"$ref":"#/components/schemas/MessageContextOut"},{"type":"null"}]},"created_at":{"type":"string","format":"date-time","title":"Created At"}},"type":"object","required":["id","sender","body","context","created_at"],"title":"ContactMessageOut"},"ContactNoteOut":{"properties":{"id":{"type":"string","title":"Id"},"text":{"type":"string","title":"Text"},"tag":{"anyOf":[{"type":"string","enum":["hook","internal"]},{"type":"null"}],"title":"Tag","description":"hook, internal, or none for a plain note"},"source_url":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Source Url"},"source_date":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Source Date"},"created_by":{"type":"string","enum":["person","assistant"],"title":"Created By"},"created_at":{"type":"string","format":"date-time","title":"Created At"},"updated_at":{"type":"string","format":"date-time","title":"Updated At"}},"type":"object","required":["id","text","tag","source_url","source_date","created_by","created_at","updated_at"],"title":"ContactNoteOut"},"ContactPatch":{"properties":{"name":{"anyOf":[{"type":"string","minLength":1},{"type":"null"}],"title":"Name"},"email":{"anyOf":[{"type":"string","minLength":1},{"type":"null"}],"title":"Email"},"role":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Role"},"receivesSummary":{"anyOf":[{"type":"boolean"},{"type":"null"}],"title":"Receivessummary"},"ccSummary":{"anyOf":[{"type":"boolean"},{"type":"null"}],"title":"Ccsummary"},"picValues":{"anyOf":[{"items":{"type":"string"},"type":"array"},{"type":"null"}],"title":"Picvalues"}},"type":"object","title":"ContactPatch"},"ContactSequenceTemplateResponse":{"properties":{"contact_id":{"type":"string","title":"Contact Id"},"crm_project_id":{"type":"string","title":"Crm Project Id"},"synergy_enabled":{"type":"boolean","title":"Synergy Enabled"},"synergy":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Synergy","description":"Renderable synergy text if enabled, None otherwise"},"synergy_status":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Synergy Status","description":"Status of synergy: fit|weak_fit|no_fit|not_generated|disabled"},"updated_emails":{"type":"integer","title":"Updated Emails"},"updated_email_ids":{"items":{"type":"string"},"type":"array","title":"Updated Email Ids"}},"type":"object","required":["contact_id","crm_project_id","synergy_enabled","updated_emails"],"title":"ContactSequenceTemplateResponse"},"ContactStatus":{"type":"string","enum":["Not Created","Draft","Follow Up","Paused","Responded","Dropped"],"title":"ContactStatus"},"ContactThreadOut":{"properties":{"messages":{"items":{"$ref":"#/components/schemas/ContactMessageOut"},"type":"array","title":"Messages"},"team_read_at":{"anyOf":[{"type":"string","format":"date-time"},{"type":"null"}],"title":"Team Read At"},"unread":{"type":"integer","title":"Unread"},"reply_hours":{"$ref":"#/components/schemas/ReplyHoursOut"}},"type":"object","required":["messages","team_read_at","unread","reply_hours"],"title":"ContactThreadOut","description":"The user's conversation. ``team_read_at`` lets the app mark the user's messages the team has seen."},"ContentNode":{"properties":{"id":{"type":"string","title":"Id","default":""},"heading":{"anyOf":[{"type":"string","maxLength":300},{"type":"null"}],"title":"Heading"},"headingKind":{"anyOf":[{"type":"string","enum":["topic","claim","measure","leadIn","entityName","logo"]},{"type":"null"}],"title":"Headingkind"},"visualHint":{"anyOf":[{"type":"string","maxLength":300},{"type":"null"}],"title":"Visualhint"},"text":{"anyOf":[{"type":"string","maxLength":600},{"type":"null"}],"title":"Text"},"dataKind":{"anyOf":[{"type":"string","enum":["metric","sentence","label","logo","series","callout","quote","contact","image","status"]},{"type":"null"}],"title":"Datakind"},"qualifier":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Qualifier"},"status":{"anyOf":[{"type":"string","enum":["confirmed","flag","suggest"]},{"type":"null"}],"title":"Status"},"sourceRef":{"anyOf":[{"type":"string","maxLength":300},{"type":"null"}],"title":"Sourceref"},"children":{"items":{"$ref":"#/components/schemas/ContentNode"},"type":"array","title":"Children"}},"additionalProperties":false,"type":"object","title":"ContentNode","description":"One part of a zone's mind map: a group (has children) or a fact (has none)."},"ContextFile":{"properties":{"chat_file_id":{"type":"string","title":"Chat File Id"},"name":{"type":"string","title":"Name"},"mime_type":{"type":"string","title":"Mime Type"},"download_url":{"type":"string","title":"Download Url"}},"type":"object","required":["chat_file_id","name","mime_type","download_url"],"title":"ContextFile"},"ContextMessage":{"properties":{"message_id":{"type":"string","title":"Message Id"},"role":{"type":"string","title":"Role"},"content":{"type":"string","title":"Content"}},"type":"object","required":["message_id","role","content"],"title":"ContextMessage","description":"One chat turn, exactly as it was stored. Nothing here is derived."},"CreateCampaignTopicRequest":{"properties":{"title":{"type":"string","maxLength":80,"minLength":1,"title":"Title"},"body":{"type":"string","maxLength":4000,"title":"Body"},"sources":{"items":{"type":"string"},"type":"array","title":"Sources","description":"File names or links the topic came from"}},"type":"object","required":["title","body"],"title":"CreateCampaignTopicRequest"},"CreateContactNoteRequest":{"properties":{"text":{"type":"string","minLength":1,"title":"Text","description":"The note's text"},"tag":{"anyOf":[{"type":"string","enum":["hook","internal"]},{"type":"null"}],"title":"Tag","description":"hook, internal, or none for a plain note"}},"type":"object","required":["text"],"title":"CreateContactNoteRequest"},"CreateDealWorkspaceRequest":{"properties":{"name":{"type":"string","title":"Name"},"structure_type":{"type":"string","enum":["PROJECTS_ONLY","USE_BATCHES"],"title":"Structure Type","default":"PROJECTS_ONLY"}},"type":"object","required":["name"],"title":"CreateDealWorkspaceRequest"},"CreateDesignReferenceInput":{"properties":{"name":{"type":"string","title":"Name"},"type":{"type":"string","title":"Type","default":"visual"},"content_type":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Content Type"},"file_type":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"File Type"},"base64":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Base64"},"slide_id":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Slide Id"},"source":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Source"},"id":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Id"},"content_fingerprint":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Content Fingerprint"}},"type":"object","required":["name"],"title":"CreateDesignReferenceInput"},"CreateDesignRequest":{"properties":{"name":{"type":"string","title":"Name"},"description":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Description"},"is_default":{"type":"boolean","title":"Is Default","default":false},"references":{"items":{"$ref":"#/components/schemas/CreateDesignReferenceInput"},"type":"array","title":"References"}},"type":"object","required":["name"],"title":"CreateDesignRequest"},"CreateDesignResponse":{"properties":{"id":{"type":"string","title":"Id"},"name":{"type":"string","title":"Name"},"description":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Description"},"keywords":{"items":{"type":"string"},"type":"array","title":"Keywords"},"is_default":{"type":"boolean","title":"Is Default","default":false},"revision":{"type":"integer","title":"Revision","default":1},"created_at":{"title":"Created At"},"updated_at":{"title":"Updated At"},"references":{"items":{"$ref":"#/components/schemas/DesignReferenceItem"},"type":"array","title":"References"},"enroll_task_ids":{"items":{"type":"string"},"type":"array","title":"Enroll Task Ids"},"flow_id":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Flow Id"}},"type":"object","required":["id","name"],"title":"CreateDesignResponse"},"CreateGeneratedArtifactIntentRequest":{"properties":{"source_service":{"type":"string","title":"Source Service"},"source_run_id":{"type":"string","title":"Source Run Id"},"artifact_kind":{"type":"string","title":"Artifact Kind"},"filename":{"type":"string","title":"Filename"},"mime_type":{"type":"string","title":"Mime Type"},"expected_size_bytes":{"type":"integer","minimum":0.0,"title":"Expected Size Bytes"},"expected_checksum_sha256":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Expected Checksum Sha256"},"crm_project_id":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Crm Project Id"},"category":{"type":"string","title":"Category"},"metadata":{"additionalProperties":true,"type":"object","title":"Metadata"}},"type":"object","required":["source_service","source_run_id","artifact_kind","filename","mime_type","expected_size_bytes","category"],"title":"CreateGeneratedArtifactIntentRequest"},"CreateMemoryRequest":{"properties":{"type":{"type":"string","enum":["about_you","feedback","deal_fact","where_to_find"],"title":"Type"},"title":{"type":"string","title":"Title"},"description":{"type":"string","title":"Description"},"body":{"type":"string","title":"Body"},"as_of":{"anyOf":[{"type":"string","format":"date"},{"type":"null"}],"title":"As Of"},"sources":{"items":{"$ref":"#/components/schemas/MemorySource"},"type":"array","title":"Sources"},"scope":{"type":"string","enum":["deal","user"],"title":"Scope"},"deal_workspace_id":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Deal Workspace Id"}},"type":"object","required":["type","title","description","body","scope"],"title":"CreateMemoryRequest"},"CreateNoteRequest":{"properties":{"title":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Title"},"content":{"type":"string","title":"Content","description":"Note content"},"deal_workspace_id":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Deal Workspace Id"}},"type":"object","required":["content"],"title":"CreateNoteRequest"},"CreateSkillRequest":{"properties":{"name":{"type":"string","minLength":1,"title":"Name"},"description":{"type":"string","minLength":1,"title":"Description"},"prompt":{"type":"string","minLength":1,"title":"Prompt"},"enabled":{"type":"boolean","title":"Enabled","default":true}},"type":"object","required":["name","description","prompt"],"title":"CreateSkillRequest"},"DataSourceDescriptorResponse":{"properties":{"kind":{"type":"string","title":"Kind"},"display_name":{"type":"string","title":"Display Name"},"summary":{"type":"string","title":"Summary"},"query_schema":{"additionalProperties":true,"type":"object","title":"Query Schema"},"expected_outputs":{"type":"string","title":"Expected Outputs"}},"type":"object","required":["kind","display_name","summary","query_schema","expected_outputs"],"title":"DataSourceDescriptorResponse","description":"Schema for GET /sources response item."},"DealFileStatus":{"properties":{"name":{"type":"string","title":"Name"},"state":{"type":"string","enum":["read","reading","failed"],"title":"State"}},"type":"object","required":["name","state"],"title":"DealFileStatus"},"DealFilesStatus":{"properties":{"read":{"type":"integer","title":"Read"},"reading":{"type":"integer","title":"Reading"},"failed":{"type":"integer","title":"Failed"},"ready":{"type":"boolean","title":"Ready"},"can_continue":{"type":"boolean","title":"Can Continue"},"files":{"items":{"$ref":"#/components/schemas/DealFileStatus"},"type":"array","title":"Files"}},"type":"object","required":["read","reading","failed","ready","can_continue","files"],"title":"DealFilesStatus"},"DealName":{"properties":{"company_name":{"type":"string","maxLength":120,"title":"Company Name"}},"type":"object","required":["company_name"],"title":"DealName"},"DealWorkspaceResponse":{"properties":{"id":{"type":"string","title":"Id"},"name":{"type":"string","title":"Name"},"type":{"type":"string","enum":["default","specific"],"title":"Type"},"status":{"type":"string","enum":["active","archived","deleted"],"title":"Status"},"structure_type":{"type":"string","enum":["PROJECTS_ONLY","USE_BATCHES"],"title":"Structure Type"},"deal_status":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Deal Status","default":"opportunity"},"progress_note":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Progress Note"},"logo":{"anyOf":[{"oneOf":[{"$ref":"#/components/schemas/WorkspaceIconLogo"},{"$ref":"#/components/schemas/WorkspaceImageLogo"}],"discriminator":{"propertyName":"kind","mapping":{"icon":"#/components/schemas/WorkspaceIconLogo","image":"#/components/schemas/WorkspaceImageLogo"}}},{"type":"null"}],"title":"Logo"},"created_at":{"type":"string","format":"date-time","title":"Created At"},"updated_at":{"type":"string","format":"date-time","title":"Updated At"}},"type":"object","required":["id","name","type","status","structure_type","created_at","updated_at"],"title":"DealWorkspaceResponse"},"DeckDraftResponse":{"properties":{"thread_id":{"type":"string","title":"Thread Id"},"deal_workspace_id":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Deal Workspace Id"},"title":{"type":"string","title":"Title"},"slides":{"items":{"$ref":"#/components/schemas/DeckSkeletonSlide"},"type":"array","title":"Slides"},"version":{"type":"integer","title":"Version"},"last_idempotency_key":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Last Idempotency Key"},"updated_at":{"anyOf":[{"type":"string","format":"date-time"},{"type":"null"}],"title":"Updated At"},"exported_at":{"anyOf":[{"type":"string","format":"date-time"},{"type":"null"}],"title":"Exported At"}},"type":"object","required":["thread_id","deal_workspace_id","title","slides","version"],"title":"DeckDraftResponse"},"DeckDraftUpdateRequest":{"properties":{"title":{"type":"string","minLength":1,"title":"Title"},"deal_workspace_id":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Deal Workspace Id"},"slides":{"items":{"$ref":"#/components/schemas/DeckExportSlide"},"type":"array","maxItems":60,"title":"Slides"},"expected_version":{"type":"integer","minimum":0.0,"title":"Expected Version"},"idempotency_key":{"type":"string","minLength":1,"title":"Idempotency Key"}},"type":"object","required":["title","expected_version","idempotency_key"],"title":"DeckDraftUpdateRequest"},"DeckExportDownloadResponse":{"properties":{"download_url":{"type":"string","title":"Download Url"},"filename":{"type":"string","title":"Filename"},"mime_type":{"type":"string","title":"Mime Type"}},"type":"object","required":["download_url","filename","mime_type"],"title":"DeckExportDownloadResponse","description":"A presigned link to the exported .pptx, same shape as chat file downloads.\n\nThe frontend's shared downloadFileWithAuth() helper already knows how to\nfollow a JSON {\"download_url\": ...} response and stream from it directly,\nso returning this instead of raw pptx bytes reuses that existing download\npath instead of proxying the file through this endpoint."},"DeckExportRequest":{"properties":{"title":{"type":"string","minLength":1,"title":"Title"},"deal_workspace_id":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Deal Workspace Id"},"slides":{"items":{"$ref":"#/components/schemas/DeckExportSlide"},"type":"array","maxItems":60,"minItems":1,"title":"Slides"}},"type":"object","required":["title","slides"],"title":"DeckExportRequest"},"DeckExportSlide":{"properties":{"position":{"anyOf":[{"type":"integer"},{"type":"null"}],"title":"Position"},"heading":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Heading"},"title":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Title"},"subtitle":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Subtitle"},"layoutTemplate":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Layouttemplate"},"zones":{"anyOf":[{"items":{"additionalProperties":true,"type":"object"},"type":"array"},{"type":"null"}],"title":"Zones"}},"type":"object","title":"DeckExportSlide"},"DeckSkeleton":{"properties":{"thread_id":{"type":"string","title":"Thread Id"},"deal_workspace_id":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Deal Workspace Id"},"title":{"type":"string","title":"Title"},"exported_at":{"type":"string","format":"date-time","title":"Exported At"},"slides":{"items":{"$ref":"#/components/schemas/DeckSkeletonSlide"},"type":"array","title":"Slides"},"version":{"type":"integer","title":"Version","default":1},"last_idempotency_key":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Last Idempotency Key"},"updated_at":{"anyOf":[{"type":"string","format":"date-time"},{"type":"null"}],"title":"Updated At"}},"type":"object","required":["thread_id","deal_workspace_id","title","exported_at","slides"],"title":"DeckSkeleton"},"DeckSkeletonSlide":{"properties":{"position":{"type":"integer","minimum":1.0,"title":"Position"},"heading":{"type":"string","minLength":1,"title":"Heading"},"subtitle":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Subtitle"},"layoutTemplate":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Layouttemplate"},"zones":{"anyOf":[{"items":{"additionalProperties":true,"type":"object"},"type":"array"},{"type":"null"}],"title":"Zones"}},"type":"object","required":["position","heading"],"title":"DeckSkeletonSlide","description":"One slide's position, heading/title, subtitle, layoutTemplate and zones."},"DeleteCompanyResponse":{"properties":{"success":{"type":"boolean","title":"Success"},"company_id":{"type":"string","title":"Company Id"},"company_name":{"type":"string","title":"Company Name"},"contact_name":{"type":"string","title":"Contact Name"},"deleted_emails_count":{"type":"integer","title":"Deleted Emails Count"},"deleted_followups_count":{"type":"integer","title":"Deleted Followups Count"},"cancelled_tasks_count":{"type":"integer","title":"Cancelled Tasks Count"},"message":{"type":"string","title":"Message"}},"type":"object","required":["success","company_id","company_name","contact_name","deleted_emails_count","deleted_followups_count","cancelled_tasks_count","message"],"title":"DeleteCompanyResponse"},"DeleteContactResponse":{"properties":{"success":{"type":"boolean","title":"Success"},"contact_id":{"type":"string","title":"Contact Id"},"contact_name":{"type":"string","title":"Contact Name"},"company_id":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Company Id"},"company_name":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Company Name"},"deleted_emails_count":{"type":"integer","title":"Deleted Emails Count"},"deleted_followups_count":{"type":"integer","title":"Deleted Followups Count"},"cancelled_tasks_count":{"type":"integer","title":"Cancelled Tasks Count"},"message":{"type":"string","title":"Message"}},"type":"object","required":["success","contact_id","contact_name","company_name","deleted_emails_count","deleted_followups_count","cancelled_tasks_count","message"],"title":"DeleteContactResponse"},"DeleteResponse":{"properties":{"message":{"type":"string","title":"Message"},"file_name":{"type":"string","title":"File Name"},"hash":{"type":"string","title":"Hash"}},"type":"object","required":["message","file_name","hash"],"title":"DeleteResponse"},"Design":{"properties":{"id":{"type":"string","title":"Id"},"name":{"type":"string","title":"Name"},"description":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Description"},"keywords":{"items":{"type":"string"},"type":"array","title":"Keywords"},"is_default":{"type":"boolean","title":"Is Default","default":false},"revision":{"type":"integer","title":"Revision","default":1},"created_at":{"type":"string","format":"date-time","title":"Created At"},"updated_at":{"type":"string","format":"date-time","title":"Updated At"}},"type":"object","required":["id","name","created_at","updated_at"],"title":"Design"},"DesignDocument":{"properties":{"id":{"type":"string","title":"Id"},"design_id":{"type":"string","title":"Design Id"},"name":{"type":"string","title":"Name"},"description":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Description"},"metadata":{"additionalProperties":true,"type":"object","title":"Metadata"},"content":{"type":"string","title":"Content"},"created_at":{"type":"string","format":"date-time","title":"Created At"},"updated_at":{"type":"string","format":"date-time","title":"Updated At"}},"type":"object","required":["id","design_id","name","content","created_at","updated_at"],"title":"DesignDocument"},"DesignReferenceItem":{"properties":{"id":{"type":"string","title":"Id"},"name":{"type":"string","title":"Name"},"type":{"type":"string","enum":["visual","context"],"title":"Type","default":"visual"},"source":{"type":"string","title":"Source","default":"upload"},"slide_id":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Slide Id"},"status":{"type":"string","enum":["pending","ready","failed"],"title":"Status","default":"pending"},"sha256":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Sha256"},"file_type":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"File Type"},"base64":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Base64"},"error":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Error"},"file_artifact_id":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"File Artifact Id"},"s3_key":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"S3 Key"},"enroll_task_id":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Enroll Task Id"},"preview_hint":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Preview Hint"},"content_fingerprint":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Content Fingerprint"},"progress_label":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Progress Label"}},"type":"object","required":["id","name"],"title":"DesignReferenceItem","description":"One visual (or context) material claimed by a design."},"DocumentResponse":{"properties":{"id":{"type":"string","title":"Id"},"hash":{"type":"string","title":"Hash"},"filename":{"type":"string","title":"Filename"},"file_name":{"type":"string","title":"File Name"},"file_type":{"type":"string","title":"File Type"},"size":{"type":"integer","title":"Size"},"uploaded_at":{"type":"string","format":"date-time","title":"Uploaded At"},"s3_url":{"type":"string","title":"S3 Url"},"status":{"type":"string","title":"Status"}},"type":"object","required":["id","hash","filename","file_name","file_type","size","uploaded_at","s3_url","status"],"title":"DocumentResponse"},"DraftResponse":{"properties":{"id":{"type":"string","title":"Id"},"status":{"type":"string","title":"Status"},"payload":{"additionalProperties":true,"type":"object","title":"Payload"},"event_link":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Event Link"},"meet_link":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Meet Link"},"expires_at":{"type":"string","title":"Expires At"}},"type":"object","required":["id","status","payload","event_link","meet_link","expires_at"],"title":"DraftResponse"},"DriveImportItem":{"properties":{"id":{"type":"string","title":"Id"},"name":{"type":"string","title":"Name"},"mime_type":{"type":"string","title":"Mime Type"}},"type":"object","required":["id","name","mime_type"],"title":"DriveImportItem"},"DriveSyncRequest":{"properties":{"user_id":{"type":"string","title":"User Id"},"default_folder_id":{"type":"string","title":"Default Folder Id"},"deal_workspace_id":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Deal Workspace Id"}},"type":"object","required":["user_id","default_folder_id"],"title":"DriveSyncRequest"},"DueDatesBody":{"properties":{"itemIds":{"items":{"type":"string"},"type":"array","title":"Itemids"},"dueDate":{"anyOf":[{"type":"string","format":"date"},{"type":"null"}],"title":"Duedate"}},"type":"object","required":["itemIds","dueDate"],"title":"DueDatesBody"},"Email":{"properties":{"suggested_edits":{"anyOf":[{"items":{"$ref":"#/components/schemas/SuggestedEdit"},"type":"array"},{"type":"null"}],"title":"Suggested Edits","description":"Pending suggestions, each with whether it still fits the mail"},"suggestion_preview_html":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Suggestion Preview Html","description":"The current body with every pending suggestion marked in place"},"id":{"type":"string","title":"Id","description":"Email identifier"},"company_id":{"type":"string","title":"Company Id","description":"Associated company identifier"},"deal_workspace_id":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Deal Workspace Id","description":"Owning DealWorkspace identifier"},"subject":{"type":"string","title":"Subject","description":"Email subject"},"body_content":{"type":"string","title":"Body Content","description":"Email body content"},"body_is_personalized":{"type":"boolean","title":"Body Is Personalized","description":"Whether the email body was manually personalized","default":false},"attachment_url":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Attachment Url","description":"Attachment URL for the email"},"attachment_filename":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Attachment Filename","description":"Clean normalized filename for display"},"type":{"anyOf":[{"$ref":"#/components/schemas/TYPE"},{"type":"string"}],"title":"Type","description":"Email type (cold mail or follow-up)","default":"COLD-MAIL"},"status":{"anyOf":[{"$ref":"#/components/schemas/STATUS"},{"type":"null"}],"description":"Email status"},"stopped_reason":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Stopped Reason","description":"Machine-readable reason the sequence step was stopped or skipped"},"status_detail":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Status Detail","description":"Human-readable explanation for the current stopped or skipped state"},"latest_event":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Latest Event","description":"Latest Brevo tracking event recorded for this email"},"send_provider":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Send Provider","description":"Service that sent the email: 'brevo' or 'gmail'; None until sent"},"schedule_time":{"anyOf":[{"type":"string","format":"date-time"},{"type":"null"}],"title":"Schedule Time","description":"Scheduled time for sending the email"},"sent_at":{"anyOf":[{"type":"string","format":"date-time"},{"type":"null"}],"title":"Sent At","description":"Timestamp when the email was sent"},"created_at":{"type":"string","format":"date-time","title":"Created At","description":"Creation timestamp"}},"type":"object","required":["id","company_id","subject","body_content","status"],"title":"Email","description":"Email schema"},"EmailCheckBody":{"properties":{"email":{"type":"string","format":"email","title":"Email"}},"type":"object","required":["email"],"title":"EmailCheckBody"},"EmailCheckResult":{"properties":{"company_email":{"type":"boolean","title":"Company Email"},"has_account":{"type":"boolean","title":"Has Account"}},"type":"object","required":["company_email","has_account"],"title":"EmailCheckResult"},"EmailPreview":{"properties":{"subject":{"type":"string","title":"Subject"},"html":{"type":"string","title":"Html"},"text":{"type":"string","title":"Text"},"recipientEmail":{"type":"string","title":"Recipientemail"},"recipientName":{"type":"string","title":"Recipientname"},"cc":{"items":{"type":"string"},"type":"array","title":"Cc"}},"type":"object","required":["subject","html","text","recipientEmail","recipientName","cc"],"title":"EmailPreview"},"EmailSettingsPatch":{"properties":{"language":{"anyOf":[{"type":"string","enum":["vi","en"]},{"type":"null"}],"title":"Language"},"replyTo":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Replyto"}},"type":"object","title":"EmailSettingsPatch"},"EmailSetup":{"properties":{"language":{"type":"string","enum":["vi","en"],"title":"Language"},"replyTo":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Replyto"},"contacts":{"items":{"$ref":"#/components/schemas/agentic_be__dd__models__Contact"},"type":"array","title":"Contacts"},"picValues":{"items":{"type":"string"},"type":"array","title":"Picvalues"},"unmappedPics":{"items":{"type":"string"},"type":"array","title":"Unmappedpics"},"itemsWithoutPic":{"items":{"type":"string"},"type":"array","title":"Itemswithoutpic"},"schedules":{"$ref":"#/components/schemas/SchedulePair"},"outboxCount":{"type":"integer","title":"Outboxcount"}},"type":"object","required":["language","replyTo","contacts","picValues","unmappedPics","itemsWithoutPic","schedules","outboxCount"],"title":"EmailSetup"},"EmailUpdateItem":{"properties":{"type":{"type":"string","title":"Type","description":"Email type (COLD-MAIL, FOLLOW-UP-1, etc.)"},"subject":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Subject","description":"Updated email subject"},"body_content":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Body Content","description":"Updated email body content"},"schedule_time":{"anyOf":[{"type":"string","format":"date-time"},{"type":"null"}],"title":"Schedule Time","description":"Updated scheduled time for sending the email"}},"type":"object","required":["type"],"title":"EmailUpdateItem","description":"Schema for updating individual email fields."},"FileType":{"type":"string","enum":["file","folder"],"title":"FileType"},"FileUrl":{"properties":{"url":{"type":"string","title":"Url"}},"type":"object","required":["url"],"title":"FileUrl"},"FirmComparison":{"properties":{"result":{"type":"string","enum":["differs","consistent","nothing_to_compare","failed","comparing"],"title":"Result"},"message":{"type":"string","title":"Message"},"comparedAt":{"type":"string","format":"date-time","title":"Comparedat"}},"type":"object","required":["result","message","comparedAt"],"title":"FirmComparison","description":"What the firm's own records say about a client's answer: whether the figures and names in it differ from what the\nfirm already has. Firm only. It sits on the firm's `IrlItem`, never on `Answer`, because `Answer` is also what the client's\npage and the client's assistant read."},"FirmRules":{"properties":{"content":{"type":"string","title":"Content","default":""},"updated_at":{"anyOf":[{"type":"string","format":"date-time"},{"type":"null"}],"title":"Updated At"},"updated_by":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Updated By"}},"type":"object","title":"FirmRules"},"FirstRunStatus":{"properties":{"stage":{"type":"string","enum":["tour","files","buyer_list","plan","done"],"title":"Stage"},"buyer_list_waiting":{"type":"boolean","title":"Buyer List Waiting"},"buyer_list_thread_id":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Buyer List Thread Id"},"deal_workspace_id":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Deal Workspace Id"},"deal_name":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Deal Name"},"deal_files":{"$ref":"#/components/schemas/DealFilesStatus"},"buyer_list_running":{"type":"boolean","title":"Buyer List Running"},"buyer_list_running_thread_id":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Buyer List Running Thread Id"},"buyer_list_running_task_id":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Buyer List Running Task Id"},"workspace_tour":{"type":"string","enum":["none","ready","done"],"title":"Workspace Tour"},"buyer_list_ready_thread_id":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Buyer List Ready Thread Id"},"access_pass_days":{"anyOf":[{"type":"integer"},{"type":"null"}],"title":"Access Pass Days"}},"type":"object","required":["stage","buyer_list_waiting","buyer_list_thread_id","deal_workspace_id","deal_name","deal_files","buyer_list_running","buyer_list_running_thread_id","buyer_list_running_task_id","workspace_tour","buyer_list_ready_thread_id","access_pass_days"],"title":"FirstRunStatus"},"FollowUp":{"properties":{"id":{"type":"string","title":"Id","description":"Follow-up identifier"},"email_id":{"type":"string","title":"Email Id","description":"Parent cold email identifier"},"subject":{"type":"string","title":"Subject","description":"Follow-up subject"},"body_content":{"type":"string","title":"Body Content","description":"Follow-up body content"},"body_is_personalized":{"type":"boolean","title":"Body Is Personalized","description":"Whether the follow-up body was manually personalized","default":false},"attachment_url":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Attachment Url","description":"Attachment URL for this follow-up"},"attempt":{"type":"integer","title":"Attempt","description":"Follow-up attempt number"},"status":{"anyOf":[{"$ref":"#/components/schemas/STATUS"},{"type":"null"}],"description":"Follow-up status"},"stopped_reason":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Stopped Reason","description":"Machine-readable reason the sequence step was stopped or skipped"},"status_detail":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Status Detail","description":"Human-readable explanation for the current stopped or skipped state"},"latest_event":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Latest Event","description":"Latest Brevo tracking event recorded for this follow-up"},"schedule_time":{"anyOf":[{"type":"string","format":"date-time"},{"type":"null"}],"title":"Schedule Time","description":"Scheduled send time"},"sent_at":{"anyOf":[{"type":"string","format":"date-time"},{"type":"null"}],"title":"Sent At","description":"Timestamp when the follow-up was sent"},"created_at":{"anyOf":[{"type":"string","format":"date-time"},{"type":"null"}],"title":"Created At","description":"Creation timestamp"}},"type":"object","required":["id","email_id","subject","body_content","attempt"],"title":"FollowUp","description":"Follow-up email schema (shares table with emails)."},"ForkThreadRequest":{"properties":{"messageId":{"type":"string","title":"Messageid"}},"type":"object","required":["messageId"],"title":"ForkThreadRequest"},"GenerateEmailSequenceRequest":{"properties":{"email_template_id":{"type":"string","title":"Email Template Id","description":"Template ID for cold email generation","default":"default"},"followup_template_id":{"type":"string","title":"Followup Template Id","description":"Template ID for follow-up generation","default":"default"},"schedule_only":{"type":"boolean","title":"Schedule Only","description":"If true, only (re)schedule sequence emails and do not generate/update subject/body content","default":false},"deal_workspace_id":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Deal Workspace Id"}},"type":"object","title":"GenerateEmailSequenceRequest"},"GenerateEmailSequenceResponse":{"properties":{"contact_id":{"type":"string","title":"Contact Id"},"emails":{"items":{"$ref":"#/components/schemas/Email"},"type":"array","title":"Emails"},"followups":{"items":{"$ref":"#/components/schemas/FollowUp"},"type":"array","title":"Followups"}},"type":"object","required":["contact_id","emails","followups"],"title":"GenerateEmailSequenceResponse"},"GenerateProjectEmailsRequest":{"properties":{"email_template_id":{"type":"string","title":"Email Template Id","description":"Template ID for cold email generation","default":"default"},"followup_template_id":{"type":"string","title":"Followup Template Id","description":"Template ID for follow-up generation","default":"default"},"deal_workspace_id":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Deal Workspace Id"}},"type":"object","title":"GenerateProjectEmailsRequest"},"GenerateProjectEmailsResponse":{"properties":{"crm_project_id":{"type":"string","title":"Crm Project Id"},"total_contacts":{"type":"integer","title":"Total Contacts"},"emails":{"items":{"$ref":"#/components/schemas/Email"},"type":"array","title":"Emails"},"followups":{"items":{"$ref":"#/components/schemas/FollowUp"},"type":"array","title":"Followups"},"skipped_summary":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Skipped Summary","description":"Who got no drafts and why, in one sentence (\"Skipped 2 contacts who already replied: A, B.\"); none when nobody was skipped."}},"type":"object","required":["crm_project_id","total_contacts","emails","followups"],"title":"GenerateProjectEmailsResponse"},"GenerateSingleSlideRequest":{"properties":{"run_id":{"type":"string","title":"Run Id"},"position":{"type":"integer","minimum":1.0,"title":"Position"},"heading":{"type":"string","minLength":1,"title":"Heading"},"subheading":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Subheading"},"context":{"type":"string","title":"Context","default":""},"previous_layout":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Previous Layout"},"session_id":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Session Id"}},"additionalProperties":false,"type":"object","required":["run_id","position","heading"],"title":"GenerateSingleSlideRequest"},"GeneratedArtifactCategoryResponse":{"properties":{"id":{"type":"string","title":"Id"},"label":{"type":"string","title":"Label"},"visible_in_file_manager":{"type":"boolean","title":"Visible In File Manager","default":true},"visible_in_artifacts":{"type":"boolean","title":"Visible In Artifacts","default":true},"sort_order":{"type":"integer","title":"Sort Order"}},"type":"object","required":["id","label","sort_order"],"title":"GeneratedArtifactCategoryResponse"},"GeneratedArtifactDownloadReference":{"properties":{"entry_id":{"type":"string","title":"Entry Id"},"url":{"type":"string","title":"Url"}},"type":"object","required":["entry_id","url"],"title":"GeneratedArtifactDownloadReference"},"GeneratedArtifactIntentResponse":{"properties":{"artifact_id":{"type":"string","title":"Artifact Id"},"status":{"$ref":"#/components/schemas/GeneratedArtifactStatus"},"upload":{"anyOf":[{"$ref":"#/components/schemas/GeneratedArtifactUploadTarget"},{"type":"null"}]}},"type":"object","required":["artifact_id","status"],"title":"GeneratedArtifactIntentResponse"},"GeneratedArtifactItemResponse":{"properties":{"id":{"type":"string","title":"Id"},"name":{"type":"string","title":"Name"},"type":{"$ref":"#/components/schemas/FileType"},"parent_id":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Parent Id"},"deal_workspace_id":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Deal Workspace Id"},"s3_key":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"S3 Key"},"size":{"anyOf":[{"type":"integer"},{"type":"null"}],"title":"Size","default":0},"mime_type":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Mime Type"},"path":{"type":"string","title":"Path"},"created_at":{"anyOf":[{"type":"string","format":"date-time"},{"type":"null"}],"title":"Created At"},"updated_at":{"anyOf":[{"type":"string","format":"date-time"},{"type":"null"}],"title":"Updated At"},"artifact_id":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Artifact Id"},"category":{"type":"string","title":"Category"},"category_label":{"type":"string","title":"Category Label"}},"type":"object","required":["id","name","type","parent_id","s3_key","mime_type","path","category","category_label"],"title":"GeneratedArtifactItemResponse"},"GeneratedArtifactStatus":{"type":"string","enum":["pending_upload","ready","upload_failed","upload_expired","completion_failed","unavailable","delete_pending","deleted","failed"],"title":"GeneratedArtifactStatus"},"GeneratedArtifactUploadMethod":{"type":"string","enum":["s3_presigned_put"],"title":"GeneratedArtifactUploadMethod"},"GeneratedArtifactUploadTarget":{"properties":{"method":{"$ref":"#/components/schemas/GeneratedArtifactUploadMethod"},"bucket":{"type":"string","title":"Bucket"},"key":{"type":"string","title":"Key"},"url":{"type":"string","title":"Url"},"headers":{"additionalProperties":{"type":"string"},"type":"object","title":"Headers"},"expires_at":{"type":"string","format":"date-time","title":"Expires At"}},"type":"object","required":["method","bucket","key","url","headers","expires_at"],"title":"GeneratedArtifactUploadTarget"},"GeneratedArtifactsResponse":{"properties":{"categories":{"items":{"$ref":"#/components/schemas/GeneratedArtifactCategoryResponse"},"type":"array","title":"Categories"},"items":{"items":{"$ref":"#/components/schemas/GeneratedArtifactItemResponse"},"type":"array","title":"Items"}},"type":"object","required":["categories","items"],"title":"GeneratedArtifactsResponse"},"GmailSendStatus":{"properties":{"connected":{"type":"boolean","title":"Connected"},"account_email":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Account Email"},"required_account_email":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Required Account Email"},"client_id":{"type":"string","title":"Client Id"},"scopes":{"items":{"type":"string"},"type":"array","title":"Scopes"},"daily_cap":{"anyOf":[{"type":"integer"},{"type":"null"}],"title":"Daily Cap"},"sent_today":{"type":"integer","title":"Sent Today"},"cancelled_emails":{"type":"integer","title":"Cancelled Emails","default":0}},"type":"object","required":["connected","account_email","required_account_email","client_id","scopes","daily_cap","sent_today"],"title":"GmailSendStatus"},"GroundingSourceOut":{"properties":{"source_ref":{"type":"string","title":"Source Ref"},"title":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Title"},"content":{"type":"string","title":"Content"},"metadata":{"additionalProperties":true,"type":"object","title":"Metadata"}},"type":"object","required":["source_ref","content"],"title":"GroundingSourceOut","description":"Raw result item in KBRetrievalResult."},"HTTPValidationError":{"properties":{"detail":{"items":{"$ref":"#/components/schemas/ValidationError"},"type":"array","title":"Detail"}},"type":"object","title":"HTTPValidationError"},"Habit":{"properties":{"section":{"type":"string","enum":["tone","greeting","argument","structure","ask","follow_ups","audience","sign_off"],"title":"Section"},"habit":{"type":"string","title":"Habit"},"example":{"type":"string","title":"Example","default":""},"seen":{"type":"integer","minimum":0.0,"title":"Seen","default":0},"language":{"type":"string","title":"Language","default":""}},"type":"object","required":["section","habit"],"title":"Habit"},"HoldEvent":{"properties":{"action":{"type":"string","enum":["held","hold_lifted"],"title":"Action"},"actedAt":{"type":"string","format":"date-time","title":"Actedat"},"actedBy":{"type":"string","title":"Actedby"},"reason":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Reason"}},"type":"object","required":["action","actedAt","actedBy","reason"],"title":"HoldEvent","description":"One step in a request's hold history: when, who, and the reason if one was given. Firm only: the buyer's page never\nshows that a request is held, so no buyer shape carries this."},"HumanInputAnswer":{"properties":{"tool_call_id":{"type":"string","title":"Tool Call Id","description":"The interruption_id from the human_input_required event. The frontend echoes this back as the correlation handle."},"answers":{"anyOf":[{"additionalProperties":true,"type":"object"},{"type":"null"}],"title":"Answers","description":"Structured answers keyed by question text. Each value: {kind: 'option'|'custom'|'multi', value: <label|string|list>}."},"cancelled":{"type":"boolean","title":"Cancelled","description":"True if the user dismissed the dialog without answering.","default":false}},"type":"object","required":["tool_call_id"],"title":"HumanInputAnswer"},"HumanInputAnswerError":{"properties":{"error":{"type":"string","title":"Error"},"code":{"type":"string","enum":["not_parked","interruption_mismatch"],"title":"Code"}},"type":"object","required":["error","code"],"title":"HumanInputAnswerError"},"HumanInputAnswerResponse":{"properties":{"status":{"type":"string","const":"accepted","title":"Status","default":"accepted"},"interruption_id":{"type":"string","title":"Interruption Id","description":"The interruption_id that was resolved."}},"type":"object","required":["interruption_id"],"title":"HumanInputAnswerResponse"},"ImportCompaniesRequest":{"properties":{"companies":{"items":{"$ref":"#/components/schemas/CompanyImportItem"},"type":"array","title":"Companies"}},"type":"object","required":["companies"],"title":"ImportCompaniesRequest"},"ImportCompaniesResponse":{"properties":{"success":{"type":"boolean","title":"Success"},"imported":{"type":"integer","title":"Imported"},"duplicates":{"type":"integer","title":"Duplicates"},"ids":{"items":{"type":"string"},"type":"array","title":"Ids"},"company_item":{"items":{"$ref":"#/components/schemas/ImportedCompanyItem"},"type":"array","title":"Company Item"}},"type":"object","required":["success","imported","duplicates","ids","company_item"],"title":"ImportCompaniesResponse"},"ImportContactsResponse":{"properties":{"success":{"type":"boolean","title":"Success"},"imported":{"type":"integer","title":"Imported"},"duplicates":{"type":"integer","title":"Duplicates"},"skipped":{"type":"integer","title":"Skipped","description":"Rows left out of the import","default":0},"skipped_rows":{"items":{"$ref":"#/components/schemas/ImportSkippedRow"},"type":"array","title":"Skipped Rows","description":"The first skipped rows, with why"},"duplicate_rows":{"items":{"$ref":"#/components/schemas/ImportDuplicateRow"},"type":"array","title":"Duplicate Rows","description":"The first duplicate rows, which the campaign already had or the sheet repeated"},"ids":{"items":{"type":"string"},"type":"array","title":"Ids"},"contacts":{"items":{"$ref":"#/components/schemas/agentic_be__crm__schemas__contact_schemas__Contact"},"type":"array","title":"Contacts"}},"type":"object","required":["success","imported","duplicates","ids","contacts"],"title":"ImportContactsResponse"},"ImportDuplicateRow":{"properties":{"row":{"anyOf":[{"type":"integer"},{"type":"null"}],"title":"Row","description":"The row's number in the sheet, counting the header as row 1"},"name":{"type":"string","title":"Name","description":"The contact's name; empty for a row that only names a company","default":""},"email":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Email"},"company":{"type":"string","title":"Company","default":""},"reason":{"type":"string","title":"Reason","description":"Why the row was left out: already_in_campaign or repeated_in_sheet"},"matched_name":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Matched Name","description":"For already_in_campaign: the name of the campaign contact the row matched"}},"type":"object","required":["reason"],"title":"ImportDuplicateRow"},"ImportFromBuyerlistRequest":{"properties":{"buyerlist_file_entry_id":{"type":"string","minLength":1,"title":"Buyerlist File Entry Id"},"max_buyers":{"anyOf":[{"type":"integer","minimum":1.0},{"type":"null"}],"title":"Max Buyers"}},"type":"object","required":["buyerlist_file_entry_id"],"title":"ImportFromBuyerlistRequest"},"ImportFromBuyerlistResponse":{"properties":{"success":{"type":"boolean","title":"Success"},"imported":{"type":"integer","title":"Imported"},"duplicates":{"type":"integer","title":"Duplicates"},"ids":{"items":{"type":"string"},"type":"array","title":"Ids"},"contacts":{"items":{"$ref":"#/components/schemas/agentic_be__crm__schemas__contact_schemas__Contact"},"type":"array","title":"Contacts"},"buyers_processed":{"type":"integer","title":"Buyers Processed"},"buyers_failed":{"type":"integer","title":"Buyers Failed"},"contacts_found":{"type":"integer","title":"Contacts Found"},"buyer_results":{"items":{"$ref":"#/components/schemas/BuyerlistImportBuyerResult"},"type":"array","title":"Buyer Results"},"buyerlist_file_entry_id":{"type":"string","title":"Buyerlist File Entry Id"}},"type":"object","required":["success","imported","duplicates","ids","contacts","buyers_processed","buyers_failed","contacts_found","buyer_results","buyerlist_file_entry_id"],"title":"ImportFromBuyerlistResponse"},"ImportSkippedRow":{"properties":{"row":{"type":"integer","title":"Row","description":"The row's number in the sheet, counting the header as row 1"},"reason":{"type":"string","title":"Reason"}},"type":"object","required":["row","reason"],"title":"ImportSkippedRow"},"ImportedCompanyItem":{"properties":{"id":{"type":"string","title":"Id","description":"Contact identifier"},"name":{"type":"string","title":"Name","description":"Contact name"},"company_id":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Company Id","description":"Identifier referencing crm.companies"},"company":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Company","description":"Company name (resolved from crm.companies)"},"crm_project_id":{"type":"string","title":"Crm Project Id","description":"Associated CRM project identifier"},"email_name":{"type":"string","title":"Email Name","description":"Email user name"},"email":{"anyOf":[{"type":"string","format":"email"},{"type":"null"}],"title":"Email","description":"Contact email address"},"phone":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Phone","description":"Contact phone number"},"synergy":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Synergy","description":"Synergy data"},"created_at":{"type":"string","format":"date-time","title":"Created At","description":"Creation timestamp"}},"type":"object","required":["id","name","crm_project_id","email_name","created_at"],"title":"ImportedCompanyItem","description":"Imported contact rows created by the company import endpoint."},"InFlightManyRequest":{"properties":{"threadIds":{"items":{"type":"string"},"type":"array","maxItems":200,"minItems":1,"title":"Threadids"}},"type":"object","required":["threadIds"],"title":"InFlightManyRequest"},"InFlightManyResponse":{"properties":{"activeThreadIds":{"items":{"type":"string"},"type":"array","title":"Activethreadids"}},"type":"object","required":["activeThreadIds"],"title":"InFlightManyResponse"},"InFlightTurnResponse":{"properties":{"turnId":{"type":"string","title":"Turnid"},"lastSequence":{"type":"integer","title":"Lastsequence"},"lastEventType":{"type":"string","title":"Lasteventtype"},"startedAtMs":{"type":"integer","title":"Startedatms"},"isComplete":{"type":"boolean","title":"Iscomplete"}},"type":"object","required":["turnId","lastSequence","lastEventType","startedAtMs","isComplete"],"title":"InFlightTurnResponse"},"InboxConversationOut":{"properties":{"id":{"type":"string","format":"uuid","title":"Id"},"user_name":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"User Name"},"user_email":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"User Email"},"user_company":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"User Company"},"has_plan":{"type":"boolean","title":"Has Plan"},"last_message":{"anyOf":[{"$ref":"#/components/schemas/ContactMessageOut"},{"type":"null"}]},"last_message_at":{"type":"string","format":"date-time","title":"Last Message At"},"unread":{"type":"integer","title":"Unread"}},"type":"object","required":["id","user_name","user_email","user_company","has_plan","last_message","last_message_at","unread"],"title":"InboxConversationOut"},"InboxThreadOut":{"properties":{"conversation":{"$ref":"#/components/schemas/InboxConversationOut"},"messages":{"items":{"$ref":"#/components/schemas/ContactMessageOut"},"type":"array","title":"Messages"},"user_read_at":{"anyOf":[{"type":"string","format":"date-time"},{"type":"null"}],"title":"User Read At"}},"type":"object","required":["conversation","messages","user_read_at"],"title":"InboxThreadOut"},"InitConversationRequest":{"properties":{"threadId":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Threadid"},"clientContext":{"anyOf":[{"additionalProperties":true,"type":"object"},{"type":"null"}],"title":"Clientcontext"}},"type":"object","title":"InitConversationRequest"},"IrlCounts":{"properties":{"total":{"type":"integer","title":"Total"},"open":{"type":"integer","title":"Open"},"submitted":{"type":"integer","title":"Submitted"},"accepted":{"type":"integer","title":"Accepted"},"flagged":{"type":"integer","title":"Flagged"},"needsMore":{"type":"integer","title":"Needsmore"}},"type":"object","required":["total","open","submitted","accepted","flagged","needsMore"],"title":"IrlCounts"},"IrlDecision":{"properties":{"decision":{"type":"string","enum":["accepted","reopened"],"title":"Decision"},"reason":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Reason"},"actedBy":{"type":"string","title":"Actedby"},"actedAt":{"type":"string","format":"date-time","title":"Actedat"}},"type":"object","required":["decision","reason","actedBy","actedAt"],"title":"IrlDecision"},"IrlItem":{"properties":{"id":{"type":"string","title":"Id"},"number":{"type":"string","title":"Number"},"requestText":{"type":"string","title":"Requesttext"},"category":{"type":"string","title":"Category"},"pic":{"type":"string","title":"Pic"},"clientNote":{"type":"string","title":"Clientnote"},"internalNote":{"type":"string","title":"Internalnote"},"dueDate":{"anyOf":[{"type":"string","format":"date"},{"type":"null"}],"title":"Duedate"},"reference":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Reference"},"addedFrom":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Addedfrom"},"createdAt":{"type":"string","format":"date-time","title":"Createdat"},"shared":{"type":"boolean","title":"Shared"},"status":{"type":"string","enum":["open","submitted","accepted"],"title":"Status"},"reopenReason":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Reopenreason"},"answers":{"items":{"$ref":"#/components/schemas/Answer"},"type":"array","title":"Answers"},"answerComparisons":{"additionalProperties":{"$ref":"#/components/schemas/FirmComparison"},"type":"object","title":"Answercomparisons","default":{}},"notes":{"items":{"$ref":"#/components/schemas/Note"},"type":"array","title":"Notes"},"linkedBuyerRequests":{"items":{"$ref":"#/components/schemas/LinkedBuyerRequest"},"type":"array","title":"Linkedbuyerrequests"},"reviewStatus":{"anyOf":[{"type":"string","enum":["reviewed","toBeUpdated","inDiscussion","needsSignOff"]},{"type":"null"}],"title":"Reviewstatus"},"reviewStatusBy":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Reviewstatusby"},"reviewStatusAt":{"anyOf":[{"type":"string","format":"date-time"},{"type":"null"}],"title":"Reviewstatusat"},"reviewHistory":{"items":{"$ref":"#/components/schemas/ReviewEvent"},"type":"array","title":"Reviewhistory"},"decisions":{"items":{"$ref":"#/components/schemas/IrlDecision"},"type":"array","title":"Decisions"},"newClientNote":{"type":"boolean","title":"Newclientnote","description":"The client wrote a note on an accepted item after the firm last acted on it (its Accept or a firm note). The client\ncannot answer an accepted item again, so a note is how they ask to change it, and nothing else would show it.","readOnly":true},"acceptedWithoutAnswer":{"type":"boolean","title":"Acceptedwithoutanswer","description":"The firm may accept a request whose document arrived outside the portal; the list marks it so it is not mistaken for a client answer.","readOnly":true}},"type":"object","required":["id","number","requestText","category","pic","clientNote","internalNote","dueDate","createdAt","shared","status","reopenReason","answers","notes","linkedBuyerRequests","newClientNote","acceptedWithoutAnswer"],"title":"IrlItem"},"IrlItemPatch":{"properties":{"requestText":{"anyOf":[{"type":"string","minLength":1},{"type":"null"}],"title":"Requesttext"},"pic":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Pic"},"clientNote":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Clientnote"},"internalNote":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Internalnote"},"category":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Category"},"dueDate":{"anyOf":[{"type":"string","format":"date"},{"type":"null"}],"title":"Duedate"},"reference":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Reference"},"reviewStatus":{"anyOf":[{"type":"string","enum":["reviewed","toBeUpdated","inDiscussion","needsSignOff"]},{"type":"null"}],"title":"Reviewstatus"}},"type":"object","title":"IrlItemPatch"},"IrlItemRef":{"properties":{"id":{"type":"string","title":"Id"},"number":{"type":"string","title":"Number"},"status":{"type":"string","enum":["open","submitted","accepted"],"title":"Status"}},"type":"object","required":["id","number","status"],"title":"IrlItemRef"},"IrlProject":{"properties":{"id":{"type":"string","title":"Id"},"name":{"type":"string","title":"Name"},"clientName":{"type":"string","title":"Clientname"},"context":{"type":"string","title":"Context"},"clientBriefing":{"type":"string","title":"Clientbriefing"},"status":{"type":"string","enum":["draft","published"],"title":"Status"},"publicUrl":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Publicurl"},"firmName":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Firmname"},"counts":{"$ref":"#/components/schemas/IrlCounts"},"sections":{"items":{"$ref":"#/components/schemas/IrlSection"},"type":"array","title":"Sections"}},"type":"object","required":["id","name","clientName","context","clientBriefing","status","publicUrl","firmName","counts","sections"],"title":"IrlProject"},"IrlProjectPatch":{"properties":{"name":{"anyOf":[{"type":"string","minLength":1},{"type":"null"}],"title":"Name"},"clientName":{"anyOf":[{"type":"string","minLength":1},{"type":"null"}],"title":"Clientname"},"context":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Context"},"clientBriefing":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Clientbriefing"}},"type":"object","title":"IrlProjectPatch"},"IrlProjectSummary":{"properties":{"id":{"type":"string","title":"Id"},"name":{"type":"string","title":"Name"},"clientName":{"type":"string","title":"Clientname"},"status":{"type":"string","enum":["draft","published"],"title":"Status"},"counts":{"$ref":"#/components/schemas/IrlCounts"},"updatedAt":{"type":"string","format":"date-time","title":"Updatedat"}},"type":"object","required":["id","name","clientName","status","counts","updatedAt"],"title":"IrlProjectSummary"},"IrlSection":{"properties":{"id":{"type":"string","title":"Id"},"number":{"type":"string","title":"Number"},"title":{"type":"string","title":"Title"},"items":{"items":{"$ref":"#/components/schemas/IrlItem"},"type":"array","title":"Items"}},"type":"object","required":["id","number","title","items"],"title":"IrlSection"},"JobResponse":{"properties":{"job_id":{"type":"string","title":"Job Id"},"status":{"type":"string","title":"Status"},"file_name":{"type":"string","title":"File Name"}},"type":"object","required":["job_id","status","file_name"],"title":"JobResponse"},"JobStatusResponse":{"properties":{"id":{"type":"string","title":"Id"},"document_id":{"type":"string","title":"Document Id"},"file_name":{"type":"string","title":"File Name"},"status":{"type":"string","title":"Status"},"progress":{"type":"string","pattern":"^(?!^[-+.]*$)[+-]?0*\\d*\\.?\\d*$","title":"Progress"},"error":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Error"},"stage_details":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Stage Details"},"created_at":{"type":"string","format":"date-time","title":"Created At"},"updated_at":{"type":"string","format":"date-time","title":"Updated At"}},"type":"object","required":["id","document_id","file_name","status","progress","created_at","updated_at"],"title":"JobStatusResponse"},"KBRetrievalResult":{"properties":{"content_str":{"type":"string","title":"Content Str"},"sources":{"items":{"type":"string"},"type":"array","title":"Sources"},"raw_results":{"items":{"$ref":"#/components/schemas/GroundingSourceOut"},"type":"array","title":"Raw Results"},"query_config":{"items":{"$ref":"#/components/schemas/QueryConfigEntry"},"type":"array","title":"Query Config"},"mode":{"type":"string","title":"Mode"},"director_reasoning":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Director Reasoning"},"director_fallback_used":{"type":"boolean","title":"Director Fallback Used","default":false},"injected_kb":{"type":"boolean","title":"Injected Kb","default":false},"external_sources_queried":{"items":{"type":"string"},"type":"array","title":"External Sources Queried"},"failed_sources":{"items":{"type":"string"},"type":"array","title":"Failed Sources"},"kb_id":{"type":"string","title":"Kb Id"},"workspace_id":{"type":"string","title":"Workspace Id"},"query_id":{"type":"string","title":"Query Id"},"generation":{"type":"integer","title":"Generation","default":1},"retrieval_ms":{"type":"integer","title":"Retrieval Ms"},"bundle_source_count":{"type":"integer","title":"Bundle Source Count"}},"type":"object","required":["content_str","sources","raw_results","query_config","mode","kb_id","workspace_id","query_id","retrieval_ms","bundle_source_count"],"title":"KBRetrievalResult","description":"Complete grounded retrieval result response."},"KnowledgeBaseListResponse":{"properties":{"documents":{"items":{"$ref":"#/components/schemas/DocumentResponse"},"type":"array","title":"Documents"},"total_count":{"type":"integer","title":"Total Count"},"limit":{"type":"integer","title":"Limit"},"offset":{"type":"integer","title":"Offset"}},"type":"object","required":["documents","total_count","limit","offset"],"title":"KnowledgeBaseListResponse"},"LanguageUse":{"properties":{"language":{"type":"string","title":"Language"},"mails":{"type":"integer","minimum":0.0,"title":"Mails","default":0},"note":{"type":"string","title":"Note","default":""}},"type":"object","required":["language"],"title":"LanguageUse"},"LatestJob":{"properties":{"contact_id":{"type":"string","title":"Contact Id"},"kind":{"type":"string","enum":["research","personalize"],"title":"Kind"},"state":{"type":"string","enum":["queued","running","done","failed"],"title":"State"},"error":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Error"},"created_at":{"type":"string","format":"date-time","title":"Created At"}},"type":"object","required":["contact_id","kind","state","error","created_at"],"title":"LatestJob"},"LatestJobsResponse":{"properties":{"jobs":{"items":{"$ref":"#/components/schemas/LatestJob"},"type":"array","title":"Jobs"}},"type":"object","required":["jobs"],"title":"LatestJobsResponse"},"LinkedAnswerComparison":{"properties":{"itemNumber":{"type":"string","title":"Itemnumber"},"result":{"anyOf":[{"type":"string","enum":["differs","consistent","nothing_to_compare","failed","comparing"]},{"type":"null"}],"title":"Result"},"message":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Message"}},"type":"object","required":["itemNumber","result","message"],"title":"LinkedAnswerComparison","description":"How the newest client answer of a linked IRL item reads against the firm's own records, for the buyer request's drawer.\n`result` is None while the answer has no comparison yet. Firm only."},"LinkedAnswerDifference":{"properties":{"itemNumber":{"type":"string","title":"Itemnumber"},"message":{"type":"string","title":"Message"}},"type":"object","required":["itemNumber","message"],"title":"LinkedAnswerDifference","description":"A linked IRL item whose newest client answer differs from what the firm already holds. Firm only."},"LinkedBuyerRequest":{"properties":{"buyerId":{"type":"string","title":"Buyerid"},"buyerName":{"type":"string","title":"Buyername"},"code":{"type":"string","title":"Code"}},"type":"object","required":["buyerId","buyerName","code"],"title":"LinkedBuyerRequest"},"ListCompanyEmailsResponse":{"properties":{"emails":{"items":{"$ref":"#/components/schemas/CompanyEmailDetail"},"type":"array","title":"Emails"}},"type":"object","required":["emails"],"title":"ListCompanyEmailsResponse"},"ListContactsResponse":{"properties":{"message":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Message","description":"Optional status message when no contacts exist for a project"},"total":{"type":"integer","title":"Total","default":0},"page":{"anyOf":[{"type":"integer"},{"type":"null"}],"title":"Page","description":"Current page number if paginated"},"page_size":{"anyOf":[{"type":"integer"},{"type":"null"}],"title":"Page Size","description":"Page size limit if paginated"},"total_pages":{"anyOf":[{"type":"integer"},{"type":"null"}],"title":"Total Pages","description":"Total number of pages if paginated"},"contacts":{"items":{"$ref":"#/components/schemas/agentic_be__crm__schemas__contact_schemas__Contact"},"type":"array","title":"Contacts"}},"type":"object","required":["contacts"],"title":"ListContactsResponse"},"MailOverlapRequest":{"properties":{"contact_ids":{"items":{"type":"string"},"type":"array","title":"Contact Ids","description":"The contacts about to be mailed or scheduled"}},"type":"object","required":["contact_ids"],"title":"MailOverlapRequest"},"MailOverlapResponse":{"properties":{"affected":{"items":{"$ref":"#/components/schemas/ContactMailOverlap"},"type":"array","title":"Affected","description":"Only the contacts that have something to warn about"}},"type":"object","required":["affected"],"title":"MailOverlapResponse"},"MailTemplate":{"properties":{"kind":{"type":"string","title":"Kind"},"language":{"type":"string","title":"Language","default":""},"when":{"type":"string","title":"When","default":""},"text":{"type":"string","title":"Text"}},"type":"object","required":["kind","text"],"title":"MailTemplate","description":"One kind of mail they send, as a starting point: their own sentences, with [slots] for this deal's facts."},"ManagerSkill":{"properties":{"id":{"type":"string","title":"Id"},"slug":{"type":"string","title":"Slug"},"name":{"type":"string","title":"Name"},"description":{"type":"string","title":"Description"},"prompt":{"type":"string","title":"Prompt"},"enabled":{"type":"boolean","title":"Enabled","default":true},"use_count":{"type":"integer","title":"Use Count","default":0},"built_in":{"type":"boolean","title":"Built In","default":false},"created_at":{"type":"string","format":"date-time","title":"Created At"},"updated_at":{"type":"string","format":"date-time","title":"Updated At"}},"type":"object","required":["id","slug","name","description","prompt","created_at","updated_at"],"title":"ManagerSkill"},"MemoryListItem":{"properties":{"id":{"type":"string","title":"Id"},"scope":{"type":"string","enum":["deal","user"],"title":"Scope"},"type":{"type":"string","enum":["about_you","feedback","deal_fact","where_to_find"],"title":"Type"},"title":{"type":"string","title":"Title"},"description":{"type":"string","title":"Description"},"origin":{"type":"string","enum":["person","assistant"],"title":"Origin"},"author_user_id":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Author User Id"},"legacy_category":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Legacy Category"},"status":{"type":"string","enum":["active","archived"],"title":"Status"},"as_of":{"anyOf":[{"type":"string","format":"date"},{"type":"null"}],"title":"As Of"},"may_repeat_id":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"May Repeat Id"},"conflicts_with_id":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Conflicts With Id"},"updated_at":{"type":"string","format":"date-time","title":"Updated At"},"created_at":{"type":"string","format":"date-time","title":"Created At"}},"type":"object","required":["id","scope","type","title","description","origin","status","updated_at","created_at"],"title":"MemoryListItem","description":"A memory as the list shows it: the index line and who wrote it, without the document."},"MemorySource":{"properties":{"kind":{"type":"string","enum":["chat","document","link","note"],"title":"Kind"},"ref":{"type":"string","title":"Ref"},"label":{"type":"string","title":"Label","default":""}},"type":"object","required":["kind","ref"],"title":"MemorySource"},"MessageContextIn":{"properties":{"kind":{"type":"string","const":"workspace","title":"Kind"},"workspace_id":{"type":"string","format":"uuid","title":"Workspace Id"}},"type":"object","required":["kind","workspace_id"],"title":"MessageContextIn","description":"Where the customer was when they wrote: one of their workspaces (checked against them on the way in)."},"MessageContextOut":{"properties":{"kind":{"type":"string","const":"workspace","title":"Kind"},"label":{"type":"string","title":"Label"}},"type":"object","required":["kind","label"],"title":"MessageContextOut"},"MoveContactsRequest":{"properties":{"contact_ids":{"items":{"type":"string"},"type":"array","title":"Contact Ids","description":"Contacts to move"},"target_crm_project_id":{"type":"string","title":"Target Crm Project Id","description":"Campaign the contacts move into"},"deal_workspace_id":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Deal Workspace Id"}},"type":"object","required":["contact_ids","target_crm_project_id"],"title":"MoveContactsRequest","description":"Request schema for moving contacts to another campaign in the same workspace."},"MoveContactsResponse":{"properties":{"moved_count":{"type":"integer","title":"Moved Count"},"skipped_count":{"type":"integer","title":"Skipped Count"},"failed_count":{"type":"integer","title":"Failed Count"},"message":{"type":"string","title":"Message","description":"Summary message"},"results":{"items":{"$ref":"#/components/schemas/MoveContactsResult"},"type":"array","title":"Results","description":"Per-contact outcomes"}},"type":"object","required":["moved_count","skipped_count","failed_count","message","results"],"title":"MoveContactsResponse"},"MoveContactsResult":{"properties":{"contact_id":{"type":"string","title":"Contact Id","description":"Contact identifier"},"status":{"type":"string","title":"Status","description":"moved | skipped | failed"},"message":{"type":"string","title":"Message","description":"Human-readable result message"}},"type":"object","required":["contact_id","status","message"],"title":"MoveContactsResult"},"MoveThreadRequest":{"properties":{"dealWorkspaceId":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Dealworkspaceid"}},"type":"object","required":["dealWorkspaceId"],"title":"MoveThreadRequest"},"NewBuyerBody":{"properties":{"name":{"type":"string","minLength":1,"title":"Name"},"kind":{"type":"string","title":"Kind","default":""},"language":{"type":"string","title":"Language","default":"en"},"dealLabel":{"type":"string","minLength":1,"title":"Deallabel","default":"Due diligence requests"}},"type":"object","required":["name"],"title":"NewBuyerBody"},"NewContactBody":{"properties":{"name":{"type":"string","minLength":1,"title":"Name"},"email":{"type":"string","minLength":1,"title":"Email"},"role":{"type":"string","title":"Role","default":""},"receivesSummary":{"type":"boolean","title":"Receivessummary","default":false},"ccSummary":{"type":"boolean","title":"Ccsummary","default":false},"picValues":{"items":{"type":"string"},"type":"array","title":"Picvalues","default":[]}},"type":"object","required":["name","email"],"title":"NewContactBody"},"NewFirmNoteBody":{"properties":{"body":{"type":"string","minLength":1,"title":"Body"},"visibility":{"type":"string","enum":["internal","shared"],"title":"Visibility"}},"type":"object","required":["body","visibility"],"title":"NewFirmNoteBody"},"NewOutsideNoteBody":{"properties":{"body":{"type":"string","maxLength":10000,"minLength":1,"title":"Body"}},"type":"object","required":["body"],"title":"NewOutsideNoteBody"},"NewPublicRequestBody":{"properties":{"requestText":{"type":"string","maxLength":2000,"minLength":1,"title":"Requesttext"}},"type":"object","required":["requestText"],"title":"NewPublicRequestBody"},"Note":{"properties":{"id":{"type":"string","title":"Id"},"body":{"type":"string","title":"Body"},"author":{"type":"string","enum":["firm","client","buyer","assistant"],"title":"Author"},"visibility":{"type":"string","enum":["internal","shared"],"title":"Visibility"},"createdAt":{"type":"string","format":"date-time","title":"Createdat"},"sources":{"items":{"$ref":"#/components/schemas/Source"},"type":"array","title":"Sources","default":[]}},"type":"object","required":["id","body","author","visibility","createdAt"],"title":"Note","description":"A running note as the firm sees it, with the sources it was written from."},"NoteRequest":{"properties":{"text":{"type":"string","maxLength":2000,"minLength":1,"title":"Text"}},"type":"object","required":["text"],"title":"NoteRequest"},"NoteResponse":{"properties":{"id":{"type":"integer","title":"Id"},"crm_project_id":{"type":"string","title":"Crm Project Id"},"deal_workspace_id":{"type":"string","title":"Deal Workspace Id"},"title":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Title"},"content":{"type":"string","title":"Content"},"created_by":{"type":"integer","title":"Created By"},"created_at":{"type":"string","format":"date-time","title":"Created At"},"updated_at":{"anyOf":[{"type":"string","format":"date-time"},{"type":"null"}],"title":"Updated At"},"is_pinned":{"type":"boolean","title":"Is Pinned","default":false}},"type":"object","required":["id","crm_project_id","deal_workspace_id","content","created_by","created_at"],"title":"NoteResponse"},"OfferedFile":{"properties":{"fileId":{"type":"string","title":"Fileid"},"filename":{"type":"string","title":"Filename"},"origin":{"type":"string","enum":["client","team"],"title":"Origin"}},"type":"object","required":["fileId","filename","origin"],"title":"OfferedFile"},"OpenJob":{"properties":{"contact_id":{"type":"string","title":"Contact Id"},"kind":{"type":"string","enum":["research","personalize"],"title":"Kind"},"state":{"type":"string","enum":["queued","running"],"title":"State"}},"type":"object","required":["contact_id","kind","state"],"title":"OpenJob"},"OpenJobsResponse":{"properties":{"jobs":{"items":{"$ref":"#/components/schemas/OpenJob"},"type":"array","title":"Jobs"}},"type":"object","required":["jobs"],"title":"OpenJobsResponse"},"OtherCampaignMail":{"properties":{"campaign_id":{"type":"string","title":"Campaign Id"},"campaign_name":{"type":"string","title":"Campaign Name"},"mail_type":{"type":"string","title":"Mail Type","description":"COLD-MAIL, FOLLOW-UP-1 and so on"},"status":{"type":"string","enum":["sent","queued","planned"],"title":"Status"},"date":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Date","description":"When it was sent, or is due to go out, as the CRM writes times (+07:00)"}},"type":"object","required":["campaign_id","campaign_name","mail_type","status","date"],"title":"OtherCampaignMail"},"OutboundEdit":{"properties":{"subject":{"anyOf":[{"type":"string","minLength":1},{"type":"null"}],"title":"Subject"},"firmMessage":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Firmmessage"}},"type":"object","title":"OutboundEdit"},"OutboundEmail":{"properties":{"id":{"type":"string","title":"Id"},"kind":{"type":"string","enum":["summary","reminder"],"title":"Kind"},"recipientEmail":{"type":"string","title":"Recipientemail"},"recipientName":{"type":"string","title":"Recipientname"},"cc":{"items":{"type":"string"},"type":"array","title":"Cc"},"subject":{"type":"string","title":"Subject"},"firmMessage":{"type":"string","title":"Firmmessage"},"html":{"type":"string","title":"Html"},"text":{"type":"string","title":"Text"},"status":{"type":"string","enum":["waiting_review","sending","sent","skipped","failed","cancelled"],"title":"Status"},"statusReason":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Statusreason"},"approvedBy":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Approvedby"},"createdAt":{"type":"string","format":"date-time","title":"Createdat"},"sentAt":{"anyOf":[{"type":"string","format":"date-time"},{"type":"null"}],"title":"Sentat"},"error":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Error"}},"type":"object","required":["id","kind","recipientEmail","recipientName","cc","subject","firmMessage","html","text","status","statusReason","approvedBy","createdAt","sentAt","error"],"title":"OutboundEmail"},"PauseScheduleResponse":{"properties":{"success":{"type":"boolean","title":"Success"},"contact_id":{"type":"string","title":"Contact Id"},"paused_count":{"type":"integer","title":"Paused Count"},"already_paused_count":{"anyOf":[{"type":"integer"},{"type":"null"}],"title":"Already Paused Count"},"revoked_tasks_count":{"anyOf":[{"type":"integer"},{"type":"null"}],"title":"Revoked Tasks Count"},"message":{"type":"string","title":"Message"}},"type":"object","required":["success","contact_id","paused_count","message"],"title":"PauseScheduleResponse"},"Phrase":{"properties":{"phrase":{"type":"string","title":"Phrase"},"seen":{"type":"integer","minimum":0.0,"title":"Seen","default":0},"language":{"type":"string","title":"Language","default":""}},"type":"object","required":["phrase"],"title":"Phrase"},"PinNoteRequest":{"properties":{"is_pinned":{"type":"boolean","title":"Is Pinned"},"deal_workspace_id":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Deal Workspace Id"}},"type":"object","required":["is_pinned"],"title":"PinNoteRequest"},"PlanOffer":{"properties":{"key":{"type":"string","title":"Key"},"name":{"type":"string","title":"Name"},"price_usd_cents":{"type":"integer","title":"Price Usd Cents"},"billing_months":{"type":"integer","title":"Billing Months"}},"type":"object","required":["key","name","price_usd_cents","billing_months"],"title":"PlanOffer"},"PollAnswer":{"properties":{"status":{"type":"string","enum":["pending","approved","cancelled","expired"],"title":"Status"},"token":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Token"},"email":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Email"}},"type":"object","required":["status"],"title":"PollAnswer"},"PollBody":{"properties":{"device_secret":{"type":"string","maxLength":256,"minLength":32,"title":"Device Secret"}},"type":"object","required":["device_secret"],"title":"PollBody"},"ProfileChanges":{"properties":{"name":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Name"},"role":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Role"},"sign_off":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Sign Off"},"writing_guide":{"anyOf":[{"$ref":"#/components/schemas/WritingGuide"},{"type":"null"}]},"writing_voice":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Writing Voice"}},"type":"object","title":"ProfileChanges"},"ProfileView":{"properties":{"name":{"type":"string","title":"Name"},"role":{"type":"string","title":"Role"},"sign_off":{"type":"string","title":"Sign Off"},"writing_voice":{"type":"string","title":"Writing Voice"},"writing_guide":{"anyOf":[{"$ref":"#/components/schemas/WritingGuide"},{"type":"null"}]},"written_by_person":{"type":"boolean","title":"Written By Person"},"examples":{"items":{"type":"string"},"type":"array","title":"Examples"},"mails_learned":{"type":"integer","title":"Mails Learned"},"updated_at":{"anyOf":[{"type":"string","format":"date-time"},{"type":"null"}],"title":"Updated At"}},"type":"object","required":["name","role","sign_off","writing_voice","writing_guide","written_by_person","examples","mails_learned","updated_at"],"title":"ProfileView"},"Project":{"properties":{"id":{"type":"string","format":"uuid","title":"Id"},"deal_workspace_id":{"type":"string","format":"uuid","title":"Deal Workspace Id","description":"DealWorkspace that owns this project"},"batch_id":{"anyOf":[{"type":"string","format":"uuid"},{"type":"null"}],"title":"Batch Id","description":"Optional immutable CRM batch that organizes this project"},"name":{"type":"string","title":"Name","description":"Project name"},"status":{"$ref":"#/components/schemas/ProjectStatus","description":"Project status","default":"opportunity"},"info":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Info","description":"Additional information about the project"},"size":{"anyOf":[{"type":"number"},{"type":"null"}],"title":"Size","description":"Project size value, currency agnostic"},"is_linked":{"type":"boolean","title":"Is Linked","description":"Whether the project is linked to a folder","default":false},"is_pinned":{"type":"boolean","title":"Is Pinned","description":"Whether the project is pinned","default":false},"linked_file_entry_id":{"anyOf":[{"type":"string","format":"uuid"},{"type":"null"}],"title":"Linked File Entry Id","description":"PostgreSQL file entry folder ID that the project is linked to"},"legacy_linked_folder":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Legacy Linked Folder","description":"Legacy linked folder string retained for migrated records only"},"current_price":{"anyOf":[{"type":"number"},{"type":"null"}],"title":"Current Price","description":"Current price of the project"},"success_fee_percent":{"anyOf":[{"type":"number"},{"type":"null"}],"title":"Success Fee Percent","description":"Success fee percentage for the project"},"sequence_length":{"type":"integer","title":"Sequence Length","description":"Number of email steps in the campaign sequence (1–5)","default":5},"template_cold_mail":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Template Cold Mail","description":"Cold outreach email template for the project"},"template_follow_up_1":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Template Follow Up 1","description":"1st follow-up email template"},"template_follow_up_2":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Template Follow Up 2","description":"2nd follow-up email template"},"template_follow_up_3":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Template Follow Up 3","description":"3rd follow-up email template"},"template_follow_up_4":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Template Follow Up 4","description":"4th follow-up email template"},"buyers_without_contacts":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Buyers Without Contacts","description":"JSON string containing list of buyers without contacts"},"created_at":{"type":"string","format":"date-time","title":"Created At","description":"Creation timestamp"},"updated_at":{"type":"string","format":"date-time","title":"Updated At","description":"Last update timestamp"}},"type":"object","required":["deal_workspace_id","name"],"title":"Project"},"ProjectBatchCreate":{"properties":{"name":{"type":"string","title":"Name"}},"type":"object","required":["name"],"title":"ProjectBatchCreate"},"ProjectBatchResponse":{"properties":{"id":{"type":"string","format":"uuid","title":"Id"},"deal_workspace_id":{"type":"string","format":"uuid","title":"Deal Workspace Id"},"name":{"type":"string","title":"Name"},"created_at":{"type":"string","format":"date-time","title":"Created At"},"updated_at":{"type":"string","format":"date-time","title":"Updated At"}},"type":"object","required":["id","deal_workspace_id","name","created_at","updated_at"],"title":"ProjectBatchResponse"},"ProjectBatchUpdate":{"properties":{"name":{"type":"string","title":"Name"}},"type":"object","required":["name"],"title":"ProjectBatchUpdate"},"ProjectCreate":{"properties":{"deal_workspace_id":{"anyOf":[{"type":"string","format":"uuid"},{"type":"null"}],"title":"Deal Workspace Id"},"batch_id":{"anyOf":[{"type":"string","format":"uuid"},{"type":"null"}],"title":"Batch Id"},"name":{"type":"string","title":"Name"},"sequence_length":{"type":"integer","maximum":5.0,"minimum":1.0,"title":"Sequence Length","description":"Number of email steps (1–5)","default":5},"status":{"$ref":"#/components/schemas/ProjectStatus","default":"opportunity"},"info":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Info"},"size":{"anyOf":[{"type":"number"},{"type":"null"}],"title":"Size"},"is_linked":{"anyOf":[{"type":"boolean"},{"type":"null"}],"title":"Is Linked","default":false},"is_pinned":{"anyOf":[{"type":"boolean"},{"type":"null"}],"title":"Is Pinned","default":false},"linked_file_entry_id":{"anyOf":[{"type":"string","format":"uuid"},{"type":"null"}],"title":"Linked File Entry Id"},"legacy_linked_folder":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Legacy Linked Folder"},"current_price":{"anyOf":[{"type":"number"},{"type":"null"}],"title":"Current Price"},"success_fee_percent":{"anyOf":[{"type":"number"},{"type":"null"}],"title":"Success Fee Percent"}},"type":"object","required":["name"],"title":"ProjectCreate"},"ProjectDuplicateTemplateRequest":{"properties":{"name":{"type":"string","title":"Name"},"batch_id":{"anyOf":[{"type":"string","format":"uuid"},{"type":"null"}],"title":"Batch Id"}},"type":"object","required":["name"],"title":"ProjectDuplicateTemplateRequest"},"ProjectSequenceTemplateResponse":{"properties":{"crm_project_id":{"type":"string","title":"Crm Project Id"},"synergy_enabled":{"type":"boolean","title":"Synergy Enabled"},"contacts_updated":{"type":"integer","title":"Contacts Updated"},"updated_emails":{"type":"integer","title":"Updated Emails"},"results":{"items":{"$ref":"#/components/schemas/ContactSequenceTemplateResponse"},"type":"array","title":"Results"}},"type":"object","required":["crm_project_id","synergy_enabled","contacts_updated","updated_emails"],"title":"ProjectSequenceTemplateResponse"},"ProjectStatsResponse":{"properties":{"total_contacts":{"type":"integer","title":"Total Contacts"},"company_only_count":{"type":"integer","title":"Company Only Count"},"suggestions_to_review":{"type":"integer","title":"Suggestions To Review","default":0},"personalize_ready":{"type":"integer","title":"Personalize Ready","default":0},"personalize_skipped_replied_or_dropped":{"type":"integer","title":"Personalize Skipped Replied Or Dropped","default":0},"personalize_skipped_no_email":{"type":"integer","title":"Personalize Skipped No Email","default":0}},"type":"object","required":["total_contacts","company_only_count"],"title":"ProjectStatsResponse"},"ProjectStatus":{"type":"string","enum":["opportunity","live","closed","dropped","deleted"],"title":"ProjectStatus"},"ProjectUpdate":{"properties":{"deal_workspace_id":{"anyOf":[{"type":"string","format":"uuid"},{"type":"null"}],"title":"Deal Workspace Id"},"name":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Name"},"status":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Status"},"info":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Info"},"size":{"anyOf":[{"type":"number"},{"type":"null"}],"title":"Size"},"is_linked":{"anyOf":[{"type":"boolean"},{"type":"null"}],"title":"Is Linked"},"is_pinned":{"anyOf":[{"type":"boolean"},{"type":"null"}],"title":"Is Pinned"},"linked_file_entry_id":{"anyOf":[{"type":"string","format":"uuid"},{"type":"null"}],"title":"Linked File Entry Id"},"legacy_linked_folder":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Legacy Linked Folder"},"current_price":{"anyOf":[{"type":"number"},{"type":"null"}],"title":"Current Price"},"success_fee_percent":{"anyOf":[{"type":"number"},{"type":"null"}],"title":"Success Fee Percent"}},"additionalProperties":false,"type":"object","title":"ProjectUpdate"},"PublicAnswer":{"properties":{"id":{"type":"string","title":"Id"},"body":{"type":"string","title":"Body"},"files":{"items":{"$ref":"#/components/schemas/AnswerFile"},"type":"array","title":"Files"},"checkLevel":{"anyOf":[{"type":"string","enum":["ok","partial","unclear"]},{"type":"null"}],"title":"Checklevel"},"checkMessage":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Checkmessage"},"clientReason":{"anyOf":[{"$ref":"#/components/schemas/ClientReason"},{"type":"null"}]},"createdAt":{"type":"string","format":"date-time","title":"Createdat"},"checkSuperseded":{"type":"boolean","title":"Checksuperseded","default":false}},"type":"object","required":["id","body","files","checkLevel","checkMessage","clientReason","createdAt"],"title":"PublicAnswer","description":"An answer as the client's page and the client's assistant read it. When the firm sent the request back, the check of\nthe earlier answer no longer describes the request: its level and message are left out and `check_superseded` says why, so\nthe firm's reason is the only word on the item."},"PublicBuyer":{"properties":{"buyerName":{"type":"string","title":"Buyername"},"dealLabel":{"type":"string","title":"Deallabel"},"firmName":{"type":"string","title":"Firmname"},"counts":{"$ref":"#/components/schemas/PublicBuyerCounts"},"requests":{"items":{"$ref":"#/components/schemas/PublicBuyerRequest"},"type":"array","title":"Requests"}},"type":"object","required":["buyerName","dealLabel","firmName","counts","requests"],"title":"PublicBuyer"},"PublicBuyerCounts":{"properties":{"total":{"type":"integer","title":"Total"},"answered":{"type":"integer","title":"Answered"},"partlyAnswered":{"type":"integer","title":"Partlyanswered"}},"type":"object","required":["total","answered","partlyAnswered"],"title":"PublicBuyerCounts","description":"`answered` counts full releases only; `partly_answered` the partial ones. The rest of `total` is in progress."},"PublicBuyerRequest":{"properties":{"code":{"type":"string","title":"Code"},"requestText":{"type":"string","title":"Requesttext"},"source":{"type":"string","enum":["list","link"],"title":"Source"},"status":{"type":"string","enum":["answered","partly_answered","in_progress"],"title":"Status"},"release":{"anyOf":[{"$ref":"#/components/schemas/PublicRelease"},{"type":"null"}]},"withdrawnAt":{"anyOf":[{"type":"string","format":"date-time"},{"type":"null"}],"title":"Withdrawnat"},"notes":{"items":{"$ref":"#/components/schemas/PublicNote"},"type":"array","title":"Notes"}},"type":"object","required":["code","requestText","source","status","release","withdrawnAt","notes"],"title":"PublicBuyerRequest"},"PublicIrl":{"properties":{"projectName":{"type":"string","title":"Projectname"},"clientName":{"type":"string","title":"Clientname"},"firmName":{"type":"string","title":"Firmname"},"language":{"type":"string","enum":["vi","en"],"title":"Language"},"counts":{"$ref":"#/components/schemas/IrlCounts"},"sections":{"items":{"$ref":"#/components/schemas/PublicIrlSection"},"type":"array","title":"Sections"},"stateCounts":{"$ref":"#/components/schemas/ClientStateCounts","readOnly":true}},"type":"object","required":["projectName","clientName","firmName","language","counts","sections","stateCounts"],"title":"PublicIrl"},"PublicIrlItem":{"properties":{"id":{"type":"string","title":"Id"},"number":{"type":"string","title":"Number"},"requestText":{"type":"string","title":"Requesttext"},"pic":{"type":"string","title":"Pic"},"clientNote":{"type":"string","title":"Clientnote"},"dueDate":{"anyOf":[{"type":"string","format":"date"},{"type":"null"}],"title":"Duedate"},"status":{"type":"string","enum":["open","submitted","accepted"],"title":"Status"},"reopenReason":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Reopenreason"},"answers":{"items":{"$ref":"#/components/schemas/PublicAnswer"},"type":"array","title":"Answers"},"notes":{"items":{"$ref":"#/components/schemas/PublicNote"},"type":"array","title":"Notes"},"clientState":{"type":"string","enum":["accepted","waiting","needsMore","notStarted"],"title":"Clientstate","readOnly":true}},"type":"object","required":["id","number","requestText","pic","clientNote","dueDate","status","reopenReason","answers","notes","clientState"],"title":"PublicIrlItem"},"PublicIrlSection":{"properties":{"number":{"type":"string","title":"Number"},"title":{"type":"string","title":"Title"},"items":{"items":{"$ref":"#/components/schemas/PublicIrlItem"},"type":"array","title":"Items"}},"type":"object","required":["number","title","items"],"title":"PublicIrlSection"},"PublicNote":{"properties":{"id":{"type":"string","title":"Id"},"body":{"type":"string","title":"Body"},"author":{"type":"string","enum":["firm","client","buyer","assistant"],"title":"Author"},"visibility":{"type":"string","enum":["internal","shared"],"title":"Visibility"},"createdAt":{"type":"string","format":"date-time","title":"Createdat"}},"type":"object","required":["id","body","author","visibility","createdAt"],"title":"PublicNote","description":"A note as a client or buyer sees it. It has no `sources` field at all, so a source cannot reach a public page."},"PublicRelease":{"properties":{"body":{"type":"string","title":"Body"},"files":{"items":{"$ref":"#/components/schemas/ReleaseFile"},"type":"array","title":"Files"},"releasedAt":{"type":"string","format":"date-time","title":"Releasedat"},"completeness":{"type":"string","enum":["full","partial"],"title":"Completeness"},"stillToCome":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Stilltocome"}},"type":"object","required":["body","files","releasedAt","completeness","stillToCome"],"title":"PublicRelease"},"PublicStreamMessageRequest":{"properties":{"message":{"anyOf":[{"type":"string","maxLength":4000},{"type":"null"}],"title":"Message"},"messageId":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Messageid"},"turnId":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Turnid"},"clientContext":{"anyOf":[{"additionalProperties":true,"type":"object"},{"type":"null"}],"title":"Clientcontext"},"attachments":{"anyOf":[{"items":{"$ref":"#/components/schemas/AttachmentRequest"},"type":"array"},{"type":"null"}],"title":"Attachments"},"quotedContexts":{"anyOf":[{"items":{"$ref":"#/components/schemas/QuotedContextItem"},"type":"array"},{"type":"null"}],"title":"Quotedcontexts"},"truncateBeforeMessageId":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Truncatebeforemessageid"},"discardLastTurn":{"type":"boolean","title":"Discardlastturn","default":false},"siblingOfMessageId":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Siblingofmessageid"},"retryNote":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Retrynote"},"source":{"anyOf":[{"$ref":"#/components/schemas/ComponentSource"},{"type":"null"}]}},"type":"object","title":"PublicStreamMessageRequest","description":"What a visitor with a link may send: the same request, with the message capped. Its files are checked in\n`read_chat_files`, which names each refusal."},"PublishRequest":{"properties":{"version":{"type":"integer","title":"Version"}},"type":"object","required":["version"],"title":"PublishRequest"},"PublishResponse":{"properties":{"slug":{"type":"string","title":"Slug"},"version":{"type":"integer","title":"Version"},"url":{"type":"string","title":"Url"}},"type":"object","required":["slug","version","url"],"title":"PublishResponse"},"PublishedCanvas":{"properties":{"title":{"type":"string","title":"Title"},"summary":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Summary"},"format":{"type":"string","enum":["jsx","html"],"title":"Format"},"source":{"type":"string","title":"Source"},"version":{"type":"integer","title":"Version"},"published_at":{"type":"string","format":"date-time","title":"Published At"}},"type":"object","required":["title","summary","format","source","version","published_at"],"title":"PublishedCanvas"},"QueryConfigEntry":{"properties":{"source":{"type":"string","title":"Source"},"query":{"type":"string","title":"Query"},"rationale":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Rationale"}},"type":"object","required":["source","query"],"title":"QueryConfigEntry","description":"Entry specifying a single data source query requested by the Director."},"QueueAllJobsRequest":{"properties":{"kind":{"type":"string","enum":["research","personalize"],"title":"Kind"}},"type":"object","required":["kind"],"title":"QueueAllJobsRequest"},"QueueJobsRequest":{"properties":{"kind":{"type":"string","enum":["research","personalize"],"title":"Kind"},"contact_ids":{"items":{"type":"string"},"type":"array","maxItems":500,"minItems":1,"title":"Contact Ids"}},"type":"object","required":["kind","contact_ids"],"title":"QueueJobsRequest"},"QueueJobsResponse":{"properties":{"queued":{"type":"integer","title":"Queued"}},"type":"object","required":["queued"],"title":"QueueJobsResponse"},"QuotedContextItem":{"properties":{"id":{"type":"string","title":"Id"},"sourceType":{"type":"string","title":"Sourcetype"},"sourceId":{"type":"string","title":"Sourceid"},"sourceLabel":{"type":"string","title":"Sourcelabel"},"selectedText":{"type":"string","title":"Selectedtext"},"charCount":{"anyOf":[{"type":"integer"},{"type":"null"}],"title":"Charcount"}},"type":"object","required":["id","sourceType","sourceId","sourceLabel","selectedText"],"title":"QuotedContextItem"},"ReadDocsByIdRequest":{"properties":{"doc_ids":{"items":{"type":"string"},"type":"array","title":"Doc Ids"}},"type":"object","title":"ReadDocsByIdRequest"},"RedirectUrl":{"properties":{"url":{"type":"string","title":"Url"}},"type":"object","required":["url"],"title":"RedirectUrl"},"RefBody":{"properties":{"place":{"type":"string","title":"Place"},"ids":{"additionalProperties":{"type":"string"},"type":"object","title":"Ids"}},"type":"object","required":["place"],"title":"RefBody"},"RegenerateDraftRequest":{"properties":{"template_id":{"type":"string","title":"Template Id"},"email_ids":{"items":{"type":"string"},"type":"array","title":"Email Ids"},"deal_workspace_id":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Deal Workspace Id"}},"type":"object","required":["template_id","email_ids"],"title":"RegenerateDraftRequest"},"RegisterCodeBody":{"properties":{"user_code":{"type":"string","title":"User Code"},"device_secret":{"type":"string","maxLength":256,"minLength":32,"title":"Device Secret"},"app":{"type":"string","enum":["powerpoint","excel"],"title":"App"}},"type":"object","required":["user_code","device_secret","app"],"title":"RegisterCodeBody"},"Release":{"properties":{"body":{"type":"string","title":"Body"},"files":{"items":{"$ref":"#/components/schemas/ReleaseFile"},"type":"array","title":"Files"},"releasedAt":{"type":"string","format":"date-time","title":"Releasedat"},"releasedBy":{"type":"string","title":"Releasedby"},"completeness":{"type":"string","enum":["full","partial"],"title":"Completeness"},"stillToCome":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Stilltocome"}},"type":"object","required":["body","files","releasedAt","releasedBy","completeness","stillToCome"],"title":"Release"},"ReleaseBody":{"properties":{"body":{"type":"string","minLength":1,"title":"Body"},"fileIds":{"items":{"type":"string"},"type":"array","title":"Fileids","default":[]},"completeness":{"type":"string","enum":["full","partial"],"title":"Completeness","default":"full"},"stillToCome":{"anyOf":[{"type":"string","maxLength":500},{"type":"null"}],"title":"Stilltocome"}},"type":"object","required":["body"],"title":"ReleaseBody"},"ReleaseFile":{"properties":{"fileId":{"type":"string","title":"Fileid"},"filename":{"type":"string","title":"Filename"}},"type":"object","required":["fileId","filename"],"title":"ReleaseFile"},"ReleaseWithdrawal":{"properties":{"body":{"type":"string","title":"Body"},"files":{"items":{"$ref":"#/components/schemas/ReleaseFile"},"type":"array","title":"Files"},"releasedAt":{"type":"string","format":"date-time","title":"Releasedat"},"releasedBy":{"type":"string","title":"Releasedby"},"withdrawnAt":{"type":"string","format":"date-time","title":"Withdrawnat"},"withdrawnBy":{"type":"string","title":"Withdrawnby"},"reason":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Reason"},"kind":{"type":"string","enum":["withdrawn","replaced"],"title":"Kind"}},"type":"object","required":["body","files","releasedAt","releasedBy","withdrawnAt","withdrawnBy","reason","kind"],"title":"ReleaseWithdrawal","description":"An answer that went out to the buyer and was pulled back, or replaced by a changed release (`kind` says which).\nThe firm keeps it as release history. No buyer or client shape carries its text or reason; the buyer is told only\nwhen an answer was pulled back."},"ReminderSettings":{"properties":{"dueSoonDays":{"type":"integer","maximum":60.0,"minimum":0.0,"title":"Duesoondays","default":3}},"additionalProperties":false,"type":"object","title":"ReminderSettings"},"RenameBranchRequest":{"properties":{"old_name":{"type":"string","title":"Old Name"},"new_name":{"type":"string","title":"New Name"}},"type":"object","required":["old_name","new_name"],"title":"RenameBranchRequest"},"RenameConversationRequest":{"properties":{"title":{"type":"string","minLength":1,"title":"Title"}},"type":"object","required":["title"],"title":"RenameConversationRequest"},"RenameRequest":{"properties":{"name":{"type":"string","title":"Name"}},"type":"object","required":["name"],"title":"RenameRequest"},"RenderTemplateRequest":{"properties":{"contact_id":{"type":"string","title":"Contact Id","description":"Contact ID to resolve variables for"},"template_type":{"type":"string","title":"Template Type","description":"Which template to render: 'cold_mail', 'follow_up_1', 'follow_up_2', 'follow_up_3', 'follow_up_4'"},"deal_workspace_id":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Deal Workspace Id"}},"type":"object","required":["contact_id","template_type"],"title":"RenderTemplateRequest","description":"Request to render a template with real contact data."},"RenderTemplateResponse":{"properties":{"crm_project_id":{"type":"string","title":"Crm Project Id"},"contact_id":{"type":"string","title":"Contact Id"},"template_type":{"type":"string","title":"Template Type"},"rendered_subject":{"type":"string","title":"Rendered Subject"},"rendered_body":{"type":"string","title":"Rendered Body"},"attachment_url":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Attachment Url"}},"type":"object","required":["crm_project_id","contact_id","template_type","rendered_subject","rendered_body"],"title":"RenderTemplateResponse","description":"Rendered template with placeholders replaced."},"ReopenBody":{"properties":{"reason":{"anyOf":[{"type":"string","maxLength":10000},{"type":"null"}],"title":"Reason"}},"type":"object","title":"ReopenBody"},"ReplyHoursOut":{"properties":{"opens_at":{"type":"string","title":"Opens At"},"closes_at":{"type":"string","title":"Closes At"},"timezone":{"type":"string","title":"Timezone"},"open_now":{"type":"boolean","title":"Open Now"}},"type":"object","required":["opens_at","closes_at","timezone","open_now"],"title":"ReplyHoursOut"},"RescheduleSequenceStepRequest":{"properties":{"email_id":{"type":"string","title":"Email Id","description":"ID of the sequence step email to reschedule"},"schedule_time":{"type":"string","title":"Schedule Time","description":"ISO datetime string (VN timezone, UTC+7)"},"deal_workspace_id":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Deal Workspace Id"}},"type":"object","required":["email_id","schedule_time"],"title":"RescheduleSequenceStepRequest","description":"Reschedule a single sequence step and cascade-update subsequent unsent steps."},"RescheduleSequenceStepResponse":{"properties":{"success":{"type":"boolean","title":"Success"},"email_id":{"type":"string","title":"Email Id"},"scheduled_for":{"type":"string","title":"Scheduled For"},"cascade_updated_count":{"type":"integer","title":"Cascade Updated Count","description":"Number of subsequent steps rebased to maintain cadence","default":0},"message":{"type":"string","title":"Message"}},"type":"object","required":["success","email_id","scheduled_for","message"],"title":"RescheduleSequenceStepResponse"},"ResolveBody":{"properties":{"refs":{"items":{"$ref":"#/components/schemas/RefBody"},"type":"array","maxItems":50,"title":"Refs"}},"type":"object","required":["refs"],"title":"ResolveBody"},"ResumeScheduleResponse":{"properties":{"success":{"type":"boolean","title":"Success"},"contact_id":{"type":"string","title":"Contact Id"},"resumed_count":{"type":"integer","title":"Resumed Count"},"rescheduled_overdue_count":{"anyOf":[{"type":"integer"},{"type":"null"}],"title":"Rescheduled Overdue Count"},"next_send_at":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Next Send At"},"message":{"type":"string","title":"Message"}},"type":"object","required":["success","contact_id","resumed_count","message"],"title":"ResumeScheduleResponse"},"RetrievalRequest":{"properties":{"query":{"type":"string","title":"Query"},"top_k":{"type":"integer","maximum":100.0,"minimum":1.0,"title":"Top K","default":20},"mode":{"type":"string","title":"Mode","description":"Retrieval mode: 'director' or 'base'","default":"director"}},"type":"object","required":["query"],"title":"RetrievalRequest","description":"Payload for POST /retrieve."},"RetrySlideRequest":{"properties":{"session_id":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Session Id"}},"additionalProperties":false,"type":"object","title":"RetrySlideRequest"},"RetrySlideResponse":{"properties":{"run_id":{"type":"string","title":"Run Id"},"position":{"type":"integer","title":"Position"}},"type":"object","required":["run_id","position"],"title":"RetrySlideResponse"},"ReviewEditRequest":{"properties":{"threadId":{"type":"string","title":"Threadid"},"actorId":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Actorid"}},"type":"object","required":["threadId"],"title":"ReviewEditRequest"},"ReviewEvent":{"properties":{"fromStatus":{"anyOf":[{"type":"string","enum":["reviewed","toBeUpdated","inDiscussion","needsSignOff"]},{"type":"null"}],"title":"Fromstatus"},"toStatus":{"anyOf":[{"type":"string","enum":["reviewed","toBeUpdated","inDiscussion","needsSignOff"]},{"type":"null"}],"title":"Tostatus"},"actedAt":{"type":"string","format":"date-time","title":"Actedat"},"actedBy":{"type":"string","title":"Actedby"}},"type":"object","required":["fromStatus","toStatus","actedAt","actedBy"],"title":"ReviewEvent","description":"One step in the history of an item's or request's review mark. `to_status` is None when the mark was cleared."},"ReviewStatusCounts":{"properties":{"reviewed":{"type":"integer","title":"Reviewed","default":0},"toBeUpdated":{"type":"integer","title":"Tobeupdated","default":0},"inDiscussion":{"type":"integer","title":"Indiscussion","default":0},"needsSignOff":{"type":"integer","title":"Needssignoff","default":0}},"type":"object","title":"ReviewStatusCounts","description":"How many requests carry each mark. A request with no mark is in none of them."},"RollbackRequest":{"properties":{"version_id":{"type":"string","title":"Version Id"},"session_id":{"type":"string","title":"Session Id"},"session_type":{"type":"string","title":"Session Type"},"revision_id":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Revision Id"},"slide_position":{"anyOf":[{"type":"integer"},{"type":"null"}],"title":"Slide Position"}},"type":"object","required":["version_id","session_id","session_type"],"title":"RollbackRequest"},"RunStatusResponse":{"properties":{"run_id":{"type":"string","title":"Run Id"},"status":{"type":"string","enum":["running","completed","failed","cancelled"],"title":"Status"},"slide_count":{"type":"integer","title":"Slide Count"},"slides":{"items":{"$ref":"#/components/schemas/SlideState"},"type":"array","title":"Slides"}},"type":"object","required":["run_id","status","slide_count","slides"],"title":"RunStatusResponse"},"RunningAnswer":{"properties":{"requestId":{"type":"string","title":"Requestid"},"code":{"type":"string","title":"Code"},"step":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Step"},"startedAt":{"type":"string","format":"date-time","title":"Startedat"}},"type":"object","required":["requestId","code","step","startedAt"],"title":"RunningAnswer"},"S3EntryResponse":{"properties":{"id":{"type":"string","title":"Id"},"name":{"type":"string","title":"Name"},"type":{"$ref":"#/components/schemas/FileType"},"parent_id":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Parent Id"},"deal_workspace_id":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Deal Workspace Id"},"s3_key":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"S3 Key"},"size":{"anyOf":[{"type":"integer"},{"type":"null"}],"title":"Size","default":0},"mime_type":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Mime Type"},"path":{"type":"string","title":"Path"},"created_at":{"anyOf":[{"type":"string","format":"date-time"},{"type":"null"}],"title":"Created At"},"updated_at":{"anyOf":[{"type":"string","format":"date-time"},{"type":"null"}],"title":"Updated At"}},"type":"object","required":["id","name","type","parent_id","s3_key","mime_type","path"],"title":"S3EntryResponse"},"STATUS":{"type":"string","enum":["draft","planned","queued","sent","cancelled"],"title":"STATUS"},"SaveEditsRequest":{"properties":{"from_version":{"type":"integer","title":"From Version"},"edits":{"additionalProperties":true,"type":"object","title":"Edits"}},"type":"object","required":["from_version","edits"],"title":"SaveEditsRequest"},"SaveEditsResponse":{"properties":{"canvas_id":{"type":"string","title":"Canvas Id"},"version":{"type":"integer","title":"Version"}},"type":"object","required":["canvas_id","version"],"title":"SaveEditsResponse"},"SaveFirmRulesRequest":{"properties":{"content":{"type":"string","title":"Content"}},"type":"object","required":["content"],"title":"SaveFirmRulesRequest"},"SaveTemplatesRequest":{"properties":{"template_cold_mail":{"anyOf":[{"$ref":"#/components/schemas/TemplateItem"},{"type":"null"}]},"template_follow_up_1":{"anyOf":[{"$ref":"#/components/schemas/TemplateItem"},{"type":"null"}]},"template_follow_up_2":{"anyOf":[{"$ref":"#/components/schemas/TemplateItem"},{"type":"null"}]},"template_follow_up_3":{"anyOf":[{"$ref":"#/components/schemas/TemplateItem"},{"type":"null"}]},"template_follow_up_4":{"anyOf":[{"$ref":"#/components/schemas/TemplateItem"},{"type":"null"}]},"deal_workspace_id":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Deal Workspace Id"},"confirm_emptied":{"type":"boolean","title":"Confirm Emptied","description":"True when the team has agreed to empty a step that still has unsent mails: they then go out with nothing in them, and the sweep cancels them.","default":false}},"type":"object","title":"SaveTemplatesRequest","description":"Save / update email templates for a project (partial update OK)."},"Schedule":{"properties":{"kind":{"type":"string","enum":["summary","reminder"],"title":"Kind"},"enabled":{"type":"boolean","title":"Enabled"},"weekdays":{"items":{"type":"integer","maximum":7.0,"minimum":1.0},"type":"array","title":"Weekdays"},"hour":{"type":"integer","maximum":23.0,"minimum":0.0,"title":"Hour"},"timezone":{"type":"string","title":"Timezone"},"reviewMode":{"type":"string","enum":["review","automatic"],"title":"Reviewmode"},"settings":{"anyOf":[{"$ref":"#/components/schemas/SummarySettings"},{"$ref":"#/components/schemas/ReminderSettings"}],"title":"Settings"},"lastRunAt":{"anyOf":[{"type":"string","format":"date-time"},{"type":"null"}],"title":"Lastrunat"},"lastRunOutcome":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Lastrunoutcome"},"nextSendAt":{"anyOf":[{"type":"string","format":"date-time"},{"type":"null"}],"title":"Nextsendat"}},"type":"object","required":["kind","enabled","weekdays","hour","timezone","reviewMode","settings","lastRunAt","lastRunOutcome"],"title":"Schedule"},"ScheduleBody":{"properties":{"kind":{"type":"string","enum":["summary","reminder"],"title":"Kind"},"enabled":{"type":"boolean","title":"Enabled"},"weekdays":{"items":{"type":"integer","maximum":7.0,"minimum":1.0},"type":"array","title":"Weekdays"},"hour":{"type":"integer","maximum":23.0,"minimum":0.0,"title":"Hour"},"timezone":{"type":"string","title":"Timezone"},"reviewMode":{"type":"string","enum":["review","automatic"],"title":"Reviewmode"},"settings":{"anyOf":[{"$ref":"#/components/schemas/SummarySettings"},{"$ref":"#/components/schemas/ReminderSettings"}],"title":"Settings"}},"type":"object","required":["kind","enabled","weekdays","hour","timezone","reviewMode","settings"],"title":"ScheduleBody","description":"What the firm saves for one schedule. `settings` is read as the settings of `kind`."},"ScheduleEmailRequest":{"properties":{"email_id":{"type":"string","title":"Email Id","description":"Email ID to schedule"},"schedule_time":{"type":"string","title":"Schedule Time","description":"ISO format datetime for scheduling"},"deal_workspace_id":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Deal Workspace Id"}},"type":"object","required":["email_id","schedule_time"],"title":"ScheduleEmailRequest"},"ScheduleEmailResponse":{"properties":{"success":{"type":"boolean","title":"Success"},"email_id":{"type":"string","title":"Email Id"},"task_id":{"type":"string","title":"Task Id"},"scheduled_for":{"type":"string","title":"Scheduled For"},"is_reschedule":{"type":"boolean","title":"Is Reschedule","description":"Whether this was a reschedule operation","default":false},"message":{"type":"string","title":"Message"}},"type":"object","required":["success","email_id","task_id","scheduled_for","message"],"title":"ScheduleEmailResponse"},"SchedulePair":{"properties":{"summary":{"$ref":"#/components/schemas/Schedule"},"reminder":{"$ref":"#/components/schemas/Schedule"}},"type":"object","required":["summary","reminder"],"title":"SchedulePair"},"SendDraftRequest":{"properties":{"email_ids":{"items":{"type":"string"},"type":"array","title":"Email Ids"},"action":{"type":"string","title":"Action","description":"send_now or schedule","default":"send_now"},"schedule_time":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Schedule Time","description":"ISO format datetime for scheduling"},"deal_workspace_id":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Deal Workspace Id"}},"type":"object","required":["email_ids"],"title":"SendDraftRequest"},"SendMessageBody":{"properties":{"body":{"type":"string","maxLength":4000,"minLength":1,"title":"Body"},"context":{"anyOf":[{"$ref":"#/components/schemas/MessageContextIn"},{"type":"null"}]}},"type":"object","required":["body"],"title":"SendMessageBody"},"SendNowBody":{"properties":{"kind":{"type":"string","enum":["summary","reminder"],"title":"Kind"}},"type":"object","required":["kind"],"title":"SendNowBody"},"SendNowResult":{"properties":{"emails":{"items":{"$ref":"#/components/schemas/OutboundEmail"},"type":"array","title":"Emails"}},"type":"object","required":["emails"],"title":"SendNowResult"},"SequenceSynergyRequest":{"properties":{"enabled":{"type":"boolean","title":"Enabled","description":"Whether unsent sequence emails should include the synergy one-liner"},"deal_workspace_id":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Deal Workspace Id"}},"type":"object","required":["enabled"],"title":"SequenceSynergyRequest"},"SessionFileEditRequest":{"properties":{"operations":{"items":{"additionalProperties":true,"type":"object"},"type":"array","title":"Operations"}},"type":"object","required":["operations"],"title":"SessionFileEditRequest"},"SetSkillEnabledRequest":{"properties":{"enabled":{"type":"boolean","title":"Enabled"}},"type":"object","required":["enabled"],"title":"SetSkillEnabledRequest"},"SetWorkspaceIconLogoRequest":{"properties":{"icon":{"type":"string","pattern":"^[a-z0-9-]{1,40}$","title":"Icon"},"color":{"type":"string","pattern":"^[a-z0-9-]{1,40}$","title":"Color"}},"type":"object","required":["icon","color"],"title":"SetWorkspaceIconLogoRequest"},"ShareItemsBody":{"properties":{"itemIds":{"items":{"type":"string"},"type":"array","title":"Itemids"}},"type":"object","required":["itemIds"],"title":"ShareItemsBody"},"SignedInView":{"properties":{"email":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Email"},"name":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Name"},"models":{"items":{"type":"string"},"type":"array","title":"Models"}},"type":"object","required":["email","name","models"],"title":"SignedInView"},"SlideBlueprint":{"properties":{"position":{"type":"integer","minimum":1.0,"title":"Position"},"title":{"type":"string","minLength":1,"title":"Title"},"subtitle":{"type":"string","title":"Subtitle","default":""},"summary":{"type":"string","title":"Summary","default":""},"layoutTemplate":{"type":"string","title":"Layouttemplate"},"zones":{"items":{"$ref":"#/components/schemas/Zone"},"type":"array","maxItems":10,"minItems":1,"title":"Zones"}},"additionalProperties":false,"type":"object","required":["position","title","layoutTemplate","zones"],"title":"SlideBlueprint","description":"A full zone plan for one slide. Carries no coordinates by design.\n\nGeometry comes from the BRAE master layout the add-in applies, or -- for\n`custom_zones` -- from the add-in resolving bounds inside the live content viewport."},"SlideLibraryDeleteResponse":{"properties":{"message":{"type":"string","title":"Message"},"slide_id":{"type":"string","title":"Slide Id"}},"type":"object","required":["message","slide_id"],"title":"SlideLibraryDeleteResponse"},"SlideLibraryIngestItem":{"properties":{"filename":{"type":"string","title":"Filename"},"status":{"type":"string","title":"Status"},"slide":{"anyOf":[{"$ref":"#/components/schemas/SlideLibraryItem"},{"type":"null"}]},"failure_code":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Failure Code"},"failure_message":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Failure Message"}},"type":"object","required":["filename","status"],"title":"SlideLibraryIngestItem"},"SlideLibraryIngestResponse":{"properties":{"ingest_request_id":{"type":"string","title":"Ingest Request Id"},"summary":{"$ref":"#/components/schemas/SlideLibraryIngestSummary"},"items":{"items":{"$ref":"#/components/schemas/SlideLibraryIngestItem"},"type":"array","title":"Items"}},"type":"object","required":["ingest_request_id","summary","items"],"title":"SlideLibraryIngestResponse"},"SlideLibraryIngestSummary":{"properties":{"total":{"type":"integer","title":"Total"},"created_count":{"type":"integer","title":"Created Count"},"duplicate_count":{"type":"integer","title":"Duplicate Count"},"failed_count":{"type":"integer","title":"Failed Count"}},"type":"object","required":["total","created_count","duplicate_count","failed_count"],"title":"SlideLibraryIngestSummary"},"SlideLibraryItem":{"properties":{"slide_id":{"type":"string","title":"Slide Id"},"normalized_sha256":{"type":"string","title":"Normalized Sha256"},"description":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Description"},"preview_url":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Preview Url"},"width":{"anyOf":[{"type":"integer"},{"type":"null"}],"title":"Width"},"height":{"anyOf":[{"type":"integer"},{"type":"null"}],"title":"Height"},"source_filename":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Source Filename"},"created_at":{"anyOf":[{"type":"string","format":"date-time"},{"type":"null"}],"title":"Created At"},"updated_at":{"anyOf":[{"type":"string","format":"date-time"},{"type":"null"}],"title":"Updated At"},"tags":{"items":{"type":"string"},"type":"array","title":"Tags"}},"type":"object","required":["slide_id","normalized_sha256"],"title":"SlideLibraryItem"},"SlideLibraryListResponse":{"properties":{"count":{"type":"integer","title":"Count"},"items":{"items":{"$ref":"#/components/schemas/SlideLibraryItem"},"type":"array","title":"Items"}},"type":"object","required":["count","items"],"title":"SlideLibraryListResponse"},"SlideLibraryReplaceTagsRequest":{"properties":{"tags":{"items":{},"type":"array","title":"Tags"}},"type":"object","title":"SlideLibraryReplaceTagsRequest"},"SlideLibrarySearchRequest":{"properties":{"query":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Query"},"tags":{"items":{"type":"string"},"type":"array","title":"Tags"},"top_k":{"type":"integer","maximum":50.0,"minimum":1.0,"title":"Top K","default":5},"retrieval_limit":{"type":"integer","maximum":2000.0,"minimum":1.0,"title":"Retrieval Limit","default":200},"exclude_slide_ids":{"items":{"type":"string"},"type":"array","title":"Exclude Slide Ids"},"region_only":{"type":"boolean","title":"Region Only","default":false}},"type":"object","title":"SlideLibrarySearchRequest"},"SlideLibrarySearchResponse":{"properties":{"items":{"items":{"$ref":"#/components/schemas/SlideLibrarySearchResult"},"type":"array","title":"Items"}},"type":"object","required":["items"],"title":"SlideLibrarySearchResponse"},"SlideLibrarySearchResult":{"properties":{"slide":{"$ref":"#/components/schemas/SlideLibraryItem"},"score":{"type":"number","title":"Score"},"matched_region":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Matched Region"}},"type":"object","required":["slide","score"],"title":"SlideLibrarySearchResult"},"SlideLibraryTagCatalogItem":{"properties":{"tag":{"type":"string","title":"Tag"},"count":{"type":"integer","title":"Count"}},"type":"object","required":["tag","count"],"title":"SlideLibraryTagCatalogItem"},"SlideLibraryTagsResponse":{"properties":{"items":{"items":{"$ref":"#/components/schemas/SlideLibraryTagCatalogItem"},"type":"array","title":"Items"}},"type":"object","required":["items"],"title":"SlideLibraryTagsResponse"},"SlideSeed":{"properties":{"position":{"type":"integer","minimum":1.0,"title":"Position"},"heading":{"type":"string","minLength":1,"title":"Heading"},"subheading":{"type":"string","title":"Subheading","default":""},"outline_row":{"type":"string","title":"Outline Row","default":""},"context":{"type":"string","title":"Context","default":""},"requested_layout":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Requested Layout"}},"additionalProperties":false,"type":"object","required":["position","heading"],"title":"SlideSeed","description":"Everything the analyst needs for one slide, taken straight from the chat turn."},"SlideState":{"properties":{"position":{"type":"integer","title":"Position"},"status":{"type":"string","enum":["queued","running","ready","failed"],"title":"Status"},"blueprint":{"anyOf":[{"$ref":"#/components/schemas/SlideBlueprint"},{"type":"null"}]},"error_code":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Error Code"}},"type":"object","required":["position","status"],"title":"SlideState"},"Source":{"additionalProperties":true,"type":"object"},"StaffReplyBody":{"properties":{"body":{"type":"string","maxLength":4000,"minLength":1,"title":"Body"}},"type":"object","required":["body"],"title":"StaffReplyBody"},"StartRunRequest":{"properties":{"slides":{"items":{"$ref":"#/components/schemas/SlideSeed"},"type":"array","maxItems":60,"minItems":1,"title":"Slides"},"session_id":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Session Id"},"deal_workspace_id":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Deal Workspace Id"}},"additionalProperties":false,"type":"object","required":["slides"],"title":"StartRunRequest"},"StartRunResponse":{"properties":{"run_id":{"type":"string","title":"Run Id"},"slide_count":{"type":"integer","title":"Slide Count"}},"type":"object","required":["run_id","slide_count"],"title":"StartRunResponse"},"SteerRequest":{"properties":{"message":{"type":"string","minLength":1,"title":"Message"},"messageId":{"anyOf":[{"type":"string","maxLength":100},{"type":"null"}],"title":"Messageid"}},"type":"object","required":["message"],"title":"SteerRequest"},"StepsBody":{"properties":{"steps":{"items":{},"type":"array","title":"Steps"}},"type":"object","required":["steps"],"title":"StepsBody"},"StepsRequest":{"properties":{"steps":{"items":{"additionalProperties":true,"type":"object"},"type":"array","title":"Steps"}},"type":"object","required":["steps"],"title":"StepsRequest"},"StreamMessageRequest":{"properties":{"message":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Message"},"messageId":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Messageid"},"turnId":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Turnid"},"clientContext":{"anyOf":[{"additionalProperties":true,"type":"object"},{"type":"null"}],"title":"Clientcontext"},"attachments":{"anyOf":[{"items":{"$ref":"#/components/schemas/AttachmentRequest"},"type":"array"},{"type":"null"}],"title":"Attachments"},"quotedContexts":{"anyOf":[{"items":{"$ref":"#/components/schemas/QuotedContextItem"},"type":"array"},{"type":"null"}],"title":"Quotedcontexts"},"truncateBeforeMessageId":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Truncatebeforemessageid"},"discardLastTurn":{"type":"boolean","title":"Discardlastturn","default":false},"siblingOfMessageId":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Siblingofmessageid"},"retryNote":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Retrynote"},"source":{"anyOf":[{"$ref":"#/components/schemas/ComponentSource"},{"type":"null"}]}},"type":"object","title":"StreamMessageRequest"},"SuggestedEdit":{"properties":{"id":{"type":"string","title":"Id"},"kind":{"type":"string","enum":["replace","insert"],"title":"Kind"},"find":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Find"},"replace":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Replace"},"after":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"After"},"text":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Text"},"reason":{"type":"string","title":"Reason"},"fits":{"type":"boolean","title":"Fits","default":true}},"type":"object","required":["id","kind","reason"],"title":"SuggestedEdit","description":"One change the Assistant suggests for a mail. A replace carries find and replace; an insert carries after and text.\n`fits` is false when the sentence it points to is no longer in the mail (the team edited it)."},"SummarySections":{"properties":{"progress":{"type":"boolean","title":"Progress","default":true},"openByPic":{"type":"boolean","title":"Openbypic","default":true},"needsFixing":{"type":"boolean","title":"Needsfixing","default":true},"longestOpen":{"type":"boolean","title":"Longestopen","default":true},"overdue":{"type":"boolean","title":"Overdue","default":true}},"type":"object","title":"SummarySections"},"SummarySettings":{"properties":{"sections":{"$ref":"#/components/schemas/SummarySections","default":{"progress":true,"openByPic":true,"needsFixing":true,"longestOpen":true,"overdue":true}},"firmMessage":{"type":"string","title":"Firmmessage","default":""}},"additionalProperties":false,"type":"object","title":"SummarySettings"},"TYPE":{"type":"string","enum":["COLD-MAIL","FOLLOW-UP-1","FOLLOW-UP-2","FOLLOW-UP-3","FOLLOW-UP-4"],"title":"TYPE"},"TargetListSaveRequest":{"properties":{"file_id":{"type":"string","title":"File Id"},"state":{"additionalProperties":true,"type":"object","title":"State"},"approve":{"type":"boolean","title":"Approve","default":true}},"type":"object","required":["file_id","state"],"title":"TargetListSaveRequest"},"TaskArtifactPayload":{"properties":{"name":{"type":"string","title":"Name"},"download_url":{"type":"string","title":"Download Url"},"mime_type":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Mime Type","default":"application/octet-stream"},"size_bytes":{"anyOf":[{"type":"integer"},{"type":"null"}],"title":"Size Bytes"}},"type":"object","required":["name","download_url"],"title":"TaskArtifactPayload"},"TaskCompleteWebhookRequest":{"properties":{"task_id":{"type":"string","title":"Task Id"},"task_type":{"type":"string","title":"Task Type"},"status":{"type":"string","title":"Status"},"artifacts":{"items":{"$ref":"#/components/schemas/TaskArtifactPayload"},"type":"array","title":"Artifacts"},"result_summary":{"anyOf":[{"additionalProperties":true,"type":"object"},{"type":"null"}],"title":"Result Summary"},"result_package":{"anyOf":[{"additionalProperties":true,"type":"object"},{"type":"null"}],"title":"Result Package"},"deal_workspace_id":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Deal Workspace Id"}},"type":"object","required":["task_id","task_type","status"],"title":"TaskCompleteWebhookRequest"},"TemplateAttachmentResponse":{"properties":{"crm_project_id":{"type":"string","title":"Crm Project Id"},"template_type":{"type":"string","title":"Template Type"},"attachment_url":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Attachment Url"},"attachment_filename":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Attachment Filename"}},"type":"object","required":["crm_project_id","template_type"],"title":"TemplateAttachmentResponse","description":"Attachment upload result for a specific project template slot."},"TemplateItem":{"properties":{"subject":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Subject","description":"Email subject line"},"body":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Body","description":"Email body (HTML with placeholders)"},"attachment_url":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Attachment Url","description":"S3 URL of the attachment"}},"type":"object","title":"TemplateItem","description":"A single email template with subject, body, and optional attachment."},"TemplateIterationContextArtifact":{"properties":{"artifact_id":{"type":"string","title":"Artifact Id"},"kind":{"type":"string","enum":["source_context","visual_reference"],"title":"Kind"},"original_filename":{"type":"string","title":"Original Filename"},"stored_path":{"type":"string","title":"Stored Path","default":""},"file_artifact_id":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"File Artifact Id"},"file_entry_id":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"File Entry Id"},"content_type":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Content Type"},"size_bytes":{"anyOf":[{"type":"integer"},{"type":"null"}],"title":"Size Bytes"},"content_hash":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Content Hash"},"extraction_status":{"type":"string","enum":["not_applicable","succeeded","failed"],"title":"Extraction Status","default":"not_applicable"},"extracted_text":{"type":"string","title":"Extracted Text","default":""},"created_at":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Created At"}},"type":"object","required":["artifact_id","kind","original_filename"],"title":"TemplateIterationContextArtifact"},"TemplateIterationCreateSessionResponse":{"properties":{"session_id":{"type":"string","title":"Session Id"},"deal_workspace_id":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Deal Workspace Id"},"title":{"type":"string","title":"Title","default":""},"user_input_text":{"type":"string","title":"User Input Text","default":""},"context_artifacts":{"items":{"$ref":"#/components/schemas/TemplateIterationContextArtifact"},"type":"array","title":"Context Artifacts"},"context_text":{"type":"string","title":"Context Text","default":""},"reference_images":{"items":{"type":"string"},"type":"array","title":"Reference Images"},"current_synthesized_prompt":{"type":"string","title":"Current Synthesized Prompt","default":""},"current_image_artifact_id":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Current Image Artifact Id"},"current_image_path":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Current Image Path"},"current_image_url":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Current Image Url"},"generated_image_versioning_registry_id":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Generated Image Versioning Registry Id"},"latest_comment":{"type":"string","title":"Latest Comment","default":""},"status":{"type":"string","enum":["image_generating","ready","failed"],"title":"Status","default":"ready"},"active_generation_id":{"type":"string","title":"Active Generation Id","default":""},"generation_error":{"anyOf":[{"additionalProperties":true,"type":"object"},{"type":"null"}],"title":"Generation Error"},"selected_design_id":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Selected Design Id"},"pinned_design_revision":{"anyOf":[{"type":"integer"},{"type":"null"}],"title":"Pinned Design Revision"},"design_selection_mode":{"type":"string","title":"Design Selection Mode","default":"none"},"created_at":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Created At"},"updated_at":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Updated At"},"deleted_at":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Deleted At"}},"type":"object","required":["session_id"],"title":"TemplateIterationCreateSessionResponse"},"TemplateIterationDeleteSessionResponse":{"properties":{"success":{"type":"boolean","title":"Success","default":true},"session_id":{"type":"string","title":"Session Id"}},"type":"object","required":["session_id"],"title":"TemplateIterationDeleteSessionResponse"},"TemplateIterationImageRegenerateRequest":{"properties":{"current_prompt":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Current Prompt"}},"type":"object","title":"TemplateIterationImageRegenerateRequest"},"TemplateIterationPromptUpdateRequest":{"properties":{"prompt":{"type":"string","title":"Prompt"}},"type":"object","required":["prompt"],"title":"TemplateIterationPromptUpdateRequest"},"TemplateIterationTitleUpdateRequest":{"properties":{"title":{"type":"string","title":"Title"}},"type":"object","required":["title"],"title":"TemplateIterationTitleUpdateRequest"},"TemplatesResponse":{"properties":{"crm_project_id":{"type":"string","title":"Crm Project Id"},"template_cold_mail":{"anyOf":[{"$ref":"#/components/schemas/TemplateItem"},{"type":"null"}]},"template_follow_up_1":{"anyOf":[{"$ref":"#/components/schemas/TemplateItem"},{"type":"null"}]},"template_follow_up_2":{"anyOf":[{"$ref":"#/components/schemas/TemplateItem"},{"type":"null"}]},"template_follow_up_3":{"anyOf":[{"$ref":"#/components/schemas/TemplateItem"},{"type":"null"}]},"template_follow_up_4":{"anyOf":[{"$ref":"#/components/schemas/TemplateItem"},{"type":"null"}]},"mails_updated":{"anyOf":[{"type":"integer"},{"type":"null"}],"title":"Mails Updated","description":"Only on a save: how many unsent mails it rewrote because their words changed (a new attachment alone is not counted). Mails of people left out are never touched."},"contacts_left_out":{"anyOf":[{"type":"integer"},{"type":"null"}],"title":"Contacts Left Out","description":"Only on a save: how many people it left out because they replied, were dropped, are paused or have no usable email."},"mails_kept_personal":{"anyOf":[{"type":"integer"},{"type":"null"}],"title":"Mails Kept Personal","description":"Only on a save: how many unsent mails kept their own personalised words instead of the template's."},"campaign_name":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Campaign Name","description":"Only on a save: the campaign the template belongs to."},"step_label":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Step Label","description":"Only on a save: the step saved, as the team reads it (\"Cold email\", \"Follow-up 2\")."}},"type":"object","required":["crm_project_id"],"title":"TemplatesResponse","description":"All 5 templates for a project."},"ThreadContextResponse":{"properties":{"thread_id":{"type":"string","title":"Thread Id"},"deal_workspace_id":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Deal Workspace Id"},"deck_skeleton":{"anyOf":[{"$ref":"#/components/schemas/DeckSkeleton"},{"type":"null"}]},"messages":{"items":{"$ref":"#/components/schemas/ContextMessage"},"type":"array","title":"Messages"},"files":{"items":{"$ref":"#/components/schemas/ContextFile"},"type":"array","title":"Files"},"next_cursor":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Next Cursor"}},"type":"object","required":["thread_id","deal_workspace_id","deck_skeleton","messages","files"],"title":"ThreadContextResponse"},"UnpublishResponse":{"properties":{"status":{"type":"string","const":"unpublished","title":"Status","default":"unpublished"}},"type":"object","title":"UnpublishResponse"},"UnreadOut":{"properties":{"unread":{"type":"integer","title":"Unread"}},"type":"object","required":["unread"],"title":"UnreadOut"},"UpdateCampaignTopicRequest":{"properties":{"title":{"anyOf":[{"type":"string","maxLength":80,"minLength":1},{"type":"null"}],"title":"Title"},"body":{"anyOf":[{"type":"string","maxLength":4000},{"type":"null"}],"title":"Body"},"sources":{"anyOf":[{"items":{"type":"string"},"type":"array"},{"type":"null"}],"title":"Sources"},"position":{"anyOf":[{"type":"integer","minimum":1.0},{"type":"null"}],"title":"Position"}},"type":"object","title":"UpdateCampaignTopicRequest","description":"Only the fields sent change."},"UpdateCompanyRequest":{"properties":{"company_name":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Company Name","description":"Updated shared display name for the company"},"website":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Website","description":"Company website; an empty string or null clears it"},"deal_workspace_id":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Deal Workspace Id"}},"type":"object","title":"UpdateCompanyRequest"},"UpdateCompanyResponse":{"properties":{"success":{"type":"boolean","title":"Success"},"company_id":{"type":"string","title":"Company Id"},"company_name":{"type":"string","title":"Company Name"},"website":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Website"},"message":{"type":"string","title":"Message"}},"type":"object","required":["success","company_id","company_name","message"],"title":"UpdateCompanyResponse"},"UpdateContactNoteRequest":{"properties":{"text":{"anyOf":[{"type":"string","minLength":1},{"type":"null"}],"title":"Text"},"tag":{"anyOf":[{"type":"string","enum":["hook","internal"]},{"type":"null"}],"title":"Tag"}},"type":"object","title":"UpdateContactNoteRequest","description":"Only the fields sent change; an explicit null tag makes the note plain."},"UpdateContactRequest":{"properties":{"name":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Name","description":"Contact name"},"email":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Email","description":"Contact email address"},"title":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Title","description":"Contact role or title"},"synergy":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Synergy","description":"Synergy data"},"status":{"anyOf":[{"$ref":"#/components/schemas/ContactStatus"},{"type":"null"}],"description":"Conversation status"},"linkedin_url":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Linkedin Url","description":"Contact LinkedIn profile URL"},"email_updates":{"anyOf":[{"items":{"$ref":"#/components/schemas/EmailUpdateItem"},"type":"array"},{"type":"null"}],"title":"Email Updates","description":"List of email updates"},"deal_workspace_id":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Deal Workspace Id"}},"type":"object","title":"UpdateContactRequest","description":"Schema for updating contact information and associated emails."},"UpdateContactStatusRequest":{"properties":{"status":{"$ref":"#/components/schemas/ContactStatus"},"deal_workspace_id":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Deal Workspace Id"}},"type":"object","required":["status"],"title":"UpdateContactStatusRequest"},"UpdateDealWorkspaceRequest":{"properties":{"name":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Name"},"deal_status":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Deal Status"},"progress_note":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Progress Note"}},"type":"object","title":"UpdateDealWorkspaceRequest"},"UpdateDesignRequest":{"properties":{"name":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Name"},"description":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Description"},"keywords":{"anyOf":[{"items":{"type":"string"},"type":"array"},{"type":"null"}],"title":"Keywords"},"is_default":{"anyOf":[{"type":"boolean"},{"type":"null"}],"title":"Is Default"},"expected_revision":{"anyOf":[{"type":"integer"},{"type":"null"}],"title":"Expected Revision"}},"type":"object","title":"UpdateDesignRequest"},"UpdateDraftRequest":{"properties":{"name":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Name"},"doc_name":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Doc Name"},"content":{"type":"string","title":"Content"},"description":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Description"},"file_id":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"File Id"},"metadata":{"anyOf":[{"additionalProperties":true,"type":"object"},{"type":"null"}],"title":"Metadata"}},"type":"object","required":["content"],"title":"UpdateDraftRequest"},"UpdateLabelRequest":{"properties":{"label":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Label"}},"type":"object","required":["label"],"title":"UpdateLabelRequest"},"UpdateMemoryRequest":{"properties":{"type":{"anyOf":[{"type":"string","enum":["about_you","feedback","deal_fact","where_to_find"]},{"type":"null"}],"title":"Type"},"title":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Title"},"description":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Description"},"body":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Body"},"as_of":{"anyOf":[{"type":"string","format":"date"},{"type":"null"}],"title":"As Of"},"sources":{"anyOf":[{"items":{"$ref":"#/components/schemas/MemorySource"},"type":"array"},{"type":"null"}],"title":"Sources"},"names":{"anyOf":[{"items":{"type":"string"},"type":"array"},{"type":"null"}],"title":"Names"},"related_ids":{"anyOf":[{"items":{"type":"string"},"type":"array"},{"type":"null"}],"title":"Related Ids"},"may_repeat_id":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"May Repeat Id"},"conflicts_with_id":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Conflicts With Id"}},"type":"object","title":"UpdateMemoryRequest","description":"A partial change a person may ask for through the API. A field left out stays as it is."},"UpdateNoteRequest":{"properties":{"title":{"anyOf":[{"type":"string","maxLength":255},{"type":"null"}],"title":"Title"},"content":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Content"},"deal_workspace_id":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Deal Workspace Id"}},"type":"object","title":"UpdateNoteRequest"},"UpdateResourcesRequest":{"properties":{"resources":{"items":{"additionalProperties":true,"type":"object"},"type":"array","title":"Resources"},"references":{"anyOf":[{"items":{"additionalProperties":true,"type":"object"},"type":"array"},{"type":"null"}],"title":"References"}},"type":"object","title":"UpdateResourcesRequest","description":"Body for PUT .../resources — must live at module scope so FastAPI treats it as JSON body."},"UpdateSkillRequest":{"properties":{"name":{"type":"string","minLength":1,"title":"Name"},"description":{"type":"string","minLength":1,"title":"Description"},"prompt":{"type":"string","minLength":1,"title":"Prompt"},"enabled":{"type":"boolean","title":"Enabled"}},"type":"object","required":["name","description","prompt","enabled"],"title":"UpdateSkillRequest"},"ValidateDealWorkspaceRequest":{"properties":{"deal_workspace_id":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Deal Workspace Id"}},"type":"object","title":"ValidateDealWorkspaceRequest"},"ValidatedDealWorkspaceResponse":{"properties":{"id":{"type":"string","title":"Id"},"type":{"type":"string","title":"Type"},"status":{"type":"string","title":"Status"},"access":{"type":"string","title":"Access"}},"type":"object","required":["id","type","status","access"],"title":"ValidatedDealWorkspaceResponse"},"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"},"WaitingQuestion":{"properties":{"requestId":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Requestid"},"interruptionId":{"type":"string","title":"Interruptionid"},"question":{"type":"string","title":"Question"}},"type":"object","required":["requestId","interruptionId","question"],"title":"WaitingQuestion"},"WaitingQuestions":{"properties":{"questions":{"items":{"$ref":"#/components/schemas/WaitingQuestion"},"type":"array","title":"Questions"}},"type":"object","required":["questions"],"title":"WaitingQuestions"},"WebReference":{"properties":{"title":{"type":"string","title":"Title"},"url":{"type":"string","title":"Url"},"picture":{"type":"string","title":"Picture","description":"The slide's picture as a data: address."}},"type":"object","required":["title","url","picture"],"title":"WebReference"},"WebReferenceRequest":{"properties":{"query":{"type":"string","maxLength":300,"minLength":3,"title":"Query","description":"The slide's structure, e.g. 'revenue and EBITDA chart with margin line and key figures'."},"max_results":{"type":"integer","maximum":8.0,"minimum":1.0,"title":"Max Results","default":6}},"type":"object","required":["query"],"title":"WebReferenceRequest"},"WebReferenceResponse":{"properties":{"items":{"items":{"$ref":"#/components/schemas/WebReference"},"type":"array","title":"Items"}},"type":"object","required":["items"],"title":"WebReferenceResponse"},"WithdrawBody":{"properties":{"reason":{"anyOf":[{"type":"string","maxLength":10000},{"type":"null"}],"title":"Reason"}},"type":"object","title":"WithdrawBody"},"WorkflowRunLink":{"properties":{"run_id":{"type":"string","title":"Run Id"},"task_type":{"type":"string","title":"Task Type"},"subject":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Subject"},"created_at":{"type":"string","format":"date-time","title":"Created At"},"deal_workspace_id":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Deal Workspace Id"}},"type":"object","required":["run_id","task_type","subject","created_at","deal_workspace_id"],"title":"WorkflowRunLink"},"WorkspaceDeletionResponse":{"properties":{"status":{"type":"string","title":"Status","default":"deleting"}},"type":"object","title":"WorkspaceDeletionResponse"},"WorkspaceDriveImportRequest":{"properties":{"items":{"items":{"$ref":"#/components/schemas/DriveImportItem"},"type":"array","title":"Items"},"parent_id":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Parent Id"}},"type":"object","required":["items"],"title":"WorkspaceDriveImportRequest"},"WorkspaceIconLogo":{"properties":{"kind":{"type":"string","const":"icon","title":"Kind","default":"icon"},"icon":{"type":"string","pattern":"^[a-z0-9-]{1,40}$","title":"Icon"},"color":{"type":"string","pattern":"^[a-z0-9-]{1,40}$","title":"Color"}},"type":"object","required":["icon","color"],"title":"WorkspaceIconLogo"},"WorkspaceImageLogo":{"properties":{"kind":{"type":"string","const":"image","title":"Kind","default":"image"},"image_url":{"type":"string","title":"Image Url"}},"type":"object","required":["image_url"],"title":"WorkspaceImageLogo"},"WritingGuide":{"properties":{"essence":{"type":"string","title":"Essence","default":""},"languages":{"items":{"$ref":"#/components/schemas/LanguageUse"},"type":"array","title":"Languages","default":[]},"habits":{"items":{"$ref":"#/components/schemas/Habit"},"type":"array","title":"Habits","default":[]},"phrases":{"items":{"$ref":"#/components/schemas/Phrase"},"type":"array","title":"Phrases","default":[]},"avoid":{"items":{"$ref":"#/components/schemas/Avoid"},"type":"array","title":"Avoid","default":[]},"templates":{"items":{"$ref":"#/components/schemas/MailTemplate"},"type":"array","title":"Templates","default":[]}},"type":"object","title":"WritingGuide"},"Zone":{"properties":{"zoneKey":{"type":"string","pattern":"^[A-Z]$","title":"Zonekey"},"role":{"type":"string","enum":["metrics_strip","diagram","table","narrative","tile_grid"],"title":"Role"},"proofLogic":{"anyOf":[{"type":"string","enum":["build_up","compare","trend","breakdown","journey","framework"]},{"type":"null"}],"title":"Prooflogic"},"title":{"type":"string","minLength":1,"title":"Title"},"description":{"type":"string","maxLength":450,"minLength":1,"title":"Description"},"visualHint":{"anyOf":[{"type":"string","maxLength":300},{"type":"null"}],"title":"Visualhint"},"nodes":{"items":{"$ref":"#/components/schemas/ContentNode"},"type":"array","minItems":1,"title":"Nodes"},"weight":{"anyOf":[{"type":"integer","maximum":5.0,"minimum":1.0},{"type":"null"}],"title":"Weight"},"archetypeName":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Archetypename"},"archetypeCategory":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Archetypecategory"}},"additionalProperties":false,"type":"object","required":["zoneKey","role","title","description","nodes"],"title":"Zone","description":"One area of a slide, described without any geometry."},"agentic_be__crm__schemas__contact_schemas__Contact":{"properties":{"id":{"type":"string","title":"Id","description":"Contact identifier"},"name":{"type":"string","title":"Name","description":"Contact name"},"crm_project_id":{"type":"string","title":"Crm Project Id","description":"Associated project identifier"},"deal_workspace_id":{"type":"string","title":"Deal Workspace Id","description":"Owning DealWorkspace identifier"},"company_id":{"type":"string","title":"Company Id","description":"External company identifier"},"company":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Company","description":"Company name"},"website":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Website","description":"Website of the contact's company"},"email_name":{"type":"string","title":"Email Name","description":"Email user name"},"email":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Email","description":"Contact email address"},"title":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Title","description":"Contact role or title"},"linkedin_url":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Linkedin Url","description":"Contact LinkedIn profile URL"},"email_usable_for_outreach":{"type":"boolean","title":"Email Usable For Outreach","description":"Whether the contact email is valid enough to enable outreach features","default":false},"email_validation_state":{"type":"string","title":"Email Validation State","description":"missing | invalid | valid","default":"missing"},"phone":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Phone","description":"Contact phone number"},"synergy":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Synergy","description":"Synergy data"},"synergy_status":{"type":"string","title":"Synergy Status","description":"Internal: fit | weak_fit | no_fit | not_generated | disabled. Queued is used only while generation is in flight.","default":"not_generated"},"synergy_enabled":{"type":"boolean","title":"Synergy Enabled","description":"Whether sequence emails should include synergy content","default":true},"latest_mail_event":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Latest Mail Event","description":"Latest mail event label for the contact"},"suggestions_waiting":{"type":"integer","title":"Suggestions Waiting","description":"Suggested changes on the contact's mails that the team has not yet accepted or declined","default":0},"suggestions_mail_type":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Suggestions Mail Type","description":"Type of the first mail holding waiting suggestions, e.g. 'COLD-MAIL'"},"has_personalized_mail":{"anyOf":[{"type":"boolean"},{"type":"null"}],"title":"Has Personalized Mail","description":"Whether a mail of the contact holds a personal line (a change accepted or the mail written by hand). Only the contacts list says; None when unknown"},"notes":{"items":{"$ref":"#/components/schemas/ContactNoteOut"},"type":"array","title":"Notes","description":"The contact's notes in the order they were written"},"status":{"anyOf":[{"$ref":"#/components/schemas/ContactStatus"},{"type":"null"}],"description":"Conversation status"},"sequence_warning_code":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Sequence Warning Code","description":"Machine-readable sequence issue summary for badges or warnings"},"sequence_warning_message":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Sequence Warning Message","description":"Human-readable sequence issue summary for tooltips or notices"},"created_at":{"type":"string","format":"date-time","title":"Created At","description":"Creation timestamp"}},"type":"object","required":["id","name","crm_project_id","deal_workspace_id","company_id","email_name","notes","created_at"],"title":"Contact","description":"Contact response schema."},"agentic_be__dd__models__Contact":{"properties":{"id":{"type":"string","title":"Id"},"name":{"type":"string","title":"Name"},"email":{"type":"string","title":"Email"},"role":{"type":"string","title":"Role"},"receivesSummary":{"type":"boolean","title":"Receivessummary"},"ccSummary":{"type":"boolean","title":"Ccsummary"},"picValues":{"items":{"type":"string"},"type":"array","title":"Picvalues"}},"type":"object","required":["id","name","email","role","receivesSummary","ccSummary","picValues"],"title":"Contact"}},"securitySchemes":{"HTTPBearer":{"type":"http","scheme":"bearer"}}}}