{"openapi":"3.1.0","info":{"title":"Ontora API","description":"Ontora's public API. Covers interview campaigns, transcripts, synthesis reports, graph queries, webhooks, and workspace management. \n\n**Authentication**: endpoints accept either a Clerk JWT (`Authorization: Bearer <token>`) or a workspace API key (`X-API-Key: ont_...`). Workspace keys are managed via `/v1/api-keys`.","version":"0.1.0"},"paths":{"/v1/workspaces":{"post":{"tags":["workspaces"],"summary":"Create Workspace","description":"Create a new workspace. The authenticated user becomes the owner.\n\nAlso creates a Clerk Organization so the workspace is fully linked.","operationId":"create_workspace_v1_workspaces_post","security":[{"HTTPBearer":[]}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/WorkspaceCreate"}}}},"responses":{"201":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/WorkspaceOut"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}},"get":{"tags":["workspaces"],"summary":"List My Workspaces","description":"List all workspaces the authenticated user belongs to.","operationId":"list_my_workspaces_v1_workspaces_get","security":[{"HTTPBearer":[]}],"parameters":[{"name":"include_images","in":"query","required":false,"schema":{"type":"boolean","default":false,"title":"Include Images"}},{"name":"ensure_active_org","in":"query","required":false,"schema":{"type":"boolean","default":false,"title":"Ensure Active Org"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"type":"array","items":{"$ref":"#/components/schemas/WorkspaceOut"},"title":"Response List My Workspaces V1 Workspaces Get"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/v1/workspaces/{workspace_id}":{"get":{"tags":["workspaces"],"summary":"Get Workspace","description":"Get a specific workspace (must be a member).","operationId":"get_workspace_v1_workspaces__workspace_id__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":{"$ref":"#/components/schemas/WorkspaceOut"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}},"patch":{"tags":["workspaces"],"summary":"Update Workspace","description":"Update a workspace's name and/or contact details (admin only).","operationId":"update_workspace_v1_workspaces__workspace_id__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":{"$ref":"#/components/schemas/WorkspaceUpdate"}}}},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/WorkspaceOut"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}},"delete":{"tags":["workspaces"],"summary":"Delete Workspace","description":"Delete a workspace (owner only).","operationId":"delete_workspace_v1_workspaces__workspace_id__delete","security":[{"HTTPBearer":[]}],"parameters":[{"name":"workspace_id","in":"path","required":true,"schema":{"type":"string","format":"uuid","title":"Workspace Id"}}],"responses":{"204":{"description":"Successful Response"},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/v1/workspaces/{workspace_id}/dictionary":{"get":{"tags":["workspaces"],"summary":"Get Workspace Dictionary","description":"Return the workspace-global voice dictionary used by live interviews.","operationId":"get_workspace_dictionary_v1_workspaces__workspace_id__dictionary_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":{"$ref":"#/components/schemas/WorkspaceDictionaryOut"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}},"put":{"tags":["workspaces"],"summary":"Update Workspace Dictionary","description":"Update the workspace-global voice dictionary.\n\nDeepgram terms are applied per realtime session from this setting. Cartesia\npronunciation dictionaries are synchronized here because Cartesia stores\nthem provider-side and the session only receives a dictionary id.","operationId":"update_workspace_dictionary_v1_workspaces__workspace_id__dictionary_put","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/WorkspaceDictionaryUpdate"}}}},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/WorkspaceDictionaryOut"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/v1/workspaces/{workspace_id}/members":{"get":{"tags":["workspaces"],"summary":"List Workspace Members","description":"List workspace members using cached people data, with Clerk as identity fallback.","operationId":"list_workspace_members_v1_workspaces__workspace_id__members_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/WorkspaceMember"},"title":"Response List Workspace Members V1 Workspaces  Workspace Id  Members Get"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/v1/workspaces/{workspace_id}/invitations":{"post":{"tags":["workspaces"],"summary":"Invite Workspace Member","description":"Invite a new member to the workspace's Clerk Organization.\n\nAdmins only. Maps our admin/member role to Clerk's org:admin/org:member so\nthe invitation, the Clerk org membership, and our `user_workspaces.role`\nstay aligned once the invitee accepts (the membership is mirrored back into\nour DB by the `organizationMembership.created` webhook).","operationId":"invite_workspace_member_v1_workspaces__workspace_id__invitations_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/WorkspaceInvite"}}}},"responses":{"201":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/WorkspaceInviteOut"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}},"get":{"tags":["workspaces"],"summary":"List Workspace Invitations","description":"List pending Clerk organization invitations for the workspace. Admins only.","operationId":"list_workspace_invitations_v1_workspaces__workspace_id__invitations_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/WorkspaceInviteOut"},"title":"Response List Workspace Invitations V1 Workspaces  Workspace Id  Invitations Get"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/v1/workspaces/{workspace_id}/invitations/{invitation_id}":{"delete":{"tags":["workspaces"],"summary":"Revoke Workspace Invitation","description":"Revoke a pending Clerk organization invitation. Admins only.","operationId":"revoke_workspace_invitation_v1_workspaces__workspace_id__invitations__invitation_id__delete","security":[{"HTTPBearer":[]}],"parameters":[{"name":"workspace_id","in":"path","required":true,"schema":{"type":"string","format":"uuid","title":"Workspace Id"}},{"name":"invitation_id","in":"path","required":true,"schema":{"type":"string","title":"Invitation Id"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/WorkspaceInviteOut"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/v1/workspaces/{workspace_id}/members/{member_user_id}":{"patch":{"tags":["workspaces"],"summary":"Update Workspace Member Role","description":"Change a member's role. Owners only.\n\nClerk is the source of truth for organization roles. For Clerk-linked\nworkspaces, write Clerk first and only persist the mapped DB role after the\nClerk update succeeds.","operationId":"update_workspace_member_role_v1_workspaces__workspace_id__members__member_user_id__patch","security":[{"HTTPBearer":[]}],"parameters":[{"name":"workspace_id","in":"path","required":true,"schema":{"type":"string","format":"uuid","title":"Workspace Id"}},{"name":"member_user_id","in":"path","required":true,"schema":{"type":"string","title":"Member User Id"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/WorkspaceMemberRoleUpdate"}}}},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/WorkspaceMember"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}},"delete":{"tags":["workspaces"],"summary":"Remove Workspace Member","description":"Remove a member from the workspace.\n\nRemoves from Clerk first (so Clerk and DB cannot diverge on failure), then\nfrom our local DB. Owners cannot remove themselves; they should transfer\nownership or delete the workspace instead.","operationId":"remove_workspace_member_v1_workspaces__workspace_id__members__member_user_id__delete","security":[{"HTTPBearer":[]}],"parameters":[{"name":"workspace_id","in":"path","required":true,"schema":{"type":"string","format":"uuid","title":"Workspace Id"}},{"name":"member_user_id","in":"path","required":true,"schema":{"type":"string","title":"Member User Id"}}],"responses":{"204":{"description":"Successful Response"},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/v1/workspaces/{workspace_id}/logo":{"post":{"tags":["workspaces"],"summary":"Upload Workspace Logo","description":"Set the workspace's logo on its Clerk organization (admin only).\n\nThe uploaded image replaces any existing logo and shows up wherever the\nworkspace's organization image is rendered (sidebar, settings, member\nviews). Customer-facing counterpart of the staff enterprise-SSO upload.","operationId":"upload_workspace_logo_v1_workspaces__workspace_id__logo_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_workspace_logo_v1_workspaces__workspace_id__logo_post"}}}},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/WorkspaceLogoUploadResponse"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/v1/workspaces/{workspace_id}/setup/domain":{"patch":{"tags":["workspaces"],"summary":"Save Workspace Company Domain","description":"Save the workspace company domain and queue foundation research.","operationId":"save_workspace_company_domain_v1_workspaces__workspace_id__setup_domain_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":{"$ref":"#/components/schemas/WorkspaceSetupDomainRequest"}}}},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/WorkspaceOut"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/v1/workspaces/{workspace_id}/email-settings":{"get":{"tags":["workspaces"],"summary":"Get Email Settings","description":"Read the workspace email sender settings and invitation template.","operationId":"get_email_settings_v1_workspaces__workspace_id__email_settings_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":{"$ref":"#/components/schemas/WorkspaceEmailSettingsBody"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}},"put":{"tags":["workspaces"],"summary":"Save Email Settings","description":"Save the workspace email sender settings and invitation template.","operationId":"save_email_settings_v1_workspaces__workspace_id__email_settings_put","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/WorkspaceEmailSettingsBody"}}}},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/WorkspaceEmailSettingsBody"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/v1/workspaces/{workspace_id}/campaign-defaults":{"get":{"tags":["workspaces"],"summary":"Get Campaign Defaults","description":"Read the workspace's default campaign language (Campaign Templates tab).","operationId":"get_campaign_defaults_v1_workspaces__workspace_id__campaign_defaults_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":{"$ref":"#/components/schemas/WorkspaceCampaignDefaultsBody"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}},"put":{"tags":["workspaces"],"summary":"Save Campaign Defaults","description":"Save the workspace's default campaign language.","operationId":"save_campaign_defaults_v1_workspaces__workspace_id__campaign_defaults_put","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/WorkspaceCampaignDefaultsBody"}}}},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/WorkspaceCampaignDefaultsBody"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/v1/workspaces/{workspace_id}/email-settings/preview":{"post":{"tags":["workspaces"],"summary":"Preview Email Settings","description":"Render the invitation email with the given (possibly unsaved) settings.\n\nReturns the exact HTML participants would receive, with sample campaign\nvalues, so the settings page can show a live preview.","operationId":"preview_email_settings_v1_workspaces__workspace_id__email_settings_preview_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/WorkspaceEmailTestRequest"}}}},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/WorkspaceEmailPreviewResponse"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/v1/workspaces/{workspace_id}/teams-message/preview":{"post":{"tags":["workspaces"],"summary":"Preview Teams Message","description":"Render the Teams chat invitation with the given (possibly unsaved) text.\n\nReturns a standalone document mimicking a Teams chat bubble around the\nexact message HTML the send path produces (custom text or the default\ntemplate when ``message`` is empty), so the builder can show a live\npreview in a sandboxed iframe.","operationId":"preview_teams_message_v1_workspaces__workspace_id__teams_message_preview_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/WorkspaceTeamsMessagePreviewRequest"}}}},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/WorkspaceTeamsMessagePreviewResponse"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/v1/workspaces/{workspace_id}/email-settings/logo":{"post":{"tags":["workspaces"],"summary":"Upload Email Logo","description":"Upload the logo shown at the top of participant emails.","operationId":"upload_email_logo_v1_workspaces__workspace_id__email_settings_logo_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_email_logo_v1_workspaces__workspace_id__email_settings_logo_post"}}}},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/EmailLogoUploadResponse"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/v1/workspaces/{workspace_id}/email-domains":{"get":{"tags":["workspaces"],"summary":"List Email Domains","description":"List the workspace's sending domains with their DNS setup status.","operationId":"list_email_domains_v1_workspaces__workspace_id__email_domains_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/EmailDomainOut"},"title":"Response List Email Domains V1 Workspaces  Workspace Id  Email Domains Get"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}},"post":{"tags":["workspaces"],"summary":"Create Email Domain","description":"Register a sending domain with the email provider and return its DNS records.","operationId":"create_email_domain_v1_workspaces__workspace_id__email_domains_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/EmailDomainCreateRequest"}}}},"responses":{"201":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/EmailDomainOut"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/v1/workspaces/{workspace_id}/email-domains/{domain_id}/verify":{"post":{"tags":["workspaces"],"summary":"Verify Email Domain","description":"Trigger a DNS verification check and return the refreshed status.","operationId":"verify_email_domain_v1_workspaces__workspace_id__email_domains__domain_id__verify_post","security":[{"HTTPBearer":[]}],"parameters":[{"name":"workspace_id","in":"path","required":true,"schema":{"type":"string","format":"uuid","title":"Workspace Id"}},{"name":"domain_id","in":"path","required":true,"schema":{"type":"string","format":"uuid","title":"Domain Id"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/EmailDomainOut"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/v1/workspaces/{workspace_id}/email-domains/{domain_id}":{"delete":{"tags":["workspaces"],"summary":"Delete Email Domain","description":"Remove a sending domain from the workspace and the email provider.","operationId":"delete_email_domain_v1_workspaces__workspace_id__email_domains__domain_id__delete","security":[{"HTTPBearer":[]}],"parameters":[{"name":"workspace_id","in":"path","required":true,"schema":{"type":"string","format":"uuid","title":"Workspace Id"}},{"name":"domain_id","in":"path","required":true,"schema":{"type":"string","format":"uuid","title":"Domain Id"}}],"responses":{"204":{"description":"Successful Response"},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/v1/workspaces/{workspace_id}/email-settings/test":{"post":{"tags":["workspaces"],"summary":"Send Test Email","description":"Send a sample invitation with the given settings to the requesting user.","operationId":"send_test_email_v1_workspaces__workspace_id__email_settings_test_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/WorkspaceEmailTestRequest"}}}},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/WorkspaceEmailTestResponse"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/v1/workspaces/{workspace_id}/setup/skip":{"post":{"tags":["workspaces"],"summary":"Skip Workspace Setup","description":"Mark workspace setup as skipped; users can complete it later.","operationId":"skip_workspace_setup_v1_workspaces__workspace_id__setup_skip_post","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":{"$ref":"#/components/schemas/WorkspaceOut"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/v1/workspaces/{workspace_id}/setup/complete":{"post":{"tags":["workspaces"],"summary":"Complete Workspace Setup","description":"Mark workspace setup complete and optionally refresh the foundation.","operationId":"complete_workspace_setup_v1_workspaces__workspace_id__setup_complete_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/WorkspaceSetupCompleteRequest"}}}},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/WorkspaceOut"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/v1/workspaces/{workspace_id}/foundation/rebuild":{"post":{"tags":["workspaces"],"summary":"Rebuild Workspace Foundation","description":"Queue a rebuild of the workspace company foundation.","operationId":"rebuild_workspace_foundation_v1_workspaces__workspace_id__foundation_rebuild_post","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":{"$ref":"#/components/schemas/WorkspaceFoundationRebuildResponse"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/v1/workspaces/{workspace_id}/foundation/profile":{"get":{"tags":["workspaces"],"summary":"Get Workspace Foundation Profile","operationId":"get_workspace_foundation_profile_v1_workspaces__workspace_id__foundation_profile_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":{"$ref":"#/components/schemas/WorkspaceFoundationProfileOut"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/v1/workspaces/{workspace_id}/foundation/notion/pages":{"get":{"tags":["workspaces"],"summary":"List Workspace Foundation Notion Pages","description":"List accessible Notion pages for the workspace foundation picker.","operationId":"list_workspace_foundation_notion_pages_v1_workspaces__workspace_id__foundation_notion_pages_get","security":[{"HTTPBearer":[]}],"parameters":[{"name":"workspace_id","in":"path","required":true,"schema":{"type":"string","format":"uuid","title":"Workspace Id"}},{"name":"nango_connection_id","in":"query","required":true,"schema":{"type":"string","title":"Nango Connection Id"}},{"name":"query","in":"query","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Query"}},{"name":"limit","in":"query","required":false,"schema":{"type":"integer","default":50,"title":"Limit"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ListNotionPagesResponse"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/v1/workspaces/{workspace_id}/foundation/notion/import":{"post":{"tags":["workspaces"],"summary":"Import Workspace Foundation Notion Pages","description":"Copy selected Notion pages into the company foundation source.","operationId":"import_workspace_foundation_notion_pages_v1_workspaces__workspace_id__foundation_notion_import_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/ImportFoundationNotionRequest"}}}},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ImportFoundationNotionResponse"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/v1/workspaces/{workspace_id}/access-requests":{"get":{"tags":["workspaces"],"summary":"List Workspace Access Requests","description":"Pending requests to join this workspace. Admins only.","operationId":"list_workspace_access_requests_v1_workspaces__workspace_id__access_requests_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/WorkspaceAccessRequestOut"},"title":"Response List Workspace Access Requests V1 Workspaces  Workspace Id  Access Requests Get"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/v1/workspaces/{workspace_id}/access-requests/{request_id}":{"post":{"tags":["workspaces"],"summary":"Decide Workspace Access Request","description":"Approve or decline a request to join. Admins only.\n\nApproving sends a real Clerk organization invitation rather than writing the\nmembership directly: the invitee still has to accept, the membership then\narrives through ``organizationMembership.created`` like every other one, and\nClerk stays the single source of truth for who is in the organization.","operationId":"decide_workspace_access_request_v1_workspaces__workspace_id__access_requests__request_id__post","security":[{"HTTPBearer":[]}],"parameters":[{"name":"workspace_id","in":"path","required":true,"schema":{"type":"string","format":"uuid","title":"Workspace Id"}},{"name":"request_id","in":"path","required":true,"schema":{"type":"string","format":"uuid","title":"Request Id"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/WorkspaceAccessDecision"}}}},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/WorkspaceAccessRequestOut"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/v1/billing/access":{"get":{"tags":["billing"],"summary":"Get Billing Access","operationId":"get_billing_access_v1_billing_access_get","security":[{"HTTPBearer":[]}],"parameters":[{"name":"workspace_id","in":"query","required":true,"schema":{"type":"string","format":"uuid","title":"Workspace Id"}},{"name":"refresh_subscription","in":"query","required":false,"schema":{"type":"boolean","default":false,"title":"Refresh Subscription"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/BillingAccessOut"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/v1/billing/checkout-session":{"post":{"tags":["billing"],"summary":"Create Billing Checkout Session","operationId":"create_billing_checkout_session_v1_billing_checkout_session_post","requestBody":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/CheckoutSessionRequest"}}},"required":true},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/CheckoutSessionOut"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}},"security":[{"HTTPBearer":[]}]}},"/v1/billing/customer-portal-session":{"post":{"tags":["billing"],"summary":"Create Billing Customer Portal Session","operationId":"create_billing_customer_portal_session_v1_billing_customer_portal_session_post","requestBody":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/CustomerPortalRequest"}}},"required":true},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/CustomerPortalOut"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}},"security":[{"HTTPBearer":[]}]}},"/v1/billing/stripe/webhook":{"post":{"tags":["billing"],"summary":"Stripe Webhook","operationId":"stripe_webhook_v1_billing_stripe_webhook_post","parameters":[{"name":"Stripe-Signature","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Stripe-Signature"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/WebhookResponse"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/v1/api-keys":{"post":{"tags":["api-keys"],"summary":"Create Api Key","description":"Create a new workspace-scoped API key.\n\nThe full key is returned once — save it immediately.","operationId":"create_api_key_v1_api_keys_post","security":[{"HTTPBearer":[]}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/app__api__api_keys__ApiKeyCreate"}}}},"responses":{"201":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/app__api__api_keys__ApiKeyCreatedOut"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}},"get":{"tags":["api-keys"],"summary":"List Api Keys","description":"List all API keys for a workspace.","operationId":"list_api_keys_v1_api_keys_get","security":[{"HTTPBearer":[]}],"parameters":[{"name":"workspace_id","in":"query","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/app__api__api_keys__ApiKeyOut"},"title":"Response List Api Keys V1 Api Keys Get"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/v1/api-keys/current":{"get":{"tags":["api-keys"],"summary":"Get Current Api Key","description":"Validate and describe the workspace API key in ``X-API-Key``.","operationId":"get_current_api_key_v1_api_keys_current_get","parameters":[{"name":"X-API-Key","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"X-Api-Key"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/CurrentApiKeyOut"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/v1/api-keys/{key_id}":{"delete":{"tags":["api-keys"],"summary":"Delete Api Key","description":"Revoke an API key (removes from Unkey and local DB).","operationId":"delete_api_key_v1_api_keys__key_id__delete","security":[{"HTTPBearer":[]}],"parameters":[{"name":"key_id","in":"path","required":true,"schema":{"type":"string","format":"uuid","title":"Key Id"}}],"responses":{"204":{"description":"Successful Response"},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/v1/vaults":{"post":{"tags":["vaults"],"summary":"Create Vault","operationId":"create_vault_v1_vaults_post","security":[{"HTTPBearer":[]}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/VaultCreate"}}}},"responses":{"201":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/VaultOut"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}},"get":{"tags":["vaults"],"summary":"List Vaults","operationId":"list_vaults_v1_vaults_get","security":[{"HTTPBearer":[]}],"parameters":[{"name":"workspace_id","in":"query","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/VaultOut"},"title":"Response List Vaults V1 Vaults Get"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/v1/vaults/{vault_id}":{"patch":{"tags":["vaults"],"summary":"Update Vault","operationId":"update_vault_v1_vaults__vault_id__patch","security":[{"HTTPBearer":[]}],"parameters":[{"name":"vault_id","in":"path","required":true,"schema":{"type":"string","format":"uuid","title":"Vault Id"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/VaultUpdate"}}}},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/VaultOut"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}},"delete":{"tags":["vaults"],"summary":"Delete Vault","operationId":"delete_vault_v1_vaults__vault_id__delete","security":[{"HTTPBearer":[]}],"parameters":[{"name":"vault_id","in":"path","required":true,"schema":{"type":"string","format":"uuid","title":"Vault Id"}}],"responses":{"204":{"description":"Successful Response"},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/v1/vaults/{vault_id}/connections":{"get":{"tags":["vaults"],"summary":"Get Vault Connections","description":"Get all connections assigned to a vault.","operationId":"get_vault_connections_v1_vaults__vault_id__connections_get","security":[{"HTTPBearer":[]}],"parameters":[{"name":"vault_id","in":"path","required":true,"schema":{"type":"string","format":"uuid","title":"Vault Id"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"type":"array","items":{"$ref":"#/components/schemas/ConnectionOut"},"title":"Response Get Vault Connections V1 Vaults  Vault Id  Connections Get"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}},"put":{"tags":["vaults"],"summary":"Update Vault Connections","description":"Replace all connection assignments for a vault.","operationId":"update_vault_connections_v1_vaults__vault_id__connections_put","security":[{"HTTPBearer":[]}],"parameters":[{"name":"vault_id","in":"path","required":true,"schema":{"type":"string","format":"uuid","title":"Vault Id"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/UpdateVaultConnectionsRequest"}}}},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/VaultConnectionsOut"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/v1/vaults/{vault_id}/api-keys":{"post":{"tags":["vaults"],"summary":"Create Api Key Endpoint","description":"Create a new API key for programmatic vault access via Unkey.\n\nThe full API key is only returned once on creation - save it immediately!","operationId":"create_api_key_endpoint_v1_vaults__vault_id__api_keys_post","security":[{"HTTPBearer":[]}],"parameters":[{"name":"vault_id","in":"path","required":true,"schema":{"type":"string","format":"uuid","title":"Vault Id"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/app__api__vaults__ApiKeyCreate"}}}},"responses":{"201":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/app__api__vaults__ApiKeyCreatedOut"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}},"get":{"tags":["vaults"],"summary":"List Api Keys","description":"List all API keys for a vault.","operationId":"list_api_keys_v1_vaults__vault_id__api_keys_get","security":[{"HTTPBearer":[]}],"parameters":[{"name":"vault_id","in":"path","required":true,"schema":{"type":"string","format":"uuid","title":"Vault Id"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"type":"array","items":{"$ref":"#/components/schemas/app__api__vaults__ApiKeyOut"},"title":"Response List Api Keys V1 Vaults  Vault Id  Api Keys Get"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/v1/vaults/{vault_id}/api-keys/{key_id}":{"delete":{"tags":["vaults"],"summary":"Delete Api Key Endpoint","description":"Delete an API key (revokes it in Unkey and removes from database).","operationId":"delete_api_key_endpoint_v1_vaults__vault_id__api_keys__key_id__delete","security":[{"HTTPBearer":[]}],"parameters":[{"name":"vault_id","in":"path","required":true,"schema":{"type":"string","format":"uuid","title":"Vault Id"}},{"name":"key_id","in":"path","required":true,"schema":{"type":"string","format":"uuid","title":"Key Id"}}],"responses":{"204":{"description":"Successful Response"},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/v1/vaults/{vault_id}/retrieval-logs":{"get":{"tags":["vaults"],"summary":"List Retrieval Logs","description":"List retrieval logs for a vault (most recent first).","operationId":"list_retrieval_logs_v1_vaults__vault_id__retrieval_logs_get","security":[{"HTTPBearer":[]}],"parameters":[{"name":"vault_id","in":"path","required":true,"schema":{"type":"string","format":"uuid","title":"Vault Id"}},{"name":"limit","in":"query","required":false,"schema":{"type":"integer","maximum":1000,"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":"array","items":{"$ref":"#/components/schemas/RetrievalLogOut"},"title":"Response List Retrieval Logs V1 Vaults  Vault Id  Retrieval Logs Get"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/v1/vaults/{vault_id}/retrieval-logs/{log_id}":{"get":{"tags":["vaults"],"summary":"Get Retrieval Log","description":"Get a single retrieval log by ID.","operationId":"get_retrieval_log_v1_vaults__vault_id__retrieval_logs__log_id__get","security":[{"HTTPBearer":[]}],"parameters":[{"name":"vault_id","in":"path","required":true,"schema":{"type":"string","format":"uuid","title":"Vault Id"}},{"name":"log_id","in":"path","required":true,"schema":{"type":"string","format":"uuid","title":"Log Id"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/RetrievalLogOut"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/v1/projects":{"post":{"tags":["projects"],"summary":"Create Project","description":"Create a new project with optional vault associations.","operationId":"create_project_v1_projects_post","security":[{"HTTPBearer":[]}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ProjectCreate"}}}},"responses":{"201":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ProjectOut"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}},"get":{"tags":["projects"],"summary":"List Projects","description":"List all projects in a workspace.","operationId":"list_projects_v1_projects_get","security":[{"HTTPBearer":[]}],"parameters":[{"name":"workspace_id","in":"query","required":true,"schema":{"type":"string","format":"uuid","description":"Filter by workspace","title":"Workspace Id"},"description":"Filter by workspace"},{"name":"status","in":"query","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"description":"Filter by status (active, archived)","title":"Status"},"description":"Filter by status (active, archived)"}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"type":"array","items":{"$ref":"#/components/schemas/ProjectOut"},"title":"Response List Projects V1 Projects Get"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/v1/projects/{project_id}":{"get":{"tags":["projects"],"summary":"Get Project","description":"Get a single project by ID.","operationId":"get_project_v1_projects__project_id__get","security":[{"HTTPBearer":[]}],"parameters":[{"name":"project_id","in":"path","required":true,"schema":{"type":"string","format":"uuid","title":"Project Id"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ProjectOut"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}},"patch":{"tags":["projects"],"summary":"Update Project","description":"Update a project.","operationId":"update_project_v1_projects__project_id__patch","security":[{"HTTPBearer":[]}],"parameters":[{"name":"project_id","in":"path","required":true,"schema":{"type":"string","format":"uuid","title":"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/ProjectOut"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}},"delete":{"tags":["projects"],"summary":"Delete Project","description":"Delete a project and its associated data.\n\nThis will also clean up:\n- Vault associations\n- Chat sessions and messages (TODO)\n- PRJ_Node/PRJ_REL in Neo4j (TODO)","operationId":"delete_project_v1_projects__project_id__delete","security":[{"HTTPBearer":[]}],"parameters":[{"name":"project_id","in":"path","required":true,"schema":{"type":"string","format":"uuid","title":"Project Id"}}],"responses":{"204":{"description":"Successful Response"},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/v1/projects/{project_id}/graph":{"get":{"tags":["projects"],"summary":"Get Graph","description":"Get the project graph for UI visualization.","operationId":"get_graph_v1_projects__project_id__graph_get","security":[{"HTTPBearer":[]}],"parameters":[{"name":"project_id","in":"path","required":true,"schema":{"type":"string","format":"uuid","title":"Project Id"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ProjectGraphOut"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/v1/projects/{project_id}/graph/update":{"post":{"tags":["projects"],"summary":"Update Graph","description":"Update the project graph with new nodes and edges.\n\nThis is the primary endpoint for adding data to the project graph,\ntypically called after processing a chat message.","operationId":"update_graph_v1_projects__project_id__graph_update_post","security":[{"HTTPBearer":[]}],"parameters":[{"name":"project_id","in":"path","required":true,"schema":{"type":"string","format":"uuid","title":"Project Id"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/GraphUpdateRequest"}}}},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/GraphUpdateResponse"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/v1/projects/{project_id}/graph/nodes/{node_key}":{"delete":{"tags":["projects"],"summary":"Delete Graph Node","description":"Delete a node from the project graph.","operationId":"delete_graph_node_v1_projects__project_id__graph_nodes__node_key__delete","security":[{"HTTPBearer":[]}],"parameters":[{"name":"project_id","in":"path","required":true,"schema":{"type":"string","format":"uuid","title":"Project Id"}},{"name":"node_key","in":"path","required":true,"schema":{"type":"string","title":"Node Key"}}],"responses":{"204":{"description":"Successful Response"},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/v1/projects/{project_id}/sync":{"post":{"tags":["projects"],"summary":"Sync To Ukl","description":"Sync selected PRJ nodes and edges to UKL.\n\nThis is the explicit sync operation that promotes project graph\ninsights back to the Unified Knowledge Layer.\n\nGUARDRAIL: Only adds to UKL, never overwrites existing data.","operationId":"sync_to_ukl_v1_projects__project_id__sync_post","security":[{"HTTPBearer":[]}],"parameters":[{"name":"project_id","in":"path","required":true,"schema":{"type":"string","format":"uuid","title":"Project Id"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/SyncRequest"}}}},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/SyncResponse"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/v1/projects/{project_id}/sync/preview":{"post":{"tags":["projects"],"summary":"Preview Sync","description":"Preview what would be synced without actually syncing.\n\nReturns details about each node/edge and what action would be taken.","operationId":"preview_sync_v1_projects__project_id__sync_preview_post","security":[{"HTTPBearer":[]}],"parameters":[{"name":"project_id","in":"path","required":true,"schema":{"type":"string","format":"uuid","title":"Project Id"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/SyncRequest"}}}},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/SyncPreviewResponse"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/v1/projects/{project_id}/sync/log":{"get":{"tags":["projects"],"summary":"Get Project Sync Log","description":"Get sync log entries for a project.","operationId":"get_project_sync_log_v1_projects__project_id__sync_log_get","security":[{"HTTPBearer":[]}],"parameters":[{"name":"project_id","in":"path","required":true,"schema":{"type":"string","format":"uuid","title":"Project Id"}},{"name":"limit","in":"query","required":false,"schema":{"type":"integer","default":50,"title":"Limit"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"type":"array","items":{"$ref":"#/components/schemas/SyncLogEntry"},"title":"Response Get Project Sync Log V1 Projects  Project Id  Sync Log Get"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/v1/projects/{project_id}/contacts":{"post":{"tags":["projects"],"summary":"Add Contact","description":"Add a contact to a project.\n\nCreates or finds a Person in the knowledge graph (Neo4j) and creates\na CONTACT_FOR relationship to the project. The Person may also be\nlinked to a Company based on email domain.","operationId":"add_contact_v1_projects__project_id__contacts_post","security":[{"HTTPBearer":[]}],"parameters":[{"name":"project_id","in":"path","required":true,"schema":{"type":"string","format":"uuid","title":"Project Id"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/app__api__projects__ContactCreate"}}}},"responses":{"201":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/app__api__projects__ContactOut"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}},"get":{"tags":["projects"],"summary":"List Contacts","description":"List all contacts for a project.\n\nReturns Person nodes with CONTACT_FOR relationships to the project,\nincluding company information if available.","operationId":"list_contacts_v1_projects__project_id__contacts_get","security":[{"HTTPBearer":[]}],"parameters":[{"name":"project_id","in":"path","required":true,"schema":{"type":"string","format":"uuid","title":"Project Id"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ContactsResponse"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/v1/projects/{project_id}/contacts/{person_key}":{"delete":{"tags":["projects"],"summary":"Remove Contact","description":"Remove a contact from a project.\n\nOnly removes the CONTACT_FOR relationship; the Person node remains\nin the knowledge graph as they may be referenced elsewhere.","operationId":"remove_contact_v1_projects__project_id__contacts__person_key__delete","security":[{"HTTPBearer":[]}],"parameters":[{"name":"project_id","in":"path","required":true,"schema":{"type":"string","format":"uuid","title":"Project Id"}},{"name":"person_key","in":"path","required":true,"schema":{"type":"string","title":"Person Key"}}],"responses":{"204":{"description":"Successful Response"},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/v1/projects/{project_id}/contacts/count":{"get":{"tags":["projects"],"summary":"Get Contacts Count","description":"Get the number of contacts for a project.\n\nUsed for onboarding flow to check if project needs contacts.","operationId":"get_contacts_count_v1_projects__project_id__contacts_count_get","security":[{"HTTPBearer":[]}],"parameters":[{"name":"project_id","in":"path","required":true,"schema":{"type":"string","format":"uuid","title":"Project Id"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/v1/projects/{project_id}/interviews":{"get":{"tags":["projects"],"summary":"Get Project Interviews","description":"Get all interviews linked to a project.\n\nReturns interview list with contact/completion counts.\nOptional status filter: draft, active, paused, completed.","operationId":"get_project_interviews_v1_projects__project_id__interviews_get","security":[{"HTTPBearer":[]}],"parameters":[{"name":"project_id","in":"path","required":true,"schema":{"type":"string","format":"uuid","title":"Project Id"}},{"name":"status","in":"query","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Status"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/v1/projects/{project_id}/artifacts":{"post":{"tags":["artifacts"],"summary":"Create Artifact","description":"Create a new artifact for a project.\n\nCalled by the chat API when a visualization tool is invoked.","operationId":"create_artifact_v1_projects__project_id__artifacts_post","security":[{"HTTPBearer":[]}],"parameters":[{"name":"project_id","in":"path","required":true,"schema":{"type":"string","format":"uuid","title":"Project Id"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ArtifactCreate"}}}},"responses":{"201":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ArtifactOut"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}},"get":{"tags":["artifacts"],"summary":"List Artifacts","description":"List all artifacts for a project.\n\nReturns artifacts ordered by creation date (newest first).","operationId":"list_artifacts_v1_projects__project_id__artifacts_get","security":[{"HTTPBearer":[]}],"parameters":[{"name":"project_id","in":"path","required":true,"schema":{"type":"string","format":"uuid","title":"Project Id"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"type":"array","items":{"$ref":"#/components/schemas/ArtifactOut"},"title":"Response List Artifacts V1 Projects  Project Id  Artifacts Get"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/v1/projects/{project_id}/artifacts/{artifact_id}":{"get":{"tags":["artifacts"],"summary":"Get Artifact","description":"Get a single artifact by ID.","operationId":"get_artifact_v1_projects__project_id__artifacts__artifact_id__get","security":[{"HTTPBearer":[]}],"parameters":[{"name":"project_id","in":"path","required":true,"schema":{"type":"string","format":"uuid","title":"Project Id"}},{"name":"artifact_id","in":"path","required":true,"schema":{"type":"string","format":"uuid","title":"Artifact Id"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ArtifactOut"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}},"delete":{"tags":["artifacts"],"summary":"Delete Artifact","description":"Delete an artifact.","operationId":"delete_artifact_v1_projects__project_id__artifacts__artifact_id__delete","security":[{"HTTPBearer":[]}],"parameters":[{"name":"project_id","in":"path","required":true,"schema":{"type":"string","format":"uuid","title":"Project Id"}},{"name":"artifact_id","in":"path","required":true,"schema":{"type":"string","format":"uuid","title":"Artifact Id"}}],"responses":{"204":{"description":"Successful Response"},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/v1/projects/{project_id}/chat/sessions":{"post":{"tags":["chat"],"summary":"Create Session","description":"Create a new chat session in a project.","operationId":"create_session_v1_projects__project_id__chat_sessions_post","security":[{"HTTPBearer":[]}],"parameters":[{"name":"project_id","in":"path","required":true,"schema":{"type":"string","format":"uuid","title":"Project Id"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ChatSessionCreate"}}}},"responses":{"201":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ChatSessionOut"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}},"get":{"tags":["chat"],"summary":"List Sessions","description":"List all chat sessions in a project.","operationId":"list_sessions_v1_projects__project_id__chat_sessions_get","security":[{"HTTPBearer":[]}],"parameters":[{"name":"project_id","in":"path","required":true,"schema":{"type":"string","format":"uuid","title":"Project Id"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"type":"array","items":{"$ref":"#/components/schemas/ChatSessionOut"},"title":"Response List Sessions V1 Projects  Project Id  Chat Sessions Get"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/v1/projects/{project_id}/chat/sessions/{session_id}":{"get":{"tags":["chat"],"summary":"Get Session","description":"Get a single chat session.","operationId":"get_session_v1_projects__project_id__chat_sessions__session_id__get","security":[{"HTTPBearer":[]}],"parameters":[{"name":"project_id","in":"path","required":true,"schema":{"type":"string","format":"uuid","title":"Project Id"}},{"name":"session_id","in":"path","required":true,"schema":{"type":"string","format":"uuid","title":"Session Id"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ChatSessionOut"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}},"patch":{"tags":["chat"],"summary":"Update Session","description":"Update a chat session (e.g., title).","operationId":"update_session_v1_projects__project_id__chat_sessions__session_id__patch","security":[{"HTTPBearer":[]}],"parameters":[{"name":"project_id","in":"path","required":true,"schema":{"type":"string","format":"uuid","title":"Project Id"}},{"name":"session_id","in":"path","required":true,"schema":{"type":"string","format":"uuid","title":"Session Id"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ChatSessionUpdate"}}}},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ChatSessionOut"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}},"delete":{"tags":["chat"],"summary":"Delete Session","description":"Delete a chat session and all its messages.","operationId":"delete_session_v1_projects__project_id__chat_sessions__session_id__delete","security":[{"HTTPBearer":[]}],"parameters":[{"name":"project_id","in":"path","required":true,"schema":{"type":"string","format":"uuid","title":"Project Id"}},{"name":"session_id","in":"path","required":true,"schema":{"type":"string","format":"uuid","title":"Session Id"}}],"responses":{"204":{"description":"Successful Response"},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/v1/projects/{project_id}/chat/sessions/{session_id}/messages":{"post":{"tags":["chat"],"summary":"Create Message","description":"Create a new chat message in a session.\n\nIf graph_delta is provided, the corresponding PRJ nodes/edges will be\ncreated in the project graph.","operationId":"create_message_v1_projects__project_id__chat_sessions__session_id__messages_post","security":[{"HTTPBearer":[]}],"parameters":[{"name":"project_id","in":"path","required":true,"schema":{"type":"string","format":"uuid","title":"Project Id"}},{"name":"session_id","in":"path","required":true,"schema":{"type":"string","format":"uuid","title":"Session Id"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ChatMessageCreate"}}}},"responses":{"201":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ChatMessageOut"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}},"get":{"tags":["chat"],"summary":"List Messages","description":"List all messages in a chat session.","operationId":"list_messages_v1_projects__project_id__chat_sessions__session_id__messages_get","security":[{"HTTPBearer":[]}],"parameters":[{"name":"project_id","in":"path","required":true,"schema":{"type":"string","format":"uuid","title":"Project Id"}},{"name":"session_id","in":"path","required":true,"schema":{"type":"string","format":"uuid","title":"Session Id"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"type":"array","items":{"$ref":"#/components/schemas/ChatMessageOut"},"title":"Response List Messages V1 Projects  Project Id  Chat Sessions  Session Id  Messages Get"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/v1/projects/{project_id}/chat/sessions/{session_id}/chat":{"post":{"tags":["chat"],"summary":"Chat With Llm","description":"Send a message and get an LLM response with graph extraction.\n\nThis endpoint:\n1. Retrieves context from the project's associated vaults\n2. Includes conversation history\n3. Calls the LLM to generate a response and extract entities/relationships\n4. Writes extracted graph data to the project graph\n5. Stores both user and assistant messages","operationId":"chat_with_llm_v1_projects__project_id__chat_sessions__session_id__chat_post","security":[{"HTTPBearer":[]}],"parameters":[{"name":"project_id","in":"path","required":true,"schema":{"type":"string","format":"uuid","title":"Project Id"}},{"name":"session_id","in":"path","required":true,"schema":{"type":"string","format":"uuid","title":"Session Id"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ChatRequest"}}}},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ChatResponse"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/v1/projects/{project_id}/data/upload":{"post":{"tags":["data-input"],"summary":"Upload File","description":"Upload a file for processing.\n\nAccepts any file type - the format detection agent will determine how to parse it.","operationId":"upload_file_v1_projects__project_id__data_upload_post","security":[{"HTTPBearer":[]}],"parameters":[{"name":"project_id","in":"path","required":true,"schema":{"type":"string","title":"Project Id"}}],"requestBody":{"required":true,"content":{"multipart/form-data":{"schema":{"$ref":"#/components/schemas/Body_upload_file_v1_projects__project_id__data_upload_post"}}}},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/DataInputResponse"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/v1/projects/{project_id}/data/fetch":{"post":{"tags":["data-input"],"summary":"Fetch Url","description":"Fetch data from a URL.\n\nCan fetch webpages, API responses, file downloads, etc.","operationId":"fetch_url_v1_projects__project_id__data_fetch_post","security":[{"HTTPBearer":[]}],"parameters":[{"name":"project_id","in":"path","required":true,"schema":{"type":"string","title":"Project Id"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/UrlFetchRequest"}}}},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/DataInputResponse"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/v1/projects/{project_id}/data/paste":{"post":{"tags":["data-input"],"summary":"Paste Content","description":"Accept pasted/raw text content.\n\nUser can paste CSV, JSON, or any text data directly.","operationId":"paste_content_v1_projects__project_id__data_paste_post","security":[{"HTTPBearer":[]}],"parameters":[{"name":"project_id","in":"path","required":true,"schema":{"type":"string","title":"Project Id"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/PasteRequest"}}}},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/DataInputResponse"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/v1/projects/{project_id}/data/webhook":{"post":{"tags":["data-input"],"summary":"Webhook Input","description":"Accept programmatic data input via webhook.\n\nFor automated systems to push data into the platform.","operationId":"webhook_input_v1_projects__project_id__data_webhook_post","security":[{"HTTPBearer":[]}],"parameters":[{"name":"project_id","in":"path","required":true,"schema":{"type":"string","title":"Project Id"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/WebhookRequest"}}}},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/DataInputResponse"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/v1/projects/{project_id}/data/{input_id}":{"get":{"tags":["data-input"],"summary":"Get Input Status","description":"Get the status of a data input.","operationId":"get_input_status_v1_projects__project_id__data__input_id__get","security":[{"HTTPBearer":[]}],"parameters":[{"name":"project_id","in":"path","required":true,"schema":{"type":"string","title":"Project Id"}},{"name":"input_id","in":"path","required":true,"schema":{"type":"string","title":"Input Id"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/DataInputStatus"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/v1/projects/{project_id}/data/{input_id}/content":{"get":{"tags":["data-input"],"summary":"Get Input Content","description":"Get the raw content of a data input.","operationId":"get_input_content_v1_projects__project_id__data__input_id__content_get","security":[{"HTTPBearer":[]}],"parameters":[{"name":"project_id","in":"path","required":true,"schema":{"type":"string","title":"Project Id"}},{"name":"input_id","in":"path","required":true,"schema":{"type":"string","title":"Input Id"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/v1/projects/{project_id}/data/":{"get":{"tags":["data-input"],"summary":"List Inputs","description":"List data inputs for a project.","operationId":"list_inputs_v1_projects__project_id__data__get","security":[{"HTTPBearer":[]}],"parameters":[{"name":"project_id","in":"path","required":true,"schema":{"type":"string","title":"Project Id"}},{"name":"status","in":"query","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Status"}},{"name":"limit","in":"query","required":false,"schema":{"type":"integer","default":50,"title":"Limit"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"type":"array","items":{"$ref":"#/components/schemas/DataInputResponse"},"title":"Response List Inputs V1 Projects  Project Id  Data  Get"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/v1/ingest/document":{"post":{"tags":["ingest"],"summary":"Ingest Document","operationId":"ingest_document_v1_ingest_document_post","requestBody":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/IngestDocumentRequest"}}},"required":true},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/IngestDocumentResponse"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}},"security":[{"HTTPBearer":[]}]}},"/v1/interviews":{"post":{"tags":["interviews"],"summary":"Create Interview","operationId":"create_interview_v1_interviews_post","security":[{"HTTPBearer":[]}],"parameters":[{"name":"X-API-Key","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"X-Api-Key"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/InterviewCreate"}}}},"responses":{"201":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/InterviewOut"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}},"get":{"tags":["interviews"],"summary":"List Interviews","operationId":"list_interviews_v1_interviews_get","security":[{"HTTPBearer":[]}],"parameters":[{"name":"workspace_id","in":"query","required":true,"schema":{"type":"string","format":"uuid","title":"Workspace Id"}},{"name":"status","in":"query","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Status"}},{"name":"X-API-Key","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"X-Api-Key"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"type":"array","items":{"$ref":"#/components/schemas/InterviewOut"},"title":"Response List Interviews V1 Interviews Get"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/v1/interviews/list-page":{"get":{"tags":["interviews"],"summary":"List Interviews Page","description":"Return the interviews list page read model in one authorized request.","operationId":"list_interviews_page_v1_interviews_list_page_get","security":[{"HTTPBearer":[]}],"parameters":[{"name":"workspace_id","in":"query","required":true,"schema":{"type":"string","format":"uuid","title":"Workspace Id"}},{"name":"X-API-Key","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"X-Api-Key"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/InterviewListPageOut"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/v1/interviews/folders":{"get":{"tags":["interviews"],"summary":"List Interview Folders","operationId":"list_interview_folders_v1_interviews_folders_get","security":[{"HTTPBearer":[]}],"parameters":[{"name":"workspace_id","in":"query","required":true,"schema":{"type":"string","format":"uuid","title":"Workspace Id"}},{"name":"X-API-Key","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"X-Api-Key"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"type":"array","items":{"$ref":"#/components/schemas/InterviewFolderOut"},"title":"Response List Interview Folders V1 Interviews Folders Get"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}},"post":{"tags":["interviews"],"summary":"Create Interview Folder","operationId":"create_interview_folder_v1_interviews_folders_post","security":[{"HTTPBearer":[]}],"parameters":[{"name":"X-API-Key","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"X-Api-Key"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/InterviewFolderCreate"}}}},"responses":{"201":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/InterviewFolderOut"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/v1/interviews/folders/{folder_id}":{"delete":{"tags":["interviews"],"summary":"Delete Interview Folder","operationId":"delete_interview_folder_v1_interviews_folders__folder_id__delete","security":[{"HTTPBearer":[]}],"parameters":[{"name":"folder_id","in":"path","required":true,"schema":{"type":"string","format":"uuid","title":"Folder Id"}},{"name":"X-API-Key","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"X-Api-Key"}}],"responses":{"204":{"description":"Successful Response"},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/v1/interviews/{interview_id}":{"get":{"tags":["interviews"],"summary":"Get Interview","operationId":"get_interview_v1_interviews__interview_id__get","security":[{"HTTPBearer":[]}],"parameters":[{"name":"interview_id","in":"path","required":true,"schema":{"type":"string","format":"uuid","title":"Interview Id"}},{"name":"X-API-Key","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"X-Api-Key"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/InterviewOut"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}},"patch":{"tags":["interviews"],"summary":"Update Interview","operationId":"update_interview_v1_interviews__interview_id__patch","security":[{"HTTPBearer":[]}],"parameters":[{"name":"interview_id","in":"path","required":true,"schema":{"type":"string","format":"uuid","title":"Interview Id"}},{"name":"X-API-Key","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"X-Api-Key"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/InterviewUpdate"}}}},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/InterviewOut"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}},"delete":{"tags":["interviews"],"summary":"Delete Interview","operationId":"delete_interview_v1_interviews__interview_id__delete","security":[{"HTTPBearer":[]}],"parameters":[{"name":"interview_id","in":"path","required":true,"schema":{"type":"string","format":"uuid","title":"Interview Id"}},{"name":"X-API-Key","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"X-Api-Key"}}],"responses":{"204":{"description":"Successful Response"},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/v1/interviews/{interview_id}/shell":{"get":{"tags":["interviews"],"summary":"Get Interview Shell","description":"Return the small campaign header/progress read model used by shell pages.","operationId":"get_interview_shell_v1_interviews__interview_id__shell_get","security":[{"HTTPBearer":[]}],"parameters":[{"name":"interview_id","in":"path","required":true,"schema":{"type":"string","format":"uuid","title":"Interview Id"}},{"name":"X-API-Key","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"X-Api-Key"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/app__api__interviews__CampaignShellOut"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/v1/interviews/{interview_id}/detail":{"get":{"tags":["interviews"],"summary":"Get Interview Detail","description":"Get interview with contacts and question sets in a single call.\n\nThis is much more efficient than calling separate endpoints,\nas it reduces the number of database roundtrips and auth checks.","operationId":"get_interview_detail_v1_interviews__interview_id__detail_get","security":[{"HTTPBearer":[]}],"parameters":[{"name":"interview_id","in":"path","required":true,"schema":{"type":"string","format":"uuid","title":"Interview Id"}},{"name":"X-API-Key","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"X-Api-Key"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/InterviewDetailOut"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/v1/interviews/{interview_id}/result-summary/send":{"post":{"tags":["interviews"],"summary":"Send Result Summary","description":"Send the campaign result summary to all opted-in participants.\n\nGenerates the participant-facing summary text once (from the latest ready\nreport's artifacts, in the campaign participant language), stores it on the\nInterview, and enqueues one SEND_RESULT_SUMMARY job per pending recipient.\n\nThe LLM generation runs between two short sessions so no pooled DB\nconnection stays pinned for the full model latency.","operationId":"send_result_summary_v1_interviews__interview_id__result_summary_send_post","security":[{"HTTPBearer":[]}],"parameters":[{"name":"interview_id","in":"path","required":true,"schema":{"type":"string","format":"uuid","title":"Interview Id"}},{"name":"X-API-Key","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"X-Api-Key"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/v1/interviews/{interview_id}/invitation-message/suggest":{"post":{"tags":["interviews"],"summary":"Suggest Invitation Message","description":"Generate one AI suggestion for the campaign's invitation email message.\n\nWritten in the campaign's participant language with the workspace's\ndu/Sie salutation; repeated calls produce fresh variants because the\ncurrent field text is passed along as wording to avoid.","operationId":"suggest_invitation_message_v1_interviews__interview_id__invitation_message_suggest_post","security":[{"HTTPBearer":[]}],"parameters":[{"name":"interview_id","in":"path","required":true,"schema":{"type":"string","format":"uuid","title":"Interview Id"}},{"name":"X-API-Key","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"X-Api-Key"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/InvitationSuggestionRequest"}}}},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/InvitationSuggestionResponse"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/v1/interviews/{interview_id}/duplicate":{"post":{"tags":["interviews"],"summary":"Duplicate Interview","description":"Duplicate a campaign 1:1 into a new draft, regardless of its status.\n\nCopies the full setup (config, guide draft, question sets + questions,\nskill snapshots), the staged participants, and the creation-agent chat.\nRuntime artifacts (invitations, conversations, reports, share links) are\nnever copied — the duplicate starts as a fresh, unsent draft.","operationId":"duplicate_interview_v1_interviews__interview_id__duplicate_post","security":[{"HTTPBearer":[]}],"parameters":[{"name":"interview_id","in":"path","required":true,"schema":{"type":"string","format":"uuid","title":"Interview Id"}},{"name":"X-API-Key","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"X-Api-Key"}}],"requestBody":{"content":{"application/json":{"schema":{"anyOf":[{"$ref":"#/components/schemas/InterviewDuplicateIn"},{"type":"null"}],"title":"Body"}}}},"responses":{"201":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/InterviewOut"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/v1/interviews/{interview_id}/question-sets":{"post":{"tags":["interviews"],"summary":"Create Question Set","operationId":"create_question_set_v1_interviews__interview_id__question_sets_post","security":[{"HTTPBearer":[]}],"parameters":[{"name":"interview_id","in":"path","required":true,"schema":{"type":"string","format":"uuid","title":"Interview Id"}},{"name":"X-API-Key","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"X-Api-Key"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/QuestionSetCreate"}}}},"responses":{"201":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/QuestionSetOut"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}},"get":{"tags":["interviews"],"summary":"List Question Sets","operationId":"list_question_sets_v1_interviews__interview_id__question_sets_get","security":[{"HTTPBearer":[]}],"parameters":[{"name":"interview_id","in":"path","required":true,"schema":{"type":"string","format":"uuid","title":"Interview Id"}},{"name":"X-API-Key","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"X-Api-Key"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"type":"array","items":{"$ref":"#/components/schemas/QuestionSetOut"},"title":"Response List Question Sets V1 Interviews  Interview Id  Question Sets Get"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/v1/interviews/{interview_id}/question-sets/{set_id}":{"delete":{"tags":["interviews"],"summary":"Delete Question Set","operationId":"delete_question_set_v1_interviews__interview_id__question_sets__set_id__delete","security":[{"HTTPBearer":[]}],"parameters":[{"name":"interview_id","in":"path","required":true,"schema":{"type":"string","format":"uuid","title":"Interview Id"}},{"name":"set_id","in":"path","required":true,"schema":{"type":"string","format":"uuid","title":"Set Id"}},{"name":"X-API-Key","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"X-Api-Key"}}],"responses":{"204":{"description":"Successful Response"},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}},"patch":{"tags":["interviews"],"summary":"Update Question Set","operationId":"update_question_set_v1_interviews__interview_id__question_sets__set_id__patch","security":[{"HTTPBearer":[]}],"parameters":[{"name":"interview_id","in":"path","required":true,"schema":{"type":"string","format":"uuid","title":"Interview Id"}},{"name":"set_id","in":"path","required":true,"schema":{"type":"string","format":"uuid","title":"Set Id"}},{"name":"X-API-Key","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"X-Api-Key"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/QuestionSetUpdate"}}}},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/QuestionSetOut"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/v1/interviews/{interview_id}/questions/{question_id}":{"patch":{"tags":["interviews"],"summary":"Update Question","operationId":"update_question_v1_interviews__interview_id__questions__question_id__patch","security":[{"HTTPBearer":[]}],"parameters":[{"name":"interview_id","in":"path","required":true,"schema":{"type":"string","format":"uuid","title":"Interview Id"}},{"name":"question_id","in":"path","required":true,"schema":{"type":"string","format":"uuid","title":"Question Id"}},{"name":"X-API-Key","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"X-Api-Key"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/QuestionUpdate"}}}},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/QuestionOut"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}},"delete":{"tags":["interviews"],"summary":"Delete Question","description":"Delete a single question from an interview.","operationId":"delete_question_v1_interviews__interview_id__questions__question_id__delete","security":[{"HTTPBearer":[]}],"parameters":[{"name":"interview_id","in":"path","required":true,"schema":{"type":"string","format":"uuid","title":"Interview Id"}},{"name":"question_id","in":"path","required":true,"schema":{"type":"string","format":"uuid","title":"Question Id"}},{"name":"X-API-Key","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"X-Api-Key"}}],"responses":{"204":{"description":"Successful Response"},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/v1/interviews/{interview_id}/question-sets/{set_id}/questions":{"post":{"tags":["interviews"],"summary":"Add Question To Set","description":"Add a single question to an existing question set.","operationId":"add_question_to_set_v1_interviews__interview_id__question_sets__set_id__questions_post","security":[{"HTTPBearer":[]}],"parameters":[{"name":"interview_id","in":"path","required":true,"schema":{"type":"string","format":"uuid","title":"Interview Id"}},{"name":"set_id","in":"path","required":true,"schema":{"type":"string","format":"uuid","title":"Set Id"}},{"name":"X-API-Key","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"X-Api-Key"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/QuestionCreate"}}}},"responses":{"201":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/QuestionOut"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/v1/interviews/{interview_id}/contacts":{"post":{"tags":["interviews"],"summary":"Add Contact","operationId":"add_contact_v1_interviews__interview_id__contacts_post","security":[{"HTTPBearer":[]}],"parameters":[{"name":"interview_id","in":"path","required":true,"schema":{"type":"string","format":"uuid","title":"Interview Id"}},{"name":"X-API-Key","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"X-Api-Key"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/app__api__interview_schemas__ContactCreate"}}}},"responses":{"201":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/app__api__interview_schemas__ContactOut"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}},"get":{"tags":["interviews"],"summary":"List Contacts","operationId":"list_contacts_v1_interviews__interview_id__contacts_get","security":[{"HTTPBearer":[]}],"parameters":[{"name":"interview_id","in":"path","required":true,"schema":{"type":"string","format":"uuid","title":"Interview Id"}},{"name":"status","in":"query","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Status"}},{"name":"X-API-Key","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"X-Api-Key"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"type":"array","items":{"$ref":"#/components/schemas/app__api__interview_schemas__ContactOut"},"title":"Response List Contacts V1 Interviews  Interview Id  Contacts Get"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/v1/interviews/{interview_id}/contacts/bulk":{"post":{"tags":["interviews"],"summary":"Add Contacts Bulk","description":"Add multiple contacts in a single request.\n\nThis is much more efficient than calling the single contact endpoint multiple times,\nas it reduces the number of database roundtrips and auth checks.\n\nDuplicates (matching an existing contact — or an earlier row of the same\nbatch — by person_id, email, or slack_user_id) are skipped, not created:\non an active campaign every created row is invited immediately, and the\nclient's own duplicate check is a stale snapshot (a teammate may have\nadded the same person since, or a retried request would double-send).","operationId":"add_contacts_bulk_v1_interviews__interview_id__contacts_bulk_post","security":[{"HTTPBearer":[]}],"parameters":[{"name":"interview_id","in":"path","required":true,"schema":{"type":"string","format":"uuid","title":"Interview Id"}},{"name":"X-API-Key","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"X-Api-Key"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/BulkContactsCreate"}}}},"responses":{"201":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/BulkContactsOut"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/v1/interviews/{interview_id}/contacts/import":{"post":{"tags":["interviews"],"summary":"Import Contacts","description":"Import contacts from a CSV file.\n\nExpected columns: name (required), email, phone, job_title, seniority_level, is_required.\n\nseniority_level values: 1=IC, 2=Manager, 3=Senior Manager, 4=Director, 5=VP, 6=C-level\nis_required values: true/false, yes/no, 1/0\n\nSupports CSV and TSV. Max file size: 5MB. Max contacts: 10,000.","operationId":"import_contacts_v1_interviews__interview_id__contacts_import_post","security":[{"HTTPBearer":[]}],"parameters":[{"name":"interview_id","in":"path","required":true,"schema":{"type":"string","format":"uuid","title":"Interview Id"}},{"name":"question_set_id","in":"query","required":false,"schema":{"anyOf":[{"type":"string","format":"uuid"},{"type":"null"}],"title":"Question Set Id"}},{"name":"X-API-Key","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"X-Api-Key"}}],"requestBody":{"required":true,"content":{"multipart/form-data":{"schema":{"$ref":"#/components/schemas/Body_import_contacts_v1_interviews__interview_id__contacts_import_post"}}}},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ContactImportResult"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/v1/interviews/{interview_id}/contacts/{contact_id}":{"patch":{"tags":["interviews"],"summary":"Update Contact","description":"Partially update a contact's profile fields (name, email, role, etc.).\n\nDoes not change scheduling state, booking_token, or status — those are\nmanaged by the start/reschedule/follow-up endpoints.","operationId":"update_contact_v1_interviews__interview_id__contacts__contact_id__patch","security":[{"HTTPBearer":[]}],"parameters":[{"name":"interview_id","in":"path","required":true,"schema":{"type":"string","format":"uuid","title":"Interview Id"}},{"name":"contact_id","in":"path","required":true,"schema":{"type":"string","format":"uuid","title":"Contact Id"}},{"name":"X-API-Key","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"X-Api-Key"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ContactUpdate"}}}},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/app__api__interview_schemas__ContactOut"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}},"delete":{"tags":["interviews"],"summary":"Delete Contact","operationId":"delete_contact_v1_interviews__interview_id__contacts__contact_id__delete","security":[{"HTTPBearer":[]}],"parameters":[{"name":"interview_id","in":"path","required":true,"schema":{"type":"string","format":"uuid","title":"Interview Id"}},{"name":"contact_id","in":"path","required":true,"schema":{"type":"string","format":"uuid","title":"Contact Id"}},{"name":"X-API-Key","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"X-Api-Key"}}],"responses":{"204":{"description":"Successful Response"},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/v1/interviews/{interview_id}/contacts/{contact_id}/reschedule":{"post":{"tags":["interviews"],"summary":"Reschedule Interview Contact","description":"Reschedule a contact's interview.\n\nIf new_time is provided, schedules at that specific time.\nOtherwise, finds the next available slot automatically.\n\nThis will:\n1. Cancel any pending interview jobs for this contact\n2. Delete the existing Google Calendar event\n3. Create a new calendar event with Google Meet link\n4. Schedule a new interview job","operationId":"reschedule_interview_contact_v1_interviews__interview_id__contacts__contact_id__reschedule_post","security":[{"HTTPBearer":[]}],"parameters":[{"name":"interview_id","in":"path","required":true,"schema":{"type":"string","format":"uuid","title":"Interview Id"}},{"name":"contact_id","in":"path","required":true,"schema":{"type":"string","format":"uuid","title":"Contact Id"}},{"name":"X-API-Key","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"X-Api-Key"}}],"requestBody":{"content":{"application/json":{"schema":{"anyOf":[{"$ref":"#/components/schemas/RescheduleRequest"},{"type":"null"}],"title":"Body"}}}},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/RescheduleResponse"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/v1/interviews/{interview_id}/contacts/{contact_id}/reactivate":{"post":{"tags":["interviews"],"summary":"Reactivate Contact Session","description":"Reactivate an expired or unavailable session.\n\nThis allows a participant to complete their interview even after:\n- The scheduled time has passed\n- The grace period has expired\n- The session was marked as expired\n\nThe session will be marked as \"available\" with a new grace period.","operationId":"reactivate_contact_session_v1_interviews__interview_id__contacts__contact_id__reactivate_post","security":[{"HTTPBearer":[]}],"parameters":[{"name":"interview_id","in":"path","required":true,"schema":{"type":"string","format":"uuid","title":"Interview Id"}},{"name":"contact_id","in":"path","required":true,"schema":{"type":"string","format":"uuid","title":"Contact Id"}},{"name":"X-API-Key","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"X-Api-Key"}}],"requestBody":{"content":{"application/json":{"schema":{"anyOf":[{"$ref":"#/components/schemas/ReactivateSessionRequest"},{"type":"null"}],"title":"Body"}}}},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ReactivateSessionResponse"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/v1/interviews/{interview_id}/contacts/{contact_id}/cancel":{"post":{"tags":["interviews"],"summary":"Cancel Contact","description":"Cancel a contact's scheduled interview.\n\nThis will:\n1. Delete the Google Calendar event\n2. Cancel any pending interview jobs\n3. Reset contact status to pending (can be rescheduled) or skipped\n\nUse mark_as_skipped=true to permanently skip this contact.","operationId":"cancel_contact_v1_interviews__interview_id__contacts__contact_id__cancel_post","security":[{"HTTPBearer":[]}],"parameters":[{"name":"interview_id","in":"path","required":true,"schema":{"type":"string","format":"uuid","title":"Interview Id"}},{"name":"contact_id","in":"path","required":true,"schema":{"type":"string","format":"uuid","title":"Contact Id"}},{"name":"X-API-Key","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"X-Api-Key"}}],"requestBody":{"content":{"application/json":{"schema":{"anyOf":[{"$ref":"#/components/schemas/CancelRequest"},{"type":"null"}],"title":"Body"}}}},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/CancelContactResponse"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/v1/interviews/{interview_id}/cancel-scheduled":{"post":{"tags":["interviews"],"summary":"Cancel All Scheduled","description":"Cancel all scheduled interviews for a campaign.\n\nThis will:\n1. Delete all Google Calendar events for scheduled contacts\n2. Cancel all pending interview jobs\n3. Reset all scheduled contacts to pending (can be rescheduled) or skipped\n\nUse mark_as_skipped=true to permanently skip all contacts.","operationId":"cancel_all_scheduled_v1_interviews__interview_id__cancel_scheduled_post","security":[{"HTTPBearer":[]}],"parameters":[{"name":"interview_id","in":"path","required":true,"schema":{"type":"string","format":"uuid","title":"Interview Id"}},{"name":"X-API-Key","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"X-Api-Key"}}],"requestBody":{"content":{"application/json":{"schema":{"anyOf":[{"$ref":"#/components/schemas/CancelRequest"},{"type":"null"}],"title":"Body"}}}},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/CancelAllResponse"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/v1/interviews/{interview_id}/contacts/{contact_id}/reinvite":{"post":{"tags":["interviews"],"summary":"Reinvite Contact","description":"Re-invite a single participant who already completed an interview.","operationId":"reinvite_contact_v1_interviews__interview_id__contacts__contact_id__reinvite_post","security":[{"HTTPBearer":[]}],"parameters":[{"name":"interview_id","in":"path","required":true,"schema":{"type":"string","format":"uuid","title":"Interview Id"}},{"name":"contact_id","in":"path","required":true,"schema":{"type":"string","format":"uuid","title":"Contact Id"}},{"name":"X-API-Key","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"X-Api-Key"}}],"responses":{"201":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ReinviteResponse"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/v1/interviews/{interview_id}/contacts/reinvite":{"post":{"tags":["interviews"],"summary":"Reinvite Contacts Bulk","description":"Re-invite several completed participants at once.\n\nIneligible ids (not found, not completed, or already having an open\nfollow-up) are skipped rather than failing the whole batch.","operationId":"reinvite_contacts_bulk_v1_interviews__interview_id__contacts_reinvite_post","security":[{"HTTPBearer":[]}],"parameters":[{"name":"interview_id","in":"path","required":true,"schema":{"type":"string","format":"uuid","title":"Interview Id"}},{"name":"X-API-Key","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"X-Api-Key"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/BulkReinviteRequest"}}}},"responses":{"201":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/BulkReinviteResponse"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/v1/interviews/{interview_id}/contacts/{contact_id}/follow-up":{"post":{"tags":["interviews"],"summary":"Send Contact Followup","description":"Send a follow-up reminder to a single pending contact.\n\nDelivered on the campaign's channel (Teams / Slack / email) unless\n``channel`` picks email explicitly; chat delivery falls back to email when\nthe participant cannot be reached there.","operationId":"send_contact_followup_v1_interviews__interview_id__contacts__contact_id__follow_up_post","security":[{"HTTPBearer":[]}],"parameters":[{"name":"interview_id","in":"path","required":true,"schema":{"type":"string","format":"uuid","title":"Interview Id"}},{"name":"contact_id","in":"path","required":true,"schema":{"type":"string","format":"uuid","title":"Contact Id"}},{"name":"X-API-Key","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"X-Api-Key"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/FollowUpRequest"}}}},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/FollowUpResponse"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/v1/interviews/{interview_id}/contacts/follow-up":{"post":{"tags":["interviews"],"summary":"Send Bulk Followup","description":"Send follow-up reminders to multiple pending contacts.\n\nDelivery runs in the background — one SEND_FOLLOWUP_EMAIL job per contact,\nflagged ``manual`` so it never creates or alters the automatic reminder\nchain. Dozens of Teams/Slack/email sends do not belong in a web request\n(the Teams invitation send moved to a job for the same reason).","operationId":"send_bulk_followup_v1_interviews__interview_id__contacts_follow_up_post","security":[{"HTTPBearer":[]}],"parameters":[{"name":"interview_id","in":"path","required":true,"schema":{"type":"string","format":"uuid","title":"Interview Id"}},{"name":"X-API-Key","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"X-Api-Key"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/BulkFollowUpRequest"}}}},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/FollowUpResponse"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/v1/interviews/{interview_id}/check-calendar-responses":{"post":{"tags":["interviews"],"summary":"Check Calendar Responses Endpoint","description":"Check Google Calendar for declined invites.\n\nPolls all scheduled contacts' calendar events to detect if any interviewees\nhave declined their invites. When a decline is detected:\n- Updates contact status to 'declined'\n- Cancels pending interview and reminder jobs\n\nThis is automatically polled every 30 minutes, but you can trigger it\nmanually with this endpoint.","operationId":"check_calendar_responses_endpoint_v1_interviews__interview_id__check_calendar_responses_post","security":[{"HTTPBearer":[]}],"parameters":[{"name":"interview_id","in":"path","required":true,"schema":{"type":"string","format":"uuid","title":"Interview Id"}},{"name":"X-API-Key","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"X-Api-Key"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/CheckCalendarResponsesResponse"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/v1/interviews/{interview_id}/progress":{"get":{"tags":["interviews"],"summary":"Get Progress","operationId":"get_progress_v1_interviews__interview_id__progress_get","security":[{"HTTPBearer":[]}],"parameters":[{"name":"interview_id","in":"path","required":true,"schema":{"type":"string","format":"uuid","title":"Interview Id"}},{"name":"X-API-Key","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"X-Api-Key"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ProgressOut"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/v1/interviews/{interview_id}/start":{"post":{"tags":["interviews"],"summary":"Start Interview","description":"Launch a campaign: validate, mark active, and send or schedule invitations.\n\nInvitations go out on the campaign's channel: `in_app_chat` emails each\ncontact a personal interview link, `slack` sends a Slack DM (email\nfallback), `teams` sends a Microsoft Teams chat message (email fallback).\nParticipants self-schedule. Legacy `google_meet` campaigns still create\nGoogle Calendar events with Meet links.\n\nCampaigns with `start_immediately=false` and a future `timeframe_start`\ndo NOT send invitations at launch — a job sends them when the campaign\nopens (date-only starts resolve to 08:00 in the campaign's timezone).\n`timeframe_end` is a soft response deadline shown to participants; it\nnever blocks late responses.\n\nValidation (goal length, at least one contact, at least one question,\nSlack connection + reachable contacts for Slack campaigns) runs first;\non failure the campaign stays in draft.","operationId":"start_interview_v1_interviews__interview_id__start_post","security":[{"HTTPBearer":[]}],"parameters":[{"name":"interview_id","in":"path","required":true,"schema":{"type":"string","format":"uuid","title":"Interview Id"}},{"name":"X-API-Key","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"X-Api-Key"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/StartInterviewResponse"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/v1/interviews/{interview_id}/pause":{"post":{"tags":["interviews"],"summary":"Pause Interview","description":"Pause an active interview.","operationId":"pause_interview_v1_interviews__interview_id__pause_post","security":[{"HTTPBearer":[]}],"parameters":[{"name":"interview_id","in":"path","required":true,"schema":{"type":"string","format":"uuid","title":"Interview Id"}},{"name":"X-API-Key","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"X-Api-Key"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/InterviewOut"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/v1/interviews/{interview_id}/complete":{"post":{"tags":["interviews"],"summary":"Complete Interview","description":"Manually finish a campaign (operator override).\n\nFlips an active or paused campaign to completed, triggering the same report\nsynthesis and ``campaign.completed`` webhook as an automatic threshold\ncompletion. Use when enough interviews are in and you want to close the\ncampaign and generate the report without waiting for the completion\nthreshold, or to unstick a campaign whose interviews finished but never\nrolled up. Idempotent for already-completed campaigns.","operationId":"complete_interview_v1_interviews__interview_id__complete_post","security":[{"HTTPBearer":[]}],"parameters":[{"name":"interview_id","in":"path","required":true,"schema":{"type":"string","format":"uuid","title":"Interview Id"}},{"name":"X-API-Key","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"X-Api-Key"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/InterviewOut"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/v1/interviews/{interview_id}/reingest":{"post":{"tags":["interviews"],"summary":"Reingest Interview","description":"Re-ingest a campaign's completed interviews into the knowledge graph.\n\nEnqueues a graph refresh (INGEST -> INDEX -> question results -> report\ntrigger) for the campaign's completed, non-test-lab conversations. Use to\nrepair a campaign whose completed interviews never reached the knowledge\ngraph (for example interviews that completed before the completion watchdog\nshipped, or whose ingest pipeline failed). Idempotent: returns\n``already_pending`` when a graph job is already queued or running.\n\nOnly completed conversations are ingested. Stuck conversations\n(in_progress / paused / failed) must be marked complete first via\nPOST /{interview_id}/conversations/{conversation_id}/complete.","operationId":"reingest_interview_v1_interviews__interview_id__reingest_post","security":[{"HTTPBearer":[]}],"parameters":[{"name":"interview_id","in":"path","required":true,"schema":{"type":"string","format":"uuid","title":"Interview Id"}},{"name":"X-API-Key","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"X-Api-Key"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/v1/interviews/{interview_id}/conversations/{conversation_id}/complete":{"post":{"tags":["interviews"],"summary":"Force Complete Conversation Endpoint","description":"Operator override: force a single stuck conversation to completed.\n\nUse when an interview finished but its completion signal was lost, leaving\nthe conversation in ``in_progress`` / ``paused`` and the campaign progress\nstuck. Marks the conversation, contact, and session completed and runs the\nsame finalization as a normal completion, so the campaign threshold\nre-checks and progress updates. Idempotent.","operationId":"force_complete_conversation_endpoint_v1_interviews__interview_id__conversations__conversation_id__complete_post","security":[{"HTTPBearer":[]}],"parameters":[{"name":"interview_id","in":"path","required":true,"schema":{"type":"string","format":"uuid","title":"Interview Id"}},{"name":"conversation_id","in":"path","required":true,"schema":{"type":"string","format":"uuid","title":"Conversation Id"}},{"name":"X-API-Key","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"X-Api-Key"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/v1/interviews/{interview_id}/synthesize":{"post":{"tags":["interviews"],"summary":"Trigger Synthesis","description":"Trigger synthesis of all interview conversations.\n\nEnqueues a SYNTHESIZE_INTERVIEW job that aggregates insights from\nall completed conversations.\n\nNote: This is a stub implementation. Real synthesis will use LLM\nto extract actionable insights.","operationId":"trigger_synthesis_v1_interviews__interview_id__synthesize_post","security":[{"HTTPBearer":[]}],"parameters":[{"name":"interview_id","in":"path","required":true,"schema":{"type":"string","format":"uuid","title":"Interview Id"}},{"name":"X-API-Key","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"X-Api-Key"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/SynthesisOut"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/v1/interviews/{interview_id}/synthesis":{"get":{"tags":["interviews"],"summary":"Get Synthesis","description":"Get the synthesis results for an interview.","operationId":"get_synthesis_v1_interviews__interview_id__synthesis_get","security":[{"HTTPBearer":[]}],"parameters":[{"name":"interview_id","in":"path","required":true,"schema":{"type":"string","format":"uuid","title":"Interview Id"}},{"name":"X-API-Key","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"X-Api-Key"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/SynthesisOut"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/v1/interviews/{interview_id}/test-lab/start":{"post":{"tags":["interviews"],"summary":"Start Test Lab Interview","description":"Create a disposable in-app test session for Ontora staff or API-key automation.","operationId":"start_test_lab_interview_v1_interviews__interview_id__test_lab_start_post","security":[{"HTTPBearer":[]}],"parameters":[{"name":"interview_id","in":"path","required":true,"schema":{"type":"string","format":"uuid","title":"Interview Id"}},{"name":"X-API-Key","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"X-Api-Key"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/TestLabStartResponse"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/v1/interviews/{interview_id}/agent-preview/start":{"post":{"tags":["interviews"],"summary":"Start Agent Preview","description":"Create a disposable preview conversation so the creator can test the agent.\n\nMints a test-lab contact (``TEST_LAB_DEPARTMENT`` marker, so the run is\nexcluded from reports and insights by construction) plus a conversation\nunder the real campaign, and returns the same session URL a participant\nwould receive. Works on drafts: the builder persists its editor state\nright before calling this, so the conversation follows the current guide.","operationId":"start_agent_preview_v1_interviews__interview_id__agent_preview_start_post","security":[{"HTTPBearer":[]}],"parameters":[{"name":"interview_id","in":"path","required":true,"schema":{"type":"string","format":"uuid","title":"Interview Id"}},{"name":"X-API-Key","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"X-Api-Key"}}],"requestBody":{"content":{"application/json":{"schema":{"anyOf":[{"$ref":"#/components/schemas/AgentPreviewStartRequest"},{"type":"null"}],"title":"Payload"}}}},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/AgentPreviewStartResponse"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/v1/interviews/{interview_id}/test-send":{"post":{"tags":["interviews"],"summary":"Send Test Campaign Invitation","description":"Send the campaign invitation to the author as a disposable test run.\n\nUnlike the in-builder agent preview (which jumps straight into a session),\nthis exercises the real participant flow end to end: the author receives\nthe actual invitation email, opens the booking page, and takes the\ninterview. The minted contact carries the ``TEST_LAB_DEPARTMENT`` marker,\nso the run is excluded from participant lists, stats, reports, and\ninsights by construction, is skipped by the completion pipeline, and is\nnever picked up by the real invitation send.\n\nWorks on drafts (the review page finalizes the draft before offering the\nbutton) and always sends the email invitation, regardless of the\ncampaign's delivery channel — Slack/Teams delivery falls back to email\nfor real participants too, so the rendered invitation is authentic.\n\nRuns as a sequence of short transactions, each touching only one row\nclass, on purpose: booking requests lock contact→conversation while a\nrunning session's save locks conversation→contact, so any transaction\nhere that held both would deadlock against one of them. This also keeps\nthe outbound email call outside every conversation lock, and defers the\ndisposal of the previous test run until the new invitation actually went\nout — a failed send must not destroy anything. A crash between the send\nand the disposal leaves the old run visible (\"already completed\" on the\nemailed link); the next test-send click repairs that state (after the\nsend-claim cooldown of up to _TEST_SEND_COOLDOWN_SECONDS, since the\ncrashed request already claimed its send).","operationId":"send_test_campaign_invitation_v1_interviews__interview_id__test_send_post","security":[{"HTTPBearer":[]}],"parameters":[{"name":"interview_id","in":"path","required":true,"schema":{"type":"string","format":"uuid","title":"Interview Id"}},{"name":"X-API-Key","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"X-Api-Key"}}],"requestBody":{"content":{"application/json":{"schema":{"anyOf":[{"$ref":"#/components/schemas/TestSendRequest"},{"type":"null"}],"title":"Payload"}}}},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/TestSendResponse"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/v1/interviews/{interview_id}/test-now":{"post":{"tags":["interviews"],"summary":"Test Interview Now","description":"Start an instant test interview for demo purposes.\n\nCreates a Google Meet link immediately and starts the interview bot\nso you can experience what an actual interview session feels like.\n\nThis will:\n1. Create a temporary \"Test User\" contact\n2. Create an instant Google Calendar event with Meet link\n3. Start the interview bot immediately (joins within seconds)\n4. Return the meeting URL so you can join\n\nNote: This is for testing/demo purposes. The contact will be marked\nwith a \"test_\" prefix and can be deleted afterward.","operationId":"test_interview_now_v1_interviews__interview_id__test_now_post","security":[{"HTTPBearer":[]}],"parameters":[{"name":"interview_id","in":"path","required":true,"schema":{"type":"string","format":"uuid","title":"Interview Id"}},{"name":"X-API-Key","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"X-Api-Key"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/TestNowResponse"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/v1/people/list-page":{"get":{"tags":["people"],"summary":"List People Page","operationId":"list_people_page_v1_people_list_page_get","security":[{"HTTPBearer":[]}],"parameters":[{"name":"workspace_id","in":"query","required":true,"schema":{"type":"string","format":"uuid","title":"Workspace Id"}},{"name":"group_id","in":"query","required":false,"schema":{"anyOf":[{"type":"string","format":"uuid"},{"type":"null"}],"title":"Group Id"}},{"name":"kind","in":"query","required":false,"schema":{"anyOf":[{"$ref":"#/components/schemas/PersonType"},{"type":"null"}],"title":"Kind"}},{"name":"search","in":"query","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Search"}},{"name":"X-API-Key","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"X-Api-Key"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/PeopleListPageOut"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/v1/people/recommendations":{"post":{"tags":["people"],"summary":"Recommend Participants","operationId":"recommend_participants_v1_people_recommendations_post","security":[{"HTTPBearer":[]}],"parameters":[{"name":"X-API-Key","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"X-Api-Key"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ParticipantRecommendationIn"}}}},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ParticipantRecommendationsOut"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/v1/people":{"post":{"tags":["people"],"summary":"Create Person","operationId":"create_person_v1_people_post","security":[{"HTTPBearer":[]}],"parameters":[{"name":"X-API-Key","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"X-Api-Key"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/PersonCreate"}}}},"responses":{"201":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/PersonOut"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/v1/people/import":{"post":{"tags":["people"],"summary":"Import People","description":"Import people records from a CSV file.\n\nExpected columns: name, email, phone, job_title, department, seniority_level, type.\nEach row needs at least a name or an email. Rows are matched against existing\npeople by email (per-workspace), so re-importing enriches instead of duplicating.\nOptional group_ids are assigned additively to every imported row.\n\nseniority_level: a label (IC, Manager, Senior Manager, Director, VP, C-Level)\nor any custom label; bare numbers 1..6 are still accepted for back-compat.\ntype: internal or external (omit to auto-classify by email domain).\n\nSupports CSV and TSV. Max file size: 5MB. Max people: 10,000.","operationId":"import_people_v1_people_import_post","security":[{"HTTPBearer":[]}],"parameters":[{"name":"workspace_id","in":"query","required":true,"schema":{"type":"string","format":"uuid","title":"Workspace Id"}},{"name":"group_ids","in":"query","required":false,"schema":{"type":"array","items":{"type":"string","format":"uuid"},"default":[],"title":"Group Ids"}},{"name":"X-API-Key","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"X-Api-Key"}}],"requestBody":{"required":true,"content":{"multipart/form-data":{"schema":{"$ref":"#/components/schemas/Body_import_people_v1_people_import_post"}}}},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/PeopleImportResult"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/v1/people/{person_id}":{"patch":{"tags":["people"],"summary":"Update Person","operationId":"update_person_v1_people__person_id__patch","security":[{"HTTPBearer":[]}],"parameters":[{"name":"person_id","in":"path","required":true,"schema":{"type":"string","format":"uuid","title":"Person Id"}},{"name":"X-API-Key","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"X-Api-Key"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/PersonUpdate"}}}},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/PersonOut"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}},"get":{"tags":["people"],"summary":"Get Person Detail","operationId":"get_person_detail_v1_people__person_id__get","security":[{"HTTPBearer":[]}],"parameters":[{"name":"person_id","in":"path","required":true,"schema":{"type":"string","format":"uuid","title":"Person Id"}},{"name":"X-API-Key","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"X-Api-Key"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/PersonDetailOut"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/v1/people/groups":{"post":{"tags":["people"],"summary":"Create People Group","operationId":"create_people_group_v1_people_groups_post","security":[{"HTTPBearer":[]}],"parameters":[{"name":"X-API-Key","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"X-Api-Key"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/PeopleGroupCreate"}}}},"responses":{"201":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/PeopleGroupOut"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/v1/people/groups/{group_id}":{"delete":{"tags":["people"],"summary":"Delete People Group","operationId":"delete_people_group_v1_people_groups__group_id__delete","security":[{"HTTPBearer":[]}],"parameters":[{"name":"group_id","in":"path","required":true,"schema":{"type":"string","format":"uuid","title":"Group Id"}},{"name":"X-API-Key","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"X-Api-Key"}}],"responses":{"204":{"description":"Successful Response"},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/v1/booking/{token}":{"get":{"tags":["booking"],"summary":"Get Booking Info","description":"Get interview info and available time slots for a booking token.\n\nThis is a public endpoint — no authentication required.","operationId":"get_booking_info_v1_booking__token__get","parameters":[{"name":"token","in":"path","required":true,"schema":{"type":"string","title":"Token"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/BookingInfo"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/v1/booking/{token}/confirm":{"post":{"tags":["booking"],"summary":"Confirm Booking","description":"Confirm a booking by selecting a time slot.\n\nCreates the interview conversation, calendar event, and enqueues jobs.","operationId":"confirm_booking_v1_booking__token__confirm_post","parameters":[{"name":"token","in":"path","required":true,"schema":{"type":"string","title":"Token"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/BookingConfirmRequest"}}}},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/BookingConfirmResponse"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/v1/booking/{token}/instant":{"post":{"tags":["booking"],"summary":"Instant Booking","description":"Start an interview immediately — no time slot selection needed.\n\nCreates a conversation starting NOW, enqueues the conduct job immediately.","operationId":"instant_booking_v1_booking__token__instant_post","parameters":[{"name":"token","in":"path","required":true,"schema":{"type":"string","title":"Token"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/BookingConfirmResponse"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/v1/join/{token}":{"get":{"tags":["join"],"summary":"Get Join Info","description":"Campaign info for the public join page.","operationId":"get_join_info_v1_join__token__get","parameters":[{"name":"token","in":"path","required":true,"schema":{"type":"string","title":"Token"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/JoinInfo"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}},"post":{"tags":["join"],"summary":"Register Via Join Link","description":"Register a participant (name + email) and hand over to the booking flow.\n\nFirst registration under an email returns the personal booking link\ndirectly (status \"registered\"). If the email already belongs to a contact\non this campaign — an earlier self-registration or a roster invitee — the\nlink is re-sent to that inbox instead and the response carries only status\n\"email_sent\": knowing an address must never yield that contact's booking\ntoken, which is their bearer credential for booking, their conversation,\nand their results. Registrations that may create a contact serialize on\nthe interview row.\n\nEmail is otherwise unverified — registering under someone else's unused\naddress creates a contact in their name (equivalent to using any made-up\naddress, bounded by MAX_JOIN_CONTACTS). The \"email_sent\" branch does\nreveal that an address is already on the campaign to anyone holding the\njoin link; accepted as the cost of handing first-time registrants their\nlink without an email round-trip.","operationId":"register_via_join_link_v1_join__token__post","parameters":[{"name":"token","in":"path","required":true,"schema":{"type":"string","title":"Token"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/JoinRegisterRequest"}}}},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/JoinRegisterResponse"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/v1/interviews/{interview_id}/join-link":{"post":{"tags":["join"],"summary":"Ensure Campaign Join Link","description":"Mint (idempotently) and return the campaign's join link for the QR surface.\n\nAdmin-gated like the campaign sharing settings: the join link is a public\nself-registration surface, not a roster edit. Only in-app (email/QR)\ncampaigns can carry one.","operationId":"ensure_campaign_join_link_v1_interviews__interview_id__join_link_post","security":[{"HTTPBearer":[]}],"parameters":[{"name":"interview_id","in":"path","required":true,"schema":{"type":"string","format":"uuid","title":"Interview Id"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/CampaignJoinLinkOut"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/v1/interviews/{interview_id}/join-link/test":{"post":{"tags":["join"],"summary":"Mint Campaign Test Join Link","description":"Mint a signed, short-lived TEST join link for the author's dry run.\n\nRegistrations through it create invisible test-lab contacts (excluded\nfrom participants, results, and sends), so the author can walk the exact\nQR participant flow — including on a pre-launch draft — without touching\nthe real campaign. Stateless: nothing is stored, the token expires on\nits own.","operationId":"mint_campaign_test_join_link_v1_interviews__interview_id__join_link_test_post","security":[{"HTTPBearer":[]}],"parameters":[{"name":"interview_id","in":"path","required":true,"schema":{"type":"string","format":"uuid","title":"Interview Id"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/CampaignTestJoinLinkOut"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/v1/interviews/{interview_id}/cartography":{"get":{"tags":["campaign-insights"],"summary":"Get Cartography","operationId":"get_cartography_v1_interviews__interview_id__cartography_get","security":[{"HTTPBearer":[]}],"parameters":[{"name":"interview_id","in":"path","required":true,"schema":{"type":"string","format":"uuid","title":"Interview Id"}},{"name":"X-API-Key","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"X-Api-Key"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/CartographyOut"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/v1/interviews/{interview_id}/processes/{process_id}":{"get":{"tags":["campaign-insights"],"summary":"Get Process Detail","operationId":"get_process_detail_v1_interviews__interview_id__processes__process_id__get","security":[{"HTTPBearer":[]}],"parameters":[{"name":"interview_id","in":"path","required":true,"schema":{"type":"string","format":"uuid","title":"Interview Id"}},{"name":"process_id","in":"path","required":true,"schema":{"type":"string","format":"uuid","title":"Process Id"}},{"name":"X-API-Key","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"X-Api-Key"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ProcessDetailOut"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/v1/interviews/{interview_id}/processes/{process_id}/steps/{step_id}":{"get":{"tags":["campaign-insights"],"summary":"Get Step Detail","operationId":"get_step_detail_v1_interviews__interview_id__processes__process_id__steps__step_id__get","security":[{"HTTPBearer":[]}],"parameters":[{"name":"interview_id","in":"path","required":true,"schema":{"type":"string","format":"uuid","title":"Interview Id"}},{"name":"process_id","in":"path","required":true,"schema":{"type":"string","format":"uuid","title":"Process Id"}},{"name":"step_id","in":"path","required":true,"schema":{"type":"string","format":"uuid","title":"Step Id"}},{"name":"X-API-Key","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"X-Api-Key"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/StepDetailOut"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/v1/interviews/{interview_id}/roadmap":{"get":{"tags":["campaign-insights"],"summary":"Get Roadmap","operationId":"get_roadmap_v1_interviews__interview_id__roadmap_get","security":[{"HTTPBearer":[]}],"parameters":[{"name":"interview_id","in":"path","required":true,"schema":{"type":"string","format":"uuid","title":"Interview Id"}},{"name":"X-API-Key","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"X-Api-Key"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/RoadmapOut"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/v1/interviews/{interview_id}/solutions/{solution_id}":{"get":{"tags":["campaign-insights"],"summary":"Get Solution Detail","operationId":"get_solution_detail_v1_interviews__interview_id__solutions__solution_id__get","security":[{"HTTPBearer":[]}],"parameters":[{"name":"interview_id","in":"path","required":true,"schema":{"type":"string","format":"uuid","title":"Interview Id"}},{"name":"solution_id","in":"path","required":true,"schema":{"type":"string","format":"uuid","title":"Solution Id"}},{"name":"X-API-Key","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"X-Api-Key"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/SolutionOut"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/v1/interviews/{interview_id}/personas":{"get":{"tags":["campaign-insights"],"summary":"List Personas","operationId":"list_personas_v1_interviews__interview_id__personas_get","security":[{"HTTPBearer":[]}],"parameters":[{"name":"interview_id","in":"path","required":true,"schema":{"type":"string","format":"uuid","title":"Interview Id"}},{"name":"department","in":"query","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Department"}},{"name":"X-API-Key","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"X-Api-Key"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"type":"array","items":{"$ref":"#/components/schemas/PersonaOut"},"title":"Response List Personas V1 Interviews  Interview Id  Personas Get"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/v1/interviews/{interview_id}/personas/{contact_id}":{"get":{"tags":["campaign-insights"],"summary":"Get Persona Detail","operationId":"get_persona_detail_v1_interviews__interview_id__personas__contact_id__get","security":[{"HTTPBearer":[]}],"parameters":[{"name":"interview_id","in":"path","required":true,"schema":{"type":"string","format":"uuid","title":"Interview Id"}},{"name":"contact_id","in":"path","required":true,"schema":{"type":"string","format":"uuid","title":"Contact Id"}},{"name":"X-API-Key","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"X-Api-Key"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/PersonaOut"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/v1/interviews/{interview_id}/audience-facets":{"get":{"tags":["campaign-insights"],"summary":"List Audience Facets","operationId":"list_audience_facets_v1_interviews__interview_id__audience_facets_get","security":[{"HTTPBearer":[]}],"parameters":[{"name":"interview_id","in":"path","required":true,"schema":{"type":"string","format":"uuid","title":"Interview Id"}},{"name":"X-API-Key","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"X-Api-Key"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/AudienceFacetsOut"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/v1/interviews/{interview_id}/conversations":{"get":{"tags":["campaign-insights"],"summary":"List Conversations","operationId":"list_conversations_v1_interviews__interview_id__conversations_get","security":[{"HTTPBearer":[]}],"parameters":[{"name":"interview_id","in":"path","required":true,"schema":{"type":"string","format":"uuid","title":"Interview Id"}},{"name":"department","in":"query","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Department"}},{"name":"job_title","in":"query","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Job Title"}},{"name":"company","in":"query","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Company"}},{"name":"position","in":"query","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Position"}},{"name":"level","in":"query","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Level"}},{"name":"location","in":"query","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Location"}},{"name":"workgroup1","in":"query","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Workgroup1"}},{"name":"workgroup2","in":"query","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Workgroup2"}},{"name":"workgroup3","in":"query","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Workgroup3"}},{"name":"search","in":"query","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Search"}},{"name":"status","in":"query","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Status"}},{"name":"locale","in":"query","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Locale"}},{"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"}},{"name":"X-Ontora-Locale","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"X-Ontora-Locale"}},{"name":"Accept-Language","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Accept-Language"}},{"name":"X-API-Key","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"X-Api-Key"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ConversationsListOut"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/v1/interviews/{interview_id}/conversations/{conversation_id}":{"get":{"tags":["campaign-insights"],"summary":"Get Conversation Detail","operationId":"get_conversation_detail_v1_interviews__interview_id__conversations__conversation_id__get","security":[{"HTTPBearer":[]}],"parameters":[{"name":"interview_id","in":"path","required":true,"schema":{"type":"string","format":"uuid","title":"Interview Id"}},{"name":"conversation_id","in":"path","required":true,"schema":{"type":"string","format":"uuid","title":"Conversation Id"}},{"name":"locale","in":"query","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Locale"}},{"name":"transcript_locale","in":"query","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Transcript Locale"}},{"name":"X-Ontora-Locale","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"X-Ontora-Locale"}},{"name":"Accept-Language","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Accept-Language"}},{"name":"X-API-Key","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"X-Api-Key"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ConversationDetailOut"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/v1/interviews/{interview_id}/conversations/{conversation_id}/recording/url":{"get":{"tags":["campaign-insights"],"summary":"Get Conversation Recording Url","operationId":"get_conversation_recording_url_v1_interviews__interview_id__conversations__conversation_id__recording_url_get","security":[{"HTTPBearer":[]}],"parameters":[{"name":"interview_id","in":"path","required":true,"schema":{"type":"string","format":"uuid","title":"Interview Id"}},{"name":"conversation_id","in":"path","required":true,"schema":{"type":"string","format":"uuid","title":"Conversation Id"}},{"name":"download","in":"query","required":false,"schema":{"type":"boolean","default":false,"title":"Download"}},{"name":"X-API-Key","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"X-Api-Key"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ConversationRecordingAccessOut"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/v1/interviews/{interview_id}/conversations/{conversation_id}/recording":{"get":{"tags":["campaign-insights"],"summary":"Get Conversation Recording","operationId":"get_conversation_recording_v1_interviews__interview_id__conversations__conversation_id__recording_get","security":[{"HTTPBearer":[]}],"parameters":[{"name":"interview_id","in":"path","required":true,"schema":{"type":"string","format":"uuid","title":"Interview Id"}},{"name":"conversation_id","in":"path","required":true,"schema":{"type":"string","format":"uuid","title":"Conversation Id"}},{"name":"X-API-Key","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"X-Api-Key"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/v1/interviews/{interview_id}/conversations/{conversation_id}/recording/user/url":{"get":{"tags":["campaign-insights"],"summary":"Get User Conversation Recording Url","operationId":"get_user_conversation_recording_url_v1_interviews__interview_id__conversations__conversation_id__recording_user_url_get","security":[{"HTTPBearer":[]}],"parameters":[{"name":"interview_id","in":"path","required":true,"schema":{"type":"string","format":"uuid","title":"Interview Id"}},{"name":"conversation_id","in":"path","required":true,"schema":{"type":"string","format":"uuid","title":"Conversation Id"}},{"name":"download","in":"query","required":false,"schema":{"type":"boolean","default":false,"title":"Download"}},{"name":"X-API-Key","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"X-Api-Key"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ConversationRecordingAccessOut"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/v1/interviews/{interview_id}/conversations/{conversation_id}/recording/user":{"get":{"tags":["campaign-insights"],"summary":"Get User Conversation Recording","operationId":"get_user_conversation_recording_v1_interviews__interview_id__conversations__conversation_id__recording_user_get","security":[{"HTTPBearer":[]}],"parameters":[{"name":"interview_id","in":"path","required":true,"schema":{"type":"string","format":"uuid","title":"Interview Id"}},{"name":"conversation_id","in":"path","required":true,"schema":{"type":"string","format":"uuid","title":"Conversation Id"}},{"name":"X-API-Key","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"X-Api-Key"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/v1/interviews/{interview_id}/conversations/{conversation_id}/recording/agent/url":{"get":{"tags":["campaign-insights"],"summary":"Get Agent Conversation Recording Url","operationId":"get_agent_conversation_recording_url_v1_interviews__interview_id__conversations__conversation_id__recording_agent_url_get","security":[{"HTTPBearer":[]}],"parameters":[{"name":"interview_id","in":"path","required":true,"schema":{"type":"string","format":"uuid","title":"Interview Id"}},{"name":"conversation_id","in":"path","required":true,"schema":{"type":"string","format":"uuid","title":"Conversation Id"}},{"name":"download","in":"query","required":false,"schema":{"type":"boolean","default":false,"title":"Download"}},{"name":"X-API-Key","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"X-Api-Key"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ConversationRecordingAccessOut"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/v1/interviews/{interview_id}/conversations/{conversation_id}/recording/agent":{"get":{"tags":["campaign-insights"],"summary":"Get Agent Conversation Recording","operationId":"get_agent_conversation_recording_v1_interviews__interview_id__conversations__conversation_id__recording_agent_get","security":[{"HTTPBearer":[]}],"parameters":[{"name":"interview_id","in":"path","required":true,"schema":{"type":"string","format":"uuid","title":"Interview Id"}},{"name":"conversation_id","in":"path","required":true,"schema":{"type":"string","format":"uuid","title":"Conversation Id"}},{"name":"X-API-Key","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"X-Api-Key"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/v1/interviews/{interview_id}/conversations/{conversation_id}/screen-shares/{share_id}/recording/url":{"get":{"tags":["campaign-insights"],"summary":"Get Conversation Screen Share Recording Url","description":"Signed playback URL for a screen recording.\n\nMirrors the audio ``/recording/url`` access pattern: the browser's video\nelement streams straight from storage with range-request support instead\nof buffering the file through the Next.js API proxy (which cannot stream\nmedia and breaks playback). ``url`` is null for local-dev files; callers\nfall back to the direct ``/recording`` endpoint then.","operationId":"get_conversation_screen_share_recording_url_v1_interviews__interview_id__conversations__conversation_id__screen_shares__share_id__recording_url_get","security":[{"HTTPBearer":[]}],"parameters":[{"name":"interview_id","in":"path","required":true,"schema":{"type":"string","format":"uuid","title":"Interview Id"}},{"name":"conversation_id","in":"path","required":true,"schema":{"type":"string","format":"uuid","title":"Conversation Id"}},{"name":"share_id","in":"path","required":true,"schema":{"type":"string","format":"uuid","title":"Share Id"}},{"name":"X-API-Key","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"X-Api-Key"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ConversationRecordingAccessOut"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/v1/interviews/{interview_id}/conversations/{conversation_id}/screen-shares/{share_id}/recording":{"get":{"tags":["campaign-insights"],"summary":"Get Conversation Screen Share Recording","operationId":"get_conversation_screen_share_recording_v1_interviews__interview_id__conversations__conversation_id__screen_shares__share_id__recording_get","security":[{"HTTPBearer":[]}],"parameters":[{"name":"interview_id","in":"path","required":true,"schema":{"type":"string","format":"uuid","title":"Interview Id"}},{"name":"conversation_id","in":"path","required":true,"schema":{"type":"string","format":"uuid","title":"Conversation Id"}},{"name":"share_id","in":"path","required":true,"schema":{"type":"string","format":"uuid","title":"Share Id"}},{"name":"X-API-Key","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"X-Api-Key"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/v1/interviews/{interview_id}/conversations/{conversation_id}/screen-shares/{share_id}/observations/{observation_id}/image":{"get":{"tags":["campaign-insights"],"summary":"Get Conversation Screen Observation Image","operationId":"get_conversation_screen_observation_image_v1_interviews__interview_id__conversations__conversation_id__screen_shares__share_id__observations__observation_id__image_get","security":[{"HTTPBearer":[]}],"parameters":[{"name":"interview_id","in":"path","required":true,"schema":{"type":"string","format":"uuid","title":"Interview Id"}},{"name":"conversation_id","in":"path","required":true,"schema":{"type":"string","format":"uuid","title":"Conversation Id"}},{"name":"share_id","in":"path","required":true,"schema":{"type":"string","format":"uuid","title":"Share Id"}},{"name":"observation_id","in":"path","required":true,"schema":{"type":"string","format":"uuid","title":"Observation Id"}},{"name":"X-API-Key","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"X-Api-Key"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/v1/interviews/{interview_id}/events":{"get":{"tags":["campaign-insights"],"summary":"Stream Interview Events","description":"Stream realtime dashboard events for one interview campaign.\n\nClients may send ``Last-Event-ID`` after a proxy soft-close or network blip.\nWhen the resume id is still buffered locally it is skipped so reconnects do\nnot double-fire dashboard refreshes. There is no durable event log, so a\nmissing cursor falls through to live delivery only.","operationId":"stream_interview_events_v1_interviews__interview_id__events_get","security":[{"HTTPBearer":[]}],"parameters":[{"name":"interview_id","in":"path","required":true,"schema":{"type":"string","format":"uuid","title":"Interview Id"}},{"name":"X-API-Key","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"X-Api-Key"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/v1/interviews/{interview_id}/dashboard":{"get":{"tags":["campaign-insights"],"summary":"Get Dashboard","operationId":"get_dashboard_v1_interviews__interview_id__dashboard_get","security":[{"HTTPBearer":[]}],"parameters":[{"name":"interview_id","in":"path","required":true,"schema":{"type":"string","format":"uuid","title":"Interview Id"}},{"name":"X-API-Key","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"X-Api-Key"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/DashboardOut"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/v1/interviews/{interview_id}/report/regenerate":{"post":{"tags":["campaign-reports"],"summary":"Regenerate Report","description":"Manually trigger a fresh agent run for this campaign.\n\nRefuses only when there are no completed interviews yet or while another\ngeneration is already in progress. Returns 202 with the new version's\nmetadata; the agent runs asynchronously via the worker.","operationId":"regenerate_report_v1_interviews__interview_id__report_regenerate_post","security":[{"HTTPBearer":[]}],"parameters":[{"name":"interview_id","in":"path","required":true,"schema":{"type":"string","format":"uuid","title":"Interview Id"}},{"name":"X-API-Key","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"X-Api-Key"}}],"responses":{"202":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/RegenerateReportResponse"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/v1/interviews/{interview_id}/report/versions":{"get":{"tags":["campaign-reports"],"summary":"List Report Versions","description":"List all report versions for this campaign, newest first.","operationId":"list_report_versions_v1_interviews__interview_id__report_versions_get","security":[{"HTTPBearer":[]}],"parameters":[{"name":"interview_id","in":"path","required":true,"schema":{"type":"string","format":"uuid","title":"Interview Id"}},{"name":"X-API-Key","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"X-Api-Key"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"type":"array","items":{"$ref":"#/components/schemas/ReportVersionOut"},"title":"Response List Report Versions V1 Interviews  Interview Id  Report Versions Get"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/v1/interviews/{interview_id}/report/current":{"get":{"tags":["campaign-reports"],"summary":"Get Current Report Version","description":"Return the latest ready version, or null if none exist yet.","operationId":"get_current_report_version_v1_interviews__interview_id__report_current_get","security":[{"HTTPBearer":[]}],"parameters":[{"name":"interview_id","in":"path","required":true,"schema":{"type":"string","format":"uuid","title":"Interview Id"}},{"name":"summary","in":"query","required":false,"schema":{"type":"boolean","default":false,"title":"Summary"}},{"name":"X-API-Key","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"X-Api-Key"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"anyOf":[{"$ref":"#/components/schemas/ReportVersionOut"},{"type":"null"}],"title":"Response Get Current Report Version V1 Interviews  Interview Id  Report Current Get"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/v1/interviews/{interview_id}/report/generation-status":{"get":{"tags":["campaign-reports"],"summary":"Get Report Generation Status","description":"Return the status of the newest report version (any status), or an\nempty payload if no version exists yet.","operationId":"get_report_generation_status_v1_interviews__interview_id__report_generation_status_get","security":[{"HTTPBearer":[]}],"parameters":[{"name":"interview_id","in":"path","required":true,"schema":{"type":"string","format":"uuid","title":"Interview Id"}},{"name":"X-API-Key","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"X-Api-Key"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ReportGenerationStatusOut"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/v1/public/interviews/{share_token}/report":{"get":{"tags":["campaign-reports-public"],"summary":"Get Public Report Version","description":"Latest ready report for an enabled public share link, or null.\n\nAuthorized purely by the bearer token (an enabled link mints it, disabling\nthe link clears it). The public link intentionally exposes the report only\n— the shareable insights — never raw per-participant transcripts, which\nstay behind an authenticated share. Anonymity redaction is applied exactly\nas on the authenticated path.","operationId":"get_public_report_version_v1_public_interviews__share_token__report_get","parameters":[{"name":"share_token","in":"path","required":true,"schema":{"type":"string","title":"Share Token"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"anyOf":[{"$ref":"#/components/schemas/PublicReportOut"},{"type":"null"}],"title":"Response Get Public Report Version V1 Public Interviews  Share Token  Report Get"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/v1/public/interviews/{share_token}/conversations":{"get":{"tags":["campaign-reports-public"],"summary":"Get Public Conversations","description":"Conversation list for a public share link whose campaign grants at least\n'conversations' access. Delegates to the authenticated list handler with a\nshare-token principal, so the same access gate and shared-viewer redaction\n(session/booking tokens nulled, names hidden per row) apply.","operationId":"get_public_conversations_v1_public_interviews__share_token__conversations_get","parameters":[{"name":"share_token","in":"path","required":true,"schema":{"type":"string","title":"Share Token"}},{"name":"department","in":"query","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Department"}},{"name":"job_title","in":"query","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Job Title"}},{"name":"company","in":"query","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Company"}},{"name":"position","in":"query","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Position"}},{"name":"level","in":"query","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Level"}},{"name":"location","in":"query","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Location"}},{"name":"workgroup1","in":"query","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Workgroup1"}},{"name":"workgroup2","in":"query","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Workgroup2"}},{"name":"workgroup3","in":"query","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Workgroup3"}},{"name":"search","in":"query","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Search"}},{"name":"status","in":"query","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Status"}},{"name":"locale","in":"query","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Locale"}},{"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":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/v1/public/interviews/{share_token}/conversations/{conversation_id}":{"get":{"tags":["campaign-reports-public"],"summary":"Get Public Conversation Detail","description":"Single conversation detail for a public share link at 'conversations'+\naccess. Same delegation + redaction guarantees as the list above.","operationId":"get_public_conversation_detail_v1_public_interviews__share_token__conversations__conversation_id__get","parameters":[{"name":"share_token","in":"path","required":true,"schema":{"type":"string","title":"Share Token"}},{"name":"conversation_id","in":"path","required":true,"schema":{"type":"string","format":"uuid","title":"Conversation Id"}},{"name":"locale","in":"query","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Locale"}},{"name":"transcript_locale","in":"query","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Transcript Locale"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/v1/workspaces/{workspace_id}/sharing-family":{"get":{"tags":["campaign-sharing"],"summary":"List Workspace Family","operationId":"list_workspace_family_v1_workspaces__workspace_id__sharing_family_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/WorkspaceFamilyMemberOut"},"title":"Response List Workspace Family V1 Workspaces  Workspace Id  Sharing Family Get"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/v1/interviews/{interview_id}/shares":{"post":{"tags":["campaign-sharing"],"summary":"Create Campaign Share","operationId":"create_campaign_share_v1_interviews__interview_id__shares_post","security":[{"HTTPBearer":[]}],"parameters":[{"name":"interview_id","in":"path","required":true,"schema":{"type":"string","format":"uuid","title":"Interview Id"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/CampaignShareCreate"}}}},"responses":{"201":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/CampaignShareOut"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}},"get":{"tags":["campaign-sharing"],"summary":"List Campaign Shares","operationId":"list_campaign_shares_v1_interviews__interview_id__shares_get","security":[{"HTTPBearer":[]}],"parameters":[{"name":"interview_id","in":"path","required":true,"schema":{"type":"string","format":"uuid","title":"Interview Id"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/CampaignShareListOut"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/v1/workspaces/{workspace_id}/campaign-shares":{"get":{"tags":["campaign-sharing"],"summary":"List Received Campaign Shares","operationId":"list_received_campaign_shares_v1_workspaces__workspace_id__campaign_shares_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":{"$ref":"#/components/schemas/CampaignShareListOut"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/v1/interviews/{interview_id}/sharing":{"get":{"tags":["campaign-sharing"],"summary":"Get Campaign Sharing Settings","operationId":"get_campaign_sharing_settings_v1_interviews__interview_id__sharing_get","security":[{"HTTPBearer":[]}],"parameters":[{"name":"interview_id","in":"path","required":true,"schema":{"type":"string","format":"uuid","title":"Interview Id"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/CampaignSharingSettingsOut"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}},"patch":{"tags":["campaign-sharing"],"summary":"Update Campaign Sharing Settings","description":"Apply the historical campaign-wide sharing contract.\n\nOlder clients use one access level for public links, workspace shares, and\nevery e-mail recipient. Keep that behavior intact on the new backend.","operationId":"update_campaign_sharing_settings_v1_interviews__interview_id__sharing_patch","security":[{"HTTPBearer":[]}],"parameters":[{"name":"interview_id","in":"path","required":true,"schema":{"type":"string","format":"uuid","title":"Interview Id"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/CampaignSharingSettingsUpdate"}}}},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/CampaignSharingSettingsOut"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/v1/interviews/{interview_id}/sharing/permissions":{"get":{"tags":["campaign-sharing"],"summary":"Get Campaign Sharing Permissions","description":"Read the versioned independent permission model.\n\nKeeping this route separate from the legacy settings read prevents a new\nfrontend from hydrating granular controls with an old pod's lossy,\ncampaign-wide representation during a rolling deployment.","operationId":"get_campaign_sharing_permissions_v1_interviews__interview_id__sharing_permissions_get","security":[{"HTTPBearer":[]}],"parameters":[{"name":"interview_id","in":"path","required":true,"schema":{"type":"string","format":"uuid","title":"Interview Id"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/CampaignSharingSettingsOut"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}},"patch":{"tags":["campaign-sharing"],"summary":"Update Campaign Sharing Permissions","description":"Apply independent per-person and general-channel permissions.","operationId":"update_campaign_sharing_permissions_v1_interviews__interview_id__sharing_permissions_patch","security":[{"HTTPBearer":[]}],"parameters":[{"name":"interview_id","in":"path","required":true,"schema":{"type":"string","format":"uuid","title":"Interview Id"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/CampaignSharingPermissionsUpdate"}}}},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/CampaignSharingSettingsOut"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/v1/interviews/{interview_id}/sharing/view-sessions":{"post":{"tags":["campaign-sharing"],"summary":"Start Authenticated Campaign Share View Session","operationId":"start_authenticated_campaign_share_view_session_v1_interviews__interview_id__sharing_view_sessions_post","security":[{"HTTPBearer":[]}],"parameters":[{"name":"interview_id","in":"path","required":true,"schema":{"type":"string","format":"uuid","title":"Interview Id"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/CampaignShareViewSessionStart"}}}},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/CampaignShareViewSessionOut"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/v1/interviews/{interview_id}/sharing/view-sessions/{view_session_id}/heartbeat":{"post":{"tags":["campaign-sharing"],"summary":"Heartbeat Authenticated Campaign Share View Session","operationId":"heartbeat_authenticated_campaign_share_view_session_v1_interviews__interview_id__sharing_view_sessions__view_session_id__heartbeat_post","security":[{"HTTPBearer":[]}],"parameters":[{"name":"interview_id","in":"path","required":true,"schema":{"type":"string","format":"uuid","title":"Interview Id"}},{"name":"view_session_id","in":"path","required":true,"schema":{"type":"string","format":"uuid","title":"View Session Id"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/CampaignShareViewHeartbeat"}}}},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/CampaignShareViewSessionOut"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/v1/interviews/{interview_id}/sharing/analytics":{"get":{"tags":["campaign-sharing"],"summary":"Get Campaign Sharing Analytics","operationId":"get_campaign_sharing_analytics_v1_interviews__interview_id__sharing_analytics_get","security":[{"HTTPBearer":[]}],"parameters":[{"name":"interview_id","in":"path","required":true,"schema":{"type":"string","format":"uuid","title":"Interview Id"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/CampaignSharingAnalyticsOut"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/v1/public/interviews/{share_token}/sharing/view-sessions":{"post":{"tags":["campaign-sharing"],"summary":"Start Public Campaign Share View Session","operationId":"start_public_campaign_share_view_session_v1_public_interviews__share_token__sharing_view_sessions_post","parameters":[{"name":"share_token","in":"path","required":true,"schema":{"type":"string","title":"Share Token"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/CampaignShareViewSessionStart"}}}},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/CampaignShareViewSessionOut"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/v1/public/interviews/sharing/view-sessions/{view_session_id}/heartbeat":{"post":{"tags":["campaign-sharing"],"summary":"Heartbeat Public Campaign Share View Session Endpoint","operationId":"heartbeat_public_campaign_share_view_session_endpoint_v1_public_interviews_sharing_view_sessions__view_session_id__heartbeat_post","parameters":[{"name":"view_session_id","in":"path","required":true,"schema":{"type":"string","format":"uuid","title":"View Session Id"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/CampaignShareViewHeartbeat"}}}},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/CampaignShareViewSessionOut"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/v1/public/interviews/{share_token}/shell":{"get":{"tags":["campaign-sharing"],"summary":"Get Public Campaign Shell","operationId":"get_public_campaign_shell_v1_public_interviews__share_token__shell_get","parameters":[{"name":"share_token","in":"path","required":true,"schema":{"type":"string","title":"Share Token"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/app__api__campaign_shares__CampaignShellOut"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/v1/campaign-shares/{share_id}":{"patch":{"tags":["campaign-sharing"],"summary":"Decide Campaign Share","operationId":"decide_campaign_share_v1_campaign_shares__share_id__patch","security":[{"HTTPBearer":[]}],"parameters":[{"name":"share_id","in":"path","required":true,"schema":{"type":"string","format":"uuid","title":"Share Id"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/CampaignShareDecision"}}}},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/CampaignShareOut"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/v1/interviews/{interview_id}/question-results":{"get":{"tags":["question-results"],"summary":"Get Question Results","operationId":"get_question_results_v1_interviews__interview_id__question_results_get","security":[{"HTTPBearer":[]}],"parameters":[{"name":"interview_id","in":"path","required":true,"schema":{"type":"string","format":"uuid","title":"Interview Id"}},{"name":"topic_ids","in":"query","required":false,"schema":{"anyOf":[{"type":"array","items":{"type":"string","format":"uuid"}},{"type":"null"}],"title":"Topic Ids"}},{"name":"question_ids","in":"query","required":false,"schema":{"anyOf":[{"type":"array","items":{"type":"string","format":"uuid"}},{"type":"null"}],"title":"Question Ids"}},{"name":"limit","in":"query","required":false,"schema":{"type":"integer","maximum":500,"minimum":1,"default":100,"title":"Limit"}},{"name":"include_sources","in":"query","required":false,"schema":{"type":"boolean","default":false,"title":"Include Sources"}},{"name":"X-API-Key","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"X-Api-Key"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"type":"object","additionalProperties":true,"title":"Response Get Question Results V1 Interviews  Interview Id  Question Results Get"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/v1/interviews/{interview_id}/question-results/aggregate":{"post":{"tags":["question-results"],"summary":"Post Question Result Aggregate","operationId":"post_question_result_aggregate_v1_interviews__interview_id__question_results_aggregate_post","security":[{"HTTPBearer":[]}],"parameters":[{"name":"interview_id","in":"path","required":true,"schema":{"type":"string","format":"uuid","title":"Interview Id"}},{"name":"X-API-Key","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"X-Api-Key"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/AggregateQuestionRequest"}}}},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"type":"object","additionalProperties":true,"title":"Response Post Question Result Aggregate V1 Interviews  Interview Id  Question Results Aggregate Post"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/v1/interviews/{interview_id}/question-results/drilldown":{"post":{"tags":["question-results"],"summary":"Post Question Result Drilldown","operationId":"post_question_result_drilldown_v1_interviews__interview_id__question_results_drilldown_post","security":[{"HTTPBearer":[]}],"parameters":[{"name":"interview_id","in":"path","required":true,"schema":{"type":"string","format":"uuid","title":"Interview Id"}},{"name":"X-API-Key","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"X-Api-Key"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/DrilldownQuestionCategoryRequest"}}}},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"type":"object","additionalProperties":true,"title":"Response Post Question Result Drilldown V1 Interviews  Interview Id  Question Results Drilldown Post"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/v1/interviews/{interview_id}/component-results":{"get":{"tags":["question-results"],"summary":"Get Component Results","description":"Deterministic aggregates for interactive component questions.\n\nReads question_component_answers directly (plain SQL, no graph pipeline):\nstructured answers aggregate without any coding step. Test-lab\nconversations are excluded. Only aggregates leave this endpoint — raw\npayloads stay server-side — and report-only anonymity hides the whole\nsection, matching the other question-results endpoints.","operationId":"get_component_results_v1_interviews__interview_id__component_results_get","security":[{"HTTPBearer":[]}],"parameters":[{"name":"interview_id","in":"path","required":true,"schema":{"type":"string","format":"uuid","title":"Interview Id"}},{"name":"X-API-Key","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"X-Api-Key"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/v1/interviews/{interview_id}/graph/query":{"post":{"tags":["interview-query"],"summary":"Query Interview Graph","description":"Ask an ad-hoc question about a campaign's interview data.\n\nUses the interview graph RAG pipeline:\n1. Classify query complexity\n2. Retrieve relevant passages via vector search + graph traversal\n3. Verify retrieval quality (coverage, provenance)\n4. Synthesize a structured answer with patterns and divergences","operationId":"query_interview_graph_v1_interviews__interview_id__graph_query_post","security":[{"HTTPBearer":[]}],"parameters":[{"name":"interview_id","in":"path","required":true,"schema":{"type":"string","format":"uuid","title":"Interview Id"}},{"name":"X-API-Key","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"X-Api-Key"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/InterviewQueryRequest"}}}},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/InterviewQueryResponse"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/v1/interviews/{interview_id}/graph/status":{"get":{"tags":["interview-query"],"summary":"Get Graph Status","description":"Check the status of the interview graph pipeline.","operationId":"get_graph_status_v1_interviews__interview_id__graph_status_get","security":[{"HTTPBearer":[]}],"parameters":[{"name":"interview_id","in":"path","required":true,"schema":{"type":"string","format":"uuid","title":"Interview Id"}},{"name":"X-API-Key","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"X-Api-Key"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/GraphStatusResponse"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/v1/interviews/{interview_id}/graph/status/stream":{"get":{"tags":["interview-query"],"summary":"Stream Graph Status","description":"Stream interview graph status changes to the app via SSE.","operationId":"stream_graph_status_v1_interviews__interview_id__graph_status_stream_get","security":[{"HTTPBearer":[]}],"parameters":[{"name":"interview_id","in":"path","required":true,"schema":{"type":"string","format":"uuid","title":"Interview Id"}},{"name":"X-API-Key","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"X-Api-Key"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/v1/interviews/{interview_id}/chat/sessions":{"post":{"tags":["interview-query"],"summary":"Create Interview Chat Session","description":"Create a persisted research chat session for an interview campaign.","operationId":"create_interview_chat_session_v1_interviews__interview_id__chat_sessions_post","security":[{"HTTPBearer":[]}],"parameters":[{"name":"interview_id","in":"path","required":true,"schema":{"type":"string","format":"uuid","title":"Interview Id"}},{"name":"X-API-Key","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"X-Api-Key"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/InterviewChatSessionCreate"}}}},"responses":{"201":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/InterviewChatSessionOut"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}},"get":{"tags":["interview-query"],"summary":"List Interview Chat Sessions","description":"List persisted research chat sessions for an interview campaign.","operationId":"list_interview_chat_sessions_v1_interviews__interview_id__chat_sessions_get","security":[{"HTTPBearer":[]}],"parameters":[{"name":"interview_id","in":"path","required":true,"schema":{"type":"string","format":"uuid","title":"Interview Id"}},{"name":"X-API-Key","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"X-Api-Key"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"type":"array","items":{"$ref":"#/components/schemas/InterviewChatSessionOut"},"title":"Response List Interview Chat Sessions V1 Interviews  Interview Id  Chat Sessions Get"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/v1/interviews/{interview_id}/chat/sessions/{chat_session_id}":{"delete":{"tags":["interview-query"],"summary":"Delete Interview Chat Session","description":"Delete one persisted research chat session and its messages.","operationId":"delete_interview_chat_session_v1_interviews__interview_id__chat_sessions__chat_session_id__delete","security":[{"HTTPBearer":[]}],"parameters":[{"name":"interview_id","in":"path","required":true,"schema":{"type":"string","format":"uuid","title":"Interview Id"}},{"name":"chat_session_id","in":"path","required":true,"schema":{"type":"string","format":"uuid","title":"Chat Session Id"}},{"name":"X-API-Key","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"X-Api-Key"}}],"responses":{"204":{"description":"Successful Response"},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/v1/interviews/{interview_id}/chat/sessions/{chat_session_id}/messages":{"get":{"tags":["interview-query"],"summary":"List Interview Chat Messages","description":"List persisted messages in a research chat session.","operationId":"list_interview_chat_messages_v1_interviews__interview_id__chat_sessions__chat_session_id__messages_get","security":[{"HTTPBearer":[]}],"parameters":[{"name":"interview_id","in":"path","required":true,"schema":{"type":"string","format":"uuid","title":"Interview Id"}},{"name":"chat_session_id","in":"path","required":true,"schema":{"type":"string","format":"uuid","title":"Chat Session Id"}},{"name":"X-API-Key","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"X-Api-Key"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"type":"array","items":{"$ref":"#/components/schemas/InterviewChatMessageOut"},"title":"Response List Interview Chat Messages V1 Interviews  Interview Id  Chat Sessions  Chat Session Id  Messages Get"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/v1/insights-chat/models":{"get":{"tags":["insights-chat"],"summary":"List Insights Chat Models","description":"The selectable chat models (top Claude and GPT models only).","operationId":"list_insights_chat_models_v1_insights_chat_models_get","security":[{"HTTPBearer":[]}],"parameters":[{"name":"X-API-Key","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"X-Api-Key"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/v1/insights-chat/capabilities":{"get":{"tags":["insights-chat"],"summary":"Get Insights Chat Capabilities","description":"Feature capabilities available before a chat session is created.","operationId":"get_insights_chat_capabilities_v1_insights_chat_capabilities_get","security":[{"HTTPBearer":[]}],"parameters":[{"name":"workspace_id","in":"query","required":true,"schema":{"type":"string","format":"uuid","title":"Workspace Id"}},{"name":"interview_id","in":"query","required":false,"schema":{"anyOf":[{"type":"string","format":"uuid"},{"type":"null"}],"title":"Interview Id"}},{"name":"X-API-Key","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"X-Api-Key"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/InsightsChatCapabilitiesOut"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/v1/insights-chat/sessions":{"post":{"tags":["insights-chat"],"summary":"Create Workspace Chat Session","operationId":"create_workspace_chat_session_v1_insights_chat_sessions_post","security":[{"HTTPBearer":[]}],"parameters":[{"name":"X-API-Key","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"X-Api-Key"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/WorkspaceChatSessionCreate"}}}},"responses":{"201":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/InterviewChatSessionOut"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}},"get":{"tags":["insights-chat"],"summary":"List Workspace Chat Sessions","operationId":"list_workspace_chat_sessions_v1_insights_chat_sessions_get","security":[{"HTTPBearer":[]}],"parameters":[{"name":"workspace_id","in":"query","required":true,"schema":{"type":"string","format":"uuid","title":"Workspace Id"}},{"name":"X-API-Key","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"X-Api-Key"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"type":"array","items":{"$ref":"#/components/schemas/InterviewChatSessionOut"},"title":"Response List Workspace Chat Sessions V1 Insights Chat Sessions Get"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/v1/insights-chat/sessions/{chat_session_id}":{"delete":{"tags":["insights-chat"],"summary":"Delete Workspace Chat Session","operationId":"delete_workspace_chat_session_v1_insights_chat_sessions__chat_session_id__delete","security":[{"HTTPBearer":[]}],"parameters":[{"name":"chat_session_id","in":"path","required":true,"schema":{"type":"string","format":"uuid","title":"Chat Session Id"}},{"name":"X-API-Key","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"X-Api-Key"}}],"responses":{"204":{"description":"Successful Response"},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/v1/insights-chat/sessions/{chat_session_id}/messages":{"get":{"tags":["insights-chat"],"summary":"List Workspace Chat Messages","operationId":"list_workspace_chat_messages_v1_insights_chat_sessions__chat_session_id__messages_get","security":[{"HTTPBearer":[]}],"parameters":[{"name":"chat_session_id","in":"path","required":true,"schema":{"type":"string","format":"uuid","title":"Chat Session Id"}},{"name":"X-API-Key","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"X-Api-Key"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"type":"array","items":{"$ref":"#/components/schemas/InterviewChatMessageOut"},"title":"Response List Workspace Chat Messages V1 Insights Chat Sessions  Chat Session Id  Messages Get"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}},"post":{"tags":["insights-chat"],"summary":"Append Insights Chat Message","description":"Persist an untrusted user turn; assistant turns are never public writes.","operationId":"append_insights_chat_message_v1_insights_chat_sessions__chat_session_id__messages_post","security":[{"HTTPBearer":[]}],"parameters":[{"name":"chat_session_id","in":"path","required":true,"schema":{"type":"string","format":"uuid","title":"Chat Session Id"}},{"name":"X-API-Key","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"X-Api-Key"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/InsightsChatMessageIn"}}}},"responses":{"201":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/v1/insights-chat/sessions/{chat_session_id}/context":{"get":{"tags":["insights-chat"],"summary":"Get Insights Chat Context","description":"Everything the orchestration route needs before running the agent loop.","operationId":"get_insights_chat_context_v1_insights_chat_sessions__chat_session_id__context_get","security":[{"HTTPBearer":[]}],"parameters":[{"name":"chat_session_id","in":"path","required":true,"schema":{"type":"string","format":"uuid","title":"Chat Session Id"}},{"name":"X-API-Key","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"X-Api-Key"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/InsightsChatContextOut"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/v1/insights-chat/sessions/{chat_session_id}/analysis-runs":{"post":{"tags":["insights-chat"],"summary":"Create Transcript Analysis Run","operationId":"create_transcript_analysis_run_v1_insights_chat_sessions__chat_session_id__analysis_runs_post","security":[{"HTTPBearer":[]}],"parameters":[{"name":"chat_session_id","in":"path","required":true,"schema":{"type":"string","format":"uuid","title":"Chat Session Id"}},{"name":"X-API-Key","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"X-Api-Key"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/TranscriptAnalysisRunCreate"}}}},"responses":{"202":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/TranscriptAnalysisRunOut"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/v1/insights-chat/sessions/{chat_session_id}/analysis-runs/{run_id}":{"get":{"tags":["insights-chat"],"summary":"Get Transcript Analysis Run","operationId":"get_transcript_analysis_run_v1_insights_chat_sessions__chat_session_id__analysis_runs__run_id__get","security":[{"HTTPBearer":[]}],"parameters":[{"name":"chat_session_id","in":"path","required":true,"schema":{"type":"string","format":"uuid","title":"Chat Session Id"}},{"name":"run_id","in":"path","required":true,"schema":{"type":"string","format":"uuid","title":"Run Id"}},{"name":"X-API-Key","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"X-Api-Key"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/TranscriptAnalysisRunOut"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/v1/insights-chat/sessions/{chat_session_id}/analysis-runs/{run_id}/cancel":{"post":{"tags":["insights-chat"],"summary":"Cancel Transcript Analysis Run","operationId":"cancel_transcript_analysis_run_v1_insights_chat_sessions__chat_session_id__analysis_runs__run_id__cancel_post","security":[{"HTTPBearer":[]}],"parameters":[{"name":"chat_session_id","in":"path","required":true,"schema":{"type":"string","format":"uuid","title":"Chat Session Id"}},{"name":"run_id","in":"path","required":true,"schema":{"type":"string","format":"uuid","title":"Run Id"}},{"name":"X-API-Key","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"X-Api-Key"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/TranscriptAnalysisRunOut"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/v1/insights-chat/sessions/{chat_session_id}/analysis-runs/{run_id}/retry":{"post":{"tags":["insights-chat"],"summary":"Retry Transcript Analysis Run","operationId":"retry_transcript_analysis_run_v1_insights_chat_sessions__chat_session_id__analysis_runs__run_id__retry_post","security":[{"HTTPBearer":[]}],"parameters":[{"name":"chat_session_id","in":"path","required":true,"schema":{"type":"string","format":"uuid","title":"Chat Session Id"}},{"name":"run_id","in":"path","required":true,"schema":{"type":"string","format":"uuid","title":"Run Id"}},{"name":"X-API-Key","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"X-Api-Key"}}],"responses":{"202":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/TranscriptAnalysisRunOut"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/v1/insights-chat/sessions/{chat_session_id}/tool-calls":{"post":{"tags":["insights-chat"],"summary":"Execute Insights Chat Tool","description":"Execute one read tool for the agent loop.\n\nReturns the tool result plus the privacy-sanitized citations the call\nregistered, so the orchestration layer can only ever cite sources that\nactually came out of a tool.","operationId":"execute_insights_chat_tool_v1_insights_chat_sessions__chat_session_id__tool_calls_post","security":[{"HTTPBearer":[]}],"parameters":[{"name":"chat_session_id","in":"path","required":true,"schema":{"type":"string","format":"uuid","title":"Chat Session Id"}},{"name":"X-API-Key","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"X-Api-Key"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/InsightsChatToolCall"}}}},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/v1/insights-chat/sessions/{chat_session_id}/demo-answer":{"post":{"tags":["insights-chat"],"summary":"Get Insights Chat Demo Answer","description":"Canned demo-campaign answer, or 404 when the query is not the demo one.","operationId":"get_insights_chat_demo_answer_v1_insights_chat_sessions__chat_session_id__demo_answer_post","security":[{"HTTPBearer":[]}],"parameters":[{"name":"chat_session_id","in":"path","required":true,"schema":{"type":"string","format":"uuid","title":"Chat Session Id"}},{"name":"X-API-Key","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"X-Api-Key"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/InsightsChatDemoRequest"}}}},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/v1/interview-agents":{"get":{"tags":["interview-agents"],"summary":"List Agent Profiles","operationId":"list_agent_profiles_v1_interview_agents_get","security":[{"HTTPBearer":[]}],"parameters":[{"name":"workspace_id","in":"query","required":true,"schema":{"type":"string","format":"uuid","title":"Workspace Id"}},{"name":"author_id","in":"query","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Author Id"}},{"name":"folder","in":"query","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Folder"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/AgentProfileListOut"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}},"post":{"tags":["interview-agents"],"summary":"Create Agent Profile","operationId":"create_agent_profile_v1_interview_agents_post","security":[{"HTTPBearer":[]}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/AgentProfileCreate"}}}},"responses":{"201":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/AgentProfileOut"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/v1/interview-agents/list-page":{"get":{"tags":["interview-agents"],"summary":"List Agent Profiles Page","operationId":"list_agent_profiles_page_v1_interview_agents_list_page_get","security":[{"HTTPBearer":[]}],"parameters":[{"name":"workspace_id","in":"query","required":true,"schema":{"type":"string","format":"uuid","title":"Workspace Id"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/AgentProfileListPageOut"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/v1/interview-agents/skills":{"get":{"tags":["interview-agents"],"summary":"List Agent Skills","operationId":"list_agent_skills_v1_interview_agents_skills_get","security":[{"HTTPBearer":[]}],"parameters":[{"name":"workspace_id","in":"query","required":true,"schema":{"type":"string","format":"uuid","title":"Workspace Id"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/AgentSkillListOut"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}},"post":{"tags":["interview-agents"],"summary":"Create Agent Skill","operationId":"create_agent_skill_v1_interview_agents_skills_post","security":[{"HTTPBearer":[]}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/AgentSkillCreate"}}}},"responses":{"201":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/AgentSkillOut"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/v1/interview-agents/skills/optimize":{"post":{"tags":["interview-agents"],"summary":"Optimize Agent Skill Text","operationId":"optimize_agent_skill_text_v1_interview_agents_skills_optimize_post","requestBody":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/AgentSkillOptimizeIn"}}},"required":true},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/AgentSkillOptimizeOut"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}},"security":[{"HTTPBearer":[]}]}},"/v1/interview-agents/skills/{skill_id}":{"patch":{"tags":["interview-agents"],"summary":"Update Agent Skill","operationId":"update_agent_skill_v1_interview_agents_skills__skill_id__patch","security":[{"HTTPBearer":[]}],"parameters":[{"name":"skill_id","in":"path","required":true,"schema":{"type":"string","format":"uuid","title":"Skill Id"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/AgentSkillPatch"}}}},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/AgentSkillOut"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}},"delete":{"tags":["interview-agents"],"summary":"Delete Agent Skill","operationId":"delete_agent_skill_v1_interview_agents_skills__skill_id__delete","security":[{"HTTPBearer":[]}],"parameters":[{"name":"skill_id","in":"path","required":true,"schema":{"type":"string","format":"uuid","title":"Skill Id"}}],"responses":{"204":{"description":"Successful Response"},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/v1/interview-agents/skills/{skill_id}/archive":{"post":{"tags":["interview-agents"],"summary":"Archive Agent Skill","operationId":"archive_agent_skill_v1_interview_agents_skills__skill_id__archive_post","security":[{"HTTPBearer":[]}],"parameters":[{"name":"skill_id","in":"path","required":true,"schema":{"type":"string","format":"uuid","title":"Skill Id"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/AgentSkillOut"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/v1/interview-agents/skills/{skill_id}/icon":{"post":{"tags":["interview-agents"],"summary":"Upload Agent Skill Icon","operationId":"upload_agent_skill_icon_v1_interview_agents_skills__skill_id__icon_post","security":[{"HTTPBearer":[]}],"parameters":[{"name":"skill_id","in":"path","required":true,"schema":{"type":"string","format":"uuid","title":"Skill Id"}}],"requestBody":{"required":true,"content":{"multipart/form-data":{"schema":{"$ref":"#/components/schemas/Body_upload_agent_skill_icon_v1_interview_agents_skills__skill_id__icon_post"}}}},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/AgentSkillOut"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}},"delete":{"tags":["interview-agents"],"summary":"Delete Agent Skill Icon","operationId":"delete_agent_skill_icon_v1_interview_agents_skills__skill_id__icon_delete","security":[{"HTTPBearer":[]}],"parameters":[{"name":"skill_id","in":"path","required":true,"schema":{"type":"string","format":"uuid","title":"Skill Id"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/AgentSkillOut"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/v1/interview-agents/skills/{skill_id}/files":{"post":{"tags":["interview-agents"],"summary":"Upload Agent Skill File","operationId":"upload_agent_skill_file_v1_interview_agents_skills__skill_id__files_post","security":[{"HTTPBearer":[]}],"parameters":[{"name":"skill_id","in":"path","required":true,"schema":{"type":"string","format":"uuid","title":"Skill Id"}}],"requestBody":{"required":true,"content":{"multipart/form-data":{"schema":{"$ref":"#/components/schemas/Body_upload_agent_skill_file_v1_interview_agents_skills__skill_id__files_post"}}}},"responses":{"201":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/AgentSkillDocumentOut"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/v1/interview-agents/skills/{skill_id}/files/{file_id}":{"delete":{"tags":["interview-agents"],"summary":"Delete Agent Skill File","operationId":"delete_agent_skill_file_v1_interview_agents_skills__skill_id__files__file_id__delete","security":[{"HTTPBearer":[]}],"parameters":[{"name":"skill_id","in":"path","required":true,"schema":{"type":"string","format":"uuid","title":"Skill Id"}},{"name":"file_id","in":"path","required":true,"schema":{"type":"string","format":"uuid","title":"File Id"}}],"responses":{"204":{"description":"Successful Response"},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/v1/interview-agents/drafts":{"post":{"tags":["interview-agents"],"summary":"Create Agent Profile Draft","operationId":"create_agent_profile_draft_v1_interview_agents_drafts_post","requestBody":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/AgentProfileDraftCreate"}}},"required":true},"responses":{"201":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/AgentProfileOut"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}},"security":[{"HTTPBearer":[]}]}},"/v1/interview-agents/folders":{"get":{"tags":["interview-agents"],"summary":"List Agent Profile Folders","operationId":"list_agent_profile_folders_v1_interview_agents_folders_get","security":[{"HTTPBearer":[]}],"parameters":[{"name":"workspace_id","in":"query","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/AgentProfileFolderOut"},"title":"Response List Agent Profile Folders V1 Interview Agents Folders Get"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}},"post":{"tags":["interview-agents"],"summary":"Create Agent Profile Folder","operationId":"create_agent_profile_folder_v1_interview_agents_folders_post","security":[{"HTTPBearer":[]}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/AgentProfileFolderCreate"}}}},"responses":{"201":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/AgentProfileFolderOut"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/v1/interview-agents/folders/{folder_id}":{"delete":{"tags":["interview-agents"],"summary":"Delete Agent Profile Folder","operationId":"delete_agent_profile_folder_v1_interview_agents_folders__folder_id__delete","security":[{"HTTPBearer":[]}],"parameters":[{"name":"folder_id","in":"path","required":true,"schema":{"type":"string","format":"uuid","title":"Folder Id"}}],"responses":{"204":{"description":"Successful Response"},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/v1/interview-agents/{agent_id}":{"get":{"tags":["interview-agents"],"summary":"Get Agent Profile","operationId":"get_agent_profile_v1_interview_agents__agent_id__get","security":[{"HTTPBearer":[]}],"parameters":[{"name":"agent_id","in":"path","required":true,"schema":{"type":"string","format":"uuid","title":"Agent Id"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/AgentProfileOut"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}},"patch":{"tags":["interview-agents"],"summary":"Update Agent Profile","operationId":"update_agent_profile_v1_interview_agents__agent_id__patch","security":[{"HTTPBearer":[]}],"parameters":[{"name":"agent_id","in":"path","required":true,"schema":{"type":"string","format":"uuid","title":"Agent Id"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/AgentProfilePatch"}}}},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/AgentProfileOut"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}},"delete":{"tags":["interview-agents"],"summary":"Delete Agent Profile","operationId":"delete_agent_profile_v1_interview_agents__agent_id__delete","security":[{"HTTPBearer":[]}],"parameters":[{"name":"agent_id","in":"path","required":true,"schema":{"type":"string","format":"uuid","title":"Agent Id"}}],"responses":{"204":{"description":"Successful Response"},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/v1/interview-agents/{agent_id}/draft-save":{"post":{"tags":["interview-agents"],"summary":"Save Agent Profile Draft","operationId":"save_agent_profile_draft_v1_interview_agents__agent_id__draft_save_post","security":[{"HTTPBearer":[]}],"parameters":[{"name":"agent_id","in":"path","required":true,"schema":{"type":"string","format":"uuid","title":"Agent Id"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/AgentProfilePatch"}}}},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/AgentProfileOut"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/v1/interview-agents/{agent_id}/voice-preview":{"post":{"tags":["interview-agents"],"summary":"Create Agent Profile Voice Preview","operationId":"create_agent_profile_voice_preview_v1_interview_agents__agent_id__voice_preview_post","security":[{"HTTPBearer":[]}],"parameters":[{"name":"agent_id","in":"path","required":true,"schema":{"type":"string","format":"uuid","title":"Agent Id"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/AgentProfileVoicePreviewRequest"}}}},"responses":{"201":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/AgentProfileVoicePreviewResponse"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/v1/interview-agents/{agent_id}/duplicate":{"post":{"tags":["interview-agents"],"summary":"Duplicate Agent Profile","operationId":"duplicate_agent_profile_v1_interview_agents__agent_id__duplicate_post","security":[{"HTTPBearer":[]}],"parameters":[{"name":"agent_id","in":"path","required":true,"schema":{"type":"string","format":"uuid","title":"Agent Id"}}],"responses":{"201":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/AgentProfileOut"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/v1/interview-agents/{agent_id}/archive":{"post":{"tags":["interview-agents"],"summary":"Archive Agent Profile","operationId":"archive_agent_profile_v1_interview_agents__agent_id__archive_post","security":[{"HTTPBearer":[]}],"parameters":[{"name":"agent_id","in":"path","required":true,"schema":{"type":"string","format":"uuid","title":"Agent Id"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/AgentProfileOut"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/v1/interview-agents/{agent_id}/avatar":{"post":{"tags":["interview-agents"],"summary":"Upload Agent Profile Avatar","operationId":"upload_agent_profile_avatar_v1_interview_agents__agent_id__avatar_post","security":[{"HTTPBearer":[]}],"parameters":[{"name":"agent_id","in":"path","required":true,"schema":{"type":"string","format":"uuid","title":"Agent Id"}}],"requestBody":{"required":true,"content":{"multipart/form-data":{"schema":{"$ref":"#/components/schemas/Body_upload_agent_profile_avatar_v1_interview_agents__agent_id__avatar_post"}}}},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/AgentProfileOut"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}},"delete":{"tags":["interview-agents"],"summary":"Delete Agent Profile Avatar","operationId":"delete_agent_profile_avatar_v1_interview_agents__agent_id__avatar_delete","security":[{"HTTPBearer":[]}],"parameters":[{"name":"agent_id","in":"path","required":true,"schema":{"type":"string","format":"uuid","title":"Agent Id"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/AgentProfileOut"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/v1/interview-agents/{agent_id}/files":{"post":{"tags":["interview-agents"],"summary":"Upload Agent Profile File","operationId":"upload_agent_profile_file_v1_interview_agents__agent_id__files_post","security":[{"HTTPBearer":[]}],"parameters":[{"name":"agent_id","in":"path","required":true,"schema":{"type":"string","format":"uuid","title":"Agent Id"}}],"requestBody":{"required":true,"content":{"multipart/form-data":{"schema":{"$ref":"#/components/schemas/Body_upload_agent_profile_file_v1_interview_agents__agent_id__files_post"}}}},"responses":{"201":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/AgentProfileDocumentOut"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/v1/interview-agents/{agent_id}/files/{file_id}":{"delete":{"tags":["interview-agents"],"summary":"Delete Agent Profile File","operationId":"delete_agent_profile_file_v1_interview_agents__agent_id__files__file_id__delete","security":[{"HTTPBearer":[]}],"parameters":[{"name":"agent_id","in":"path","required":true,"schema":{"type":"string","format":"uuid","title":"Agent Id"}},{"name":"file_id","in":"path","required":true,"schema":{"type":"string","format":"uuid","title":"File Id"}}],"responses":{"204":{"description":"Successful Response"},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/v1/interview-agents/{agent_id}/versions":{"get":{"tags":["interview-agents"],"summary":"List Agent Profile Versions","operationId":"list_agent_profile_versions_v1_interview_agents__agent_id__versions_get","security":[{"HTTPBearer":[]}],"parameters":[{"name":"agent_id","in":"path","required":true,"schema":{"type":"string","format":"uuid","title":"Agent Id"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/AgentProfileVersionsOut"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/v1/interview-agents/{agent_id}/versions/{version_id}/restore":{"post":{"tags":["interview-agents"],"summary":"Restore Agent Profile Version","operationId":"restore_agent_profile_version_v1_interview_agents__agent_id__versions__version_id__restore_post","security":[{"HTTPBearer":[]}],"parameters":[{"name":"agent_id","in":"path","required":true,"schema":{"type":"string","format":"uuid","title":"Agent Id"}},{"name":"version_id","in":"path","required":true,"schema":{"type":"string","format":"uuid","title":"Version Id"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/AgentProfileOut"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/v1/interview-agents/preview-session":{"post":{"tags":["interview-agents"],"summary":"Preview Agent Profile","operationId":"preview_agent_profile_v1_interview_agents_preview_session_post","requestBody":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/PreviewSessionRequest"}}},"required":true},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/PreviewSessionResponse"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}},"security":[{"HTTPBearer":[]}]}},"/v1/interview-agents/interviews/{interview_id}/agent-profile":{"post":{"tags":["interview-agents"],"summary":"Assign Agent Profile To Interview","operationId":"assign_agent_profile_to_interview_v1_interview_agents_interviews__interview_id__agent_profile_post","security":[{"HTTPBearer":[]}],"parameters":[{"name":"interview_id","in":"path","required":true,"schema":{"type":"string","format":"uuid","title":"Interview Id"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/AssignAgentProfileRequest"}}}},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/v1/mission-control/scope":{"get":{"tags":["mission-control"],"summary":"Get Mission Control Scope","description":"Return interview campaign vault scope for Mission Control.","operationId":"get_mission_control_scope_v1_mission_control_scope_get","security":[{"HTTPBearer":[]}],"parameters":[{"name":"workspace_id","in":"query","required":true,"schema":{"type":"string","format":"uuid","title":"Workspace Id"}},{"name":"ensure_campaign_vaults","in":"query","required":false,"schema":{"type":"boolean","default":true,"title":"Ensure Campaign Vaults"}},{"name":"X-API-Key","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"X-Api-Key"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/MissionControlScopeOut"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/v1/mission-control/chat/sessions":{"post":{"tags":["mission-control"],"summary":"Create Mission Control Chat Session","operationId":"create_mission_control_chat_session_v1_mission_control_chat_sessions_post","security":[{"HTTPBearer":[]}],"parameters":[{"name":"X-API-Key","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"X-Api-Key"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/MissionControlChatSessionCreate"}}}},"responses":{"201":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/MissionControlChatSessionOut"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}},"get":{"tags":["mission-control"],"summary":"List Mission Control Chat Sessions","operationId":"list_mission_control_chat_sessions_v1_mission_control_chat_sessions_get","security":[{"HTTPBearer":[]}],"parameters":[{"name":"workspace_id","in":"query","required":true,"schema":{"type":"string","format":"uuid","title":"Workspace Id"}},{"name":"view","in":"query","required":false,"schema":{"enum":["mine","shared"],"type":"string","default":"mine","title":"View"}},{"name":"author_id","in":"query","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Author Id"}},{"name":"folder","in":"query","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Folder"}},{"name":"X-API-Key","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"X-Api-Key"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"type":"array","items":{"$ref":"#/components/schemas/MissionControlChatSessionOut"},"title":"Response List Mission Control Chat Sessions V1 Mission Control Chat Sessions Get"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/v1/mission-control/chat/folders":{"get":{"tags":["mission-control"],"summary":"List Mission Control Chat Folders","operationId":"list_mission_control_chat_folders_v1_mission_control_chat_folders_get","security":[{"HTTPBearer":[]}],"parameters":[{"name":"workspace_id","in":"query","required":true,"schema":{"type":"string","format":"uuid","title":"Workspace Id"}},{"name":"X-API-Key","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"X-Api-Key"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"type":"array","items":{"$ref":"#/components/schemas/MissionControlChatFolderOut"},"title":"Response List Mission Control Chat Folders V1 Mission Control Chat Folders Get"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}},"post":{"tags":["mission-control"],"summary":"Create Mission Control Chat Folder","operationId":"create_mission_control_chat_folder_v1_mission_control_chat_folders_post","security":[{"HTTPBearer":[]}],"parameters":[{"name":"X-API-Key","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"X-Api-Key"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/MissionControlChatFolderCreate"}}}},"responses":{"201":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/MissionControlChatFolderOut"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/v1/mission-control/chat/folders/{folder_id}":{"delete":{"tags":["mission-control"],"summary":"Delete Mission Control Chat Folder","operationId":"delete_mission_control_chat_folder_v1_mission_control_chat_folders__folder_id__delete","security":[{"HTTPBearer":[]}],"parameters":[{"name":"folder_id","in":"path","required":true,"schema":{"type":"string","format":"uuid","title":"Folder Id"}},{"name":"X-API-Key","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"X-Api-Key"}}],"responses":{"204":{"description":"Successful Response"},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/v1/mission-control/chat/sessions/{chat_session_id}":{"get":{"tags":["mission-control"],"summary":"Get Mission Control Chat Session","operationId":"get_mission_control_chat_session_v1_mission_control_chat_sessions__chat_session_id__get","security":[{"HTTPBearer":[]}],"parameters":[{"name":"chat_session_id","in":"path","required":true,"schema":{"type":"string","format":"uuid","title":"Chat Session Id"}},{"name":"X-API-Key","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"X-Api-Key"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/MissionControlChatSessionOut"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}},"patch":{"tags":["mission-control"],"summary":"Update Mission Control Chat Session","operationId":"update_mission_control_chat_session_v1_mission_control_chat_sessions__chat_session_id__patch","security":[{"HTTPBearer":[]}],"parameters":[{"name":"chat_session_id","in":"path","required":true,"schema":{"type":"string","format":"uuid","title":"Chat Session Id"}},{"name":"X-API-Key","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"X-Api-Key"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/MissionControlChatSessionPatch"}}}},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/MissionControlChatSessionOut"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}},"delete":{"tags":["mission-control"],"summary":"Delete Mission Control Chat Session","operationId":"delete_mission_control_chat_session_v1_mission_control_chat_sessions__chat_session_id__delete","security":[{"HTTPBearer":[]}],"parameters":[{"name":"chat_session_id","in":"path","required":true,"schema":{"type":"string","format":"uuid","title":"Chat Session Id"}},{"name":"X-API-Key","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"X-Api-Key"}}],"responses":{"204":{"description":"Successful Response"},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/v1/mission-control/chat/sessions/{chat_session_id}/shares":{"put":{"tags":["mission-control"],"summary":"Update Mission Control Chat Session Shares","operationId":"update_mission_control_chat_session_shares_v1_mission_control_chat_sessions__chat_session_id__shares_put","security":[{"HTTPBearer":[]}],"parameters":[{"name":"chat_session_id","in":"path","required":true,"schema":{"type":"string","format":"uuid","title":"Chat Session Id"}},{"name":"X-API-Key","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"X-Api-Key"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/MissionControlChatSessionSharePatch"}}}},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/MissionControlChatSessionOut"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/v1/mission-control/chat/messages/{message_id}/feedback":{"put":{"tags":["mission-control"],"summary":"Update Mission Control Chat Message Feedback","operationId":"update_mission_control_chat_message_feedback_v1_mission_control_chat_messages__message_id__feedback_put","security":[{"HTTPBearer":[]}],"parameters":[{"name":"message_id","in":"path","required":true,"schema":{"type":"string","format":"uuid","title":"Message Id"}},{"name":"X-API-Key","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"X-Api-Key"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/MissionControlChatMessageFeedbackPatch"}}}},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/MissionControlChatMessageFeedbackOut"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/v1/mission-control/chat/sessions/{chat_session_id}/messages":{"get":{"tags":["mission-control"],"summary":"List Mission Control Chat Messages","operationId":"list_mission_control_chat_messages_v1_mission_control_chat_sessions__chat_session_id__messages_get","security":[{"HTTPBearer":[]}],"parameters":[{"name":"chat_session_id","in":"path","required":true,"schema":{"type":"string","format":"uuid","title":"Chat Session Id"}},{"name":"X-API-Key","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"X-Api-Key"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"type":"array","items":{"$ref":"#/components/schemas/MissionControlChatMessageOut"},"title":"Response List Mission Control Chat Messages V1 Mission Control Chat Sessions  Chat Session Id  Messages Get"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/v1/mission-control/chat/sessions/{chat_session_id}/query/stream":{"post":{"tags":["mission-control"],"summary":"Query Mission Control Chat Session Stream","operationId":"query_mission_control_chat_session_stream_v1_mission_control_chat_sessions__chat_session_id__query_stream_post","security":[{"HTTPBearer":[]}],"parameters":[{"name":"chat_session_id","in":"path","required":true,"schema":{"type":"string","format":"uuid","title":"Chat Session Id"}},{"name":"X-API-Key","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"X-Api-Key"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/MissionControlQueryRequest"}}}},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/v1/knowledge/dimensions":{"get":{"tags":["knowledge"],"summary":"Get Dimensions","operationId":"get_dimensions_v1_knowledge_dimensions_get","security":[{"HTTPBearer":[]}],"parameters":[{"name":"workspace_id","in":"query","required":true,"schema":{"type":"string","format":"uuid","title":"Workspace Id"}},{"name":"X-API-Key","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"X-Api-Key"}}],"requestBody":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/Body_get_dimensions_v1_knowledge_dimensions_get"}}}},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"type":"object","additionalProperties":true,"title":"Response Get Dimensions V1 Knowledge Dimensions Get"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/v1/knowledge/aggregate":{"post":{"tags":["knowledge"],"summary":"Post Aggregate","operationId":"post_aggregate_v1_knowledge_aggregate_post","security":[{"HTTPBearer":[]}],"parameters":[{"name":"X-API-Key","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"X-Api-Key"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/AggregateRequest"}}}},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"type":"object","additionalProperties":true,"title":"Response Post Aggregate V1 Knowledge Aggregate Post"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/v1/knowledge/crosstab":{"post":{"tags":["knowledge"],"summary":"Post Crosstab","operationId":"post_crosstab_v1_knowledge_crosstab_post","security":[{"HTTPBearer":[]}],"parameters":[{"name":"X-API-Key","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"X-Api-Key"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/CrosstabRequest"}}}},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"type":"object","additionalProperties":true,"title":"Response Post Crosstab V1 Knowledge Crosstab Post"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/v1/knowledge/drilldown":{"post":{"tags":["knowledge"],"summary":"Post Drilldown","operationId":"post_drilldown_v1_knowledge_drilldown_post","security":[{"HTTPBearer":[]}],"parameters":[{"name":"X-API-Key","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"X-Api-Key"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/DrilldownRequest"}}}},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"type":"object","additionalProperties":true,"title":"Response Post Drilldown V1 Knowledge Drilldown Post"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/v1/knowledge/ontology":{"get":{"tags":["knowledge"],"summary":"Get Ontology","operationId":"get_ontology_v1_knowledge_ontology_get","security":[{"HTTPBearer":[]}],"parameters":[{"name":"workspace_id","in":"query","required":true,"schema":{"type":"string","format":"uuid","title":"Workspace Id"}},{"name":"interview_ids","in":"query","required":false,"schema":{"anyOf":[{"type":"array","items":{"type":"string","format":"uuid"}},{"type":"null"}],"title":"Interview Ids"}},{"name":"topic_ids","in":"query","required":false,"schema":{"anyOf":[{"type":"array","items":{"type":"string","format":"uuid"}},{"type":"null"}],"title":"Topic Ids"}},{"name":"question_ids","in":"query","required":false,"schema":{"anyOf":[{"type":"array","items":{"type":"string","format":"uuid"}},{"type":"null"}],"title":"Question Ids"}},{"name":"assertion_types","in":"query","required":false,"schema":{"anyOf":[{"type":"array","items":{"type":"string"}},{"type":"null"}],"title":"Assertion Types"}},{"name":"entity_types","in":"query","required":false,"schema":{"anyOf":[{"type":"array","items":{"type":"string"}},{"type":"null"}],"title":"Entity Types"}},{"name":"limit","in":"query","required":false,"schema":{"type":"integer","default":200,"title":"Limit"}},{"name":"X-API-Key","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"X-Api-Key"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"type":"object","additionalProperties":true,"title":"Response Get Ontology V1 Knowledge Ontology Get"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/v1/knowledge/entity-overrides":{"post":{"tags":["knowledge"],"summary":"Post Entity Override","description":"Hide/unhide or rename a knowledge entity for a campaign.\n\nOverrides live in Postgres and are applied when the ontology is served, so\ncuration survives every re-indexing of the graph. A row exists only while\nit changes something — clearing both facets removes it.","operationId":"post_entity_override_v1_knowledge_entity_overrides_post","security":[{"HTTPBearer":[]}],"parameters":[{"name":"X-API-Key","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"X-Api-Key"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/EntityOverrideRequest"}}}},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"type":"object","additionalProperties":true,"title":"Response Post Entity Override V1 Knowledge Entity Overrides Post"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/v1/knowledge/entity-overrides/clear-hidden":{"post":{"tags":["knowledge"],"summary":"Post Clear Hidden Entities","description":"Unhide every hidden entity of a campaign; renames stay untouched.","operationId":"post_clear_hidden_entities_v1_knowledge_entity_overrides_clear_hidden_post","security":[{"HTTPBearer":[]}],"parameters":[{"name":"X-API-Key","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"X-Api-Key"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ClearHiddenRequest"}}}},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"type":"object","additionalProperties":true,"title":"Response Post Clear Hidden Entities V1 Knowledge Entity Overrides Clear Hidden Post"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/v1/interviews/{interview_id}/export/transcript/{conversation_id}":{"get":{"tags":["interview-export"],"summary":"Export Transcript","description":"Export a single interview transcript as markdown (default) or JSON.\n\nJSON returns the structured transcript turns plus conversation metadata —\nthe machine-readable counterpart of the markdown export, with the same\nanonymity redactions.","operationId":"export_transcript_v1_interviews__interview_id__export_transcript__conversation_id__get","security":[{"HTTPBearer":[]}],"parameters":[{"name":"interview_id","in":"path","required":true,"schema":{"type":"string","format":"uuid","title":"Interview Id"}},{"name":"conversation_id","in":"path","required":true,"schema":{"type":"string","format":"uuid","title":"Conversation Id"}},{"name":"format","in":"query","required":false,"schema":{"type":"string","pattern":"^(md|json)$","default":"md","title":"Format"}},{"name":"X-API-Key","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"X-Api-Key"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/v1/interviews/{interview_id}/export/transcripts":{"get":{"tags":["interview-export"],"summary":"Export All Transcripts","description":"Export all completed transcripts for a campaign as a ZIP of markdown files.","operationId":"export_all_transcripts_v1_interviews__interview_id__export_transcripts_get","security":[{"HTTPBearer":[]}],"parameters":[{"name":"interview_id","in":"path","required":true,"schema":{"type":"string","format":"uuid","title":"Interview Id"}},{"name":"X-API-Key","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"X-Api-Key"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/v1/interviews/{interview_id}/export/responses":{"get":{"tags":["interview-export"],"summary":"Export Responses","description":"Export the campaign responses table as CSV or Excel.","operationId":"export_responses_v1_interviews__interview_id__export_responses_get","security":[{"HTTPBearer":[]}],"parameters":[{"name":"interview_id","in":"path","required":true,"schema":{"type":"string","format":"uuid","title":"Interview Id"}},{"name":"format","in":"query","required":false,"schema":{"type":"string","pattern":"^(csv|xlsx)$","default":"csv","title":"Format"}},{"name":"X-API-Key","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"X-Api-Key"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/v1/interviews/{interview_id}/export/summary":{"get":{"tags":["interview-export"],"summary":"Export Summary","description":"Export the campaign dashboard summary as markdown.","operationId":"export_summary_v1_interviews__interview_id__export_summary_get","security":[{"HTTPBearer":[]}],"parameters":[{"name":"interview_id","in":"path","required":true,"schema":{"type":"string","format":"uuid","title":"Interview Id"}},{"name":"X-API-Key","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"X-Api-Key"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/v1/interviews/{interview_id}/export/report":{"get":{"tags":["interview-export"],"summary":"Export Full Report","description":"Export the full synthesis report as markdown.","operationId":"export_full_report_v1_interviews__interview_id__export_report_get","security":[{"HTTPBearer":[]}],"parameters":[{"name":"interview_id","in":"path","required":true,"schema":{"type":"string","format":"uuid","title":"Interview Id"}},{"name":"X-API-Key","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"X-Api-Key"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/v1/interviews/{interview_id}/export/report.pdf":{"get":{"tags":["interview-export"],"summary":"Export Full Report Pdf","description":"Export the full synthesis report as a PDF.","operationId":"export_full_report_pdf_v1_interviews__interview_id__export_report_pdf_get","security":[{"HTTPBearer":[]}],"parameters":[{"name":"interview_id","in":"path","required":true,"schema":{"type":"string","format":"uuid","title":"Interview Id"}},{"name":"X-API-Key","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"X-Api-Key"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}},"post":{"tags":["interview-export"],"summary":"Render Visible Report Pdf","description":"Render a PDF from a freshly revalidated server-side report.\n\nThe posted Markdown may have been loaded before a privacy tightening and\nis therefore not a trustworthy serving source.  Keep the request shape for\ncompatible clients, but rebuild the report from current database policy.","operationId":"render_visible_report_pdf_v1_interviews__interview_id__export_report_pdf_post","security":[{"HTTPBearer":[]}],"parameters":[{"name":"interview_id","in":"path","required":true,"schema":{"type":"string","format":"uuid","title":"Interview Id"}},{"name":"X-API-Key","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"X-Api-Key"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ReportPdfRenderRequest"}}}},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/v1/interviews/{interview_id}/corpus/manifest":{"get":{"tags":["protected-corpus"],"summary":"Get Corpus Manifest","description":"Return every non-test response that completed or contains transcript text.","operationId":"get_corpus_manifest_v1_interviews__interview_id__corpus_manifest_get","parameters":[{"name":"interview_id","in":"path","required":true,"schema":{"type":"string","format":"uuid","title":"Interview Id"}},{"name":"X-API-Key","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"X-Api-Key"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/CorpusManifestOut"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/v1/interviews/{interview_id}/corpus/records/{response_id}":{"get":{"tags":["protected-corpus"],"summary":"Get Corpus Record","description":"Return one exact record, guarded by its optional record hash.","operationId":"get_corpus_record_v1_interviews__interview_id__corpus_records__response_id__get","parameters":[{"name":"interview_id","in":"path","required":true,"schema":{"type":"string","format":"uuid","title":"Interview Id"}},{"name":"response_id","in":"path","required":true,"schema":{"type":"string","format":"uuid","title":"Response Id"}},{"name":"expected_record_hash","in":"query","required":false,"schema":{"anyOf":[{"type":"string","minLength":64,"maxLength":64,"pattern":"^[0-9a-fA-F]{64}$"},{"type":"null"}],"title":"Expected Record Hash"}},{"name":"X-API-Key","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"X-Api-Key"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/CorpusRecordOut"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/v1/interviews/{interview_id}/corpus/export":{"get":{"tags":["protected-corpus"],"summary":"Export Corpus Ndjson","description":"Export the exact current record objects as one canonical JSON line each.","operationId":"export_corpus_ndjson_v1_interviews__interview_id__corpus_export_get","parameters":[{"name":"interview_id","in":"path","required":true,"schema":{"type":"string","format":"uuid","title":"Interview Id"}},{"name":"expected_manifest_hash","in":"query","required":false,"schema":{"anyOf":[{"type":"string","minLength":64,"maxLength":64,"pattern":"^[0-9a-fA-F]{64}$"},{"type":"null"}],"title":"Expected Manifest Hash"}},{"name":"X-API-Key","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"X-Api-Key"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/v1/ingest/manual/document":{"post":{"tags":["manual-ingest"],"summary":"Ingest Manual Document","description":"Ingest a single document manually.\n\nThe document will be processed through the full pipeline:\n1. Stored in PostgreSQL\n2. Chunked into smaller pieces\n3. Embedded with OpenAI embeddings\n4. Entities and relations extracted\n5. Knowledge graph updated in Neo4j\n\nThis is useful for:\n- Testing with real transcripts\n- Importing external documents\n- Quick demos without OAuth setup","operationId":"ingest_manual_document_v1_ingest_manual_document_post","requestBody":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ManualIngestRequest"}}},"required":true},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ManualIngestResponse"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}},"security":[{"HTTPBearer":[]}]}},"/v1/ingest/manual/transcript":{"post":{"tags":["manual-ingest"],"summary":"Ingest Transcript","description":"Convenience endpoint for ingesting meeting/interview transcripts.\n\nAutomatically sets document_type to 'transcript' and formats metadata\nappropriately for meeting content.","operationId":"ingest_transcript_v1_ingest_manual_transcript_post","security":[{"HTTPBearer":[]}],"parameters":[{"name":"workspace_id","in":"query","required":true,"schema":{"type":"string","format":"uuid","title":"Workspace Id"}},{"name":"title","in":"query","required":true,"schema":{"type":"string","title":"Title"}},{"name":"transcript","in":"query","required":true,"schema":{"type":"string","title":"Transcript"}},{"name":"meeting_date","in":"query","required":false,"schema":{"anyOf":[{"type":"string","format":"date-time"},{"type":"null"}],"title":"Meeting Date"}},{"name":"vault_id","in":"query","required":false,"schema":{"anyOf":[{"type":"string","format":"uuid"},{"type":"null"}],"title":"Vault Id"}}],"requestBody":{"content":{"application/json":{"schema":{"anyOf":[{"type":"array","items":{"type":"string"}},{"type":"null"}],"title":"Participants"}}}},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ManualIngestResponse"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/v1/ingest/manual/bulk":{"post":{"tags":["manual-ingest"],"summary":"Ingest Bulk","description":"Ingest multiple documents at once.\n\nUseful for batch importing documents or transcripts.\nMaximum 50 documents per request.","operationId":"ingest_bulk_v1_ingest_manual_bulk_post","requestBody":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/BulkIngestRequest"}}},"required":true},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/BulkIngestResponse"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}},"security":[{"HTTPBearer":[]}]}},"/v1/ingest/manual/status/{document_id}":{"get":{"tags":["manual-ingest"],"summary":"Get Document Status","description":"Check the processing status of a manually ingested document.\n\nReturns the document details and any pending/running jobs.","operationId":"get_document_status_v1_ingest_manual_status__document_id__get","security":[{"HTTPBearer":[]}],"parameters":[{"name":"document_id","in":"path","required":true,"schema":{"type":"string","format":"uuid","title":"Document Id"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/v1/context":{"post":{"tags":["query"],"summary":"Get Context","description":"Return raw context (chunks + facts) without LLM answer - for frontend AI SDK.","operationId":"get_context_v1_context_post","requestBody":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ContextRequest"}}},"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":[]}]}},"/v1/query":{"post":{"tags":["query"],"summary":"Query","operationId":"query_v1_query_post","requestBody":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/QueryRequest"}}},"required":true},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/QueryResponse"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}},"security":[{"HTTPBearer":[]}]}},"/v1/retrieval":{"post":{"tags":["retrieval"],"summary":"Retrieve Context","description":"Retrieve relevant context from a vault based on a prompt.\n\nReturns chunks of text with source information. Use this endpoint when\nyou want to build your own prompts or use the context with a different LLM.\n\nAuthentication: X-API-Key header required.","operationId":"retrieve_context_v1_retrieval_post","parameters":[{"name":"X-API-Key","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"X-Api-Key"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/RetrievalRequest"}}}},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/RetrievalResponse"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/v1/retrieval/answer":{"post":{"tags":["retrieval"],"summary":"Retrieve Answer","description":"Get an LLM-generated answer based on vault context.\n\nThis endpoint retrieves relevant context and generates an answer using\nthe LLM. The response includes the answer text with source citations.\n\nAuthentication: X-API-Key header required.","operationId":"retrieve_answer_v1_retrieval_answer_post","parameters":[{"name":"X-API-Key","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"X-Api-Key"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/RetrievalRequest"}}}},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/AnswerResponse"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/v1/search":{"post":{"tags":["search"],"summary":"Search","description":"Search across the internal knowledge base.","operationId":"search_v1_search_post","requestBody":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/SearchRequest"}}},"required":true},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/SearchResponse"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}},"security":[{"HTTPBearer":[]}]}},"/v1/slack/events":{"post":{"tags":["slack"],"summary":"Slack Events","operationId":"slack_events_v1_slack_events_post","responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}}}}},"/v1/slack/interactions":{"post":{"tags":["slack"],"summary":"Slack Interactions","operationId":"slack_interactions_v1_slack_interactions_post","responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}}}}},"/v1/slack/actions":{"post":{"tags":["slack"],"summary":"Slack Interactions","operationId":"slack_interactions_v1_slack_actions_post","responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}}}}},"/v1/slack/users":{"get":{"tags":["slack"],"summary":"List Slack Users","operationId":"list_slack_users_v1_slack_users_get","security":[{"HTTPBearer":[]}],"parameters":[{"name":"workspace_id","in":"query","required":true,"schema":{"type":"string","format":"uuid","title":"Workspace Id"}},{"name":"limit","in":"query","required":false,"schema":{"type":"integer","maximum":500,"minimum":1,"default":200,"title":"Limit"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/SlackUsersResponse"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/v1/slack/users/import":{"post":{"tags":["slack"],"summary":"Import Slack Users","operationId":"import_slack_users_v1_slack_users_import_post","requestBody":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/SlackImportUsersRequest"}}},"required":true},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/SlackImportUsersResponse"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}},"security":[{"HTTPBearer":[]}]}},"/v1/jobs/stats":{"get":{"tags":["jobs"],"summary":"Job Stats","operationId":"job_stats_v1_jobs_stats_get","security":[{"HTTPBearer":[]}],"parameters":[{"name":"workspace_id","in":"query","required":true,"schema":{"type":"string","format":"uuid","title":"Workspace Id"}},{"name":"scope","in":"query","required":false,"schema":{"enum":["all","ingestion"],"type":"string","default":"all","title":"Scope"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/JobStatsResponse"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/v1/jobs/failed":{"get":{"tags":["jobs"],"summary":"Failed Jobs","operationId":"failed_jobs_v1_jobs_failed_get","security":[{"HTTPBearer":[]}],"parameters":[{"name":"workspace_id","in":"query","required":true,"schema":{"type":"string","format":"uuid","title":"Workspace Id"}},{"name":"limit","in":"query","required":false,"schema":{"type":"integer","maximum":100,"default":20,"title":"Limit"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"type":"array","items":{"$ref":"#/components/schemas/FailedJob"},"title":"Response Failed Jobs V1 Jobs Failed Get"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/v1/jobs/active":{"get":{"tags":["jobs"],"summary":"Active Jobs","operationId":"active_jobs_v1_jobs_active_get","security":[{"HTTPBearer":[]}],"parameters":[{"name":"workspace_id","in":"query","required":true,"schema":{"type":"string","format":"uuid","title":"Workspace Id"}},{"name":"limit","in":"query","required":false,"schema":{"type":"integer","maximum":100,"default":20,"title":"Limit"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"type":"array","items":{"$ref":"#/components/schemas/ActiveJob"},"title":"Response Active Jobs V1 Jobs Active Get"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/v1/sources/nango/connect-session":{"post":{"tags":["sources"],"summary":"Create Connect Session","description":"Create a Nango connect session for the frontend OAuth flow.\n\nThe frontend uses this token to open Nango's Connect UI, which handles\nthe OAuth flow and creates the connection. Nango sends a webhook when\nthe connection is complete.","operationId":"create_connect_session_v1_sources_nango_connect_session_post","requestBody":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ConnectSessionRequest"}}},"required":true},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ConnectSessionResponse"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}},"security":[{"HTTPBearer":[]}]}},"/v1/sources/nango/connection/{connection_id}":{"get":{"tags":["sources"],"summary":"Get Connection Metadata","description":"Fetch connection metadata from Nango, including the OAuth account email.\n\nThis is used to get the connected account's email for display name generation.","operationId":"get_connection_metadata_v1_sources_nango_connection__connection_id__get","security":[{"HTTPBearer":[]}],"parameters":[{"name":"connection_id","in":"path","required":true,"schema":{"type":"string","title":"Connection Id"}},{"name":"provider_config_key","in":"query","required":true,"schema":{"type":"string","title":"Provider Config Key"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ConnectionMetadataResponse"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/v1/sources/personio/connect":{"post":{"tags":["sources"],"summary":"Connect Personio With Client Credentials","description":"Connect Personio with customer-provided client credentials and optionally run the first people sync.","operationId":"connect_personio_with_client_credentials_v1_sources_personio_connect_post","requestBody":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/PersonioConnectRequest"}}},"required":true},"responses":{"201":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/PersonioConnectResponse"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}},"security":[{"HTTPBearer":[]}]}},"/v1/sources/nango/register":{"post":{"tags":["sources"],"summary":"Register Connection","description":"Register a new OAuth connection.\n\nIdempotent: returns existing connection if already registered.","operationId":"register_connection_v1_sources_nango_register_post","requestBody":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/RegisterConnectionRequest"}}},"required":true},"responses":{"201":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/RegisterConnectionResponse"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}},"security":[{"HTTPBearer":[]}]}},"/v1/sources":{"get":{"tags":["sources"],"summary":"List Sources","description":"List all source connections for a workspace with their vault assignments.\n\nReturns shared connections (owner_user_id IS NULL) plus the current user's\npersonal connections.","operationId":"list_sources_v1_sources_get","security":[{"HTTPBearer":[]}],"parameters":[{"name":"workspace_id","in":"query","required":true,"schema":{"type":"string","format":"uuid","title":"Workspace Id"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/v1/sources/{source_id}/directory-sync":{"post":{"tags":["sources"],"summary":"Trigger Msteams Directory Sync","description":"Enqueue a directory sync run for one Teams send-connection.\n\n409 when a run is already executing — the settings dialog shows the\nin-progress state instead of stacking runs.","operationId":"trigger_msteams_directory_sync_v1_sources__source_id__directory_sync_post","security":[{"HTTPBearer":[]}],"parameters":[{"name":"source_id","in":"path","required":true,"schema":{"type":"string","format":"uuid","title":"Source Id"}}],"responses":{"202":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}},"patch":{"tags":["sources"],"summary":"Update Msteams Directory Sync Settings","description":"Set the recurring sync frequency (off / daily / weekly) for a connection.","operationId":"update_msteams_directory_sync_settings_v1_sources__source_id__directory_sync_patch","security":[{"HTTPBearer":[]}],"parameters":[{"name":"source_id","in":"path","required":true,"schema":{"type":"string","format":"uuid","title":"Source Id"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/DirectorySyncSettingsRequest"}}}},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/v1/sources/{source_id}/directory-import":{"post":{"tags":["sources"],"summary":"Trigger Msteams Directory Import","description":"Enqueue the explicit \"import directory users as people\" job.\n\nThe Slack-style consent step: the sync only MATCHES until this runs; the\nfirst successful import flips import_enabled, after which recurring\nsyncs pick up new directory users automatically. 409 while a sync or an\nimport is executing; 404 before the first sync result exists (there is\nnothing to approve yet).","operationId":"trigger_msteams_directory_import_v1_sources__source_id__directory_import_post","security":[{"HTTPBearer":[]}],"parameters":[{"name":"source_id","in":"path","required":true,"schema":{"type":"string","format":"uuid","title":"Source Id"}}],"responses":{"202":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/v1/sources/{source_id}":{"delete":{"tags":["sources"],"summary":"Delete Source","description":"Delete a source connection.\n\nThis removes the connection from our database. The Nango connection\nis also deleted to clean up OAuth tokens.","operationId":"delete_source_v1_sources__source_id__delete","security":[{"HTTPBearer":[]}],"parameters":[{"name":"source_id","in":"path","required":true,"schema":{"type":"string","format":"uuid","title":"Source Id"}}],"responses":{"204":{"description":"Successful Response"},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}},"patch":{"tags":["sources"],"summary":"Update Source Connection","description":"Update user-managed metadata for a source connection.","operationId":"update_source_connection_v1_sources__source_id__patch","security":[{"HTTPBearer":[]}],"parameters":[{"name":"source_id","in":"path","required":true,"schema":{"type":"string","format":"uuid","title":"Source Id"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/UpdateSourceConnectionRequest"}}}},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/UpdateSourceConnectionResponse"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/v1/sources/nango/connections":{"get":{"tags":["sources"],"summary":"List Connections","description":"Legacy endpoint - use GET /v1/sources instead.","operationId":"list_connections_v1_sources_nango_connections_get","security":[{"HTTPBearer":[]}],"parameters":[{"name":"workspace_id","in":"query","required":true,"schema":{"type":"string","format":"uuid","title":"Workspace Id"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/v1/sources/by-type/{source_type}/backfill":{"post":{"tags":["sources"],"summary":"Backfill","description":"Fetch all existing records from Nango for a source type and ingest them.\nThis syncs ALL connections of the given source type.\nPass workspace_id as query param.","operationId":"backfill_v1_sources_by_type__source_type__backfill_post","security":[{"HTTPBearer":[]}],"parameters":[{"name":"source_type","in":"path","required":true,"schema":{"$ref":"#/components/schemas/SourceType"}},{"name":"workspace_id","in":"query","required":true,"schema":{"type":"string","format":"uuid","title":"Workspace Id"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/BackfillResponse"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/v1/sources/{source_id}/backfill":{"post":{"tags":["sources"],"summary":"Backfill Connection","description":"Fetch all existing records from Nango for a specific connection and ingest them.\nThis is the per-connection version of backfill for when multiple connections exist.","operationId":"backfill_connection_v1_sources__source_id__backfill_post","security":[{"HTTPBearer":[]}],"parameters":[{"name":"source_id","in":"path","required":true,"schema":{"type":"string","format":"uuid","title":"Source Id"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/BackfillResponse"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/v1/sources/{source_id}/personio/sync-people":{"post":{"tags":["sources"],"summary":"Sync Personio Connection People","description":"Sync Personio employees into workspace people records.","operationId":"sync_personio_connection_people_v1_sources__source_id__personio_sync_people_post","security":[{"HTTPBearer":[]}],"parameters":[{"name":"source_id","in":"path","required":true,"schema":{"type":"string","format":"uuid","title":"Source Id"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/PersonioPeopleSyncRequest"}}}},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/PersonioPeopleSyncResponse"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/v1/sources/{source_id}/sync-frequency":{"patch":{"tags":["sources"],"summary":"Update Sync Frequency","description":"Update the sync frequency for a source connection.\n\nFrequency uses ms-style notation: \"every 30min\", \"every 1h\", \"every 6h\", \"every 24h\"\nSet to null to revert to default frequency.\nMinimum frequency is 5 minutes.","operationId":"update_sync_frequency_v1_sources__source_id__sync_frequency_patch","security":[{"HTTPBearer":[]}],"parameters":[{"name":"source_id","in":"path","required":true,"schema":{"type":"string","format":"uuid","title":"Source Id"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/SyncFrequencyRequest"}}}},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/SyncFrequencyResponse"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/v1/sources/{source_id}/sync/start":{"post":{"tags":["sources"],"summary":"Start Sync","description":"Start (or resume) automatic syncing for a source connection.","operationId":"start_sync_v1_sources__source_id__sync_start_post","security":[{"HTTPBearer":[]}],"parameters":[{"name":"source_id","in":"path","required":true,"schema":{"type":"string","format":"uuid","title":"Source Id"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/SyncControlResponse"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/v1/sources/{source_id}/sync/pause":{"post":{"tags":["sources"],"summary":"Pause Sync","description":"Pause automatic syncing for a source connection.","operationId":"pause_sync_v1_sources__source_id__sync_pause_post","security":[{"HTTPBearer":[]}],"parameters":[{"name":"source_id","in":"path","required":true,"schema":{"type":"string","format":"uuid","title":"Source Id"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/SyncControlResponse"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/v1/sources/{source_id}/sync-status":{"get":{"tags":["sources"],"summary":"Get Connection Sync Status","description":"Get the Nango sync status for a source connection.\n\nReturns the current sync status from Nango including:\n- nango_status: RUNNING, SUCCESS, ERROR, PAUSED, or STOPPED\n- finished_at: When the sync last completed\n- next_scheduled_sync_at: When the next sync is scheduled\n- record_count: Number of records in Nango\n- last_sync_result: Latest sync result with added/updated/deleted counts","operationId":"get_connection_sync_status_v1_sources__source_id__sync_status_get","security":[{"HTTPBearer":[]}],"parameters":[{"name":"source_id","in":"path","required":true,"schema":{"type":"string","format":"uuid","title":"Source Id"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/NangoSyncStatusResponse"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/v1/hubspot/contacts":{"get":{"tags":["hubspot"],"summary":"List Contacts","description":"List contacts from HubSpot.","operationId":"list_contacts_v1_hubspot_contacts_get","security":[{"HTTPBearer":[]}],"parameters":[{"name":"workspace_id","in":"query","required":true,"schema":{"type":"string","format":"uuid","title":"Workspace Id"}},{"name":"limit","in":"query","required":false,"schema":{"type":"integer","default":100,"title":"Limit"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"type":"array","items":{"$ref":"#/components/schemas/app__api__hubspot__ContactResponse"},"title":"Response List Contacts V1 Hubspot Contacts Get"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}},"post":{"tags":["hubspot"],"summary":"Create Contact","description":"Create a contact in HubSpot.","operationId":"create_contact_v1_hubspot_contacts_post","security":[{"HTTPBearer":[]}],"parameters":[{"name":"workspace_id","in":"query","required":true,"schema":{"type":"string","format":"uuid","title":"Workspace Id"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ContactInput"}}}},"responses":{"201":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/app__api__hubspot__ContactResponse"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/v1/hubspot/contacts/{contact_id}":{"put":{"tags":["hubspot"],"summary":"Update Contact","description":"Update a contact in HubSpot.","operationId":"update_contact_v1_hubspot_contacts__contact_id__put","security":[{"HTTPBearer":[]}],"parameters":[{"name":"contact_id","in":"path","required":true,"schema":{"type":"string","title":"Contact Id"}},{"name":"workspace_id","in":"query","required":true,"schema":{"type":"string","format":"uuid","title":"Workspace Id"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ContactInput"}}}},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/app__api__hubspot__ContactResponse"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}},"delete":{"tags":["hubspot"],"summary":"Delete Contact","description":"Delete a contact in HubSpot.","operationId":"delete_contact_v1_hubspot_contacts__contact_id__delete","security":[{"HTTPBearer":[]}],"parameters":[{"name":"contact_id","in":"path","required":true,"schema":{"type":"string","title":"Contact Id"}},{"name":"workspace_id","in":"query","required":true,"schema":{"type":"string","format":"uuid","title":"Workspace Id"}}],"responses":{"204":{"description":"Successful Response"},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/v1/hubspot/companies":{"get":{"tags":["hubspot"],"summary":"List Companies","description":"List companies from HubSpot.","operationId":"list_companies_v1_hubspot_companies_get","security":[{"HTTPBearer":[]}],"parameters":[{"name":"workspace_id","in":"query","required":true,"schema":{"type":"string","format":"uuid","title":"Workspace Id"}},{"name":"limit","in":"query","required":false,"schema":{"type":"integer","default":100,"title":"Limit"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"type":"array","items":{"$ref":"#/components/schemas/app__api__hubspot__CompanyResponse"},"title":"Response List Companies V1 Hubspot Companies Get"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}},"post":{"tags":["hubspot"],"summary":"Create Company","description":"Create a company in HubSpot.","operationId":"create_company_v1_hubspot_companies_post","security":[{"HTTPBearer":[]}],"parameters":[{"name":"workspace_id","in":"query","required":true,"schema":{"type":"string","format":"uuid","title":"Workspace Id"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/app__api__hubspot__CompanyInput"}}}},"responses":{"201":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/app__api__hubspot__CompanyResponse"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/v1/hubspot/companies/{company_id}":{"put":{"tags":["hubspot"],"summary":"Update Company","description":"Update a company in HubSpot.","operationId":"update_company_v1_hubspot_companies__company_id__put","security":[{"HTTPBearer":[]}],"parameters":[{"name":"company_id","in":"path","required":true,"schema":{"type":"string","title":"Company Id"}},{"name":"workspace_id","in":"query","required":true,"schema":{"type":"string","format":"uuid","title":"Workspace Id"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/app__api__hubspot__CompanyInput"}}}},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/app__api__hubspot__CompanyResponse"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}},"delete":{"tags":["hubspot"],"summary":"Delete Company","description":"Delete a company in HubSpot.","operationId":"delete_company_v1_hubspot_companies__company_id__delete","security":[{"HTTPBearer":[]}],"parameters":[{"name":"company_id","in":"path","required":true,"schema":{"type":"string","title":"Company Id"}},{"name":"workspace_id","in":"query","required":true,"schema":{"type":"string","format":"uuid","title":"Workspace Id"}}],"responses":{"204":{"description":"Successful Response"},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/v1/hubspot/deals":{"get":{"tags":["hubspot"],"summary":"List Deals","description":"List deals from HubSpot.","operationId":"list_deals_v1_hubspot_deals_get","security":[{"HTTPBearer":[]}],"parameters":[{"name":"workspace_id","in":"query","required":true,"schema":{"type":"string","format":"uuid","title":"Workspace Id"}},{"name":"limit","in":"query","required":false,"schema":{"type":"integer","default":100,"title":"Limit"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"type":"array","items":{"$ref":"#/components/schemas/app__api__hubspot__DealResponse"},"title":"Response List Deals V1 Hubspot Deals Get"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}},"post":{"tags":["hubspot"],"summary":"Create Deal","description":"Create a deal in HubSpot.","operationId":"create_deal_v1_hubspot_deals_post","security":[{"HTTPBearer":[]}],"parameters":[{"name":"workspace_id","in":"query","required":true,"schema":{"type":"string","format":"uuid","title":"Workspace Id"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/app__api__hubspot__DealInput"}}}},"responses":{"201":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/app__api__hubspot__DealResponse"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/v1/hubspot/deals/{deal_id}":{"put":{"tags":["hubspot"],"summary":"Update Deal","description":"Update a deal in HubSpot.","operationId":"update_deal_v1_hubspot_deals__deal_id__put","security":[{"HTTPBearer":[]}],"parameters":[{"name":"deal_id","in":"path","required":true,"schema":{"type":"string","title":"Deal Id"}},{"name":"workspace_id","in":"query","required":true,"schema":{"type":"string","format":"uuid","title":"Workspace Id"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/app__api__hubspot__DealInput"}}}},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/app__api__hubspot__DealResponse"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}},"delete":{"tags":["hubspot"],"summary":"Delete Deal","description":"Delete a deal in HubSpot.","operationId":"delete_deal_v1_hubspot_deals__deal_id__delete","security":[{"HTTPBearer":[]}],"parameters":[{"name":"deal_id","in":"path","required":true,"schema":{"type":"string","title":"Deal Id"}},{"name":"workspace_id","in":"query","required":true,"schema":{"type":"string","format":"uuid","title":"Workspace Id"}}],"responses":{"204":{"description":"Successful Response"},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/v1/google-calendar/calendars":{"get":{"tags":["google-calendar"],"summary":"List Calendars","description":"List calendars from Google Calendar.","operationId":"list_calendars_v1_google_calendar_calendars_get","security":[{"HTTPBearer":[]}],"parameters":[{"name":"workspace_id","in":"query","required":true,"schema":{"type":"string","format":"uuid","title":"Workspace Id"}},{"name":"limit","in":"query","required":false,"schema":{"type":"integer","default":100,"title":"Limit"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"type":"array","items":{"$ref":"#/components/schemas/CalendarResponse"},"title":"Response List Calendars V1 Google Calendar Calendars Get"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/v1/google-calendar/events":{"get":{"tags":["google-calendar"],"summary":"List Events","description":"List events from Google Calendar.","operationId":"list_events_v1_google_calendar_events_get","security":[{"HTTPBearer":[]}],"parameters":[{"name":"workspace_id","in":"query","required":true,"schema":{"type":"string","format":"uuid","title":"Workspace Id"}},{"name":"limit","in":"query","required":false,"schema":{"type":"integer","default":100,"title":"Limit"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"type":"array","items":{"$ref":"#/components/schemas/EventResponse"},"title":"Response List Events V1 Google Calendar Events Get"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}},"post":{"tags":["google-calendar"],"summary":"Create Event","description":"Create an event in Google Calendar.","operationId":"create_event_v1_google_calendar_events_post","security":[{"HTTPBearer":[]}],"parameters":[{"name":"workspace_id","in":"query","required":true,"schema":{"type":"string","format":"uuid","title":"Workspace Id"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/EventInput"}}}},"responses":{"201":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/EventResponse"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/v1/google-calendar/events/{event_id}":{"put":{"tags":["google-calendar"],"summary":"Update Event","description":"Update an event in Google Calendar.","operationId":"update_event_v1_google_calendar_events__event_id__put","security":[{"HTTPBearer":[]}],"parameters":[{"name":"event_id","in":"path","required":true,"schema":{"type":"string","title":"Event Id"}},{"name":"workspace_id","in":"query","required":true,"schema":{"type":"string","format":"uuid","title":"Workspace Id"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/EventInput"}}}},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/EventResponse"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}},"delete":{"tags":["google-calendar"],"summary":"Delete Event","description":"Delete an event in Google Calendar.","operationId":"delete_event_v1_google_calendar_events__event_id__delete","security":[{"HTTPBearer":[]}],"parameters":[{"name":"event_id","in":"path","required":true,"schema":{"type":"string","title":"Event Id"}},{"name":"workspace_id","in":"query","required":true,"schema":{"type":"string","format":"uuid","title":"Workspace Id"}},{"name":"calendar_id","in":"query","required":false,"schema":{"type":"string","default":"primary","title":"Calendar Id"}}],"responses":{"204":{"description":"Successful Response"},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/v1/pipedrive/persons":{"get":{"tags":["pipedrive"],"summary":"List Persons","description":"List persons from Pipedrive.","operationId":"list_persons_v1_pipedrive_persons_get","security":[{"HTTPBearer":[]}],"parameters":[{"name":"workspace_id","in":"query","required":true,"schema":{"type":"string","format":"uuid","title":"Workspace Id"}},{"name":"limit","in":"query","required":false,"schema":{"type":"integer","default":100,"title":"Limit"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"type":"array","items":{"$ref":"#/components/schemas/app__api__pipedrive__PersonResponse"},"title":"Response List Persons V1 Pipedrive Persons Get"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}},"post":{"tags":["pipedrive"],"summary":"Create Person","description":"Create a person in Pipedrive.","operationId":"create_person_v1_pipedrive_persons_post","security":[{"HTTPBearer":[]}],"parameters":[{"name":"workspace_id","in":"query","required":true,"schema":{"type":"string","format":"uuid","title":"Workspace Id"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/app__api__pipedrive__PersonInput"}}}},"responses":{"201":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/app__api__pipedrive__PersonResponse"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/v1/pipedrive/persons/{person_id}":{"put":{"tags":["pipedrive"],"summary":"Update Person","description":"Update a person in Pipedrive.","operationId":"update_person_v1_pipedrive_persons__person_id__put","security":[{"HTTPBearer":[]}],"parameters":[{"name":"person_id","in":"path","required":true,"schema":{"type":"string","title":"Person Id"}},{"name":"workspace_id","in":"query","required":true,"schema":{"type":"string","format":"uuid","title":"Workspace Id"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/app__api__pipedrive__PersonInput"}}}},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/app__api__pipedrive__PersonResponse"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}},"delete":{"tags":["pipedrive"],"summary":"Delete Person","description":"Delete a person in Pipedrive.","operationId":"delete_person_v1_pipedrive_persons__person_id__delete","security":[{"HTTPBearer":[]}],"parameters":[{"name":"person_id","in":"path","required":true,"schema":{"type":"string","title":"Person Id"}},{"name":"workspace_id","in":"query","required":true,"schema":{"type":"string","format":"uuid","title":"Workspace Id"}}],"responses":{"204":{"description":"Successful Response"},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/v1/pipedrive/organizations":{"get":{"tags":["pipedrive"],"summary":"List Organizations","description":"List organizations from Pipedrive.","operationId":"list_organizations_v1_pipedrive_organizations_get","security":[{"HTTPBearer":[]}],"parameters":[{"name":"workspace_id","in":"query","required":true,"schema":{"type":"string","format":"uuid","title":"Workspace Id"}},{"name":"limit","in":"query","required":false,"schema":{"type":"integer","default":100,"title":"Limit"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"type":"array","items":{"$ref":"#/components/schemas/OrganizationResponse"},"title":"Response List Organizations V1 Pipedrive Organizations Get"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}},"post":{"tags":["pipedrive"],"summary":"Create Organization","description":"Create an organization in Pipedrive.","operationId":"create_organization_v1_pipedrive_organizations_post","security":[{"HTTPBearer":[]}],"parameters":[{"name":"workspace_id","in":"query","required":true,"schema":{"type":"string","format":"uuid","title":"Workspace Id"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/OrganizationInput"}}}},"responses":{"201":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/OrganizationResponse"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/v1/pipedrive/organizations/{org_id}":{"put":{"tags":["pipedrive"],"summary":"Update Organization","description":"Update an organization in Pipedrive.","operationId":"update_organization_v1_pipedrive_organizations__org_id__put","security":[{"HTTPBearer":[]}],"parameters":[{"name":"org_id","in":"path","required":true,"schema":{"type":"string","title":"Org Id"}},{"name":"workspace_id","in":"query","required":true,"schema":{"type":"string","format":"uuid","title":"Workspace Id"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/OrganizationInput"}}}},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/OrganizationResponse"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}},"delete":{"tags":["pipedrive"],"summary":"Delete Organization","description":"Delete an organization in Pipedrive.","operationId":"delete_organization_v1_pipedrive_organizations__org_id__delete","security":[{"HTTPBearer":[]}],"parameters":[{"name":"org_id","in":"path","required":true,"schema":{"type":"string","title":"Org Id"}},{"name":"workspace_id","in":"query","required":true,"schema":{"type":"string","format":"uuid","title":"Workspace Id"}}],"responses":{"204":{"description":"Successful Response"},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/v1/pipedrive/deals":{"get":{"tags":["pipedrive"],"summary":"List Deals","description":"List deals from Pipedrive.","operationId":"list_deals_v1_pipedrive_deals_get","security":[{"HTTPBearer":[]}],"parameters":[{"name":"workspace_id","in":"query","required":true,"schema":{"type":"string","format":"uuid","title":"Workspace Id"}},{"name":"limit","in":"query","required":false,"schema":{"type":"integer","default":100,"title":"Limit"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"type":"array","items":{"$ref":"#/components/schemas/app__api__pipedrive__DealResponse"},"title":"Response List Deals V1 Pipedrive Deals Get"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}},"post":{"tags":["pipedrive"],"summary":"Create Deal","description":"Create a deal in Pipedrive.","operationId":"create_deal_v1_pipedrive_deals_post","security":[{"HTTPBearer":[]}],"parameters":[{"name":"workspace_id","in":"query","required":true,"schema":{"type":"string","format":"uuid","title":"Workspace Id"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/app__api__pipedrive__DealInput"}}}},"responses":{"201":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/app__api__pipedrive__DealResponse"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/v1/pipedrive/deals/{deal_id}":{"put":{"tags":["pipedrive"],"summary":"Update Deal","description":"Update a deal in Pipedrive.","operationId":"update_deal_v1_pipedrive_deals__deal_id__put","security":[{"HTTPBearer":[]}],"parameters":[{"name":"deal_id","in":"path","required":true,"schema":{"type":"string","title":"Deal Id"}},{"name":"workspace_id","in":"query","required":true,"schema":{"type":"string","format":"uuid","title":"Workspace Id"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/app__api__pipedrive__DealInput"}}}},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/app__api__pipedrive__DealResponse"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}},"delete":{"tags":["pipedrive"],"summary":"Delete Deal","description":"Delete a deal in Pipedrive.","operationId":"delete_deal_v1_pipedrive_deals__deal_id__delete","security":[{"HTTPBearer":[]}],"parameters":[{"name":"deal_id","in":"path","required":true,"schema":{"type":"string","title":"Deal Id"}},{"name":"workspace_id","in":"query","required":true,"schema":{"type":"string","format":"uuid","title":"Workspace Id"}}],"responses":{"204":{"description":"Successful Response"},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/v1/attio/people":{"get":{"tags":["attio"],"summary":"List People","description":"List people from Attio.","operationId":"list_people_v1_attio_people_get","security":[{"HTTPBearer":[]}],"parameters":[{"name":"workspace_id","in":"query","required":true,"schema":{"type":"string","format":"uuid","title":"Workspace Id"}},{"name":"limit","in":"query","required":false,"schema":{"type":"integer","default":100,"title":"Limit"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"type":"array","items":{"$ref":"#/components/schemas/app__api__attio__PersonResponse"},"title":"Response List People V1 Attio People Get"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}},"post":{"tags":["attio"],"summary":"Create Person","description":"Create a person in Attio.","operationId":"create_person_v1_attio_people_post","security":[{"HTTPBearer":[]}],"parameters":[{"name":"workspace_id","in":"query","required":true,"schema":{"type":"string","format":"uuid","title":"Workspace Id"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/app__api__attio__PersonInput"}}}},"responses":{"201":{"description":"Successful Response","content":{"application/json":{"schema":{"type":"object","additionalProperties":true,"title":"Response Create Person V1 Attio People Post"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/v1/attio/people/{person_id}":{"put":{"tags":["attio"],"summary":"Update Person","description":"Update a person in Attio.","operationId":"update_person_v1_attio_people__person_id__put","security":[{"HTTPBearer":[]}],"parameters":[{"name":"person_id","in":"path","required":true,"schema":{"type":"string","title":"Person Id"}},{"name":"workspace_id","in":"query","required":true,"schema":{"type":"string","format":"uuid","title":"Workspace Id"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/app__api__attio__PersonInput"}}}},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"type":"object","additionalProperties":true,"title":"Response Update Person V1 Attio People  Person Id  Put"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}},"delete":{"tags":["attio"],"summary":"Delete Person","description":"Delete a person in Attio.","operationId":"delete_person_v1_attio_people__person_id__delete","security":[{"HTTPBearer":[]}],"parameters":[{"name":"person_id","in":"path","required":true,"schema":{"type":"string","title":"Person Id"}},{"name":"workspace_id","in":"query","required":true,"schema":{"type":"string","format":"uuid","title":"Workspace Id"}}],"responses":{"204":{"description":"Successful Response"},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/v1/attio/companies":{"get":{"tags":["attio"],"summary":"List Companies","description":"List companies from Attio.","operationId":"list_companies_v1_attio_companies_get","security":[{"HTTPBearer":[]}],"parameters":[{"name":"workspace_id","in":"query","required":true,"schema":{"type":"string","format":"uuid","title":"Workspace Id"}},{"name":"limit","in":"query","required":false,"schema":{"type":"integer","default":100,"title":"Limit"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"type":"array","items":{"$ref":"#/components/schemas/app__api__attio__CompanyResponse"},"title":"Response List Companies V1 Attio Companies Get"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}},"post":{"tags":["attio"],"summary":"Create Company","description":"Create a company in Attio.","operationId":"create_company_v1_attio_companies_post","security":[{"HTTPBearer":[]}],"parameters":[{"name":"workspace_id","in":"query","required":true,"schema":{"type":"string","format":"uuid","title":"Workspace Id"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/app__api__attio__CompanyInput"}}}},"responses":{"201":{"description":"Successful Response","content":{"application/json":{"schema":{"type":"object","additionalProperties":true,"title":"Response Create Company V1 Attio Companies Post"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/v1/attio/companies/{company_id}":{"put":{"tags":["attio"],"summary":"Update Company","description":"Update a company in Attio.","operationId":"update_company_v1_attio_companies__company_id__put","security":[{"HTTPBearer":[]}],"parameters":[{"name":"company_id","in":"path","required":true,"schema":{"type":"string","title":"Company Id"}},{"name":"workspace_id","in":"query","required":true,"schema":{"type":"string","format":"uuid","title":"Workspace Id"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/app__api__attio__CompanyInput"}}}},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"type":"object","additionalProperties":true,"title":"Response Update Company V1 Attio Companies  Company Id  Put"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}},"delete":{"tags":["attio"],"summary":"Delete Company","description":"Delete a company in Attio.","operationId":"delete_company_v1_attio_companies__company_id__delete","security":[{"HTTPBearer":[]}],"parameters":[{"name":"company_id","in":"path","required":true,"schema":{"type":"string","title":"Company Id"}},{"name":"workspace_id","in":"query","required":true,"schema":{"type":"string","format":"uuid","title":"Workspace Id"}}],"responses":{"204":{"description":"Successful Response"},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/v1/attio/deals":{"get":{"tags":["attio"],"summary":"List Deals","description":"List deals from Attio.","operationId":"list_deals_v1_attio_deals_get","security":[{"HTTPBearer":[]}],"parameters":[{"name":"workspace_id","in":"query","required":true,"schema":{"type":"string","format":"uuid","title":"Workspace Id"}},{"name":"limit","in":"query","required":false,"schema":{"type":"integer","default":100,"title":"Limit"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"type":"array","items":{"$ref":"#/components/schemas/app__api__attio__DealResponse"},"title":"Response List Deals V1 Attio Deals Get"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}},"post":{"tags":["attio"],"summary":"Create Deal","description":"Create a deal in Attio.","operationId":"create_deal_v1_attio_deals_post","security":[{"HTTPBearer":[]}],"parameters":[{"name":"workspace_id","in":"query","required":true,"schema":{"type":"string","format":"uuid","title":"Workspace Id"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/app__api__attio__DealInput"}}}},"responses":{"201":{"description":"Successful Response","content":{"application/json":{"schema":{"type":"object","additionalProperties":true,"title":"Response Create Deal V1 Attio Deals Post"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/v1/attio/deals/{deal_id}":{"put":{"tags":["attio"],"summary":"Update Deal","description":"Update a deal in Attio.","operationId":"update_deal_v1_attio_deals__deal_id__put","security":[{"HTTPBearer":[]}],"parameters":[{"name":"deal_id","in":"path","required":true,"schema":{"type":"string","title":"Deal Id"}},{"name":"workspace_id","in":"query","required":true,"schema":{"type":"string","format":"uuid","title":"Workspace Id"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/app__api__attio__DealInput"}}}},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"type":"object","additionalProperties":true,"title":"Response Update Deal V1 Attio Deals  Deal Id  Put"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}},"delete":{"tags":["attio"],"summary":"Delete Deal","description":"Delete a deal in Attio.","operationId":"delete_deal_v1_attio_deals__deal_id__delete","security":[{"HTTPBearer":[]}],"parameters":[{"name":"deal_id","in":"path","required":true,"schema":{"type":"string","title":"Deal Id"}},{"name":"workspace_id","in":"query","required":true,"schema":{"type":"string","format":"uuid","title":"Workspace Id"}}],"responses":{"204":{"description":"Successful Response"},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/v1/attio/notes":{"post":{"tags":["attio"],"summary":"Create Note","description":"Create a note attached to a record in Attio.","operationId":"create_note_v1_attio_notes_post","security":[{"HTTPBearer":[]}],"parameters":[{"name":"workspace_id","in":"query","required":true,"schema":{"type":"string","format":"uuid","title":"Workspace Id"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/NoteInput"}}}},"responses":{"201":{"description":"Successful Response","content":{"application/json":{"schema":{"type":"object","additionalProperties":true,"title":"Response Create Note V1 Attio Notes Post"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/v1/attio/tasks":{"post":{"tags":["attio"],"summary":"Create Task","description":"Create a task in Attio.","operationId":"create_task_v1_attio_tasks_post","security":[{"HTTPBearer":[]}],"parameters":[{"name":"workspace_id","in":"query","required":true,"schema":{"type":"string","format":"uuid","title":"Workspace Id"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/TaskInput"}}}},"responses":{"201":{"description":"Successful Response","content":{"application/json":{"schema":{"type":"object","additionalProperties":true,"title":"Response Create Task V1 Attio Tasks Post"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/v1/webhooks/nango":{"post":{"tags":["webhooks"],"summary":"Nango Webhook","operationId":"nango_webhook_v1_webhooks_nango_post","parameters":[{"name":"x-nango-hmac-sha256","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"X-Nango-Hmac-Sha256"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/v1/webhook-endpoints":{"post":{"tags":["webhook-endpoints"],"summary":"Create Webhook Endpoint","operationId":"create_webhook_endpoint_v1_webhook_endpoints_post","security":[{"HTTPBearer":[]}],"parameters":[{"name":"X-API-Key","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"X-Api-Key"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/WebhookEndpointCreate"}}}},"responses":{"201":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/WebhookEndpointCreatedOut"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}},"get":{"tags":["webhook-endpoints"],"summary":"List Webhook Endpoints","operationId":"list_webhook_endpoints_v1_webhook_endpoints_get","security":[{"HTTPBearer":[]}],"parameters":[{"name":"workspace_id","in":"query","required":true,"schema":{"type":"string","format":"uuid","title":"Workspace Id"}},{"name":"X-API-Key","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"X-Api-Key"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"type":"array","items":{"$ref":"#/components/schemas/WebhookEndpointOut"},"title":"Response List Webhook Endpoints V1 Webhook Endpoints Get"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/v1/webhook-endpoints/{endpoint_id}":{"patch":{"tags":["webhook-endpoints"],"summary":"Update Webhook Endpoint","operationId":"update_webhook_endpoint_v1_webhook_endpoints__endpoint_id__patch","security":[{"HTTPBearer":[]}],"parameters":[{"name":"endpoint_id","in":"path","required":true,"schema":{"type":"string","format":"uuid","title":"Endpoint Id"}},{"name":"X-API-Key","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"X-Api-Key"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/WebhookEndpointUpdate"}}}},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/WebhookEndpointOut"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}},"delete":{"tags":["webhook-endpoints"],"summary":"Delete Webhook Endpoint","operationId":"delete_webhook_endpoint_v1_webhook_endpoints__endpoint_id__delete","security":[{"HTTPBearer":[]}],"parameters":[{"name":"endpoint_id","in":"path","required":true,"schema":{"type":"string","format":"uuid","title":"Endpoint Id"}},{"name":"X-API-Key","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"X-Api-Key"}}],"responses":{"204":{"description":"Successful Response"},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/v1/webhook-endpoints/{endpoint_id}/test":{"post":{"tags":["webhook-endpoints"],"summary":"Test Webhook Endpoint","description":"Enqueue a synthetic test event to the given endpoint.\n\nBypasses the endpoint's event-filter list so the \"Test\" button reliably\ndelivers regardless of which events the endpoint normally subscribes to.","operationId":"test_webhook_endpoint_v1_webhook_endpoints__endpoint_id__test_post","security":[{"HTTPBearer":[]}],"parameters":[{"name":"endpoint_id","in":"path","required":true,"schema":{"type":"string","format":"uuid","title":"Endpoint Id"}},{"name":"X-API-Key","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"X-Api-Key"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"type":"object","additionalProperties":true,"title":"Response Test Webhook Endpoint V1 Webhook Endpoints  Endpoint Id  Test Post"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/v1/webhook-endpoints/{endpoint_id}/deliveries":{"get":{"tags":["webhook-endpoints"],"summary":"List Deliveries","operationId":"list_deliveries_v1_webhook_endpoints__endpoint_id__deliveries_get","security":[{"HTTPBearer":[]}],"parameters":[{"name":"endpoint_id","in":"path","required":true,"schema":{"type":"string","format":"uuid","title":"Endpoint Id"}},{"name":"limit","in":"query","required":false,"schema":{"type":"integer","maximum":500,"minimum":1,"default":50,"title":"Limit"}},{"name":"X-API-Key","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"X-Api-Key"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"type":"array","items":{"$ref":"#/components/schemas/WebhookDeliveryOut"},"title":"Response List Deliveries V1 Webhook Endpoints  Endpoint Id  Deliveries Get"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/v1/clerk-webhooks":{"post":{"tags":["clerk-webhooks"],"summary":"Handle Clerk Webhook","description":"Handle Clerk webhook events.\n\nSupported events:\n- organization.created → no workspace creation; workspaces are created by Ontora APIs\n- organization.updated / organizationDomain.* → sync Workspace name/domain\n- organizationMembership.created → create UserWorkspace entry\n- organizationMembership.deleted → delete UserWorkspace entry\n- user.created → record signup; workspace creation waits for Ontora provisioning\n- user.updated → remove memberships when Directory Sync deactivates user\n- user.deleted → clean up personal vaults/connections","operationId":"handle_clerk_webhook_v1_clerk_webhooks_post","responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}}}}},"/v1/preferences":{"get":{"tags":["preferences"],"summary":"Get Preferences","description":"Get the current user's preferences.","operationId":"get_preferences_v1_preferences_get","responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/PreferencesOut"}}}}},"security":[{"HTTPBearer":[]}]},"put":{"tags":["preferences"],"summary":"Update Preferences","description":"Update the current user's preferences (upsert).","operationId":"update_preferences_v1_preferences_put","requestBody":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/PreferencesUpdate"}}},"required":true},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/PreferencesOut"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}},"security":[{"HTTPBearer":[]}]}},"/v1/preferences/onboarding/{guide_key}":{"get":{"tags":["preferences"],"summary":"Get Onboarding Guide State","description":"Return whether an onboarding guide may auto-start for this user/workspace.","operationId":"get_onboarding_guide_state_v1_preferences_onboarding__guide_key__get","security":[{"HTTPBearer":[]}],"parameters":[{"name":"guide_key","in":"path","required":true,"schema":{"type":"string","title":"Guide Key"}},{"name":"workspace_id","in":"query","required":true,"schema":{"type":"string","format":"uuid","title":"Workspace Id"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/OnboardingGuideStateOut"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}},"patch":{"tags":["preferences"],"summary":"Update Onboarding Guide State","description":"Persist authenticated onboarding guide state for this user/workspace.","operationId":"update_onboarding_guide_state_v1_preferences_onboarding__guide_key__patch","security":[{"HTTPBearer":[]}],"parameters":[{"name":"guide_key","in":"path","required":true,"schema":{"type":"string","title":"Guide Key"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/OnboardingGuideStateUpdate"}}}},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/OnboardingGuideStateOut"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/v1/feedback-program/membership":{"get":{"tags":["feedback-program"],"summary":"Get Membership","description":"Return the current user's feedback program membership.","operationId":"get_membership_v1_feedback_program_membership_get","responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/MembershipOut"}}}}},"security":[{"HTTPBearer":[]}]}},"/v1/feedback-program/submissions":{"post":{"tags":["feedback-program"],"summary":"Create Submission","description":"Submit feedback plus a session-context snapshot. Open to every\nauthenticated user; only an explicitly removed account is blocked.","operationId":"create_submission_v1_feedback_program_submissions_post","requestBody":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/SubmissionCreate"}}},"required":true},"responses":{"201":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/SubmissionOut"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}},"security":[{"HTTPBearer":[]}]}},"/v1/feedback-program/screenshots":{"post":{"tags":["feedback-program"],"summary":"Upload Screenshot","description":"Upload a single screenshot to Supabase Storage and return its URL.\n\nOpen to every authenticated user (only removed accounts are blocked). The\nvoice agent's take_screenshot tool calls this via the WebSocket relay\n(frontend captures via html2canvas, POSTs the PNG, then forwards the URL\nback to the OpenAI session as the tool result).","operationId":"upload_screenshot_v1_feedback_program_screenshots_post","requestBody":{"content":{"multipart/form-data":{"schema":{"$ref":"#/components/schemas/Body_upload_screenshot_v1_feedback_program_screenshots_post"}}},"required":true},"responses":{"201":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ScreenshotUploadOut"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}},"security":[{"HTTPBearer":[]}]}},"/v1/gamification/summary":{"get":{"tags":["gamification"],"summary":"Get Gamification Summary","operationId":"get_gamification_summary_v1_gamification_summary_get","security":[{"HTTPBearer":[]}],"parameters":[{"name":"workspace_id","in":"query","required":true,"schema":{"type":"string","format":"uuid","title":"Workspace Id"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/GamificationSummaryOut"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/v1/gamification/events":{"post":{"tags":["gamification"],"summary":"Record Gamification Event","operationId":"record_gamification_event_v1_gamification_events_post","requestBody":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/GamificationEventCreate"}}},"required":true},"responses":{"201":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/GamificationEventOut"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}},"security":[{"HTTPBearer":[]}]}},"/v1/interview/session/{session_id}/take-suggestions":{"post":{"tags":["interview-realtime"],"summary":"Interview Take Suggestions","operationId":"interview_take_suggestions_v1_interview_session__session_id__take_suggestions_post","parameters":[{"name":"session_id","in":"path","required":true,"schema":{"type":"string","title":"Session Id"}},{"name":"token","in":"query","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Token"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/TakeSuggestionRequest"}}}},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/TakeSuggestionResponse"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/v1/interview/session/{session_id}/feedback":{"get":{"tags":["interview-feedback"],"summary":"List Turn Feedback","description":"Return every turn reaction stored for this conversation.\n\nThe interviewee's chat UI calls this on session load so the visible\nthumb state matches what's in the database after a page reload.","operationId":"list_turn_feedback_v1_interview_session__session_id__feedback_get","parameters":[{"name":"session_id","in":"path","required":true,"schema":{"type":"string","title":"Session Id"}},{"name":"token","in":"query","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Token"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"type":"array","items":{"$ref":"#/components/schemas/TurnReactionEntry"},"title":"Response List Turn Feedback V1 Interview Session  Session Id  Feedback Get"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}},"post":{"tags":["interview-feedback"],"summary":"Submit Turn Feedback","description":"Record an interviewee's reaction to one agent turn.\n\nIdempotent on (conversation_id, turn_index): repeated submissions for the\nsame turn overwrite the previous reaction and comment instead of stacking\nrows. This matches the user mental model where the visible thumbs button\nrepresents one current choice, not a history of clicks.","operationId":"submit_turn_feedback_v1_interview_session__session_id__feedback_post","parameters":[{"name":"session_id","in":"path","required":true,"schema":{"type":"string","title":"Session Id"}},{"name":"token","in":"query","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Token"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/TurnFeedbackIn"}}}},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/TurnFeedbackOut"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/v1/interview/session/{session_id}/feedback/session":{"post":{"tags":["interview-feedback"],"summary":"Submit Session Feedback","description":"Record the interviewee's overall session rating and feedback.\n\nThis is the star rating shown on the completion screen after the interview\nends. Unlike turn feedback, this captures the overall experience rather\nthan reactions to individual agent turns.\n\nUses mode='interview_turn' with turn_index=-1 to indicate session-level\nfeedback (avoids needing a DB migration for a new mode value). The rating\nand suggestions are stored in context_log as structured JSON.\n\nIdempotent: repeated submissions overwrite the previous session feedback.","operationId":"submit_session_feedback_v1_interview_session__session_id__feedback_session_post","parameters":[{"name":"session_id","in":"path","required":true,"schema":{"type":"string","title":"Session Id"}},{"name":"token","in":"query","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Token"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/SessionFeedbackIn"}}}},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/app__api__interview_feedback__SessionFeedbackOut"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}},"get":{"tags":["interview-feedback"],"summary":"Get Session Feedback","description":"Return the interviewee's already-submitted session rating, if any.\n\nThe completion screen calls this on mount so a participant who submitted\nfeedback and then navigates back to the closing screen sees their\nsubmitted stars and comment read-only, instead of a blank form they\ncould re-submit (staging 2026-08-07, David). Returns null when no\nsession feedback exists yet.","operationId":"get_session_feedback_v1_interview_session__session_id__feedback_session_get","parameters":[{"name":"session_id","in":"path","required":true,"schema":{"type":"string","title":"Session Id"}},{"name":"token","in":"query","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Token"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"anyOf":[{"$ref":"#/components/schemas/app__api__interview_feedback__SessionFeedbackOut"},{"type":"null"}],"title":"Response Get Session Feedback V1 Interview Session  Session Id  Feedback Session Get"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/v1/interview/session/{session_id}/client-logs":{"post":{"tags":["interview-realtime"],"summary":"Submit Client Logs","description":"Append participant-side telemetry events to the conversation trace ledger.","operationId":"submit_client_logs_v1_interview_session__session_id__client_logs_post","parameters":[{"name":"session_id","in":"path","required":true,"schema":{"type":"string","title":"Session Id"}},{"name":"token","in":"query","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Token"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ClientLogsOut"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/v1/interview/session/{session_id}/review":{"get":{"tags":["interview-review"],"summary":"Get Participant Review","description":"Return the participant's editable summary + insights (polls while generating).","operationId":"get_participant_review_v1_interview_session__session_id__review_get","parameters":[{"name":"session_id","in":"path","required":true,"schema":{"type":"string","title":"Session Id"}},{"name":"token","in":"query","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Token"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ReviewOut"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}},"patch":{"tags":["interview-review"],"summary":"Update Participant Review","description":"Overwrite summary and/or insights with the participant's edits.\n\nThe edits are THE data: they replace ``summary`` and the findings source\nfield directly. Only allowed while the conversation is pending review.","operationId":"update_participant_review_v1_interview_session__session_id__review_patch","parameters":[{"name":"session_id","in":"path","required":true,"schema":{"type":"string","title":"Session Id"}},{"name":"token","in":"query","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Token"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ReviewUpdateIn"}}}},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ReviewOut"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/v1/interview/session/{session_id}/review/submit":{"post":{"tags":["interview-review"],"summary":"Submit Review","description":"Submit the review: conversation completes and the deferred pipeline runs.\n\nIdempotent — a second submit returns 200 with the submitted payload.","operationId":"submit_review_v1_interview_session__session_id__review_submit_post","parameters":[{"name":"session_id","in":"path","required":true,"schema":{"type":"string","title":"Session Id"}},{"name":"token","in":"query","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Token"}}],"requestBody":{"content":{"application/json":{"schema":{"anyOf":[{"$ref":"#/components/schemas/ReviewSubmitIn"},{"type":"null"}],"title":"Body"}}}},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ReviewOut"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/v1/interview/session/{session_id}/review/resume":{"post":{"tags":["interview-review"],"summary":"Resume From Review","description":"Reopen a pending-review conversation for the existing session resume flow.\n\nFlips the conversation back to ``paused`` (the resumable state the\npause/interruption resume path already handles), so the normal session\njoin reconnects with the saved transcript and the resume replay.","operationId":"resume_from_review_v1_interview_session__session_id__review_resume_post","parameters":[{"name":"session_id","in":"path","required":true,"schema":{"type":"string","title":"Session Id"}},{"name":"token","in":"query","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Token"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/v1/interview/session/{session_id}/review/export.md":{"get":{"tags":["interview-review"],"summary":"Export Review Markdown","description":"Download the (possibly edited) summary + insights as a markdown file.\n\nAvailable while pending review and after submit, so participants can keep\ntheir copy.","operationId":"export_review_markdown_v1_interview_session__session_id__review_export_md_get","parameters":[{"name":"session_id","in":"path","required":true,"schema":{"type":"string","title":"Session Id"}},{"name":"token","in":"query","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Token"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/v1/entities/deals":{"get":{"tags":["entities"],"summary":"List Deals","description":"List deals with optional filters.","operationId":"list_deals_v1_entities_deals_get","security":[{"HTTPBearer":[]}],"parameters":[{"name":"workspace_id","in":"query","required":true,"schema":{"type":"string","format":"uuid","title":"Workspace Id"}},{"name":"stage","in":"query","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Stage"}},{"name":"account_key","in":"query","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Account Key"}},{"name":"crm_source","in":"query","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Crm Source"}},{"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/app__api__entities__DealResponse"},"title":"Response List Deals V1 Entities Deals Get"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/v1/entities/deals/{deal_key}/stakeholders":{"get":{"tags":["entities"],"summary":"Get Deal Stakeholders","description":"Get stakeholders for a specific deal.","operationId":"get_deal_stakeholders_v1_entities_deals__deal_key__stakeholders_get","security":[{"HTTPBearer":[]}],"parameters":[{"name":"deal_key","in":"path","required":true,"schema":{"type":"string","title":"Deal Key"}},{"name":"workspace_id","in":"query","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/StakeholderResponse"},"title":"Response Get Deal Stakeholders V1 Entities Deals  Deal Key  Stakeholders Get"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/v1/entities/meetings":{"get":{"tags":["entities"],"summary":"List Meetings","description":"List recent meetings.","operationId":"list_meetings_v1_entities_meetings_get","security":[{"HTTPBearer":[]}],"parameters":[{"name":"workspace_id","in":"query","required":true,"schema":{"type":"string","format":"uuid","title":"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/MeetingResponse"},"title":"Response List Meetings V1 Entities Meetings Get"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/v1/entities/companies":{"get":{"tags":["entities"],"summary":"List Companies","description":"List companies with optional filters.","operationId":"list_companies_v1_entities_companies_get","security":[{"HTTPBearer":[]}],"parameters":[{"name":"workspace_id","in":"query","required":true,"schema":{"type":"string","format":"uuid","title":"Workspace Id"}},{"name":"org_type","in":"query","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Org Type"}},{"name":"is_own_company","in":"query","required":false,"schema":{"anyOf":[{"type":"boolean"},{"type":"null"}],"title":"Is Own Company"}},{"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/app__api__entities__CompanyResponse"},"title":"Response List Companies V1 Entities Companies Get"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/v1/entities/companies/{company_key}/deals":{"get":{"tags":["entities"],"summary":"Get Company Deals","description":"Get all deals for a company.","operationId":"get_company_deals_v1_entities_companies__company_key__deals_get","security":[{"HTTPBearer":[]}],"parameters":[{"name":"company_key","in":"path","required":true,"schema":{"type":"string","title":"Company Key"}},{"name":"workspace_id","in":"query","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/app__api__entities__DealResponse"},"title":"Response Get Company Deals V1 Entities Companies  Company Key  Deals Get"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/v1/entities/companies/{company_key}/contacts":{"get":{"tags":["entities"],"summary":"Get Company Contacts","description":"Get all contacts (people) employed by a company.","operationId":"get_company_contacts_v1_entities_companies__company_key__contacts_get","security":[{"HTTPBearer":[]}],"parameters":[{"name":"company_key","in":"path","required":true,"schema":{"type":"string","title":"Company Key"}},{"name":"workspace_id","in":"query","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/app__api__entities__ContactResponse"},"title":"Response Get Company Contacts V1 Entities Companies  Company Key  Contacts Get"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/v1/entities/people":{"get":{"tags":["entities"],"summary":"List People","description":"List people with optional filters.","operationId":"list_people_v1_entities_people_get","security":[{"HTTPBearer":[]}],"parameters":[{"name":"workspace_id","in":"query","required":true,"schema":{"type":"string","format":"uuid","title":"Workspace Id"}},{"name":"is_internal","in":"query","required":false,"schema":{"anyOf":[{"type":"boolean"},{"type":"null"}],"title":"Is Internal"}},{"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/app__api__entities__PersonResponse"},"title":"Response List People V1 Entities People Get"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/v1/entities/claims":{"get":{"tags":["entities"],"summary":"List Claims","description":"List claims with optional filters.","operationId":"list_claims_v1_entities_claims_get","security":[{"HTTPBearer":[]}],"parameters":[{"name":"workspace_id","in":"query","required":true,"schema":{"type":"string","format":"uuid","title":"Workspace Id"}},{"name":"claim_type","in":"query","required":false,"schema":{"anyOf":[{"enum":["fact","opinion","commitment","requirement"],"type":"string"},{"type":"null"}],"title":"Claim Type"}},{"name":"about_entity_key","in":"query","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"About Entity Key"}},{"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/ClaimResponse"},"title":"Response List Claims V1 Entities Claims Get"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/v1/entities/pipeline-summary":{"get":{"tags":["entities"],"summary":"Get Pipeline Summary","description":"Get deal pipeline summary with stage breakdown.","operationId":"get_pipeline_summary_v1_entities_pipeline_summary_get","security":[{"HTTPBearer":[]}],"parameters":[{"name":"workspace_id","in":"query","required":true,"schema":{"type":"string","format":"uuid","title":"Workspace Id"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/v1/documents/{document_id}":{"get":{"tags":["documents"],"summary":"Get Document","description":"Fetch a document by ID.\n\nReturns the full document content for viewing in a source modal/drawer.\nUseful for citation \"click to view source\" functionality.","operationId":"get_document_v1_documents__document_id__get","security":[{"HTTPBearer":[]}],"parameters":[{"name":"document_id","in":"path","required":true,"schema":{"type":"string","format":"uuid","title":"Document Id"}},{"name":"workspace_id","in":"query","required":true,"schema":{"type":"string","format":"uuid","title":"Workspace 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"}}}}}}},"/v1/documents/{document_id}/with-chunks":{"get":{"tags":["documents"],"summary":"Get Document With Chunks","description":"Fetch a document with all its chunks.\n\nUseful for highlighting specific chunks in the source view.","operationId":"get_document_with_chunks_v1_documents__document_id__with_chunks_get","security":[{"HTTPBearer":[]}],"parameters":[{"name":"document_id","in":"path","required":true,"schema":{"type":"string","format":"uuid","title":"Document Id"}},{"name":"workspace_id","in":"query","required":true,"schema":{"type":"string","format":"uuid","title":"Workspace Id"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/DocumentWithChunksResponse"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/v1/documents/chunk/{chunk_id}":{"get":{"tags":["documents"],"summary":"Get Chunk","description":"Fetch a specific chunk by ID.\n\nUseful for fetching just the cited chunk without the full document.","operationId":"get_chunk_v1_documents_chunk__chunk_id__get","security":[{"HTTPBearer":[]}],"parameters":[{"name":"chunk_id","in":"path","required":true,"schema":{"type":"string","format":"uuid","title":"Chunk Id"}},{"name":"workspace_id","in":"query","required":true,"schema":{"type":"string","format":"uuid","title":"Workspace Id"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ChunkResponse"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/v1/vaults/{vault_id}/collaborators":{"get":{"tags":["collaborators"],"summary":"List Vault Collaborators","operationId":"list_vault_collaborators_v1_vaults__vault_id__collaborators_get","security":[{"HTTPBearer":[]}],"parameters":[{"name":"vault_id","in":"path","required":true,"schema":{"type":"string","format":"uuid","title":"Vault Id"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"type":"array","items":{"$ref":"#/components/schemas/CollaboratorOut"},"title":"Response List Vault Collaborators V1 Vaults  Vault Id  Collaborators Get"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}},"post":{"tags":["collaborators"],"summary":"Add Vault Collaborator","operationId":"add_vault_collaborator_v1_vaults__vault_id__collaborators_post","security":[{"HTTPBearer":[]}],"parameters":[{"name":"vault_id","in":"path","required":true,"schema":{"type":"string","format":"uuid","title":"Vault Id"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/CollaboratorAdd"}}}},"responses":{"201":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/CollaboratorOut"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/v1/vaults/{vault_id}/collaborators/{target_user_id}":{"patch":{"tags":["collaborators"],"summary":"Update Vault Collaborator","operationId":"update_vault_collaborator_v1_vaults__vault_id__collaborators__target_user_id__patch","security":[{"HTTPBearer":[]}],"parameters":[{"name":"vault_id","in":"path","required":true,"schema":{"type":"string","format":"uuid","title":"Vault Id"}},{"name":"target_user_id","in":"path","required":true,"schema":{"type":"string","title":"Target User Id"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/CollaboratorUpdate"}}}},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/CollaboratorOut"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}},"delete":{"tags":["collaborators"],"summary":"Remove Vault Collaborator","operationId":"remove_vault_collaborator_v1_vaults__vault_id__collaborators__target_user_id__delete","security":[{"HTTPBearer":[]}],"parameters":[{"name":"vault_id","in":"path","required":true,"schema":{"type":"string","format":"uuid","title":"Vault Id"}},{"name":"target_user_id","in":"path","required":true,"schema":{"type":"string","title":"Target User Id"}}],"responses":{"204":{"description":"Successful Response"},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/v1/projects/{project_id}/collaborators":{"get":{"tags":["collaborators"],"summary":"List Project Collaborators","operationId":"list_project_collaborators_v1_projects__project_id__collaborators_get","security":[{"HTTPBearer":[]}],"parameters":[{"name":"project_id","in":"path","required":true,"schema":{"type":"string","format":"uuid","title":"Project Id"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"type":"array","items":{"$ref":"#/components/schemas/CollaboratorOut"},"title":"Response List Project Collaborators V1 Projects  Project Id  Collaborators Get"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}},"post":{"tags":["collaborators"],"summary":"Add Project Collaborator","operationId":"add_project_collaborator_v1_projects__project_id__collaborators_post","security":[{"HTTPBearer":[]}],"parameters":[{"name":"project_id","in":"path","required":true,"schema":{"type":"string","format":"uuid","title":"Project Id"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/CollaboratorAdd"}}}},"responses":{"201":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/CollaboratorOut"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/v1/projects/{project_id}/collaborators/{target_user_id}":{"patch":{"tags":["collaborators"],"summary":"Update Project Collaborator","operationId":"update_project_collaborator_v1_projects__project_id__collaborators__target_user_id__patch","security":[{"HTTPBearer":[]}],"parameters":[{"name":"project_id","in":"path","required":true,"schema":{"type":"string","format":"uuid","title":"Project Id"}},{"name":"target_user_id","in":"path","required":true,"schema":{"type":"string","title":"Target User Id"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/CollaboratorUpdate"}}}},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/CollaboratorOut"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}},"delete":{"tags":["collaborators"],"summary":"Remove Project Collaborator","operationId":"remove_project_collaborator_v1_projects__project_id__collaborators__target_user_id__delete","security":[{"HTTPBearer":[]}],"parameters":[{"name":"project_id","in":"path","required":true,"schema":{"type":"string","format":"uuid","title":"Project Id"}},{"name":"target_user_id","in":"path","required":true,"schema":{"type":"string","title":"Target User Id"}}],"responses":{"204":{"description":"Successful Response"},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/v1/demo/voice-agent/{slug}/session":{"get":{"tags":["demo"],"summary":"Get Voice Agent Demo Session","description":"Return a reusable public demo conversation URL.\n\nThe Interview setup is still provisioned upfront from markdown context.\nIf the latest run is completed, this creates a fresh Contact/Conversation\nrun under that same Interview so public demo links can be reused safely.","operationId":"get_voice_agent_demo_session_v1_demo_voice_agent__slug__session_get","parameters":[{"name":"slug","in":"path","required":true,"schema":{"type":"string","title":"Slug"}},{"name":"mode","in":"query","required":false,"schema":{"anyOf":[{"type":"string","pattern":"^(voice|text)$"},{"type":"null"}],"title":"Mode"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/DemoVoiceStartResponse"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/v1/demo/voice-agent/{slug}/start":{"post":{"tags":["demo"],"summary":"Start Voice Agent Demo","description":"Backward-compatible resolver. Does not create DB records.","operationId":"start_voice_agent_demo_v1_demo_voice_agent__slug__start_post","parameters":[{"name":"slug","in":"path","required":true,"schema":{"type":"string","title":"Slug"}}],"requestBody":{"content":{"application/json":{"schema":{"anyOf":[{"$ref":"#/components/schemas/DemoVoiceStartRequest"},{"type":"null"}],"title":"Body"}}}},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/DemoVoiceStartResponse"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/v1/demo/voice-agent/session/{session_id}/summary":{"post":{"tags":["demo"],"summary":"Get Voice Agent Demo Summary","description":"Finalize a demo conversation and return a customer-facing summary.","operationId":"get_voice_agent_demo_summary_v1_demo_voice_agent_session__session_id__summary_post","parameters":[{"name":"session_id","in":"path","required":true,"schema":{"type":"string","title":"Session Id"}},{"name":"token","in":"query","required":true,"schema":{"type":"string","title":"Token"}}],"requestBody":{"content":{"application/json":{"schema":{"anyOf":[{"$ref":"#/components/schemas/DemoVoiceSummaryRequest"},{"type":"null"}],"title":"Body"}}}},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/DemoVoiceSummary"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}},"get":{"tags":["demo"],"summary":"Get Voice Agent Demo Summary","description":"Finalize a demo conversation and return a customer-facing summary.","operationId":"get_voice_agent_demo_summary_v1_demo_voice_agent_session__session_id__summary_get","parameters":[{"name":"session_id","in":"path","required":true,"schema":{"type":"string","title":"Session Id"}},{"name":"token","in":"query","required":true,"schema":{"type":"string","title":"Token"}}],"requestBody":{"content":{"application/json":{"schema":{"anyOf":[{"$ref":"#/components/schemas/DemoVoiceSummaryRequest"},{"type":"null"}],"title":"Body"}}}},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/DemoVoiceSummary"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/v1/campaign-creation/{interview_id}/versions":{"get":{"tags":["campaign-creation"],"summary":"List Campaign Versions","description":"List privacy-safe campaign configuration checkpoints, newest first.","operationId":"list_campaign_versions_v1_campaign_creation__interview_id__versions_get","security":[{"HTTPBearer":[]}],"parameters":[{"name":"interview_id","in":"path","required":true,"schema":{"type":"string","format":"uuid","title":"Interview Id"}},{"name":"limit","in":"query","required":false,"schema":{"type":"integer","maximum":100,"minimum":1,"default":25,"title":"Limit"}},{"name":"before_version","in":"query","required":false,"schema":{"anyOf":[{"type":"integer","minimum":1},{"type":"null"}],"title":"Before Version"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/CampaignVersionsResponse"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/v1/campaign-creation/sessions":{"post":{"tags":["campaign-creation"],"summary":"Create Session","description":"Create a new campaign creation session with a draft interview.\n\nRequires admin role — members can access existing campaigns but cannot\ncreate new ones.","operationId":"create_session_v1_campaign_creation_sessions_post","requestBody":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/CreateSessionRequest"}}},"required":true},"responses":{"201":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/CreateSessionResponse"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}},"security":[{"HTTPBearer":[]}]}},"/v1/campaign-creation/voice-catalog":{"get":{"tags":["campaign-creation"],"summary":"Voice Catalog Endpoint","description":"Return the active TTS provider voice catalog for campaign setup.\n\n``voice_id`` is the campaign's currently stored voice; legacy campaigns\nhave no stored provider, so the provider is inferred from the voice-id\nformat to keep the editor on the campaign's actual provider instead of\nsilently rebinding it to the deployment default. ``language`` outranks\nboth: a provider with no voice for the campaign language is swapped for\none that has some, so picking Russian never lists German voices.","operationId":"voice_catalog_endpoint_v1_campaign_creation_voice_catalog_get","security":[{"HTTPBearer":[]}],"parameters":[{"name":"provider","in":"query","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Provider"}},{"name":"language","in":"query","required":false,"schema":{"type":"string","default":"en","title":"Language"}},{"name":"voice_id","in":"query","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Voice Id"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/v1/campaign-creation/voice-samples/{voice_id}":{"get":{"tags":["campaign-creation"],"summary":"Voice Sample","description":"Return a cached short TTS preview for the campaign voice selector.","operationId":"voice_sample_v1_campaign_creation_voice_samples__voice_id__get","security":[{"HTTPBearer":[]}],"parameters":[{"name":"voice_id","in":"path","required":true,"schema":{"type":"string","title":"Voice Id"}},{"name":"language","in":"query","required":false,"schema":{"type":"string","default":"en","title":"Language"}},{"name":"provider","in":"query","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Provider"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/v1/campaign-creation/{interview_id}/agent-speech":{"post":{"tags":["campaign-creation"],"summary":"Campaign Agent Speech","description":"Synthesize a setup-assistant reply so the builder can read it aloud.\n\nUses the campaign's configured voice when one is already set; otherwise\nthe deployment default voice for the requested language.","operationId":"campaign_agent_speech_v1_campaign_creation__interview_id__agent_speech_post","security":[{"HTTPBearer":[]}],"parameters":[{"name":"interview_id","in":"path","required":true,"schema":{"type":"string","format":"uuid","title":"Interview Id"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/AgentSpeechRequest"}}}},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/v1/campaign-creation/{interview_id}/messages":{"get":{"tags":["campaign-creation"],"summary":"Get Campaign Creation Messages","description":"Return the persisted setup assistant conversation for edit/review rehydration.","operationId":"get_campaign_creation_messages_v1_campaign_creation__interview_id__messages_get","security":[{"HTTPBearer":[]}],"parameters":[{"name":"interview_id","in":"path","required":true,"schema":{"type":"string","format":"uuid","title":"Interview Id"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/CampaignCreationMessagesResponse"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/v1/campaign-creation/{interview_id}/translate-content":{"post":{"tags":["campaign-creation"],"summary":"Translate Campaign Content Endpoint","description":"Translate the campaign's participant-facing content into a language.\n\nPure transformation: the editor sends the content it currently holds and\nrenders the result as a reviewable preview. Nothing is written here —\napplying is the organizer's explicit second step, because this rewrites\ntext they authored.","operationId":"translate_campaign_content_endpoint_v1_campaign_creation__interview_id__translate_content_post","security":[{"HTTPBearer":[]}],"parameters":[{"name":"interview_id","in":"path","required":true,"schema":{"type":"string","format":"uuid","title":"Interview Id"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/TranslateCampaignContentRequest"}}}},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/TranslateCampaignContentResponse"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/v1/campaign-creation/{interview_id}/messages/undo-last":{"post":{"tags":["campaign-creation"],"summary":"Undo Last Campaign Creation Turn","description":"Delete the most recent user/assistant turn so the client can rewind it.\n\nOnly a clean trailing pair (user message followed by its assistant reply)\nis removed; anything else means there is no undoable turn.","operationId":"undo_last_campaign_creation_turn_v1_campaign_creation__interview_id__messages_undo_last_post","security":[{"HTTPBearer":[]}],"parameters":[{"name":"interview_id","in":"path","required":true,"schema":{"type":"string","format":"uuid","title":"Interview Id"}}],"responses":{"204":{"description":"Successful Response"},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/v1/campaign-creation/{interview_id}/agent-context":{"post":{"tags":["campaign-creation"],"summary":"Campaign Agent Context","description":"Return server-side setup context for the Next.js AI SDK campaign agent.\n\nworkspace_company_domain is a fast DB read and must always make it back to the\ncaller. The RAG/embedding-backed foundation_context lookup is best-effort: if it's\nslow, it must not take the already-saved domain down with it (that made the agent\nre-ask for a domain the user had already provided).","operationId":"campaign_agent_context_v1_campaign_creation__interview_id__agent_context_post","security":[{"HTTPBearer":[]}],"parameters":[{"name":"interview_id","in":"path","required":true,"schema":{"type":"string","format":"uuid","title":"Interview Id"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/CampaignAgentContextRequest"}}}},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/CampaignAgentContextResponse"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/v1/campaign-creation/{interview_id}/agent-run/start":{"post":{"tags":["campaign-creation"],"summary":"Campaign Agent Run Start","description":"Create a durable campaign setup agent run before the model starts.","operationId":"campaign_agent_run_start_v1_campaign_creation__interview_id__agent_run_start_post","security":[{"HTTPBearer":[]}],"parameters":[{"name":"interview_id","in":"path","required":true,"schema":{"type":"string","format":"uuid","title":"Interview Id"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/CampaignAgentRunStartRequest"}}}},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/CampaignAgentRunStartResponse"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/v1/campaign-creation/{interview_id}/agent-run/update":{"post":{"tags":["campaign-creation"],"summary":"Campaign Agent Run Update","description":"Append run evidence and assistant text to an existing campaign setup run.","operationId":"campaign_agent_run_update_v1_campaign_creation__interview_id__agent_run_update_post","security":[{"HTTPBearer":[]}],"parameters":[{"name":"interview_id","in":"path","required":true,"schema":{"type":"string","format":"uuid","title":"Interview Id"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/CampaignAgentRunUpdateRequest"}}}},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/CampaignAgentRunUpdateResponse"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/v1/campaign-creation/{interview_id}/agent-tools/update-campaign":{"post":{"tags":["campaign-creation"],"summary":"Campaign Agent Tool Update Campaign","description":"Apply campaign draft updates from a trusted setup-agent tool call.","operationId":"campaign_agent_tool_update_campaign_v1_campaign_creation__interview_id__agent_tools_update_campaign_post","security":[{"HTTPBearer":[]}],"parameters":[{"name":"interview_id","in":"path","required":true,"schema":{"type":"string","format":"uuid","title":"Interview Id"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/CampaignAgentUpdateCampaignRequest"}}}},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/CampaignAgentToolResponse"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/v1/campaign-creation/{interview_id}/attachments/extract":{"post":{"tags":["campaign-creation"],"summary":"Extract Attachment Text","description":"Extract plain text from a campaign setup attachment.\n\nThe browser sends this upload directly to the regional API instead of\nembedding the file in the Vercel chat request. That keeps large PDFs and\noffice files usable while the model receives only bounded text context.","operationId":"extract_attachment_text_v1_campaign_creation__interview_id__attachments_extract_post","security":[{"HTTPBearer":[]}],"parameters":[{"name":"interview_id","in":"path","required":true,"schema":{"type":"string","format":"uuid","title":"Interview Id"}},{"name":"workspace_id","in":"query","required":true,"schema":{"type":"string","format":"uuid","title":"Workspace Id"}}],"requestBody":{"required":true,"content":{"multipart/form-data":{"schema":{"$ref":"#/components/schemas/Body_extract_attachment_text_v1_campaign_creation__interview_id__attachments_extract_post"}}}},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ExtractAttachmentResponse"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/v1/campaign-creation/{interview_id}/draft":{"patch":{"tags":["campaign-creation"],"summary":"Update Draft","description":"Manually update the draft interview configuration.","operationId":"update_draft_v1_campaign_creation__interview_id__draft_patch","security":[{"HTTPBearer":[]}],"parameters":[{"name":"interview_id","in":"path","required":true,"schema":{"type":"string","format":"uuid","title":"Interview Id"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/DraftUpdateRequest"}}}},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/v1/campaign-creation/{interview_id}/finalize":{"put":{"tags":["campaign-creation"],"summary":"Finalize Campaign","description":"Atomically save all campaign editor state (fields, questions, contacts).\n\nSyncs questions and contacts to stay in sync with the frontend editor\nstate. Called before navigating to the review page.","operationId":"finalize_campaign_v1_campaign_creation__interview_id__finalize_put","security":[{"HTTPBearer":[]}],"parameters":[{"name":"interview_id","in":"path","required":true,"schema":{"type":"string","format":"uuid","title":"Interview Id"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/FinalizeCampaignRequest"}}}},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/v1/interview/session/{session_id}":{"get":{"tags":["interview-realtime"],"summary":"Get Interview Session Info","description":"Return public session metadata after validating the invite token.","operationId":"get_interview_session_info_v1_interview_session__session_id__get","parameters":[{"name":"session_id","in":"path","required":true,"schema":{"type":"string","title":"Session Id"}},{"name":"token","in":"query","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Token"}},{"name":"mode","in":"query","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Mode"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/InterviewSessionInfo"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/v1/interview/session/{session_id}/livekit-token":{"post":{"tags":["interview-realtime"],"summary":"Create Livekit Participant Token","description":"Exchange a valid Ontora interview session token for a scoped LiveKit token.","operationId":"create_livekit_participant_token_v1_interview_session__session_id__livekit_token_post","parameters":[{"name":"session_id","in":"path","required":true,"schema":{"type":"string","title":"Session Id"}},{"name":"token","in":"query","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Token"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/LiveKitTokenResponse"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/v1/interview/session/{session_id}/agent-dispatch":{"get":{"tags":["interview-realtime"],"summary":"Get Agent Dispatch Status","description":"Report whether a worker-backed agent claim is pending for this session.\n\nPublic (booking/session token), read-only, and deliberately minimal: it\nnever mutates the run row and never re-requests a session — the client's\nvisible retry (a fresh token fetch) owns re-dispatching.","operationId":"get_agent_dispatch_status_v1_interview_session__session_id__agent_dispatch_get","parameters":[{"name":"session_id","in":"path","required":true,"schema":{"type":"string","title":"Session Id"}},{"name":"token","in":"query","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Token"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/AgentDispatchStatusResponse"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/v1/interview/session/{session_id}/status":{"get":{"tags":["interview-realtime"],"summary":"Get Session Status","description":"Check the accessibility status of a session (public, uses booking token).\n\nReturns clear status messages like:\n- \"Your interview is available\"\n- \"Scheduled time passed, you can still complete it\"\n- \"Your interview has been completed\"\n\nDoes not require authentication, only the booking token.","operationId":"get_session_status_v1_interview_session__session_id__status_get","parameters":[{"name":"session_id","in":"path","required":true,"schema":{"type":"string","title":"Session Id"}},{"name":"token","in":"query","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Token"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/SessionStatusResponse"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/v1/interview/session/{session_id}/voice-catalog":{"get":{"tags":["interview-realtime"],"summary":"Get Public Voice Catalog","description":"Return the TTS voice catalog for a token-authenticated public invite.","operationId":"get_public_voice_catalog_v1_interview_session__session_id__voice_catalog_get","parameters":[{"name":"session_id","in":"path","required":true,"schema":{"type":"string","title":"Session Id"}},{"name":"token","in":"query","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Token"}},{"name":"provider","in":"query","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Provider"}},{"name":"language","in":"query","required":false,"schema":{"type":"string","default":"en","title":"Language"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/v1/interview/session/{session_id}/voice-samples/{voice_id}":{"get":{"tags":["interview-realtime"],"summary":"Get Public Voice Sample","description":"Return a cached short TTS preview for public participant voice selection.","operationId":"get_public_voice_sample_v1_interview_session__session_id__voice_samples__voice_id__get","parameters":[{"name":"session_id","in":"path","required":true,"schema":{"type":"string","title":"Session Id"}},{"name":"voice_id","in":"path","required":true,"schema":{"type":"string","title":"Voice Id"}},{"name":"token","in":"query","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Token"}},{"name":"language","in":"query","required":false,"schema":{"type":"string","default":"en","title":"Language"}},{"name":"provider","in":"query","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Provider"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/v1/interview/session/{session_id}/voice-selection":{"post":{"tags":["interview-realtime"],"summary":"Set Public Voice Selection","description":"Persist the participant-selected voice before the realtime pipeline starts.","operationId":"set_public_voice_selection_v1_interview_session__session_id__voice_selection_post","parameters":[{"name":"session_id","in":"path","required":true,"schema":{"type":"string","title":"Session Id"}},{"name":"token","in":"query","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Token"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/PublicVoiceSelectionRequest"}}}},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/PublicVoiceSelectionResponse"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/v1/interview/session/{session_id}/anonymity-selection":{"post":{"tags":["interview-realtime"],"summary":"Set Public Anonymity Selection","description":"Persist the participant's own privacy pick before the conversation starts.\n\nThe pick lands in the conversation's anonymity_level snapshot — the same\ncolumn stamp_conversation_anonymity would fill at start, so every\nper-conversation gate downstream honors it without new code paths. The\ncampaign level acts as a floor: combining means a participant can only add\nprotections, never remove one the organizer promised everybody.","operationId":"set_public_anonymity_selection_v1_interview_session__session_id__anonymity_selection_post","parameters":[{"name":"session_id","in":"path","required":true,"schema":{"type":"string","title":"Session Id"}},{"name":"token","in":"query","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Token"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/PublicAnonymitySelectionRequest"}}}},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/PublicAnonymitySelectionResponse"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/v1/interview/session/{session_id}/recordings":{"post":{"tags":["interview-realtime"],"summary":"Record Session Replay Urls","description":"Store the PostHog replay URL captured by the interviewee's browser.\n\nCalled once by the interview session page after the conversation exists and the\nreplay SDK has bootstrapped. Authenticated by the booking token already used by\nother ``/v1/interview/session/{id}/*`` endpoints. Idempotent: a column that is\nalready populated will not be overwritten, so an accidental re-call does not\nclobber a real recording with a later, less interesting one.","operationId":"record_session_replay_urls_v1_interview_session__session_id__recordings_post","parameters":[{"name":"session_id","in":"path","required":true,"schema":{"type":"string","title":"Session Id"}},{"name":"token","in":"query","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Token"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/SessionRecordingsRequest"}}}},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/SessionRecordingsResponse"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/v1/interview/session/{session_id}/pause":{"post":{"tags":["interview-realtime"],"summary":"Pause Interview Session","description":"Pause an in-progress public interview without completing it.","operationId":"pause_interview_session_v1_interview_session__session_id__pause_post","parameters":[{"name":"session_id","in":"path","required":true,"schema":{"type":"string","title":"Session Id"}},{"name":"token","in":"query","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Token"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/v1/interview/session/{session_id}/send-resume-link":{"post":{"tags":["interview-realtime"],"summary":"Send Interview Resume Link","description":"Email the participant their personal link back into this interview.\n\nRequested from the paused screen. The link is the same session URL the\ninvitation used — it joins a fresh session and resumes a paused one — so\nthis only re-delivers it to the inbox for the later re-entry.\n\nThe cooldown stamp is committed BEFORE the send: the transaction stays\nfree of the external Resend call (no pooled connection pinned for the\nemail round-trip, and the session_metadata write happens milliseconds\nafter the read instead of seconds, so it cannot clobber a concurrent\nprogress save with a stale blob), and concurrent requests collapse into\nthe 429 path instead of racing past an unstamped cooldown check. A failed\nsend rolls its own stamp back so a retry is not locked out for the full\nwindow.","operationId":"send_interview_resume_link_v1_interview_session__session_id__send_resume_link_post","parameters":[{"name":"session_id","in":"path","required":true,"schema":{"type":"string","title":"Session Id"}},{"name":"token","in":"query","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Token"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ResumeLinkEmailResponse"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/v1/interview/session/{session_id}/fail":{"post":{"tags":["interview-realtime"],"summary":"Fail Interview Session","description":"Mark an interrupted public interview as failed so dashboards don't stay in-progress.","operationId":"fail_interview_session_v1_interview_session__session_id__fail_post","parameters":[{"name":"session_id","in":"path","required":true,"schema":{"type":"string","title":"Session Id"}},{"name":"token","in":"query","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Token"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/v1/interview/session/{session_id}/screen-shares/start":{"post":{"tags":["interview-realtime"],"summary":"Start Interview Screen Share","operationId":"start_interview_screen_share_v1_interview_session__session_id__screen_shares_start_post","parameters":[{"name":"session_id","in":"path","required":true,"schema":{"type":"string","title":"Session Id"}},{"name":"token","in":"query","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Token"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ScreenShareStartRequest"}}}},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ScreenShareOut"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/v1/interview/session/{session_id}/screen-shares/decline":{"post":{"tags":["interview-realtime"],"summary":"Decline Interview Screen Share","operationId":"decline_interview_screen_share_v1_interview_session__session_id__screen_shares_decline_post","parameters":[{"name":"session_id","in":"path","required":true,"schema":{"type":"string","title":"Session Id"}},{"name":"token","in":"query","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Token"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ScreenShareDeclineRequest"}}}},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ScreenShareOut"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/v1/interview/session/{session_id}/screen-shares/{share_id}/chunks/{chunk_index}":{"post":{"tags":["interview-realtime"],"summary":"Upload Interview Screen Share Chunk","operationId":"upload_interview_screen_share_chunk_v1_interview_session__session_id__screen_shares__share_id__chunks__chunk_index__post","parameters":[{"name":"session_id","in":"path","required":true,"schema":{"type":"string","title":"Session Id"}},{"name":"share_id","in":"path","required":true,"schema":{"type":"string","format":"uuid","title":"Share Id"}},{"name":"chunk_index","in":"path","required":true,"schema":{"type":"integer","title":"Chunk Index"}},{"name":"token","in":"query","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Token"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ScreenShareOut"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/v1/interview/session/{session_id}/screen-shares/{share_id}/snapshots":{"post":{"tags":["interview-realtime"],"summary":"Create Interview Screen Observation","operationId":"create_interview_screen_observation_v1_interview_session__session_id__screen_shares__share_id__snapshots_post","parameters":[{"name":"session_id","in":"path","required":true,"schema":{"type":"string","title":"Session Id"}},{"name":"share_id","in":"path","required":true,"schema":{"type":"string","format":"uuid","title":"Share Id"}},{"name":"token","in":"query","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Token"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ScreenSnapshotRequest"}}}},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ScreenObservationOut"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/v1/interview/session/{session_id}/screen-shares/{share_id}/stop":{"post":{"tags":["interview-realtime"],"summary":"Stop Interview Screen Share","operationId":"stop_interview_screen_share_v1_interview_session__session_id__screen_shares__share_id__stop_post","parameters":[{"name":"session_id","in":"path","required":true,"schema":{"type":"string","title":"Session Id"}},{"name":"share_id","in":"path","required":true,"schema":{"type":"string","format":"uuid","title":"Share Id"}},{"name":"token","in":"query","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Token"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ScreenShareStopRequest"}}}},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ScreenShareOut"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/v1/interview/session/{session_id}/end":{"post":{"tags":["interview-realtime"],"summary":"End Interview Session","description":"End a public interview at the user's request (see ``_end_interview_session``).\n\nRebuild step 2 (shadow): every ACCEPTED End click is also an\n``end_clicked`` inbox event — submitted after today's mutation succeeded\n(whichever branch it took), fail-open, no-op with the flag off. Rejected\nrequests (404/409) submit nothing.","operationId":"end_interview_session_v1_interview_session__session_id__end_post","parameters":[{"name":"session_id","in":"path","required":true,"schema":{"type":"string","title":"Session Id"}},{"name":"token","in":"query","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Token"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/v1/health":{"get":{"summary":"Health","operationId":"health_v1_health_get","responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}}}}},"/v1/health/db":{"get":{"summary":"Database Health","description":"Check the API can still talk to the current application schema.","operationId":"database_health_v1_health_db_get","responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}}}}},"/metrics":{"get":{"summary":"Prometheus Metrics","description":"Prometheus exposition endpoint for Porter metric-based autoscaling.\n\n`ontora_livekit_session_demand` = waiting + in-flight interview sessions\nin this region (same predicate as the KEDA design in deploy/keda/). The\nlivekit-agent-worker's autoscaler scales on it: one pod per ~10 sessions.\nWorker-type services can't be scraped by Porter, so the web API serves the\ngauge; a single indexed COUNT per scrape (~15-30s) is negligible load.","operationId":"prometheus_metrics_metrics_get","responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}}}}},"/v1/health/workers":{"get":{"summary":"Worker Health","operationId":"worker_health_v1_health_workers_get","parameters":[{"name":"queue_name","in":"query","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Queue Name"}},{"name":"generation","in":"query","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Generation"}},{"name":"min_workers","in":"query","required":false,"schema":{"type":"integer","maximum":20,"minimum":1,"default":1,"title":"Min Workers"}},{"name":"max_age_seconds","in":"query","required":false,"schema":{"type":"integer","maximum":1800,"minimum":30,"default":180,"title":"Max Age Seconds"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/v1/health/interview-workers":{"get":{"summary":"Interview Worker Health","operationId":"interview_worker_health_v1_health_interview_workers_get","parameters":[{"name":"runner_group","in":"query","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Runner Group"}},{"name":"generation","in":"query","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Generation"}},{"name":"min_workers","in":"query","required":false,"schema":{"type":"integer","maximum":100,"minimum":1,"default":1,"title":"Min Workers"}},{"name":"max_age_seconds","in":"query","required":false,"schema":{"type":"integer","maximum":1800,"minimum":15,"default":60,"title":"Max Age Seconds"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}}},"components":{"schemas":{"ActiveJob":{"properties":{"id":{"type":"string","format":"uuid","title":"Id"},"queue_name":{"type":"string","title":"Queue Name"},"type":{"type":"string","title":"Type"},"status":{"type":"string","title":"Status"},"attempts":{"type":"integer","title":"Attempts"},"run_after":{"anyOf":[{"type":"string","format":"date-time"},{"type":"null"}],"title":"Run After"},"heartbeat_at":{"anyOf":[{"type":"string","format":"date-time"},{"type":"null"}],"title":"Heartbeat At"},"lease_expires_at":{"anyOf":[{"type":"string","format":"date-time"},{"type":"null"}],"title":"Lease Expires At"},"progress_phase":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Progress Phase"},"progress_message":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Progress Message"},"progress_context":{"anyOf":[{"additionalProperties":true,"type":"object"},{"type":"null"}],"title":"Progress Context"},"progress_updated_at":{"anyOf":[{"type":"string","format":"date-time"},{"type":"null"}],"title":"Progress Updated At"}},"type":"object","required":["id","queue_name","type","status","attempts"],"title":"ActiveJob"},"AgentDispatchStatusResponse":{"properties":{"claim_pending":{"type":"boolean","title":"Claim Pending"}},"type":"object","required":["claim_pending"],"title":"AgentDispatchStatusResponse","description":"Read-only agent-dispatch state for the client's first-join wait (A1).\n\nWhile the LiveKit room is up but no agent announced session_ready, the\nclient probes this to decide whether to keep waiting: ``claim_pending``\nis True exactly while an agent is still destined for the room (queued\nrequest, fresh claim still connecting, or a rerequest marker parked on an\nactive lease — the resume race, where the old runtime's lease outlives\nits pipeline until after the recording upload).\n\nDeliberately minimal (B-P2-5b): this is a PUBLIC participant endpoint, so\nit exposes exactly the one bit the client's wait decision needs — internal\nrun-status strings stay internal (worker logs/staff surfaces own them)."},"AgentExampleIn":{"properties":{"label":{"type":"string","title":"Label","default":""},"situation":{"type":"string","title":"Situation","default":""},"agent_response":{"type":"string","title":"Agent Response","default":""},"rationale":{"type":"string","title":"Rationale","default":""}},"type":"object","title":"AgentExampleIn"},"AgentPreviewStartRequest":{"properties":{"display_name":{"anyOf":[{"type":"string","maxLength":255},{"type":"null"}],"title":"Display Name"}},"type":"object","title":"AgentPreviewStartRequest"},"AgentPreviewStartResponse":{"properties":{"session_url":{"type":"string","title":"Session Url"},"conversation_id":{"type":"string","format":"uuid","title":"Conversation Id"},"contact_id":{"type":"string","format":"uuid","title":"Contact Id"},"session_token":{"type":"string","title":"Session Token"}},"type":"object","required":["session_url","conversation_id","contact_id","session_token"],"title":"AgentPreviewStartResponse"},"AgentProfileCreate":{"properties":{"workspace_id":{"type":"string","format":"uuid","title":"Workspace Id"},"name":{"type":"string","maxLength":255,"minLength":1,"title":"Name"},"description":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Description"},"folder":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Folder"}},"type":"object","required":["workspace_id","name"],"title":"AgentProfileCreate"},"AgentProfileDocumentOut":{"properties":{"id":{"type":"string","format":"uuid","title":"Id"},"document_id":{"type":"string","format":"uuid","title":"Document Id"},"source_kind":{"type":"string","title":"Source Kind"},"title":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Title"},"extracted_summary":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Extracted Summary"},"status":{"type":"string","title":"Status"},"created_at":{"type":"string","format":"date-time","title":"Created At"}},"type":"object","required":["id","document_id","source_kind","status","created_at"],"title":"AgentProfileDocumentOut"},"AgentProfileDraftCreate":{"properties":{"workspace_id":{"type":"string","format":"uuid","title":"Workspace Id"},"folder":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Folder"}},"type":"object","required":["workspace_id"],"title":"AgentProfileDraftCreate"},"AgentProfileFolderCreate":{"properties":{"workspace_id":{"type":"string","format":"uuid","title":"Workspace Id"},"name":{"type":"string","maxLength":255,"minLength":1,"title":"Name"}},"type":"object","required":["workspace_id","name"],"title":"AgentProfileFolderCreate"},"AgentProfileFolderOut":{"properties":{"id":{"type":"string","format":"uuid","title":"Id"},"workspace_id":{"type":"string","format":"uuid","title":"Workspace Id"},"name":{"type":"string","title":"Name"},"agent_count":{"type":"integer","title":"Agent Count","default":0},"created_by":{"anyOf":[{"type":"string"},{"type":"null"}],"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","workspace_id","name","created_at","updated_at"],"title":"AgentProfileFolderOut"},"AgentProfileListItemOut":{"properties":{"id":{"type":"string","format":"uuid","title":"Id"},"workspace_id":{"type":"string","format":"uuid","title":"Workspace Id"},"name":{"type":"string","title":"Name"},"description":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Description"},"avatar_type":{"type":"string","title":"Avatar Type"},"avatar_emoji":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Avatar Emoji"},"avatar_storage_key":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Avatar Storage Key"},"avatar_url":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Avatar Url"},"voice_provider":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Voice Provider"},"voice_id":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Voice Id"},"voice_language":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Voice Language"},"base_prompt":{"type":"string","title":"Base Prompt"},"instructions":{"type":"string","title":"Instructions"},"status":{"type":"string","title":"Status"},"folder":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Folder"},"created_by":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Created By"},"created_by_email":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Created By Email"},"created_by_name":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Created By Name"},"knowledge_document_count":{"type":"integer","title":"Knowledge Document Count","default":0},"documents":{"items":{"$ref":"#/components/schemas/AgentProfileDocumentOut"},"type":"array","title":"Documents"},"created_at":{"type":"string","format":"date-time","title":"Created At"},"updated_at":{"type":"string","format":"date-time","title":"Updated At"}},"type":"object","required":["id","workspace_id","name","avatar_type","base_prompt","instructions","status","created_at","updated_at"],"title":"AgentProfileListItemOut"},"AgentProfileListOut":{"properties":{"agents":{"items":{"$ref":"#/components/schemas/AgentProfileOut"},"type":"array","title":"Agents"}},"type":"object","required":["agents"],"title":"AgentProfileListOut"},"AgentProfileListPageOut":{"properties":{"agents":{"items":{"$ref":"#/components/schemas/AgentProfileListItemOut"},"type":"array","title":"Agents"},"folders":{"items":{"$ref":"#/components/schemas/AgentProfileFolderOut"},"type":"array","title":"Folders"}},"type":"object","required":["agents","folders"],"title":"AgentProfileListPageOut"},"AgentProfileOut":{"properties":{"id":{"type":"string","format":"uuid","title":"Id"},"workspace_id":{"type":"string","format":"uuid","title":"Workspace Id"},"name":{"type":"string","title":"Name"},"description":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Description"},"avatar_type":{"type":"string","title":"Avatar Type"},"avatar_emoji":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Avatar Emoji"},"avatar_storage_key":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Avatar Storage Key"},"avatar_url":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Avatar Url"},"voice_provider":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Voice Provider"},"voice_id":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Voice Id"},"voice_language":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Voice Language"},"base_prompt":{"type":"string","title":"Base Prompt"},"instructions":{"type":"string","title":"Instructions"},"communication_guidelines":{"type":"string","title":"Communication Guidelines"},"culture_guidelines":{"type":"string","title":"Culture Guidelines"},"positive_examples":{"items":{"additionalProperties":{"type":"string"},"type":"object"},"type":"array","title":"Positive Examples"},"negative_examples":{"items":{"additionalProperties":{"type":"string"},"type":"object"},"type":"array","title":"Negative Examples"},"default_language":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Default Language"},"status":{"type":"string","title":"Status"},"folder":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Folder"},"created_by":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Created By"},"created_by_email":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Created By Email"},"created_by_name":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Created By Name"},"documents":{"items":{"$ref":"#/components/schemas/AgentProfileDocumentOut"},"type":"array","title":"Documents"},"created_at":{"type":"string","format":"date-time","title":"Created At"},"updated_at":{"type":"string","format":"date-time","title":"Updated At"}},"type":"object","required":["id","workspace_id","name","avatar_type","base_prompt","instructions","communication_guidelines","culture_guidelines","positive_examples","negative_examples","status","created_at","updated_at"],"title":"AgentProfileOut"},"AgentProfilePatch":{"properties":{"name":{"anyOf":[{"type":"string","maxLength":255,"minLength":1},{"type":"null"}],"title":"Name"},"description":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Description"},"avatar_type":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Avatar Type"},"avatar_emoji":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Avatar Emoji"},"voice_provider":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Voice Provider"},"voice_id":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Voice Id"},"voice_language":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Voice Language"},"base_prompt":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Base Prompt"},"instructions":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Instructions"},"communication_guidelines":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Communication Guidelines"},"culture_guidelines":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Culture Guidelines"},"positive_examples":{"anyOf":[{"items":{"$ref":"#/components/schemas/AgentExampleIn"},"type":"array"},{"type":"null"}],"title":"Positive Examples"},"negative_examples":{"anyOf":[{"items":{"$ref":"#/components/schemas/AgentExampleIn"},"type":"array"},{"type":"null"}],"title":"Negative Examples"},"default_language":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Default Language"},"status":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Status"},"folder":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Folder"},"skill_ids":{"anyOf":[{"items":{"type":"string","format":"uuid"},"type":"array"},{"type":"null"}],"title":"Skill Ids"}},"type":"object","title":"AgentProfilePatch"},"AgentProfileVersionOut":{"properties":{"id":{"type":"string","format":"uuid","title":"Id"},"agent_profile_id":{"type":"string","format":"uuid","title":"Agent Profile Id"},"workspace_id":{"type":"string","format":"uuid","title":"Workspace Id"},"version_number":{"type":"integer","title":"Version Number"},"snapshot":{"additionalProperties":true,"type":"object","title":"Snapshot"},"change_summary":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Change Summary"},"created_by":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Created By"},"created_by_name":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Created By Name"},"created_at":{"type":"string","format":"date-time","title":"Created At"}},"type":"object","required":["id","agent_profile_id","workspace_id","version_number","snapshot","created_at"],"title":"AgentProfileVersionOut"},"AgentProfileVersionsOut":{"properties":{"versions":{"items":{"$ref":"#/components/schemas/AgentProfileVersionOut"},"type":"array","title":"Versions"}},"type":"object","required":["versions"],"title":"AgentProfileVersionsOut"},"AgentProfileVoicePreviewRequest":{"properties":{"draft":{"anyOf":[{"$ref":"#/components/schemas/AgentProfilePatch"},{"type":"null"}]}},"type":"object","title":"AgentProfileVoicePreviewRequest"},"AgentProfileVoicePreviewResponse":{"properties":{"session_id":{"type":"string","format":"uuid","title":"Session Id"},"token":{"type":"string","title":"Token"}},"type":"object","required":["session_id","token"],"title":"AgentProfileVoicePreviewResponse"},"AgentSkillCreate":{"properties":{"workspace_id":{"type":"string","format":"uuid","title":"Workspace Id"},"name":{"type":"string","maxLength":255,"minLength":1,"title":"Name"},"description":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Description"},"avatar_type":{"type":"string","title":"Avatar Type","default":"default"},"avatar_emoji":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Avatar Emoji"},"skill_type":{"type":"string","title":"Skill Type","default":"behavior"},"body":{"type":"string","minLength":1,"title":"Body"},"trigger_description":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Trigger Description"},"status":{"type":"string","title":"Status","default":"draft"},"default_enabled":{"type":"boolean","title":"Default Enabled","default":false},"priority":{"type":"integer","title":"Priority","default":100},"agent_profile_ids":{"items":{"type":"string","format":"uuid"},"type":"array","title":"Agent Profile Ids"}},"type":"object","required":["workspace_id","name","body"],"title":"AgentSkillCreate"},"AgentSkillDocumentOut":{"properties":{"id":{"type":"string","format":"uuid","title":"Id"},"document_id":{"type":"string","format":"uuid","title":"Document Id"},"title":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Title"},"extracted_summary":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Extracted Summary"},"status":{"type":"string","title":"Status","default":"completed"},"created_at":{"type":"string","format":"date-time","title":"Created At"}},"type":"object","required":["id","document_id","created_at"],"title":"AgentSkillDocumentOut"},"AgentSkillListOut":{"properties":{"skills":{"items":{"$ref":"#/components/schemas/AgentSkillOut"},"type":"array","title":"Skills"}},"type":"object","required":["skills"],"title":"AgentSkillListOut"},"AgentSkillOptimizeIn":{"properties":{"workspace_id":{"type":"string","format":"uuid","title":"Workspace Id"},"field":{"type":"string","enum":["description","instructions"],"title":"Field"},"content":{"type":"string","maxLength":50000,"minLength":1,"title":"Content"},"name":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Name"},"description":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Description"},"instructions":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Instructions"}},"type":"object","required":["workspace_id","field","content"],"title":"AgentSkillOptimizeIn"},"AgentSkillOptimizeOut":{"properties":{"text":{"type":"string","title":"Text"}},"type":"object","required":["text"],"title":"AgentSkillOptimizeOut"},"AgentSkillOut":{"properties":{"id":{"type":"string","format":"uuid","title":"Id"},"workspace_id":{"type":"string","format":"uuid","title":"Workspace Id"},"name":{"type":"string","title":"Name"},"slug":{"type":"string","title":"Slug"},"description":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Description"},"avatar_type":{"type":"string","title":"Avatar Type"},"avatar_emoji":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Avatar Emoji"},"avatar_storage_key":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Avatar Storage Key"},"avatar_url":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Avatar Url"},"skill_type":{"type":"string","title":"Skill Type"},"body":{"type":"string","title":"Body"},"trigger_description":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Trigger Description"},"status":{"type":"string","title":"Status"},"default_enabled":{"type":"boolean","title":"Default Enabled"},"assigned_agent_ids":{"items":{"type":"string","format":"uuid"},"type":"array","title":"Assigned Agent Ids"},"documents":{"items":{"$ref":"#/components/schemas/AgentSkillDocumentOut"},"type":"array","title":"Documents"},"priority":{"type":"integer","title":"Priority"},"version_count":{"type":"integer","title":"Version Count","default":0},"created_by":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Created By"},"created_by_email":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Created By Email"},"created_by_name":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Created By 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","workspace_id","name","slug","avatar_type","skill_type","body","status","default_enabled","priority","created_at","updated_at"],"title":"AgentSkillOut"},"AgentSkillPatch":{"properties":{"name":{"anyOf":[{"type":"string","maxLength":255,"minLength":1},{"type":"null"}],"title":"Name"},"description":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Description"},"avatar_type":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Avatar Type"},"avatar_emoji":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Avatar Emoji"},"skill_type":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Skill Type"},"body":{"anyOf":[{"type":"string","minLength":1},{"type":"null"}],"title":"Body"},"trigger_description":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Trigger Description"},"status":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Status"},"default_enabled":{"anyOf":[{"type":"boolean"},{"type":"null"}],"title":"Default Enabled"},"priority":{"anyOf":[{"type":"integer"},{"type":"null"}],"title":"Priority"},"agent_profile_ids":{"anyOf":[{"items":{"type":"string","format":"uuid"},"type":"array"},{"type":"null"}],"title":"Agent Profile Ids"}},"type":"object","title":"AgentSkillPatch"},"AgentSpeechRequest":{"properties":{"text":{"type":"string","maxLength":8000,"minLength":1,"title":"Text"},"language":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Language"}},"type":"object","required":["text"],"title":"AgentSpeechRequest"},"AggregateQuestionRequest":{"properties":{"question_id":{"type":"string","format":"uuid","title":"Question Id"},"filters":{"items":{"$ref":"#/components/schemas/QuestionResultFilter"},"type":"array","title":"Filters"},"limit":{"type":"integer","maximum":500.0,"minimum":1.0,"title":"Limit","default":100}},"type":"object","required":["question_id"],"title":"AggregateQuestionRequest"},"AggregateRequest":{"properties":{"workspace_id":{"type":"string","format":"uuid","title":"Workspace Id"},"interview_ids":{"anyOf":[{"items":{"type":"string","format":"uuid"},"type":"array"},{"type":"null"}],"title":"Interview Ids"},"topic_ids":{"anyOf":[{"items":{"type":"string","format":"uuid"},"type":"array"},{"type":"null"}],"title":"Topic Ids"},"question_ids":{"anyOf":[{"items":{"type":"string","format":"uuid"},"type":"array"},{"type":"null"}],"title":"Question Ids"},"group_by_dimension":{"type":"string","title":"Group By Dimension"},"filters":{"items":{"$ref":"#/components/schemas/KnowledgeFilter"},"type":"array","title":"Filters"},"compare_to_baseline":{"type":"boolean","title":"Compare To Baseline","default":false},"limit":{"type":"integer","maximum":500.0,"minimum":1.0,"title":"Limit","default":100}},"type":"object","required":["workspace_id","group_by_dimension"],"title":"AggregateRequest"},"AnswerResponse":{"properties":{"data":{"items":{"$ref":"#/components/schemas/RetrievalDataItem"},"type":"array","title":"Data","description":"Answer with sources"}},"type":"object","required":["data"],"title":"AnswerResponse","description":"Response from retrieval/answer endpoint."},"ArtifactCreate":{"properties":{"artifact_type":{"type":"string","title":"Artifact Type"},"title":{"type":"string","title":"Title"},"description":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Description"},"data_json":{"additionalProperties":true,"type":"object","title":"Data Json"},"source_message_id":{"anyOf":[{"type":"string","format":"uuid"},{"type":"null"}],"title":"Source Message Id"},"entity_refs":{"anyOf":[{"items":{"type":"string"},"type":"array"},{"type":"null"}],"title":"Entity Refs"}},"type":"object","required":["artifact_type","title","data_json"],"title":"ArtifactCreate"},"ArtifactOut":{"properties":{"id":{"type":"string","format":"uuid","title":"Id"},"project_id":{"type":"string","format":"uuid","title":"Project Id"},"workspace_id":{"type":"string","format":"uuid","title":"Workspace Id"},"artifact_type":{"type":"string","title":"Artifact Type"},"title":{"type":"string","title":"Title"},"description":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Description"},"data_json":{"additionalProperties":true,"type":"object","title":"Data Json"},"source_message_id":{"anyOf":[{"type":"string","format":"uuid"},{"type":"null"}],"title":"Source Message Id"},"entity_refs":{"anyOf":[{"items":{"type":"string"},"type":"array"},{"type":"null"}],"title":"Entity Refs"},"created_at":{"type":"string","format":"date-time","title":"Created At"}},"type":"object","required":["id","project_id","workspace_id","artifact_type","title","description","data_json","source_message_id","entity_refs","created_at"],"title":"ArtifactOut"},"AssignAgentProfileRequest":{"properties":{"agent_profile_id":{"anyOf":[{"type":"string","format":"uuid"},{"type":"null"}],"title":"Agent Profile Id"}},"type":"object","title":"AssignAgentProfileRequest"},"AudienceFacetOut":{"properties":{"key":{"type":"string","title":"Key"},"values":{"items":{"type":"string"},"type":"array","title":"Values"}},"type":"object","required":["key","values"],"title":"AudienceFacetOut"},"AudienceFacetsOut":{"properties":{"facets":{"items":{"$ref":"#/components/schemas/AudienceFacetOut"},"type":"array","title":"Facets"},"is_anonymous":{"type":"boolean","title":"Is Anonymous","default":false},"anonymity_level":{"type":"string","title":"Anonymity Level","default":"none"}},"type":"object","title":"AudienceFacetsOut"},"BackfillResponse":{"properties":{"fetched":{"type":"integer","title":"Fetched"},"ingested":{"type":"integer","title":"Ingested"},"filtered":{"type":"integer","title":"Filtered","default":0},"stale_hidden":{"type":"integer","title":"Stale Hidden","default":0},"sync_status":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Sync Status"},"message":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Message"},"filter_stats":{"anyOf":[{"additionalProperties":true,"type":"object"},{"type":"null"}],"title":"Filter Stats"}},"type":"object","required":["fetched","ingested"],"title":"BackfillResponse"},"BillingAccessOut":{"properties":{"workspace_id":{"type":"string","format":"uuid","title":"Workspace Id"},"has_access":{"type":"boolean","title":"Has Access"},"source":{"type":"string","title":"Source"},"enforcement_enabled":{"type":"boolean","title":"Enforcement Enabled"},"billing_mode":{"type":"string","enum":["pending_setup","stripe_checkout","manual"],"title":"Billing Mode"},"is_ontora_staff":{"type":"boolean","title":"Is Ontora Staff","default":false},"subscription_status":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Subscription Status"},"subscription_id":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Subscription Id"},"plan_key":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Plan Key"},"subscription_amount_cents":{"anyOf":[{"type":"integer"},{"type":"null"}],"title":"Subscription Amount Cents"},"subscription_base_amount_cents":{"anyOf":[{"type":"integer"},{"type":"null"}],"title":"Subscription Base Amount Cents"},"subscription_currency":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Subscription Currency"},"subscription_interval":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Subscription Interval"},"subscription_interval_count":{"anyOf":[{"type":"integer"},{"type":"null"}],"title":"Subscription Interval Count"},"subscription_discount_applied":{"type":"boolean","title":"Subscription Discount Applied","default":false},"subscription_cancel_at_period_end":{"type":"boolean","title":"Subscription Cancel At Period End","default":false},"trial_ends_at":{"anyOf":[{"type":"string","format":"date-time"},{"type":"null"}],"title":"Trial Ends At"},"current_period_end":{"anyOf":[{"type":"string","format":"date-time"},{"type":"null"}],"title":"Current Period End"},"access_ends_at":{"anyOf":[{"type":"string","format":"date-time"},{"type":"null"}],"title":"Access Ends At"},"is_tester":{"type":"boolean","title":"Is Tester","default":false}},"type":"object","required":["workspace_id","has_access","source","enforcement_enabled","billing_mode"],"title":"BillingAccessOut"},"Body_extract_attachment_text_v1_campaign_creation__interview_id__attachments_extract_post":{"properties":{"file":{"type":"string","contentMediaType":"application/octet-stream","title":"File"}},"type":"object","required":["file"],"title":"Body_extract_attachment_text_v1_campaign_creation__interview_id__attachments_extract_post"},"Body_get_dimensions_v1_knowledge_dimensions_get":{"properties":{"interview_ids":{"anyOf":[{"items":{"type":"string","format":"uuid"},"type":"array"},{"type":"null"}],"title":"Interview Ids"},"topic_ids":{"anyOf":[{"items":{"type":"string","format":"uuid"},"type":"array"},{"type":"null"}],"title":"Topic Ids"},"question_ids":{"anyOf":[{"items":{"type":"string","format":"uuid"},"type":"array"},{"type":"null"}],"title":"Question Ids"}},"type":"object","title":"Body_get_dimensions_v1_knowledge_dimensions_get"},"Body_import_contacts_v1_interviews__interview_id__contacts_import_post":{"properties":{"file":{"type":"string","contentMediaType":"application/octet-stream","title":"File"}},"type":"object","required":["file"],"title":"Body_import_contacts_v1_interviews__interview_id__contacts_import_post"},"Body_import_people_v1_people_import_post":{"properties":{"file":{"type":"string","contentMediaType":"application/octet-stream","title":"File"}},"type":"object","required":["file"],"title":"Body_import_people_v1_people_import_post"},"Body_upload_agent_profile_avatar_v1_interview_agents__agent_id__avatar_post":{"properties":{"file":{"type":"string","contentMediaType":"application/octet-stream","title":"File"}},"type":"object","required":["file"],"title":"Body_upload_agent_profile_avatar_v1_interview_agents__agent_id__avatar_post"},"Body_upload_agent_profile_file_v1_interview_agents__agent_id__files_post":{"properties":{"source_kind":{"type":"string","title":"Source Kind"},"title":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Title"},"file":{"type":"string","contentMediaType":"application/octet-stream","title":"File"}},"type":"object","required":["source_kind","file"],"title":"Body_upload_agent_profile_file_v1_interview_agents__agent_id__files_post"},"Body_upload_agent_skill_file_v1_interview_agents_skills__skill_id__files_post":{"properties":{"title":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Title"},"file":{"type":"string","contentMediaType":"application/octet-stream","title":"File"}},"type":"object","required":["file"],"title":"Body_upload_agent_skill_file_v1_interview_agents_skills__skill_id__files_post"},"Body_upload_agent_skill_icon_v1_interview_agents_skills__skill_id__icon_post":{"properties":{"file":{"type":"string","contentMediaType":"application/octet-stream","title":"File"}},"type":"object","required":["file"],"title":"Body_upload_agent_skill_icon_v1_interview_agents_skills__skill_id__icon_post"},"Body_upload_email_logo_v1_workspaces__workspace_id__email_settings_logo_post":{"properties":{"file":{"type":"string","contentMediaType":"application/octet-stream","title":"File"}},"type":"object","required":["file"],"title":"Body_upload_email_logo_v1_workspaces__workspace_id__email_settings_logo_post"},"Body_upload_file_v1_projects__project_id__data_upload_post":{"properties":{"file":{"type":"string","contentMediaType":"application/octet-stream","title":"File"},"source_name":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Source Name"},"metadata":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Metadata"}},"type":"object","required":["file"],"title":"Body_upload_file_v1_projects__project_id__data_upload_post"},"Body_upload_screenshot_v1_feedback_program_screenshots_post":{"properties":{"file":{"type":"string","contentMediaType":"application/octet-stream","title":"File"}},"type":"object","required":["file"],"title":"Body_upload_screenshot_v1_feedback_program_screenshots_post"},"Body_upload_workspace_logo_v1_workspaces__workspace_id__logo_post":{"properties":{"file":{"type":"string","contentMediaType":"application/octet-stream","title":"File"}},"type":"object","required":["file"],"title":"Body_upload_workspace_logo_v1_workspaces__workspace_id__logo_post"},"BookingConfirmRequest":{"properties":{"slot_start":{"type":"string","title":"Slot Start"}},"type":"object","required":["slot_start"],"title":"BookingConfirmRequest"},"BookingConfirmResponse":{"properties":{"meeting_url":{"type":"string","title":"Meeting Url"},"scheduled_at":{"type":"string","title":"Scheduled At"},"message":{"type":"string","title":"Message"}},"type":"object","required":["meeting_url","scheduled_at","message"],"title":"BookingConfirmResponse"},"BookingInfo":{"properties":{"contact_name":{"type":"string","title":"Contact Name"},"interview_title":{"type":"string","title":"Interview Title"},"interview_description":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Interview Description"},"interview_context":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Interview Context"},"duration_minutes":{"type":"integer","title":"Duration Minutes"},"timezone":{"type":"string","title":"Timezone"},"available_slots":{"items":{"$ref":"#/components/schemas/TimeSlot"},"type":"array","title":"Available Slots"},"already_booked":{"type":"boolean","title":"Already Booked"},"booking_status":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Booking Status"},"meeting_url":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Meeting Url"},"scheduled_at":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Scheduled At"},"allow_instant":{"type":"boolean","title":"Allow Instant","default":true},"instant_url":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Instant Url"},"allow_custom_time":{"type":"boolean","title":"Allow Custom Time","default":true},"scheduling_mode":{"type":"string","title":"Scheduling Mode","default":"availability"},"timeframe_start":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Timeframe Start"},"timeframe_end":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Timeframe End"},"availability":{"type":"string","title":"Availability","default":"bookable"},"unavailable_reason":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Unavailable Reason"},"can_reschedule":{"type":"boolean","title":"Can Reschedule","default":false},"language":{"type":"string","title":"Language","default":"en"},"organization_name":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Organization Name"},"organizer_email":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Organizer Email"},"organizer_name":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Organizer Name"},"support_email":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Support Email"},"support_url":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Support Url"},"is_anonymous":{"type":"boolean","title":"Is Anonymous","default":false},"anonymity_level":{"type":"string","title":"Anonymity Level","default":"none"},"maintenance":{"$ref":"#/components/schemas/BookingMaintenanceInfo"}},"type":"object","required":["contact_name","interview_title","interview_description","interview_context","duration_minutes","timezone","available_slots","already_booked"],"title":"BookingInfo"},"BookingMaintenanceInfo":{"properties":{"enabled":{"type":"boolean","title":"Enabled","default":false},"blocked":{"type":"boolean","title":"Blocked","default":false},"reason":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Reason"}},"type":"object","title":"BookingMaintenanceInfo"},"BulkContactsCreate":{"properties":{"contacts":{"items":{"$ref":"#/components/schemas/app__api__interview_schemas__ContactCreate"},"type":"array","title":"Contacts"}},"type":"object","required":["contacts"],"title":"BulkContactsCreate"},"BulkContactsOut":{"properties":{"created":{"items":{"$ref":"#/components/schemas/app__api__interview_schemas__ContactOut"},"type":"array","title":"Created"},"count":{"type":"integer","title":"Count"},"skipped":{"type":"integer","title":"Skipped","default":0},"invited_count":{"type":"integer","title":"Invited Count","default":0},"invitations_scheduled_for":{"anyOf":[{"type":"string","format":"date-time"},{"type":"null"}],"title":"Invitations Scheduled For"}},"type":"object","required":["created","count"],"title":"BulkContactsOut"},"BulkFollowUpRequest":{"properties":{"contact_ids":{"items":{"type":"string","format":"uuid"},"type":"array","title":"Contact Ids"},"message":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Message"},"channel":{"anyOf":[{"type":"string","enum":["teams","slack","email"]},{"type":"null"}],"title":"Channel"}},"type":"object","required":["contact_ids"],"title":"BulkFollowUpRequest"},"BulkIngestRequest":{"properties":{"workspace_id":{"type":"string","format":"uuid","title":"Workspace Id"},"vault_id":{"anyOf":[{"type":"string","format":"uuid"},{"type":"null"}],"title":"Vault Id"},"documents":{"items":{"$ref":"#/components/schemas/ManualIngestRequest"},"type":"array","maxItems":50,"minItems":1,"title":"Documents"}},"type":"object","required":["workspace_id","documents"],"title":"BulkIngestRequest","description":"Request to ingest multiple documents at once."},"BulkIngestResponse":{"properties":{"total":{"type":"integer","title":"Total"},"created":{"type":"integer","title":"Created"},"updated":{"type":"integer","title":"Updated"},"unchanged":{"type":"integer","title":"Unchanged"},"errors":{"items":{"additionalProperties":true,"type":"object"},"type":"array","title":"Errors","default":[]},"document_ids":{"items":{"type":"string","format":"uuid"},"type":"array","title":"Document Ids","default":[]}},"type":"object","required":["total","created","updated","unchanged"],"title":"BulkIngestResponse","description":"Response for bulk ingestion."},"BulkReinviteRequest":{"properties":{"contact_ids":{"items":{"type":"string","format":"uuid"},"type":"array","title":"Contact Ids"}},"type":"object","required":["contact_ids"],"title":"BulkReinviteRequest"},"BulkReinviteResponse":{"properties":{"reinvited":{"items":{"$ref":"#/components/schemas/app__api__interview_schemas__ContactOut"},"type":"array","title":"Reinvited"},"invite_sent_count":{"type":"integer","title":"Invite Sent Count"},"skipped_count":{"type":"integer","title":"Skipped Count"},"message":{"type":"string","title":"Message"}},"type":"object","required":["reinvited","invite_sent_count","skipped_count","message"],"title":"BulkReinviteResponse","description":"Result of re-inviting several completed participants at once."},"CalendarResponse":{"properties":{"id":{"type":"string","title":"Id"},"summary":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Summary"},"description":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Description"},"timeZone":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Timezone"},"primary":{"anyOf":[{"type":"boolean"},{"type":"null"}],"title":"Primary"},"accessRole":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Accessrole"}},"type":"object","required":["id"],"title":"CalendarResponse"},"CampaignAgentContextRequest":{"properties":{"message":{"type":"string","title":"Message"}},"type":"object","required":["message"],"title":"CampaignAgentContextRequest"},"CampaignAgentContextResponse":{"properties":{"workspace_company_domain":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Workspace Company Domain"},"foundation_context":{"type":"string","title":"Foundation Context","default":""},"default_language":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Default Language"},"participant_language_selection_enabled":{"type":"boolean","title":"Participant Language Selection Enabled","default":false},"participant_selectable_languages":{"items":{"type":"string"},"type":"array","title":"Participant Selectable Languages"},"participant_content_language":{"type":"string","title":"Participant Content Language","default":"en"}},"type":"object","title":"CampaignAgentContextResponse"},"CampaignAgentRunStartRequest":{"properties":{"run_id":{"type":"string","format":"uuid","title":"Run Id"},"user_message":{"type":"string","title":"User Message"},"step":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Step"},"agent_role":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Agent Role"},"model":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Model"}},"type":"object","required":["run_id","user_message"],"title":"CampaignAgentRunStartRequest"},"CampaignAgentRunStartResponse":{"properties":{"run_id":{"type":"string","format":"uuid","title":"Run Id"},"assistant_message_id":{"type":"string","format":"uuid","title":"Assistant Message Id"}},"type":"object","required":["run_id","assistant_message_id"],"title":"CampaignAgentRunStartResponse"},"CampaignAgentRunUpdateRequest":{"properties":{"assistant_message_id":{"type":"string","format":"uuid","title":"Assistant Message Id"},"content":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Content"},"event":{"anyOf":[{"additionalProperties":true,"type":"object"},{"type":"null"}],"title":"Event"},"status":{"anyOf":[{"type":"string","enum":["running","completed","failed"]},{"type":"null"}],"title":"Status"}},"type":"object","required":["assistant_message_id"],"title":"CampaignAgentRunUpdateRequest"},"CampaignAgentRunUpdateResponse":{"properties":{"status":{"type":"string","title":"Status","default":"recorded"}},"type":"object","title":"CampaignAgentRunUpdateResponse"},"CampaignAgentToolResponse":{"properties":{"event":{"additionalProperties":true,"type":"object","title":"Event"},"participant_content_language":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Participant Content Language"}},"type":"object","required":["event"],"title":"CampaignAgentToolResponse"},"CampaignAgentUpdateCampaignRequest":{"properties":{"name":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Name"},"goal":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Goal"},"description":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Description"},"interview_duration_minutes":{"anyOf":[{"type":"integer"},{"type":"null"}],"title":"Interview Duration Minutes"},"interview_type":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Interview Type"},"participant_mode_selection_enabled":{"anyOf":[{"type":"boolean"},{"type":"null"}],"title":"Participant Mode Selection Enabled"},"interview_context_for_employee":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Interview Context For Employee"},"welcome_screen":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Welcome Screen"},"timeframe_start":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Timeframe Start"},"timeframe_end":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Timeframe End"}},"type":"object","title":"CampaignAgentUpdateCampaignRequest"},"CampaignContent":{"properties":{"interview_context_for_employee":{"type":"string","title":"Interview Context For Employee","default":""},"welcome_screen":{"type":"string","title":"Welcome Screen","default":""},"closing_message":{"type":"string","title":"Closing Message","default":""},"invitation_email_message":{"type":"string","title":"Invitation Email Message","default":""},"teams_invitation_message":{"type":"string","title":"Teams Invitation Message","default":""},"topics":{"items":{"$ref":"#/components/schemas/TranslatableTopic"},"type":"array","title":"Topics"}},"type":"object","title":"CampaignContent","description":"Every participant-facing string of a campaign, in the editor's shape."},"CampaignCreationMessageResponse":{"properties":{"id":{"type":"string","format":"uuid","title":"Id"},"message_index":{"type":"integer","title":"Message Index"},"role":{"type":"string","title":"Role"},"content":{"type":"string","title":"Content"},"stage_hint":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Stage Hint"},"response_payload":{"anyOf":[{"additionalProperties":true,"type":"object"},{"type":"null"}],"title":"Response Payload"},"created_at":{"type":"string","format":"date-time","title":"Created At"}},"type":"object","required":["id","message_index","role","content","created_at"],"title":"CampaignCreationMessageResponse"},"CampaignCreationMessagesResponse":{"properties":{"messages":{"items":{"$ref":"#/components/schemas/CampaignCreationMessageResponse"},"type":"array","title":"Messages"}},"type":"object","required":["messages"],"title":"CampaignCreationMessagesResponse"},"CampaignJoinLinkOut":{"properties":{"join_link_token":{"type":"string","title":"Join Link Token"},"join_url":{"type":"string","title":"Join Url"},"created_at":{"anyOf":[{"type":"string","format":"date-time"},{"type":"null"}],"title":"Created At"},"language":{"type":"string","title":"Language","default":"en"}},"type":"object","required":["join_link_token","join_url"],"title":"CampaignJoinLinkOut"},"CampaignReportStatus":{"type":"string","enum":["in_progress","ready","failed"],"title":"CampaignReportStatus"},"CampaignReportTrigger":{"type":"string","enum":["threshold_reached","incremental_update","manual_regenerate"],"title":"CampaignReportTrigger","description":"What caused a campaign report version to be generated."},"CampaignShareCreate":{"properties":{"target_workspace_id":{"type":"string","format":"uuid","title":"Target Workspace Id"}},"type":"object","required":["target_workspace_id"],"title":"CampaignShareCreate"},"CampaignShareDecision":{"properties":{"action":{"type":"string","enum":["accept","decline","revoke"],"title":"Action"}},"type":"object","required":["action"],"title":"CampaignShareDecision"},"CampaignShareListOut":{"properties":{"shares":{"items":{"$ref":"#/components/schemas/CampaignShareOut"},"type":"array","title":"Shares"}},"type":"object","required":["shares"],"title":"CampaignShareListOut"},"CampaignShareOut":{"properties":{"id":{"type":"string","format":"uuid","title":"Id"},"interview_id":{"type":"string","format":"uuid","title":"Interview Id"},"interview_name":{"type":"string","title":"Interview Name"},"source_workspace_id":{"type":"string","format":"uuid","title":"Source Workspace Id"},"source_workspace_name":{"type":"string","title":"Source Workspace Name"},"target_workspace_id":{"type":"string","format":"uuid","title":"Target Workspace Id"},"target_workspace_name":{"type":"string","title":"Target Workspace Name"},"status":{"type":"string","title":"Status"},"requested_by_user_id":{"type":"string","title":"Requested By User Id"},"responded_by_user_id":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Responded By User Id"},"responded_at":{"anyOf":[{"type":"string","format":"date-time"},{"type":"null"}],"title":"Responded At"},"revoked_at":{"anyOf":[{"type":"string","format":"date-time"},{"type":"null"}],"title":"Revoked At"},"created_at":{"type":"string","format":"date-time","title":"Created At"},"updated_at":{"type":"string","format":"date-time","title":"Updated At"}},"type":"object","required":["id","interview_id","interview_name","source_workspace_id","source_workspace_name","target_workspace_id","target_workspace_name","status","requested_by_user_id","created_at","updated_at"],"title":"CampaignShareOut"},"CampaignShareViewHeartbeat":{"properties":{"sequence":{"type":"integer","maximum":2147483647.0,"minimum":1.0,"title":"Sequence"},"content_type":{"type":"string","enum":["report","conversations"],"title":"Content Type"},"visible":{"type":"boolean","title":"Visible"}},"additionalProperties":false,"type":"object","required":["sequence","content_type","visible"],"title":"CampaignShareViewHeartbeat"},"CampaignShareViewSessionOut":{"properties":{"session_id":{"type":"string","format":"uuid","title":"Session Id"},"active_seconds":{"type":"integer","title":"Active Seconds"}},"type":"object","required":["session_id","active_seconds"],"title":"CampaignShareViewSessionOut"},"CampaignShareViewSessionStart":{"properties":{"client_session_id":{"type":"string","format":"uuid","title":"Client Session Id"},"content_type":{"type":"string","enum":["report","conversations"],"title":"Content Type"},"visible":{"type":"boolean","title":"Visible"}},"additionalProperties":false,"type":"object","required":["client_session_id","content_type","visible"],"title":"CampaignShareViewSessionStart"},"CampaignSharingAnalyticsMetrics":{"properties":{"first_opened_at":{"anyOf":[{"type":"string","format":"date-time"},{"type":"null"}],"title":"First Opened At"},"last_opened_at":{"anyOf":[{"type":"string","format":"date-time"},{"type":"null"}],"title":"Last Opened At"},"visit_count":{"type":"integer","title":"Visit Count","default":0},"active_seconds":{"type":"integer","title":"Active Seconds","default":0},"report_active_seconds":{"type":"integer","title":"Report Active Seconds","default":0},"conversations_active_seconds":{"type":"integer","title":"Conversations Active Seconds","default":0}},"type":"object","title":"CampaignSharingAnalyticsMetrics"},"CampaignSharingAnalyticsOut":{"properties":{"interview_id":{"type":"string","format":"uuid","title":"Interview Id"},"summary":{"$ref":"#/components/schemas/CampaignSharingAnalyticsSummary"},"viewers":{"items":{"$ref":"#/components/schemas/CampaignSharingViewerAnalytics"},"type":"array","title":"Viewers"},"public_link":{"$ref":"#/components/schemas/CampaignSharingAnalyticsMetrics"}},"type":"object","required":["interview_id","summary","viewers","public_link"],"title":"CampaignSharingAnalyticsOut"},"CampaignSharingAnalyticsSummary":{"properties":{"recipient_count":{"type":"integer","title":"Recipient Count","default":0},"recipient_opened_count":{"type":"integer","title":"Recipient Opened Count","default":0},"total_visits":{"type":"integer","title":"Total Visits","default":0},"active_seconds":{"type":"integer","title":"Active Seconds","default":0},"report_active_seconds":{"type":"integer","title":"Report Active Seconds","default":0},"conversations_active_seconds":{"type":"integer","title":"Conversations Active Seconds","default":0}},"type":"object","title":"CampaignSharingAnalyticsSummary"},"CampaignSharingPermissionsUpdate":{"properties":{"general_access_level":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"General Access Level"},"recipient_permissions":{"items":{"$ref":"#/components/schemas/CampaignSharingRecipientPermission"},"type":"array","title":"Recipient Permissions"}},"additionalProperties":false,"type":"object","required":["recipient_permissions"],"title":"CampaignSharingPermissionsUpdate","description":"Versioned update for independent general and per-person grants.\n\nA separate route is deliberate: during a rolling deployment, an older API\npod returns 404 instead of silently ignoring the new fields and applying a\npartial, potentially wider permission change."},"CampaignSharingRecipientPermission":{"properties":{"recipient_email":{"type":"string","title":"Recipient Email"},"access_level":{"type":"string","title":"Access Level","default":"report_only"}},"type":"object","required":["recipient_email"],"title":"CampaignSharingRecipientPermission"},"CampaignSharingSettingsOut":{"properties":{"interview_id":{"type":"string","format":"uuid","title":"Interview Id"},"share_access_level":{"type":"string","title":"Share Access Level"},"general_access_level":{"type":"string","title":"General Access Level"},"link_enabled":{"type":"boolean","title":"Link Enabled"},"share_link_url":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Share Link Url"},"recipients":{"items":{"type":"string"},"type":"array","title":"Recipients"},"recipient_permissions":{"items":{"$ref":"#/components/schemas/CampaignSharingRecipientPermission"},"type":"array","title":"Recipient Permissions"}},"type":"object","required":["interview_id","share_access_level","general_access_level","link_enabled","recipients","recipient_permissions"],"title":"CampaignSharingSettingsOut"},"CampaignSharingSettingsUpdate":{"properties":{"share_access_level":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Share Access Level"},"recipient_emails":{"anyOf":[{"items":{"type":"string"},"type":"array"},{"type":"null"}],"title":"Recipient Emails"},"link_enabled":{"anyOf":[{"type":"boolean"},{"type":"null"}],"title":"Link Enabled"}},"additionalProperties":false,"type":"object","title":"CampaignSharingSettingsUpdate","description":"Legacy all-channel update used by older frontends."},"CampaignSharingViewerAnalytics":{"properties":{"first_opened_at":{"anyOf":[{"type":"string","format":"date-time"},{"type":"null"}],"title":"First Opened At"},"last_opened_at":{"anyOf":[{"type":"string","format":"date-time"},{"type":"null"}],"title":"Last Opened At"},"visit_count":{"type":"integer","title":"Visit Count","default":0},"active_seconds":{"type":"integer","title":"Active Seconds","default":0},"report_active_seconds":{"type":"integer","title":"Report Active Seconds","default":0},"conversations_active_seconds":{"type":"integer","title":"Conversations Active Seconds","default":0},"channel":{"type":"string","enum":["recipient","workspace"],"title":"Channel"},"recipient_id":{"anyOf":[{"type":"string","format":"uuid"},{"type":"null"}],"title":"Recipient Id"},"recipient_email":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Recipient Email"},"viewer_user_id":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Viewer User Id"},"viewer_name":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Viewer Name"},"viewer_email":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Viewer Email"},"access_level":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Access Level"},"status":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Status"}},"type":"object","required":["channel"],"title":"CampaignSharingViewerAnalytics"},"CampaignShellGraphOut":{"properties":{"id":{"anyOf":[{"type":"string","format":"uuid"},{"type":"null"}],"title":"Id"},"status":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Status"},"conversations_ingested":{"type":"integer","title":"Conversations Ingested","default":0},"conversations_total":{"type":"integer","title":"Conversations Total","default":0},"completed_at":{"anyOf":[{"type":"string","format":"date-time"},{"type":"null"}],"title":"Completed At"}},"type":"object","title":"CampaignShellGraphOut"},"CampaignShellProgressOut":{"properties":{"total":{"type":"integer","title":"Total"},"pending":{"type":"integer","title":"Pending"},"scheduled":{"type":"integer","title":"Scheduled"},"in_progress":{"type":"integer","title":"In Progress"},"pending_review":{"type":"integer","title":"Pending Review"},"completed":{"type":"integer","title":"Completed"},"failed":{"type":"integer","title":"Failed"},"skipped":{"type":"integer","title":"Skipped"},"completion_percent":{"type":"number","title":"Completion Percent"},"target_threshold":{"type":"integer","title":"Target Threshold"}},"type":"object","required":["total","pending","scheduled","in_progress","pending_review","completed","failed","skipped","completion_percent","target_threshold"],"title":"CampaignShellProgressOut"},"CampaignShellReportOut":{"properties":{"id":{"anyOf":[{"type":"string","format":"uuid"},{"type":"null"}],"title":"Id"},"status":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Status"},"version_number":{"anyOf":[{"type":"integer"},{"type":"null"}],"title":"Version Number"},"completed_at":{"anyOf":[{"type":"string","format":"date-time"},{"type":"null"}],"title":"Completed At"}},"type":"object","title":"CampaignShellReportOut"},"CampaignTestJoinLinkOut":{"properties":{"join_url":{"type":"string","title":"Join Url"},"expires_at":{"type":"string","format":"date-time","title":"Expires At"},"language":{"type":"string","title":"Language","default":"en"}},"type":"object","required":["join_url","expires_at"],"title":"CampaignTestJoinLinkOut"},"CampaignVersionChangeResponse":{"properties":{"field":{"type":"string","title":"Field"},"kind":{"type":"string","enum":["add","remove","replace"],"title":"Kind"},"before":{"anyOf":[{},{"type":"null"}],"title":"Before"},"after":{"anyOf":[{},{"type":"null"}],"title":"After"},"context":{"anyOf":[{"additionalProperties":{"type":"string"},"type":"object"},{"type":"null"}],"title":"Context"}},"type":"object","required":["field","kind"],"title":"CampaignVersionChangeResponse"},"CampaignVersionResponse":{"properties":{"id":{"type":"string","format":"uuid","title":"Id"},"version_number":{"type":"integer","title":"Version Number"},"trigger":{"type":"string","title":"Trigger"},"created_at":{"type":"string","format":"date-time","title":"Created At"},"created_by_name":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Created By Name"},"changes":{"items":{"$ref":"#/components/schemas/CampaignVersionChangeResponse"},"type":"array","title":"Changes"},"change_count":{"type":"integer","title":"Change Count"}},"type":"object","required":["id","version_number","trigger","created_at","changes","change_count"],"title":"CampaignVersionResponse"},"CampaignVersionsResponse":{"properties":{"versions":{"items":{"$ref":"#/components/schemas/CampaignVersionResponse"},"type":"array","title":"Versions"},"next_before_version":{"anyOf":[{"type":"integer"},{"type":"null"}],"title":"Next Before Version"}},"type":"object","required":["versions"],"title":"CampaignVersionsResponse"},"CancelAllResponse":{"properties":{"cancelled_count":{"type":"integer","title":"Cancelled Count"},"calendar_events_deleted":{"type":"integer","title":"Calendar Events Deleted"},"new_status":{"type":"string","title":"New Status"},"message":{"type":"string","title":"Message"}},"type":"object","required":["cancelled_count","calendar_events_deleted","new_status","message"],"title":"CancelAllResponse"},"CancelContactResponse":{"properties":{"contact_id":{"type":"string","format":"uuid","title":"Contact Id"},"status":{"type":"string","title":"Status"},"calendar_event_deleted":{"type":"boolean","title":"Calendar Event Deleted"},"message":{"type":"string","title":"Message"}},"type":"object","required":["contact_id","status","calendar_event_deleted","message"],"title":"CancelContactResponse"},"CancelRequest":{"properties":{"mark_as_skipped":{"type":"boolean","title":"Mark As Skipped","default":false}},"type":"object","title":"CancelRequest"},"CartographyOut":{"properties":{"interview_id":{"type":"string","format":"uuid","title":"Interview Id"},"stats":{"$ref":"#/components/schemas/CartographyStatsOut"},"summary":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Summary"},"categories":{"items":{"type":"string"},"type":"array","title":"Categories"},"processes":{"items":{"$ref":"#/components/schemas/ProcessSummaryOut"},"type":"array","title":"Processes"},"graph_json":{"anyOf":[{"additionalProperties":true,"type":"object"},{"type":"null"}],"title":"Graph Json"}},"type":"object","required":["interview_id","stats","summary","categories","processes","graph_json"],"title":"CartographyOut"},"CartographyStatsOut":{"properties":{"collaborators":{"type":"integer","title":"Collaborators"},"processes":{"type":"integer","title":"Processes"},"steps":{"type":"integer","title":"Steps"},"tools":{"type":"integer","title":"Tools"}},"type":"object","required":["collaborators","processes","steps","tools"],"title":"CartographyStatsOut"},"ChatMessageCreate":{"properties":{"role":{"type":"string","title":"Role"},"content":{"type":"string","title":"Content"},"parts_json":{"anyOf":[{"items":{},"type":"array"},{"type":"null"}],"title":"Parts Json"},"context_vault_ids_used":{"anyOf":[{"items":{"type":"string","format":"uuid"},"type":"array"},{"type":"null"}],"title":"Context Vault Ids Used"},"graph_delta":{"anyOf":[{"$ref":"#/components/schemas/GraphDelta"},{"type":"null"}]}},"type":"object","required":["role","content"],"title":"ChatMessageCreate"},"ChatMessageOut":{"properties":{"id":{"type":"string","format":"uuid","title":"Id"},"session_id":{"type":"string","format":"uuid","title":"Session Id"},"role":{"type":"string","title":"Role"},"content":{"type":"string","title":"Content"},"parts_json":{"anyOf":[{"items":{},"type":"array"},{"type":"null"}],"title":"Parts Json"},"context_vault_ids_used":{"anyOf":[{"items":{"type":"string","format":"uuid"},"type":"array"},{"type":"null"}],"title":"Context Vault Ids Used"},"graph_nodes_created":{"type":"integer","title":"Graph Nodes Created"},"graph_edges_created":{"type":"integer","title":"Graph Edges Created"},"created_at":{"type":"string","format":"date-time","title":"Created At"}},"type":"object","required":["id","session_id","role","content","context_vault_ids_used","graph_nodes_created","graph_edges_created","created_at"],"title":"ChatMessageOut"},"ChatRequest":{"properties":{"content":{"type":"string","title":"Content"}},"type":"object","required":["content"],"title":"ChatRequest"},"ChatResponse":{"properties":{"user_message":{"$ref":"#/components/schemas/ChatMessageOut"},"assistant_message":{"$ref":"#/components/schemas/ChatMessageOut"},"answer":{"type":"string","title":"Answer"},"graph_nodes_created":{"type":"integer","title":"Graph Nodes Created"},"graph_edges_created":{"type":"integer","title":"Graph Edges Created"}},"type":"object","required":["user_message","assistant_message","answer","graph_nodes_created","graph_edges_created"],"title":"ChatResponse"},"ChatSessionCreate":{"properties":{"title":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Title"}},"type":"object","title":"ChatSessionCreate"},"ChatSessionOut":{"properties":{"id":{"type":"string","format":"uuid","title":"Id"},"project_id":{"type":"string","format":"uuid","title":"Project Id"},"workspace_id":{"type":"string","format":"uuid","title":"Workspace Id"},"title":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Title"},"created_at":{"type":"string","format":"date-time","title":"Created At"},"updated_at":{"type":"string","format":"date-time","title":"Updated At"}},"type":"object","required":["id","project_id","workspace_id","title","created_at","updated_at"],"title":"ChatSessionOut"},"ChatSessionUpdate":{"properties":{"title":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Title"}},"type":"object","title":"ChatSessionUpdate"},"CheckCalendarResponsesResponse":{"properties":{"checked":{"type":"integer","title":"Checked"},"declined":{"type":"integer","title":"Declined"},"declined_contact_ids":{"items":{"type":"string"},"type":"array","title":"Declined Contact Ids","default":[]},"message":{"type":"string","title":"Message"}},"type":"object","required":["checked","declined","message"],"title":"CheckCalendarResponsesResponse"},"CheckoutSessionOut":{"properties":{"session_id":{"type":"string","title":"Session Id"},"url":{"type":"string","title":"Url"}},"type":"object","required":["session_id","url"],"title":"CheckoutSessionOut"},"CheckoutSessionRequest":{"properties":{"workspace_id":{"type":"string","format":"uuid","title":"Workspace Id"},"plan_key":{"type":"string","maxLength":64,"minLength":1,"title":"Plan Key"}},"type":"object","required":["workspace_id","plan_key"],"title":"CheckoutSessionRequest"},"ChunkResponse":{"properties":{"id":{"type":"string","title":"Id"},"idx":{"type":"integer","title":"Idx"},"text":{"type":"string","title":"Text"},"start_offset":{"type":"integer","title":"Start Offset"},"end_offset":{"type":"integer","title":"End Offset"}},"type":"object","required":["id","idx","text","start_offset","end_offset"],"title":"ChunkResponse","description":"Document chunk details."},"Citation":{"properties":{"url":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Url"},"title":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Title"},"quote":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Quote"},"document_id":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Document Id"},"chunk_id":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Chunk Id"},"source_type":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Source Type"}},"type":"object","title":"Citation"},"ClaimRef":{"properties":{"key":{"type":"string","title":"Key"},"claim_text":{"type":"string","title":"Claim Text"},"claim_type":{"type":"string","title":"Claim Type"},"about_entity":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"About Entity"}},"type":"object","required":["key","claim_text","claim_type"],"title":"ClaimRef"},"ClaimResponse":{"properties":{"key":{"type":"string","title":"Key"},"claim_text":{"type":"string","title":"Claim Text"},"claim_type":{"type":"string","title":"Claim Type"},"temporal_scope":{"type":"string","title":"Temporal Scope"},"confidence":{"type":"number","title":"Confidence"},"about_entity_name":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"About Entity Name"},"source_document_id":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Source Document Id"}},"type":"object","required":["key","claim_text","claim_type","temporal_scope","confidence"],"title":"ClaimResponse"},"ClearHiddenRequest":{"properties":{"workspace_id":{"type":"string","format":"uuid","title":"Workspace Id"},"interview_id":{"type":"string","format":"uuid","title":"Interview Id"}},"type":"object","required":["workspace_id","interview_id"],"title":"ClearHiddenRequest"},"ClientLogsOut":{"properties":{"accepted":{"type":"integer","title":"Accepted"},"dropped":{"type":"integer","title":"Dropped"}},"type":"object","required":["accepted","dropped"],"title":"ClientLogsOut"},"CollaboratorAdd":{"properties":{"user_id":{"type":"string","title":"User Id"},"role":{"$ref":"#/components/schemas/CollaboratorRole","default":"viewer"}},"type":"object","required":["user_id"],"title":"CollaboratorAdd"},"CollaboratorOut":{"properties":{"user_id":{"type":"string","title":"User Id"},"role":{"type":"string","title":"Role"},"added_by":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Added By"},"created_at":{"type":"string","format":"date-time","title":"Created At"}},"type":"object","required":["user_id","role","added_by","created_at"],"title":"CollaboratorOut"},"CollaboratorRole":{"type":"string","enum":["viewer","editor","admin"],"title":"CollaboratorRole"},"CollaboratorUpdate":{"properties":{"role":{"$ref":"#/components/schemas/CollaboratorRole"}},"type":"object","required":["role"],"title":"CollaboratorUpdate"},"CompanyFoundationProfile":{"properties":{"company_name":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Company Name"},"domain":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Domain"},"summary":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Summary"},"industry":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Industry"},"size_estimate":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Size Estimate"},"employee_count":{"anyOf":[{"type":"integer"},{"type":"null"}],"title":"Employee Count"},"headquarters":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Headquarters"},"locations":{"items":{"type":"string"},"type":"array","title":"Locations"},"products_services":{"items":{"type":"string"},"type":"array","title":"Products Services"},"customers_markets":{"items":{"type":"string"},"type":"array","title":"Customers Markets"},"confidence":{"anyOf":[{"type":"number"},{"type":"null"}],"title":"Confidence"},"unknowns":{"items":{"type":"string"},"type":"array","title":"Unknowns"},"source_urls":{"items":{"type":"string"},"type":"array","title":"Source Urls"},"generated_at":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Generated At"}},"additionalProperties":true,"type":"object","title":"CompanyFoundationProfile","description":"Validated company foundation profile.\n\nPydantic validators normalize whatever shape the LLM produces. Stored\nin WorkspaceSetting.value_json as the result of model_dump(mode=\"json\")\nand re-validated on read so existing rows with bad shapes are healed.\n\n`extra=\"allow\"` preserves LLM-invented keys (tagline, founders, ...) so\nnew fields can be experimented with without losing them at the boundary."},"ConnectSessionRequest":{"properties":{"workspace_id":{"type":"string","format":"uuid","title":"Workspace Id"},"user_id":{"type":"string","title":"User Id"},"user_email":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"User Email"},"user_display_name":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"User Display Name"},"integration_id":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Integration Id"}},"type":"object","required":["workspace_id","user_id"],"title":"ConnectSessionRequest"},"ConnectSessionResponse":{"properties":{"token":{"type":"string","title":"Token"},"expires_at":{"type":"string","title":"Expires At"}},"type":"object","required":["token","expires_at"],"title":"ConnectSessionResponse"},"ConnectionMetadataResponse":{"properties":{"connection_id":{"type":"string","title":"Connection Id"},"provider_config_key":{"type":"string","title":"Provider Config Key"},"email":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Email"},"display_name":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Display Name"}},"type":"object","required":["connection_id","provider_config_key"],"title":"ConnectionMetadataResponse"},"ConnectionOut":{"properties":{"id":{"type":"string","format":"uuid","title":"Id"},"workspace_id":{"type":"string","format":"uuid","title":"Workspace Id"},"source_type":{"type":"string","title":"Source Type"},"nango_connection_id":{"type":"string","title":"Nango Connection Id"},"external_account_id":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"External Account Id"},"status":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Status"}},"type":"object","required":["id","workspace_id","source_type","nango_connection_id","external_account_id","status"],"title":"ConnectionOut"},"ContactCompany":{"properties":{"name":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Name"},"domain":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Domain"}},"type":"object","required":["name","domain"],"title":"ContactCompany"},"ContactImportResult":{"properties":{"imported":{"type":"integer","title":"Imported"},"skipped":{"type":"integer","title":"Skipped"},"errors":{"items":{"type":"string"},"type":"array","title":"Errors"}},"type":"object","required":["imported","skipped","errors"],"title":"ContactImportResult"},"ContactInput":{"properties":{"first_name":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"First Name"},"last_name":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Last Name"},"email":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Email"},"job_title":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Job Title"},"lead_status":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Lead Status"},"lifecycle_stage":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Lifecycle Stage"},"salutation":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Salutation"},"mobile_phone_number":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Mobile Phone Number"},"website_url":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Website Url"},"owner":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Owner"}},"type":"object","title":"ContactInput"},"ContactUpdate":{"properties":{"name":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Name"},"email":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Email"},"slack_user_id":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Slack User Id"},"slack_team_id":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Slack Team Id"},"phone":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Phone"},"job_title":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Job Title"},"department":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Department"},"seniority_level":{"anyOf":[{"type":"integer"},{"type":"null"}],"title":"Seniority Level"},"is_required":{"anyOf":[{"type":"boolean"},{"type":"null"}],"title":"Is Required"}},"type":"object","title":"ContactUpdate","description":"Partial update for an existing contact. Only fields explicitly set are written.\n\n`is_required` is included as `bool | None` so unset means \"leave alone\";\npass `false`/`true` to flip it."},"ContactsResponse":{"properties":{"contacts":{"items":{"$ref":"#/components/schemas/app__api__projects__ContactOut"},"type":"array","title":"Contacts"},"count":{"type":"integer","title":"Count"}},"type":"object","required":["contacts","count"],"title":"ContactsResponse"},"ContextChunk":{"properties":{"text":{"type":"string","title":"Text"},"doc_title":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Doc Title"},"doc_url":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Doc Url"},"source_type":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Source Type"},"score":{"type":"number","title":"Score","default":0.0}},"type":"object","required":["text"],"title":"ContextChunk"},"ContextRequest":{"properties":{"workspace_id":{"type":"string","format":"uuid","title":"Workspace Id"},"prompt":{"type":"string","title":"Prompt"},"vault_ids":{"anyOf":[{"items":{"type":"string","format":"uuid"},"type":"array"},{"type":"null"}],"title":"Vault Ids"},"top_k":{"type":"integer","title":"Top K","default":20}},"type":"object","required":["workspace_id","prompt"],"title":"ContextRequest"},"ConversationContactOut":{"properties":{"id":{"anyOf":[{"type":"string","format":"uuid"},{"type":"null"}],"title":"Id"},"name":{"type":"string","title":"Name"},"job_title":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Job Title"},"department":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Department"},"seniority_level":{"anyOf":[{"type":"integer"},{"type":"null"}],"title":"Seniority Level"}},"type":"object","required":["id","name","job_title","department","seniority_level"],"title":"ConversationContactOut"},"ConversationDetailOut":{"properties":{"id":{"type":"string","format":"uuid","title":"Id"},"contact_id":{"anyOf":[{"type":"string","format":"uuid"},{"type":"null"}],"title":"Contact Id"},"contact":{"$ref":"#/components/schemas/ConversationContactOut"},"is_anonymous":{"type":"boolean","title":"Is Anonymous","default":false},"anonymity_level":{"type":"string","title":"Anonymity Level","default":"none"},"campaign_anonymity_level":{"type":"string","title":"Campaign Anonymity Level","default":"none"},"privacy_drift":{"items":{"$ref":"#/components/schemas/ConversationPrivacyDriftOut"},"type":"array","title":"Privacy Drift"},"summary":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Summary"},"transcript":{"anyOf":[{"items":{"additionalProperties":true,"type":"object"},"type":"array"},{"type":"null"}],"title":"Transcript"},"original_language_code":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Original Language Code"},"original_language_label":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Original Language Label"},"transcript_language_code":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Transcript Language Code"},"transcript_language_label":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Transcript Language Label"},"transcript_is_translated":{"type":"boolean","title":"Transcript Is Translated","default":false},"available_transcript_languages":{"items":{"type":"string"},"type":"array","title":"Available Transcript Languages"},"duration_minutes":{"anyOf":[{"type":"integer"},{"type":"null"}],"title":"Duration Minutes"},"findings":{"anyOf":[{"items":{"additionalProperties":true,"type":"object"},"type":"array"},{"type":"null"}],"title":"Findings"},"referenced_resources":{"anyOf":[{"items":{"type":"string"},"type":"array"},{"type":"null"}],"title":"Referenced Resources"},"areas_discussed":{"anyOf":[{"items":{"type":"string"},"type":"array"},{"type":"null"}],"title":"Areas Discussed"},"extracted_pain_points":{"anyOf":[{"items":{"additionalProperties":true,"type":"object"},"type":"array"},{"type":"null"}],"title":"Extracted Pain Points"},"tools_mentioned":{"anyOf":[{"items":{"type":"string"},"type":"array"},{"type":"null"}],"title":"Tools Mentioned"},"processes_touched":{"anyOf":[{"items":{"type":"string"},"type":"array"},{"type":"null"}],"title":"Processes Touched"},"started_at":{"anyOf":[{"type":"string","format":"date-time"},{"type":"null"}],"title":"Started At"},"ended_at":{"anyOf":[{"type":"string","format":"date-time"},{"type":"null"}],"title":"Ended At"},"recording_available":{"type":"boolean","title":"Recording Available","default":false},"recording_mime_type":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Recording Mime Type"},"recording_size_bytes":{"anyOf":[{"type":"integer"},{"type":"null"}],"title":"Recording Size Bytes"},"recording_duration_seconds":{"anyOf":[{"type":"integer"},{"type":"null"}],"title":"Recording Duration Seconds"},"user_recording_available":{"type":"boolean","title":"User Recording Available","default":false},"user_recording_mime_type":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"User Recording Mime Type"},"user_recording_size_bytes":{"anyOf":[{"type":"integer"},{"type":"null"}],"title":"User Recording Size Bytes"},"user_recording_duration_seconds":{"anyOf":[{"type":"integer"},{"type":"null"}],"title":"User Recording Duration Seconds"},"agent_recording_available":{"type":"boolean","title":"Agent Recording Available","default":false},"agent_recording_mime_type":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Agent Recording Mime Type"},"agent_recording_size_bytes":{"anyOf":[{"type":"integer"},{"type":"null"}],"title":"Agent Recording Size Bytes"},"agent_recording_duration_seconds":{"anyOf":[{"type":"integer"},{"type":"null"}],"title":"Agent Recording Duration Seconds"},"session_feedback":{"anyOf":[{"$ref":"#/components/schemas/app__api__campaign_insights__SessionFeedbackOut"},{"type":"null"}]},"screen_analysis_status":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Screen Analysis Status"},"screen_analysis_summary":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Screen Analysis Summary"},"screen_analysis_json":{"anyOf":[{"additionalProperties":true,"type":"object"},{"type":"null"}],"title":"Screen Analysis Json"},"screen_shares":{"items":{"$ref":"#/components/schemas/ConversationScreenShareOut"},"type":"array","title":"Screen Shares"}},"type":"object","required":["id","contact_id","contact","summary","transcript","duration_minutes","extracted_pain_points","tools_mentioned","processes_touched","started_at","ended_at"],"title":"ConversationDetailOut"},"ConversationMessage":{"properties":{"role":{"type":"string","title":"Role"},"content":{"type":"string","title":"Content"}},"type":"object","required":["role","content"],"title":"ConversationMessage"},"ConversationPrivacyDriftOut":{"properties":{"dimension":{"type":"string","title":"Dimension"},"direction":{"type":"string","title":"Direction"}},"type":"object","required":["dimension","direction"],"title":"ConversationPrivacyDriftOut","description":"One privacy dimension where this response and the campaign disagree."},"ConversationRecordingAccessOut":{"properties":{"url":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Url"},"track":{"type":"string","title":"Track"},"mime_type":{"type":"string","title":"Mime Type"},"size_bytes":{"anyOf":[{"type":"integer"},{"type":"null"}],"title":"Size Bytes"},"duration_seconds":{"anyOf":[{"type":"integer"},{"type":"null"}],"title":"Duration Seconds"},"expires_in_seconds":{"type":"integer","title":"Expires In Seconds","default":3600}},"type":"object","required":["url","track","mime_type"],"title":"ConversationRecordingAccessOut"},"ConversationRowOut":{"properties":{"id":{"type":"string","format":"uuid","title":"Id"},"contact_id":{"anyOf":[{"type":"string","format":"uuid"},{"type":"null"}],"title":"Contact Id"},"name":{"type":"string","title":"Name"},"job_title":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Job Title"},"department":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Department"},"seniority_level":{"anyOf":[{"type":"integer"},{"type":"null"}],"title":"Seniority Level"},"status":{"type":"string","title":"Status"},"duration_minutes":{"anyOf":[{"type":"integer"},{"type":"null"}],"title":"Duration Minutes"},"pain_point_count":{"type":"integer","title":"Pain Point Count"},"completed_at":{"anyOf":[{"type":"string","format":"date-time"},{"type":"null"}],"title":"Completed At"},"summary":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Summary"},"session_id":{"anyOf":[{"type":"string","format":"uuid"},{"type":"null"}],"title":"Session Id"},"session_token":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Session Token"},"reminder_count":{"type":"integer","title":"Reminder Count","default":0},"reinvited_from_contact_id":{"anyOf":[{"type":"string","format":"uuid"},{"type":"null"}],"title":"Reinvited From Contact Id"},"invitation_status":{"type":"string","title":"Invitation Status","default":"none"},"session_rating":{"anyOf":[{"type":"number"},{"type":"null"}],"title":"Session Rating"},"is_anonymous_response":{"type":"boolean","title":"Is Anonymous Response","default":false},"audience_filter_attributes":{"additionalProperties":{"items":{"type":"string"},"type":"array"},"type":"object","title":"Audience Filter Attributes"},"language_code":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Language Code"},"language_label":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Language Label"}},"type":"object","required":["id","contact_id","name","job_title","department","seniority_level","status","duration_minutes","pain_point_count","completed_at","summary"],"title":"ConversationRowOut"},"ConversationScreenObservationOut":{"properties":{"id":{"type":"string","format":"uuid","title":"Id"},"screen_share_id":{"type":"string","format":"uuid","title":"Screen Share Id"},"offset_seconds":{"anyOf":[{"type":"integer"},{"type":"null"}],"title":"Offset Seconds"},"observed_at":{"anyOf":[{"type":"string","format":"date-time"},{"type":"null"}],"title":"Observed At"},"summary":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Summary"},"visible_tools":{"anyOf":[{"items":{},"type":"array"},{"type":"null"}],"title":"Visible Tools"},"process_step":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Process Step"},"visible_text":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Visible Text"},"suggested_probe":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Suggested Probe"},"confidence":{"anyOf":[{"type":"number"},{"type":"null"}],"title":"Confidence"},"analysis_status":{"type":"string","title":"Analysis Status"},"image_available":{"type":"boolean","title":"Image Available","default":false}},"type":"object","required":["id","screen_share_id","offset_seconds","observed_at","summary","visible_tools","process_step","visible_text","suggested_probe","confidence","analysis_status"],"title":"ConversationScreenObservationOut"},"ConversationScreenShareOut":{"properties":{"id":{"type":"string","format":"uuid","title":"Id"},"request_id":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Request Id"},"prompt":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Prompt"},"reason":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Reason"},"status":{"type":"string","title":"Status"},"started_at":{"anyOf":[{"type":"string","format":"date-time"},{"type":"null"}],"title":"Started At"},"stopped_at":{"anyOf":[{"type":"string","format":"date-time"},{"type":"null"}],"title":"Stopped At"},"completed_at":{"anyOf":[{"type":"string","format":"date-time"},{"type":"null"}],"title":"Completed At"},"duration_seconds":{"anyOf":[{"type":"integer"},{"type":"null"}],"title":"Duration Seconds"},"expected_chunk_count":{"anyOf":[{"type":"integer"},{"type":"null"}],"title":"Expected Chunk Count"},"uploaded_bytes":{"type":"integer","title":"Uploaded Bytes","default":0},"upload_limit_bytes":{"anyOf":[{"type":"integer"},{"type":"null"}],"title":"Upload Limit Bytes"},"recording_available":{"type":"boolean","title":"Recording Available","default":false},"recording_mime_type":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Recording Mime Type"},"recording_size_bytes":{"anyOf":[{"type":"integer"},{"type":"null"}],"title":"Recording Size Bytes"},"recording_error":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Recording Error"},"observations":{"items":{"$ref":"#/components/schemas/ConversationScreenObservationOut"},"type":"array","title":"Observations"}},"type":"object","required":["id","request_id","prompt","reason","status","started_at","stopped_at","completed_at","duration_seconds"],"title":"ConversationScreenShareOut"},"ConversationsListOut":{"properties":{"total":{"type":"integer","title":"Total"},"departments":{"items":{"type":"string"},"type":"array","title":"Departments"},"job_titles":{"items":{"type":"string"},"type":"array","title":"Job Titles"},"facets":{"items":{"$ref":"#/components/schemas/AudienceFacetOut"},"type":"array","title":"Facets"},"items":{"items":{"$ref":"#/components/schemas/ConversationRowOut"},"type":"array","title":"Items"},"avg_duration_minutes":{"anyOf":[{"type":"number"},{"type":"null"}],"title":"Avg Duration Minutes"},"is_anonymous":{"type":"boolean","title":"Is Anonymous","default":false},"anonymity_level":{"type":"string","title":"Anonymity Level","default":"none"},"hide_conversations":{"type":"boolean","title":"Hide Conversations","default":false},"show_language_flags":{"type":"boolean","title":"Show Language Flags","default":false}},"type":"object","required":["total","departments","job_titles","items"],"title":"ConversationsListOut"},"CorpusChoiceSelectionOut":{"properties":{"turn_index":{"type":"integer","title":"Turn Index"},"payload":{"title":"Payload"}},"type":"object","required":["turn_index","payload"],"title":"CorpusChoiceSelectionOut"},"CorpusGuideQuestionOut":{"properties":{"key":{"type":"string","title":"Key"},"question_id":{"type":"string","title":"Question Id"},"topic_id":{"type":"string","title":"Topic Id"},"topic":{"type":"string","title":"Topic"},"question":{"type":"string","title":"Question"},"question_type":{"type":"string","title":"Question Type"},"options":{"items":{},"type":"array","title":"Options"},"component_config":{"anyOf":[{"additionalProperties":true,"type":"object"},{"type":"null"}],"title":"Component Config"}},"type":"object","required":["key","question_id","topic_id","topic","question","question_type","options","component_config"],"title":"CorpusGuideQuestionOut"},"CorpusManifestOut":{"properties":{"schema_version":{"type":"string","const":"corpus-manifest-v1","title":"Schema Version"},"campaign_id":{"type":"string","title":"Campaign Id"},"scope":{"type":"string","const":"completed_or_contentful_conversations","title":"Scope"},"generated_at":{"type":"string","title":"Generated At"},"total_records":{"type":"integer","title":"Total Records"},"records_with_transcript":{"type":"integer","title":"Records With Transcript"},"records_without_transcript":{"type":"integer","title":"Records Without Transcript"},"complete_records":{"type":"integer","title":"Complete Records"},"incomplete_records":{"type":"integer","title":"Incomplete Records"},"counts_by_status":{"additionalProperties":{"type":"integer"},"type":"object","title":"Counts By Status"},"counts_by_release_status":{"additionalProperties":{"type":"integer"},"type":"object","title":"Counts By Release Status"},"counts_by_transcript_source":{"additionalProperties":{"type":"integer"},"type":"object","title":"Counts By Transcript Source"},"records_with_question_mapping_gaps":{"type":"integer","title":"Records With Question Mapping Gaps"},"records_with_question_mapping_conflicts":{"type":"integer","title":"Records With Question Mapping Conflicts"},"excluded_by_reason":{"additionalProperties":{"type":"integer"},"type":"object","title":"Excluded By Reason"},"records":{"items":{"$ref":"#/components/schemas/CorpusRecordReferenceOut"},"type":"array","title":"Records"},"manifest_hash":{"type":"string","pattern":"^[0-9a-fA-F]{64}$","title":"Manifest Hash"},"truncated":{"type":"boolean","const":false,"title":"Truncated"},"max_record_count":{"type":"integer","title":"Max Record Count"},"max_turns_per_record":{"type":"integer","title":"Max Turns Per Record"},"max_record_bytes":{"type":"integer","title":"Max Record Bytes"},"max_export_bytes":{"type":"integer","title":"Max Export Bytes"},"guide":{"items":{"$ref":"#/components/schemas/CorpusGuideQuestionOut"},"type":"array","title":"Guide"},"guide_hash":{"type":"string","pattern":"^[0-9a-fA-F]{64}$","title":"Guide Hash"},"ndjson_hash":{"type":"string","pattern":"^[0-9a-fA-F]{64}$","title":"Ndjson Hash"}},"type":"object","required":["schema_version","campaign_id","scope","generated_at","total_records","records_with_transcript","records_without_transcript","complete_records","incomplete_records","counts_by_status","counts_by_release_status","counts_by_transcript_source","records_with_question_mapping_gaps","records_with_question_mapping_conflicts","excluded_by_reason","records","manifest_hash","truncated","max_record_count","max_turns_per_record","max_record_bytes","max_export_bytes","guide","guide_hash","ndjson_hash"],"title":"CorpusManifestOut"},"CorpusMetadataSourcesOut":{"properties":{"job_title":{"anyOf":[{"type":"string","enum":["stored_interview_contact","linked_person"]},{"type":"null"}],"title":"Job Title"},"department":{"anyOf":[{"type":"string","enum":["stored_interview_contact","linked_person"]},{"type":"null"}],"title":"Department"}},"type":"object","required":["job_title","department"],"title":"CorpusMetadataSourcesOut"},"CorpusQuestionOut":{"properties":{"question_id":{"type":"string","title":"Question Id"},"topic_id":{"type":"string","title":"Topic Id"},"topic":{"type":"string","title":"Topic"},"question":{"type":"string","title":"Question"},"question_type":{"type":"string","title":"Question Type"},"options":{"items":{},"type":"array","title":"Options"},"component_config":{"anyOf":[{"additionalProperties":true,"type":"object"},{"type":"null"}],"title":"Component Config"},"turn_indexes":{"items":{"type":"integer"},"type":"array","title":"Turn Indexes"},"response_turn_indexes":{"items":{"type":"integer"},"type":"array","title":"Response Turn Indexes"},"mapping_source_counts":{"additionalProperties":{"type":"integer"},"type":"object","title":"Mapping Source Counts"},"mapping_conflict_turn_indexes":{"items":{"type":"integer"},"type":"array","title":"Mapping Conflict Turn Indexes"},"responses":{"items":{"$ref":"#/components/schemas/CorpusResponseTurnOut"},"type":"array","title":"Responses"},"choice_selections":{"items":{"$ref":"#/components/schemas/CorpusChoiceSelectionOut"},"type":"array","title":"Choice Selections"},"component_payload":{"anyOf":[{"additionalProperties":true,"type":"object"},{"type":"null"}],"title":"Component Payload"},"component_question_type":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Component Question Type"},"structured_answer_present":{"type":"boolean","title":"Structured Answer Present"}},"type":"object","required":["question_id","topic_id","topic","question","question_type","options","component_config","turn_indexes","response_turn_indexes","mapping_source_counts","mapping_conflict_turn_indexes","responses","choice_selections","component_payload","component_question_type","structured_answer_present"],"title":"CorpusQuestionOut"},"CorpusRecordOut":{"properties":{"schema_version":{"type":"string","const":"corpus-record-v1","title":"Schema Version"},"campaign_id":{"type":"string","title":"Campaign Id"},"response_id":{"type":"string","title":"Response Id"},"status":{"type":"string","title":"Status"},"is_complete":{"type":"boolean","title":"Is Complete"},"has_transcript":{"type":"boolean","title":"Has Transcript"},"transcript_revision":{"type":"integer","title":"Transcript Revision"},"transcript_turn_count":{"type":"integer","title":"Transcript Turn Count"},"transcript_source":{"type":"string","enum":["canonical","legacy_json","none"],"title":"Transcript Source"},"guide_hash":{"type":"string","pattern":"^[0-9a-fA-F]{64}$","title":"Guide Hash"},"question_mapping_status":{"type":"string","enum":["complete","gaps_present"],"title":"Question Mapping Status"},"unmapped_response_turn_indexes":{"items":{"type":"integer"},"type":"array","title":"Unmapped Response Turn Indexes"},"question_mapping_conflict_turn_indexes":{"items":{"type":"integer"},"type":"array","title":"Question Mapping Conflict Turn Indexes"},"release_status":{"type":"string","enum":["raw_citable","anonymous_citable","aggregate_only"],"title":"Release Status"},"privacy_level":{"type":"string","title":"Privacy Level"},"is_anonymous":{"type":"boolean","title":"Is Anonymous"},"job_title":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Job Title"},"department":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Department"},"audience_filter_attributes":{"additionalProperties":{"items":{"type":"string"},"type":"array"},"propertyNames":{"enum":["workgroup1","workgroup2","workgroup3"]},"type":"object","title":"Audience Filter Attributes"},"metadata_sources":{"$ref":"#/components/schemas/CorpusMetadataSourcesOut"},"contact_metadata_source":{"anyOf":[{"type":"string","enum":["stored_interview_contact","linked_person","mixed"]},{"type":"null"}],"title":"Contact Metadata Source"},"metadata_withheld_reason":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Metadata Withheld Reason"},"participant_metadata_output_allowed":{"type":"boolean","title":"Participant Metadata Output Allowed"},"verbatim_output_allowed":{"type":"boolean","title":"Verbatim Output Allowed"},"output_policy":{"type":"string","title":"Output Policy"},"started_at":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Started At"},"ended_at":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Ended At"},"duration_minutes":{"anyOf":[{"type":"integer"},{"type":"null"}],"title":"Duration Minutes"},"questions":{"additionalProperties":{"$ref":"#/components/schemas/CorpusQuestionOut"},"type":"object","title":"Questions"},"transcript":{"items":{"$ref":"#/components/schemas/CorpusTranscriptTurnOut"},"type":"array","title":"Transcript"},"record_hash":{"type":"string","pattern":"^[0-9a-fA-F]{64}$","title":"Record Hash"}},"type":"object","required":["schema_version","campaign_id","response_id","status","is_complete","has_transcript","transcript_revision","transcript_turn_count","transcript_source","guide_hash","question_mapping_status","unmapped_response_turn_indexes","question_mapping_conflict_turn_indexes","release_status","privacy_level","is_anonymous","job_title","department","audience_filter_attributes","metadata_sources","contact_metadata_source","metadata_withheld_reason","participant_metadata_output_allowed","verbatim_output_allowed","output_policy","started_at","ended_at","duration_minutes","questions","transcript","record_hash"],"title":"CorpusRecordOut"},"CorpusRecordReferenceOut":{"properties":{"response_id":{"type":"string","title":"Response Id"},"status":{"type":"string","title":"Status"},"is_complete":{"type":"boolean","title":"Is Complete"},"has_transcript":{"type":"boolean","title":"Has Transcript"},"release_status":{"type":"string","enum":["raw_citable","anonymous_citable","aggregate_only"],"title":"Release Status"},"transcript_revision":{"type":"integer","title":"Transcript Revision"},"transcript_turn_count":{"type":"integer","title":"Transcript Turn Count"},"transcript_source":{"type":"string","enum":["canonical","legacy_json","none"],"title":"Transcript Source"},"guide_hash":{"type":"string","pattern":"^[0-9a-fA-F]{64}$","title":"Guide Hash"},"question_mapping_status":{"type":"string","enum":["complete","gaps_present"],"title":"Question Mapping Status"},"question_mapping_conflict_count":{"type":"integer","title":"Question Mapping Conflict Count"},"answered_question_count":{"type":"integer","title":"Answered Question Count"},"record_hash":{"type":"string","pattern":"^[0-9a-fA-F]{64}$","title":"Record Hash"}},"type":"object","required":["response_id","status","is_complete","has_transcript","release_status","transcript_revision","transcript_turn_count","transcript_source","guide_hash","question_mapping_status","question_mapping_conflict_count","answered_question_count","record_hash"],"title":"CorpusRecordReferenceOut"},"CorpusResponseTurnOut":{"properties":{"turn_index":{"type":"integer","title":"Turn Index"},"content":{"type":"string","title":"Content"},"choice_selection":{"anyOf":[{},{"type":"null"}],"title":"Choice Selection"}},"type":"object","required":["turn_index","content"],"title":"CorpusResponseTurnOut"},"CorpusTranscriptTurnOut":{"properties":{"turn_index":{"type":"integer","title":"Turn Index"},"role":{"type":"string","title":"Role"},"content":{"type":"string","title":"Content"},"topic_id":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Topic Id"},"source_question_id":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Source Question Id"},"question_id":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Question Id"},"question_key":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Question Key"},"question_mapping_source":{"type":"string","enum":["choice_selection","interviewer_prompt","context","unmapped"],"title":"Question Mapping Source"},"created_at":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Created At"},"choice_selection":{"anyOf":[{},{"type":"null"}],"title":"Choice Selection"}},"type":"object","required":["turn_index","role","content","topic_id","source_question_id","question_id","question_key","question_mapping_source","created_at"],"title":"CorpusTranscriptTurnOut"},"CreateSessionRequest":{"properties":{"workspace_id":{"type":"string","format":"uuid","title":"Workspace Id"}},"type":"object","required":["workspace_id"],"title":"CreateSessionRequest"},"CreateSessionResponse":{"properties":{"interview_id":{"type":"string","format":"uuid","title":"Interview Id"},"session_id":{"type":"string","title":"Session Id"},"reused":{"type":"boolean","title":"Reused","default":false}},"type":"object","required":["interview_id","session_id"],"title":"CreateSessionResponse"},"CrosstabRequest":{"properties":{"workspace_id":{"type":"string","format":"uuid","title":"Workspace Id"},"interview_ids":{"anyOf":[{"items":{"type":"string","format":"uuid"},"type":"array"},{"type":"null"}],"title":"Interview Ids"},"topic_ids":{"anyOf":[{"items":{"type":"string","format":"uuid"},"type":"array"},{"type":"null"}],"title":"Topic Ids"},"question_ids":{"anyOf":[{"items":{"type":"string","format":"uuid"},"type":"array"},{"type":"null"}],"title":"Question Ids"},"row_dimension":{"type":"string","title":"Row Dimension"},"column_dimension":{"type":"string","title":"Column Dimension"},"filters":{"items":{"$ref":"#/components/schemas/KnowledgeFilter"},"type":"array","title":"Filters"},"limit":{"type":"integer","maximum":1000.0,"minimum":1.0,"title":"Limit","default":250}},"type":"object","required":["workspace_id","row_dimension","column_dimension"],"title":"CrosstabRequest"},"CurrentApiKeyOut":{"properties":{"workspace_id":{"type":"string","format":"uuid","title":"Workspace Id"},"name":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Name"},"scopes":{"items":{"type":"string"},"type":"array","title":"Scopes"},"region":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Region"}},"type":"object","required":["workspace_id","name","scopes","region"],"title":"CurrentApiKeyOut"},"CustomerPortalOut":{"properties":{"url":{"type":"string","title":"Url"}},"type":"object","required":["url"],"title":"CustomerPortalOut"},"CustomerPortalRequest":{"properties":{"workspace_id":{"type":"string","format":"uuid","title":"Workspace Id"}},"type":"object","required":["workspace_id"],"title":"CustomerPortalRequest"},"DashboardOut":{"properties":{"interview_id":{"type":"string","format":"uuid","title":"Interview Id"},"campaign_name":{"type":"string","title":"Campaign Name"},"is_anonymous":{"type":"boolean","title":"Is Anonymous","default":false},"anonymity_level":{"type":"string","title":"Anonymity Level","default":"none"},"hide_conversations":{"type":"boolean","title":"Hide Conversations","default":false},"completed_interviews":{"type":"integer","title":"Completed Interviews"},"total_contacts":{"type":"integer","title":"Total Contacts"},"departments":{"type":"integer","title":"Departments"},"processes":{"type":"integer","title":"Processes"},"solutions":{"type":"integer","title":"Solutions"},"top_frictions":{"items":{"$ref":"#/components/schemas/TopFrictionOut"},"type":"array","title":"Top Frictions"},"roadmap_preview":{"additionalProperties":{"type":"integer"},"type":"object","title":"Roadmap Preview"}},"type":"object","required":["interview_id","campaign_name","completed_interviews","total_contacts","departments","processes","solutions","top_frictions","roadmap_preview"],"title":"DashboardOut"},"DataInputResponse":{"properties":{"input_id":{"type":"string","title":"Input Id","description":"Unique identifier for this input"},"input_type":{"type":"string","title":"Input Type","description":"Type of input (file, url, paste, webhook)"},"source_name":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Source Name","description":"Name of the data source"},"detected_format":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Detected Format","description":"Detected format (if available)"},"size_bytes":{"type":"integer","title":"Size Bytes","description":"Size of the input in bytes"},"preview":{"anyOf":[{"additionalProperties":true,"type":"object"},{"type":"null"}],"title":"Preview","description":"Preview of the data"},"status":{"type":"string","title":"Status","description":"Processing status","default":"pending"},"created_at":{"type":"string","format":"date-time","title":"Created At"}},"type":"object","required":["input_id","input_type","size_bytes"],"title":"DataInputResponse","description":"Response after data input is accepted."},"DataInputStatus":{"properties":{"input_id":{"type":"string","title":"Input Id"},"status":{"type":"string","title":"Status"},"detected_format":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Detected Format"},"detected_encoding":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Detected Encoding"},"inferred_schema":{"anyOf":[{"additionalProperties":true,"type":"object"},{"type":"null"}],"title":"Inferred Schema"},"error":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Error"}},"type":"object","required":["input_id","status"],"title":"DataInputStatus","description":"Status of a data input."},"DealAssociation":{"properties":{"type":{"type":"string","title":"Type"},"id":{"type":"string","title":"Id"}},"type":"object","required":["type","id"],"title":"DealAssociation"},"DealRef":{"properties":{"key":{"type":"string","title":"Key"},"name":{"type":"string","title":"Name"},"stage":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Stage"},"amount":{"anyOf":[{"type":"number"},{"type":"null"}],"title":"Amount"},"account_name":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Account Name"}},"type":"object","required":["key","name"],"title":"DealRef"},"DemoVoiceStartRequest":{"properties":{"mode":{"anyOf":[{"type":"string","pattern":"^(voice|text)$"},{"type":"null"}],"title":"Mode"},"contact_name":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Contact Name"},"contact_email":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Contact Email"}},"type":"object","title":"DemoVoiceStartRequest","description":"Optional overrides when resolving a public demo voice-agent session."},"DemoVoiceStartResponse":{"properties":{"conversation_id":{"type":"string","format":"uuid","title":"Conversation Id"},"meeting_url":{"type":"string","title":"Meeting Url"},"company_name":{"type":"string","title":"Company Name"},"contact_name":{"type":"string","title":"Contact Name"}},"type":"object","required":["conversation_id","meeting_url","company_name","contact_name"],"title":"DemoVoiceStartResponse"},"DemoVoiceSummary":{"properties":{"conversation_id":{"type":"string","format":"uuid","title":"Conversation Id"},"company_name":{"type":"string","title":"Company Name"},"pain_points":{"items":{"type":"string"},"type":"array","title":"Pain Points"},"use_cases":{"items":{"type":"string"},"type":"array","title":"Use Cases"},"cta":{"type":"string","title":"Cta"},"summary_source":{"type":"string","title":"Summary Source","default":"conversation"}},"type":"object","required":["conversation_id","company_name","pain_points","use_cases","cta"],"title":"DemoVoiceSummary"},"DemoVoiceSummaryRequest":{"properties":{"transcript":{"anyOf":[{"items":{"additionalProperties":true,"type":"object"},"type":"array"},{"type":"null"}],"title":"Transcript"},"posthog_recording_url":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Posthog Recording Url"}},"type":"object","title":"DemoVoiceSummaryRequest"},"DirectorySyncSettingsRequest":{"properties":{"frequency":{"type":"string","title":"Frequency","description":"off | daily | weekly"}},"type":"object","required":["frequency"],"title":"DirectorySyncSettingsRequest"},"DivergenceOut":{"properties":{"topic":{"type":"string","title":"Topic"},"position_a":{"type":"string","title":"Position A"},"sources_a":{"items":{"type":"string"},"type":"array","title":"Sources A"},"departments_a":{"items":{"type":"string"},"type":"array","title":"Departments A"},"position_b":{"type":"string","title":"Position B"},"sources_b":{"items":{"type":"string"},"type":"array","title":"Sources B"},"departments_b":{"items":{"type":"string"},"type":"array","title":"Departments B"},"magnitude":{"type":"string","title":"Magnitude"}},"type":"object","required":["topic","position_a","sources_a","departments_a","position_b","sources_b","departments_b","magnitude"],"title":"DivergenceOut"},"DocumentResponse":{"properties":{"id":{"type":"string","title":"Id"},"workspace_id":{"type":"string","title":"Workspace Id"},"source_type":{"type":"string","title":"Source Type"},"external_id":{"type":"string","title":"External Id"},"url":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Url"},"title":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Title"},"author_name":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Author Name"},"author_email":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Author Email"},"content_text":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Content Text"},"created_at":{"type":"string","title":"Created At"},"updated_at":{"type":"string","title":"Updated At"}},"type":"object","required":["id","workspace_id","source_type","external_id","created_at","updated_at"],"title":"DocumentResponse","description":"Full document details for source viewing."},"DocumentWithChunksResponse":{"properties":{"document":{"$ref":"#/components/schemas/DocumentResponse"},"chunks":{"items":{"$ref":"#/components/schemas/ChunkResponse"},"type":"array","title":"Chunks","default":[]}},"type":"object","required":["document"],"title":"DocumentWithChunksResponse","description":"Document with its chunks."},"DraftUpdateRequest":{"properties":{"name":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Name"},"description":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Description"},"goal":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Goal"},"project_context":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Project Context"},"interview_context_for_employee":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Interview Context For Employee"},"invitation_email_message":{"anyOf":[{"type":"string","maxLength":4000},{"type":"null"}],"title":"Invitation Email Message"},"teams_invitation_message":{"anyOf":[{"type":"string","maxLength":4000},{"type":"null"}],"title":"Teams Invitation Message"},"agent_profile_id":{"anyOf":[{"type":"string","format":"uuid"},{"type":"null"}],"title":"Agent Profile Id"},"channel":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Channel"},"join_link_delivery":{"anyOf":[{"type":"boolean"},{"type":"null"}],"title":"Join Link Delivery"},"interview_duration_minutes":{"anyOf":[{"type":"integer"},{"type":"null"}],"title":"Interview Duration Minutes"},"interview_type":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Interview Type"},"default_language":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Default Language"},"voice_id":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Voice Id"},"voice_speed":{"anyOf":[{"type":"number"},{"type":"null"}],"title":"Voice Speed"},"voice_provider":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Voice Provider"},"voice_language":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Voice Language"},"participant_voice_selection_enabled":{"anyOf":[{"type":"boolean"},{"type":"null"}],"title":"Participant Voice Selection Enabled"},"participant_mode_selection_enabled":{"anyOf":[{"type":"boolean"},{"type":"null"}],"title":"Participant Mode Selection Enabled"},"participant_language_selection_enabled":{"anyOf":[{"type":"boolean"},{"type":"null"}],"title":"Participant Language Selection Enabled"},"participant_selectable_languages":{"anyOf":[{"items":{"type":"string"},"type":"array"},{"type":"null"}],"title":"Participant Selectable Languages"},"participant_anonymity_selection_enabled":{"anyOf":[{"type":"boolean"},{"type":"null"}],"title":"Participant Anonymity Selection Enabled"},"participant_review_enabled":{"anyOf":[{"type":"boolean"},{"type":"null"}],"title":"Participant Review Enabled"},"result_summary_enabled":{"anyOf":[{"type":"boolean"},{"type":"null"}],"title":"Result Summary Enabled"},"welcome_screen":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Welcome Screen"},"closing_message":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Closing Message"},"recurring_interval":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Recurring Interval"},"timeframe_start":{"anyOf":[{"type":"string","format":"date-time"},{"type":"null"}],"title":"Timeframe Start"},"timezone":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Timezone"},"timeframe_end":{"anyOf":[{"type":"string","format":"date-time"},{"type":"null"}],"title":"Timeframe End"},"quick_mode_hours":{"anyOf":[{"type":"integer"},{"type":"null"}],"title":"Quick Mode Hours"},"scheduling_mode":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Scheduling Mode"},"start_immediately":{"anyOf":[{"type":"boolean"},{"type":"null"}],"title":"Start Immediately"},"followup_enabled":{"anyOf":[{"type":"boolean"},{"type":"null"}],"title":"Followup Enabled"},"followup_strategy":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Followup Strategy"},"followup_intervals_hours":{"anyOf":[{"items":{"type":"integer"},"type":"array"},{"type":"null"}],"title":"Followup Intervals Hours"},"followup_deadline_days":{"anyOf":[{"items":{"type":"integer"},"type":"array"},{"type":"null"}],"title":"Followup Deadline Days"},"followup_message":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Followup Message"},"is_anonymous":{"anyOf":[{"type":"boolean"},{"type":"null"}],"title":"Is Anonymous"},"anonymity_level":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Anonymity Level"},"draft_guide":{"anyOf":[{"items":{"additionalProperties":true,"type":"object"},"type":"array"},{"type":"null"}],"title":"Draft Guide"}},"type":"object","title":"DraftUpdateRequest"},"DrilldownQuestionCategoryRequest":{"properties":{"question_id":{"type":"string","format":"uuid","title":"Question Id"},"category_key":{"type":"string","title":"Category Key"},"filters":{"items":{"$ref":"#/components/schemas/QuestionResultFilter"},"type":"array","title":"Filters"},"limit":{"type":"integer","maximum":500.0,"minimum":1.0,"title":"Limit","default":100}},"type":"object","required":["question_id","category_key"],"title":"DrilldownQuestionCategoryRequest"},"DrilldownRequest":{"properties":{"workspace_id":{"type":"string","format":"uuid","title":"Workspace Id"},"interview_ids":{"anyOf":[{"items":{"type":"string","format":"uuid"},"type":"array"},{"type":"null"}],"title":"Interview Ids"},"topic_ids":{"anyOf":[{"items":{"type":"string","format":"uuid"},"type":"array"},{"type":"null"}],"title":"Topic Ids"},"question_ids":{"anyOf":[{"items":{"type":"string","format":"uuid"},"type":"array"},{"type":"null"}],"title":"Question Ids"},"filters":{"items":{"$ref":"#/components/schemas/KnowledgeFilter"},"type":"array","title":"Filters"},"limit":{"type":"integer","maximum":500.0,"minimum":1.0,"title":"Limit","default":100}},"type":"object","required":["workspace_id","filters"],"title":"DrilldownRequest"},"EmailDomainCreateRequest":{"properties":{"domain":{"type":"string","maxLength":255,"minLength":3,"title":"Domain"}},"type":"object","required":["domain"],"title":"EmailDomainCreateRequest","description":"Domain to register, given directly or as a sender email address."},"EmailDomainOut":{"properties":{"id":{"type":"string","format":"uuid","title":"Id"},"domain":{"type":"string","title":"Domain"},"status":{"type":"string","title":"Status"},"records":{"items":{"$ref":"#/components/schemas/EmailDomainRecordOut"},"type":"array","title":"Records"},"created_at":{"type":"string","format":"date-time","title":"Created At"}},"type":"object","required":["id","domain","status","created_at"],"title":"EmailDomainOut"},"EmailDomainRecordOut":{"properties":{"record":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Record"},"type":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Type"},"name":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Name"},"value":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Value"},"ttl":{"anyOf":[{"type":"string"},{"type":"integer"},{"type":"null"}],"title":"Ttl"},"priority":{"anyOf":[{"type":"string"},{"type":"integer"},{"type":"null"}],"title":"Priority"},"status":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Status"}},"type":"object","title":"EmailDomainRecordOut"},"EmailLogoUploadResponse":{"properties":{"url":{"type":"string","title":"Url"}},"type":"object","required":["url"],"title":"EmailLogoUploadResponse"},"EntityOverrideRequest":{"properties":{"workspace_id":{"type":"string","format":"uuid","title":"Workspace Id"},"interview_id":{"type":"string","format":"uuid","title":"Interview Id"},"entity_key":{"type":"string","maxLength":512,"minLength":1,"title":"Entity Key"},"hidden":{"anyOf":[{"type":"boolean"},{"type":"null"}],"title":"Hidden"},"label":{"anyOf":[{"type":"string","maxLength":512},{"type":"null"}],"title":"Label"}},"type":"object","required":["workspace_id","interview_id","entity_key"],"title":"EntityOverrideRequest","description":"Curation patch for one entity: only the provided facets change."},"EntityRef":{"properties":{"key":{"type":"string","title":"Key"},"name":{"type":"string","title":"Name"},"type":{"type":"string","title":"Type"}},"type":"object","required":["key","name","type"],"title":"EntityRef"},"EventAttendee":{"properties":{"email":{"type":"string","title":"Email"},"displayName":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Displayname"},"responseStatus":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Responsestatus"},"optional":{"anyOf":[{"type":"boolean"},{"type":"null"}],"title":"Optional"}},"type":"object","required":["email"],"title":"EventAttendee"},"EventDateTime":{"properties":{"dateTime":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Datetime"},"date":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Date"},"timeZone":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Timezone"}},"type":"object","title":"EventDateTime"},"EventInput":{"properties":{"summary":{"type":"string","title":"Summary"},"description":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Description"},"location":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Location"},"start":{"$ref":"#/components/schemas/EventDateTime"},"end":{"$ref":"#/components/schemas/EventDateTime"},"attendees":{"anyOf":[{"items":{"$ref":"#/components/schemas/EventAttendee"},"type":"array"},{"type":"null"}],"title":"Attendees"},"calendarId":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Calendarid","default":"primary"}},"type":"object","required":["summary","start","end"],"title":"EventInput"},"EventResponse":{"properties":{"id":{"type":"string","title":"Id"},"summary":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Summary"},"description":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Description"},"location":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Location"},"start":{"anyOf":[{"additionalProperties":true,"type":"object"},{"type":"null"}],"title":"Start"},"end":{"anyOf":[{"additionalProperties":true,"type":"object"},{"type":"null"}],"title":"End"},"htmlLink":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Htmllink"},"status":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Status"},"organizer":{"anyOf":[{"additionalProperties":true,"type":"object"},{"type":"null"}],"title":"Organizer"},"attendees":{"anyOf":[{"items":{"additionalProperties":true,"type":"object"},"type":"array"},{"type":"null"}],"title":"Attendees"},"hangoutLink":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Hangoutlink"}},"type":"object","required":["id"],"title":"EventResponse"},"ExtractAttachmentResponse":{"properties":{"filename":{"type":"string","title":"Filename"},"detected_format":{"type":"string","title":"Detected Format"},"text":{"type":"string","title":"Text"},"characters_read":{"type":"integer","title":"Characters Read"}},"type":"object","required":["filename","detected_format","text","characters_read"],"title":"ExtractAttachmentResponse"},"FailedJob":{"properties":{"id":{"type":"string","format":"uuid","title":"Id"},"queue_name":{"type":"string","title":"Queue Name"},"type":{"type":"string","title":"Type"},"last_error":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Last Error"},"attempts":{"type":"integer","title":"Attempts"},"progress_phase":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Progress Phase"},"progress_message":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Progress Message"},"progress_context":{"anyOf":[{"additionalProperties":true,"type":"object"},{"type":"null"}],"title":"Progress Context"},"progress_updated_at":{"anyOf":[{"type":"string","format":"date-time"},{"type":"null"}],"title":"Progress Updated At"}},"type":"object","required":["id","queue_name","type","last_error","attempts"],"title":"FailedJob"},"FinalizeCampaignRequest":{"properties":{"name":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Name"},"description":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Description"},"goal":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Goal"},"interview_context_for_employee":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Interview Context For Employee"},"invitation_email_message":{"anyOf":[{"type":"string","maxLength":4000},{"type":"null"}],"title":"Invitation Email Message"},"teams_invitation_message":{"anyOf":[{"type":"string","maxLength":4000},{"type":"null"}],"title":"Teams Invitation Message"},"agent_profile_id":{"anyOf":[{"type":"string","format":"uuid"},{"type":"null"}],"title":"Agent Profile Id"},"interview_type":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Interview Type"},"default_language":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Default Language"},"voice_id":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Voice Id"},"voice_speed":{"anyOf":[{"type":"number"},{"type":"null"}],"title":"Voice Speed"},"voice_provider":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Voice Provider"},"voice_language":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Voice Language"},"participant_voice_selection_enabled":{"anyOf":[{"type":"boolean"},{"type":"null"}],"title":"Participant Voice Selection Enabled"},"participant_mode_selection_enabled":{"anyOf":[{"type":"boolean"},{"type":"null"}],"title":"Participant Mode Selection Enabled"},"participant_language_selection_enabled":{"anyOf":[{"type":"boolean"},{"type":"null"}],"title":"Participant Language Selection Enabled"},"participant_selectable_languages":{"anyOf":[{"items":{"type":"string"},"type":"array"},{"type":"null"}],"title":"Participant Selectable Languages"},"participant_anonymity_selection_enabled":{"anyOf":[{"type":"boolean"},{"type":"null"}],"title":"Participant Anonymity Selection Enabled"},"participant_review_enabled":{"anyOf":[{"type":"boolean"},{"type":"null"}],"title":"Participant Review Enabled"},"result_summary_enabled":{"anyOf":[{"type":"boolean"},{"type":"null"}],"title":"Result Summary Enabled"},"channel":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Channel"},"join_link_delivery":{"anyOf":[{"type":"boolean"},{"type":"null"}],"title":"Join Link Delivery"},"welcome_screen":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Welcome Screen"},"closing_message":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Closing Message"},"recurring_interval":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Recurring Interval"},"interview_duration_minutes":{"anyOf":[{"type":"integer"},{"type":"null"}],"title":"Interview Duration Minutes"},"timeframe_start":{"anyOf":[{"type":"string","format":"date-time"},{"type":"null"}],"title":"Timeframe Start"},"timezone":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Timezone"},"timeframe_end":{"anyOf":[{"type":"string","format":"date-time"},{"type":"null"}],"title":"Timeframe End"},"quick_mode_hours":{"anyOf":[{"type":"integer"},{"type":"null"}],"title":"Quick Mode Hours"},"scheduling_mode":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Scheduling Mode"},"start_immediately":{"anyOf":[{"type":"boolean"},{"type":"null"}],"title":"Start Immediately"},"followup_enabled":{"anyOf":[{"type":"boolean"},{"type":"null"}],"title":"Followup Enabled"},"followup_strategy":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Followup Strategy"},"followup_intervals_hours":{"anyOf":[{"items":{"type":"integer"},"type":"array"},{"type":"null"}],"title":"Followup Intervals Hours"},"followup_deadline_days":{"anyOf":[{"items":{"type":"integer"},"type":"array"},{"type":"null"}],"title":"Followup Deadline Days"},"followup_message":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Followup Message"},"is_anonymous":{"anyOf":[{"type":"boolean"},{"type":"null"}],"title":"Is Anonymous"},"anonymity_level":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Anonymity Level"},"topics":{"items":{"$ref":"#/components/schemas/FinalizeTopicIn"},"type":"array","title":"Topics","default":[]},"questions":{"items":{"$ref":"#/components/schemas/FinalizeQuestionIn"},"type":"array","title":"Questions","default":[]},"contacts":{"items":{"$ref":"#/components/schemas/FinalizeContactIn"},"type":"array","title":"Contacts","default":[]},"resend_invitations":{"type":"boolean","title":"Resend Invitations","default":false},"create_version":{"type":"boolean","title":"Create Version","default":false},"allow_incomplete_draft_contacts":{"type":"boolean","title":"Allow Incomplete Draft Contacts","default":false}},"type":"object","title":"FinalizeCampaignRequest","description":"Full campaign save — persists all editor state atomically."},"FinalizeContactIn":{"properties":{"id":{"anyOf":[{"type":"string","format":"uuid"},{"type":"null"}],"title":"Id"},"person_id":{"anyOf":[{"type":"string","format":"uuid"},{"type":"null"}],"title":"Person Id"},"name":{"type":"string","title":"Name"},"email":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Email"},"slack_user_id":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Slack User Id"},"slack_team_id":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Slack Team Id"},"phone":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Phone"},"job_title":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Job Title"},"department":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Department"},"seniority_level":{"anyOf":[{"type":"integer"},{"type":"null"}],"title":"Seniority Level"},"is_required":{"type":"boolean","title":"Is Required","default":false}},"type":"object","required":["name"],"title":"FinalizeContactIn"},"FinalizeQuestionIn":{"properties":{"id":{"anyOf":[{"type":"string","format":"uuid"},{"type":"null"}],"title":"Id"},"text":{"type":"string","title":"Text"},"is_required":{"type":"boolean","title":"Is Required","default":true},"question_type":{"$ref":"#/components/schemas/QuestionType","default":"open_ended"},"options":{"items":{"type":"string"},"type":"array","title":"Options"},"component_config":{"anyOf":[{"additionalProperties":true,"type":"object"},{"type":"null"}],"title":"Component Config"},"follow_up_rule":{"$ref":"#/components/schemas/FollowUpRule","default":"auto"},"follow_up_guideline":{"type":"string","title":"Follow Up Guideline","default":""},"requires_screen_share":{"type":"boolean","title":"Requires Screen Share","default":false},"screen_share_prompt":{"type":"string","title":"Screen Share Prompt","default":""}},"type":"object","required":["text"],"title":"FinalizeQuestionIn"},"FinalizeTopicIn":{"properties":{"id":{"anyOf":[{"type":"string","format":"uuid"},{"type":"null"}],"title":"Id"},"name":{"type":"string","title":"Name"},"goal":{"type":"string","title":"Goal","default":""},"success_threshold":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Success Threshold"},"priority":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Priority"},"sub_topics":{"anyOf":[{"items":{"type":"string"},"type":"array"},{"type":"null"}],"title":"Sub Topics"},"questions":{"items":{"$ref":"#/components/schemas/FinalizeQuestionIn"},"type":"array","title":"Questions","default":[]}},"type":"object","required":["name"],"title":"FinalizeTopicIn"},"FollowUpRequest":{"properties":{"message":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Message"},"channel":{"anyOf":[{"type":"string","enum":["teams","slack","email"]},{"type":"null"}],"title":"Channel"}},"type":"object","title":"FollowUpRequest"},"FollowUpResponse":{"properties":{"sent_count":{"type":"integer","title":"Sent Count"},"message":{"type":"string","title":"Message"},"channel":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Channel"},"fell_back":{"type":"boolean","title":"Fell Back","default":false},"queued":{"type":"boolean","title":"Queued","default":false}},"type":"object","required":["sent_count","message"],"title":"FollowUpResponse"},"FollowUpRule":{"type":"string","enum":["auto","none","on_short_answers","one_followup","up_to_three","no_followup_allowed"],"title":"FollowUpRule","description":"Per-question follow-up budget — controls how aggressively the agent probes."},"GamificationCompletedTaskOut":{"properties":{"task_id":{"type":"string","title":"Task Id"},"completed_at":{"anyOf":[{"type":"string","format":"date-time"},{"type":"null"}],"title":"Completed At"}},"type":"object","required":["task_id"],"title":"GamificationCompletedTaskOut"},"GamificationEventCreate":{"properties":{"event_id":{"anyOf":[{"type":"string","format":"uuid"},{"type":"null"}],"title":"Event Id"},"workspace_id":{"type":"string","format":"uuid","title":"Workspace Id"},"event_type":{"type":"string","maxLength":100,"title":"Event Type"},"metadata":{"anyOf":[{"additionalProperties":true,"type":"object"},{"type":"null"}],"title":"Metadata"},"profile":{"anyOf":[{"$ref":"#/components/schemas/GamificationProfileIn"},{"type":"null"}]}},"type":"object","required":["workspace_id","event_type"],"title":"GamificationEventCreate"},"GamificationEventOut":{"properties":{"event_id":{"type":"string","format":"uuid","title":"Event Id"},"task_id":{"type":"string","title":"Task Id"},"points_awarded":{"type":"integer","title":"Points Awarded"},"repeated":{"type":"boolean","title":"Repeated"},"unlocked_task_id":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Unlocked Task Id"},"summary":{"$ref":"#/components/schemas/GamificationSummaryOut"}},"type":"object","required":["event_id","task_id","points_awarded","repeated","summary"],"title":"GamificationEventOut"},"GamificationLeaderboardRow":{"properties":{"user_id":{"type":"string","title":"User Id"},"display_name":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Display Name"},"email":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Email"},"avatar_url":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Avatar Url"},"total_points":{"type":"integer","title":"Total Points"},"onboarding_points":{"type":"integer","title":"Onboarding Points"},"recurring_points":{"type":"integer","title":"Recurring Points"},"completed_task_count":{"type":"integer","title":"Completed Task Count"},"rank":{"type":"integer","title":"Rank"},"is_current_user":{"type":"boolean","title":"Is Current User","default":false}},"type":"object","required":["user_id","total_points","onboarding_points","recurring_points","completed_task_count","rank"],"title":"GamificationLeaderboardRow"},"GamificationProfileIn":{"properties":{"display_name":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Display Name"},"email":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Email"},"avatar_url":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Avatar Url"}},"type":"object","title":"GamificationProfileIn"},"GamificationSummaryOut":{"properties":{"workspace_id":{"type":"string","format":"uuid","title":"Workspace Id"},"user_id":{"type":"string","title":"User Id"},"target_points":{"type":"integer","title":"Target Points","default":500},"onboarding_points":{"type":"integer","title":"Onboarding Points"},"recurring_points":{"type":"integer","title":"Recurring Points"},"total_points":{"type":"integer","title":"Total Points"},"completed_task_count":{"type":"integer","title":"Completed Task Count"},"completed_tasks":{"items":{"$ref":"#/components/schemas/GamificationCompletedTaskOut"},"type":"array","title":"Completed Tasks"},"leaderboard":{"items":{"$ref":"#/components/schemas/GamificationLeaderboardRow"},"type":"array","title":"Leaderboard"}},"type":"object","required":["workspace_id","user_id","onboarding_points","recurring_points","total_points","completed_task_count","completed_tasks","leaderboard"],"title":"GamificationSummaryOut"},"GraphDelta":{"properties":{"nodes":{"items":{"$ref":"#/components/schemas/GraphNodeCreate"},"type":"array","title":"Nodes","default":[]},"edges":{"items":{"$ref":"#/components/schemas/GraphEdgeCreate"},"type":"array","title":"Edges","default":[]},"ukl_refs":{"items":{"$ref":"#/components/schemas/UklRefCreate"},"type":"array","title":"Ukl Refs","default":[]}},"type":"object","title":"GraphDelta"},"GraphEdgeCreate":{"properties":{"from_key":{"type":"string","title":"From Key"},"to_key":{"type":"string","title":"To Key"},"rel_type":{"type":"string","title":"Rel Type"},"properties":{"additionalProperties":true,"type":"object","title":"Properties","default":{}}},"type":"object","required":["from_key","to_key","rel_type"],"title":"GraphEdgeCreate"},"GraphEdgeOut":{"properties":{"from_key":{"type":"string","title":"From Key"},"to_key":{"type":"string","title":"To Key"},"rel_type":{"type":"string","title":"Rel Type"},"properties":{"additionalProperties":true,"type":"object","title":"Properties"},"source_message_id":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Source Message Id"},"created_at":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Created At"}},"type":"object","required":["from_key","to_key","rel_type","properties","source_message_id","created_at"],"title":"GraphEdgeOut"},"GraphNodeCreate":{"properties":{"key":{"type":"string","title":"Key","default":"auto"},"node_type":{"type":"string","title":"Node Type"},"name":{"type":"string","title":"Name"},"properties":{"additionalProperties":true,"type":"object","title":"Properties","default":{}},"ukl_ref":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Ukl Ref"}},"type":"object","required":["node_type","name"],"title":"GraphNodeCreate"},"GraphNodeOut":{"properties":{"key":{"type":"string","title":"Key"},"node_type":{"type":"string","title":"Node Type"},"name":{"type":"string","title":"Name"},"properties":{"additionalProperties":true,"type":"object","title":"Properties"},"ukl_ref":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Ukl Ref"},"status":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Status"},"source_message_id":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Source Message Id"},"synced_to_ukl":{"type":"boolean","title":"Synced To Ukl"},"created_at":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Created At"},"updated_at":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Updated At"}},"type":"object","required":["key","node_type","name","properties","ukl_ref","status","source_message_id","synced_to_ukl","created_at","updated_at"],"title":"GraphNodeOut"},"GraphStatusResponse":{"properties":{"status":{"type":"string","title":"Status"},"conversations_ingested":{"type":"integer","title":"Conversations Ingested"},"conversations_total":{"type":"integer","title":"Conversations Total"},"passages_created":{"type":"integer","title":"Passages Created"},"phrases_created":{"type":"integer","title":"Phrases Created"},"keywords_created":{"type":"integer","title":"Keywords Created"},"core_chunks_count":{"type":"integer","title":"Core Chunks Count"},"is_processing":{"type":"boolean","title":"Is Processing","default":false},"error_message":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Error Message"},"started_at":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Started At"},"completed_at":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Completed At"}},"type":"object","required":["status","conversations_ingested","conversations_total","passages_created","phrases_created","keywords_created","core_chunks_count"],"title":"GraphStatusResponse"},"GraphUpdateRequest":{"properties":{"message_id":{"anyOf":[{"type":"string","format":"uuid"},{"type":"null"}],"title":"Message Id"},"nodes":{"items":{"$ref":"#/components/schemas/GraphNodeCreate"},"type":"array","title":"Nodes","default":[]},"edges":{"items":{"$ref":"#/components/schemas/GraphEdgeCreate"},"type":"array","title":"Edges","default":[]},"ukl_refs":{"items":{"$ref":"#/components/schemas/UklRefCreate"},"type":"array","title":"Ukl Refs","default":[]}},"type":"object","title":"GraphUpdateRequest"},"GraphUpdateResponse":{"properties":{"nodes_created":{"type":"integer","title":"Nodes Created"},"edges_created":{"type":"integer","title":"Edges Created"},"refs_created":{"type":"integer","title":"Refs Created"},"node_keys":{"items":{"type":"string"},"type":"array","title":"Node Keys"}},"type":"object","required":["nodes_created","edges_created","refs_created","node_keys"],"title":"GraphUpdateResponse"},"HTTPValidationError":{"properties":{"detail":{"items":{"$ref":"#/components/schemas/ValidationError"},"type":"array","title":"Detail"}},"type":"object","title":"HTTPValidationError"},"ImportFoundationNotionRequest":{"properties":{"nango_connection_id":{"type":"string","title":"Nango Connection Id"},"page_ids":{"items":{"type":"string"},"type":"array","title":"Page Ids"},"max_pages":{"type":"integer","maximum":20.0,"minimum":1.0,"title":"Max Pages","default":12},"max_chars":{"type":"integer","maximum":50000.0,"minimum":5000.0,"title":"Max Chars","default":30000}},"type":"object","required":["nango_connection_id","page_ids"],"title":"ImportFoundationNotionRequest"},"ImportFoundationNotionResponse":{"properties":{"pages_imported":{"type":"integer","title":"Pages Imported"},"characters_read":{"type":"integer","title":"Characters Read"},"document_ids":{"items":{"type":"string"},"type":"array","title":"Document Ids"}},"type":"object","required":["pages_imported","characters_read","document_ids"],"title":"ImportFoundationNotionResponse"},"IngestDocumentRequest":{"properties":{"workspace_id":{"type":"string","format":"uuid","title":"Workspace Id"},"source_connection_id":{"type":"string","format":"uuid","title":"Source Connection Id"},"source_type":{"$ref":"#/components/schemas/SourceType"},"external_id":{"type":"string","title":"External Id"},"url":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Url"},"title":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Title"},"author_name":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Author Name"},"author_email":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Author Email"},"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"},"content_text":{"type":"string","title":"Content Text"}},"type":"object","required":["workspace_id","source_connection_id","source_type","external_id","content_text"],"title":"IngestDocumentRequest"},"IngestDocumentResponse":{"properties":{"document_id":{"type":"string","format":"uuid","title":"Document Id"},"status":{"type":"string","title":"Status"}},"type":"object","required":["document_id","status"],"title":"IngestDocumentResponse"},"InsightsChatCapabilitiesOut":{"properties":{"full_corpus_analysis_enabled":{"type":"boolean","title":"Full Corpus Analysis Enabled"},"single_campaign_required":{"type":"boolean","title":"Single Campaign Required","default":true}},"type":"object","required":["full_corpus_analysis_enabled"],"title":"InsightsChatCapabilitiesOut"},"InsightsChatContextOut":{"properties":{"session_id":{"type":"string","format":"uuid","title":"Session Id"},"workspace_id":{"type":"string","format":"uuid","title":"Workspace Id"},"interview_id":{"anyOf":[{"type":"string","format":"uuid"},{"type":"null"}],"title":"Interview Id"},"interview_ids":{"items":{"type":"string","format":"uuid"},"type":"array","title":"Interview Ids"},"ready":{"type":"boolean","title":"Ready"},"quick_chat_ready":{"type":"boolean","title":"Quick Chat Ready"},"full_corpus_analysis_ready":{"type":"boolean","title":"Full Corpus Analysis Ready"},"completed_conversations":{"type":"integer","title":"Completed Conversations"},"hide_names":{"type":"boolean","title":"Hide Names"},"hide_transcripts":{"type":"boolean","title":"Hide Transcripts"},"model":{"type":"string","title":"Model"},"model_provider":{"type":"string","title":"Model Provider"},"full_corpus_analysis_enabled":{"type":"boolean","title":"Full Corpus Analysis Enabled"},"language":{"type":"string","title":"Language","default":"en"}},"type":"object","required":["session_id","workspace_id","interview_ids","ready","quick_chat_ready","full_corpus_analysis_ready","completed_conversations","hide_names","hide_transcripts","model","model_provider","full_corpus_analysis_enabled"],"title":"InsightsChatContextOut"},"InsightsChatDemoRequest":{"properties":{"query":{"type":"string","title":"Query"}},"type":"object","required":["query"],"title":"InsightsChatDemoRequest"},"InsightsChatMessageIn":{"properties":{"role":{"type":"string","title":"Role"},"content":{"type":"string","title":"Content"},"response_payload":{"anyOf":[{"additionalProperties":true,"type":"object"},{"type":"null"}],"title":"Response Payload"},"client_message_id":{"anyOf":[{"type":"string","format":"uuid"},{"type":"null"}],"title":"Client Message Id"}},"additionalProperties":false,"type":"object","required":["role","content"],"title":"InsightsChatMessageIn"},"InsightsChatToolCall":{"properties":{"tool":{"type":"string","title":"Tool"},"args":{"additionalProperties":true,"type":"object","title":"Args","default":{}}},"type":"object","required":["tool"],"title":"InsightsChatToolCall"},"InterviewChatMessageOut":{"properties":{"id":{"type":"string","format":"uuid","title":"Id"},"session_id":{"type":"string","format":"uuid","title":"Session Id"},"role":{"type":"string","title":"Role"},"content":{"type":"string","title":"Content"},"orchestrator_verified":{"type":"boolean","title":"Orchestrator Verified","default":false},"patterns":{"anyOf":[{"items":{"additionalProperties":true,"type":"object"},"type":"array"},{"type":"null"}],"title":"Patterns"},"divergences":{"anyOf":[{"items":{"additionalProperties":true,"type":"object"},"type":"array"},{"type":"null"}],"title":"Divergences"},"verification":{"anyOf":[{"additionalProperties":true,"type":"object"},{"type":"null"}],"title":"Verification"},"meta":{"anyOf":[{"additionalProperties":true,"type":"object"},{"type":"null"}],"title":"Meta"},"citations":{"anyOf":[{"additionalProperties":{"additionalProperties":true,"type":"object"},"type":"object"},{"type":"null"}],"title":"Citations"},"analysis_run_id":{"anyOf":[{"type":"string","format":"uuid"},{"type":"null"}],"title":"Analysis Run Id"},"analysis_status":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Analysis Status"},"coverage":{"anyOf":[{"additionalProperties":true,"type":"object"},{"type":"null"}],"title":"Coverage"},"analysis_result":{"anyOf":[{"additionalProperties":true,"type":"object"},{"type":"null"}],"title":"Analysis Result"},"analysis_stale_reason":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Analysis Stale Reason"},"analysis_phase":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Analysis Phase"},"created_at":{"type":"string","format":"date-time","title":"Created At"}},"type":"object","required":["id","session_id","role","content","created_at"],"title":"InterviewChatMessageOut"},"InterviewChatSessionCreate":{"properties":{"title":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Title"}},"type":"object","title":"InterviewChatSessionCreate"},"InterviewChatSessionOut":{"properties":{"id":{"type":"string","format":"uuid","title":"Id"},"interview_id":{"anyOf":[{"type":"string","format":"uuid"},{"type":"null"}],"title":"Interview Id"},"workspace_id":{"type":"string","format":"uuid","title":"Workspace Id"},"title":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Title"},"scope_interview_ids":{"anyOf":[{"items":{"type":"string","format":"uuid"},"type":"array"},{"type":"null"}],"title":"Scope Interview Ids"},"model":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Model"},"created_at":{"type":"string","format":"date-time","title":"Created At"},"updated_at":{"type":"string","format":"date-time","title":"Updated At"}},"type":"object","required":["id","workspace_id","created_at","updated_at"],"title":"InterviewChatSessionOut"},"InterviewCreate":{"properties":{"workspace_id":{"type":"string","format":"uuid","title":"Workspace Id"},"name":{"type":"string","title":"Name"},"description":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Description"},"goal":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Goal"},"agent_behavior":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Agent Behavior"},"channel":{"type":"string","title":"Channel","default":"in_app_chat"},"completion_threshold":{"type":"integer","title":"Completion Threshold","default":90},"timeframe_start":{"anyOf":[{"type":"string","format":"date-time"},{"type":"null"}],"title":"Timeframe Start"},"timeframe_end":{"anyOf":[{"type":"string","format":"date-time"},{"type":"null"}],"title":"Timeframe End"},"interview_order":{"type":"string","title":"Interview Order","default":"seniority_high_first"},"interview_duration_minutes":{"type":"integer","title":"Interview Duration Minutes","description":"Interview length in minutes. Must be one of 5, 10, 15, 20, 30, or 45; other values are snapped to the nearest allowed one (ties favor the shorter), and 0 maps to the default of 30.","default":30},"timezone":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Timezone"},"start_immediately":{"type":"boolean","title":"Start Immediately","default":true},"scheduling_mode":{"type":"string","title":"Scheduling Mode","default":"availability"},"quick_mode_hours":{"anyOf":[{"type":"integer"},{"type":"null"}],"title":"Quick Mode Hours"},"weekly_availability":{"anyOf":[{"additionalProperties":true,"type":"object"},{"type":"null"}],"title":"Weekly Availability"},"project_context":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Project Context"},"interview_context_for_employee":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Interview Context For Employee"},"invitation_email_message":{"anyOf":[{"type":"string","maxLength":4000},{"type":"null"}],"title":"Invitation Email Message"},"teams_invitation_message":{"anyOf":[{"type":"string","maxLength":4000},{"type":"null"}],"title":"Teams Invitation Message"},"agent_profile_id":{"anyOf":[{"type":"string","format":"uuid"},{"type":"null"}],"title":"Agent Profile Id"},"agent_profile_snapshot":{"anyOf":[{"additionalProperties":true,"type":"object"},{"type":"null"}],"title":"Agent Profile Snapshot"},"interview_type":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Interview Type","default":"speaking_only"},"default_language":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Default Language"},"voice_id":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Voice Id"},"voice_provider":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Voice Provider"},"voice_language":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Voice Language"},"voice_speed":{"anyOf":[{"type":"number"},{"type":"null"}],"title":"Voice Speed"},"welcome_screen":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Welcome Screen"},"closing_message":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Closing Message"},"participant_voice_selection_enabled":{"type":"boolean","title":"Participant Voice Selection Enabled","default":false},"participant_mode_selection_enabled":{"type":"boolean","title":"Participant Mode Selection Enabled","default":false},"participant_language_selection_enabled":{"type":"boolean","title":"Participant Language Selection Enabled","default":false},"participant_selectable_languages":{"items":{"type":"string"},"type":"array","title":"Participant Selectable Languages"},"participant_anonymity_selection_enabled":{"type":"boolean","title":"Participant Anonymity Selection Enabled","default":false},"participant_review_enabled":{"type":"boolean","title":"Participant Review Enabled","default":false},"result_summary_enabled":{"type":"boolean","title":"Result Summary Enabled","default":false},"folder":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Folder"},"recurring_interval":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Recurring Interval"},"report_floor_count":{"anyOf":[{"type":"integer"},{"type":"null"}],"title":"Report Floor Count"},"incremental_update_every_n":{"anyOf":[{"type":"integer"},{"type":"null"}],"title":"Incremental Update Every N"},"use_agentic_synthesis":{"type":"boolean","title":"Use Agentic Synthesis","default":true},"is_anonymous":{"type":"boolean","title":"Is Anonymous","default":false},"anonymity_level":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Anonymity Level"}},"type":"object","required":["workspace_id","name"],"title":"InterviewCreate"},"InterviewDetailOut":{"properties":{"interview":{"$ref":"#/components/schemas/InterviewOut"},"contacts":{"items":{"$ref":"#/components/schemas/app__api__interview_schemas__ContactOut"},"type":"array","title":"Contacts"},"question_sets":{"items":{"$ref":"#/components/schemas/QuestionSetOut"},"type":"array","title":"Question Sets"},"has_tagged_transcript_turns":{"type":"boolean","title":"Has Tagged Transcript Turns","default":false},"invitations_scheduled_for":{"anyOf":[{"type":"string","format":"date-time"},{"type":"null"}],"title":"Invitations Scheduled For"}},"type":"object","required":["interview","contacts","question_sets"],"title":"InterviewDetailOut","description":"Combined response with interview, contacts, and question sets in one call."},"InterviewDuplicateIn":{"properties":{"name":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Name"}},"type":"object","title":"InterviewDuplicateIn"},"InterviewFolderCreate":{"properties":{"workspace_id":{"type":"string","format":"uuid","title":"Workspace Id"},"name":{"type":"string","maxLength":255,"minLength":1,"title":"Name"}},"type":"object","required":["workspace_id","name"],"title":"InterviewFolderCreate"},"InterviewFolderOut":{"properties":{"id":{"type":"string","format":"uuid","title":"Id"},"workspace_id":{"type":"string","format":"uuid","title":"Workspace Id"},"name":{"type":"string","title":"Name"},"interview_count":{"type":"integer","title":"Interview Count","default":0},"created_by":{"anyOf":[{"type":"string"},{"type":"null"}],"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","workspace_id","name","created_by","created_at","updated_at"],"title":"InterviewFolderOut"},"InterviewListItemOut":{"properties":{"id":{"type":"string","format":"uuid","title":"Id"},"workspace_id":{"type":"string","format":"uuid","title":"Workspace Id"},"is_shared":{"type":"boolean","title":"Is Shared","default":false},"shared_from_workspace_name":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Shared From Workspace Name"},"share_scope":{"type":"string","title":"Share Scope","default":"restricted"},"name":{"type":"string","title":"Name"},"goal":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Goal"},"status":{"type":"string","title":"Status"},"channel":{"type":"string","title":"Channel"},"contact_count":{"type":"integer","title":"Contact Count","default":0},"completed_count":{"type":"integer","title":"Completed Count","default":0},"scheduled_count":{"type":"integer","title":"Scheduled Count","default":0},"folder":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Folder"},"created_by":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Created By"},"created_by_email":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Created By Email"},"created_by_name":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Created By 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","workspace_id","name","goal","status","channel","created_at","updated_at"],"title":"InterviewListItemOut"},"InterviewListPageOut":{"properties":{"interviews":{"items":{"$ref":"#/components/schemas/InterviewListItemOut"},"type":"array","title":"Interviews"},"folders":{"items":{"$ref":"#/components/schemas/InterviewFolderOut"},"type":"array","title":"Folders"}},"type":"object","required":["interviews","folders"],"title":"InterviewListPageOut"},"InterviewMaintenanceInfo":{"properties":{"enabled":{"type":"boolean","title":"Enabled","default":false},"blocked":{"type":"boolean","title":"Blocked","default":false},"reason":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Reason"},"activated_at":{"anyOf":[{"type":"string","format":"date-time"},{"type":"null"}],"title":"Activated At"},"booking_url":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Booking Url"}},"type":"object","title":"InterviewMaintenanceInfo"},"InterviewOut":{"properties":{"id":{"type":"string","format":"uuid","title":"Id"},"workspace_id":{"type":"string","format":"uuid","title":"Workspace Id"},"is_shared":{"type":"boolean","title":"Is Shared","default":false},"shared_from_workspace_name":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Shared From Workspace Name"},"share_scope":{"type":"string","title":"Share Scope","default":"restricted"},"share_link_enabled":{"type":"boolean","title":"Share Link Enabled","default":false},"join_link_delivery":{"type":"boolean","title":"Join Link Delivery","default":false},"name":{"type":"string","title":"Name"},"description":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Description"},"goal":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Goal"},"agent_behavior":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Agent Behavior"},"status":{"type":"string","title":"Status"},"channel":{"type":"string","title":"Channel"},"completion_threshold":{"type":"integer","title":"Completion Threshold"},"timeframe_start":{"anyOf":[{"type":"string","format":"date-time"},{"type":"null"}],"title":"Timeframe Start"},"timeframe_end":{"anyOf":[{"type":"string","format":"date-time"},{"type":"null"}],"title":"Timeframe End"},"interview_order":{"type":"string","title":"Interview Order"},"interview_duration_minutes":{"type":"integer","title":"Interview Duration Minutes"},"timezone":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Timezone"},"start_immediately":{"type":"boolean","title":"Start Immediately","default":true},"scheduling_mode":{"type":"string","title":"Scheduling Mode","default":"availability"},"quick_mode_hours":{"anyOf":[{"type":"integer"},{"type":"null"}],"title":"Quick Mode Hours"},"weekly_availability":{"anyOf":[{"additionalProperties":true,"type":"object"},{"type":"null"}],"title":"Weekly Availability"},"project_context":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Project Context"},"success_criteria":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Success Criteria"},"interview_context_for_employee":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Interview Context For Employee"},"invitation_email_message":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Invitation Email Message"},"teams_invitation_message":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Teams Invitation Message"},"agent_profile_id":{"anyOf":[{"type":"string","format":"uuid"},{"type":"null"}],"title":"Agent Profile Id"},"agent_profile_snapshot":{"anyOf":[{"additionalProperties":true,"type":"object"},{"type":"null"}],"title":"Agent Profile Snapshot"},"draft_guide":{"anyOf":[{"items":{},"type":"array"},{"type":"null"}],"title":"Draft Guide"},"interview_type":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Interview Type"},"default_language":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Default Language"},"voice_id":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Voice Id"},"voice_provider":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Voice Provider"},"voice_language":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Voice Language"},"voice_speed":{"type":"number","title":"Voice Speed","default":1.0},"participant_voice_selection_enabled":{"type":"boolean","title":"Participant Voice Selection Enabled","default":false},"participant_mode_selection_enabled":{"type":"boolean","title":"Participant Mode Selection Enabled","default":false},"participant_language_selection_enabled":{"type":"boolean","title":"Participant Language Selection Enabled","default":false},"participant_selectable_languages":{"items":{"type":"string"},"type":"array","title":"Participant Selectable Languages"},"participant_anonymity_selection_enabled":{"type":"boolean","title":"Participant Anonymity Selection Enabled","default":false},"participant_review_enabled":{"type":"boolean","title":"Participant Review Enabled","default":false},"result_summary_enabled":{"type":"boolean","title":"Result Summary Enabled","default":false},"result_summary_recipient_count":{"type":"integer","title":"Result Summary Recipient Count","default":0},"welcome_screen":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Welcome Screen"},"closing_message":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Closing Message"},"folder":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Folder"},"recurring_interval":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Recurring Interval"},"followup_enabled":{"type":"boolean","title":"Followup Enabled","default":false},"followup_strategy":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Followup Strategy"},"followup_intervals_hours":{"anyOf":[{"items":{"type":"integer"},"type":"array"},{"type":"null"}],"title":"Followup Intervals Hours"},"followup_deadline_days":{"anyOf":[{"items":{"type":"integer"},"type":"array"},{"type":"null"}],"title":"Followup Deadline Days"},"followup_message":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Followup Message"},"report_floor_count":{"anyOf":[{"type":"integer"},{"type":"null"}],"title":"Report Floor Count"},"incremental_update_every_n":{"anyOf":[{"type":"integer"},{"type":"null"}],"title":"Incremental Update Every N"},"use_agentic_synthesis":{"type":"boolean","title":"Use Agentic Synthesis","default":false},"is_anonymous":{"type":"boolean","title":"Is Anonymous","default":false},"anonymity_level":{"type":"string","title":"Anonymity Level","default":"none"},"contact_count":{"type":"integer","title":"Contact Count","default":0},"completed_count":{"type":"integer","title":"Completed Count","default":0},"scheduled_count":{"type":"integer","title":"Scheduled Count","default":0},"created_by":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Created By"},"created_by_email":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Created By Email"},"created_by_name":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Created By 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","workspace_id","name","description","goal","agent_behavior","status","channel","completion_threshold","timeframe_start","timeframe_end","interview_order","interview_duration_minutes","created_by","created_at","updated_at"],"title":"InterviewOut"},"InterviewQueryRequest":{"properties":{"query":{"type":"string","title":"Query"},"anonymize":{"type":"boolean","title":"Anonymize","default":false},"top_k":{"type":"integer","title":"Top K","default":20},"conversation_history":{"anyOf":[{"items":{"$ref":"#/components/schemas/ConversationMessage"},"type":"array"},{"type":"null"}],"title":"Conversation History"},"model":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Model"}},"type":"object","required":["query"],"title":"InterviewQueryRequest"},"InterviewQueryResponse":{"properties":{"answer":{"type":"string","title":"Answer"},"patterns":{"items":{"$ref":"#/components/schemas/PatternOut"},"type":"array","title":"Patterns"},"divergences":{"items":{"$ref":"#/components/schemas/DivergenceOut"},"type":"array","title":"Divergences"},"provenance":{"items":{"$ref":"#/components/schemas/ProvenanceLinkOut"},"type":"array","title":"Provenance"},"verification":{"$ref":"#/components/schemas/VerificationOut"},"query_complexity":{"type":"string","title":"Query Complexity"},"strategies_used":{"items":{"type":"string"},"type":"array","title":"Strategies Used"}},"type":"object","required":["answer","patterns","divergences","provenance","verification","query_complexity","strategies_used"],"title":"InterviewQueryResponse"},"InterviewSessionInfo":{"properties":{"session_id":{"type":"string","format":"uuid","title":"Session Id"},"interview_type":{"type":"string","title":"Interview Type"},"default_mode":{"type":"string","title":"Default Mode"},"status":{"type":"string","title":"Status"},"transcript":{"anyOf":[{"items":{"additionalProperties":true,"type":"object"},"type":"array"},{"type":"null"}],"title":"Transcript"},"duration_limit_minutes":{"anyOf":[{"type":"integer"},{"type":"null"}],"title":"Duration Limit Minutes"},"duration_remaining_seconds":{"anyOf":[{"type":"integer"},{"type":"null"}],"title":"Duration Remaining Seconds"},"contact_name":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Contact Name"},"contact_email":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Contact Email"},"contact_image_url":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Contact Image Url"},"company_name":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Company Name"},"company_domain":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Company Domain"},"company_logo_url":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Company Logo Url"},"workspace_id":{"anyOf":[{"type":"string","format":"uuid"},{"type":"null"}],"title":"Workspace Id"},"workspace_clerk_org_id":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Workspace Clerk Org Id"},"workspace_name":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Workspace Name"},"workspace_domain":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Workspace Domain"},"workspace_logo_url":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Workspace Logo Url"},"page_title":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Page Title"},"screen_share_enabled":{"type":"boolean","title":"Screen Share Enabled","default":false},"campaign_intro":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Campaign Intro"},"default_language":{"type":"string","title":"Default Language","default":"en"},"campaign_is_anonymous":{"type":"boolean","title":"Campaign Is Anonymous","default":false},"campaign_visibility_note":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Campaign Visibility Note"},"campaign_results_usage":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Campaign Results Usage"},"participant_voice_selection_enabled":{"type":"boolean","title":"Participant Voice Selection Enabled","default":false},"participant_mode_selection_enabled":{"type":"boolean","title":"Participant Mode Selection Enabled","default":false},"participant_review_enabled":{"type":"boolean","title":"Participant Review Enabled","default":false},"selected_voice_id":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Selected Voice Id"},"selected_voice_language":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Selected Voice Language"},"selected_voice_provider":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Selected Voice Provider"},"voice_provider":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Voice Provider"},"voice_speed":{"type":"number","title":"Voice Speed","default":1.0},"selected_voice_speed":{"anyOf":[{"type":"number"},{"type":"null"}],"title":"Selected Voice Speed"},"is_anonymous":{"type":"boolean","title":"Is Anonymous","default":false},"anonymity_level":{"type":"string","title":"Anonymity Level","default":"none"},"campaign_anonymity_level":{"type":"string","title":"Campaign Anonymity Level","default":"none"},"participant_anonymity_selection_enabled":{"type":"boolean","title":"Participant Anonymity Selection Enabled","default":false},"selected_anonymity_level":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Selected Anonymity Level"},"record_audio":{"type":"boolean","title":"Record Audio","default":true},"can_email_resume_link":{"type":"boolean","title":"Can Email Resume Link","default":false},"session_feedback_submitted":{"type":"boolean","title":"Session Feedback Submitted","default":false},"deepgram_eot_timeout_ms":{"anyOf":[{"type":"integer"},{"type":"null"}],"title":"Deepgram Eot Timeout Ms"},"maintenance":{"$ref":"#/components/schemas/InterviewMaintenanceInfo"}},"type":"object","required":["session_id","interview_type","default_mode","status"],"title":"InterviewSessionInfo"},"InterviewUpdate":{"properties":{"name":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Name"},"description":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Description"},"goal":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Goal"},"agent_behavior":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Agent Behavior"},"channel":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Channel"},"completion_threshold":{"anyOf":[{"type":"integer"},{"type":"null"}],"title":"Completion Threshold"},"status":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Status"},"timeframe_start":{"anyOf":[{"type":"string","format":"date-time"},{"type":"null"}],"title":"Timeframe Start"},"timeframe_end":{"anyOf":[{"type":"string","format":"date-time"},{"type":"null"}],"title":"Timeframe End"},"interview_order":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Interview Order"},"interview_duration_minutes":{"anyOf":[{"type":"integer"},{"type":"null"}],"title":"Interview Duration Minutes","description":"Interview length in minutes. Must be one of 5, 10, 15, 20, 30, or 45; other values are snapped to the nearest allowed one (ties favor the shorter), and 0 maps to the default of 30."},"timezone":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Timezone"},"start_immediately":{"anyOf":[{"type":"boolean"},{"type":"null"}],"title":"Start Immediately"},"scheduling_mode":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Scheduling Mode"},"quick_mode_hours":{"anyOf":[{"type":"integer"},{"type":"null"}],"title":"Quick Mode Hours"},"weekly_availability":{"anyOf":[{"additionalProperties":true,"type":"object"},{"type":"null"}],"title":"Weekly Availability"},"project_context":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Project Context"},"interview_context_for_employee":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Interview Context For Employee"},"invitation_email_message":{"anyOf":[{"type":"string","maxLength":4000},{"type":"null"}],"title":"Invitation Email Message"},"teams_invitation_message":{"anyOf":[{"type":"string","maxLength":4000},{"type":"null"}],"title":"Teams Invitation Message"},"agent_profile_id":{"anyOf":[{"type":"string","format":"uuid"},{"type":"null"}],"title":"Agent Profile Id"},"agent_profile_snapshot":{"anyOf":[{"additionalProperties":true,"type":"object"},{"type":"null"}],"title":"Agent Profile Snapshot"},"interview_type":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Interview Type"},"default_language":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Default Language"},"voice_id":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Voice Id"},"voice_provider":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Voice Provider"},"voice_language":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Voice Language"},"voice_speed":{"anyOf":[{"type":"number"},{"type":"null"}],"title":"Voice Speed"},"welcome_screen":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Welcome Screen"},"closing_message":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Closing Message"},"participant_voice_selection_enabled":{"anyOf":[{"type":"boolean"},{"type":"null"}],"title":"Participant Voice Selection Enabled"},"participant_mode_selection_enabled":{"anyOf":[{"type":"boolean"},{"type":"null"}],"title":"Participant Mode Selection Enabled"},"participant_language_selection_enabled":{"anyOf":[{"type":"boolean"},{"type":"null"}],"title":"Participant Language Selection Enabled"},"participant_selectable_languages":{"anyOf":[{"items":{"type":"string"},"type":"array"},{"type":"null"}],"title":"Participant Selectable Languages"},"participant_anonymity_selection_enabled":{"anyOf":[{"type":"boolean"},{"type":"null"}],"title":"Participant Anonymity Selection Enabled"},"participant_review_enabled":{"anyOf":[{"type":"boolean"},{"type":"null"}],"title":"Participant Review Enabled"},"result_summary_enabled":{"anyOf":[{"type":"boolean"},{"type":"null"}],"title":"Result Summary Enabled"},"folder":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Folder"},"recurring_interval":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Recurring Interval"},"followup_enabled":{"anyOf":[{"type":"boolean"},{"type":"null"}],"title":"Followup Enabled"},"followup_strategy":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Followup Strategy"},"followup_intervals_hours":{"anyOf":[{"items":{"type":"integer"},"type":"array"},{"type":"null"}],"title":"Followup Intervals Hours"},"followup_deadline_days":{"anyOf":[{"items":{"type":"integer"},"type":"array"},{"type":"null"}],"title":"Followup Deadline Days"},"followup_message":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Followup Message"},"report_floor_count":{"anyOf":[{"type":"integer"},{"type":"null"}],"title":"Report Floor Count"},"incremental_update_every_n":{"anyOf":[{"type":"integer"},{"type":"null"}],"title":"Incremental Update Every N"},"use_agentic_synthesis":{"anyOf":[{"type":"boolean"},{"type":"null"}],"title":"Use Agentic Synthesis"},"is_anonymous":{"anyOf":[{"type":"boolean"},{"type":"null"}],"title":"Is Anonymous"},"anonymity_level":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Anonymity Level"}},"type":"object","title":"InterviewUpdate"},"InvitationSuggestionRequest":{"properties":{"instructions":{"anyOf":[{"type":"string","maxLength":500},{"type":"null"}],"title":"Instructions"},"current_message":{"anyOf":[{"type":"string","maxLength":4000},{"type":"null"}],"title":"Current Message"},"campaign_title":{"anyOf":[{"type":"string","maxLength":300},{"type":"null"}],"title":"Campaign Title"},"campaign_goal":{"anyOf":[{"type":"string","maxLength":2000},{"type":"null"}],"title":"Campaign Goal"},"campaign_background":{"anyOf":[{"type":"string","maxLength":4000},{"type":"null"}],"title":"Campaign Background"},"language":{"anyOf":[{"type":"string","maxLength":20},{"type":"null"}],"title":"Language"},"topics":{"items":{"type":"string"},"type":"array","maxItems":30,"title":"Topics"},"target":{"type":"string","enum":["invitation_message","participant_context"],"title":"Target","default":"invitation_message"}},"type":"object","title":"InvitationSuggestionRequest","description":"Optional steering for the AI-suggested invitation message.\n\n``campaign_title``/``campaign_goal``/``language`` mirror the builder's\nCURRENT (possibly unsaved) form values — the builder autosaves with a\ndebounce, so the server row can lag what the user just changed."},"InvitationSuggestionResponse":{"properties":{"message":{"type":"string","title":"Message"}},"type":"object","required":["message"],"title":"InvitationSuggestionResponse"},"JobStats":{"properties":{"type":{"type":"string","title":"Type"},"status":{"type":"string","title":"Status"},"count":{"type":"integer","title":"Count"}},"type":"object","required":["type","status","count"],"title":"JobStats"},"JobStatsResponse":{"properties":{"queue_name":{"type":"string","title":"Queue Name"},"stats":{"items":{"$ref":"#/components/schemas/JobStats"},"type":"array","title":"Stats"},"total":{"type":"integer","title":"Total"},"queued":{"type":"integer","title":"Queued"},"running":{"type":"integer","title":"Running"},"active_running":{"type":"integer","title":"Active Running"},"stale_running":{"type":"integer","title":"Stale Running"},"done":{"type":"integer","title":"Done"},"failed":{"type":"integer","title":"Failed"}},"type":"object","required":["queue_name","stats","total","queued","running","active_running","stale_running","done","failed"],"title":"JobStatsResponse"},"JoinInfo":{"properties":{"interview_title":{"type":"string","title":"Interview Title"},"interview_description":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Interview Description"},"interview_context":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Interview Context"},"duration_minutes":{"type":"integer","title":"Duration Minutes"},"organization_name":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Organization Name"},"language":{"type":"string","title":"Language","default":"en"},"is_anonymous":{"type":"boolean","title":"Is Anonymous","default":false},"anonymity_level":{"type":"string","title":"Anonymity Level","default":"none"},"availability":{"type":"string","title":"Availability","default":"open"},"organizer_email":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Organizer Email"},"organizer_name":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Organizer Name"},"support_email":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Support Email"},"support_url":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Support Url"},"test":{"type":"boolean","title":"Test","default":false}},"type":"object","required":["interview_title","duration_minutes"],"title":"JoinInfo"},"JoinRegisterRequest":{"properties":{"name":{"type":"string","maxLength":255,"minLength":1,"title":"Name"},"email":{"type":"string","format":"email","title":"Email"}},"type":"object","required":["name","email"],"title":"JoinRegisterRequest"},"JoinRegisterResponse":{"properties":{"status":{"type":"string","enum":["registered","email_sent","already_participated"],"title":"Status","default":"registered"},"booking_token":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Booking Token"},"booking_url":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Booking Url"},"retry_after_seconds":{"anyOf":[{"type":"integer"},{"type":"null"}],"title":"Retry After Seconds"}},"type":"object","title":"JoinRegisterResponse"},"KnowledgeFilter":{"properties":{"dimension":{"type":"string","title":"Dimension"},"values":{"items":{"type":"string"},"type":"array","title":"Values"}},"type":"object","required":["dimension"],"title":"KnowledgeFilter"},"ListNotionPagesResponse":{"properties":{"pages":{"items":{"$ref":"#/components/schemas/NotionPageResponse"},"type":"array","title":"Pages"}},"type":"object","required":["pages"],"title":"ListNotionPagesResponse"},"LiveKitTokenResponse":{"properties":{"room_name":{"type":"string","title":"Room Name"},"participant_identity":{"type":"string","title":"Participant Identity"},"agent_participant_identity":{"type":"string","title":"Agent Participant Identity"},"livekit_url":{"type":"string","title":"Livekit Url"},"livekit_region":{"type":"string","title":"Livekit Region"},"livekit_region_policy":{"type":"string","title":"Livekit Region Policy"},"livekit_token":{"type":"string","title":"Livekit Token"},"token_ttl_seconds":{"type":"integer","title":"Token Ttl Seconds"},"expires_at":{"type":"string","format":"date-time","title":"Expires At"},"can_publish_microphone":{"type":"boolean","title":"Can Publish Microphone"},"can_publish_screen":{"type":"boolean","title":"Can Publish Screen"},"can_publish_data":{"type":"boolean","title":"Can Publish Data"},"can_subscribe":{"type":"boolean","title":"Can Subscribe"}},"type":"object","required":["room_name","participant_identity","agent_participant_identity","livekit_url","livekit_region","livekit_region_policy","livekit_token","token_ttl_seconds","expires_at","can_publish_microphone","can_publish_screen","can_publish_data","can_subscribe"],"title":"LiveKitTokenResponse"},"ManualDocumentType":{"type":"string","enum":["transcript","notes","document","article","email","chat"],"title":"ManualDocumentType","description":"Types of manually ingested documents."},"ManualIngestRequest":{"properties":{"workspace_id":{"type":"string","format":"uuid","title":"Workspace Id","description":"Target workspace"},"vault_id":{"anyOf":[{"type":"string","format":"uuid"},{"type":"null"}],"title":"Vault Id","description":"Optional vault to associate with"},"content":{"type":"string","minLength":10,"title":"Content","description":"The text content to ingest"},"title":{"type":"string","maxLength":500,"minLength":1,"title":"Title","description":"Document title"},"document_type":{"$ref":"#/components/schemas/ManualDocumentType","description":"Type of document being ingested","default":"document"},"author_name":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Author Name","description":"Author name"},"author_email":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Author Email","description":"Author email"},"source_url":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Source Url","description":"Original source URL if applicable"},"created_at":{"anyOf":[{"type":"string","format":"date-time"},{"type":"null"}],"title":"Created At","description":"Original creation date"},"tags":{"items":{"type":"string"},"type":"array","title":"Tags","description":"Tags for categorization"},"metadata":{"additionalProperties":true,"type":"object","title":"Metadata","description":"Additional metadata"}},"type":"object","required":["workspace_id","content","title"],"title":"ManualIngestRequest","description":"Request to manually ingest a document."},"ManualIngestResponse":{"properties":{"document_id":{"type":"string","format":"uuid","title":"Document Id"},"status":{"type":"string","title":"Status"},"message":{"type":"string","title":"Message"},"processing_job_id":{"anyOf":[{"type":"string","format":"uuid"},{"type":"null"}],"title":"Processing Job Id"}},"type":"object","required":["document_id","status","message"],"title":"ManualIngestResponse","description":"Response after manual ingestion."},"MeetingRef":{"properties":{"key":{"type":"string","title":"Key"},"title":{"type":"string","title":"Title"},"scheduled_start":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Scheduled Start"},"attendee_count":{"type":"integer","title":"Attendee Count","default":0}},"type":"object","required":["key","title"],"title":"MeetingRef"},"MeetingResponse":{"properties":{"key":{"type":"string","title":"Key"},"title":{"type":"string","title":"Title"},"scheduled_start":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Scheduled Start"},"scheduled_end":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Scheduled End"},"voice_session_id":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Voice Session Id"},"summary":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Summary"},"attendee_count":{"type":"integer","title":"Attendee Count","default":0},"regarding_deal":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Regarding Deal"},"regarding_company":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Regarding Company"}},"type":"object","required":["key","title"],"title":"MeetingResponse"},"MemberOut":{"properties":{"id":{"type":"string","format":"uuid","title":"Id"},"user_id":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"User Id"},"email":{"type":"string","title":"Email"},"workspace_id":{"anyOf":[{"type":"string","format":"uuid"},{"type":"null"}],"title":"Workspace Id"},"status":{"type":"string","enum":["invited","active","removed"],"title":"Status"},"invited_by":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Invited By"},"invited_at":{"anyOf":[{"type":"string","format":"date-time"},{"type":"null"}],"title":"Invited At"},"created_at":{"type":"string","format":"date-time","title":"Created At"},"updated_at":{"type":"string","format":"date-time","title":"Updated At"}},"type":"object","required":["id","user_id","email","workspace_id","status","invited_by","invited_at","created_at","updated_at"],"title":"MemberOut"},"MembershipOut":{"properties":{"status":{"type":"string","enum":["none","invited","active","removed"],"title":"Status"},"member":{"anyOf":[{"$ref":"#/components/schemas/MemberOut"},{"type":"null"}]}},"type":"object","required":["status"],"title":"MembershipOut"},"MissionControlCampaignOut":{"properties":{"interview_id":{"type":"string","format":"uuid","title":"Interview Id"},"name":{"type":"string","title":"Name"},"vault_id":{"anyOf":[{"type":"string","format":"uuid"},{"type":"null"}],"title":"Vault Id"},"source_connection_id":{"anyOf":[{"type":"string","format":"uuid"},{"type":"null"}],"title":"Source Connection Id"},"status":{"type":"string","title":"Status"},"graph_status":{"type":"string","title":"Graph Status"},"is_processing":{"type":"boolean","title":"Is Processing","default":false},"queryable":{"type":"boolean","title":"Queryable"}},"type":"object","required":["interview_id","name","status","graph_status","queryable"],"title":"MissionControlCampaignOut"},"MissionControlChatFolderCreate":{"properties":{"workspace_id":{"type":"string","format":"uuid","title":"Workspace Id"},"name":{"type":"string","maxLength":255,"minLength":1,"title":"Name"}},"type":"object","required":["workspace_id","name"],"title":"MissionControlChatFolderCreate"},"MissionControlChatFolderOut":{"properties":{"id":{"type":"string","format":"uuid","title":"Id"},"workspace_id":{"type":"string","format":"uuid","title":"Workspace Id"},"name":{"type":"string","title":"Name"},"session_count":{"type":"integer","title":"Session Count","default":0},"created_by":{"anyOf":[{"type":"string"},{"type":"null"}],"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","workspace_id","name","created_at","updated_at"],"title":"MissionControlChatFolderOut"},"MissionControlChatMessageFeedbackOut":{"properties":{"message_id":{"type":"string","format":"uuid","title":"Message Id"},"reaction":{"anyOf":[{"type":"string","enum":["up","down"]},{"type":"null"}],"title":"Reaction"},"updated_at":{"anyOf":[{"type":"string","format":"date-time"},{"type":"null"}],"title":"Updated At"}},"type":"object","required":["message_id"],"title":"MissionControlChatMessageFeedbackOut"},"MissionControlChatMessageFeedbackPatch":{"properties":{"reaction":{"anyOf":[{"type":"string","enum":["up","down"]},{"type":"null"}],"title":"Reaction"}},"type":"object","title":"MissionControlChatMessageFeedbackPatch"},"MissionControlChatMessageOut":{"properties":{"id":{"type":"string","format":"uuid","title":"Id"},"session_id":{"type":"string","format":"uuid","title":"Session Id"},"role":{"type":"string","title":"Role"},"content":{"type":"string","title":"Content"},"patterns":{"anyOf":[{"items":{"additionalProperties":true,"type":"object"},"type":"array"},{"type":"null"}],"title":"Patterns"},"divergences":{"anyOf":[{"items":{"additionalProperties":true,"type":"object"},"type":"array"},{"type":"null"}],"title":"Divergences"},"verification":{"anyOf":[{"additionalProperties":true,"type":"object"},{"type":"null"}],"title":"Verification"},"meta":{"anyOf":[{"additionalProperties":true,"type":"object"},{"type":"null"}],"title":"Meta"},"citations":{"anyOf":[{"additionalProperties":{"additionalProperties":true,"type":"object"},"type":"object"},{"type":"null"}],"title":"Citations"},"feedback":{"anyOf":[{"$ref":"#/components/schemas/MissionControlChatMessageFeedbackOut"},{"type":"null"}]},"created_at":{"type":"string","format":"date-time","title":"Created At"}},"type":"object","required":["id","session_id","role","content","created_at"],"title":"MissionControlChatMessageOut"},"MissionControlChatSessionCreate":{"properties":{"workspace_id":{"type":"string","format":"uuid","title":"Workspace Id"},"title":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Title"},"folder":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Folder"},"scope_all":{"type":"boolean","title":"Scope All","default":false},"selected_interview_ids":{"anyOf":[{"items":{"type":"string","format":"uuid"},"type":"array"},{"type":"null"}],"title":"Selected Interview Ids"},"selected_vault_ids":{"anyOf":[{"items":{"type":"string","format":"uuid"},"type":"array"},{"type":"null"}],"title":"Selected Vault Ids"}},"type":"object","required":["workspace_id"],"title":"MissionControlChatSessionCreate"},"MissionControlChatSessionOut":{"properties":{"id":{"type":"string","format":"uuid","title":"Id"},"workspace_id":{"type":"string","format":"uuid","title":"Workspace Id"},"scope_type":{"type":"string","title":"Scope Type"},"title":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Title"},"folder":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Folder"},"selected_interview_ids":{"anyOf":[{"items":{"type":"string"},"type":"array"},{"type":"null"}],"title":"Selected Interview Ids"},"selected_vault_ids":{"anyOf":[{"items":{"type":"string"},"type":"array"},{"type":"null"}],"title":"Selected Vault Ids"},"created_by":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Created By"},"created_by_email":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Created By Email"},"created_by_name":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Created By Name"},"shared_with_user_ids":{"items":{"type":"string"},"type":"array","title":"Shared With User Ids"},"access":{"type":"string","enum":["owner","shared"],"title":"Access","default":"owner"},"created_at":{"type":"string","format":"date-time","title":"Created At"},"updated_at":{"type":"string","format":"date-time","title":"Updated At"}},"type":"object","required":["id","workspace_id","scope_type","created_at","updated_at"],"title":"MissionControlChatSessionOut"},"MissionControlChatSessionPatch":{"properties":{"title":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Title"},"folder":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Folder"}},"type":"object","title":"MissionControlChatSessionPatch"},"MissionControlChatSessionSharePatch":{"properties":{"shared_with_user_ids":{"items":{"type":"string"},"type":"array","maxItems":100,"title":"Shared With User Ids"}},"type":"object","title":"MissionControlChatSessionSharePatch"},"MissionControlQueryRequest":{"properties":{"query":{"type":"string","maxLength":8000,"minLength":1,"title":"Query"},"anonymize":{"type":"boolean","title":"Anonymize","default":false},"top_k":{"type":"integer","title":"Top K","default":20},"conversation_history":{"anyOf":[{"items":{"$ref":"#/components/schemas/ConversationMessage"},"type":"array"},{"type":"null"}],"title":"Conversation History"},"scope_all":{"type":"boolean","title":"Scope All","default":false},"selected_interview_ids":{"anyOf":[{"items":{"type":"string","format":"uuid"},"type":"array"},{"type":"null"}],"title":"Selected Interview Ids"},"selected_vault_ids":{"anyOf":[{"items":{"type":"string","format":"uuid"},"type":"array"},{"type":"null"}],"title":"Selected Vault Ids"}},"type":"object","required":["query"],"title":"MissionControlQueryRequest"},"MissionControlScopeOut":{"properties":{"workspace_id":{"type":"string","format":"uuid","title":"Workspace Id"},"campaigns":{"items":{"$ref":"#/components/schemas/MissionControlCampaignOut"},"type":"array","title":"Campaigns"},"queryable_campaign_count":{"type":"integer","title":"Queryable Campaign Count"},"foundation_available":{"type":"boolean","title":"Foundation Available","default":false}},"type":"object","required":["workspace_id","campaigns","queryable_campaign_count"],"title":"MissionControlScopeOut"},"NangoSyncStatusResponse":{"properties":{"source_connection_id":{"type":"string","title":"Source Connection Id"},"nango_status":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Nango Status"},"finished_at":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Finished At"},"next_scheduled_sync_at":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Next Scheduled Sync At"},"record_count":{"anyOf":[{"type":"integer"},{"type":"null"}],"title":"Record Count"},"last_sync_result":{"anyOf":[{"additionalProperties":true,"type":"object"},{"type":"null"}],"title":"Last Sync Result"}},"type":"object","required":["source_connection_id","nango_status","finished_at","next_scheduled_sync_at","record_count","last_sync_result"],"title":"NangoSyncStatusResponse"},"NoteInput":{"properties":{"parent_object":{"type":"string","title":"Parent Object"},"parent_record_id":{"type":"string","title":"Parent Record Id"},"title":{"type":"string","title":"Title"},"content":{"type":"string","title":"Content"}},"type":"object","required":["parent_object","parent_record_id","title","content"],"title":"NoteInput"},"NotionPageResponse":{"properties":{"id":{"type":"string","title":"Id"},"title":{"type":"string","title":"Title"},"url":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Url"},"last_edited_time":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Last Edited Time"}},"type":"object","required":["id","title"],"title":"NotionPageResponse"},"OnboardingGuideStateOut":{"properties":{"guide_key":{"type":"string","title":"Guide Key"},"workspace_id":{"type":"string","format":"uuid","title":"Workspace Id"},"status":{"type":"string","enum":["not_started","auto_started","completed","skipped"],"title":"Status"},"auto_start_allowed":{"type":"boolean","title":"Auto Start Allowed"},"first_auto_started_at":{"anyOf":[{"type":"string","format":"date-time"},{"type":"null"}],"title":"First Auto Started At"},"last_started_at":{"anyOf":[{"type":"string","format":"date-time"},{"type":"null"}],"title":"Last Started At"},"completed_at":{"anyOf":[{"type":"string","format":"date-time"},{"type":"null"}],"title":"Completed At"},"skipped_at":{"anyOf":[{"type":"string","format":"date-time"},{"type":"null"}],"title":"Skipped At"}},"type":"object","required":["guide_key","workspace_id","status","auto_start_allowed"],"title":"OnboardingGuideStateOut"},"OnboardingGuideStateUpdate":{"properties":{"workspace_id":{"type":"string","format":"uuid","title":"Workspace Id"},"status":{"$ref":"#/components/schemas/OnboardingGuideStatus"}},"type":"object","required":["workspace_id","status"],"title":"OnboardingGuideStateUpdate"},"OnboardingGuideStatus":{"type":"string","enum":["auto_started","completed","skipped"],"title":"OnboardingGuideStatus"},"OrganizationInput":{"properties":{"name":{"type":"string","title":"Name"},"address":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Address"},"visible_to":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Visible To"},"label":{"anyOf":[{"type":"integer"},{"type":"null"}],"title":"Label"}},"type":"object","required":["name"],"title":"OrganizationInput"},"OrganizationResponse":{"properties":{"id":{"type":"integer","title":"Id"},"name":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Name"},"address":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Address"},"owner_id":{"anyOf":[{"type":"integer"},{"type":"null"}],"title":"Owner Id"},"active_flag":{"anyOf":[{"type":"boolean"},{"type":"null"}],"title":"Active Flag"},"label":{"anyOf":[{"type":"integer"},{"type":"null"}],"title":"Label"}},"type":"object","required":["id"],"title":"OrganizationResponse"},"PainPointOut":{"properties":{"text":{"type":"string","title":"Text"},"category":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Category"},"severity":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Severity"},"quote":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Quote"},"speaker":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Speaker"},"tools_mentioned":{"anyOf":[{"items":{"type":"string"},"type":"array"},{"type":"null"}],"title":"Tools Mentioned"}},"type":"object","required":["text"],"title":"PainPointOut"},"ParticipantRecommendationCampaignIn":{"properties":{"name":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Name"},"description":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Description"},"goal":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Goal"},"interview_context_for_employee":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Interview Context For Employee"},"success_criteria":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Success Criteria"},"topics":{"items":{"type":"string"},"type":"array","title":"Topics"},"questions":{"items":{"type":"string"},"type":"array","title":"Questions"}},"type":"object","title":"ParticipantRecommendationCampaignIn"},"ParticipantRecommendationIn":{"properties":{"workspace_id":{"type":"string","format":"uuid","title":"Workspace Id"},"interview_id":{"anyOf":[{"type":"string","format":"uuid"},{"type":"null"}],"title":"Interview Id"},"limit":{"type":"integer","maximum":12.0,"minimum":1.0,"title":"Limit","default":5},"campaign":{"$ref":"#/components/schemas/ParticipantRecommendationCampaignIn"},"existing_person_ids":{"items":{"type":"string","format":"uuid"},"type":"array","title":"Existing Person Ids"},"existing_emails":{"items":{"type":"string"},"type":"array","title":"Existing Emails"}},"type":"object","required":["workspace_id"],"title":"ParticipantRecommendationIn"},"ParticipantRecommendationOut":{"properties":{"id":{"type":"string","format":"uuid","title":"Id"},"workspace_id":{"type":"string","format":"uuid","title":"Workspace Id"},"user_id":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"User Id"},"name":{"type":"string","title":"Name"},"email":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Email"},"phone":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Phone"},"job_title":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Job Title"},"department":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Department"},"seniority_level":{"anyOf":[{"type":"integer"},{"type":"null"}],"title":"Seniority Level"},"seniority_label":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Seniority Label"},"person_type":{"type":"string","title":"Person Type"},"source":{"type":"string","title":"Source"},"audience_filter_attributes":{"additionalProperties":{"items":{"type":"string"},"type":"array"},"type":"object","title":"Audience Filter Attributes"},"image_url":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Image Url"},"group_ids":{"items":{"type":"string","format":"uuid"},"type":"array","title":"Group Ids"},"group_names":{"items":{"type":"string"},"type":"array","title":"Group Names"},"campaign_count":{"type":"integer","title":"Campaign Count","default":0},"completed_count":{"type":"integer","title":"Completed Count","default":0},"last_participated_at":{"anyOf":[{"type":"string","format":"date-time"},{"type":"null"}],"title":"Last Participated At"},"channels":{"items":{"type":"string"},"type":"array","title":"Channels"},"created_at":{"type":"string","format":"date-time","title":"Created At"},"updated_at":{"type":"string","format":"date-time","title":"Updated At"},"score":{"type":"number","title":"Score"},"reasons":{"items":{"type":"string"},"type":"array","title":"Reasons"},"matched_campaigns":{"items":{"type":"string"},"type":"array","title":"Matched Campaigns"}},"type":"object","required":["id","workspace_id","name","person_type","source","created_at","updated_at","score"],"title":"ParticipantRecommendationOut"},"ParticipantRecommendationsOut":{"properties":{"recommendations":{"items":{"$ref":"#/components/schemas/ParticipantRecommendationOut"},"type":"array","title":"Recommendations"}},"type":"object","required":["recommendations"],"title":"ParticipantRecommendationsOut"},"PassageOut":{"properties":{"key":{"type":"string","title":"Key"},"text":{"type":"string","title":"Text"},"contact_name":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Contact Name"},"department":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Department"},"job_title":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Job Title"},"seniority_level":{"anyOf":[{"type":"integer"},{"type":"null"}],"title":"Seniority Level"},"similarity_score":{"type":"number","title":"Similarity Score","default":0.0}},"type":"object","required":["key","text"],"title":"PassageOut"},"PasteRequest":{"properties":{"source_name":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Source Name","description":"Name/description of the data source"},"metadata":{"additionalProperties":true,"type":"object","title":"Metadata","description":"Additional metadata"},"content":{"type":"string","title":"Content","description":"Raw content to process"},"format_hint":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Format Hint","description":"Hint about the format (csv, json, etc.)"}},"type":"object","required":["content"],"title":"PasteRequest","description":"Request with pasted/raw text content."},"PatternOut":{"properties":{"theme":{"type":"string","title":"Theme"},"description":{"type":"string","title":"Description"},"mention_count":{"type":"integer","title":"Mention Count"},"total_respondents":{"type":"integer","title":"Total Respondents"},"percentage":{"type":"number","title":"Percentage"},"departments_affected":{"items":{"type":"string"},"type":"array","title":"Departments Affected"},"supporting_passage_keys":{"items":{"type":"string"},"type":"array","title":"Supporting Passage Keys"}},"type":"object","required":["theme","description","mention_count","total_respondents","percentage","departments_affected","supporting_passage_keys"],"title":"PatternOut"},"PeopleGroupCreate":{"properties":{"workspace_id":{"type":"string","format":"uuid","title":"Workspace Id"},"name":{"type":"string","maxLength":255,"minLength":1,"title":"Name"}},"type":"object","required":["workspace_id","name"],"title":"PeopleGroupCreate"},"PeopleGroupOut":{"properties":{"id":{"type":"string","format":"uuid","title":"Id"},"workspace_id":{"type":"string","format":"uuid","title":"Workspace Id"},"name":{"type":"string","title":"Name"},"member_count":{"type":"integer","title":"Member Count","default":0},"created_by":{"anyOf":[{"type":"string"},{"type":"null"}],"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","workspace_id","name","created_at","updated_at"],"title":"PeopleGroupOut"},"PeopleImportResult":{"properties":{"imported":{"type":"integer","title":"Imported"},"updated":{"type":"integer","title":"Updated"},"skipped":{"type":"integer","title":"Skipped"},"errors":{"items":{"type":"string"},"type":"array","title":"Errors"}},"type":"object","required":["imported","updated","skipped"],"title":"PeopleImportResult"},"PeopleListPageOut":{"properties":{"people":{"items":{"$ref":"#/components/schemas/PersonListItemOut"},"type":"array","title":"People"},"groups":{"items":{"$ref":"#/components/schemas/PeopleGroupOut"},"type":"array","title":"Groups"}},"type":"object","required":["people","groups"],"title":"PeopleListPageOut"},"PersonCampaignOut":{"properties":{"interview_id":{"type":"string","format":"uuid","title":"Interview Id"},"interview_name":{"type":"string","title":"Interview Name"},"contact_id":{"type":"string","format":"uuid","title":"Contact Id"},"status":{"type":"string","title":"Status"},"completed_at":{"anyOf":[{"type":"string","format":"date-time"},{"type":"null"}],"title":"Completed At"},"created_at":{"type":"string","format":"date-time","title":"Created At"}},"type":"object","required":["interview_id","interview_name","contact_id","status","created_at"],"title":"PersonCampaignOut"},"PersonCreate":{"properties":{"workspace_id":{"type":"string","format":"uuid","title":"Workspace Id"},"name":{"anyOf":[{"type":"string","maxLength":255},{"type":"null"}],"title":"Name"},"email":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Email"},"phone":{"anyOf":[{"type":"string","maxLength":50},{"type":"null"}],"title":"Phone"},"job_title":{"anyOf":[{"type":"string","maxLength":255},{"type":"null"}],"title":"Job Title"},"department":{"anyOf":[{"type":"string","maxLength":255},{"type":"null"}],"title":"Department"},"seniority_label":{"anyOf":[{"type":"string","maxLength":255},{"type":"null"}],"title":"Seniority Label"},"seniority_level":{"anyOf":[{"type":"integer","maximum":6.0,"minimum":1.0},{"type":"null"}],"title":"Seniority Level"},"person_type":{"anyOf":[{"$ref":"#/components/schemas/PersonType"},{"type":"null"}]},"group_ids":{"items":{"type":"string","format":"uuid"},"type":"array","title":"Group Ids"}},"type":"object","required":["workspace_id"],"title":"PersonCreate"},"PersonDetailOut":{"properties":{"person":{"$ref":"#/components/schemas/PersonOut"},"campaigns":{"items":{"$ref":"#/components/schemas/PersonCampaignOut"},"type":"array","title":"Campaigns"},"transcripts":{"items":{"$ref":"#/components/schemas/PersonTranscriptOut"},"type":"array","title":"Transcripts"},"insights":{"items":{"$ref":"#/components/schemas/PersonInsightOut"},"type":"array","title":"Insights"}},"type":"object","required":["person","campaigns","transcripts","insights"],"title":"PersonDetailOut"},"PersonInsightOut":{"properties":{"interview_id":{"type":"string","format":"uuid","title":"Interview Id"},"interview_name":{"type":"string","title":"Interview Name"},"contact_id":{"type":"string","format":"uuid","title":"Contact Id"},"role_description":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Role Description"},"digital_maturity":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Digital Maturity"},"work_style":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Work Style"},"key_frictions":{"anyOf":[{"items":{},"type":"array"},{"type":"null"}],"title":"Key Frictions"},"tools_used":{"anyOf":[{"items":{},"type":"array"},{"type":"null"}],"title":"Tools Used"},"processes":{"anyOf":[{"items":{},"type":"array"},{"type":"null"}],"title":"Processes"},"portrait_summary":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Portrait Summary"},"extracted_pain_points":{"anyOf":[{"items":{},"type":"array"},{"type":"null"}],"title":"Extracted Pain Points"},"tools_mentioned":{"anyOf":[{"items":{},"type":"array"},{"type":"null"}],"title":"Tools Mentioned"},"processes_touched":{"anyOf":[{"items":{},"type":"array"},{"type":"null"}],"title":"Processes Touched"},"digital_maturity_score":{"anyOf":[{"type":"integer"},{"type":"null"}],"title":"Digital Maturity Score"}},"type":"object","required":["interview_id","interview_name","contact_id"],"title":"PersonInsightOut"},"PersonListItemOut":{"properties":{"id":{"type":"string","format":"uuid","title":"Id"},"workspace_id":{"type":"string","format":"uuid","title":"Workspace Id"},"user_id":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"User Id"},"name":{"type":"string","title":"Name"},"email":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Email"},"phone":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Phone"},"job_title":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Job Title"},"department":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Department"},"seniority_level":{"anyOf":[{"type":"integer"},{"type":"null"}],"title":"Seniority Level"},"seniority_label":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Seniority Label"},"person_type":{"type":"string","title":"Person Type"},"source":{"type":"string","title":"Source"},"audience_filter_attributes":{"additionalProperties":{"items":{"type":"string"},"type":"array"},"type":"object","title":"Audience Filter Attributes"},"image_url":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Image Url"},"group_ids":{"items":{"type":"string","format":"uuid"},"type":"array","title":"Group Ids"},"group_names":{"items":{"type":"string"},"type":"array","title":"Group Names"},"campaign_count":{"type":"integer","title":"Campaign Count","default":0},"completed_count":{"type":"integer","title":"Completed Count","default":0},"last_participated_at":{"anyOf":[{"type":"string","format":"date-time"},{"type":"null"}],"title":"Last Participated At"},"channels":{"items":{"type":"string"},"type":"array","title":"Channels"},"created_at":{"type":"string","format":"date-time","title":"Created At"},"updated_at":{"type":"string","format":"date-time","title":"Updated At"}},"type":"object","required":["id","workspace_id","name","person_type","source","created_at","updated_at"],"title":"PersonListItemOut"},"PersonOut":{"properties":{"id":{"type":"string","format":"uuid","title":"Id"},"workspace_id":{"type":"string","format":"uuid","title":"Workspace Id"},"user_id":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"User Id"},"source_connection_id":{"anyOf":[{"type":"string","format":"uuid"},{"type":"null"}],"title":"Source Connection Id"},"external_id":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"External Id"},"name":{"type":"string","title":"Name"},"email":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Email"},"phone":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Phone"},"job_title":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Job Title"},"department":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Department"},"seniority_level":{"anyOf":[{"type":"integer"},{"type":"null"}],"title":"Seniority Level"},"seniority_label":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Seniority Label"},"person_type":{"type":"string","title":"Person Type"},"source":{"type":"string","title":"Source"},"source_attributes_json":{"anyOf":[{"additionalProperties":true,"type":"object"},{"type":"null"}],"title":"Source Attributes Json"},"image_url":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Image Url"},"group_ids":{"items":{"type":"string","format":"uuid"},"type":"array","title":"Group Ids"},"group_names":{"items":{"type":"string"},"type":"array","title":"Group Names"},"campaign_count":{"type":"integer","title":"Campaign Count","default":0},"completed_count":{"type":"integer","title":"Completed Count","default":0},"last_participated_at":{"anyOf":[{"type":"string","format":"date-time"},{"type":"null"}],"title":"Last Participated At"},"channels":{"items":{"type":"string"},"type":"array","title":"Channels"},"teams_display_identifier":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Teams Display Identifier"},"created_at":{"type":"string","format":"date-time","title":"Created At"},"updated_at":{"type":"string","format":"date-time","title":"Updated At"}},"type":"object","required":["id","workspace_id","name","person_type","source","created_at","updated_at"],"title":"PersonOut"},"PersonTranscriptOut":{"properties":{"conversation_id":{"type":"string","format":"uuid","title":"Conversation Id"},"interview_id":{"type":"string","format":"uuid","title":"Interview Id"},"interview_name":{"type":"string","title":"Interview Name"},"contact_id":{"type":"string","format":"uuid","title":"Contact Id"},"status":{"type":"string","title":"Status"},"summary":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Summary"},"transcript":{"anyOf":[{"items":{},"type":"array"},{"type":"null"}],"title":"Transcript"},"started_at":{"anyOf":[{"type":"string","format":"date-time"},{"type":"null"}],"title":"Started At"},"ended_at":{"anyOf":[{"type":"string","format":"date-time"},{"type":"null"}],"title":"Ended At"},"duration_minutes":{"anyOf":[{"type":"integer"},{"type":"null"}],"title":"Duration Minutes"}},"type":"object","required":["conversation_id","interview_id","interview_name","contact_id","status"],"title":"PersonTranscriptOut"},"PersonType":{"type":"string","enum":["internal","external"],"title":"PersonType"},"PersonUpdate":{"properties":{"name":{"anyOf":[{"type":"string","maxLength":255,"minLength":1},{"type":"null"}],"title":"Name"},"email":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Email"},"phone":{"anyOf":[{"type":"string","maxLength":50},{"type":"null"}],"title":"Phone"},"job_title":{"anyOf":[{"type":"string","maxLength":255},{"type":"null"}],"title":"Job Title"},"department":{"anyOf":[{"type":"string","maxLength":255},{"type":"null"}],"title":"Department"},"seniority_label":{"anyOf":[{"type":"string","maxLength":255},{"type":"null"}],"title":"Seniority Label"},"seniority_level":{"anyOf":[{"type":"integer","maximum":6.0,"minimum":1.0},{"type":"null"}],"title":"Seniority Level"},"person_type":{"anyOf":[{"$ref":"#/components/schemas/PersonType"},{"type":"null"}]},"group_ids":{"anyOf":[{"items":{"type":"string","format":"uuid"},"type":"array"},{"type":"null"}],"title":"Group Ids"}},"type":"object","title":"PersonUpdate"},"PersonaOut":{"properties":{"id":{"type":"string","format":"uuid","title":"Id"},"contact_id":{"anyOf":[{"type":"string","format":"uuid"},{"type":"null"}],"title":"Contact Id"},"name":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Name"},"job_title":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Job Title"},"department":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Department"},"role_description":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Role Description"},"work_style":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Work Style"},"key_frictions":{"anyOf":[{"items":{"type":"string"},"type":"array"},{"type":"null"}],"title":"Key Frictions"},"tools_used":{"anyOf":[{"items":{"type":"string"},"type":"array"},{"type":"null"}],"title":"Tools Used"},"processes":{"anyOf":[{"items":{"type":"string"},"type":"array"},{"type":"null"}],"title":"Processes"},"portrait_summary":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Portrait Summary"}},"type":"object","required":["id","contact_id","name","job_title","department","role_description","work_style","key_frictions","tools_used","processes","portrait_summary"],"title":"PersonaOut"},"PersonioConnectRequest":{"properties":{"workspace_id":{"type":"string","format":"uuid","title":"Workspace Id"},"client_id":{"type":"string","maxLength":512,"minLength":1,"title":"Client Id"},"client_secret":{"type":"string","maxLength":2048,"minLength":1,"title":"Client Secret"},"attributes":{"items":{"type":"string"},"type":"array","title":"Attributes"},"create_department_groups":{"type":"boolean","title":"Create Department Groups","default":false},"sync_now":{"type":"boolean","title":"Sync Now","default":true}},"type":"object","required":["workspace_id","client_id","client_secret"],"title":"PersonioConnectRequest"},"PersonioConnectResponse":{"properties":{"id":{"type":"string","format":"uuid","title":"Id"},"workspace_id":{"type":"string","format":"uuid","title":"Workspace Id"},"source_type":{"$ref":"#/components/schemas/SourceType"},"nango_connection_id":{"type":"string","title":"Nango Connection Id"},"display_name":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Display Name"},"sync_status":{"type":"string","title":"Sync Status"},"message":{"type":"string","title":"Message"},"fetched":{"type":"integer","title":"Fetched","default":0},"upserted":{"type":"integer","title":"Upserted","default":0},"skipped":{"type":"integer","title":"Skipped","default":0},"stale_hidden":{"type":"integer","title":"Stale Hidden","default":0},"groups_created":{"type":"integer","title":"Groups Created","default":0},"groups_assigned":{"type":"integer","title":"Groups Assigned","default":0},"attributes":{"items":{"type":"string"},"type":"array","title":"Attributes"},"create_department_groups":{"type":"boolean","title":"Create Department Groups"}},"type":"object","required":["id","workspace_id","source_type","nango_connection_id","sync_status","message","attributes","create_department_groups"],"title":"PersonioConnectResponse"},"PersonioPeopleSyncRequest":{"properties":{"create_department_groups":{"anyOf":[{"type":"boolean"},{"type":"null"}],"title":"Create Department Groups"},"attributes":{"anyOf":[{"items":{"type":"string"},"type":"array"},{"type":"null"}],"title":"Attributes"}},"type":"object","title":"PersonioPeopleSyncRequest"},"PersonioPeopleSyncResponse":{"properties":{"fetched":{"type":"integer","title":"Fetched"},"upserted":{"type":"integer","title":"Upserted"},"skipped":{"type":"integer","title":"Skipped"},"stale_hidden":{"type":"integer","title":"Stale Hidden","default":0},"groups_created":{"type":"integer","title":"Groups Created"},"groups_assigned":{"type":"integer","title":"Groups Assigned"},"sync_status":{"type":"string","title":"Sync Status"},"message":{"type":"string","title":"Message"},"attributes":{"items":{"type":"string"},"type":"array","title":"Attributes"},"create_department_groups":{"type":"boolean","title":"Create Department Groups"},"synced_at":{"type":"string","title":"Synced At"}},"type":"object","required":["fetched","upserted","skipped","groups_created","groups_assigned","sync_status","message","attributes","create_department_groups","synced_at"],"title":"PersonioPeopleSyncResponse"},"PreferencesOut":{"properties":{"professional_domain":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Professional Domain"},"locale":{"anyOf":[{"type":"string","enum":["en","de"]},{"type":"null"}],"title":"Locale"}},"type":"object","title":"PreferencesOut"},"PreferencesUpdate":{"properties":{"professional_domain":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Professional Domain"},"locale":{"anyOf":[{"type":"string","enum":["en","de"]},{"type":"null"}],"title":"Locale"}},"type":"object","title":"PreferencesUpdate"},"PreviewSessionRequest":{"properties":{"agent_id":{"anyOf":[{"type":"string","format":"uuid"},{"type":"null"}],"title":"Agent Id"},"draft":{"anyOf":[{"additionalProperties":true,"type":"object"},{"type":"null"}],"title":"Draft"}},"type":"object","title":"PreviewSessionRequest"},"PreviewSessionResponse":{"properties":{"prompt_sections":{"items":{"additionalProperties":{"type":"string"},"type":"object"},"type":"array","title":"Prompt Sections"}},"type":"object","required":["prompt_sections"],"title":"PreviewSessionResponse"},"ProcessDetailOut":{"properties":{"process":{"$ref":"#/components/schemas/ProcessSummaryOut"},"objective":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Objective"},"graph_json":{"anyOf":[{"additionalProperties":true,"type":"object"},{"type":"null"}],"title":"Graph Json"},"subprocesses":{"items":{"$ref":"#/components/schemas/ProcessSummaryOut"},"type":"array","title":"Subprocesses"},"steps":{"items":{"$ref":"#/components/schemas/StepSummaryOut"},"type":"array","title":"Steps"}},"type":"object","required":["process","objective","graph_json","subprocesses","steps"],"title":"ProcessDetailOut"},"ProcessSummaryOut":{"properties":{"id":{"type":"string","format":"uuid","title":"Id"},"name":{"type":"string","title":"Name"},"slug":{"type":"string","title":"Slug"},"category":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Category"},"description":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Description"},"department_tags":{"anyOf":[{"items":{"type":"string"},"type":"array"},{"type":"null"}],"title":"Department Tags"},"collaborator_count":{"type":"integer","title":"Collaborator Count"},"step_count":{"type":"integer","title":"Step Count"},"pain_point_count":{"type":"integer","title":"Pain Point Count"},"sort_order":{"type":"integer","title":"Sort Order"}},"type":"object","required":["id","name","slug","category","description","department_tags","collaborator_count","step_count","pain_point_count","sort_order"],"title":"ProcessSummaryOut"},"ProgressOut":{"properties":{"total":{"type":"integer","title":"Total"},"pending":{"type":"integer","title":"Pending"},"scheduled":{"type":"integer","title":"Scheduled"},"in_progress":{"type":"integer","title":"In Progress"},"completed":{"type":"integer","title":"Completed"},"failed":{"type":"integer","title":"Failed"},"skipped":{"type":"integer","title":"Skipped"},"completion_percent":{"type":"number","title":"Completion Percent"},"target_threshold":{"type":"integer","title":"Target Threshold"}},"type":"object","required":["total","pending","scheduled","in_progress","completed","failed","skipped","completion_percent","target_threshold"],"title":"ProgressOut"},"ProjectCreate":{"properties":{"workspace_id":{"type":"string","format":"uuid","title":"Workspace Id"},"name":{"type":"string","title":"Name"},"description":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Description"},"vault_ids":{"items":{"type":"string","format":"uuid"},"type":"array","title":"Vault Ids","default":[]},"is_personal":{"type":"boolean","title":"Is Personal","default":false}},"type":"object","required":["workspace_id","name"],"title":"ProjectCreate"},"ProjectGraphOut":{"properties":{"nodes":{"items":{"$ref":"#/components/schemas/GraphNodeOut"},"type":"array","title":"Nodes"},"edges":{"items":{"$ref":"#/components/schemas/GraphEdgeOut"},"type":"array","title":"Edges"}},"type":"object","required":["nodes","edges"],"title":"ProjectGraphOut"},"ProjectOut":{"properties":{"id":{"type":"string","format":"uuid","title":"Id"},"workspace_id":{"type":"string","format":"uuid","title":"Workspace Id"},"name":{"type":"string","title":"Name"},"description":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Description"},"status":{"type":"string","title":"Status"},"vault_ids":{"items":{"type":"string","format":"uuid"},"type":"array","title":"Vault Ids"},"owner_user_id":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Owner User Id"},"is_personal":{"type":"boolean","title":"Is Personal","default":false},"collaborator_count":{"type":"integer","title":"Collaborator Count","default":0},"my_role":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"My Role"},"created_at":{"type":"string","format":"date-time","title":"Created At"},"updated_at":{"type":"string","format":"date-time","title":"Updated At"}},"type":"object","required":["id","workspace_id","name","description","status","vault_ids","created_at","updated_at"],"title":"ProjectOut"},"ProjectUpdate":{"properties":{"name":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Name"},"description":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Description"},"vault_ids":{"anyOf":[{"items":{"type":"string","format":"uuid"},"type":"array"},{"type":"null"}],"title":"Vault Ids"},"status":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Status"}},"type":"object","title":"ProjectUpdate"},"ProvenanceLinkOut":{"properties":{"claim":{"type":"string","title":"Claim"},"passages":{"items":{"$ref":"#/components/schemas/PassageOut"},"type":"array","title":"Passages"}},"type":"object","required":["claim","passages"],"title":"ProvenanceLinkOut"},"PublicAnonymitySelectionRequest":{"properties":{"anonymity_level":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Anonymity Level"}},"type":"object","title":"PublicAnonymitySelectionRequest"},"PublicAnonymitySelectionResponse":{"properties":{"anonymity_level":{"type":"string","title":"Anonymity Level"},"selected_anonymity_level":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Selected Anonymity Level"},"record_audio":{"type":"boolean","title":"Record Audio","default":true}},"type":"object","required":["anonymity_level"],"title":"PublicAnonymitySelectionResponse"},"PublicReportOut":{"properties":{"version_number":{"type":"integer","title":"Version Number"},"completed_at":{"anyOf":[{"type":"string","format":"date-time"},{"type":"null"}],"title":"Completed At"},"report_artifacts":{"anyOf":[{"additionalProperties":true,"type":"object"},{"type":"null"}],"title":"Report Artifacts"}},"type":"object","required":["version_number"],"title":"PublicReportOut","description":"Deliberately minimal public report payload.\n\nOnly what the public share page renders — the report body plus a version\nmarker. Excludes the internal fields ReportVersionOut carries (agent_run_id,\ncoverage_snapshot with department rosters/counts, trigger_reason,\nerror_message, conversation_count) that an anonymous, forwardable link must\nnot leak."},"PublicVoiceSelectionRequest":{"properties":{"voice_id":{"type":"string","title":"Voice Id"},"voice_language":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Voice Language"},"voice_provider":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Voice Provider"}},"type":"object","required":["voice_id"],"title":"PublicVoiceSelectionRequest"},"PublicVoiceSelectionResponse":{"properties":{"voice_id":{"type":"string","title":"Voice Id"},"voice_language":{"type":"string","title":"Voice Language"},"voice_provider":{"type":"string","title":"Voice Provider"},"voice_speed":{"type":"number","title":"Voice Speed"}},"type":"object","required":["voice_id","voice_language","voice_provider","voice_speed"],"title":"PublicVoiceSelectionResponse"},"QueryRequest":{"properties":{"workspace_id":{"type":"string","format":"uuid","title":"Workspace Id"},"prompt":{"type":"string","title":"Prompt"},"vault_ids":{"anyOf":[{"items":{"type":"string","format":"uuid"},"type":"array"},{"type":"null"}],"title":"Vault Ids"},"depth":{"type":"integer","title":"Depth","default":2},"top_k_chunks":{"type":"integer","title":"Top K Chunks","default":20},"include_deals":{"type":"boolean","title":"Include Deals","default":false},"include_meetings":{"type":"boolean","title":"Include Meetings","default":false},"include_claims":{"type":"boolean","title":"Include Claims","default":false}},"type":"object","required":["workspace_id","prompt"],"title":"QueryRequest"},"QueryResponse":{"properties":{"answer":{"type":"string","title":"Answer"},"citations":{"items":{"$ref":"#/components/schemas/Citation"},"type":"array","title":"Citations"},"entities_mentioned":{"items":{"$ref":"#/components/schemas/EntityRef"},"type":"array","title":"Entities Mentioned","default":[]},"related_deals":{"items":{"$ref":"#/components/schemas/DealRef"},"type":"array","title":"Related Deals","default":[]},"related_meetings":{"items":{"$ref":"#/components/schemas/MeetingRef"},"type":"array","title":"Related Meetings","default":[]},"claims_used":{"items":{"$ref":"#/components/schemas/ClaimRef"},"type":"array","title":"Claims Used","default":[]},"debug":{"anyOf":[{"additionalProperties":true,"type":"object"},{"type":"null"}],"title":"Debug"}},"type":"object","required":["answer","citations"],"title":"QueryResponse"},"QuestionCreate":{"properties":{"question_text":{"type":"string","title":"Question Text"},"is_required":{"type":"boolean","title":"Is Required","default":true},"sort_order":{"type":"integer","title":"Sort Order","default":0},"question_type":{"$ref":"#/components/schemas/QuestionType","default":"open_ended"},"options":{"items":{"type":"string"},"type":"array","title":"Options"},"component_config":{"anyOf":[{"additionalProperties":true,"type":"object"},{"type":"null"}],"title":"Component Config"},"follow_up_rule":{"$ref":"#/components/schemas/FollowUpRule","default":"auto"},"follow_up_guideline":{"type":"string","title":"Follow Up Guideline","default":""},"requires_screen_share":{"type":"boolean","title":"Requires Screen Share","default":false},"screen_share_prompt":{"type":"string","title":"Screen Share Prompt","default":""}},"type":"object","required":["question_text"],"title":"QuestionCreate"},"QuestionOut":{"properties":{"id":{"type":"string","format":"uuid","title":"Id"},"question_set_id":{"type":"string","format":"uuid","title":"Question Set Id"},"question_text":{"type":"string","title":"Question Text"},"is_required":{"type":"boolean","title":"Is Required"},"sort_order":{"type":"integer","title":"Sort Order"},"question_type":{"$ref":"#/components/schemas/QuestionType"},"options":{"items":{"type":"string"},"type":"array","title":"Options"},"component_config":{"anyOf":[{"additionalProperties":true,"type":"object"},{"type":"null"}],"title":"Component Config"},"follow_up_rule":{"$ref":"#/components/schemas/FollowUpRule"},"follow_up_guideline":{"type":"string","title":"Follow Up Guideline","default":""},"requires_screen_share":{"type":"boolean","title":"Requires Screen Share","default":false},"screen_share_prompt":{"type":"string","title":"Screen Share Prompt","default":""},"created_at":{"type":"string","format":"date-time","title":"Created At"}},"type":"object","required":["id","question_set_id","question_text","is_required","sort_order","question_type","options","follow_up_rule","created_at"],"title":"QuestionOut"},"QuestionResultFilter":{"properties":{"question_id":{"anyOf":[{"type":"string","format":"uuid"},{"type":"null"}],"title":"Question Id"},"category_key":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Category Key"},"category_keys":{"items":{"type":"string"},"type":"array","title":"Category Keys"},"field":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Field"},"value":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Value"},"values":{"items":{"type":"string"},"type":"array","title":"Values"}},"type":"object","title":"QuestionResultFilter"},"QuestionSetCreate":{"properties":{"name":{"type":"string","title":"Name"},"description":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Description"},"sort_order":{"type":"integer","title":"Sort Order","default":0},"topic_metadata":{"anyOf":[{"additionalProperties":true,"type":"object"},{"type":"null"}],"title":"Topic Metadata"},"questions":{"items":{"$ref":"#/components/schemas/QuestionCreate"},"type":"array","title":"Questions","default":[]}},"type":"object","required":["name"],"title":"QuestionSetCreate"},"QuestionSetOut":{"properties":{"id":{"type":"string","format":"uuid","title":"Id"},"interview_id":{"type":"string","format":"uuid","title":"Interview Id"},"name":{"type":"string","title":"Name"},"description":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Description"},"sort_order":{"type":"integer","title":"Sort Order"},"topic_metadata":{"anyOf":[{"additionalProperties":true,"type":"object"},{"type":"null"}],"title":"Topic Metadata"},"questions":{"items":{"$ref":"#/components/schemas/QuestionOut"},"type":"array","title":"Questions","default":[]},"created_at":{"type":"string","format":"date-time","title":"Created At"}},"type":"object","required":["id","interview_id","name","description","sort_order","created_at"],"title":"QuestionSetOut"},"QuestionSetUpdate":{"properties":{"name":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Name"},"description":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Description"}},"type":"object","title":"QuestionSetUpdate"},"QuestionType":{"type":"string","enum":["open_ended","single_choice","multiple_choice","likert_scale","ranking","statement","range_slider","matrix"],"title":"QuestionType","description":"Shape of an interview question — drives how the agent delivers and how answers get quantified."},"QuestionUpdate":{"properties":{"question_text":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Question Text"}},"type":"object","title":"QuestionUpdate"},"ReactivateSessionRequest":{"properties":{"grace_period_minutes":{"anyOf":[{"type":"integer"},{"type":"null"}],"title":"Grace Period Minutes"}},"type":"object","title":"ReactivateSessionRequest","description":"Request to reactivate an expired or unavailable session."},"ReactivateSessionResponse":{"properties":{"contact_id":{"type":"string","format":"uuid","title":"Contact Id"},"scheduled_session_status":{"type":"string","title":"Scheduled Session Status"},"scheduled_session_expires_at":{"anyOf":[{"type":"string","format":"date-time"},{"type":"null"}],"title":"Scheduled Session Expires At"},"message":{"type":"string","title":"Message"}},"type":"object","required":["contact_id","scheduled_session_status","scheduled_session_expires_at","message"],"title":"ReactivateSessionResponse","description":"Response after reactivating a session."},"RegenerateReportResponse":{"properties":{"version":{"$ref":"#/components/schemas/ReportVersionOut"},"message":{"type":"string","title":"Message"}},"type":"object","required":["version","message"],"title":"RegenerateReportResponse"},"RegisterConnectionRequest":{"properties":{"workspace_id":{"type":"string","format":"uuid","title":"Workspace Id"},"source_type":{"$ref":"#/components/schemas/SourceType"},"nango_connection_id":{"type":"string","title":"Nango Connection Id"},"external_account_id":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"External Account Id"},"display_name":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Display Name"},"is_personal":{"type":"boolean","title":"Is Personal","default":false},"assign_to_default_vault":{"type":"boolean","title":"Assign To Default Vault","default":true},"start_sync":{"type":"boolean","title":"Start Sync","default":true}},"type":"object","required":["workspace_id","source_type","nango_connection_id"],"title":"RegisterConnectionRequest"},"RegisterConnectionResponse":{"properties":{"id":{"type":"string","format":"uuid","title":"Id"},"workspace_id":{"type":"string","format":"uuid","title":"Workspace Id"},"source_type":{"$ref":"#/components/schemas/SourceType"},"nango_connection_id":{"type":"string","title":"Nango Connection Id"},"display_name":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Display Name"},"vault_ids":{"items":{"type":"string","format":"uuid"},"type":"array","title":"Vault Ids"}},"type":"object","required":["id","workspace_id","source_type","nango_connection_id","vault_ids"],"title":"RegisterConnectionResponse"},"ReinviteResponse":{"properties":{"contact":{"$ref":"#/components/schemas/app__api__interview_schemas__ContactOut"},"invite_sent":{"type":"boolean","title":"Invite Sent"},"message":{"type":"string","title":"Message"}},"type":"object","required":["contact","invite_sent","message"],"title":"ReinviteResponse","description":"Result of re-inviting a participant who already completed an interview."},"ReportGenerationStatusOut":{"properties":{"status":{"anyOf":[{"$ref":"#/components/schemas/CampaignReportStatus"},{"type":"null"}]},"version_number":{"anyOf":[{"type":"integer"},{"type":"null"}],"title":"Version Number"},"trigger_reason":{"anyOf":[{"$ref":"#/components/schemas/CampaignReportTrigger"},{"type":"null"}]},"created_at":{"anyOf":[{"type":"string","format":"date-time"},{"type":"null"}],"title":"Created At"},"completed_at":{"anyOf":[{"type":"string","format":"date-time"},{"type":"null"}],"title":"Completed At"}},"type":"object","title":"ReportGenerationStatusOut","description":"Latest version regardless of readiness — lets the report page tell\ngenerating / failed / ready apart without downloading artifacts.\n\nDeliberately no error_message: version errors are raw worker tracebacks,\nwhich never belong in a user-facing surface."},"ReportPdfRenderRequest":{"properties":{"markdown":{"type":"string","maxLength":300000,"minLength":1,"title":"Markdown"}},"type":"object","required":["markdown"],"title":"ReportPdfRenderRequest"},"ReportSolutionOut":{"properties":{"id":{"type":"string","format":"uuid","title":"Id"},"title":{"type":"string","title":"Title"},"description":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Description"},"horizon":{"type":"string","title":"Horizon"},"quick_win":{"type":"boolean","title":"Quick Win"},"structural":{"type":"boolean","title":"Structural"},"est_savings_eur":{"anyOf":[{"type":"integer"},{"type":"null"}],"title":"Est Savings Eur"},"est_hours_saved_per_week":{"anyOf":[{"type":"integer"},{"type":"null"}],"title":"Est Hours Saved Per Week"},"affected_processes":{"anyOf":[{"items":{"type":"string"},"type":"array"},{"type":"null"}],"title":"Affected Processes"},"departments":{"anyOf":[{"items":{"type":"string"},"type":"array"},{"type":"null"}],"title":"Departments"},"contributors":{"anyOf":[{"items":{"type":"string"},"type":"array"},{"type":"null"}],"title":"Contributors"},"evidence_quotes":{"anyOf":[{"items":{"additionalProperties":true,"type":"object"},"type":"array"},{"type":"null"}],"title":"Evidence Quotes"},"implementation_notes":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Implementation Notes"},"sort_order":{"type":"integer","title":"Sort Order"}},"type":"object","required":["id","title","description","horizon","quick_win","structural","est_savings_eur","est_hours_saved_per_week","affected_processes","departments","contributors","evidence_quotes","implementation_notes","sort_order"],"title":"ReportSolutionOut"},"ReportVersionOut":{"properties":{"id":{"type":"string","format":"uuid","title":"Id"},"version_number":{"type":"integer","title":"Version Number"},"trigger_reason":{"$ref":"#/components/schemas/CampaignReportTrigger"},"status":{"$ref":"#/components/schemas/CampaignReportStatus"},"conversation_count_at_generation":{"type":"integer","title":"Conversation Count At Generation"},"coverage_snapshot":{"anyOf":[{"additionalProperties":true,"type":"object"},{"type":"null"}],"title":"Coverage Snapshot"},"agent_run_id":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Agent Run Id"},"report_artifacts":{"anyOf":[{"additionalProperties":true,"type":"object"},{"type":"null"}],"title":"Report Artifacts"},"solutions":{"items":{"$ref":"#/components/schemas/ReportSolutionOut"},"type":"array","title":"Solutions"},"error_message":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Error Message"},"created_at":{"type":"string","format":"date-time","title":"Created At"},"completed_at":{"anyOf":[{"type":"string","format":"date-time"},{"type":"null"}],"title":"Completed At"}},"type":"object","required":["id","version_number","trigger_reason","status","conversation_count_at_generation","created_at"],"title":"ReportVersionOut"},"RescheduleRequest":{"properties":{"new_time":{"anyOf":[{"type":"string","format":"date-time"},{"type":"null"}],"title":"New Time"}},"type":"object","title":"RescheduleRequest"},"RescheduleResponse":{"properties":{"contact_id":{"type":"string","format":"uuid","title":"Contact Id"},"scheduled_at":{"type":"string","format":"date-time","title":"Scheduled At"},"meeting_url":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Meeting Url"},"message":{"type":"string","title":"Message"}},"type":"object","required":["contact_id","scheduled_at","meeting_url","message"],"title":"RescheduleResponse"},"ResumeLinkEmailResponse":{"properties":{"sent":{"type":"boolean","title":"Sent"}},"type":"object","required":["sent"],"title":"ResumeLinkEmailResponse"},"RetrievalDataItem":{"properties":{"text":{"type":"string","title":"Text","description":"Retrieved text content"},"sources":{"items":{"$ref":"#/components/schemas/SourceInfo"},"type":"array","title":"Sources","description":"Sources for this content"}},"type":"object","required":["text"],"title":"RetrievalDataItem","description":"Single item in retrieval response."},"RetrievalLogOut":{"properties":{"id":{"type":"string","format":"uuid","title":"Id"},"prompt":{"type":"string","title":"Prompt"},"status":{"type":"string","title":"Status"},"duration_ms":{"type":"integer","title":"Duration Ms"},"error_message":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Error Message"},"chunks_returned":{"anyOf":[{"type":"integer"},{"type":"null"}],"title":"Chunks Returned"},"accessed_by":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Accessed By"},"created_at":{"type":"string","format":"date-time","title":"Created At"}},"type":"object","required":["id","prompt","status","duration_ms","error_message","chunks_returned","accessed_by","created_at"],"title":"RetrievalLogOut","description":"Retrieval log output for analytics."},"RetrievalRequest":{"properties":{"prompt":{"type":"string","title":"Prompt","description":"The query/question to search for"},"limit":{"type":"integer","maximum":100.0,"minimum":1.0,"title":"Limit","description":"Maximum number of results","default":20},"depth":{"type":"integer","maximum":3.0,"minimum":1.0,"title":"Depth","description":"Graph traversal depth","default":2}},"type":"object","required":["prompt"],"title":"RetrievalRequest","description":"Request body for retrieval endpoints."},"RetrievalResponse":{"properties":{"data":{"items":{"$ref":"#/components/schemas/RetrievalDataItem"},"type":"array","title":"Data","description":"Retrieved context items"}},"type":"object","required":["data"],"title":"RetrievalResponse","description":"Response from retrieval endpoint."},"ReviewOut":{"properties":{"status":{"type":"string","enum":["generating","ready","submitted"],"title":"Status"},"summary":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Summary"},"insights":{"items":{"type":"string"},"type":"array","title":"Insights"},"can_resume":{"type":"boolean","title":"Can Resume"},"result_summary_opt_in_available":{"type":"boolean","title":"Result Summary Opt In Available"},"wants_result_summary":{"type":"boolean","title":"Wants Result Summary"},"language":{"type":"string","title":"Language"}},"type":"object","required":["status","summary","insights","can_resume","result_summary_opt_in_available","wants_result_summary","language"],"title":"ReviewOut"},"ReviewSubmitIn":{"properties":{"wants_result_summary":{"anyOf":[{"type":"boolean"},{"type":"null"}],"title":"Wants Result Summary"}},"type":"object","title":"ReviewSubmitIn"},"ReviewUpdateIn":{"properties":{"summary":{"anyOf":[{"type":"string","maxLength":4000},{"type":"null"}],"title":"Summary"},"insights":{"anyOf":[{"items":{"type":"string"},"type":"array","maxItems":25},{"type":"null"}],"title":"Insights"},"wants_result_summary":{"anyOf":[{"type":"boolean"},{"type":"null"}],"title":"Wants Result Summary"}},"type":"object","title":"ReviewUpdateIn"},"RoadmapOut":{"properties":{"interview_id":{"type":"string","format":"uuid","title":"Interview Id"},"total_solutions":{"type":"integer","title":"Total Solutions"},"total_annual_savings_eur":{"type":"integer","title":"Total Annual Savings Eur"},"quick_wins":{"type":"integer","title":"Quick Wins"},"structural":{"type":"integer","title":"Structural"},"horizons":{"additionalProperties":{"items":{"$ref":"#/components/schemas/SolutionOut"},"type":"array"},"type":"object","title":"Horizons"}},"type":"object","required":["interview_id","total_solutions","total_annual_savings_eur","quick_wins","structural","horizons"],"title":"RoadmapOut"},"ScreenObservationOut":{"properties":{"id":{"type":"string","format":"uuid","title":"Id"},"screen_share_id":{"type":"string","format":"uuid","title":"Screen Share Id"},"offset_seconds":{"anyOf":[{"type":"integer"},{"type":"null"}],"title":"Offset Seconds"},"summary":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Summary"},"visible_tools":{"anyOf":[{"items":{},"type":"array"},{"type":"null"}],"title":"Visible Tools"},"process_step":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Process Step"},"visible_text":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Visible Text"},"suggested_probe":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Suggested Probe"},"analysis_status":{"type":"string","title":"Analysis Status"}},"type":"object","required":["id","screen_share_id","analysis_status"],"title":"ScreenObservationOut"},"ScreenShareDeclineRequest":{"properties":{"request_id":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Request Id"},"reason":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Reason"}},"type":"object","title":"ScreenShareDeclineRequest"},"ScreenShareOut":{"properties":{"id":{"type":"string","format":"uuid","title":"Id"},"status":{"type":"string","title":"Status"},"request_id":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Request Id"},"started_at":{"anyOf":[{"type":"string","format":"date-time"},{"type":"null"}],"title":"Started At"},"stopped_at":{"anyOf":[{"type":"string","format":"date-time"},{"type":"null"}],"title":"Stopped At"},"duration_seconds":{"anyOf":[{"type":"integer"},{"type":"null"}],"title":"Duration Seconds"},"recording_mime_type":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Recording Mime Type"},"recording_size_bytes":{"anyOf":[{"type":"integer"},{"type":"null"}],"title":"Recording Size Bytes"},"recording_error":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Recording Error"},"expected_chunk_count":{"anyOf":[{"type":"integer"},{"type":"null"}],"title":"Expected Chunk Count"},"uploaded_bytes":{"type":"integer","title":"Uploaded Bytes","default":0}},"type":"object","required":["id","status"],"title":"ScreenShareOut"},"ScreenShareStartRequest":{"properties":{"request_id":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Request Id"},"prompt":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Prompt"},"reason":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Reason"}},"type":"object","title":"ScreenShareStartRequest"},"ScreenShareStopRequest":{"properties":{"duration_seconds":{"anyOf":[{"type":"integer"},{"type":"null"}],"title":"Duration Seconds"},"expected_chunk_count":{"anyOf":[{"type":"integer"},{"type":"null"}],"title":"Expected Chunk Count"}},"type":"object","title":"ScreenShareStopRequest"},"ScreenSnapshotRequest":{"properties":{"image_base64":{"type":"string","title":"Image Base64"},"offset_seconds":{"anyOf":[{"type":"integer"},{"type":"null"}],"title":"Offset Seconds"},"metadata":{"anyOf":[{"additionalProperties":true,"type":"object"},{"type":"null"}],"title":"Metadata"}},"type":"object","required":["image_base64"],"title":"ScreenSnapshotRequest"},"ScreenshotUploadOut":{"properties":{"url":{"type":"string","title":"Url"},"storage_path":{"type":"string","title":"Storage Path"}},"type":"object","required":["url","storage_path"],"title":"ScreenshotUploadOut"},"SearchRequest":{"properties":{"query":{"type":"string","maxLength":1000,"minLength":1,"title":"Query"},"modes":{"items":{"type":"string"},"type":"array","title":"Modes","description":"Search modes: context, meeting","default":["context"]},"workspace_id":{"type":"string","format":"uuid","title":"Workspace Id"},"vault_ids":{"anyOf":[{"items":{"type":"string","format":"uuid"},"type":"array"},{"type":"null"}],"title":"Vault Ids"},"project_id":{"anyOf":[{"type":"string","format":"uuid"},{"type":"null"}],"title":"Project Id"},"top_k":{"type":"integer","maximum":20.0,"minimum":1.0,"title":"Top K","default":5},"generate_answer":{"type":"boolean","title":"Generate Answer","default":true}},"type":"object","required":["query","workspace_id"],"title":"SearchRequest"},"SearchResponse":{"properties":{"answer":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Answer"},"context_chunks":{"items":{"$ref":"#/components/schemas/ContextChunk"},"type":"array","title":"Context Chunks","default":[]},"sources":{"items":{"$ref":"#/components/schemas/SourceItem"},"type":"array","title":"Sources","default":[]},"modes_used":{"items":{"type":"string"},"type":"array","title":"Modes Used","default":[]}},"type":"object","title":"SearchResponse"},"SenderAddressBody":{"properties":{"name":{"anyOf":[{"type":"string","maxLength":120},{"type":"null"}],"title":"Name"},"email":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Email"},"domain_verified":{"anyOf":[{"type":"boolean"},{"type":"null"}],"title":"Domain Verified"},"oauth_connection_id":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Oauth Connection Id"}},"type":"object","title":"SenderAddressBody"},"SessionFeedbackIn":{"properties":{"rating":{"type":"number","maximum":5.0,"minimum":0.0,"title":"Rating","description":"Star rating from 0 to 5 (half stars allowed)"},"suggestions":{"items":{"type":"string"},"type":"array","maxItems":10,"title":"Suggestions","description":"Selected feedback suggestion chips"},"additional_feedback":{"anyOf":[{"type":"string","maxLength":2000},{"type":"null"}],"title":"Additional Feedback","description":"Free-form additional feedback"}},"type":"object","required":["rating"],"title":"SessionFeedbackIn","description":"Session-level feedback submitted at the end of an interview."},"SessionRecordingsRequest":{"properties":{"posthog_recording_url":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Posthog Recording Url"}},"type":"object","title":"SessionRecordingsRequest","description":"Replay URL captured by the interviewee's browser for admin debugging."},"SessionRecordingsResponse":{"properties":{"posthog_recording_url":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Posthog Recording Url"}},"type":"object","required":["posthog_recording_url"],"title":"SessionRecordingsResponse"},"SessionStatusResponse":{"properties":{"is_accessible":{"type":"boolean","title":"Is Accessible"},"status":{"type":"string","title":"Status"},"participant_review_enabled":{"type":"boolean","title":"Participant Review Enabled","default":false},"status_message":{"type":"string","title":"Status Message"},"scheduled_at":{"anyOf":[{"type":"string","format":"date-time"},{"type":"null"}],"title":"Scheduled At"},"expires_at":{"anyOf":[{"type":"string","format":"date-time"},{"type":"null"}],"title":"Expires At"},"can_start_now":{"type":"boolean","title":"Can Start Now"}},"type":"object","required":["is_accessible","status","status_message","scheduled_at","expires_at","can_start_now"],"title":"SessionStatusResponse","description":"Public session status check response."},"SlackImportUsersRequest":{"properties":{"workspace_id":{"type":"string","format":"uuid","title":"Workspace Id"},"user_ids":{"items":{"type":"string"},"type":"array","maxItems":500,"title":"User Ids"}},"type":"object","required":["workspace_id"],"title":"SlackImportUsersRequest"},"SlackImportUsersResponse":{"properties":{"people":{"items":{"$ref":"#/components/schemas/SlackImportedPersonOut"},"type":"array","title":"People"}},"type":"object","required":["people"],"title":"SlackImportUsersResponse"},"SlackImportedPersonOut":{"properties":{"id":{"type":"string","format":"uuid","title":"Id"},"name":{"type":"string","title":"Name"},"email":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Email"},"slack_user_id":{"type":"string","title":"Slack User Id"},"slack_team_id":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Slack Team Id"},"avatar_url":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Avatar Url"},"person_type":{"type":"string","title":"Person Type"},"person_source":{"type":"string","title":"Person Source"}},"type":"object","required":["id","name","slack_user_id","person_type","person_source"],"title":"SlackImportedPersonOut"},"SlackUserOut":{"properties":{"id":{"type":"string","title":"Id"},"team_id":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Team Id"},"name":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Name"},"email":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Email"},"avatar_url":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Avatar Url"}},"type":"object","required":["id"],"title":"SlackUserOut"},"SlackUsersResponse":{"properties":{"users":{"items":{"$ref":"#/components/schemas/SlackUserOut"},"type":"array","title":"Users"}},"type":"object","required":["users"],"title":"SlackUsersResponse"},"SolutionOut":{"properties":{"id":{"type":"string","format":"uuid","title":"Id"},"title":{"type":"string","title":"Title"},"description":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Description"},"horizon":{"type":"string","title":"Horizon"},"quick_win":{"type":"boolean","title":"Quick Win"},"structural":{"type":"boolean","title":"Structural"},"est_savings_eur":{"anyOf":[{"type":"integer"},{"type":"null"}],"title":"Est Savings Eur"},"est_hours_saved_per_week":{"anyOf":[{"type":"integer"},{"type":"null"}],"title":"Est Hours Saved Per Week"},"affected_processes":{"anyOf":[{"items":{"type":"string"},"type":"array"},{"type":"null"}],"title":"Affected Processes"},"departments":{"anyOf":[{"items":{"type":"string"},"type":"array"},{"type":"null"}],"title":"Departments"},"contributors":{"anyOf":[{"items":{"type":"string"},"type":"array"},{"type":"null"}],"title":"Contributors"},"evidence_quotes":{"anyOf":[{"items":{"additionalProperties":true,"type":"object"},"type":"array"},{"type":"null"}],"title":"Evidence Quotes"},"implementation_notes":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Implementation Notes"},"sort_order":{"type":"integer","title":"Sort Order"}},"type":"object","required":["id","title","description","horizon","quick_win","structural","est_savings_eur","est_hours_saved_per_week","affected_processes","departments","contributors","evidence_quotes","implementation_notes","sort_order"],"title":"SolutionOut"},"SourceInfo":{"properties":{"source_id":{"type":"string","title":"Source Id","description":"Document ID from the source system"},"source_url":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Source Url","description":"URL to the source document"},"source_data_type":{"type":"string","title":"Source Data Type","description":"Type of data (File, Email, Page, etc.)"},"source_integration":{"type":"string","title":"Source Integration","description":"Integration name (GoogleDrive, Gmail, Notion, etc.)"}},"type":"object","required":["source_id","source_data_type","source_integration"],"title":"SourceInfo","description":"Source information for a retrieved chunk."},"SourceItem":{"properties":{"url":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Url"},"title":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Title"},"source_type":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Source Type"},"snippet":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Snippet"}},"type":"object","title":"SourceItem"},"SourceType":{"type":"string","enum":["gmail","notion","google-drive","company-foundation","voice-session","hubspot","pipedrive","google-calendar","attio","personio","slack","manual","interview","gmail-send","msteams-send"],"title":"SourceType"},"StakeholderResponse":{"properties":{"key":{"type":"string","title":"Key"},"name":{"type":"string","title":"Name"},"email":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Email"},"title":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Title"},"stakeholder_type":{"type":"string","title":"Stakeholder Type"},"influence_score":{"anyOf":[{"type":"integer"},{"type":"null"}],"title":"Influence Score"},"company_name":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Company Name"}},"type":"object","required":["key","name","stakeholder_type"],"title":"StakeholderResponse"},"StartInterviewResponse":{"properties":{"interview":{"$ref":"#/components/schemas/InterviewOut"},"scheduled_count":{"type":"integer","title":"Scheduled Count"},"message":{"type":"string","title":"Message"}},"type":"object","required":["interview","scheduled_count","message"],"title":"StartInterviewResponse"},"StepDetailOut":{"properties":{"step":{"$ref":"#/components/schemas/StepSummaryOut"},"objective":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Objective"},"trigger":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Trigger"},"deliverables":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Deliverables"},"departments":{"anyOf":[{"items":{"type":"string"},"type":"array"},{"type":"null"}],"title":"Departments"},"flowchart_json":{"anyOf":[{"additionalProperties":true,"type":"object"},{"type":"null"}],"title":"Flowchart Json"},"process_id":{"type":"string","format":"uuid","title":"Process Id"},"process_name":{"type":"string","title":"Process Name"}},"type":"object","required":["step","objective","trigger","deliverables","departments","flowchart_json","process_id","process_name"],"title":"StepDetailOut"},"StepSummaryOut":{"properties":{"id":{"type":"string","format":"uuid","title":"Id"},"name":{"type":"string","title":"Name"},"slug":{"type":"string","title":"Slug"},"description":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Description"},"step_type":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Step Type"},"pain_points":{"anyOf":[{"items":{"$ref":"#/components/schemas/PainPointOut"},"type":"array"},{"type":"null"}],"title":"Pain Points"},"tools":{"anyOf":[{"items":{"type":"string"},"type":"array"},{"type":"null"}],"title":"Tools"},"contributor_count":{"type":"integer","title":"Contributor Count"},"sort_order":{"type":"integer","title":"Sort Order"}},"type":"object","required":["id","name","slug","description","step_type","pain_points","tools","contributor_count","sort_order"],"title":"StepSummaryOut"},"SubmissionCreate":{"properties":{"body":{"type":"string","maxLength":8000,"minLength":1,"title":"Body"},"category":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Category"},"route":{"anyOf":[{"type":"string","maxLength":512},{"type":"null"}],"title":"Route"},"page_url":{"anyOf":[{"type":"string","maxLength":2048},{"type":"null"}],"title":"Page Url"},"page_load_id":{"anyOf":[{"type":"string","maxLength":128},{"type":"null"}],"title":"Page Load Id"},"posthog_session_url":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Posthog Session Url"},"posthog_distinct_id":{"anyOf":[{"type":"string","maxLength":255},{"type":"null"}],"title":"Posthog Distinct Id"},"user_agent":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"User Agent"},"screen_size":{"anyOf":[{"type":"string","maxLength":32},{"type":"null"}],"title":"Screen Size"},"context_log":{"anyOf":[{"items":{"additionalProperties":true,"type":"object"},"type":"array"},{"type":"null"}],"title":"Context Log"},"screenshot_urls":{"anyOf":[{"items":{"type":"string"},"type":"array"},{"type":"null"}],"title":"Screenshot Urls"}},"type":"object","required":["body"],"title":"SubmissionCreate"},"SubmissionOut":{"properties":{"id":{"type":"string","format":"uuid","title":"Id"},"user_id":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"User Id"},"user_email":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"User Email"},"user_name":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"User Name"},"body":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Body"},"category":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Category"},"route":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Route"},"status":{"type":"string","enum":["new","triaged","resolved","archived"],"title":"Status"},"mode":{"type":"string","enum":["text","interview_turn","voice"],"title":"Mode"},"context_log_count":{"type":"integer","title":"Context Log Count"},"created_at":{"type":"string","format":"date-time","title":"Created At"},"interview_conversation_id":{"anyOf":[{"type":"string","format":"uuid"},{"type":"null"}],"title":"Interview Conversation Id"},"turn_index":{"anyOf":[{"type":"integer"},{"type":"null"}],"title":"Turn Index"},"reaction":{"anyOf":[{"type":"string","enum":["up","down"]},{"type":"null"}],"title":"Reaction"},"github_issue_url":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Github Issue Url"},"github_issue_number":{"anyOf":[{"type":"integer"},{"type":"null"}],"title":"Github Issue Number"},"linear_issue_url":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Linear Issue Url"},"linear_issue_identifier":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Linear Issue Identifier"}},"type":"object","required":["id","user_id","user_email","user_name","body","category","route","status","mode","context_log_count","created_at"],"title":"SubmissionOut"},"SyncControlResponse":{"properties":{"source_connection_id":{"type":"string","title":"Source Connection Id"},"action":{"type":"string","title":"Action"},"status":{"type":"string","title":"Status"}},"type":"object","required":["source_connection_id","action","status"],"title":"SyncControlResponse"},"SyncFrequencyRequest":{"properties":{"frequency":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Frequency"}},"type":"object","title":"SyncFrequencyRequest"},"SyncFrequencyResponse":{"properties":{"source_connection_id":{"type":"string","title":"Source Connection Id"},"frequency":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Frequency"},"status":{"type":"string","title":"Status"}},"type":"object","required":["source_connection_id","frequency","status"],"title":"SyncFrequencyResponse"},"SyncLogEntry":{"properties":{"id":{"type":"string","title":"Id"},"project_id":{"type":"string","title":"Project Id"},"synced_node_keys":{"anyOf":[{"items":{"type":"string"},"type":"array"},{"type":"null"}],"title":"Synced Node Keys"},"synced_edge_keys":{"anyOf":[{"items":{"type":"string"},"type":"array"},{"type":"null"}],"title":"Synced Edge Keys"},"ukl_entity_keys":{"anyOf":[{"items":{"type":"string"},"type":"array"},{"type":"null"}],"title":"Ukl Entity Keys"},"synced_by":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Synced By"},"created_at":{"type":"string","title":"Created At"}},"type":"object","required":["id","project_id","synced_node_keys","synced_edge_keys","ukl_entity_keys","synced_by","created_at"],"title":"SyncLogEntry"},"SyncPreviewEdge":{"properties":{"edge_key":{"type":"string","title":"Edge Key"},"from_name":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"From Name"},"to_name":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"To Name"},"rel_type":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Rel Type"},"action":{"type":"string","title":"Action"},"from_synced":{"anyOf":[{"type":"boolean"},{"type":"null"}],"title":"From Synced"},"to_synced":{"anyOf":[{"type":"boolean"},{"type":"null"}],"title":"To Synced"},"from_ukl_key":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"From Ukl Key"},"to_ukl_key":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"To Ukl Key"}},"type":"object","required":["edge_key","action"],"title":"SyncPreviewEdge"},"SyncPreviewNode":{"properties":{"prj_key":{"type":"string","title":"Prj Key"},"name":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Name"},"node_type":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Node Type"},"target_ukl_key":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Target Ukl Key"},"target_ukl_label":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Target Ukl Label"},"action":{"type":"string","title":"Action"},"existing_ukl_key":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Existing Ukl Key"},"existing_ukl_name":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Existing Ukl Name"}},"type":"object","required":["prj_key","action"],"title":"SyncPreviewNode"},"SyncPreviewResponse":{"properties":{"nodes":{"items":{"$ref":"#/components/schemas/SyncPreviewNode"},"type":"array","title":"Nodes"},"edges":{"items":{"$ref":"#/components/schemas/SyncPreviewEdge"},"type":"array","title":"Edges"}},"type":"object","required":["nodes","edges"],"title":"SyncPreviewResponse"},"SyncRequest":{"properties":{"node_keys":{"items":{"type":"string"},"type":"array","title":"Node Keys","default":[]},"edge_keys":{"items":{"type":"string"},"type":"array","title":"Edge Keys","default":[]},"synced_by":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Synced By"}},"type":"object","title":"SyncRequest"},"SyncResponse":{"properties":{"node_results":{"items":{"$ref":"#/components/schemas/SyncResultItem"},"type":"array","title":"Node Results"},"edge_results":{"items":{"$ref":"#/components/schemas/SyncResultItem"},"type":"array","title":"Edge Results"},"sync_log_id":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Sync Log Id"}},"type":"object","required":["node_results","edge_results"],"title":"SyncResponse"},"SyncResultItem":{"properties":{"prj_key":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Prj Key"},"edge_key":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Edge Key"},"ukl_key":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Ukl Key"},"action":{"type":"string","title":"Action"}},"type":"object","required":["action"],"title":"SyncResultItem"},"SynthesisOut":{"properties":{"status":{"type":"string","title":"Status"},"generated_at":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Generated At"},"conversation_count":{"type":"integer","title":"Conversation Count"},"key_themes":{"anyOf":[{"items":{"additionalProperties":true,"type":"object"},"type":"array"},{"type":"null"}],"title":"Key Themes"},"summary":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Summary"},"recommendations":{"anyOf":[{"items":{"type":"string"},"type":"array"},{"type":"null"}],"title":"Recommendations"}},"type":"object","required":["status","generated_at","conversation_count","key_themes","summary","recommendations"],"title":"SynthesisOut"},"TakeSuggestionRequest":{"properties":{"take_text":{"type":"string","maxLength":2000,"title":"Take Text"},"language":{"anyOf":[{"type":"string","maxLength":32},{"type":"null"}],"title":"Language"}},"type":"object","required":["take_text"],"title":"TakeSuggestionRequest"},"TakeSuggestionResponse":{"properties":{"suggestions":{"additionalProperties":{"items":{"type":"string"},"type":"array"},"type":"object","title":"Suggestions"}},"type":"object","required":["suggestions"],"title":"TakeSuggestionResponse"},"TaskInput":{"properties":{"content":{"type":"string","title":"Content"},"deadline":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Deadline"},"assignees":{"anyOf":[{"items":{"type":"string"},"type":"array"},{"type":"null"}],"title":"Assignees"},"linked_records":{"anyOf":[{"items":{"additionalProperties":{"type":"string"},"type":"object"},"type":"array"},{"type":"null"}],"title":"Linked Records"}},"type":"object","required":["content"],"title":"TaskInput"},"TestLabStartResponse":{"properties":{"session_url":{"type":"string","title":"Session Url"},"contact_id":{"type":"string","format":"uuid","title":"Contact Id"},"conversation_id":{"type":"string","format":"uuid","title":"Conversation Id"},"session_token":{"type":"string","title":"Session Token"},"message":{"type":"string","title":"Message"}},"type":"object","required":["session_url","contact_id","conversation_id","session_token","message"],"title":"TestLabStartResponse"},"TestNowResponse":{"properties":{"meeting_url":{"type":"string","title":"Meeting Url"},"contact_id":{"type":"string","format":"uuid","title":"Contact Id"},"conversation_id":{"type":"string","format":"uuid","title":"Conversation Id"},"message":{"type":"string","title":"Message"}},"type":"object","required":["meeting_url","contact_id","conversation_id","message"],"title":"TestNowResponse"},"TestSendRequest":{"properties":{"display_name":{"anyOf":[{"type":"string","maxLength":255},{"type":"null"}],"title":"Display Name"},"email":{"anyOf":[{"type":"string","maxLength":255},{"type":"null"}],"title":"Email"}},"type":"object","title":"TestSendRequest"},"TestSendResponse":{"properties":{"sent_to":{"type":"string","title":"Sent To"},"contact_id":{"type":"string","format":"uuid","title":"Contact Id"}},"type":"object","required":["sent_to","contact_id"],"title":"TestSendResponse"},"TimeSlot":{"properties":{"start":{"type":"string","title":"Start"},"end":{"type":"string","title":"End"}},"type":"object","required":["start","end"],"title":"TimeSlot"},"TopFrictionOut":{"properties":{"text":{"type":"string","title":"Text"},"mention_count":{"type":"integer","title":"Mention Count"},"affected_departments":{"items":{"type":"string"},"type":"array","title":"Affected Departments"}},"type":"object","required":["text","mention_count","affected_departments"],"title":"TopFrictionOut"},"TranscriptAnalysisRunCreate":{"properties":{"objective":{"type":"string","maxLength":4000,"minLength":1,"title":"Objective"},"user_message_id":{"type":"string","format":"uuid","title":"User Message Id"},"analysis_kind":{"type":"string","title":"Analysis Kind","default":"management_summary_priorities"},"model":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Model"}},"type":"object","required":["objective","user_message_id"],"title":"TranscriptAnalysisRunCreate"},"TranscriptAnalysisRunOut":{"properties":{"id":{"type":"string","format":"uuid","title":"Id"},"chat_session_id":{"type":"string","format":"uuid","title":"Chat Session Id"},"interview_id":{"type":"string","format":"uuid","title":"Interview Id"},"request_message_id":{"anyOf":[{"type":"string","format":"uuid"},{"type":"null"}],"title":"Request Message Id"},"assistant_message_id":{"anyOf":[{"type":"string","format":"uuid"},{"type":"null"}],"title":"Assistant Message Id"},"objective":{"type":"string","title":"Objective"},"analysis_kind":{"type":"string","title":"Analysis Kind"},"model":{"type":"string","title":"Model"},"model_provider":{"type":"string","title":"Model Provider"},"status":{"type":"string","title":"Status"},"phase":{"type":"string","title":"Phase"},"run_generation":{"type":"integer","title":"Run Generation"},"progress":{"anyOf":[{"additionalProperties":true,"type":"object"},{"type":"null"}],"title":"Progress"},"usage":{"additionalProperties":true,"type":"object","title":"Usage"},"coverage":{"additionalProperties":true,"type":"object","title":"Coverage"},"result":{"anyOf":[{"additionalProperties":true,"type":"object"},{"type":"null"}],"title":"Result"},"stale_reason":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Stale Reason"},"error_code":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Error Code"},"error_message":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Error Message"},"report_version_id":{"anyOf":[{"type":"string","format":"uuid"},{"type":"null"}],"title":"Report Version Id"},"report_version_number":{"anyOf":[{"type":"integer"},{"type":"null"}],"title":"Report Version Number"},"guide_fingerprint":{"type":"string","title":"Guide Fingerprint"},"created_at":{"type":"string","format":"date-time","title":"Created At"},"started_at":{"anyOf":[{"type":"string","format":"date-time"},{"type":"null"}],"title":"Started At"},"completed_at":{"anyOf":[{"type":"string","format":"date-time"},{"type":"null"}],"title":"Completed At"}},"type":"object","required":["id","chat_session_id","interview_id","objective","analysis_kind","model","model_provider","status","phase","run_generation","usage","coverage","guide_fingerprint","created_at"],"title":"TranscriptAnalysisRunOut"},"TranslatableQuestion":{"properties":{"id":{"type":"string","title":"Id"},"text":{"type":"string","title":"Text","default":""},"options":{"items":{"type":"string"},"type":"array","title":"Options"},"follow_up_guideline":{"type":"string","title":"Follow Up Guideline","default":""},"screen_share_prompt":{"type":"string","title":"Screen Share Prompt","default":""},"component_config":{"anyOf":[{"additionalProperties":true,"type":"object"},{"type":"null"}],"title":"Component Config"}},"type":"object","required":["id"],"title":"TranslatableQuestion"},"TranslatableTopic":{"properties":{"id":{"type":"string","title":"Id"},"name":{"type":"string","title":"Name","default":""},"goal":{"type":"string","title":"Goal","default":""},"questions":{"items":{"$ref":"#/components/schemas/TranslatableQuestion"},"type":"array","title":"Questions"}},"type":"object","required":["id"],"title":"TranslatableTopic"},"TranslateCampaignContentRequest":{"properties":{"target_language":{"type":"string","title":"Target Language"},"content":{"$ref":"#/components/schemas/CampaignContent"}},"type":"object","required":["target_language","content"],"title":"TranslateCampaignContentRequest"},"TranslateCampaignContentResponse":{"properties":{"target_language":{"type":"string","title":"Target Language"},"content":{"$ref":"#/components/schemas/CampaignContent"}},"type":"object","required":["target_language","content"],"title":"TranslateCampaignContentResponse"},"TurnFeedbackIn":{"properties":{"turn_index":{"type":"integer","minimum":0.0,"title":"Turn Index"},"reaction":{"type":"string","enum":["up","down"],"title":"Reaction"},"comment":{"anyOf":[{"type":"string","maxLength":2000},{"type":"null"}],"title":"Comment"}},"type":"object","required":["turn_index","reaction"],"title":"TurnFeedbackIn"},"TurnFeedbackOut":{"properties":{"id":{"type":"string","format":"uuid","title":"Id"},"turn_index":{"type":"integer","title":"Turn Index"},"reaction":{"type":"string","enum":["up","down"],"title":"Reaction"},"comment":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Comment"}},"type":"object","required":["id","turn_index","reaction","comment"],"title":"TurnFeedbackOut"},"TurnReactionEntry":{"properties":{"turn_index":{"type":"integer","title":"Turn Index"},"reaction":{"type":"string","enum":["up","down"],"title":"Reaction"},"comment":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Comment"}},"type":"object","required":["turn_index","reaction","comment"],"title":"TurnReactionEntry"},"UklRefCreate":{"properties":{"prj_key":{"type":"string","title":"Prj Key"},"ukl_key":{"type":"string","title":"Ukl Key"},"ref_type":{"type":"string","title":"Ref Type","default":"references"}},"type":"object","required":["prj_key","ukl_key"],"title":"UklRefCreate"},"UpdateSourceConnectionRequest":{"properties":{"display_name":{"anyOf":[{"type":"string","maxLength":255},{"type":"null"}],"title":"Display Name"}},"type":"object","title":"UpdateSourceConnectionRequest"},"UpdateSourceConnectionResponse":{"properties":{"id":{"type":"string","title":"Id"},"display_name":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Display Name"}},"type":"object","required":["id","display_name"],"title":"UpdateSourceConnectionResponse"},"UpdateVaultConnectionsRequest":{"properties":{"connection_ids":{"items":{"type":"string","format":"uuid"},"type":"array","title":"Connection Ids"}},"type":"object","required":["connection_ids"],"title":"UpdateVaultConnectionsRequest"},"UrlFetchRequest":{"properties":{"source_name":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Source Name","description":"Name/description of the data source"},"metadata":{"additionalProperties":true,"type":"object","title":"Metadata","description":"Additional metadata"},"url":{"type":"string","maxLength":2083,"minLength":1,"format":"uri","title":"Url","description":"URL to fetch data from"}},"type":"object","required":["url"],"title":"UrlFetchRequest","description":"Request to fetch data from a URL."},"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"},"VaultConnectionsOut":{"properties":{"vault_id":{"type":"string","format":"uuid","title":"Vault Id"},"connection_ids":{"items":{"type":"string","format":"uuid"},"type":"array","title":"Connection Ids"}},"type":"object","required":["vault_id","connection_ids"],"title":"VaultConnectionsOut"},"VaultCreate":{"properties":{"workspace_id":{"type":"string","format":"uuid","title":"Workspace Id"},"name":{"type":"string","title":"Name"},"description":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Description"},"is_personal":{"type":"boolean","title":"Is Personal","default":false}},"type":"object","required":["workspace_id","name"],"title":"VaultCreate"},"VaultOut":{"properties":{"id":{"type":"string","format":"uuid","title":"Id"},"workspace_id":{"type":"string","format":"uuid","title":"Workspace Id"},"name":{"type":"string","title":"Name"},"description":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Description"},"vault_type":{"type":"string","title":"Vault Type","default":"custom"},"system_managed":{"type":"boolean","title":"System Managed","default":false},"is_default":{"type":"boolean","title":"Is Default"},"is_personal":{"type":"boolean","title":"Is Personal"},"owner_user_id":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Owner User Id"},"collaborator_count":{"type":"integer","title":"Collaborator Count","default":0},"my_role":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"My Role"},"created_at":{"type":"string","format":"date-time","title":"Created At"}},"type":"object","required":["id","workspace_id","name","description","is_default","is_personal","owner_user_id","created_at"],"title":"VaultOut"},"VaultUpdate":{"properties":{"name":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Name"},"description":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Description"}},"type":"object","title":"VaultUpdate"},"VerificationOut":{"properties":{"passed":{"type":"boolean","title":"Passed"},"department_coverage":{"type":"number","title":"Department Coverage"},"departments_hit":{"items":{"type":"string"},"type":"array","title":"Departments Hit"},"departments_missing":{"items":{"type":"string"},"type":"array","title":"Departments Missing"},"passage_count":{"type":"integer","title":"Passage Count"},"unique_contacts":{"type":"integer","title":"Unique Contacts"}},"type":"object","required":["passed","department_coverage","departments_hit","departments_missing","passage_count","unique_contacts"],"title":"VerificationOut"},"WebhookDeliveryOut":{"properties":{"id":{"type":"string","format":"uuid","title":"Id"},"endpoint_id":{"type":"string","format":"uuid","title":"Endpoint Id"},"event_type":{"type":"string","title":"Event Type"},"status":{"type":"string","title":"Status"},"attempts":{"type":"integer","title":"Attempts"},"response_status":{"anyOf":[{"type":"integer"},{"type":"null"}],"title":"Response Status"},"last_error":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Last Error"},"created_at":{"type":"string","format":"date-time","title":"Created At"},"delivered_at":{"anyOf":[{"type":"string","format":"date-time"},{"type":"null"}],"title":"Delivered At"}},"type":"object","required":["id","endpoint_id","event_type","status","attempts","response_status","last_error","created_at","delivered_at"],"title":"WebhookDeliveryOut"},"WebhookEndpointCreate":{"properties":{"workspace_id":{"type":"string","format":"uuid","title":"Workspace Id"},"url":{"type":"string","maxLength":2083,"minLength":1,"format":"uri","title":"Url"},"events":{"items":{"type":"string"},"type":"array","title":"Events","description":"Event types to subscribe to. Empty = all."},"description":{"anyOf":[{"type":"string","maxLength":512},{"type":"null"}],"title":"Description"},"active":{"type":"boolean","title":"Active","default":true}},"type":"object","required":["workspace_id","url"],"title":"WebhookEndpointCreate"},"WebhookEndpointCreatedOut":{"properties":{"id":{"type":"string","format":"uuid","title":"Id"},"workspace_id":{"type":"string","format":"uuid","title":"Workspace Id"},"url":{"type":"string","title":"Url"},"events":{"items":{"type":"string"},"type":"array","title":"Events"},"active":{"type":"boolean","title":"Active"},"description":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Description"},"created_by":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Created By"},"created_at":{"type":"string","format":"date-time","title":"Created At"},"updated_at":{"type":"string","format":"date-time","title":"Updated At"},"secret":{"type":"string","title":"Secret"}},"type":"object","required":["id","workspace_id","url","events","active","description","created_by","created_at","updated_at","secret"],"title":"WebhookEndpointCreatedOut"},"WebhookEndpointOut":{"properties":{"id":{"type":"string","format":"uuid","title":"Id"},"workspace_id":{"type":"string","format":"uuid","title":"Workspace Id"},"url":{"type":"string","title":"Url"},"events":{"items":{"type":"string"},"type":"array","title":"Events"},"active":{"type":"boolean","title":"Active"},"description":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Description"},"created_by":{"anyOf":[{"type":"string"},{"type":"null"}],"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","workspace_id","url","events","active","description","created_by","created_at","updated_at"],"title":"WebhookEndpointOut"},"WebhookEndpointUpdate":{"properties":{"url":{"anyOf":[{"type":"string","maxLength":2083,"minLength":1,"format":"uri"},{"type":"null"}],"title":"Url"},"events":{"anyOf":[{"items":{"type":"string"},"type":"array"},{"type":"null"}],"title":"Events"},"description":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Description"},"active":{"anyOf":[{"type":"boolean"},{"type":"null"}],"title":"Active"}},"type":"object","title":"WebhookEndpointUpdate"},"WebhookRequest":{"properties":{"source_name":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Source Name","description":"Name/description of the data source"},"metadata":{"additionalProperties":true,"type":"object","title":"Metadata","description":"Additional metadata"},"data":{"title":"Data","description":"The data payload"},"source":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Source","description":"Source identifier"}},"type":"object","required":["data"],"title":"WebhookRequest","description":"Request from a programmatic webhook."},"WebhookResponse":{"properties":{"status":{"type":"string","title":"Status"},"event_id":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Event Id"}},"type":"object","required":["status"],"title":"WebhookResponse"},"WorkspaceAccessDecision":{"properties":{"approve":{"type":"boolean","title":"Approve"}},"type":"object","required":["approve"],"title":"WorkspaceAccessDecision"},"WorkspaceAccessRequestOut":{"properties":{"id":{"type":"string","format":"uuid","title":"Id"},"email":{"type":"string","title":"Email"},"name":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Name"},"requested_domain":{"type":"string","title":"Requested Domain"},"status":{"type":"string","title":"Status"},"created_at":{"type":"string","format":"date-time","title":"Created At"}},"type":"object","required":["id","email","name","requested_domain","status","created_at"],"title":"WorkspaceAccessRequestOut"},"WorkspaceCampaignDefaultsBody":{"properties":{"default_language":{"type":"string","title":"Default Language"}},"type":"object","required":["default_language"],"title":"WorkspaceCampaignDefaultsBody","description":"Workspace-level defaults every new campaign inherits (Campaign Templates)."},"WorkspaceChatSessionCreate":{"properties":{"workspace_id":{"type":"string","format":"uuid","title":"Workspace Id"},"title":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Title"},"scope_interview_ids":{"anyOf":[{"items":{"type":"string","format":"uuid"},"type":"array"},{"type":"null"}],"title":"Scope Interview Ids"},"model":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Model"}},"type":"object","required":["workspace_id"],"title":"WorkspaceChatSessionCreate"},"WorkspaceCreate":{"properties":{"name":{"type":"string","title":"Name"},"company_domain":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Company Domain"},"parent_workspace_id":{"anyOf":[{"type":"string","format":"uuid"},{"type":"null"}],"title":"Parent Workspace Id"}},"type":"object","required":["name"],"title":"WorkspaceCreate"},"WorkspaceDictionaryEntry":{"properties":{"id":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Id"},"term":{"type":"string","title":"Term"},"replacement":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Replacement"},"pronunciation":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Pronunciation"},"description":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Description"},"is_misspelling":{"type":"boolean","title":"Is Misspelling","default":false}},"type":"object","required":["term"],"title":"WorkspaceDictionaryEntry"},"WorkspaceDictionaryOut":{"properties":{"entries":{"items":{"$ref":"#/components/schemas/WorkspaceDictionaryEntry"},"type":"array","title":"Entries"},"cartesia_pronunciation_dict_id":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Cartesia Pronunciation Dict Id"}},"type":"object","title":"WorkspaceDictionaryOut"},"WorkspaceDictionaryUpdate":{"properties":{"entries":{"items":{"$ref":"#/components/schemas/WorkspaceDictionaryEntry"},"type":"array","title":"Entries"}},"type":"object","title":"WorkspaceDictionaryUpdate"},"WorkspaceEmailPreviewResponse":{"properties":{"html":{"type":"string","title":"Html"}},"type":"object","required":["html"],"title":"WorkspaceEmailPreviewResponse"},"WorkspaceEmailSettingsBody":{"properties":{"sender_name":{"anyOf":[{"type":"string","maxLength":120},{"type":"null"}],"title":"Sender Name"},"sender_email":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Sender Email"},"reply_to":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Reply To"},"invitation_message":{"anyOf":[{"type":"string","maxLength":4000},{"type":"null"}],"title":"Invitation Message"},"salutation":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Salutation"},"senders":{"items":{"$ref":"#/components/schemas/SenderAddressBody"},"type":"array","maxItems":20,"title":"Senders"},"logo_url":{"anyOf":[{"type":"string","maxLength":1000},{"type":"null"}],"title":"Logo Url"},"privacy_note_enabled":{"type":"boolean","title":"Privacy Note Enabled","default":true},"primary_color":{"anyOf":[{"type":"string","maxLength":9,"pattern":"^#?[0-9a-fA-F]{3,8}$"},{"type":"null"}],"title":"Primary Color"},"default_sender":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Default Sender"},"active_sender_usable":{"anyOf":[{"type":"boolean"},{"type":"null"}],"title":"Active Sender Usable"},"effective_sender":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Effective Sender"}},"type":"object","title":"WorkspaceEmailSettingsBody","description":"Sender identity + default invitation text for participant emails."},"WorkspaceEmailTestRequest":{"properties":{"sender_name":{"anyOf":[{"type":"string","maxLength":120},{"type":"null"}],"title":"Sender Name"},"sender_email":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Sender Email"},"reply_to":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Reply To"},"invitation_message":{"anyOf":[{"type":"string","maxLength":4000},{"type":"null"}],"title":"Invitation Message"},"salutation":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Salutation"},"senders":{"items":{"$ref":"#/components/schemas/SenderAddressBody"},"type":"array","maxItems":20,"title":"Senders"},"logo_url":{"anyOf":[{"type":"string","maxLength":1000},{"type":"null"}],"title":"Logo Url"},"privacy_note_enabled":{"type":"boolean","title":"Privacy Note Enabled","default":true},"primary_color":{"anyOf":[{"type":"string","maxLength":9,"pattern":"^#?[0-9a-fA-F]{3,8}$"},{"type":"null"}],"title":"Primary Color"},"default_sender":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Default Sender"},"active_sender_usable":{"anyOf":[{"type":"boolean"},{"type":"null"}],"title":"Active Sender Usable"},"effective_sender":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Effective Sender"},"language":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Language"},"campaign_title":{"anyOf":[{"type":"string","maxLength":300},{"type":"null"}],"title":"Campaign Title"},"duration_minutes":{"anyOf":[{"type":"integer","maximum":240.0,"minimum":1.0},{"type":"null"}],"title":"Duration Minutes"}},"type":"object","title":"WorkspaceEmailTestRequest","description":"Current (possibly unsaved) form values plus the preview language.\n\n``campaign_title``/``duration_minutes`` let the campaign builder preview\nthe email with the real campaign values instead of the generic sample —\notherwise a {title} placeholder renders as \"Sample campaign\" and the user\nconcludes their title is broken."},"WorkspaceEmailTestResponse":{"properties":{"sent":{"type":"boolean","title":"Sent"},"to_email":{"type":"string","title":"To Email"}},"type":"object","required":["sent","to_email"],"title":"WorkspaceEmailTestResponse"},"WorkspaceFamilyMemberOut":{"properties":{"id":{"type":"string","format":"uuid","title":"Id"},"name":{"type":"string","title":"Name"},"parent_workspace_id":{"anyOf":[{"type":"string","format":"uuid"},{"type":"null"}],"title":"Parent Workspace Id"}},"type":"object","required":["id","name"],"title":"WorkspaceFamilyMemberOut"},"WorkspaceFoundationProfileOut":{"properties":{"profile":{"anyOf":[{"$ref":"#/components/schemas/CompanyFoundationProfile"},{"type":"null"}]}},"type":"object","title":"WorkspaceFoundationProfileOut"},"WorkspaceFoundationRebuildResponse":{"properties":{"job_id":{"type":"string","format":"uuid","title":"Job Id"},"status":{"type":"string","title":"Status","default":"queued"}},"type":"object","required":["job_id"],"title":"WorkspaceFoundationRebuildResponse"},"WorkspaceInvite":{"properties":{"email_address":{"type":"string","title":"Email Address"},"role":{"type":"string","pattern":"^(admin|member)$","title":"Role","default":"member"}},"type":"object","required":["email_address"],"title":"WorkspaceInvite"},"WorkspaceInviteOut":{"properties":{"invitation_id":{"type":"string","title":"Invitation Id"},"email_address":{"type":"string","title":"Email Address"},"role":{"type":"string","title":"Role"},"status":{"type":"string","title":"Status"}},"type":"object","required":["invitation_id","email_address","role","status"],"title":"WorkspaceInviteOut"},"WorkspaceLogoUploadResponse":{"properties":{"image_url":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Image Url"}},"type":"object","title":"WorkspaceLogoUploadResponse"},"WorkspaceMember":{"properties":{"user_id":{"type":"string","title":"User Id"},"role":{"type":"string","title":"Role"},"email":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Email"},"full_name":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Full Name"},"image_url":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Image Url"},"created_at":{"anyOf":[{"type":"string","format":"date-time"},{"type":"null"}],"title":"Created At"}},"type":"object","required":["user_id","role"],"title":"WorkspaceMember"},"WorkspaceMemberRoleUpdate":{"properties":{"role":{"type":"string","pattern":"^(admin|member)$","title":"Role"}},"type":"object","required":["role"],"title":"WorkspaceMemberRoleUpdate"},"WorkspaceOut":{"properties":{"id":{"type":"string","format":"uuid","title":"Id"},"name":{"type":"string","title":"Name"},"parent_workspace_id":{"anyOf":[{"type":"string","format":"uuid"},{"type":"null"}],"title":"Parent Workspace Id"},"role":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Role"},"clerk_org_id":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Clerk Org Id"},"organization_image_url":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Organization Image Url"},"company_domain":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Company Domain"},"contact_email":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Contact Email"},"contact_phone":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Contact Phone"},"setup_completed_at":{"anyOf":[{"type":"string","format":"date-time"},{"type":"null"}],"title":"Setup Completed At"},"setup_skipped_at":{"anyOf":[{"type":"string","format":"date-time"},{"type":"null"}],"title":"Setup Skipped At"},"setup_status":{"type":"string","title":"Setup Status","default":"pending"},"setup_steps":{"items":{"$ref":"#/components/schemas/WorkspaceSetupStepOut"},"type":"array","title":"Setup Steps"},"created_at":{"anyOf":[{"type":"string","format":"date-time"},{"type":"null"}],"title":"Created At"}},"type":"object","required":["id","name"],"title":"WorkspaceOut"},"WorkspaceSetupCompleteRequest":{"properties":{"trigger_rebuild":{"type":"boolean","title":"Trigger Rebuild","default":true}},"type":"object","title":"WorkspaceSetupCompleteRequest"},"WorkspaceSetupDomainRequest":{"properties":{"company_domain":{"type":"string","title":"Company Domain"}},"type":"object","required":["company_domain"],"title":"WorkspaceSetupDomainRequest"},"WorkspaceSetupStepOut":{"properties":{"id":{"type":"string","title":"Id"},"label":{"type":"string","title":"Label"},"description":{"type":"string","title":"Description"},"status":{"type":"string","title":"Status"},"completed_at":{"anyOf":[{"type":"string","format":"date-time"},{"type":"null"}],"title":"Completed At"},"unavailable_reason":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Unavailable Reason"}},"type":"object","required":["id","label","description","status"],"title":"WorkspaceSetupStepOut"},"WorkspaceTeamsMessagePreviewRequest":{"properties":{"message":{"anyOf":[{"type":"string","maxLength":4000},{"type":"null"}],"title":"Message"},"language":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Language"},"campaign_title":{"anyOf":[{"type":"string","maxLength":300},{"type":"null"}],"title":"Campaign Title"},"duration_minutes":{"anyOf":[{"type":"integer","maximum":240.0,"minimum":1.0},{"type":"null"}],"title":"Duration Minutes"}},"type":"object","title":"WorkspaceTeamsMessagePreviewRequest","description":"Current (possibly unsaved) builder values for the Teams chat preview.\n\nMirrors the email preview: ``campaign_title``/``duration_minutes`` let the\ncampaign builder preview with the real campaign values so the {title} and\n{duration} placeholders render as they will in the actual chat."},"WorkspaceTeamsMessagePreviewResponse":{"properties":{"html":{"type":"string","title":"Html"}},"type":"object","required":["html"],"title":"WorkspaceTeamsMessagePreviewResponse"},"WorkspaceUpdate":{"properties":{"name":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Name"},"contact_email":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Contact Email"},"contact_phone":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Contact Phone"}},"type":"object","title":"WorkspaceUpdate","description":"Partial update: only fields the client sends are applied.\n\ncontact_email/contact_phone accept null (or empty string) to clear the\nstored value — \"not sent\" and \"sent as null\" are distinguished via\nmodel_fields_set."},"app__api__api_keys__ApiKeyCreate":{"properties":{"name":{"type":"string","maxLength":255,"minLength":1,"title":"Name"},"workspace_id":{"type":"string","format":"uuid","title":"Workspace Id"},"scopes":{"items":{"type":"string"},"type":"array","minItems":1,"title":"Scopes"},"expires_in_days":{"anyOf":[{"type":"integer","maximum":3650.0,"minimum":1.0},{"type":"null"}],"title":"Expires In Days"}},"type":"object","required":["name","workspace_id","scopes"],"title":"ApiKeyCreate"},"app__api__api_keys__ApiKeyCreatedOut":{"properties":{"id":{"type":"string","format":"uuid","title":"Id"},"workspace_id":{"type":"string","format":"uuid","title":"Workspace Id"},"name":{"type":"string","title":"Name"},"key_prefix":{"type":"string","title":"Key Prefix"},"scopes":{"items":{"type":"string"},"type":"array","title":"Scopes"},"expires_at":{"anyOf":[{"type":"string","format":"date-time"},{"type":"null"}],"title":"Expires At"},"created_at":{"type":"string","format":"date-time","title":"Created At"},"created_by":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Created By"},"created_by_display":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Created By Display"},"key":{"type":"string","title":"Key"}},"type":"object","required":["id","workspace_id","name","key_prefix","scopes","expires_at","created_at","created_by","key"],"title":"ApiKeyCreatedOut"},"app__api__api_keys__ApiKeyOut":{"properties":{"id":{"type":"string","format":"uuid","title":"Id"},"workspace_id":{"type":"string","format":"uuid","title":"Workspace Id"},"name":{"type":"string","title":"Name"},"key_prefix":{"type":"string","title":"Key Prefix"},"scopes":{"items":{"type":"string"},"type":"array","title":"Scopes"},"expires_at":{"anyOf":[{"type":"string","format":"date-time"},{"type":"null"}],"title":"Expires At"},"created_at":{"type":"string","format":"date-time","title":"Created At"},"created_by":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Created By"},"created_by_display":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Created By Display"}},"type":"object","required":["id","workspace_id","name","key_prefix","scopes","expires_at","created_at","created_by"],"title":"ApiKeyOut"},"app__api__attio__CompanyInput":{"properties":{"name":{"type":"string","title":"Name"},"domains":{"anyOf":[{"items":{"type":"string"},"type":"array"},{"type":"null"}],"title":"Domains"},"description":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Description"},"industry":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Industry"}},"type":"object","required":["name"],"title":"CompanyInput"},"app__api__attio__CompanyResponse":{"properties":{"id":{"type":"string","title":"Id"},"name":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Name"},"domain":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Domain"},"description":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Description"},"industry":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Industry"},"created_at":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Created At"}},"type":"object","required":["id"],"title":"CompanyResponse"},"app__api__attio__DealInput":{"properties":{"name":{"type":"string","title":"Name"},"value":{"anyOf":[{"type":"number"},{"type":"null"}],"title":"Value"},"currency":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Currency"},"stage":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Stage"},"close_date":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Close Date"},"company_id":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Company Id"}},"type":"object","required":["name"],"title":"DealInput"},"app__api__attio__DealResponse":{"properties":{"id":{"type":"string","title":"Id"},"name":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Name"},"value":{"anyOf":[{"type":"number"},{"type":"null"}],"title":"Value"},"currency":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Currency"},"stage":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Stage"},"close_date":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Close Date"},"created_at":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Created At"}},"type":"object","required":["id"],"title":"DealResponse"},"app__api__attio__PersonInput":{"properties":{"first_name":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"First Name"},"last_name":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Last Name"},"email_addresses":{"anyOf":[{"items":{"type":"string"},"type":"array"},{"type":"null"}],"title":"Email Addresses"},"phone_numbers":{"anyOf":[{"items":{"type":"string"},"type":"array"},{"type":"null"}],"title":"Phone Numbers"},"job_title":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Job Title"}},"type":"object","title":"PersonInput"},"app__api__attio__PersonResponse":{"properties":{"id":{"type":"string","title":"Id"},"first_name":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"First Name"},"last_name":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Last Name"},"email":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Email"},"phone":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Phone"},"job_title":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Job Title"},"created_at":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Created At"}},"type":"object","required":["id"],"title":"PersonResponse"},"app__api__campaign_insights__SessionFeedbackOut":{"properties":{"rating":{"type":"number","title":"Rating"},"suggestions":{"items":{"type":"string"},"type":"array","title":"Suggestions"},"additional_feedback":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Additional Feedback"}},"type":"object","required":["rating","suggestions","additional_feedback"],"title":"SessionFeedbackOut","description":"Session-level feedback from the interviewee (completion screen rating)."},"app__api__campaign_shares__CampaignShellOut":{"properties":{"id":{"type":"string","format":"uuid","title":"Id"},"name":{"type":"string","title":"Name"},"status":{"type":"string","title":"Status"},"workspace_id":{"type":"string","format":"uuid","title":"Workspace Id"},"is_shared":{"type":"boolean","title":"Is Shared","default":false},"viewer_access_level":{"type":"string","title":"Viewer Access Level","default":"report_only"},"progress":{"$ref":"#/components/schemas/CampaignShellProgressOut"},"report":{"$ref":"#/components/schemas/CampaignShellReportOut"},"graph":{"$ref":"#/components/schemas/CampaignShellGraphOut"}},"type":"object","required":["id","name","status","workspace_id","progress","report","graph"],"title":"CampaignShellOut"},"app__api__entities__CompanyResponse":{"properties":{"key":{"type":"string","title":"Key"},"name":{"type":"string","title":"Name"},"domain":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Domain"},"org_type":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Org Type"},"is_own_company":{"type":"boolean","title":"Is Own Company","default":false},"industry":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Industry"},"size_category":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Size Category"},"employee_count":{"anyOf":[{"type":"integer"},{"type":"null"}],"title":"Employee Count"},"crm_source":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Crm Source"}},"type":"object","required":["key","name"],"title":"CompanyResponse"},"app__api__entities__ContactResponse":{"properties":{"key":{"type":"string","title":"Key"},"name":{"type":"string","title":"Name"},"email":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Email"},"title":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Title"},"role":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Role"}},"type":"object","required":["key","name"],"title":"ContactResponse"},"app__api__entities__DealResponse":{"properties":{"key":{"type":"string","title":"Key"},"name":{"type":"string","title":"Name"},"stage":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Stage"},"amount":{"anyOf":[{"type":"number"},{"type":"null"}],"title":"Amount"},"currency":{"type":"string","title":"Currency","default":"USD"},"probability":{"anyOf":[{"type":"integer"},{"type":"null"}],"title":"Probability"},"close_date":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Close Date"},"account_name":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Account Name"},"account_key":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Account Key"},"owner_name":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Owner Name"},"crm_source":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Crm Source"}},"type":"object","required":["key","name"],"title":"DealResponse"},"app__api__entities__PersonResponse":{"properties":{"key":{"type":"string","title":"Key"},"name":{"type":"string","title":"Name"},"email":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Email"},"title":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Title"},"department":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Department"},"is_internal":{"type":"boolean","title":"Is Internal","default":false},"company_name":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Company Name"},"company_key":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Company Key"}},"type":"object","required":["key","name"],"title":"PersonResponse"},"app__api__hubspot__CompanyInput":{"properties":{"name":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Name"},"industry":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Industry"},"description":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Description"},"country":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Country"},"city":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"City"},"lead_status":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Lead Status"},"lifecycle_stage":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Lifecycle Stage"},"owner":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Owner"},"year_founded":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Year Founded"},"website_url":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Website Url"}},"type":"object","title":"CompanyInput"},"app__api__hubspot__CompanyResponse":{"properties":{"id":{"type":"string","title":"Id"},"name":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Name"},"industry":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Industry"},"description":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Description"},"country":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Country"},"city":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"City"},"lead_status":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Lead Status"},"lifecycle_stage":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Lifecycle Stage"},"owner":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Owner"},"year_founded":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Year Founded"},"website_url":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Website Url"},"created_date":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Created Date"}},"type":"object","required":["id"],"title":"CompanyResponse"},"app__api__hubspot__ContactResponse":{"properties":{"id":{"type":"string","title":"Id"},"first_name":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"First Name"},"last_name":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Last Name"},"email":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Email"},"job_title":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Job Title"},"lead_status":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Lead Status"},"lifecycle_stage":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Lifecycle Stage"},"mobile_phone_number":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Mobile Phone Number"},"website_url":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Website Url"},"owner":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Owner"},"created_date":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Created Date"}},"type":"object","required":["id"],"title":"ContactResponse"},"app__api__hubspot__DealInput":{"properties":{"name":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Name"},"amount":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Amount"},"close_date":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Close Date"},"deal_description":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Deal Description"},"owner":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Owner"},"deal_stage":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Deal Stage"},"deal_probability":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Deal Probability"},"associations":{"anyOf":[{"items":{"$ref":"#/components/schemas/DealAssociation"},"type":"array"},{"type":"null"}],"title":"Associations"}},"type":"object","title":"DealInput"},"app__api__hubspot__DealResponse":{"properties":{"id":{"type":"string","title":"Id"},"name":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Name"},"amount":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Amount"},"close_date":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Close Date"},"deal_description":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Deal Description"},"owner":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Owner"},"deal_stage":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Deal Stage"},"deal_probability":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Deal Probability"}},"type":"object","required":["id"],"title":"DealResponse"},"app__api__interview_feedback__SessionFeedbackOut":{"properties":{"id":{"type":"string","format":"uuid","title":"Id"},"rating":{"type":"number","title":"Rating"},"suggestions":{"items":{"type":"string"},"type":"array","title":"Suggestions"},"additional_feedback":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Additional Feedback"}},"type":"object","required":["id","rating","suggestions","additional_feedback"],"title":"SessionFeedbackOut"},"app__api__interview_schemas__ContactCreate":{"properties":{"person_id":{"anyOf":[{"type":"string","format":"uuid"},{"type":"null"}],"title":"Person Id"},"name":{"type":"string","title":"Name"},"email":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Email"},"slack_user_id":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Slack User Id"},"slack_team_id":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Slack Team Id"},"phone":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Phone"},"job_title":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Job Title"},"department":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Department"},"seniority_level":{"anyOf":[{"type":"integer"},{"type":"null"}],"title":"Seniority Level"},"is_required":{"type":"boolean","title":"Is Required","default":false},"question_set_id":{"anyOf":[{"type":"string","format":"uuid"},{"type":"null"}],"title":"Question Set Id"}},"type":"object","required":["name"],"title":"ContactCreate"},"app__api__interview_schemas__ContactOut":{"properties":{"id":{"type":"string","format":"uuid","title":"Id"},"interview_id":{"type":"string","format":"uuid","title":"Interview Id"},"person_id":{"anyOf":[{"type":"string","format":"uuid"},{"type":"null"}],"title":"Person Id"},"question_set_id":{"anyOf":[{"type":"string","format":"uuid"},{"type":"null"}],"title":"Question Set Id"},"name":{"type":"string","title":"Name"},"email":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Email"},"slack_user_id":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Slack User Id"},"slack_team_id":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Slack Team Id"},"slack_dm_channel_id":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Slack Dm Channel Id"},"phone":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Phone"},"job_title":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Job Title"},"department":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Department"},"seniority_level":{"anyOf":[{"type":"integer"},{"type":"null"}],"title":"Seniority Level"},"is_required":{"type":"boolean","title":"Is Required"},"meeting_url":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Meeting Url"},"booking_token":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Booking Token"},"status":{"type":"string","title":"Status"},"reminder_count":{"type":"integer","title":"Reminder Count","default":0},"last_reminder_at":{"anyOf":[{"type":"string","format":"date-time"},{"type":"null"}],"title":"Last Reminder At"},"reinvited_from_contact_id":{"anyOf":[{"type":"string","format":"uuid"},{"type":"null"}],"title":"Reinvited From Contact Id"},"booking_token_expires_at":{"anyOf":[{"type":"string","format":"date-time"},{"type":"null"}],"title":"Booking Token Expires At"},"invitation_status":{"type":"string","title":"Invitation Status","default":"none"},"scheduled_at":{"anyOf":[{"type":"string","format":"date-time"},{"type":"null"}],"title":"Scheduled At"},"completed_at":{"anyOf":[{"type":"string","format":"date-time"},{"type":"null"}],"title":"Completed At"},"created_at":{"type":"string","format":"date-time","title":"Created At"},"scheduled_session_status":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Scheduled Session Status"},"scheduled_session_available_at":{"anyOf":[{"type":"string","format":"date-time"},{"type":"null"}],"title":"Scheduled Session Available At"},"scheduled_session_started_at":{"anyOf":[{"type":"string","format":"date-time"},{"type":"null"}],"title":"Scheduled Session Started At"},"scheduled_session_expires_at":{"anyOf":[{"type":"string","format":"date-time"},{"type":"null"}],"title":"Scheduled Session Expires At"},"delivery_failure_reason":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Delivery Failure Reason"},"delivery_failure_at":{"anyOf":[{"type":"string","format":"date-time"},{"type":"null"}],"title":"Delivery Failure At"},"last_accessed_at":{"anyOf":[{"type":"string","format":"date-time"},{"type":"null"}],"title":"Last Accessed At"},"session_accessibility_message":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Session Accessibility Message"}},"type":"object","required":["id","interview_id","question_set_id","name","email","phone","job_title","department","seniority_level","is_required","meeting_url","status","scheduled_at","completed_at","created_at"],"title":"ContactOut"},"app__api__interviews__CampaignShellOut":{"properties":{"id":{"type":"string","format":"uuid","title":"Id"},"name":{"type":"string","title":"Name"},"status":{"type":"string","title":"Status"},"workspace_id":{"type":"string","format":"uuid","title":"Workspace Id"},"is_shared":{"type":"boolean","title":"Is Shared","default":false},"viewer_access_level":{"type":"string","title":"Viewer Access Level","default":"full"},"anonymity_level":{"type":"string","title":"Anonymity Level","default":"none"},"invitations_scheduled_for":{"anyOf":[{"type":"string","format":"date-time"},{"type":"null"}],"title":"Invitations Scheduled For"},"timezone":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Timezone"},"channel":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Channel"},"join_link_delivery":{"type":"boolean","title":"Join Link Delivery","default":false},"progress":{"$ref":"#/components/schemas/CampaignShellProgressOut"},"report":{"$ref":"#/components/schemas/CampaignShellReportOut"},"graph":{"$ref":"#/components/schemas/CampaignShellGraphOut"}},"type":"object","required":["id","name","status","workspace_id","progress","report","graph"],"title":"CampaignShellOut"},"app__api__pipedrive__DealInput":{"properties":{"title":{"type":"string","title":"Title"},"value":{"anyOf":[{"type":"number"},{"type":"null"}],"title":"Value"},"currency":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Currency"},"person_id":{"anyOf":[{"type":"integer"},{"type":"null"}],"title":"Person Id"},"org_id":{"anyOf":[{"type":"integer"},{"type":"null"}],"title":"Org Id"},"stage_id":{"anyOf":[{"type":"integer"},{"type":"null"}],"title":"Stage Id"},"status":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Status"},"probability":{"anyOf":[{"type":"number"},{"type":"null"}],"title":"Probability"},"expected_close_date":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Expected Close Date"},"visible_to":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Visible To"},"label":{"anyOf":[{"type":"integer"},{"type":"null"}],"title":"Label"}},"type":"object","required":["title"],"title":"DealInput"},"app__api__pipedrive__DealResponse":{"properties":{"id":{"type":"integer","title":"Id"},"title":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Title"},"value":{"anyOf":[{"type":"number"},{"type":"null"}],"title":"Value"},"currency":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Currency"},"person_id":{"anyOf":[{"type":"integer"},{"type":"null"}],"title":"Person Id"},"org_id":{"anyOf":[{"type":"integer"},{"type":"null"}],"title":"Org Id"},"stage_id":{"anyOf":[{"type":"integer"},{"type":"null"}],"title":"Stage Id"},"status":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Status"},"probability":{"anyOf":[{"type":"number"},{"type":"null"}],"title":"Probability"},"pipeline_id":{"anyOf":[{"type":"integer"},{"type":"null"}],"title":"Pipeline Id"}},"type":"object","required":["id"],"title":"DealResponse"},"app__api__pipedrive__PersonInput":{"properties":{"name":{"type":"string","title":"Name"},"email":{"anyOf":[{"items":{"type":"string"},"type":"array"},{"type":"null"}],"title":"Email"},"phone":{"anyOf":[{"items":{"type":"string"},"type":"array"},{"type":"null"}],"title":"Phone"},"org_id":{"anyOf":[{"type":"integer"},{"type":"null"}],"title":"Org Id"},"visible_to":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Visible To"},"label":{"anyOf":[{"type":"integer"},{"type":"null"}],"title":"Label"}},"type":"object","required":["name"],"title":"PersonInput"},"app__api__pipedrive__PersonResponse":{"properties":{"id":{"type":"integer","title":"Id"},"name":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Name"},"email":{"anyOf":[{"items":{"type":"string"},"type":"array"},{"type":"null"}],"title":"Email"},"phone":{"anyOf":[{"items":{"type":"string"},"type":"array"},{"type":"null"}],"title":"Phone"},"org_id":{"anyOf":[{"type":"integer"},{"type":"null"}],"title":"Org Id"},"owner_id":{"anyOf":[{"type":"integer"},{"type":"null"}],"title":"Owner Id"},"active_flag":{"anyOf":[{"type":"boolean"},{"type":"null"}],"title":"Active Flag"},"label":{"anyOf":[{"type":"integer"},{"type":"null"}],"title":"Label"}},"type":"object","required":["id"],"title":"PersonResponse"},"app__api__projects__ContactCreate":{"properties":{"email":{"type":"string","format":"email","title":"Email"},"name":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Name"},"role":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Role"},"company":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Company"},"priority":{"type":"integer","title":"Priority","default":0},"notes":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Notes"}},"type":"object","required":["email"],"title":"ContactCreate"},"app__api__projects__ContactOut":{"properties":{"key":{"type":"string","title":"Key"},"email":{"type":"string","title":"Email"},"name":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Name"},"role":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Role"},"priority":{"anyOf":[{"type":"integer"},{"type":"null"}],"title":"Priority"},"notes":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Notes"},"last_contacted_at":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Last Contacted At"},"created_at":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Created At"},"company":{"anyOf":[{"$ref":"#/components/schemas/ContactCompany"},{"type":"null"}]}},"type":"object","required":["key","email","name","role","priority","notes","last_contacted_at","created_at","company"],"title":"ContactOut"},"app__api__vaults__ApiKeyCreate":{"properties":{"name":{"type":"string","maxLength":255,"title":"Name","description":"Display name for the API key"},"expires_in_days":{"anyOf":[{"type":"integer","maximum":365.0,"minimum":1.0},{"type":"null"}],"title":"Expires In Days","description":"Days until expiration (None = never expires)"}},"type":"object","required":["name"],"title":"ApiKeyCreate"},"app__api__vaults__ApiKeyCreatedOut":{"properties":{"id":{"type":"string","format":"uuid","title":"Id"},"vault_id":{"type":"string","format":"uuid","title":"Vault Id"},"name":{"type":"string","title":"Name"},"key_prefix":{"type":"string","title":"Key Prefix"},"expires_at":{"anyOf":[{"type":"string","format":"date-time"},{"type":"null"}],"title":"Expires At"},"created_at":{"type":"string","format":"date-time","title":"Created At"},"key":{"type":"string","title":"Key","description":"Full API key - save this, it won't be shown again!"}},"type":"object","required":["id","vault_id","name","key_prefix","expires_at","created_at","key"],"title":"ApiKeyCreatedOut","description":"API key output on creation (includes full key - only shown once)."},"app__api__vaults__ApiKeyOut":{"properties":{"id":{"type":"string","format":"uuid","title":"Id"},"vault_id":{"type":"string","format":"uuid","title":"Vault Id"},"name":{"type":"string","title":"Name"},"key_prefix":{"type":"string","title":"Key Prefix"},"expires_at":{"anyOf":[{"type":"string","format":"date-time"},{"type":"null"}],"title":"Expires At"},"created_at":{"type":"string","format":"date-time","title":"Created At"}},"type":"object","required":["id","vault_id","name","key_prefix","expires_at","created_at"],"title":"ApiKeyOut","description":"API key output (without full key - only shown on creation)."}},"securitySchemes":{"HTTPBearer":{"type":"http","scheme":"bearer"},"ClerkJWT":{"type":"http","scheme":"bearer","bearerFormat":"JWT","description":"Clerk-issued RS256 JWT."},"WorkspaceApiKey":{"type":"apiKey","in":"header","name":"X-API-Key","description":"Workspace-scoped API key (prefix: `ont_`)."}}},"tags":[{"name":"interviews","description":"Campaign CRUD, lifecycle, contacts, question sets."},{"name":"campaign-insights","description":"Synthesis outputs — cartography, roadmap, personas, conversations."},{"name":"interview-query","description":"Graph RAG query over campaign data."},{"name":"campaign-reports","description":"Versioned synthesis Reports — manual regenerate, version history."},{"name":"interview-export","description":"Markdown / ZIP exports of transcripts and reports."},{"name":"api-keys","description":"Manage workspace-scoped API keys for programmatic access."},{"name":"webhook-endpoints","description":"Outbound webhook endpoints for automation."},{"name":"booking","description":"Public self-scheduling endpoints for interview participants."},{"name":"join","description":"Public QR-code / share-link self-registration for campaign participants."},{"name":"workspaces","description":"Workspace and membership management."},{"name":"vaults","description":"Context vault management."}],"security":[{"ClerkJWT":[]},{"WorkspaceApiKey":[]}]}