{"openapi":"3.1.0","info":{"title":"FastAPI","version":"0.1.0"},"paths":{"/user/logout":{"get":{"tags":["User"],"summary":"Logout","description":"Logout the user","operationId":"logout_user_logout_get","responses":{"204":{"description":"Successful Response"}}}},"/user/current":{"get":{"tags":["User"],"summary":"Get User","description":"Retrieve the currently authenticated user","operationId":"get_user_user_current_get","responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/CurrentUserResponse"}}}}},"security":[{"JWT":[]}]}},"/user/consent":{"post":{"tags":["User"],"summary":"Store Consent","description":"Update the user's data consent agreement status.","operationId":"store_consent_user_consent_post","requestBody":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/DataConsentUpdateRequest"}}},"required":true},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/DataConsentUpdateResponse"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}},"security":[{"JWT":[]}]}},"/api/v1/triage-configs/fields/{config_id}":{"get":{"tags":["Triage Configs"],"summary":"Get Fields","operationId":"get_fields_api_v1_triage_configs_fields__config_id__get","security":[{"JWT":[]}],"parameters":[{"name":"config_id","in":"path","required":true,"schema":{"type":"string","title":"Config Id"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/v1/triage-configs/fields/{config_id}/clear-cache":{"post":{"tags":["Triage Configs"],"summary":"Clear Field Cache Endpoint","operationId":"clear_field_cache_endpoint_api_v1_triage_configs_fields__config_id__clear_cache_post","security":[{"JWT":[]}],"parameters":[{"name":"config_id","in":"path","required":true,"schema":{"type":"string","title":"Config Id"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/v1/triage-configs/":{"get":{"tags":["Triage Configs"],"summary":"List Triage Configs","operationId":"list_triage_configs_api_v1_triage_configs__get","responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"items":{"$ref":"#/components/schemas/TriageConfig-Output"},"type":"array","title":"Response List Triage Configs Api V1 Triage Configs  Get"}}}}},"security":[{"JWT":[]}]},"post":{"tags":["Triage Configs"],"summary":"Create Triage Config","operationId":"create_triage_config_api_v1_triage_configs__post","requestBody":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/TriageConfig-Input"}}},"required":true},"responses":{"201":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/TriageConfig-Output"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}},"security":[{"JWT":[]}]}},"/api/v1/triage-configs/{triage_id}":{"get":{"tags":["Triage Configs"],"summary":"Get Triage Config","operationId":"get_triage_config_api_v1_triage_configs__triage_id__get","security":[{"JWT":[]}],"parameters":[{"name":"triage_id","in":"path","required":true,"schema":{"type":"string","title":"Triage Id"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/TriageConfig-Output"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}},"put":{"tags":["Triage Configs"],"summary":"Update Triage Config","operationId":"update_triage_config_api_v1_triage_configs__triage_id__put","security":[{"JWT":[]}],"parameters":[{"name":"triage_id","in":"path","required":true,"schema":{"type":"string","title":"Triage Id"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/TriageConfig-Input"}}}},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/TriageConfig-Output"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}},"delete":{"tags":["Triage Configs"],"summary":"Delete Triage Config","operationId":"delete_triage_config_api_v1_triage_configs__triage_id__delete","security":[{"JWT":[]}],"parameters":[{"name":"triage_id","in":"path","required":true,"schema":{"type":"string","title":"Triage Id"}}],"responses":{"204":{"description":"Successful Response"},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/v1/triage-configs/{triage_id}/webhook":{"get":{"tags":["Triage Configs"],"summary":"Get Triage Webhook","operationId":"get_triage_webhook_api_v1_triage_configs__triage_id__webhook_get","security":[{"JWT":[]}],"parameters":[{"name":"triage_id","in":"path","required":true,"schema":{"type":"string","title":"Triage Id"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/v1/triage-configs/{triage_id}/install-webhook":{"post":{"tags":["Triage Configs"],"summary":"Install Webhook","operationId":"install_webhook_api_v1_triage_configs__triage_id__install_webhook_post","security":[{"JWT":[]}],"parameters":[{"name":"triage_id","in":"path","required":true,"schema":{"type":"string","title":"Triage Id"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/v1/triage-configs/{triage_id}/uninstall-webhook":{"post":{"tags":["Triage Configs"],"summary":"Uninstall Webhook","operationId":"uninstall_webhook_api_v1_triage_configs__triage_id__uninstall_webhook_post","security":[{"JWT":[]}],"parameters":[{"name":"triage_id","in":"path","required":true,"schema":{"type":"string","title":"Triage Id"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/v1/bot-actions/":{"get":{"tags":["Bot Actions"],"summary":"Root","operationId":"root_api_v1_bot_actions__get","responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}}},"security":[{"JWT":[]}]},"post":{"tags":["Bot Actions"],"summary":"Create","operationId":"create_api_v1_bot_actions__post","requestBody":{"content":{"application/json":{"schema":{"oneOf":[{"$ref":"#/components/schemas/HTTPAPIAction"},{"$ref":"#/components/schemas/QueryPalFormAction"},{"$ref":"#/components/schemas/ZendeskFormAction"}],"title":"Action"}}},"required":true},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}},"security":[{"JWT":[]}]}},"/api/v1/bot-actions/{action_id}":{"get":{"tags":["Bot Actions"],"summary":"Get Action","operationId":"get_action_api_v1_bot_actions__action_id__get","security":[{"JWT":[]}],"parameters":[{"name":"action_id","in":"path","required":true,"schema":{"type":"string","title":"Action Id"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}},"put":{"tags":["Bot Actions"],"summary":"Update Action","operationId":"update_action_api_v1_bot_actions__action_id__put","security":[{"JWT":[]}],"parameters":[{"name":"action_id","in":"path","required":true,"schema":{"type":"string","title":"Action Id"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"oneOf":[{"$ref":"#/components/schemas/HTTPAPIAction"},{"$ref":"#/components/schemas/QueryPalFormAction"},{"$ref":"#/components/schemas/ZendeskFormAction"}],"title":"Action"}}}},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}},"delete":{"tags":["Bot Actions"],"summary":"Delete Action","operationId":"delete_action_api_v1_bot_actions__action_id__delete","security":[{"JWT":[]}],"parameters":[{"name":"action_id","in":"path","required":true,"schema":{"type":"string","title":"Action Id"}}],"responses":{"204":{"description":"Successful Response"},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/v1/bot-actions/{action_id}/references":{"get":{"tags":["Bot Actions"],"summary":"Check Action References","operationId":"check_action_references_api_v1_bot_actions__action_id__references_get","security":[{"JWT":[]}],"parameters":[{"name":"action_id","in":"path","required":true,"schema":{"type":"string","title":"Action Id"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ActionReferenceResponse"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/v1/bot-actions/test":{"post":{"tags":["Bot Actions"],"summary":"Test Action","operationId":"test_action_api_v1_bot_actions_test_post","requestBody":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/TestBotActionRequest"}}},"required":true},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/TestActionResult"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}},"security":[{"JWT":[]}]}},"/api/v1/bot-form-actions/external-forms/{config_id}":{"get":{"tags":["Bot Actions"],"summary":"Get External Forms By Integration Config","operationId":"get_external_forms_by_integration_config_api_v1_bot_form_actions_external_forms__config_id__get","security":[{"JWT":[]}],"parameters":[{"name":"config_id","in":"path","required":true,"schema":{"type":"string","title":"Config Id"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/v1/bot-form-actions/external-form-fields/{config_id}/form-fields/{form_id}":{"get":{"tags":["Bot Actions"],"summary":"Get External Form Fields","operationId":"get_external_form_fields_api_v1_bot_form_actions_external_form_fields__config_id__form_fields__form_id__get","security":[{"JWT":[]}],"parameters":[{"name":"config_id","in":"path","required":true,"schema":{"type":"string","title":"Config Id"}},{"name":"form_id","in":"path","required":true,"schema":{"type":"string","title":"Form Id"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/v1/bot-action-secrets/":{"get":{"tags":["Bot Actions"],"summary":"List Secrets","operationId":"list_secrets_api_v1_bot_action_secrets__get","responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"items":{"$ref":"#/components/schemas/BotActionSecretResponse"},"type":"array","title":"Response List Secrets Api V1 Bot Action Secrets  Get"}}}}},"security":[{"JWT":[]}]},"post":{"tags":["Bot Actions"],"summary":"Create Secret","operationId":"create_secret_api_v1_bot_action_secrets__post","requestBody":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/CreateBotActionSecretRequest"}}},"required":true},"responses":{"201":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/BotActionSecretResponse"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}},"security":[{"JWT":[]}]}},"/api/v1/bot-action-secrets/{secret_id}":{"get":{"tags":["Bot Actions"],"summary":"Get Secret","operationId":"get_secret_api_v1_bot_action_secrets__secret_id__get","security":[{"JWT":[]}],"parameters":[{"name":"secret_id","in":"path","required":true,"schema":{"type":"string","title":"Secret Id"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/BotActionSecretResponse"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}},"put":{"tags":["Bot Actions"],"summary":"Update Secret","operationId":"update_secret_api_v1_bot_action_secrets__secret_id__put","security":[{"JWT":[]}],"parameters":[{"name":"secret_id","in":"path","required":true,"schema":{"type":"string","title":"Secret Id"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/UpdateBotActionSecretRequest"}}}},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/BotActionSecretResponse"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}},"delete":{"tags":["Bot Actions"],"summary":"Delete Secret","operationId":"delete_secret_api_v1_bot_action_secrets__secret_id__delete","security":[{"JWT":[]}],"parameters":[{"name":"secret_id","in":"path","required":true,"schema":{"type":"string","title":"Secret Id"}}],"responses":{"204":{"description":"Successful Response"},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/v1/bot-action-secrets/{secret_id}/test":{"post":{"tags":["Bot Actions"],"summary":"Test Secret Resolution","operationId":"test_secret_resolution_api_v1_bot_action_secrets__secret_id__test_post","security":[{"JWT":[]}],"parameters":[{"name":"secret_id","in":"path","required":true,"schema":{"type":"string","title":"Secret Id"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/TestSecretResolutionRequest"}}}},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/TestSecretResolutionResponse"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/v1/bot-action-secrets/{secret_id}/cache-status":{"get":{"tags":["Bot Actions"],"summary":"Get Cache Status","operationId":"get_cache_status_api_v1_bot_action_secrets__secret_id__cache_status_get","security":[{"JWT":[]}],"parameters":[{"name":"secret_id","in":"path","required":true,"schema":{"type":"string","title":"Secret Id"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/CacheStatusResponse"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/v1/bot-action-secrets/{secret_id}/cache":{"delete":{"tags":["Bot Actions"],"summary":"Clear Cache","operationId":"clear_cache_api_v1_bot_action_secrets__secret_id__cache_delete","security":[{"JWT":[]}],"parameters":[{"name":"secret_id","in":"path","required":true,"schema":{"type":"string","title":"Secret Id"}}],"responses":{"204":{"description":"Successful Response"},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/v1/documents":{"get":{"tags":["Uploaded Documents"],"summary":"List Docs","description":"List all documents in the document knowledge store.","operationId":"list_docs_api_v1_documents_get","responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}}},"security":[{"JWT":[]}]},"post":{"tags":["Uploaded Documents"],"summary":"Upload Doc","description":"Upload and index a file, adding the contents to the document knowledge store.","operationId":"upload_doc_api_v1_documents_post","requestBody":{"content":{"multipart/form-data":{"schema":{"$ref":"#/components/schemas/FileUpload"}}},"required":true},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}},"security":[{"JWT":[]}]}},"/api/v1/documents/{doc_id}":{"delete":{"tags":["Uploaded Documents"],"summary":"Delete Doc","description":"Delete a document from the document knowledge store.","operationId":"delete_doc_api_v1_documents__doc_id__delete","security":[{"JWT":[]}],"parameters":[{"name":"doc_id","in":"path","required":true,"schema":{"type":"string","title":"Doc Id"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/v1/documents/{doc_id}/boost":{"patch":{"tags":["Uploaded Documents"],"summary":"Update Document Boost","description":"Update the boost value for a specific document","operationId":"update_document_boost_api_v1_documents__doc_id__boost_patch","security":[{"JWT":[]}],"parameters":[{"name":"doc_id","in":"path","required":true,"schema":{"type":"string","title":"Doc Id"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/UpdateDocumentBoostPayload"}}}},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/v1/websites":{"get":{"tags":["Websites"],"summary":"List Websites","description":"List all websites in the website knowledge store.","operationId":"list_websites_api_v1_websites_get","responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}}},"security":[{"JWT":[]}]},"post":{"tags":["Websites"],"summary":"Add Website","description":"Add a website to the website knowledge store.","operationId":"add_website_api_v1_websites_post","requestBody":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/AddWebsitePayload"}}},"required":true},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}},"security":[{"JWT":[]}]}},"/api/v1/websites/check_url":{"get":{"tags":["Websites"],"summary":"Check Url","description":"Check website and estimate the number of pages.","operationId":"check_url_api_v1_websites_check_url_get","security":[{"JWT":[]}],"parameters":[{"name":"url","in":"query","required":true,"schema":{"type":"string","description":"Url to check","title":"Url"},"description":"Url to check"},{"name":"type","in":"query","required":true,"schema":{"type":"string","description":"Type of the website","title":"Type"},"description":"Type of the website"}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/v1/websites/{website_id}/test_filter":{"post":{"tags":["Websites"],"summary":"Test Regex Filter","description":"Test filter regex against an already indexed website.","operationId":"test_regex_filter_api_v1_websites__website_id__test_filter_post","security":[{"JWT":[]}],"parameters":[{"name":"website_id","in":"path","required":true,"schema":{"type":"string","title":"Website Id"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/TestFilterPayload"}}}},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/v1/websites/{website_id}/urls":{"get":{"tags":["Websites"],"summary":"List Website Urls","description":"Get list of pages indexed for a specific website.","operationId":"list_website_urls_api_v1_websites__website_id__urls_get","security":[{"JWT":[]}],"parameters":[{"name":"website_id","in":"path","required":true,"schema":{"type":"string","title":"Website Id"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/v1/websites/{website_id}/content":{"get":{"tags":["Websites"],"summary":"Get Website Content","description":"Retrieve stored content of a specific page.","operationId":"get_website_content_api_v1_websites__website_id__content_get","security":[{"JWT":[]}],"parameters":[{"name":"website_id","in":"path","required":true,"schema":{"type":"string","title":"Website Id"}},{"name":"url","in":"query","required":true,"schema":{"type":"string","title":"Url"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/v1/websites/{website_id}/advanced":{"get":{"tags":["Websites"],"summary":"Get Website Advanced Settings","description":"Get advanced settings for a website (selfhosted install only)","operationId":"get_website_advanced_settings_api_v1_websites__website_id__advanced_get","security":[{"JWT":[]}],"parameters":[{"name":"website_id","in":"path","required":true,"schema":{"type":"string","title":"Website Id"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}},"post":{"tags":["Websites"],"summary":"Updated Website Advanced Settings","description":"Update advanced settings for a website (selfhosted install only)","operationId":"updated_website_advanced_settings_api_v1_websites__website_id__advanced_post","security":[{"JWT":[]}],"parameters":[{"name":"website_id","in":"path","required":true,"schema":{"type":"string","title":"Website Id"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"type":"object","additionalProperties":true,"title":"Data"}}}},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/v1/websites/{website_id}/history":{"get":{"tags":["Websites"],"summary":"List Website History","description":"List indexing history for specific website.","operationId":"list_website_history_api_v1_websites__website_id__history_get","security":[{"JWT":[]}],"parameters":[{"name":"website_id","in":"path","required":true,"schema":{"type":"string","title":"Website Id"}},{"name":"start_ts","in":"query","required":true,"schema":{"type":"integer","description":"Start timestamp","title":"Start Ts"},"description":"Start timestamp"},{"name":"end_ts","in":"query","required":true,"schema":{"type":"integer","description":"End timestamp","title":"End Ts"},"description":"End timestamp"}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/v1/websites/{website_id}/history/{job_id}/details":{"get":{"tags":["Websites"],"summary":"Get Website Job Details","description":"Get specific indexing job's details","operationId":"get_website_job_details_api_v1_websites__website_id__history__job_id__details_get","security":[{"JWT":[]}],"parameters":[{"name":"website_id","in":"path","required":true,"schema":{"type":"string","title":"Website Id"}},{"name":"job_id","in":"path","required":true,"schema":{"type":"string","title":"Job Id"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/v1/websites/{website_id}":{"delete":{"tags":["Websites"],"summary":"Remove Website","description":"Remove a website from the website knowledge store.","operationId":"remove_website_api_v1_websites__website_id__delete","security":[{"JWT":[]}],"parameters":[{"name":"website_id","in":"path","required":true,"schema":{"type":"string","title":"Website Id"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/v1/websites/{website_id}/boost":{"patch":{"tags":["Websites"],"summary":"Update Website Boost","description":"Update the boost value for a specific website","operationId":"update_website_boost_api_v1_websites__website_id__boost_patch","security":[{"JWT":[]}],"parameters":[{"name":"website_id","in":"path","required":true,"schema":{"type":"string","title":"Website Id"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/UpdateWebsiteBoostPayload"}}}},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/v1/integration/configs":{"get":{"tags":["Integration Configs"],"summary":"Get Integration Configs","description":"Retrieve all integration configurations in the user's active tenant","operationId":"get_integration_configs_api_v1_integration_configs_get","responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}}},"security":[{"JWT":[]}]},"post":{"tags":["Integration Configs"],"summary":"Upsert Integration Config","description":"Upsert a configuration","operationId":"upsert_integration_config_api_v1_integration_configs_post","requestBody":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/UpsertToolConfigRequest"}}},"required":true},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}},"security":[{"JWT":[]}]}},"/api/v1/integration/types":{"get":{"tags":["Integration Configs"],"summary":"Get Integration Config Types","description":"Returns all integration configuration types that are configurable in the UI","operationId":"get_integration_config_types_api_v1_integration_types_get","responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}}},"security":[{"JWT":[]}]}},"/api/v1/integration/tool-configs/{tool_name}":{"get":{"tags":["Integration Configs"],"summary":"Get Tool Configs","description":"Retrieve all integration configurations for the given `tool_name` in the user's active tenant","operationId":"get_tool_configs_api_v1_integration_tool_configs__tool_name__get","security":[{"JWT":[]}],"parameters":[{"name":"tool_name","in":"path","required":true,"schema":{"$ref":"#/components/schemas/ToolName"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/v1/integration/youtrack/projects":{"post":{"tags":["Integration Configs"],"summary":"Get Youtrack Projects","operationId":"get_youtrack_projects_api_v1_integration_youtrack_projects_post","requestBody":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/YouTrackProjectsRequest"}}},"required":true},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}},"security":[{"JWT":[]}]}},"/api/v1/integration/youtrack/tags":{"post":{"tags":["Integration Configs"],"summary":"Get Youtrack Tags","operationId":"get_youtrack_tags_api_v1_integration_youtrack_tags_post","requestBody":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/YouTrackTagsRequest"}}},"required":true},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}},"security":[{"JWT":[]}]}},"/api/v1/integration/configs/{config_id}/boost":{"patch":{"tags":["Integration Configs"],"summary":"Update Integration Boost","description":"Update the boost value for a specific integration configuration","operationId":"update_integration_boost_api_v1_integration_configs__config_id__boost_patch","security":[{"JWT":[]}],"parameters":[{"name":"config_id","in":"path","required":true,"schema":{"type":"string","title":"Config Id"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/UpdateBoostPayload"}}}},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/v1/integration/configs/{config_id}":{"delete":{"tags":["Integration Configs"],"summary":"Delete Integration Config","description":"Delete an integration configuration by id","operationId":"delete_integration_config_api_v1_integration_configs__config_id__delete","security":[{"JWT":[]}],"parameters":[{"name":"config_id","in":"path","required":true,"schema":{"type":"string","title":"Config Id"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/v1/integration/validate":{"post":{"tags":["Integration Configs"],"summary":"Validate Integration","description":"Validate the given integration configuration. Currently only `confluence` configurations are supported.","operationId":"validate_integration_api_v1_integration_validate_post","requestBody":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/UpsertToolConfigRequest"}}},"required":true},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}},"security":[{"JWT":[]}]}},"/api/v1/integration/zendesk/brands":{"post":{"tags":["Integration Configs"],"summary":"Get Zendesk Brands","operationId":"get_zendesk_brands_api_v1_integration_zendesk_brands_post","requestBody":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ZendeskBrandsRequest"}}},"required":true},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}},"security":[{"JWT":[]}]}},"/api/v1/integration/salesforce/case-record-types":{"post":{"tags":["Integration Configs"],"summary":"Get Salesforce Case Record Types","operationId":"get_salesforce_case_record_types_api_v1_integration_salesforce_case_record_types_post","requestBody":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/SalesforceRecordTypesRequest"}}},"required":true},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}},"security":[{"JWT":[]}]}},"/api/v1/integration/salesforce/case-fields":{"post":{"tags":["Integration Configs"],"summary":"Get Salesforce Case Fields","operationId":"get_salesforce_case_fields_api_v1_integration_salesforce_case_fields_post","requestBody":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/SalesforceRecordTypesRequest"}}},"required":true},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"items":{"$ref":"#/components/schemas/CaseField"},"type":"array","title":"Response Get Salesforce Case Fields Api V1 Integration Salesforce Case Fields Post"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}},"security":[{"JWT":[]}]}},"/api/v1/integration/salesforce/case-origins":{"post":{"tags":["Integration Configs"],"summary":"Get Salesforce Case Origins","operationId":"get_salesforce_case_origins_api_v1_integration_salesforce_case_origins_post","requestBody":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/SalesforceRecordTypesRequest"}}},"required":true},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"items":{"$ref":"#/components/schemas/CaseOrigin"},"type":"array","title":"Response Get Salesforce Case Origins Api V1 Integration Salesforce Case Origins Post"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}},"security":[{"JWT":[]}]}},"/api/v1/integration/helpscout/inboxes":{"post":{"tags":["Integration Configs"],"summary":"Get Helpscout Inboxes","operationId":"get_helpscout_inboxes_api_v1_integration_helpscout_inboxes_post","requestBody":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/HelpScoutInboxesRequest"}}},"required":true},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"items":{"$ref":"#/components/schemas/HelpScoutInbox"},"type":"array","title":"Response Get Helpscout Inboxes Api V1 Integration Helpscout Inboxes Post"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}},"security":[{"JWT":[]}]}},"/api/v1/integration/salesforce/knowledge-record-types":{"post":{"tags":["Integration Configs"],"summary":"Get Salesforce Knowledge Record Types","operationId":"get_salesforce_knowledge_record_types_api_v1_integration_salesforce_knowledge_record_types_post","requestBody":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/SalesforceKnowledgeRecordTypesRequest"}}},"required":true},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"items":{"$ref":"#/components/schemas/KnowledgeRecordType"},"type":"array","title":"Response Get Salesforce Knowledge Record Types Api V1 Integration Salesforce Knowledge Record Types Post"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}},"security":[{"JWT":[]}]}},"/api/v1/integration/confluence/spaces":{"post":{"tags":["Integration Configs"],"summary":"Get Confluence Spaces","operationId":"get_confluence_spaces_api_v1_integration_confluence_spaces_post","requestBody":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/UpsertToolConfigRequest"}}},"required":true},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}},"security":[{"JWT":[]}]}},"/api/v1/integration/reindex/{tool_name}":{"post":{"tags":["Integration Configs"],"summary":"Reindex Store","description":"Trigger reindexing of the given `tool_name` with the given `file_ids` and `websites` (if applicable for the given `tool_name`), and optionally for a specific `config_id`","operationId":"reindex_store_api_v1_integration_reindex__tool_name__post","security":[{"JWT":[]}],"parameters":[{"name":"tool_name","in":"path","required":true,"schema":{"$ref":"#/components/schemas/ToolName"}},{"name":"config_id","in":"query","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Config Id"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ReindexRequest"}}}},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/v1/integration/count":{"get":{"tags":["Integration Configs"],"summary":"Get Integrations Count","description":"Get the count of integrations, websites, and documents","operationId":"get_integrations_count_api_v1_integration_count_get","responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}}},"security":[{"JWT":[]}]}},"/api/v1/integration/google_drive/{config_id}/available_shared_drives":{"get":{"tags":["Integration Configs"],"summary":"Get Google Drive Available Shared Drives","description":"Retrieve the list of available shared drives for the specified google drive config","operationId":"get_google_drive_available_shared_drives_api_v1_integration_google_drive__config_id__available_shared_drives_get","security":[{"JWT":[]}],"parameters":[{"name":"config_id","in":"path","required":true,"schema":{"type":"string","title":"Config Id"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/v1/integration/sharepoint/{config_id}/available_sites":{"get":{"tags":["Integration Configs"],"summary":"Get Sharepoint Available Sites","description":"Retrieve the list of available SharePoint sites for the specified config","operationId":"get_sharepoint_available_sites_api_v1_integration_sharepoint__config_id__available_sites_get","security":[{"JWT":[]}],"parameters":[{"name":"config_id","in":"path","required":true,"schema":{"type":"string","title":"Config Id"}},{"name":"search","in":"query","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"description":"Optional search term for SharePoint site lookup","title":"Search"},"description":"Optional search term for SharePoint site lookup"}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/v1/integration/configs/{config_id}/history":{"get":{"tags":["Integration Configs"],"summary":"List Indexing History","description":"List indexing history for a specific config.","operationId":"list_indexing_history_api_v1_integration_configs__config_id__history_get","security":[{"JWT":[]}],"parameters":[{"name":"config_id","in":"path","required":true,"schema":{"type":"string","title":"Config Id"}},{"name":"start_ts","in":"query","required":true,"schema":{"type":"integer","description":"Start timestamp","title":"Start Ts"},"description":"Start timestamp"},{"name":"end_ts","in":"query","required":true,"schema":{"type":"integer","description":"End timestamp","title":"End Ts"},"description":"End timestamp"}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/v1/integration/configs/{config_id}/history/{job_id}/details":{"get":{"tags":["Integration Configs"],"summary":"Get Indexing Job Details","description":"Get specific indexing job's details","operationId":"get_indexing_job_details_api_v1_integration_configs__config_id__history__job_id__details_get","security":[{"JWT":[]}],"parameters":[{"name":"config_id","in":"path","required":true,"schema":{"type":"string","title":"Config Id"}},{"name":"job_id","in":"path","required":true,"schema":{"type":"string","title":"Job Id"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/v1/integration/google_drive/{config_id}/get_access_token":{"get":{"tags":["Integration Configs"],"summary":"Get Google Drive Creds","description":"Retrieve the google drive access token for the specified config","operationId":"get_google_drive_creds_api_v1_integration_google_drive__config_id__get_access_token_get","security":[{"JWT":[]}],"parameters":[{"name":"config_id","in":"path","required":true,"schema":{"type":"string","title":"Config Id"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/GetGoogleDriveAccessTokenResponse"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/v1/integration/indexing-jobs":{"get":{"tags":["Integration Configs"],"summary":"Get Latest Indexing Jobs","description":"Get the latest indexing jobs for all integration configs","operationId":"get_latest_indexing_jobs_api_v1_integration_indexing_jobs_get","responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"additionalProperties":{"$ref":"#/components/schemas/IndexingJobProgress"},"type":"object","title":"Response Get Latest Indexing Jobs Api V1 Integration Indexing Jobs Get"}}}}},"security":[{"JWT":[]}]}},"/api/v1/finder/metadata/{config_id}/{type}":{"get":{"tags":["Document finder"],"summary":"Get Docstore Metadata","description":"Retrieve metadata for a given config ID and type.","operationId":"get_docstore_metadata_api_v1_finder_metadata__config_id___type__get","security":[{"JWT":[]}],"parameters":[{"name":"config_id","in":"path","required":true,"schema":{"type":"string","title":"Config Id"}},{"name":"type","in":"path","required":true,"schema":{"type":"string","title":"Type"}},{"name":"fields","in":"query","required":false,"schema":{"anyOf":[{"type":"array","items":{"type":"string"}},{"type":"null"}],"title":"Fields"}},{"name":"search","in":"query","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Search"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/v1/bots/bot-approvers":{"get":{"tags":["Bots"],"summary":"Get Bot Approvers","description":"Retrieve all potential bot approvers for the given `active_channels`","operationId":"get_bot_approvers_api_v1_bots_bot_approvers_get","security":[{"JWT":[]}],"parameters":[{"name":"active_channels","in":"query","required":true,"schema":{"type":"array","items":{"type":"string"},"examples":[["{\"channel_id\": \"C06HYDDG1D0\"}"]],"title":"Active Channels"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/v1/bots/available-channels":{"get":{"tags":["Bots"],"summary":"Get Available Channels","description":"Retrieve all the Slack channels that a bot can be configured to post in.","operationId":"get_available_channels_api_v1_bots_available_channels_get","responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}}},"security":[{"JWT":[]}]}},"/api/v1/bots/bot-pipelines":{"get":{"tags":["Bots"],"summary":"Get Bot Pipelines","operationId":"get_bot_pipelines_api_v1_bots_bot_pipelines_get","responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}}},"security":[{"JWT":[]}]}},"/api/v1/bots":{"get":{"tags":["Bots"],"summary":"Get Bots","description":"Retrieve all bots in the user's active tenant","operationId":"get_bots_api_v1_bots_get","security":[{"JWT":[]}],"parameters":[{"name":"published","in":"query","required":false,"schema":{"type":"string","default":"true","title":"Published"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/v1/bots/{bot_id}":{"get":{"tags":["Bots"],"summary":"Get Bot","operationId":"get_bot_api_v1_bots__bot_id__get","security":[{"JWT":[]}],"parameters":[{"name":"bot_id","in":"path","required":true,"schema":{"type":"string","title":"Bot Id"}},{"name":"version","in":"query","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Version"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}},"delete":{"tags":["Bots"],"summary":"Delete Bot","description":"Delete a bot configuration in the user's active tenant","operationId":"delete_bot_api_v1_bots__bot_id__delete","security":[{"JWT":[]}],"parameters":[{"name":"bot_id","in":"path","required":true,"schema":{"type":"string","title":"Bot Id"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/v1/bot/list_versions":{"get":{"tags":["Bots"],"summary":"Get Bot Versions","operationId":"get_bot_versions_api_v1_bot_list_versions_get","security":[{"JWT":[]}],"parameters":[{"name":"bot_id","in":"query","required":true,"schema":{"type":"string","title":"Bot Id"}},{"name":"fix_id","in":"query","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Fix Id"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/v1/bots/upsert":{"put":{"tags":["Bots"],"summary":"Upsert Bot","description":"Upsert a bot configuration in the user's active tenant","operationId":"upsert_bot_api_v1_bots_upsert_put","requestBody":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/UpsertBotRequest"}}},"required":true},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}},"security":[{"JWT":[]}]}},"/api/v1/bots/update-draft":{"post":{"tags":["Bots"],"summary":"Update Draft","operationId":"update_draft_api_v1_bots_update_draft_post","requestBody":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/PublishBotRequest"}}},"required":true},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/UpdateDraftResponse"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}},"security":[{"JWT":[]}]}},"/api/v1/bots/publish":{"post":{"tags":["Bots"],"summary":"Publish Bot","operationId":"publish_bot_api_v1_bots_publish_post","requestBody":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/PublishBotRequest"}}},"required":true},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}},"security":[{"JWT":[]}]}},"/api/v1/bots/{bot_id}/clone":{"post":{"tags":["Bots"],"summary":"Clone Bot","description":"Clone a bot version into a new bot in the same tenant","operationId":"clone_bot_api_v1_bots__bot_id__clone_post","security":[{"JWT":[]}],"parameters":[{"name":"bot_id","in":"path","required":true,"schema":{"type":"string","title":"Bot Id"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/CloneBotRequest"}}}},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/CloneBotResponse"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/v1/bots/note-format/options":{"get":{"tags":["Bots"],"summary":"Get Bot Note Format Options","operationId":"get_bot_note_format_options_api_v1_bots_note_format_options_get","responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}}},"security":[{"JWT":[]}]}},"/api/v1/bots/{bot_id}/webhook":{"get":{"tags":["Bots"],"summary":"Get Bot Webhook","description":"Get webhook config for a bot","operationId":"get_bot_webhook_api_v1_bots__bot_id__webhook_get","security":[{"JWT":[]}],"parameters":[{"name":"bot_id","in":"path","required":true,"schema":{"type":"string","title":"Bot Id"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/v1/bots/{bot_id}/install-webhook":{"post":{"tags":["Bots"],"summary":"Install Webhook","operationId":"install_webhook_api_v1_bots__bot_id__install_webhook_post","security":[{"JWT":[]}],"parameters":[{"name":"bot_id","in":"path","required":true,"schema":{"type":"string","title":"Bot Id"}}],"responses":{"204":{"description":"Successful Response"},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/v1/bots/{bot_id}/uninstall-webhook":{"post":{"tags":["Bots"],"summary":"Uninstall Webhook","operationId":"uninstall_webhook_api_v1_bots__bot_id__uninstall_webhook_post","security":[{"JWT":[]}],"parameters":[{"name":"bot_id","in":"path","required":true,"schema":{"type":"string","title":"Bot Id"}}],"responses":{"204":{"description":"Successful Response"},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/v1/bots/live-test":{"post":{"tags":["Bots"],"summary":"Handle Live Test","operationId":"handle_live_test_api_v1_bots_live_test_post","requestBody":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/LiveTestRequest"}}},"required":true},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}},"security":[{"JWT":[]}]}},"/api/v1/bots/live-test/{request_id}":{"get":{"tags":["Bots"],"summary":"Get Live Test Result","operationId":"get_live_test_result_api_v1_bots_live_test__request_id__get","security":[{"JWT":[]}],"parameters":[{"name":"request_id","in":"path","required":true,"schema":{"type":"string","title":"Request Id"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/LiveTestResponse"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/v1/account/account-mappings":{"get":{"tags":["Account Management"],"summary":"Get Account Mappings","description":"Retrieve all account mappings for the user's active tenant","operationId":"get_account_mappings_api_v1_account_account_mappings_get","responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}}},"security":[{"JWT":[]}]}},"/api/v1/account/identity-provider":{"get":{"tags":["Account Management"],"summary":"Get Identity Provider","description":"Retrieve the identity provider for the user's active tenant","operationId":"get_identity_provider_api_v1_account_identity_provider_get","responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}}},"security":[{"JWT":[]}]},"post":{"tags":["Account Management"],"summary":"Set Identity Provider","description":"Set the identity provider for the user's active tenant. Valid values are `slack`.","operationId":"set_identity_provider_api_v1_account_identity_provider_post","requestBody":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/SetIdentityProviderRequest"}}},"required":true},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}},"security":[{"JWT":[]}]}},"/api/v1/account/identity-sync":{"post":{"tags":["Account Management"],"summary":"Send Identity Sync","description":"Trigger an identity sync for the user's active tenant","operationId":"send_identity_sync_api_v1_account_identity_sync_post","responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}}},"security":[{"JWT":[]}]}},"/api/v1/account/canonical-users":{"get":{"tags":["Account Management"],"summary":"Get Canonical Users","description":"Retrieve all QueryPal users for the user's active tenant","operationId":"get_canonical_users_api_v1_account_canonical_users_get","responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}}},"security":[{"JWT":[]}]}},"/api/v1/account/integration-users/confluence":{"get":{"tags":["Account Management"],"summary":"Get Confluence Integration Users","description":"Retrieve all Confluence integration users for the given `config_id`","operationId":"get_confluence_integration_users_api_v1_account_integration_users_confluence_get","security":[{"JWT":[]}],"parameters":[{"name":"config_id","in":"query","required":true,"schema":{"type":"string","title":"Config Id"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"type":"array","items":{"$ref":"#/components/schemas/ConfluenceIntegrationUser"},"title":"Response Get Confluence Integration Users Api V1 Account Integration Users Confluence Get"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/v1/account/integration-users/slack":{"get":{"tags":["Account Management"],"summary":"Get Slack Integration Users","description":"Retrieve all Slack integration users for the given `config_id`","operationId":"get_slack_integration_users_api_v1_account_integration_users_slack_get","security":[{"JWT":[]}],"parameters":[{"name":"config_id","in":"query","required":true,"schema":{"type":"string","title":"Config Id"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"type":"array","items":{"$ref":"#/components/schemas/SlackIntegrationUser"},"title":"Response Get Slack Integration Users Api V1 Account Integration Users Slack Get"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/v1/account/update-user-roles":{"post":{"tags":["Account Management"],"summary":"Update User Roles","description":"Update the roles of multiple users","operationId":"update_user_roles_api_v1_account_update_user_roles_post","requestBody":{"content":{"application/json":{"schema":{"items":{"$ref":"#/components/schemas/UserRoleUpdate"},"type":"array","title":"Update List"}}},"required":true},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}},"security":[{"JWT":[]}]}},"/api/v1/account/integration-user-mapping":{"post":{"tags":["Account Management"],"summary":"Create Integration User Mapping","description":"Create a mapping between a QueryPal user and an external user for the given `config_id` and `integration_type`","operationId":"create_integration_user_mapping_api_v1_account_integration_user_mapping_post","requestBody":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/CreateIntegrationMappingRequest"}}},"required":true},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}},"security":[{"JWT":[]}]},"delete":{"tags":["Account Management"],"summary":"Delete Integration User Mapping","description":"Delete a mapping between a QueryPal user and an external user for the given `config_id` and `integration_type`","operationId":"delete_integration_user_mapping_api_v1_account_integration_user_mapping_delete","requestBody":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/CreateIntegrationMappingRequest"}}},"required":true},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}},"security":[{"JWT":[]}]}},"/api/v1/jira_sm/installation/{installation_id}":{"get":{"tags":["Jira Service Management Integration"],"summary":"Get Setup Status","operationId":"get_setup_status_api_v1_jira_sm_installation__installation_id__get","security":[{"JWT":[]}],"parameters":[{"name":"installation_id","in":"path","required":true,"schema":{"type":"string","title":"Installation Id"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/v1/jira_sm/installation/{installation_id}/claim":{"post":{"tags":["Jira Service Management Integration"],"summary":"Setup Jira","operationId":"setup_jira_api_v1_jira_sm_installation__installation_id__claim_post","parameters":[{"name":"installation_id","in":"path","required":true,"schema":{"type":"string","title":"Installation Id"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/SetupPayload"}}}},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/v1/jira_sm/installation/{installation_id}/claim/{claim_id}/status":{"get":{"tags":["Jira Service Management Integration"],"summary":"Check Claim","operationId":"check_claim_api_v1_jira_sm_installation__installation_id__claim__claim_id__status_get","security":[{"JWT":[]}],"parameters":[{"name":"installation_id","in":"path","required":true,"schema":{"type":"string","title":"Installation Id"}},{"name":"claim_id","in":"path","required":true,"schema":{"type":"string","title":"Claim Id"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/v1/jira_sm/installation/{installation_id}/claim/{claim_id}/accept":{"post":{"tags":["Jira Service Management Integration"],"summary":"Accept Claim","operationId":"accept_claim_api_v1_jira_sm_installation__installation_id__claim__claim_id__accept_post","security":[{"JWT":[]}],"parameters":[{"name":"installation_id","in":"path","required":true,"schema":{"type":"string","title":"Installation Id"}},{"name":"claim_id","in":"path","required":true,"schema":{"type":"string","title":"Claim Id"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/v1/jira_sm/webhook/issue_created":{"post":{"tags":["Jira Service Management Integration"],"summary":"Handle Webhook","operationId":"handle_webhook_api_v1_jira_sm_webhook_issue_created_post","requestBody":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/WebhookPayload"}}},"required":true},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}},"security":[{"HTTPBearer":[]}]}},"/api/v1/reporting/main":{"get":{"tags":["reporting"],"summary":"Get Report Data","operationId":"get_report_data_api_v1_reporting_main_get","responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}}},"security":[{"JWT":[]}]}},"/api/v1/reporting/sankey":{"get":{"tags":["reporting"],"summary":"Get Sankey Data","operationId":"get_sankey_data_api_v1_reporting_sankey_get","security":[{"JWT":[]}],"parameters":[{"name":"start_time","in":"query","required":false,"schema":{"anyOf":[{"type":"integer"},{"type":"null"}],"title":"Start Time"}},{"name":"end_time","in":"query","required":false,"schema":{"anyOf":[{"type":"integer"},{"type":"null"}],"title":"End Time"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/v1/reporting/votes-histogram":{"get":{"tags":["reporting"],"summary":"Get Feedback Data","operationId":"get_feedback_data_api_v1_reporting_votes_histogram_get","security":[{"JWT":[]}],"parameters":[{"name":"start_time","in":"query","required":false,"schema":{"anyOf":[{"type":"integer"},{"type":"null"}],"title":"Start Time"}},{"name":"end_time","in":"query","required":false,"schema":{"anyOf":[{"type":"integer"},{"type":"null"}],"title":"End Time"}},{"name":"bot_id","in":"query","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Bot Id"}},{"name":"category","in":"query","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Category"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/v1/reporting/ratings-histogram":{"get":{"tags":["reporting"],"summary":"Get Ratings Data","operationId":"get_ratings_data_api_v1_reporting_ratings_histogram_get","security":[{"JWT":[]}],"parameters":[{"name":"start_time","in":"query","required":false,"schema":{"anyOf":[{"type":"integer"},{"type":"null"}],"title":"Start Time"}},{"name":"end_time","in":"query","required":false,"schema":{"anyOf":[{"type":"integer"},{"type":"null"}],"title":"End Time"}},{"name":"bot_id","in":"query","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Bot Id"}},{"name":"category","in":"query","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Category"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/v1/reporting/sessions":{"get":{"tags":["reporting"],"summary":"Sessions Query","operationId":"sessions_query_api_v1_reporting_sessions_get","security":[{"JWT":[]}],"parameters":[{"name":"end_at","in":"query","required":true,"schema":{"type":"string","format":"date-time","title":"End At"}},{"name":"page_size","in":"query","required":true,"schema":{"type":"integer","title":"Page Size"}},{"name":"bot_id","in":"query","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Bot Id"}},{"name":"last_used_bot_id","in":"query","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Last Used Bot Id"}},{"name":"cursor","in":"query","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Cursor"}},{"name":"purpose","in":"query","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Purpose"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/v1/reporting/sessions/{session_id}":{"get":{"tags":["reporting"],"summary":"Get Session By Id","operationId":"get_session_by_id_api_v1_reporting_sessions__session_id__get","security":[{"JWT":[]}],"parameters":[{"name":"session_id","in":"path","required":true,"schema":{"type":"string","title":"Session Id"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/v1/reporting/sessions/{session_id}/messages":{"get":{"tags":["reporting"],"summary":"Session Messages","operationId":"session_messages_api_v1_reporting_sessions__session_id__messages_get","security":[{"JWT":[]}],"parameters":[{"name":"session_id","in":"path","required":true,"schema":{"type":"string","title":"Session Id"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/v1/external-qa/s/{session_id}":{"get":{"tags":["External QA"],"summary":"Get Session Messages","operationId":"get_session_messages_api_v1_external_qa_s__session_id__get","security":[{"JWT":[]}],"parameters":[{"name":"session_id","in":"path","required":true,"schema":{"type":"string","title":"Session Id"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/v1/external-qa/session/{session_id}/messages":{"get":{"tags":["External QA"],"summary":"Get Session Messages V2","operationId":"get_session_messages_v2_api_v1_external_qa_session__session_id__messages_get","security":[{"JWT":[]}],"parameters":[{"name":"session_id","in":"path","required":true,"schema":{"type":"string","title":"Session Id"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/v1/external-qa/session/{session_id}/requests/{request_id}/trace":{"get":{"tags":["External QA"],"summary":"Get Request Trace","operationId":"get_request_trace_api_v1_external_qa_session__session_id__requests__request_id__trace_get","security":[{"JWT":[]}],"parameters":[{"name":"session_id","in":"path","required":true,"schema":{"type":"string","title":"Session Id"}},{"name":"request_id","in":"path","required":true,"schema":{"type":"string","title":"Request Id"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/v1/external-qa/session/{session_id}/requests/{request_id}/display":{"get":{"tags":["External QA"],"summary":"Get Session Message Display","operationId":"get_session_message_display_api_v1_external_qa_session__session_id__requests__request_id__display_get","security":[{"JWT":[]}],"parameters":[{"name":"session_id","in":"path","required":true,"schema":{"type":"string","title":"Session Id"}},{"name":"request_id","in":"path","required":true,"schema":{"type":"string","title":"Request Id"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/v1/external-qa/send_answer_to_ticket":{"post":{"tags":["External QA"],"summary":"Send Answer To Ticket","operationId":"send_answer_to_ticket_api_v1_external_qa_send_answer_to_ticket_post","requestBody":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/PostAnswerRequest"}}},"required":true},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}},"security":[{"JWT":[]}]}},"/api/v1/external-qa/get-bot-auth-info":{"get":{"tags":["External QA"],"summary":"Get Question Info","operationId":"get_question_info_api_v1_external_qa_get_bot_auth_info_get","parameters":[{"name":"tenant_id","in":"query","required":true,"schema":{"type":"string","title":"Tenant Id"}},{"name":"request_id","in":"query","required":true,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Request Id"}},{"name":"bot_id","in":"query","required":true,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Bot Id"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/v1/external-qa/s/reset":{"post":{"tags":["External QA"],"summary":"Reset Session","operationId":"reset_session_api_v1_external_qa_s_reset_post","requestBody":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ResetRequest"}}},"required":true},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}},"security":[{"JWT":[]}]}},"/api/v1/external-qa/s/start":{"post":{"tags":["External QA"],"summary":"Start Session","operationId":"start_session_api_v1_external_qa_s_start_post","requestBody":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/StartSessionRequest"}}},"required":true},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}},"security":[{"JWT":[]}]}},"/api/v1/external-qa/get-related-sessions/{session_id}":{"get":{"tags":["External QA"],"summary":"Get Related Sessions","operationId":"get_related_sessions_api_v1_external_qa_get_related_sessions__session_id__get","security":[{"JWT":[]}],"parameters":[{"name":"session_id","in":"path","required":true,"schema":{"type":"string","title":"Session Id"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/v1/external-qa/update-session-nickname":{"post":{"tags":["External QA"],"summary":"Update Nickname","operationId":"update_nickname_api_v1_external_qa_update_session_nickname_post","requestBody":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/UpdateNicknameRequest"}}},"required":true},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}},"security":[{"JWT":[]}]}},"/api/v1/external-qa/t/{tenant_id}/b/{bot_id}":{"get":{"tags":["External QA"],"summary":"Get Bot Config","operationId":"get_bot_config_api_v1_external_qa_t__tenant_id__b__bot_id__get","security":[{"JWT":[]}],"parameters":[{"name":"tenant_id","in":"path","required":true,"schema":{"type":"string","title":"Tenant Id"}},{"name":"bot_id","in":"path","required":true,"schema":{"type":"string","title":"Bot Id"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/v1/external-qa/search":{"post":{"tags":["External QA"],"summary":"Search","operationId":"search_api_v1_external_qa_search_post","requestBody":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/admin_api__external_qa__router__PostQueryRequest"}}},"required":true},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}},"security":[{"JWT":[]}]}},"/api/v1/external-qa/query":{"post":{"tags":["External QA"],"summary":"Query","operationId":"query_api_v1_external_qa_query_post","security":[{"JWT":[]}],"parameters":[{"name":"X-QueryPal-Auth-Relay-Token","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"X-Querypal-Auth-Relay-Token"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/admin_api__external_qa__router__PostQueryRequest"}}}},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/v1/external-qa/vote":{"post":{"tags":["External QA"],"summary":"Post Vote","operationId":"post_vote_api_v1_external_qa_vote_post","requestBody":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/admin_api__external_qa__router__PostVoteRequest"}}},"required":true},"responses":{"204":{"description":"Successful Response"},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/v1/external-qa/track-session":{"post":{"tags":["External QA"],"summary":"Track Session","operationId":"track_session_api_v1_external_qa_track_session_post","requestBody":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/PostNewSessionRequest"}}},"required":true},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/v1/external-qa/update-session":{"post":{"tags":["External QA"],"summary":"Post Update Session","operationId":"post_update_session_api_v1_external_qa_update_session_post","requestBody":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/PostUpdateSessionRequest"}}},"required":true},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/v1/external-qa/track-click":{"post":{"tags":["External QA"],"summary":"Track Click","operationId":"track_click_api_v1_external_qa_track_click_post","requestBody":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/PostNewClickRequest"}}},"required":true},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/v1/external-qa/track":{"post":{"tags":["External QA"],"summary":"Post Track","operationId":"post_track_api_v1_external_qa_track_post","requestBody":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/PostTrackRequest"}}},"required":true},"responses":{"204":{"description":"Successful Response"},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/v1/external-qa/forms/{form_id}":{"get":{"tags":["External QA"],"summary":"Get Form","operationId":"get_form_api_v1_external_qa_forms__form_id__get","parameters":[{"name":"form_id","in":"path","required":true,"schema":{"type":"string","title":"Form Id"}},{"name":"tenant_id","in":"query","required":true,"schema":{"type":"string","title":"Tenant Id"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Form-Output"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/v1/external-qa/forms/{form_id}/submissions":{"post":{"tags":["External QA"],"summary":"Submit Form","operationId":"submit_form_api_v1_external_qa_forms__form_id__submissions_post","security":[{"JWT":[]}],"parameters":[{"name":"form_id","in":"path","required":true,"schema":{"type":"string","title":"Form Id"}},{"name":"X-QueryPal-Auth-Relay-Token","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"X-Querypal-Auth-Relay-Token"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/v1/external-qa/s/{session_id}/artifacts":{"get":{"tags":["External QA Artifacts"],"summary":"List Artifacts","operationId":"list_artifacts_api_v1_external_qa_s__session_id__artifacts_get","security":[{"JWT":[]}],"parameters":[{"name":"session_id","in":"path","required":true,"schema":{"type":"string","title":"Session Id"}},{"name":"tenant_id","in":"query","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Tenant Id"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ListArtifactsResponse"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/v1/external-qa/s/{session_id}/artifacts/{name}":{"get":{"tags":["External QA Artifacts"],"summary":"Get Artifact","operationId":"get_artifact_api_v1_external_qa_s__session_id__artifacts__name__get","security":[{"JWT":[]}],"parameters":[{"name":"session_id","in":"path","required":true,"schema":{"type":"string","title":"Session Id"}},{"name":"name","in":"path","required":true,"schema":{"type":"string","title":"Name"}},{"name":"version","in":"query","required":false,"schema":{"anyOf":[{"type":"integer"},{"type":"null"}],"title":"Version"}},{"name":"tenant_id","in":"query","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Tenant Id"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ArtifactContentResponse"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}},"put":{"tags":["External QA Artifacts"],"summary":"Update Artifact","operationId":"update_artifact_api_v1_external_qa_s__session_id__artifacts__name__put","security":[{"JWT":[]}],"parameters":[{"name":"session_id","in":"path","required":true,"schema":{"type":"string","title":"Session Id"}},{"name":"name","in":"path","required":true,"schema":{"type":"string","title":"Name"}},{"name":"tenant_id","in":"query","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Tenant Id"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/UpdateArtifactRequest"}}}},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ArtifactResponse"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/v1/external-qa/s/{session_id}/artifacts/{name}/actions/{action_id}":{"post":{"tags":["External QA Artifacts"],"summary":"Run Artifact Action","operationId":"run_artifact_action_api_v1_external_qa_s__session_id__artifacts__name__actions__action_id__post","security":[{"JWT":[]}],"parameters":[{"name":"session_id","in":"path","required":true,"schema":{"type":"string","title":"Session Id"}},{"name":"name","in":"path","required":true,"schema":{"type":"string","title":"Name"}},{"name":"action_id","in":"path","required":true,"schema":{"type":"string","title":"Action Id"}},{"name":"tenant_id","in":"query","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Tenant Id"}}],"requestBody":{"content":{"application/json":{"schema":{"anyOf":[{"$ref":"#/components/schemas/RunActionRequest"},{"type":"null"}],"title":"Body"}}}},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/RunActionResponse"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/v1/external-qa/s/{session_id}/artifacts/{name}/link-case":{"post":{"tags":["External QA Artifacts"],"summary":"Link Artifact Case","operationId":"link_artifact_case_api_v1_external_qa_s__session_id__artifacts__name__link_case_post","security":[{"JWT":[]}],"parameters":[{"name":"session_id","in":"path","required":true,"schema":{"type":"string","title":"Session Id"}},{"name":"name","in":"path","required":true,"schema":{"type":"string","title":"Name"}},{"name":"tenant_id","in":"query","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Tenant Id"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/LinkCaseResponse"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/v1/external-qa/s/{session_id}/artifacts/{name}/versions/{version}/restore":{"post":{"tags":["External QA Artifacts"],"summary":"Restore Artifact","operationId":"restore_artifact_api_v1_external_qa_s__session_id__artifacts__name__versions__version__restore_post","security":[{"JWT":[]}],"parameters":[{"name":"session_id","in":"path","required":true,"schema":{"type":"string","title":"Session Id"}},{"name":"name","in":"path","required":true,"schema":{"type":"string","title":"Name"}},{"name":"version","in":"path","required":true,"schema":{"type":"integer","title":"Version"}},{"name":"tenant_id","in":"query","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Tenant Id"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/RestoreArtifactRequest"}}}},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ArtifactResponse"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/public-user-uploads/bot-avatars":{"get":{"tags":["Public User Uploads"],"summary":"List All","description":"Retrieve all","operationId":"list_all_public_user_uploads_bot_avatars_get","responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}}},"security":[{"JWT":[]}]},"post":{"tags":["Public User Uploads"],"summary":"Upload","description":"Upload new","operationId":"upload_public_user_uploads_bot_avatars_post","requestBody":{"content":{"multipart/form-data":{"schema":{"$ref":"#/components/schemas/FileUpload"}}},"required":true},"responses":{"204":{"description":"Successful Response"},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}},"security":[{"JWT":[]}]}},"/public-user-uploads/widget-launcher-icons":{"get":{"tags":["Public User Uploads"],"summary":"List Widget Launcher Icons","description":"Retrieve all widget launcher icons","operationId":"list_widget_launcher_icons_public_user_uploads_widget_launcher_icons_get","responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}}},"security":[{"JWT":[]}]},"post":{"tags":["Public User Uploads"],"summary":"Upload Widget Launcher Icon","description":"Upload new widget launcher icon","operationId":"upload_widget_launcher_icon_public_user_uploads_widget_launcher_icons_post","requestBody":{"content":{"multipart/form-data":{"schema":{"$ref":"#/components/schemas/FileUpload"}}},"required":true},"responses":{"204":{"description":"Successful Response"},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}},"security":[{"JWT":[]}]}},"/api/v1/qa/query":{"post":{"tags":["query"],"summary":"Query a bot","operationId":"query_api_v1_qa_query_post","security":[{"HTTPBearer":[]}],"parameters":[{"name":"user-agent","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"User-Agent"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/admin_api__qa_api__router__PostQueryRequest"}}}},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/v1/qa/query/stream":{"post":{"tags":["query"],"summary":"Query a bot, uses SSE for streaming","operationId":"query_stream_api_v1_qa_query_stream_post","security":[{"HTTPBearer":[]}],"parameters":[{"name":"user-agent","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"User-Agent"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/admin_api__qa_api__router__PostQueryRequest"}}}},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/PostQueryResponse"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/v1/qa/vote":{"post":{"tags":["query"],"summary":"Vote on a query response.","operationId":"post_vote_api_v1_qa_vote_post","requestBody":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/admin_api__qa_api__router__PostVoteRequest"}}},"required":true},"responses":{"204":{"description":"Successful Response"},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}},"security":[{"HTTPBearer":[]}]}},"/api/v1/qa/feedback":{"post":{"tags":["query"],"summary":"Submit feedback on a query response.","operationId":"post_rating_api_v1_qa_feedback_post","requestBody":{"content":{"application/json":{"schema":{"anyOf":[{"$ref":"#/components/schemas/admin_api__qa_api__router__PostVoteRequest"},{"$ref":"#/components/schemas/PostRatingRequest"}],"title":"Request"}}},"required":true},"responses":{"204":{"description":"Successful Response"},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}},"security":[{"HTTPBearer":[]}]}},"/api/v1/qa/whoami":{"get":{"tags":["query"],"summary":"Get information about the authenticated principal.","operationId":"whoami_api_v1_qa_whoami_get","responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/PrincipalInfo"}}}}},"security":[{"HTTPBearer":[]}]}},"/api/v1/qa/examples":{"post":{"tags":["query"],"summary":"Create an example.","operationId":"post_example_api_v1_qa_examples_post","requestBody":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/PostExampleRequest"}}},"required":true},"responses":{"201":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/PostExampleResponse"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}},"security":[{"HTTPBearer":[]}]}},"/api/v1/runbooks/":{"get":{"tags":["runbooks"],"summary":"List Runbooks","operationId":"list_runbooks_api_v1_runbooks__get","responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}}},"security":[{"JWT":[]}]}},"/api/v1/runbooks/{runbook_id}":{"get":{"tags":["runbooks"],"summary":"Get Runbook","operationId":"get_runbook_api_v1_runbooks__runbook_id__get","security":[{"JWT":[]}],"parameters":[{"name":"runbook_id","in":"path","required":true,"schema":{"type":"string","title":"Runbook Id"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/v1/runbooks/store":{"post":{"tags":["runbooks"],"summary":"Store","operationId":"store_api_v1_runbooks_store_post","requestBody":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/StoreRunbookRequest"}}},"required":true},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}},"security":[{"JWT":[]}]}},"/api/v1/intercom/webhook":{"post":{"tags":["Intercom Integration"],"summary":"Handle Webhook","operationId":"handle_webhook_api_v1_intercom_webhook_post","requestBody":{"content":{"application/json":{"schema":{"title":"Payload"}}},"required":true},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/v1/zendesk/webhook":{"post":{"tags":["Zendesk Integration"],"summary":"Handle Webhook","operationId":"handle_webhook_api_v1_zendesk_webhook_post","requestBody":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ZendeskAutodraftWebhookTicketPayload"}}},"required":true},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}},"security":[{"HTTPBearer":[]}]}},"/api/v1/zendesk/webhook/ticket-triage":{"post":{"tags":["Zendesk Integration"],"summary":"Handle Webhook Triage","operationId":"handle_webhook_triage_api_v1_zendesk_webhook_ticket_triage_post","requestBody":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ZendeskTicketTriagePayload"}}},"required":true},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}},"security":[{"HTTPBearer":[]}]}},"/api/v1/zendesk/bot-bearer-token":{"get":{"tags":["Zendesk Integration"],"summary":"Get Bot Bearer Token","operationId":"get_bot_bearer_token_api_v1_zendesk_bot_bearer_token_get","responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}}},"security":[{"JWT":[]}]}},"/api/v1/zendesk/webhook/transcribe":{"post":{"tags":["Zendesk Integration"],"summary":"Transcribe Audio Webhook","operationId":"transcribe_audio_webhook_api_v1_zendesk_webhook_transcribe_post","requestBody":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ZendeskAutodraftWebhookTicketPayload"}}},"required":true},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}},"security":[{"HTTPBearer":[]}]}},"/api/v1/freshdesk/bot-webhook-key":{"get":{"tags":["Freshdesk Integration"],"summary":"Get Bot Webhook Key","operationId":"get_bot_webhook_key_api_v1_freshdesk_bot_webhook_key_get","security":[{"JWT":[]}],"parameters":[{"name":"bot_id","in":"query","required":true,"schema":{"type":"string","title":"Bot Id"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/v1/freshdesk/webhook/ticket":{"post":{"tags":["Freshdesk Integration"],"summary":"Handle Webhook","operationId":"handle_webhook_api_v1_freshdesk_webhook_ticket_post","parameters":[{"name":"authorization","in":"header","required":true,"schema":{"type":"string","title":"Authorization"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/TicketPayload"}}}},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/v1/freshdesk/webhook/provide-answer-to-audio":{"post":{"tags":["Freshdesk Integration"],"summary":"Handle Audio Webhook","operationId":"handle_audio_webhook_api_v1_freshdesk_webhook_provide_answer_to_audio_post","parameters":[{"name":"authorization","in":"header","required":true,"schema":{"type":"string","title":"Authorization"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/TicketPayload"}}}},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/v1/freshdesk/webhook/transcribe":{"post":{"tags":["Freshdesk Integration"],"summary":"Handle Transcribe Webhook","operationId":"handle_transcribe_webhook_api_v1_freshdesk_webhook_transcribe_post","parameters":[{"name":"authorization","in":"header","required":true,"schema":{"type":"string","title":"Authorization"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/TranscriptPayload"}}}},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/v1/freshdesk/webhook/triage-ticket":{"post":{"tags":["Freshdesk Integration"],"summary":"Handle Triage Webhook","operationId":"handle_triage_webhook_api_v1_freshdesk_webhook_triage_ticket_post","parameters":[{"name":"authorization","in":"header","required":true,"schema":{"type":"string","title":"Authorization"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/TicketPayload"}}}},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/v1/helpscout/webhook/{key}":{"post":{"tags":["Help Scout Integration"],"summary":"Handle Webhook","operationId":"handle_webhook_api_v1_helpscout_webhook__key__post","parameters":[{"name":"key","in":"path","required":true,"schema":{"type":"string","title":"Key"}},{"name":"X-HelpScout-Event","in":"header","required":true,"schema":{"type":"string","title":"X-Helpscout-Event"}},{"name":"X-HelpScout-Signature","in":"header","required":true,"schema":{"type":"string","title":"X-Helpscout-Signature"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/v1/salesforce/bot-webhook-key":{"get":{"tags":["Salesforce Integration"],"summary":"Get Bot Webhook Key","operationId":"get_bot_webhook_key_api_v1_salesforce_bot_webhook_key_get","security":[{"JWT":[]}],"parameters":[{"name":"bot_id","in":"query","required":true,"schema":{"type":"string","title":"Bot Id"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/v1/salesforce/webhook/case":{"post":{"tags":["Salesforce Integration"],"summary":"Handle Webhook","operationId":"handle_webhook_api_v1_salesforce_webhook_case_post","parameters":[{"name":"authorization","in":"header","required":true,"schema":{"type":"string","title":"Authorization"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/CasePayload"}}}},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/v1/answer-feedback/t/{tenant_id}/answer/{answer_id}":{"get":{"tags":["Answer Feedback"],"summary":"Get Ticket Info","operationId":"get_ticket_info_api_v1_answer_feedback_t__tenant_id__answer__answer_id__get","security":[{"JWT":[]}],"parameters":[{"name":"tenant_id","in":"path","required":true,"schema":{"type":"string","title":"Tenant Id"}},{"name":"answer_id","in":"path","required":true,"schema":{"type":"string","title":"Answer Id"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}},"post":{"tags":["Answer Feedback"],"summary":"Submit Feedback","operationId":"submit_feedback_api_v1_answer_feedback_t__tenant_id__answer__answer_id__post","security":[{"JWT":[]}],"parameters":[{"name":"tenant_id","in":"path","required":true,"schema":{"type":"string","title":"Tenant Id"}},{"name":"answer_id","in":"path","required":true,"schema":{"type":"string","title":"Answer Id"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"anyOf":[{"$ref":"#/components/schemas/SubmitFeedbackPayload"},{"$ref":"#/components/schemas/SubmitRatingPayload"}],"title":"Payload"}}}},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/v1/answer-feedback/rating/{request_id}":{"get":{"tags":["Answer Feedback"],"summary":"Get Rating","operationId":"get_rating_api_v1_answer_feedback_rating__request_id__get","security":[{"JWT":[]}],"parameters":[{"name":"request_id","in":"path","required":true,"schema":{"type":"string","title":"Request Id"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/v1/answer-feedback/rating":{"post":{"tags":["Answer Feedback"],"summary":"Make Rating","operationId":"make_rating_api_v1_answer_feedback_rating_post","requestBody":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/RatingPayload"}}},"required":true},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}},"security":[{"JWT":[]}]}},"/api/v1/answer-feedback/ratings-range":{"get":{"tags":["Answer Feedback"],"summary":"Get Ratings Range","operationId":"get_ratings_range_api_v1_answer_feedback_ratings_range_get","security":[{"JWT":[]}],"parameters":[{"name":"start_time","in":"query","required":true,"schema":{"type":"integer","title":"Start Time"}},{"name":"end_time","in":"query","required":true,"schema":{"type":"integer","title":"End Time"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/v1/answer-feedback/qe-responses/{request_id}":{"get":{"tags":["Answer Feedback"],"summary":"Get Qe Response","operationId":"get_qe_response_api_v1_answer_feedback_qe_responses__request_id__get","security":[{"JWT":[]}],"parameters":[{"name":"request_id","in":"path","required":true,"schema":{"type":"string","title":"Request Id"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/v1/answer-feedback/response-stats-range":{"get":{"tags":["Answer Feedback"],"summary":"Get Response Stats Range","operationId":"get_response_stats_range_api_v1_answer_feedback_response_stats_range_get","security":[{"JWT":[]}],"parameters":[{"name":"start_time","in":"query","required":true,"schema":{"type":"integer","title":"Start Time"}},{"name":"end_time","in":"query","required":true,"schema":{"type":"integer","title":"End Time"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/v1/answer-feedback/update-feedback-status":{"post":{"tags":["Answer Feedback"],"summary":"Update Feedback Status","operationId":"update_feedback_status_api_v1_answer_feedback_update_feedback_status_post","requestBody":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/UpdateFeedbackStatusPayload"}}},"required":true},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}},"security":[{"JWT":[]}]}},"/api/v1/answer-feedback/update-feedback":{"post":{"tags":["Answer Feedback"],"summary":"Update Feedback Reason","operationId":"update_feedback_reason_api_v1_answer_feedback_update_feedback_post","requestBody":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/UpdateFeedbackPayload"}}},"required":true},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}},"security":[{"JWT":[]}]}},"/api/v1/answer-feedback/update-feedback-triage":{"post":{"tags":["Answer Feedback"],"summary":"Update Feedback Triage","operationId":"update_feedback_triage_api_v1_answer_feedback_update_feedback_triage_post","requestBody":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/UpdateFeedbackTriagePayload"}}},"required":true},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}},"security":[{"JWT":[]}]}},"/sample-tickets/auto-draft-opt-out":{"get":{"tags":["Sample Tickets"],"summary":"Get Auto Draft Opt Out","operationId":"get_auto_draft_opt_out_sample_tickets_auto_draft_opt_out_get","responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}}},"security":[{"JWT":[]}]},"post":{"tags":["Sample Tickets"],"summary":"Set Auto Draft Opt Out","operationId":"set_auto_draft_opt_out_sample_tickets_auto_draft_opt_out_post","requestBody":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/OptOutPayload"}}},"required":true},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}},"security":[{"JWT":[]}]}},"/api/v1/semantic-decorations/search":{"post":{"tags":["Semantic Decorations"],"summary":"Search documents by their semantic decorations","operationId":"search_api_v1_semantic_decorations_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":[{"JWT":[]}]}},"/api/v1/semantic-decorations/dimensions":{"get":{"tags":["Semantic Decorations"],"summary":"List the dimensions results can be grouped by","operationId":"dimensions_api_v1_semantic_decorations_dimensions_get","security":[{"JWT":[]}],"parameters":[{"name":"config_id","in":"query","required":false,"schema":{"type":"string","default":"","title":"Config Id"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/DimensionsResponse"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/v1/semantic-decorations/topics":{"get":{"tags":["Semantic Decorations"],"summary":"Get the topics and sub-topics tickets are mapped to","operationId":"get_topics_api_v1_semantic_decorations_topics_get","responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/TopicsListResponse"}}}}},"security":[{"JWT":[]}]},"put":{"tags":["Semantic Decorations"],"summary":"Replace the topics and sub-topics tickets are mapped to","operationId":"update_topics_api_v1_semantic_decorations_topics_put","requestBody":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/UpdateTopicsRequest"}}},"required":true},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/TopicsResponse"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}},"security":[{"JWT":[]}]}},"/api/v1/auth-relay/keys":{"get":{"tags":["Auth Relay"],"summary":"List Key Pairs","operationId":"list_key_pairs_api_v1_auth_relay_keys_get","responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"items":{"$ref":"#/components/schemas/KeyResponse"},"type":"array","title":"Response List Key Pairs Api V1 Auth Relay Keys Get"}}}}},"security":[{"JWT":[]}]},"post":{"tags":["Auth Relay"],"summary":"Create New Key Pair","operationId":"create_new_key_pair_api_v1_auth_relay_keys_post","requestBody":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/KeyCreate"}}},"required":true},"responses":{"201":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/KeyCreateResponse"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}},"security":[{"JWT":[]}]}},"/api/v1/auth-relay/keys/{key_id}":{"get":{"tags":["Auth Relay"],"summary":"Get Key Pair Details","operationId":"get_key_pair_details_api_v1_auth_relay_keys__key_id__get","security":[{"JWT":[]}],"parameters":[{"name":"key_id","in":"path","required":true,"schema":{"type":"string","title":"Key Id"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/KeyResponse"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}},"put":{"tags":["Auth Relay"],"summary":"Update Key Pair Details","operationId":"update_key_pair_details_api_v1_auth_relay_keys__key_id__put","security":[{"JWT":[]}],"parameters":[{"name":"key_id","in":"path","required":true,"schema":{"type":"string","title":"Key Id"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/KeyPairUpdate"}}}},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/KeyResponse"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}},"delete":{"tags":["Auth Relay"],"summary":"Delete Key Pair By Id","operationId":"delete_key_pair_by_id_api_v1_auth_relay_keys__key_id__delete","security":[{"JWT":[]}],"parameters":[{"name":"key_id","in":"path","required":true,"schema":{"type":"string","title":"Key Id"}}],"responses":{"204":{"description":"Successful Response"},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/v1/intercept-responses/fetch-answered-queries":{"get":{"tags":["Intercept Responses"],"summary":"Get Recent Tickets","operationId":"get_recent_tickets_api_v1_intercept_responses_fetch_answered_queries_get","security":[{"JWT":[]}],"parameters":[{"name":"start_time","in":"query","required":false,"schema":{"anyOf":[{"type":"integer"},{"type":"null"}],"title":"Start Time"}},{"name":"end_time","in":"query","required":false,"schema":{"anyOf":[{"type":"integer"},{"type":"null"}],"title":"End Time"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/FetchAnsweredQueriesResponse"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/v1/intercept-responses/fetch_all_stats":{"get":{"tags":["Intercept Responses"],"summary":"Get Answered Ticket Bins","operationId":"get_answered_ticket_bins_api_v1_intercept_responses_fetch_all_stats_get","security":[{"JWT":[]}],"parameters":[{"name":"start_time","in":"query","required":false,"schema":{"anyOf":[{"type":"integer"},{"type":"null"}],"title":"Start Time"}},{"name":"end_time","in":"query","required":false,"schema":{"anyOf":[{"type":"integer"},{"type":"null"}],"title":"End Time"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/v1/tickets/":{"get":{"tags":["Tickets"],"summary":"List Tickets","operationId":"list_tickets_api_v1_tickets__get","security":[{"JWT":[]}],"parameters":[{"name":"config_id","in":"query","required":true,"schema":{"type":"string","title":"Config Id"}},{"name":"page_size","in":"query","required":false,"schema":{"type":"integer","default":25,"title":"Page Size"}},{"name":"cursor","in":"query","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Cursor"}},{"name":"intercept_only","in":"query","required":false,"schema":{"type":"boolean","default":true,"title":"Intercept Only"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ListTicketsResponse"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/v1/tickets/{display_id}":{"get":{"tags":["Tickets"],"summary":"Get Ticket Detail","operationId":"get_ticket_detail_api_v1_tickets__display_id__get","security":[{"JWT":[]}],"parameters":[{"name":"display_id","in":"path","required":true,"schema":{"type":"string","title":"Display Id"}},{"name":"config_id","in":"query","required":true,"schema":{"type":"string","title":"Config Id"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/TicketDetail"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/v1/tickets/{display_id}/context":{"get":{"tags":["Tickets"],"summary":"Get Ticket Context","operationId":"get_ticket_context_api_v1_tickets__display_id__context_get","security":[{"JWT":[]}],"parameters":[{"name":"display_id","in":"path","required":true,"schema":{"type":"string","title":"Display Id"}},{"name":"config_id","in":"query","required":true,"schema":{"type":"string","title":"Config Id"}},{"name":"bot_id","in":"query","required":true,"schema":{"type":"string","title":"Bot Id"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/TicketContextResponse"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/v1/tickets/{display_id}/chat-session":{"post":{"tags":["Tickets"],"summary":"Create Ticket Chat Session","operationId":"create_ticket_chat_session_api_v1_tickets__display_id__chat_session_post","security":[{"JWT":[]}],"parameters":[{"name":"display_id","in":"path","required":true,"schema":{"type":"string","title":"Display Id"}},{"name":"config_id","in":"query","required":true,"schema":{"type":"string","title":"Config Id"}},{"name":"bot_id","in":"query","required":true,"schema":{"type":"string","title":"Bot Id"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/TicketChatSession"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/v1/tickets/resolve-session/{session_id}":{"get":{"tags":["Tickets"],"summary":"Resolve Session Route","operationId":"resolve_session_route_api_v1_tickets_resolve_session__session_id__get","security":[{"JWT":[]}],"parameters":[{"name":"session_id","in":"path","required":true,"schema":{"type":"string","title":"Session Id"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ResolvedTicketRoute"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/v1/tickets/{display_id}/trigger":{"post":{"tags":["Tickets"],"summary":"Trigger Querypal","operationId":"trigger_querypal_api_v1_tickets__display_id__trigger_post","security":[{"JWT":[]}],"parameters":[{"name":"display_id","in":"path","required":true,"schema":{"type":"string","title":"Display Id"}},{"name":"config_id","in":"query","required":true,"schema":{"type":"string","title":"Config Id"}},{"name":"bot_id","in":"query","required":true,"schema":{"type":"string","title":"Bot Id"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/TriggerQueryPalResponse"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/v1/tickets/{display_id}/intercept-status":{"get":{"tags":["Tickets"],"summary":"Intercept Status","operationId":"intercept_status_api_v1_tickets__display_id__intercept_status_get","security":[{"JWT":[]}],"parameters":[{"name":"display_id","in":"path","required":true,"schema":{"type":"string","title":"Display Id"}},{"name":"config_id","in":"query","required":true,"schema":{"type":"string","title":"Config Id"}},{"name":"bot_id","in":"query","required":true,"schema":{"type":"string","title":"Bot Id"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/InterceptStatusResponse"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/v1/tickets/{display_id}/refresh":{"post":{"tags":["Tickets"],"summary":"Refresh Ticket Detail","operationId":"refresh_ticket_detail_api_v1_tickets__display_id__refresh_post","security":[{"JWT":[]}],"parameters":[{"name":"display_id","in":"path","required":true,"schema":{"type":"string","title":"Display Id"}},{"name":"config_id","in":"query","required":true,"schema":{"type":"string","title":"Config Id"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/TicketRefreshRequest"}}}},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/TicketDetail"}}}},"204":{"description":"No changes since the client's snapshot"},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/v1/success-metrics/reports/entailment":{"get":{"tags":["Success Metrics"],"summary":"Get Entailment Reports","operationId":"get_entailment_reports_api_v1_success_metrics_reports_entailment_get","security":[{"JWT":[]}],"parameters":[{"name":"config_id","in":"query","required":true,"schema":{"type":"string","title":"Config Id"}},{"name":"qe_request_id","in":"query","required":true,"schema":{"type":"string","title":"Qe Request Id"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"type":"array","items":{"$ref":"#/components/schemas/EntailmentReport"},"title":"Response Get Entailment Reports Api V1 Success Metrics Reports Entailment Get"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/v1/triage-review/fetch-predictions":{"get":{"tags":["Triage Review"],"summary":"Get Triage Predictions","operationId":"get_triage_predictions_api_v1_triage_review_fetch_predictions_get","security":[{"JWT":[]}],"parameters":[{"name":"triage_config_id","in":"query","required":true,"schema":{"type":"string","title":"Triage Config Id"}},{"name":"start_time","in":"query","required":true,"schema":{"type":"integer","title":"Start Time"}},{"name":"end_time","in":"query","required":true,"schema":{"type":"integer","title":"End Time"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/v1/triage-review/annotate":{"post":{"tags":["Triage Review"],"summary":"Annotate","operationId":"annotate_api_v1_triage_review_annotate_post","requestBody":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/TriageAnnotatePayload"}}},"required":true},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}},"security":[{"JWT":[]}]}},"/api/v1/triage-review/annotate-admin":{"post":{"tags":["Triage Review"],"summary":"Annotate Admin","operationId":"annotate_admin_api_v1_triage_review_annotate_admin_post","requestBody":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/TriageAnnotateAdminPayload"}}},"required":true},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}},"security":[{"JWT":[]}]}},"/api/v1/usage-stats/series":{"get":{"tags":["Usage Stats"],"summary":"Get Usage Series","operationId":"get_usage_series_api_v1_usage_stats_series_get","security":[{"JWT":[]}],"parameters":[{"name":"start_time","in":"query","required":true,"schema":{"type":"integer","title":"Start Time"}},{"name":"end_time","in":"query","required":true,"schema":{"type":"integer","title":"End Time"}},{"name":"granularity","in":"query","required":false,"schema":{"enum":["hour","day","week","month"],"type":"string","default":"day","title":"Granularity"}},{"name":"tz","in":"query","required":false,"schema":{"type":"string","default":"UTC","title":"Tz"}},{"name":"group_by","in":"query","required":false,"schema":{"enum":["none","bot","user","attachments","traffic","deflection"],"type":"string","default":"none","title":"Group By"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/UsageSeriesResponse"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/v1/report-exports":{"get":{"tags":["Report Exports"],"summary":"List Report Exports","operationId":"list_report_exports_api_v1_report_exports_get","responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"items":{"$ref":"#/components/schemas/ReportExportResponse"},"type":"array","title":"Response List Report Exports Api V1 Report Exports Get"}}}}},"security":[{"JWT":[]}]},"post":{"tags":["Report Exports"],"summary":"Request Report Export","operationId":"request_report_export_api_v1_report_exports_post","requestBody":{"content":{"application/json":{"schema":{"oneOf":[{"$ref":"#/components/schemas/UsageReportParams"},{"$ref":"#/components/schemas/AgentFeedbackParams"},{"$ref":"#/components/schemas/AnswerSummaryParams"},{"$ref":"#/components/schemas/BotSessionsParams"},{"$ref":"#/components/schemas/TriageReportParams"},{"$ref":"#/components/schemas/InterceptResponsesParams"},{"$ref":"#/components/schemas/SemanticDecorationsParams"}],"title":"Params","discriminator":{"propertyName":"kind","mapping":{"usage":"#/components/schemas/UsageReportParams","agent_feedback":"#/components/schemas/AgentFeedbackParams","answer_summary":"#/components/schemas/AnswerSummaryParams","bot_sessions":"#/components/schemas/BotSessionsParams","triage":"#/components/schemas/TriageReportParams","intercept_responses":"#/components/schemas/InterceptResponsesParams","semantic_decorations":"#/components/schemas/SemanticDecorationsParams"}}}}},"required":true},"responses":{"202":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ReportExportResponse"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}},"security":[{"JWT":[]}]}},"/api/v1/report-exports/{report_id}":{"get":{"tags":["Report Exports"],"summary":"Get Report Export","operationId":"get_report_export_api_v1_report_exports__report_id__get","security":[{"JWT":[]}],"parameters":[{"name":"report_id","in":"path","required":true,"schema":{"type":"string","title":"Report Id"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ReportExportResponse"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/v1/report-exports/{report_id}/download":{"get":{"tags":["Report Exports"],"summary":"Get Report Download","operationId":"get_report_download_api_v1_report_exports__report_id__download_get","security":[{"JWT":[]}],"parameters":[{"name":"report_id","in":"path","required":true,"schema":{"type":"string","title":"Report Id"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/v1/report-exports/{report_id}/dismiss":{"post":{"tags":["Report Exports"],"summary":"Dismiss Report Export","operationId":"dismiss_report_export_api_v1_report_exports__report_id__dismiss_post","security":[{"JWT":[]}],"parameters":[{"name":"report_id","in":"path","required":true,"schema":{"type":"string","title":"Report Id"}}],"responses":{"204":{"description":"Successful Response"},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/v1/api_keys/create":{"post":{"tags":["API Keys"],"summary":"Create Api Key","operationId":"create_api_key_api_v1_api_keys_create_post","requestBody":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/CreateAPIKeyRequest"}}},"required":true},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/CreateAPIKeyResponse"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}},"security":[{"JWT":[]}]}},"/api/v1/api_keys/":{"get":{"tags":["API Keys"],"summary":"List Api Keys","operationId":"list_api_keys_api_v1_api_keys__get","responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ListAPIKeysResponse"}}}}},"security":[{"JWT":[]}]}},"/api/v1/api_keys/{api_key_id}":{"delete":{"tags":["API Keys"],"summary":"Delete Api Key","operationId":"delete_api_key_api_v1_api_keys__api_key_id__delete","security":[{"JWT":[]}],"parameters":[{"name":"api_key_id","in":"path","required":true,"schema":{"type":"string","title":"Api Key Id"}}],"responses":{"204":{"description":"Successful Response"},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/v1/knowledge-management/tagging-settings":{"get":{"tags":["Knowledge Management"],"summary":"Get Tagging Settings","operationId":"get_tagging_settings_api_v1_knowledge_management_tagging_settings_get","responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/TaggingSettingsResponse"}}}}},"security":[{"JWT":[]}]},"put":{"tags":["Knowledge Management"],"summary":"Update Tagging Settings","operationId":"update_tagging_settings_api_v1_knowledge_management_tagging_settings_put","requestBody":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/TaggingSettingsRequest"}}},"required":true},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/TaggingSettingsResponse"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}},"security":[{"JWT":[]}]}},"/api/v1/knowledge-management/store-faq":{"post":{"tags":["Knowledge Management"],"summary":"Store Faq","operationId":"store_faq_api_v1_knowledge_management_store_faq_post","requestBody":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/StoreFaqRequest"}}},"required":true},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/StoreFaqResponse"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}},"security":[{"JWT":[]}]}},"/api/v1/knowledge-management/create-faq-from-ticket":{"post":{"tags":["Knowledge Management"],"summary":"Create Faq From Ticket","operationId":"create_faq_from_ticket_api_v1_knowledge_management_create_faq_from_ticket_post","requestBody":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/CreateFaqFromTicketRequest"}}},"required":true},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/CreateFaqFromTicketResponse"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}},"security":[{"JWT":[]}]}},"/api/v1/knowledge-management/update-faq":{"post":{"tags":["Knowledge Management"],"summary":"Update Faq","operationId":"update_faq_api_v1_knowledge_management_update_faq_post","requestBody":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/UpdateFaqContentRequest"}}},"required":true},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/UpdateFaqResponse"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}},"security":[{"JWT":[]}]}},"/api/v1/knowledge-management/list-faqs":{"get":{"tags":["Knowledge Management"],"summary":"List Faqs","operationId":"list_faqs_api_v1_knowledge_management_list_faqs_get","responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ListFaqsResponse"}}}}},"security":[{"JWT":[]}]}},"/api/v1/knowledge-management/get-faq/{friendly_faq_id}":{"get":{"tags":["Knowledge Management"],"summary":"Get Faq","operationId":"get_faq_api_v1_knowledge_management_get_faq__friendly_faq_id__get","security":[{"JWT":[]}],"parameters":[{"name":"friendly_faq_id","in":"path","required":true,"schema":{"type":"string","title":"Friendly Faq Id"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/v1/knowledge-management/delete-faq/{faq_id}":{"delete":{"tags":["Knowledge Management"],"summary":"Delete Faq","operationId":"delete_faq_api_v1_knowledge_management_delete_faq__faq_id__delete","security":[{"JWT":[]}],"parameters":[{"name":"faq_id","in":"path","required":true,"schema":{"type":"string","title":"Faq Id"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/DeleteFaqResponse"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/clickup/auth_url":{"get":{"tags":["Auth"],"summary":"Clickup Auth","description":"Get ClickUp OAuth URL","operationId":"clickup_auth_clickup_auth_url_get","responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/IntegrationAuthUrlResponse"}}}}},"security":[{"JWT":[]}]}},"/v2/clickup_auth_code":{"post":{"tags":["Auth"],"summary":"Handle Clickup Oauth Flow V2","description":"Exchange ClickUp OAuth code for access token","operationId":"handle_clickup_oauth_flow_v2_v2_clickup_auth_code_post","requestBody":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/IntegrationOauthRequest"}}},"required":true},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}},"security":[{"JWT":[]}]}},"/auth/cognito/login":{"get":{"tags":["Auth"],"summary":"Cognito Login","operationId":"cognito_login_auth_cognito_login_get","parameters":[{"name":"redirect_to","in":"query","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Redirect To"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/auth/cognito/callback":{"get":{"tags":["Auth"],"summary":"Cognito Callback","operationId":"cognito_callback_auth_cognito_callback_get","parameters":[{"name":"code","in":"query","required":true,"schema":{"type":"string","title":"Code"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/auth/cognito/slo":{"post":{"tags":["Auth"],"summary":"Cognito Slo","operationId":"cognito_slo_auth_cognito_slo_post","responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}}}}},"/auth/google/signup":{"post":{"tags":["Auth"],"summary":"Google Sign Up Legacy","operationId":"google_sign_up_legacy_auth_google_signup_post","requestBody":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/GoogleAuthPayload"}}},"required":true},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/oauth/sso/google/signup":{"post":{"tags":["Auth"],"summary":"Google Sign Up","operationId":"google_sign_up_oauth_sso_google_signup_post","requestBody":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/GoogleAuthPayload"}}},"required":true},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/auth/google/login":{"post":{"tags":["Auth"],"summary":"Google Login Legacy","operationId":"google_login_legacy_auth_google_login_post","requestBody":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/GoogleAuthPayload"}}},"required":true},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/oauth/sso/google/login":{"post":{"tags":["Auth"],"summary":"Google Login","operationId":"google_login_oauth_sso_google_login_post","parameters":[{"name":"tenant","in":"query","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Tenant"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/GoogleAuthPayload"}}}},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/oauth/sso-web/google_workspace/callback":{"post":{"tags":["Auth"],"summary":"Google Workspace Web Auth","description":"Exchange google workspace auth code for access token","operationId":"google_workspace_web_auth_oauth_sso_web_google_workspace_callback_post","requestBody":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/GoogleAuthPayload"}}},"required":true},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/web_auth/google_workspace/callback":{"post":{"tags":["Auth"],"summary":"Google Workspace Web Auth Legacy","description":"Exchange google workspace auth code for access token","operationId":"google_workspace_web_auth_legacy_web_auth_google_workspace_callback_post","requestBody":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/GoogleAuthPayload"}}},"required":true},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/v2/google_oauth_code":{"post":{"tags":["Auth"],"summary":"Handle Google Oauth Flow V2","description":"Exchange google auth code for access token","operationId":"handle_google_oauth_flow_v2_v2_google_oauth_code_post","requestBody":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/IntegrationOauthRequest"}}},"required":true},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}},"security":[{"JWT":[]}]}},"/google_drive_full_access/auth_url":{"get":{"tags":["Auth"],"summary":"Get Google Drive Full Access Oauth Url","description":"Get Google Drive OAuth URL","operationId":"get_google_drive_full_access_oauth_url_google_drive_full_access_auth_url_get","responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/IntegrationAuthUrlResponse"}}}}},"security":[{"JWT":[]}]}},"/google_drive/auth_url":{"get":{"tags":["Auth"],"summary":"Get Google Drive Oauth Url","description":"Get Google Drive (Individual Files) OAuth URL","operationId":"get_google_drive_oauth_url_google_drive_auth_url_get","responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/IntegrationAuthUrlResponse"}}}}},"security":[{"JWT":[]}]}},"/helpscout/auth_url":{"get":{"tags":["Auth"],"summary":"Helpscout Auth","description":"Get Help Scout OAuth URL","operationId":"helpscout_auth_helpscout_auth_url_get","responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/IntegrationAuthUrlResponse"}}}}},"security":[{"JWT":[]}]}},"/v2/helpscout_auth_code":{"post":{"tags":["Auth"],"summary":"Handle Helpscout Oauth Flow V2","description":"Exchange a Help Scout OAuth code and create the Help Scout config","operationId":"handle_helpscout_oauth_flow_v2_v2_helpscout_auth_code_post","requestBody":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/IntegrationOauthRequest"}}},"required":true},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}},"security":[{"JWT":[]}]}},"/intercom/auth_url":{"get":{"tags":["Auth"],"summary":"Intercom Auth","description":"Get Intercom OAuth URL","operationId":"intercom_auth_intercom_auth_url_get","responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/IntegrationAuthUrlResponse"}}}}},"security":[{"JWT":[]}]}},"/v2/intercom_auth_code":{"post":{"tags":["Auth"],"summary":"Handle Intercom Oauth Flow V2","description":"Exchange Intercom OAuth code for access token","operationId":"handle_intercom_oauth_flow_v2_v2_intercom_auth_code_post","requestBody":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/IntercomIntegrationOauthRequest"}}},"required":true},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}},"security":[{"JWT":[]}]}},"/onedrive/auth_url":{"get":{"tags":["Auth"],"summary":"Onedrive Auth","operationId":"onedrive_auth_onedrive_auth_url_get","responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/IntegrationAuthUrlResponse"}}}}},"security":[{"JWT":[]}]}},"/v2/onedrive_auth_code":{"post":{"tags":["Auth"],"summary":"Handle Onedrive Oauth Flow V2","operationId":"handle_onedrive_oauth_flow_v2_v2_onedrive_auth_code_post","requestBody":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/IntegrationOauthRequest"}}},"required":true},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}},"security":[{"JWT":[]}]}},"/sharepoint/auth_url":{"get":{"tags":["Auth"],"summary":"Sharepoint Auth","operationId":"sharepoint_auth_sharepoint_auth_url_get","responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/IntegrationAuthUrlResponse"}}}}},"security":[{"JWT":[]}]}},"/v2/sharepoint_auth_code":{"post":{"tags":["Auth"],"summary":"Handle Sharepoint Oauth Flow V2","operationId":"handle_sharepoint_oauth_flow_v2_v2_sharepoint_auth_code_post","requestBody":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/IntegrationOauthRequest"}}},"required":true},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}},"security":[{"JWT":[]}]}},"/oauth/sso/microsoft/callback":{"post":{"tags":["Auth"],"summary":"Microsoft Auth","operationId":"microsoft_auth_oauth_sso_microsoft_callback_post","requestBody":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/MicrosoftAuthPayload"}}},"required":true},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/notion/auth_url":{"get":{"tags":["Auth"],"summary":"Notion Auth","description":"Get Notion OAuth URL","operationId":"notion_auth_notion_auth_url_get","responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/IntegrationAuthUrlResponse"}}}}},"security":[{"JWT":[]}]}},"/v2/notion_auth_code":{"post":{"tags":["Auth"],"summary":"Handle Notion Oauth Flow V2","description":"Exchange Notion OAuth code for access token","operationId":"handle_notion_oauth_flow_v2_v2_notion_auth_code_post","requestBody":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/IntegrationOauthRequest"}}},"required":true},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}},"security":[{"JWT":[]}]}},"/auth/saml/initiate_login_flow":{"post":{"tags":["Auth"],"summary":"Initiate Login Flow","operationId":"initiate_login_flow_auth_saml_initiate_login_flow_post","parameters":[{"name":"user_email","in":"query","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"User Email"}},{"name":"redirect_to","in":"query","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Redirect To"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/auth/saml/login":{"get":{"tags":["Auth"],"summary":"Saml Login","operationId":"saml_login_auth_saml_login_get","parameters":[{"name":"tenant","in":"query","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Tenant"}},{"name":"redirect_to","in":"query","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Redirect To"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/auth/saml/acs":{"post":{"tags":["Auth"],"summary":"Saml Acs","operationId":"saml_acs_auth_saml_acs_post","requestBody":{"content":{"application/x-www-form-urlencoded":{"schema":{"$ref":"#/components/schemas/SAMLACSPayload"}}},"required":true},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/auth/saml/slo":{"post":{"tags":["Auth"],"summary":"Saml Slo","operationId":"saml_slo_auth_saml_slo_post","responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}}}}},"/v2/servicenow_auth_code":{"post":{"tags":["Auth"],"summary":"Servicenow Oauth Exchange","operationId":"servicenow_oauth_exchange_v2_servicenow_auth_code_post","requestBody":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ServiceNowNewIntegrationOauthRequest"}}},"required":true},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}},"security":[{"JWT":[]}]}},"/api/v1/servicenow/incident-webhook":{"post":{"tags":["Auth"],"summary":"Handle Webhook","operationId":"handle_webhook_api_v1_servicenow_incident_webhook_post","requestBody":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ServiceNowTicketPayload"}}},"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":[]}]}},"/oauth/slack/callback":{"post":{"tags":["Auth"],"summary":"Slack Auth","description":"Slack OAuth2 callback","operationId":"slack_auth_oauth_slack_callback_post","requestBody":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/LoginAuthRequest"}}},"required":true},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/SlackAuthResponse"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/zendesk/auth_url":{"get":{"tags":["Auth"],"summary":"Zendesk Auth","description":"Get Zendesk OAuth URL","operationId":"zendesk_auth_zendesk_auth_url_get","security":[{"JWT":[]}],"parameters":[{"name":"subdomain","in":"query","required":true,"schema":{"type":"string","title":"Subdomain"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/IntegrationAuthUrlResponse"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/v2/zendesk_auth_code":{"post":{"tags":["Auth"],"summary":"Handle Zendesk Oauth Flow V2","description":"Exchange Zendesk OAuth code for access token","operationId":"handle_zendesk_oauth_flow_v2_v2_zendesk_auth_code_post","requestBody":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ZendeskIntegrationOauthRequest"}}},"required":true},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}},"security":[{"JWT":[]}]}},"/v2/zendesk_code_tenant":{"post":{"tags":["Auth"],"summary":"Handle Zendesk Oauth Flow V2 Tenant","description":"Exchange Zendesk OAuth code for access token","operationId":"handle_zendesk_oauth_flow_v2_tenant_v2_zendesk_code_tenant_post","requestBody":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/IntegrationOauthRequest"}}},"required":true},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/v2/zendesk_code_web_tenant":{"post":{"tags":["Auth"],"summary":"Handle Zendesk Oauth Flow V2 Web Tenant","description":"Exchange Zendesk OAuth code for access token","operationId":"handle_zendesk_oauth_flow_v2_web_tenant_v2_zendesk_code_web_tenant_post","requestBody":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/IntegrationOauthRequest"}}},"required":true},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/v2/zendesk/start":{"get":{"tags":["Auth"],"summary":"Handle Zendesk Start","operationId":"handle_zendesk_start_v2_zendesk_start_get","parameters":[{"name":"subdomain","in":"query","required":true,"schema":{"type":"string","title":"Subdomain"}},{"name":"code_verifier","in":"query","required":true,"schema":{"type":"string","title":"Code Verifier"}},{"name":"redirect","in":"query","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Redirect"}},{"name":"draft_opt_in","in":"query","required":false,"schema":{"type":"boolean","default":false,"title":"Draft Opt In"}},{"name":"no_subscription","in":"query","required":false,"schema":{"type":"boolean","default":false,"title":"No Subscription"}},{"name":"hubspot_properties","in":"query","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Hubspot Properties"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/v1/action-execution/message/{message_id}/approval":{"post":{"tags":["Action Execution"],"summary":"Submit Approval Response","operationId":"submit_approval_response_api_v1_action_execution_message__message_id__approval_post","security":[{"JWT":[]}],"parameters":[{"name":"message_id","in":"path","required":true,"schema":{"type":"string","title":"Message Id"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ActionApprovalDecision"}}}},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/v1/evaluations/":{"get":{"tags":["Evaluations"],"summary":"List Evaluations","operationId":"list_evaluations_api_v1_evaluations__get","security":[{"JWT":[]}],"parameters":[{"name":"include_archived","in":"query","required":false,"schema":{"type":"boolean","default":false,"title":"Include Archived"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}},"post":{"tags":["Evaluations"],"summary":"Create Evaluation","operationId":"create_evaluation_api_v1_evaluations__post","security":[{"JWT":[]}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/CreateEvaluationRequest"}}}},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/v1/evaluations/{evaluation_id}":{"get":{"tags":["Evaluations"],"summary":"Get Evaluation","operationId":"get_evaluation_api_v1_evaluations__evaluation_id__get","security":[{"JWT":[]}],"parameters":[{"name":"evaluation_id","in":"path","required":true,"schema":{"type":"string","title":"Evaluation Id"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}},"put":{"tags":["Evaluations"],"summary":"Update Evaluation","operationId":"update_evaluation_api_v1_evaluations__evaluation_id__put","security":[{"JWT":[]}],"parameters":[{"name":"evaluation_id","in":"path","required":true,"schema":{"type":"string","title":"Evaluation Id"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/UpdateEvaluationRequest"}}}},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/v1/evaluations/{evaluation_id}/archive":{"post":{"tags":["Evaluations"],"summary":"Archive Evaluation","operationId":"archive_evaluation_api_v1_evaluations__evaluation_id__archive_post","security":[{"JWT":[]}],"parameters":[{"name":"evaluation_id","in":"path","required":true,"schema":{"type":"string","title":"Evaluation Id"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/v1/evaluations/{evaluation_id}/unarchive":{"post":{"tags":["Evaluations"],"summary":"Unarchive Evaluation","operationId":"unarchive_evaluation_api_v1_evaluations__evaluation_id__unarchive_post","security":[{"JWT":[]}],"parameters":[{"name":"evaluation_id","in":"path","required":true,"schema":{"type":"string","title":"Evaluation Id"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/v1/evaluations/run":{"post":{"tags":["Evaluations"],"summary":"Execute Evaluations","operationId":"execute_evaluations_api_v1_evaluations_run_post","requestBody":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/RunEvaluationsRequest"}}},"required":true},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}},"security":[{"JWT":[]}]}},"/api/v1/evaluations/results/bot/{bot_id}/version/{bot_version}":{"get":{"tags":["Evaluations"],"summary":"Get Latest Results For Bot Version","operationId":"get_latest_results_for_bot_version_api_v1_evaluations_results_bot__bot_id__version__bot_version__get","security":[{"JWT":[]}],"parameters":[{"name":"bot_id","in":"path","required":true,"schema":{"type":"string","title":"Bot Id"}},{"name":"bot_version","in":"path","required":true,"schema":{"type":"integer","title":"Bot Version"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/v1/evaluations/results/evaluation/{evaluation_id}/history":{"post":{"tags":["Evaluations"],"summary":"Get Evaluation History","operationId":"get_evaluation_history_api_v1_evaluations_results_evaluation__evaluation_id__history_post","security":[{"JWT":[]}],"parameters":[{"name":"evaluation_id","in":"path","required":true,"schema":{"type":"string","title":"Evaluation Id"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/GetEvaluationHistoryRequest"}}}},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/v1/quality-diagnostics/problems/{problem_id}":{"get":{"tags":["Quality Diagnostics"],"summary":"Get Problem Detail","operationId":"get_problem_detail_api_v1_quality_diagnostics_problems__problem_id__get","security":[{"JWT":[]}],"parameters":[{"name":"problem_id","in":"path","required":true,"schema":{"type":"string","title":"Problem Id"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ProblemDetail"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/v1/quality-diagnostics/assessments/{assessment_id}":{"get":{"tags":["Quality Diagnostics"],"summary":"Get Assessment Detail","operationId":"get_assessment_detail_api_v1_quality_diagnostics_assessments__assessment_id__get","security":[{"JWT":[]}],"parameters":[{"name":"assessment_id","in":"path","required":true,"schema":{"type":"string","title":"Assessment Id"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/AssessmentDetail"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/v1/quality-diagnostics/tickets/{helpdesk_config_id}/{ticket_id}/assessments":{"get":{"tags":["Quality Diagnostics"],"summary":"List Ticket Assessments","operationId":"list_ticket_assessments_api_v1_quality_diagnostics_tickets__helpdesk_config_id___ticket_id__assessments_get","security":[{"JWT":[]}],"parameters":[{"name":"helpdesk_config_id","in":"path","required":true,"schema":{"type":"string","title":"Helpdesk Config Id"}},{"name":"ticket_id","in":"path","required":true,"schema":{"type":"string","title":"Ticket Id"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"type":"array","items":{"$ref":"#/components/schemas/TicketAssessment"},"title":"Response List Ticket Assessments Api V1 Quality Diagnostics Tickets  Helpdesk Config Id   Ticket Id  Assessments Get"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/v1/quality-diagnostics/responses/{request_id}":{"get":{"tags":["Quality Diagnostics"],"summary":"Inspect Response","operationId":"inspect_response_api_v1_quality_diagnostics_responses__request_id__get","security":[{"JWT":[]}],"parameters":[{"name":"request_id","in":"path","required":true,"schema":{"type":"string","title":"Request Id"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ResponseInspection"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/v1/quality-diagnostics/overview":{"get":{"tags":["Quality Diagnostics"],"summary":"Get Quality Overview","operationId":"get_quality_overview_api_v1_quality_diagnostics_overview_get","security":[{"JWT":[]}],"parameters":[{"name":"start_time","in":"query","required":false,"schema":{"anyOf":[{"type":"integer"},{"type":"null"}],"title":"Start Time"}},{"name":"end_time","in":"query","required":false,"schema":{"anyOf":[{"type":"integer"},{"type":"null"}],"title":"End Time"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/QualityOverview"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/v1/quality-diagnostics/new-problems":{"get":{"tags":["Quality Diagnostics"],"summary":"New Problems","operationId":"new_problems_api_v1_quality_diagnostics_new_problems_get","responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/NewProblems"}}}}},"security":[{"JWT":[]}]}},"/api/v1/quality-diagnostics/one-offs":{"get":{"tags":["Quality Diagnostics"],"summary":"List One Offs","operationId":"list_one_offs_api_v1_quality_diagnostics_one_offs_get","security":[{"JWT":[]}],"parameters":[{"name":"start_time","in":"query","required":false,"schema":{"anyOf":[{"type":"integer"},{"type":"null"}],"title":"Start Time"}},{"name":"end_time","in":"query","required":false,"schema":{"anyOf":[{"type":"integer"},{"type":"null"}],"title":"End Time"}},{"name":"cause","in":"query","required":false,"schema":{"anyOf":[{"$ref":"#/components/schemas/DifferenceCause"},{"type":"null"}],"title":"Cause"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/OneOffsResponse"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/v1/quality-diagnostics/problems/{problem_id}/opened":{"post":{"tags":["Quality Diagnostics"],"summary":"Open Problem Page","operationId":"open_problem_page_api_v1_quality_diagnostics_problems__problem_id__opened_post","security":[{"JWT":[]}],"parameters":[{"name":"problem_id","in":"path","required":true,"schema":{"type":"string","title":"Problem Id"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Problem"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/v1/quality-diagnostics/problems/{problem_id}/status":{"post":{"tags":["Quality Diagnostics"],"summary":"Review Problem","operationId":"review_problem_api_v1_quality_diagnostics_problems__problem_id__status_post","security":[{"JWT":[]}],"parameters":[{"name":"problem_id","in":"path","required":true,"schema":{"type":"string","title":"Problem Id"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ReviewProblemPayload"}}}},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Problem"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/v1/quality-diagnostics/problems/{problem_id}/fixes/{fix_id}/authoring-session":{"post":{"tags":["Quality Diagnostics"],"summary":"Open Authoring Session","operationId":"open_authoring_session_api_v1_quality_diagnostics_problems__problem_id__fixes__fix_id__authoring_session_post","security":[{"JWT":[]}],"parameters":[{"name":"problem_id","in":"path","required":true,"schema":{"type":"string","title":"Problem Id"}},{"name":"fix_id","in":"path","required":true,"schema":{"type":"string","title":"Fix Id"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/OpenAuthoringSessionResponse"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/v1/quality-diagnostics/problems/{problem_id}/fixes/{fix_id}/authoring-sessions":{"get":{"tags":["Quality Diagnostics"],"summary":"List Authoring Sessions","operationId":"list_authoring_sessions_api_v1_quality_diagnostics_problems__problem_id__fixes__fix_id__authoring_sessions_get","security":[{"JWT":[]}],"parameters":[{"name":"problem_id","in":"path","required":true,"schema":{"type":"string","title":"Problem Id"}},{"name":"fix_id","in":"path","required":true,"schema":{"type":"string","title":"Fix Id"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"type":"array","items":{"$ref":"#/components/schemas/AuthoringSession"},"title":"Response List Authoring Sessions Api V1 Quality Diagnostics Problems  Problem Id  Fixes  Fix Id  Authoring Sessions Get"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/v1/quality-diagnostics/problems/{problem_id}/fixes/{fix_id}/propose-instructions":{"post":{"tags":["Quality Diagnostics"],"summary":"Propose Instructions","operationId":"propose_instructions_api_v1_quality_diagnostics_problems__problem_id__fixes__fix_id__propose_instructions_post","security":[{"JWT":[]}],"parameters":[{"name":"problem_id","in":"path","required":true,"schema":{"type":"string","title":"Problem Id"}},{"name":"fix_id","in":"path","required":true,"schema":{"type":"string","title":"Fix Id"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ProposeInstructionsResponse"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/v1/quality-diagnostics/problems/{problem_id}/fixes/{fix_id}/draft-instructions":{"post":{"tags":["Quality Diagnostics"],"summary":"Draft Instructions","operationId":"draft_instructions_api_v1_quality_diagnostics_problems__problem_id__fixes__fix_id__draft_instructions_post","security":[{"JWT":[]}],"parameters":[{"name":"problem_id","in":"path","required":true,"schema":{"type":"string","title":"Problem Id"}},{"name":"fix_id","in":"path","required":true,"schema":{"type":"string","title":"Fix Id"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/DraftInstructionsPayload"}}}},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/DraftInstructionsResponse"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/v1/quality-diagnostics/assessments/{assessment_id}/feedback":{"post":{"tags":["Quality Diagnostics"],"summary":"Give Assessment Feedback","operationId":"give_assessment_feedback_api_v1_quality_diagnostics_assessments__assessment_id__feedback_post","security":[{"JWT":[]}],"parameters":[{"name":"assessment_id","in":"path","required":true,"schema":{"type":"string","title":"Assessment Id"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/AssessmentFeedbackPayload"}}}},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/AssessmentFeedback"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/v1/quality-diagnostics/assessments/{assessment_id}/fix-checks":{"post":{"tags":["Quality Diagnostics"],"summary":"Start Fix Check","operationId":"start_fix_check_api_v1_quality_diagnostics_assessments__assessment_id__fix_checks_post","security":[{"JWT":[]}],"parameters":[{"name":"assessment_id","in":"path","required":true,"schema":{"type":"string","title":"Assessment Id"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/StartFixCheckPayload"}}}},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/FixCheck"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/v1/quality-diagnostics/assessments/{assessment_id}/fix-checks/{run_request_id}":{"get":{"tags":["Quality Diagnostics"],"summary":"Get Fix Check","operationId":"get_fix_check_api_v1_quality_diagnostics_assessments__assessment_id__fix_checks__run_request_id__get","security":[{"JWT":[]}],"parameters":[{"name":"assessment_id","in":"path","required":true,"schema":{"type":"string","title":"Assessment Id"}},{"name":"run_request_id","in":"path","required":true,"schema":{"type":"string","title":"Run Request Id"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/FixCheck"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/v1/quality-diagnostics/problems/{problem_id}/fixes/{fix_id}/fix-checks":{"get":{"tags":["Quality Diagnostics"],"summary":"List Fix Checks","operationId":"list_fix_checks_api_v1_quality_diagnostics_problems__problem_id__fixes__fix_id__fix_checks_get","security":[{"JWT":[]}],"parameters":[{"name":"problem_id","in":"path","required":true,"schema":{"type":"string","title":"Problem Id"}},{"name":"fix_id","in":"path","required":true,"schema":{"type":"string","title":"Fix Id"}},{"name":"bot_version","in":"query","required":true,"schema":{"type":"integer","title":"Bot Version"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"type":"array","items":{"$ref":"#/components/schemas/FixCheck"},"title":"Response List Fix Checks Api V1 Quality Diagnostics Problems  Problem Id  Fixes  Fix Id  Fix Checks Get"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}}},"components":{"schemas":{"APIKeyInfo":{"properties":{"id":{"type":"string","title":"Id","description":"Unique identifier for this API key"},"description":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Description","description":"Description"},"created_at":{"type":"integer","title":"Created At","description":"Creation time"},"created_by":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Created By","description":"User that created this key"}},"type":"object","required":["id","description","created_at","created_by"],"title":"APIKeyInfo"},"AcceptedDifferenceDetails":{"properties":{"kind":{"type":"string","enum":["clarifying_question","weak_human_reply"],"title":"Kind"},"note":{"type":"string","maxLength":2000,"title":"Note","description":"What a reviewer should know beyond the cause; empty if the cause says it all.","default":""}},"type":"object","required":["kind"],"title":"AcceptedDifferenceDetails"},"ActionApprovalDecision":{"properties":{"action_id":{"type":"string","title":"Action Id"},"execution_id":{"type":"string","title":"Execution Id"},"arguments":{"anyOf":[{"additionalProperties":true,"type":"object"},{"type":"null"}],"title":"Arguments"},"decision":{"type":"string","enum":["approve","edit","reject"],"title":"Decision"},"reason":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Reason"}},"type":"object","required":["action_id","execution_id","decision"],"title":"ActionApprovalDecision"},"ActionReferenceResponse":{"properties":{"in_use":{"type":"boolean","title":"In Use"},"bot_names":{"items":{"type":"string"},"type":"array","title":"Bot Names"}},"type":"object","required":["in_use","bot_names"],"title":"ActionReferenceResponse"},"ActiveChannel":{"properties":{"team_id":{"type":"string","title":"Team Id"},"team_name":{"type":"string","title":"Team Name"},"channel_id":{"type":"string","title":"Channel Id"},"channel_name":{"type":"string","title":"Channel Name"},"interface_type":{"type":"string","enum":["slack","ms_teams"],"title":"Interface Type"},"is_private":{"type":"boolean","title":"Is Private"}},"type":"object","required":["team_id","team_name","channel_id","channel_name","interface_type"],"title":"ActiveChannel"},"AddWebsitePayload":{"properties":{"url":{"type":"string","title":"Url","description":"The url of the website","examples":["https://www.google.com"]},"website_type":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Website Type","description":"Optional type of the website"}},"type":"object","required":["url"],"title":"AddWebsitePayload"},"AgentFeedbackParams":{"properties":{"kind":{"type":"string","const":"agent_feedback","title":"Kind","default":"agent_feedback"},"start_time":{"type":"integer","title":"Start Time"},"end_time":{"type":"integer","title":"End Time"}},"type":"object","required":["start_time","end_time"],"title":"AgentFeedbackParams"},"AnswerChartWeek":{"properties":{"week_start":{"type":"integer","title":"Week Start"},"high":{"type":"integer","title":"High"},"medium":{"type":"integer","title":"Medium"},"low":{"type":"integer","title":"Low"},"unscored":{"type":"integer","title":"Unscored"}},"type":"object","required":["week_start","high","medium","low","unscored"],"title":"AnswerChartWeek"},"AnswerPresentAssertion":{"properties":{"id":{"type":"string","title":"Id"},"description":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Description"},"type":{"type":"string","const":"answer_present","title":"Type"},"should_have_answer":{"type":"boolean","title":"Should Have Answer"}},"type":"object","required":["id","type","should_have_answer"],"title":"AnswerPresentAssertion"},"AnswerSummaryParams":{"properties":{"kind":{"type":"string","const":"answer_summary","title":"Kind","default":"answer_summary"},"start_ts":{"type":"integer","title":"Start Ts"},"end_ts":{"type":"integer","title":"End Ts"}},"type":"object","required":["start_ts","end_ts"],"title":"AnswerSummaryParams"},"AnsweredQuery":{"properties":{"SK":{"type":"string","title":"Sk"},"request_id":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Request Id"},"session_id":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Session Id"},"bot_id":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Bot Id"},"bot_version":{"anyOf":[{"type":"integer"},{"type":"null"}],"title":"Bot Version"},"received_at":{"type":"integer","title":"Received At"},"ticket":{"anyOf":[{"$ref":"#/components/schemas/AnsweredQueryTicket"},{"type":"null"}]},"score":{"anyOf":[{"type":"number"},{"type":"null"}],"title":"Score"},"score_bucket":{"$ref":"#/components/schemas/ScoreBucket"},"score_type":{"$ref":"#/components/schemas/ScoreType"},"disqualified":{"type":"boolean","title":"Disqualified","default":false},"disqualified_reason":{"anyOf":[{"$ref":"#/components/schemas/DisqualifiedReason"},{"type":"null"}]},"topic":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Topic"},"config_id":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Config Id"},"comment_id":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Comment Id"},"query_snippet":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Query Snippet"},"attachment_count":{"type":"integer","title":"Attachment Count","default":0}},"type":"object","required":["SK","received_at","score_bucket","score_type"],"title":"AnsweredQuery"},"AnsweredQueryTicket":{"properties":{"id":{"type":"string","title":"Id"},"url":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Url"},"display_id":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Display Id"},"subject":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Subject"}},"type":"object","required":["id"],"title":"AnsweredQueryTicket"},"AppliedArticle":{"properties":{"external_id":{"type":"string","title":"External Id","description":"The article version's id in Salesforce"},"url":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Url","description":"Deep link to the article in Salesforce"},"session_id":{"type":"string","title":"Session Id","description":"The authoring chat it was drafted in"}},"type":"object","required":["external_id","url","session_id"],"title":"AppliedArticle"},"Artifact":{"properties":{"tenant_id":{"type":"string","title":"Tenant Id"},"session_id":{"type":"string","title":"Session Id"},"name":{"type":"string","title":"Name"},"type_id":{"type":"string","title":"Type Id"},"field_specs":{"items":{"$ref":"#/components/schemas/Field"},"type":"array","title":"Field Specs"},"current_version":{"type":"integer","title":"Current Version"},"versions":{"items":{"$ref":"#/components/schemas/ArtifactVersionMeta"},"type":"array","title":"Versions"},"source":{"anyOf":[{"$ref":"#/components/schemas/ArtifactSource"},{"type":"null"}]},"sync":{"anyOf":[{"$ref":"#/components/schemas/SyncStatus"},{"type":"null"}]},"created_at":{"type":"integer","title":"Created At"},"updated_at":{"type":"integer","title":"Updated At"}},"type":"object","required":["tenant_id","session_id","name","type_id","current_version"],"title":"Artifact"},"ArtifactAction":{"properties":{"kind":{"$ref":"#/components/schemas/ArtifactActionKind"},"action_id":{"type":"string","title":"Action Id"},"label":{"type":"string","title":"Label"}},"type":"object","required":["kind","action_id","label"],"title":"ArtifactAction","description":"    \n    "},"ArtifactActionKind":{"type":"string","enum":["salesforce_kb_draft","copy_to_clipboard"],"title":"ArtifactActionKind"},"ArtifactContentResponse":{"properties":{"artifact":{"$ref":"#/components/schemas/Artifact"},"version":{"type":"integer","title":"Version"},"fields":{"additionalProperties":true,"type":"object","title":"Fields"}},"type":"object","required":["artifact","version","fields"],"title":"ArtifactContentResponse","description":"    \n    "},"ArtifactResponse":{"properties":{"artifact":{"$ref":"#/components/schemas/Artifact"}},"type":"object","required":["artifact"],"title":"ArtifactResponse"},"ArtifactSource":{"properties":{"provider":{"type":"string","const":"salesforce_knowledge","title":"Provider"},"url":{"type":"string","title":"Url"},"external_id":{"type":"string","title":"External Id"},"config_id":{"type":"string","title":"Config Id"},"params":{"additionalProperties":true,"type":"object","title":"Params"}},"type":"object","required":["provider","url","external_id","config_id"],"title":"ArtifactSource","description":"    \n    \n    \n    \n    "},"ArtifactSummary":{"properties":{"tenant_id":{"type":"string","title":"Tenant Id"},"session_id":{"type":"string","title":"Session Id"},"name":{"type":"string","title":"Name"},"type_id":{"type":"string","title":"Type Id"},"field_specs":{"items":{"$ref":"#/components/schemas/Field"},"type":"array","title":"Field Specs"},"current_version":{"type":"integer","title":"Current Version"},"versions":{"items":{"$ref":"#/components/schemas/ArtifactVersionMeta"},"type":"array","title":"Versions"},"source":{"anyOf":[{"$ref":"#/components/schemas/ArtifactSource"},{"type":"null"}]},"sync":{"anyOf":[{"$ref":"#/components/schemas/SyncStatus"},{"type":"null"}]},"created_at":{"type":"integer","title":"Created At"},"updated_at":{"type":"integer","title":"Updated At"},"type_name":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Type Name"},"actions":{"items":{"$ref":"#/components/schemas/ArtifactAction"},"type":"array","title":"Actions"}},"type":"object","required":["tenant_id","session_id","name","type_id","current_version"],"title":"ArtifactSummary","description":"    "},"ArtifactVersionMeta":{"properties":{"version":{"type":"integer","title":"Version"},"author":{"type":"string","enum":["agent","user"],"title":"Author"},"created_at":{"type":"integer","title":"Created At"},"label":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Label"}},"type":"object","required":["version","author"],"title":"ArtifactVersionMeta","description":"    "},"Assessment":{"properties":{"assessment_id":{"type":"string","title":"Assessment Id","description":"Unique id for this assessment"},"bot_id":{"type":"string","title":"Bot Id","description":"the id of the bot"},"bot_version":{"type":"integer","title":"Bot Version","description":"the version of the bot"},"request_id":{"type":"string","title":"Request Id"},"ticket":{"$ref":"#/components/schemas/TicketCommentRef","description":"A reference to the agent reply the draft was judged against"},"result":{"oneOf":[{"$ref":"#/components/schemas/DifferenceResult"},{"$ref":"#/components/schemas/NoDifferenceResult"}],"title":"Result","description":"Whether the draft differs from the reply, and why","discriminator":{"propertyName":"kind","mapping":{"difference":"#/components/schemas/DifferenceResult","no_difference":"#/components/schemas/NoDifferenceResult"}}},"headline":{"type":"string","maxLength":400,"title":"Headline","description":"The finding in one line, as a list row shows it"},"rationale":{"type":"string","maxLength":5000,"title":"Rationale","description":"One or two sentences justifying the result"},"citations":{"items":{"$ref":"#/components/schemas/CitedSource"},"type":"array","title":"Citations","description":"The sources the rationale and details cite, which their text links to by position"},"probes":{"items":{"$ref":"#/components/schemas/ProbeRecord"},"type":"array","title":"Probes","description":"Every search the investigation ran, as the tools recorded it. What a discoverability claim is checkable against, and what a reviewer reads to see what was tried"},"confidence":{"type":"integer","maximum":100.0,"minimum":0.0,"title":"Confidence","description":"How sure the analysis was of this result, 0-100. Kept because a low-confidence finding is worth reviewing before acting on, and because a distribution of these is the only way to tell later whether the classifier is calibrated"},"made_by":{"$ref":"#/components/schemas/ModelAuthor","description":"The investigation that made it"},"created_at":{"type":"string","format":"date-time","title":"Created At","description":"When the record was created in our system"},"supersedes":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Supersedes","description":"The assessment of the same comparison this one replaced; absent on the first"},"problem_ids":{"items":{"type":"string"},"type":"array","uniqueItems":true,"title":"Problem Ids","description":"The problems holding it, whatever their status. Kept by the store as problems take and give up members, never set by a caller; a superseded assessment has none"}},"type":"object","required":["assessment_id","bot_id","bot_version","request_id","ticket","result","headline","rationale","confidence","made_by","created_at"],"title":"Assessment","description":"    \n    \n    \n    \n    "},"AssessmentDetail":{"properties":{"assessment":{"$ref":"#/components/schemas/Assessment"},"current_assessment_id":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Current Assessment Id","description":"The comparison's current assessment when this one has been superseded; None when this one is current"},"problem":{"anyOf":[{"$ref":"#/components/schemas/HoldingProblem"},{"type":"null"}],"description":"The live problem holding it, the newest if several do; None for a one-off or no difference"},"received_at":{"type":"string","format":"date-time","title":"Received At","description":"When the request was received"},"ticket_subject":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Ticket Subject","description":"The ticket's subject as recorded when QueryPal responded; None when that response recorded no ticket"},"feedback":{"items":{"$ref":"#/components/schemas/AssessmentFeedback"},"type":"array","title":"Feedback","description":"What reviewers said is wrong with it, newest first"}},"type":"object","required":["assessment","current_assessment_id","problem","received_at","ticket_subject","feedback"],"title":"AssessmentDetail"},"AssessmentFeedback":{"properties":{"assessment_id":{"type":"string","title":"Assessment Id"},"text":{"type":"string","title":"Text","description":"What the reviewer said"},"by":{"$ref":"#/components/schemas/UserAuthor"},"at":{"type":"string","format":"date-time","title":"At","description":"When they said it"}},"type":"object","required":["assessment_id","text","by","at"],"title":"AssessmentFeedback","description":"    "},"AssessmentFeedbackPayload":{"properties":{"text":{"type":"string","title":"Text","description":"What is wrong with the assessment, in the reviewer's words"}},"type":"object","required":["text"],"title":"AssessmentFeedbackPayload"},"AssessmentGrouping":{"properties":{"assessment_id":{"type":"string","title":"Assessment Id"},"problem_id":{"type":"string","title":"Problem Id"},"problem_summary":{"type":"string","title":"Problem Summary"},"problem_status":{"type":"string","enum":["open","watching","fixed","dismissed","expired"],"title":"Problem Status"},"fix_type":{"type":"string","enum":["create_or_update_article","update_instructions"],"title":"Fix Type","description":"The type of the problem's current fix"},"other_request_count":{"type":"integer","title":"Other Request Count","description":"Distinct requests under the problem other than this one; 0 means this request is the only one so far"},"other_assessment_count":{"type":"integer","title":"Other Assessment Count","description":"Assessments the problem references besides this response's own. Counted separately from other_request_count because one request can contribute several: which number is honest depends on whether the caller is talking about requests or assessments"}},"type":"object","required":["assessment_id","problem_id","problem_summary","problem_status","fix_type","other_request_count","other_assessment_count"],"title":"AssessmentGrouping","description":"    \n    \n    \n    \n    "},"AttachmentItem":{"properties":{"kind":{"type":"string","enum":["file","image"],"title":"Kind"},"name":{"type":"string","title":"Name"},"content_type":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Content Type"},"content":{"type":"string","title":"Content"},"url":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Url"}},"type":"object","required":["kind","name","content_type","content","url"],"title":"AttachmentItem"},"AuthoringSession":{"properties":{"session_id":{"type":"string","title":"Session Id"},"user_id":{"type":"string","title":"User Id"},"user_email":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"User Email"},"created_at":{"type":"integer","title":"Created At"},"sent_to_salesforce":{"type":"boolean","title":"Sent To Salesforce"}},"type":"object","required":["session_id","user_id","user_email","created_at","sent_to_salesforce"],"title":"AuthoringSession"},"BaseIndexingJobStatus":{"type":"string","enum":["in_progress","succeeded","failed"],"title":"BaseIndexingJobStatus","description":"    \n    "},"BotActionSecretResponse":{"properties":{"secret_id":{"type":"string","title":"Secret Id"},"secret_type":{"type":"string","title":"Secret Type"},"description":{"type":"string","title":"Description"},"allowed_host":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Allowed Host"},"created_at":{"type":"integer","title":"Created At"},"resolver_config":{"anyOf":[{"$ref":"#/components/schemas/ResolverConfigResponse"},{"type":"null"}]},"header_name":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Header Name"}},"type":"object","required":["secret_id","secret_type","description","allowed_host","created_at","resolver_config","header_name"],"title":"BotActionSecretResponse"},"BotConfig":{"properties":{"tenant_id":{"type":"string","title":"Tenant Id"},"name":{"type":"string","title":"Name"},"bot_id":{"type":"string","title":"Bot Id"},"description":{"type":"string","title":"Description","default":""},"prompt":{"type":"string","title":"Prompt","default":""},"active_channels":{"items":{"$ref":"#/components/schemas/ActiveChannel"},"type":"array","title":"Active Channels"},"enabled_integration_config_ids":{"items":{"type":"string"},"type":"array","title":"Enabled Integration Config Ids"},"is_default_bot":{"type":"boolean","title":"Is Default Bot","default":false},"key":{"type":"string","title":"Key","default":""},"integration_settings":{"additionalProperties":{"anyOf":[{"$ref":"#/components/schemas/GenericIntegrationSetting"},{"$ref":"#/components/schemas/IntercomIntegrationSetting"},{"$ref":"#/components/schemas/SalesforceIntegrationSetting"},{"$ref":"#/components/schemas/SlackIntegrationSetting"},{"$ref":"#/components/schemas/UploadedDocstoreIntegrationSetting"},{"$ref":"#/components/schemas/WebstoreIntegrationSetting"},{"$ref":"#/components/schemas/YouTrackIntegrationSetting"},{"$ref":"#/components/schemas/ZendeskIntegrationSetting"}]},"type":"object","title":"Integration Settings"},"response_approvers":{"items":{"$ref":"#/components/schemas/ResponseApprover"},"type":"array","title":"Response Approvers"},"version":{"type":"integer","title":"Version","default":0},"enable_slackbot_auto_answer":{"type":"boolean","title":"Enable Slackbot Auto Answer","default":false},"enable_gpt_answers":{"type":"boolean","title":"Enable Gpt Answers","default":false},"end_search_ts":{"anyOf":[{"type":"integer"},{"type":"null"}],"title":"End Search Ts"},"enable_all_configs":{"type":"boolean","title":"Enable All Configs","default":true},"is_external_qa_bot":{"type":"boolean","title":"Is External Qa Bot","default":false},"enable_external_qa":{"type":"boolean","title":"Enable External Qa","default":false},"enable_reference_only":{"type":"boolean","title":"Enable Reference Only","default":false},"external_qa_prompts":{"items":{"$ref":"#/components/schemas/ExternalQAPrompt"},"type":"array","title":"External Qa Prompts"},"external_qa_headline":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"External Qa Headline"},"external_qa_placeholder":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"External Qa Placeholder"},"external_qa_widget_nudge":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"External Qa Widget Nudge"},"external_qa_intro_message":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"External Qa Intro Message"},"external_qa_intro_message_response_options":{"anyOf":[{"items":{"$ref":"#/components/schemas/ExternalQAIntroMessageResponseOption"},"type":"array"},{"type":"null"}],"title":"External Qa Intro Message Response Options"},"branding":{"anyOf":[{"additionalProperties":true,"type":"object"},{"type":"null"}],"title":"Branding"},"respond_if_not_confident":{"type":"boolean","title":"Respond If Not Confident","default":false},"slack_disclaimer":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Slack Disclaimer"},"external_qa_disclaimer":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"External Qa Disclaimer"},"created_at":{"anyOf":[{"type":"integer"},{"type":"null"}],"title":"Created At"},"updated_at":{"anyOf":[{"type":"integer"},{"type":"null"}],"title":"Updated At"},"require_authentication":{"type":"boolean","title":"Require Authentication","default":false},"is_search_only":{"type":"boolean","title":"Is Search Only","default":false},"intercom_app_id":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Intercom App Id"},"intercom":{"anyOf":[{"$ref":"#/components/schemas/IntercomBotSettings"},{"type":"null"}]},"zendesk_config_id":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Zendesk Config Id"},"zendesk":{"anyOf":[{"$ref":"#/components/schemas/ZendeskBotSettings"},{"type":"null"}]},"freshdesk_config_id":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Freshdesk Config Id"},"salesforce_config_id":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Salesforce Config Id"},"salesforce":{"anyOf":[{"$ref":"#/components/schemas/SalesforceBotSettings"},{"type":"null"}]},"helpscout_config_id":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Helpscout Config Id"},"internal_prompt_variant":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Internal Prompt Variant"},"bot_avatar_slug":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Bot Avatar Slug"},"bot_avatar_path":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Bot Avatar Path"},"mapped_workflows":{"items":{"$ref":"#/components/schemas/Intent"},"type":"array","title":"Mapped Workflows"},"max_returned_results":{"anyOf":[{"type":"integer"},{"type":"null"}],"title":"Max Returned Results"},"is_intercom_parent_bot":{"anyOf":[{"type":"boolean"},{"type":"null"}],"title":"Is Intercom Parent Bot"},"child_bot_mappings":{"anyOf":[{"additionalProperties":{"type":"string"},"type":"object"},{"type":"null"}],"title":"Child Bot Mappings"},"escalation":{"anyOf":[{"$ref":"#/components/schemas/EscalationSettings"},{"type":"null"}]},"pipeline":{"anyOf":[{"$ref":"#/components/schemas/Pipeline"},{"type":"null"}]},"note_format":{"anyOf":[{"$ref":"#/components/schemas/NoteFormat"},{"type":"null"}]},"continuation_bot_id":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Continuation Bot Id"},"post_continuation_link_when_unanswered":{"type":"boolean","title":"Post Continuation Link When Unanswered","default":false},"purpose":{"anyOf":[{"type":"string","const":"article_authoring"},{"type":"null"}],"title":"Purpose"},"inherit_intercept_knowledge":{"type":"boolean","title":"Inherit Intercept Knowledge","default":false},"article_bot_id":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Article Bot Id"},"actions":{"items":{"$ref":"#/components/schemas/HTTPAPIActionBinding"},"type":"array","title":"Actions"},"feature_flags":{"$ref":"#/components/schemas/BotFeatureFlags"},"prefilter_config":{"$ref":"#/components/schemas/PreFilterConfig"},"external_metadata_inclusion_patterns":{"items":{"type":"string"},"type":"array","title":"External Metadata Inclusion Patterns"},"guidelines":{"type":"string","title":"Guidelines","default":""},"show_unanswered_reasoning":{"type":"boolean","title":"Show Unanswered Reasoning","default":false},"agentic_planner_enabled_config_ids":{"items":{"type":"string"},"type":"array","title":"Agentic Planner Enabled Config Ids"},"agentic_planner_integration_settings":{"additionalProperties":{"anyOf":[{"$ref":"#/components/schemas/GenericIntegrationSetting"},{"$ref":"#/components/schemas/IntercomIntegrationSetting"},{"$ref":"#/components/schemas/SalesforceIntegrationSetting"},{"$ref":"#/components/schemas/SlackIntegrationSetting"},{"$ref":"#/components/schemas/UploadedDocstoreIntegrationSetting"},{"$ref":"#/components/schemas/WebstoreIntegrationSetting"},{"$ref":"#/components/schemas/YouTrackIntegrationSetting"},{"$ref":"#/components/schemas/ZendeskIntegrationSetting"}]},"type":"object","title":"Agentic Planner Integration Settings"},"agentic_planner_strict_runbook_alignment":{"type":"boolean","title":"Agentic Planner Strict Runbook Alignment","default":false},"runbooks":{"items":{"type":"string"},"type":"array","title":"Runbooks"},"servicenow_config_id":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Servicenow Config Id"},"version_published_on":{"anyOf":[{"type":"integer"},{"type":"null"}],"title":"Version Published On"},"updated_by":{"anyOf":[{"oneOf":[{"$ref":"#/components/schemas/UserAuthor"},{"$ref":"#/components/schemas/SystemAuthor"}],"discriminator":{"propertyName":"kind","mapping":{"system":"#/components/schemas/SystemAuthor","user":"#/components/schemas/UserAuthor"}}},{"type":"null"}],"title":"Updated By"},"version_note":{"type":"string","title":"Version Note","default":""},"version_source":{"anyOf":[{"$ref":"#/components/schemas/FixSource"},{"type":"null"}]},"base_version":{"anyOf":[{"type":"integer"},{"type":"null"}],"title":"Base Version"},"show_ratings_and_feedback":{"type":"boolean","title":"Show Ratings And Feedback","default":false},"include_internal_links":{"type":"boolean","title":"Include Internal Links","default":false},"response_policy":{"anyOf":[{"$ref":"#/components/schemas/ResponsePolicy"},{"type":"null"}]},"scorability_policy":{"anyOf":[{"$ref":"#/components/schemas/ScorabilityPolicy"},{"type":"null"}]},"web_search":{"anyOf":[{"$ref":"#/components/schemas/WebSearchConfig"},{"type":"null"}]},"artifact_types":{"items":{"oneOf":[{"$ref":"#/components/schemas/SalesforceKnowledgeArtifactType"},{"$ref":"#/components/schemas/TextArtifactType"}],"discriminator":{"propertyName":"kind","mapping":{"salesforce_knowledge":"#/components/schemas/SalesforceKnowledgeArtifactType","text":"#/components/schemas/TextArtifactType"}}},"type":"array","title":"Artifact Types"},"_intercom_config_id":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Intercom Config Id"}},"type":"object","required":["tenant_id","name"],"title":"BotConfig"},"BotFeatureFlags":{"properties":{"agent_model":{"type":"string","title":"Agent Model","description":"Model for the main agentic_v2 agent","default":"default:reasoning-model"},"agent_recursion_limit":{"anyOf":[{"type":"integer"},{"type":"null"}],"title":"Agent Recursion Limit","description":"If set, overrides the default agent recursion limit"},"consider_response_vote_prediction":{"type":"boolean","title":"Consider Response Vote Prediction","description":"Consider the prediction in the can_deflect field.","default":true},"enable_hallucinated_link_removal":{"type":"boolean","title":"Enable Hallucinated Link Removal","default":true},"feedback_outline_model":{"type":"string","title":"Feedback Outline Model","default":"default:bot-outline-model"},"predict_response_vote_start_ts":{"type":"integer","title":"Predict Response Vote Start Ts","description":"The start time (int ts) when searching for examples. note: negative value is interpreted as offset from the current time","default":0},"response_model":{"type":"string","title":"Response Model","description":"The response model to use in the email pipelines","default":"default:bot-response-model"},"response_temperature":{"anyOf":[{"type":"number","maximum":2.0,"minimum":0.0},{"type":"null"}],"title":"Response Temperature","description":"Override temperature for response model calls. If None, the call-site default (0.0) is used."},"response_reasoning_effort":{"anyOf":[{"type":"string","enum":["none","minimal","low","medium","high","xhigh"]},{"type":"null"}],"title":"Response Reasoning Effort","description":"Override reasoning_effort for response model calls. If None, no value is sent and the litellm proxy/model default applies. 'none' explicitly disables reasoning on models that support that level."},"sub_agent_model":{"type":"string","title":"Sub Agent Model","description":"Model for agentic_v2 sub-agents","default":"default:sub-agent-model"},"use_email_translation":{"type":"boolean","title":"Use Email Translation","default":false},"use_needs_response_filter":{"type":"boolean","title":"Use Needs Response Filter","default":true},"use_ongoing_filter":{"type":"boolean","title":"Use Ongoing Filter","default":false},"use_outline_feedback_loop":{"type":"boolean","title":"Use Outline Feedback Loop","default":true},"use_post_validation_deflection":{"type":"boolean","title":"Use Post Validation Deflection","default":true},"use_specific_individual_filter":{"type":"boolean","title":"Use Specific Individual Filter","default":true},"tier_1_only":{"type":"boolean","title":"Tier 1 Only","description":"If true, only use tier 1 knowledge bases to answer questions","default":false},"link_display_format":{"type":"string","enum":["numeric","full"],"title":"Link Display Format","description":"Format for displaying reference links: 'numeric' for [[1]], 'full' for [[Title](url)]","default":"numeric"},"enable_link_descriptions":{"type":"boolean","title":"Enable Link Descriptions","description":"generate 4-5 word descriptions for used_refs","default":false},"disable_replies":{"type":"boolean","title":"Disable Replies","description":"If true, disable replies in your helpdesk","default":false},"tag_deflect":{"type":"boolean","title":"Tag Deflect","description":"Add qp_deflect tag to Freshdesk tickets when deflection is possible","default":false},"use_feedback_examples_in_chat":{"type":"boolean","title":"Use Feedback Examples In Chat","description":"Use feedback examples in chat pipelines","default":false},"global_boosts_per_doc":{"type":"boolean","title":"Global Boosts Per Doc","description":"Apply per-doc boosts as overrides to store-level boosts post-rerank","default":false},"enable_memory_learning":{"type":"boolean","title":"Enable Memory Learning","description":"QueryPal memory: write lessons from what quality diagnostics finds in this bot's drafts and curate rules from them","default":false}},"type":"object","title":"BotFeatureFlags","description":"    \n    \n    "},"BotSessionsParams":{"properties":{"kind":{"type":"string","const":"bot_sessions","title":"Kind","default":"bot_sessions"},"start_at":{"type":"string","format":"date-time","title":"Start At"},"end_at":{"type":"string","format":"date-time","title":"End At"},"bot_id":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Bot Id"}},"type":"object","required":["start_at","end_at"],"title":"BotSessionsParams"},"BotTopic":{"properties":{"name":{"type":"string","title":"Name"},"description":{"type":"string","title":"Description"},"allow_drafts":{"type":"boolean","title":"Allow Drafts","default":false},"allow_deflection":{"type":"boolean","title":"Allow Deflection","default":false},"deflect_first_request_only":{"type":"boolean","title":"Deflect First Request Only","default":false}},"type":"object","required":["name","description"],"title":"BotTopic"},"CacheStatusResponse":{"properties":{"cached":{"type":"boolean","title":"Cached"},"cached_at":{"anyOf":[{"type":"integer"},{"type":"null"}],"title":"Cached At"},"ttl_seconds":{"anyOf":[{"type":"integer"},{"type":"null"}],"title":"Ttl Seconds"},"expires_at":{"anyOf":[{"type":"integer"},{"type":"null"}],"title":"Expires At"}},"type":"object","required":["cached"],"title":"CacheStatusResponse"},"CaseField":{"properties":{"name":{"type":"string","title":"Name"},"label":{"type":"string","title":"Label"},"type":{"type":"string","enum":["boolean","picklist","string","textarea"],"title":"Type"},"picklist_values":{"items":{"$ref":"#/components/schemas/PicklistValue"},"type":"array","title":"Picklist Values","default":[]}},"type":"object","required":["name","label","type"],"title":"CaseField"},"CaseLink":{"properties":{"case_id":{"type":"string","title":"Case Id"},"case_number":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Case Number"},"linked":{"type":"boolean","title":"Linked","default":false}},"type":"object","required":["case_id"],"title":"CaseLink","description":"    \n    "},"CaseOrigin":{"properties":{"value":{"type":"string","title":"Value"},"label":{"type":"string","title":"Label"},"active":{"type":"boolean","title":"Active"}},"type":"object","required":["value","label","active"],"title":"CaseOrigin"},"CasePayload":{"properties":{"Id":{"type":"string","title":"Id","description":"Case ID"},"BotId":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Botid","description":"Specify the bot to use. Must be a Salesforce bot. If unspecified, then the data in the authorization header will be used to select the bot."}},"additionalProperties":true,"type":"object","required":["Id"],"title":"CasePayload"},"CitedSource":{"properties":{"title":{"type":"string","title":"Title"},"link":{"type":"string","title":"Link","default":""},"kind":{"anyOf":[{"$ref":"#/components/schemas/EvidenceKind"},{"type":"null"}]}},"type":"object","required":["title"],"title":"CitedSource"},"Click":{"properties":{"config_id":{"type":"string","title":"Config Id"},"doc_id":{"type":"string","title":"Doc Id"},"result_idx":{"type":"integer","title":"Result Idx"}},"type":"object","required":["config_id","doc_id","result_idx"],"title":"Click"},"CloneBotRequest":{"properties":{"name":{"type":"string","title":"Name"},"version":{"type":"integer","title":"Version"}},"type":"object","required":["name","version"],"title":"CloneBotRequest"},"CloneBotResponse":{"properties":{"bot_id":{"type":"string","title":"Bot Id"}},"type":"object","required":["bot_id"],"title":"CloneBotResponse"},"ConfluenceIntegrationUser":{"properties":{"tenant_id":{"type":"string","title":"Tenant Id"},"integration_id":{"type":"string","title":"Integration Id"},"display_name":{"type":"string","title":"Display Name"},"real_name":{"type":"string","title":"Real Name"},"id":{"type":"string","title":"Id"},"email":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Email"}},"type":"object","required":["tenant_id","integration_id","display_name","real_name","id"],"title":"ConfluenceIntegrationUser"},"Constant":{"properties":{"value":{"title":"Value"}},"type":"object","required":["value"],"title":"Constant"},"ContextSource":{"type":"string","enum":["prior_call","related_case","account_state","internal_system","other"],"title":"ContextSource"},"CreateAPIKeyRequest":{"properties":{"description":{"type":"string","title":"Description","description":"Description to help you identify the API key"}},"type":"object","required":["description"],"title":"CreateAPIKeyRequest"},"CreateAPIKeyResponse":{"properties":{"id":{"type":"string","title":"Id","description":"Unique identifier for this API key"},"secret":{"type":"string","title":"Secret","description":"The secret"}},"type":"object","required":["id","secret"],"title":"CreateAPIKeyResponse"},"CreateBotActionSecretRequest":{"properties":{"secret_type":{"type":"string","enum":["bearer_token","custom_http_header"],"title":"Secret Type"},"secret_value":{"anyOf":[{"type":"string","format":"password","writeOnly":true},{"type":"null"}],"title":"Secret Value"},"description":{"type":"string","title":"Description"},"allowed_host":{"type":"string","title":"Allowed Host"},"header_name":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Header Name"},"resolver_config":{"anyOf":[{"$ref":"#/components/schemas/SecretResolverConfig"},{"type":"null"}]}},"type":"object","required":["secret_type","description","allowed_host"],"title":"CreateBotActionSecretRequest"},"CreateEvaluationRequest":{"properties":{"name":{"type":"string","title":"Name"},"description":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Description"},"inputs":{"anyOf":[{"$ref":"#/components/schemas/EvaluationInputs"},{"type":"null"}]},"assertions":{"anyOf":[{"items":{"oneOf":[{"$ref":"#/components/schemas/AnswerPresentAssertion"},{"$ref":"#/components/schemas/LLMJudgeAssertion"}],"discriminator":{"propertyName":"type","mapping":{"answer_present":"#/components/schemas/AnswerPresentAssertion","llm_judge":"#/components/schemas/LLMJudgeAssertion"}}},"type":"array"},{"type":"null"}],"title":"Assertions"}},"type":"object","required":["name"],"title":"CreateEvaluationRequest"},"CreateFaqFromTicketRequest":{"properties":{"config_id":{"type":"string","title":"Config Id"},"ticket_id":{"type":"string","title":"Ticket Id"}},"type":"object","required":["config_id","ticket_id"],"title":"CreateFaqFromTicketRequest"},"CreateFaqFromTicketResponse":{"properties":{"success":{"type":"boolean","title":"Success"},"message":{"type":"string","title":"Message"},"ticket_id":{"type":"string","title":"Ticket Id"},"faq_content":{"type":"string","title":"Faq Content"}},"type":"object","required":["success","message"],"title":"CreateFaqFromTicketResponse"},"CreateIntegrationMappingRequest":{"properties":{"config_id":{"type":"string","title":"Config Id","examples":["confluence:abc123"]},"integration_type":{"type":"string","title":"Integration Type","examples":["confluence"]},"user_id":{"type":"string","title":"User Id","examples":["ca2f5c98-8ea2-4103-a51d-2c3b38a5a05"]},"external_user_id":{"type":"string","title":"External User Id","examples":["theexternalid"]}},"type":"object","required":["config_id","integration_type","user_id","external_user_id"],"title":"CreateIntegrationMappingRequest"},"CurrentUserResponse":{"properties":{"email":{"type":"string","title":"Email"},"id":{"type":"string","title":"Id"},"data_consent":{"type":"boolean","title":"Data Consent"},"role":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Role"},"active_tenant":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Active Tenant"},"tenant_provenance":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Tenant Provenance"},"name":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Name"},"is_super_admin":{"type":"boolean","title":"Is Super Admin","default":false},"using_super_admin":{"type":"boolean","title":"Using Super Admin","default":false},"has_completed_new_user_survey":{"anyOf":[{"type":"boolean"},{"type":"null"}],"title":"Has Completed New User Survey"}},"type":"object","required":["email","id","data_consent"],"title":"CurrentUserResponse"},"DataConsentUpdateRequest":{"properties":{"data_consent":{"type":"boolean","title":"Data Consent"}},"type":"object","required":["data_consent"],"title":"DataConsentUpdateRequest"},"DataConsentUpdateResponse":{"properties":{"status":{"type":"string","title":"Status"}},"type":"object","required":["status"],"title":"DataConsentUpdateResponse"},"DayCounts":{"properties":{"day":{"type":"string","format":"date","title":"Day","description":"A UTC calendar day"},"responses":{"type":"integer","title":"Responses","description":"Responses QueryPal posted for requests received that day, counted as the Responses page counts them"},"compared":{"type":"integer","title":"Compared","description":"Requests received that day whose response has a scored comparison with an agent reply, the comparisons the match rate averages"},"differences_by_cause":{"additionalProperties":{"type":"integer"},"propertyNames":{"$ref":"#/components/schemas/DifferenceCause"},"type":"object","title":"Differences By Cause","description":"Current differences about requests received that day, per cause, omitting zeroes"}},"type":"object","required":["day","responses","compared","differences_by_cause"],"title":"DayCounts"},"DeleteFaqResponse":{"properties":{"success":{"type":"boolean","title":"Success"},"message":{"type":"string","title":"Message"}},"type":"object","required":["success","message"],"title":"DeleteFaqResponse"},"DifferenceCause":{"type":"string","enum":["missing_context","missing_tool","different_process","knowledge_gap","search_failure","tool_call_failure","retrieved_but_misused","unsupported_claim","clarifying_question","weak_human_reply"],"title":"DifferenceCause","description":"    \n    \n    \n    \n    "},"DifferenceResult":{"properties":{"kind":{"type":"string","const":"difference","title":"Kind","default":"difference"},"cause":{"$ref":"#/components/schemas/DifferenceCause","description":"Why the draft and the reply differ"},"details":{"oneOf":[{"$ref":"#/components/schemas/MissingContextDetails"},{"$ref":"#/components/schemas/MissingToolDetails"},{"$ref":"#/components/schemas/DifferentProcessDetails"},{"$ref":"#/components/schemas/KnowledgeGapDetails"},{"$ref":"#/components/schemas/SearchFailureDetails"},{"$ref":"#/components/schemas/ToolCallFailureDetails"},{"$ref":"#/components/schemas/RetrievedButMisusedDetails"},{"$ref":"#/components/schemas/UnsupportedClaimDetails"},{"$ref":"#/components/schemas/AcceptedDifferenceDetails"}],"title":"Details","description":"The facts this cause's decisive test turned on, typed per cause","discriminator":{"propertyName":"kind","mapping":{"clarifying_question":"#/components/schemas/AcceptedDifferenceDetails","different_process":"#/components/schemas/DifferentProcessDetails","knowledge_gap":"#/components/schemas/KnowledgeGapDetails","missing_context":"#/components/schemas/MissingContextDetails","missing_tool":"#/components/schemas/MissingToolDetails","retrieved_but_misused":"#/components/schemas/RetrievedButMisusedDetails","search_failure":"#/components/schemas/SearchFailureDetails","tool_call_failure":"#/components/schemas/ToolCallFailureDetails","unsupported_claim":"#/components/schemas/UnsupportedClaimDetails","weak_human_reply":"#/components/schemas/AcceptedDifferenceDetails"}}},"secondary_causes":{"items":{"$ref":"#/components/schemas/DifferenceCause"},"type":"array","title":"Secondary Causes","description":"Other causes that also applied. The evidence and rationale are written about the primary, so these record co-occurrence rather than a second argument"},"discoverable":{"$ref":"#/components/schemas/Discoverable","description":"Whether the needed information could be found by searching at all; 'unknown' when it was not tested","default":"unknown"}},"type":"object","required":["cause","details"],"title":"DifferenceResult"},"DifferentProcessDetails":{"properties":{"kind":{"type":"string","const":"different_process","title":"Kind","default":"different_process"},"driver":{"$ref":"#/components/schemas/ProcessDriver"},"querypal_approach":{"type":"string","maxLength":2000,"title":"Querypal Approach","description":"The procedure QueryPal's reply took."},"human_approach":{"type":"string","maxLength":2000,"title":"Human Approach","description":"The procedure the human's reply took, citing the source that backs it if one does."},"driver_excerpt":{"type":"string","maxLength":2000,"title":"Driver Excerpt","default":""}},"type":"object","required":["driver","querypal_approach","human_approach"],"title":"DifferentProcessDetails"},"Dimension":{"properties":{"key":{"type":"string","title":"Key"},"label":{"type":"string","title":"Label"},"source":{"$ref":"#/components/schemas/DimensionSource"},"is_default":{"type":"boolean","title":"Is Default","default":false}},"type":"object","required":["key","label","source"],"title":"Dimension"},"DimensionSource":{"type":"string","enum":["computed","metadata"],"title":"DimensionSource"},"DimensionsResponse":{"properties":{"dimensions":{"items":{"$ref":"#/components/schemas/Dimension"},"type":"array","title":"Dimensions","description":"The available dimensions"}},"type":"object","required":["dimensions"],"title":"DimensionsResponse","description":"    \n    "},"Discoverable":{"type":"string","enum":["yes","no","unknown"],"title":"Discoverable"},"DisqualifiedReason":{"type":"string","enum":["not_scorable","superseded"]},"Divergence":{"type":"string","enum":["contradicted","omitted","under_weighted"],"title":"Divergence"},"DraftConflict":{"properties":{"draft_id":{"type":"string","title":"Draft Id"},"reason":{"type":"string","enum":["foreign","modified"],"title":"Reason"},"last_modified_at":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Last Modified At"},"last_modified_by":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Last Modified By"},"url":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Url"}},"type":"object","required":["draft_id","reason"],"title":"DraftConflict","description":"    \n    "},"DraftInstructionsPayload":{"properties":{"instructions":{"type":"string","title":"Instructions"}},"type":"object","required":["instructions"],"title":"DraftInstructionsPayload"},"DraftInstructionsResponse":{"properties":{"bot_id":{"type":"string","title":"Bot Id"},"version":{"type":"integer","title":"Version"}},"type":"object","required":["bot_id","version"],"title":"DraftInstructionsResponse"},"EntailmentReport":{"properties":{"id":{"type":"string","title":"Id","description":"The ID of the report"},"created_at":{"type":"string","format":"date-time","title":"Created At","description":"When this report was created"},"type":{"type":"string","const":"entailment","title":"Type","default":"entailment"},"helpdesk_config_id":{"type":"string","title":"Helpdesk Config Id"},"ticket_id":{"type":"string","title":"Ticket Id"},"agent_comment_id":{"type":"string","title":"Agent Comment Id","description":"The subsequent agent comment that we calculated the report against"},"qe_request_id":{"type":"string","title":"Qe Request Id","description":"The query engine request that generated the response"},"score":{"anyOf":[{"type":"number"},{"type":"null"}],"title":"Score","description":"Entailment score, or None when the pair is disqualified (no scorable content)."},"category":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Category","description":"Scorability classification category, when the classifier assigned one."},"scorability_reasoning":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Scorability Reasoning","description":"Classifier reasoning for the scorability decision, when the classifier ran."},"statements":{"items":{"$ref":"#/components/schemas/Statement"},"type":"array","title":"Statements"}},"type":"object","required":["id","created_at","helpdesk_config_id","ticket_id","agent_comment_id","qe_request_id","statements"],"title":"EntailmentReport"},"EnumOption":{"properties":{"value":{"title":"Value"},"label":{"type":"string","title":"Label"}},"type":"object","required":["value","label"],"title":"EnumOption"},"EscalationFormSettings":{"properties":{"form_id":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Form Id"}},"type":"object","required":["form_id"],"title":"EscalationFormSettings"},"EscalationSettings":{"properties":{"config_id":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Config Id"},"form_settings":{"anyOf":[{"$ref":"#/components/schemas/EscalationFormSettings"},{"type":"null"}]}},"type":"object","required":["config_id"],"title":"EscalationSettings"},"EvaluationInputs":{"properties":{"ticket":{"anyOf":[{"$ref":"#/components/schemas/EvaluationInputsTicket"},{"type":"null"}]},"requester":{"anyOf":[{"$ref":"#/components/schemas/EvaluationInputsRequester"},{"type":"null"}]}},"type":"object","title":"EvaluationInputs"},"EvaluationInputsRequester":{"properties":{"name":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Name"},"email":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Email"}},"type":"object","title":"EvaluationInputsRequester"},"EvaluationInputsTicket":{"properties":{"subject":{"type":"string","title":"Subject"},"body":{"type":"string","title":"Body"},"comments":{"anyOf":[{"items":{"$ref":"#/components/schemas/TicketComment"},"type":"array"},{"type":"null"}],"title":"Comments"}},"type":"object","required":["subject","body"],"title":"EvaluationInputsTicket"},"EvidenceKind":{"type":"string","enum":["INT","TICKET","EXT","EXAMPLE","FEEDBACK"],"title":"EvidenceKind","description":"    \n    \n    \n    \n    \n    \n    \n    \n    \n    "},"EvidenceRef":{"properties":{"index":{"type":"integer","title":"Index","description":"The n of the item's [evidence n] label"},"kind":{"$ref":"#/components/schemas/EvidenceKind"},"title":{"type":"string","title":"Title"},"link":{"type":"string","title":"Link","default":""},"quote":{"type":"string","maxLength":2000,"title":"Quote","default":""}},"type":"object","required":["index","kind","title"],"title":"EvidenceRef","description":"    \n    \n    \n    \n    "},"Example":{"properties":{"query":{"type":"string","title":"Query"},"context":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Context"},"metadata":{"anyOf":[{"additionalProperties":true,"type":"object"},{"type":"null"}],"title":"Metadata"},"input_values":{"additionalProperties":true,"type":"object","title":"Input Values"}},"type":"object","required":["query","context","metadata","input_values"],"title":"Example"},"ExternalQAIntroMessageResponseOption":{"properties":{"value":{"type":"string","title":"Value"}},"type":"object","required":["value"],"title":"ExternalQAIntroMessageResponseOption"},"ExternalQAPrompt":{"properties":{"prompt":{"type":"string","title":"Prompt"}},"type":"object","required":["prompt"],"title":"ExternalQAPrompt"},"FeedbackIssue":{"type":"string","enum":["should_not_respond","hallucination","wrong_source","missing_source"],"title":"FeedbackIssue","description":"    "},"FetchAnsweredQueriesResponse":{"properties":{"queries":{"items":{"$ref":"#/components/schemas/AnsweredQuery"},"type":"array","title":"Queries"},"chart":{"items":{"$ref":"#/components/schemas/AnswerChartWeek"},"type":"array","title":"Chart"}},"type":"object","required":["queries","chart"],"title":"FetchAnsweredQueriesResponse"},"Field":{"properties":{"name":{"type":"string","title":"Name"},"validation_schema":{"additionalProperties":true,"type":"object","title":"Validation Schema"},"initial_value":{"title":"Initial Value"},"display_hint":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Display Hint"},"title":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Title"},"enum_options":{"anyOf":[{"items":{"$ref":"#/components/schemas/EnumOption"},"type":"array"},{"type":"null"}],"title":"Enum Options"},"required":{"type":"boolean","title":"Required","default":false}},"type":"object","required":["name","validation_schema"],"title":"Field"},"FieldDependency":{"properties":{"field_id":{"type":"string","title":"Field Id","description":"Field ID this field depends on"},"field_option_ids":{"items":{"type":"string"},"type":"array","title":"Field Option Ids","description":"Field option IDs this field depends on. If empty, all options are valid."}},"type":"object","required":["field_id","field_option_ids"],"title":"FieldDependency"},"FieldOption":{"properties":{"id":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Id"},"name":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Name"},"value":{"type":"string","title":"Value"},"parent_option_id":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Parent Option Id","description":"If provided, this is the ID of the the option in the parent field that must be selected in order for this option to be valid"},"instructions":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Instructions","description":"Instructions explaining when this option should be selected."},"examples":{"anyOf":[{"items":{"additionalProperties":true,"type":"object"},"type":"array"},{"type":"null"}],"title":"Examples"}},"type":"object","required":["value"],"title":"FieldOption"},"FileUpload":{"properties":{"file":{"type":"string","contentMediaType":"application/octet-stream","title":"File"}},"type":"object","required":["file"],"title":"FileUpload"},"FileUploadField":{"properties":{"max_uploads":{"type":"integer","title":"Max Uploads","default":1},"required":{"type":"boolean","title":"Required","default":false}},"type":"object","title":"FileUploadField"},"Fix":{"properties":{"fix_id":{"type":"string","title":"Fix Id"},"problem_id":{"type":"string","title":"Problem Id"},"type":{"type":"string","enum":["create_or_update_article","update_instructions"],"title":"Type"},"status":{"type":"string","enum":["drafted","applied","rejected","reverted"],"title":"Status"},"applied_bot_version":{"anyOf":[{"type":"integer"},{"type":"null"}],"title":"Applied Bot Version","description":"The bot version applying this fix saved. The draft is the whole product of applying, and this is what leads back to it once the URL that carried it is gone"},"applied_article":{"anyOf":[{"$ref":"#/components/schemas/AppliedArticle"},{"type":"null"}],"description":"The article that applied an article fix"},"applied_by":{"anyOf":[{"$ref":"#/components/schemas/UserAuthor"},{"type":"null"}],"description":"Who applied it"},"applied_at":{"anyOf":[{"type":"string","format":"date-time"},{"type":"null"}],"title":"Applied At","description":"When it was applied"},"created_at":{"type":"string","format":"date-time","title":"Created At","description":"When the record was created in our system"},"updated_at":{"type":"string","format":"date-time","title":"Updated At","description":"When the record was last modified in our system"}},"type":"object","required":["fix_id","problem_id","type","status","created_at","updated_at"],"title":"Fix"},"FixCheck":{"properties":{"assessment_id":{"type":"string","title":"Assessment Id"},"run_request_id":{"type":"string","title":"Run Request Id","description":"The live-test request whose answer is checked"},"bot_id":{"type":"string","title":"Bot Id","description":"The bot the run answered with"},"bot_version":{"type":"integer","title":"Bot Version","description":"The version of that bot the run answered with"},"outcome":{"$ref":"#/components/schemas/FixCheckOutcome"},"statements":{"items":{"$ref":"#/components/schemas/Statement"},"type":"array","title":"Statements","description":"The facts the agent's reply stated, each checked against the run's answer"},"result":{"anyOf":[{"oneOf":[{"$ref":"#/components/schemas/DifferenceResult"},{"$ref":"#/components/schemas/NoDifferenceResult"}],"discriminator":{"propertyName":"kind","mapping":{"difference":"#/components/schemas/DifferenceResult","no_difference":"#/components/schemas/NoDifferenceResult"}}},{"type":"null"}],"title":"Result","description":"The run judged against the reply, when facts were missing and its evidence was recorded"},"headline":{"anyOf":[{"type":"string","maxLength":400},{"type":"null"}],"title":"Headline","description":"The result in one line, alongside it"},"failure":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Failure","description":"Why the check could not run, when it failed"},"created_at":{"type":"string","format":"date-time","title":"Created At"},"updated_at":{"type":"string","format":"date-time","title":"Updated At"}},"type":"object","required":["assessment_id","run_request_id","bot_id","bot_version","outcome","created_at","updated_at"],"title":"FixCheck","description":"    \n    \n    \n    "},"FixCheckOutcome":{"type":"string","enum":["pending","fixed","not_fixed","failed"],"title":"FixCheckOutcome"},"FixCheckSummary":{"properties":{"bot_version":{"type":"integer","title":"Bot Version","description":"The fix's newest draft while it is drafted, else the version set live"},"checked":{"type":"integer","title":"Checked","description":"Assessments whose latest check against that version finished, fixed or not"},"fixed":{"type":"integer","title":"Fixed","description":"Assessments whose latest check against that version found the difference gone"},"total":{"type":"integer","title":"Total","description":"Assessments the problem holds"}},"type":"object","required":["bot_version","checked","fixed","total"],"title":"FixCheckSummary"},"FixSource":{"properties":{"kind":{"type":"string","const":"fix","title":"Kind","default":"fix"},"problem_id":{"type":"string","title":"Problem Id"},"fix_id":{"type":"string","title":"Fix Id"}},"type":"object","required":["problem_id","fix_id"],"title":"FixSource"},"Form-Input":{"properties":{"title":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Title"},"fields":{"items":{"$ref":"#/components/schemas/Field"},"type":"array","title":"Fields"},"file_upload":{"anyOf":[{"$ref":"#/components/schemas/FileUploadField"},{"type":"null"}]}},"type":"object","required":["fields"],"title":"Form"},"Form-Output":{"properties":{"title":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Title"},"fields":{"items":{"$ref":"#/components/schemas/Field"},"type":"array","title":"Fields"},"file_upload":{"anyOf":[{"$ref":"#/components/schemas/FileUploadField"},{"type":"null"}]}},"type":"object","required":["fields"],"title":"Form"},"FreshdeskTicketRequesterPayload":{"properties":{"custom":{"anyOf":[{"additionalProperties":true,"type":"object"},{"type":"null"}],"title":"Custom"},"sensitive_custom":{"anyOf":[{"additionalProperties":true,"type":"object"},{"type":"null"}],"title":"Sensitive Custom"},"email":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Email","description":"The email of the requester","default":""},"name":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Name","description":"The name of the requester","default":""}},"type":"object","title":"FreshdeskTicketRequesterPayload"},"GenericIntegrationSetting":{"properties":{"boost":{"type":"string","title":"Boost"},"type":{"type":"string","title":"Type"}},"type":"object","required":["type"],"title":"GenericIntegrationSetting"},"GenericPreFilter":{"properties":{"name":{"type":"string","title":"Name"},"system_prompt":{"type":"string","title":"System Prompt"},"response_format":{"additionalProperties":true,"type":"object","title":"Response Format"},"acceptance_field_name":{"type":"string","title":"Acceptance Field Name"},"accept_if_false":{"type":"boolean","title":"Accept If False","default":false},"model_name":{"type":"string","title":"Model Name","default":"default:prefilter-model"},"model_params":{"additionalProperties":true,"type":"object","title":"Model Params"},"enabled":{"type":"boolean","title":"Enabled","default":true},"n_examples":{"type":"integer","title":"N Examples","default":0}},"type":"object","required":["name","system_prompt","response_format","acceptance_field_name"],"title":"GenericPreFilter"},"GetEvaluationHistoryRequest":{"properties":{"bot_id":{"type":"string","title":"Bot Id"},"limit":{"type":"integer","title":"Limit","default":50}},"type":"object","required":["bot_id"],"title":"GetEvaluationHistoryRequest"},"GetGoogleDriveAccessTokenResponse":{"properties":{"status":{"type":"string","title":"Status"},"access_token":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Access Token"},"message":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Message"}},"type":"object","required":["status"],"title":"GetGoogleDriveAccessTokenResponse"},"GoogleAuthPayload":{"properties":{"credential":{"type":"string","title":"Credential"}},"type":"object","required":["credential"],"title":"GoogleAuthPayload"},"HTTPAPIAction":{"properties":{"name":{"type":"string","title":"Name"},"description":{"type":"string","title":"Description"},"tenant_id":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Tenant Id"},"requires_approval":{"anyOf":[{"type":"boolean"},{"type":"null"}],"title":"Requires Approval"},"action_id":{"type":"string","title":"Action Id","default":""},"version":{"type":"integer","title":"Version","default":0},"created_at":{"type":"integer","title":"Created At"},"modified_at":{"type":"integer","title":"Modified At"},"action_type":{"type":"string","const":"http_api_action","title":"Action Type","default":"http_api_action"},"secret_id":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Secret Id"},"method":{"type":"string","title":"Method"},"base_url":{"type":"string","title":"Base Url"},"path":{"type":"string","title":"Path"},"headers":{"additionalProperties":true,"type":"object","title":"Headers"},"query_params":{"additionalProperties":true,"type":"object","title":"Query Params"},"body":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Body"},"response_content_type":{"type":"string","enum":["json","html"],"title":"Response Content Type","default":"json"},"response_content_selector":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Response Content Selector"},"variables":{"items":{"$ref":"#/components/schemas/Variable"},"type":"array","title":"Variables"},"protected_variables":{"items":{"type":"string"},"type":"array","title":"Protected Variables"}},"type":"object","required":["name","description","method","base_url","path"],"title":"HTTPAPIAction","description":"    \n    "},"HTTPAPIActionBinding":{"properties":{"action_id":{"type":"string","title":"Action Id"},"input_mappings":{"items":{"additionalProperties":true,"type":"object"},"type":"array","title":"Input Mappings"},"output_mappings":{"items":{"additionalProperties":true,"type":"object"},"type":"array","title":"Output Mappings"}},"type":"object","required":["action_id"],"title":"HTTPAPIActionBinding","description":"    \n    "},"HTTPValidationError":{"properties":{"detail":{"items":{"$ref":"#/components/schemas/ValidationError"},"type":"array","title":"Detail"}},"type":"object","title":"HTTPValidationError"},"HelpScoutInbox":{"properties":{"id":{"type":"string","title":"Id"},"name":{"type":"string","title":"Name"},"email":{"type":"string","title":"Email"}},"type":"object","required":["id","name","email"],"title":"HelpScoutInbox"},"HelpScoutInboxesRequest":{"properties":{"config_id":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Config Id"},"app_id":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"App Id"},"app_secret":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"App Secret"}},"type":"object","title":"HelpScoutInboxesRequest"},"HoldingProblem":{"properties":{"problem_id":{"type":"string","title":"Problem Id"},"summary":{"type":"string","title":"Summary"},"status":{"type":"string","enum":["open","watching","fixed","dismissed","expired"],"title":"Status"},"fix_type":{"type":"string","enum":["create_or_update_article","update_instructions"],"title":"Fix Type","description":"The type of the problem's current fix"},"ticket_count":{"type":"integer","title":"Ticket Count","description":"Distinct tickets the problem's assessments are about"}},"type":"object","required":["problem_id","summary","status","fix_type","ticket_count"],"title":"HoldingProblem"},"IndexingJobProgress":{"properties":{"ConfigId":{"type":"string","title":"Configid","description":"The config id for the docstore to use for this indexing job"},"Tenant":{"type":"string","title":"Tenant","description":"The tenant id for the indexing job"},"latest_job_status":{"anyOf":[{"$ref":"#/components/schemas/BaseIndexingJobStatus"},{"type":"null"}],"description":"The status of the indexing job"},"last_successful_reindex_ts":{"anyOf":[{"type":"integer"},{"type":"null"}],"title":"Last Successful Reindex Ts","description":"The timestamp of the last successful reindex"}},"type":"object","required":["ConfigId","Tenant","latest_job_status"],"title":"IndexingJobProgress"},"IntegrationAuthUrlResponse":{"properties":{"base_auth_url":{"type":"string","title":"Base Auth Url"},"params":{"additionalProperties":{"type":"string"},"type":"object","title":"Params"}},"type":"object","required":["base_auth_url","params"],"title":"IntegrationAuthUrlResponse"},"IntegrationOauthRequest":{"properties":{"code":{"type":"string","title":"Code"}},"type":"object","required":["code"],"title":"IntegrationOauthRequest"},"Intent":{"properties":{"trigger":{"type":"string","title":"Trigger"},"workflow":{"$ref":"#/components/schemas/WorkflowReference"},"examples":{"items":{"$ref":"#/components/schemas/Example"},"type":"array","title":"Examples"},"inputs":{"anyOf":[{"additionalProperties":{"anyOf":[{"$ref":"#/components/schemas/Constant"},{"$ref":"#/components/schemas/MetadataRef"}]},"type":"object"},{"type":"null"}],"title":"Inputs"}},"type":"object","required":["trigger","workflow","examples"],"title":"Intent"},"InterceptResponsesParams":{"properties":{"kind":{"type":"string","const":"intercept_responses","title":"Kind","default":"intercept_responses"},"start_time":{"type":"integer","title":"Start Time"},"end_time":{"type":"integer","title":"End Time"},"columns":{"anyOf":[{"items":{"type":"string"},"type":"array"},{"type":"null"}],"title":"Columns"},"show_scores":{"type":"boolean","title":"Show Scores","default":false}},"type":"object","required":["start_time","end_time"],"title":"InterceptResponsesParams"},"InterceptStatusResponse":{"properties":{"state":{"type":"string","enum":["queued","processing","idle"],"title":"State"},"task_count":{"type":"integer","title":"Task Count"}},"type":"object","required":["state","task_count"],"title":"InterceptStatusResponse"},"IntercomAudienceTarget":{"properties":{"include":{"type":"boolean","title":"Include"},"value":{"type":"string","title":"Value"}},"type":"object","required":["include","value"],"title":"IntercomAudienceTarget"},"IntercomBotSettings":{"properties":{"enable_ticket_response_drafts":{"type":"boolean","title":"Enable Ticket Response Drafts"},"enable_conversation_autoresponder":{"type":"boolean","title":"Enable Conversation Autoresponder"}},"type":"object","title":"IntercomBotSettings"},"IntercomIntegrationOauthRequest":{"properties":{"code":{"type":"string","title":"Code"},"index_articles":{"type":"boolean","title":"Index Articles"},"index_tickets":{"type":"boolean","title":"Index Tickets"},"index_conversations":{"type":"boolean","title":"Index Conversations"},"ticket_lookback_days":{"type":"integer","title":"Ticket Lookback Days","default":-1},"conversation_lookback_days":{"type":"integer","title":"Conversation Lookback Days","default":-1}},"type":"object","required":["code","index_articles","index_tickets","index_conversations"],"title":"IntercomIntegrationOauthRequest"},"IntercomIntegrationSetting":{"properties":{"boost":{"type":"string","title":"Boost"},"type":{"type":"string","const":"intercom","title":"Type"},"search_all_articles":{"type":"boolean","title":"Search All Articles"},"include_everyone_audience":{"type":"boolean","title":"Include Everyone Audience"},"audience_targets":{"items":{"$ref":"#/components/schemas/IntercomAudienceTarget"},"type":"array","title":"Audience Targets"}},"type":"object","required":["type","search_all_articles","include_everyone_audience"],"title":"IntercomIntegrationSetting"},"Issue":{"properties":{"self":{"type":"string","title":"Self","description":"URL to retrieve the issue"},"id":{"type":"integer","title":"Id","description":"Unique identifier for the issue"},"key":{"type":"string","title":"Key","description":"Unique identifier for the issue"},"fields":{"$ref":"#/components/schemas/IssueFields","description":"Fields associated with the issue"}},"type":"object","required":["self","id","key","fields"],"title":"Issue"},"IssueFields":{"properties":{"description":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Description","description":"Description of the issue"},"summary":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Summary","description":"Summary of the issue"},"comment":{"additionalProperties":true,"type":"object","title":"Comment","description":"Comments associated with the issue"},"creator":{"$ref":"#/components/schemas/JiraUser","description":"Creator of the issue"},"reporter":{"$ref":"#/components/schemas/JiraUser","description":"Reporter of the issue"},"updated":{"type":"integer","title":"Updated","description":"Timestamp of the last update (epoch milliseconds)"},"created":{"type":"integer","title":"Created","description":"Timestamp of the creation (epoch milliseconds)"}},"type":"object","required":["description","summary","comment","creator","reporter","updated","created"],"title":"IssueFields","description":"    \n    "},"JiraUser":{"properties":{"self":{"type":"string","title":"Self","description":"URL to retrieve the user"},"name":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Name","description":"Name of the user"},"emailAddress":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Emailaddress","description":"Email address of the user"},"displayName":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Displayname","description":"Display name of the user"},"active":{"anyOf":[{"type":"boolean"},{"type":"null"}],"title":"Active","description":"Whether the user is active"},"timeZone":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Timezone","description":"Time zone of the user"},"avatarUrls":{"anyOf":[{"additionalProperties":true,"type":"object"},{"type":"null"}],"title":"Avatarurls","description":"URLs of the user's avatar"},"accountType":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Accounttype","description":"Account type of the user"}},"type":"object","required":["self","name","emailAddress","displayName","active","timeZone","avatarUrls","accountType"],"title":"JiraUser"},"KeyCreate":{"properties":{"name":{"type":"string","title":"Name"}},"type":"object","required":["name"],"title":"KeyCreate"},"KeyCreateResponse":{"properties":{"id":{"type":"string","title":"Id"},"name":{"type":"string","title":"Name"},"public_key":{"type":"string","title":"Public Key"},"created_at":{"type":"string","title":"Created At"},"enabled":{"type":"boolean","title":"Enabled"}},"type":"object","required":["id","name","public_key","created_at","enabled"],"title":"KeyCreateResponse"},"KeyPairUpdate":{"properties":{"name":{"type":"string","title":"Name"},"enabled":{"type":"boolean","title":"Enabled"}},"type":"object","required":["name","enabled"],"title":"KeyPairUpdate"},"KeyResponse":{"properties":{"id":{"type":"string","title":"Id"},"name":{"type":"string","title":"Name"},"created_at":{"type":"string","title":"Created At"},"enabled":{"type":"boolean","title":"Enabled"}},"type":"object","required":["id","name","created_at","enabled"],"title":"KeyResponse"},"KnowledgeGapDetails":{"properties":{"kind":{"type":"string","const":"knowledge_gap","title":"Kind","default":"knowledge_gap"},"fact_not_found":{"type":"string","maxLength":2000,"title":"Fact Not Found","description":"The fact the human's reply rested on that no search found, stated as the fact itself. Not an account of the searches: those are recorded separately."}},"type":"object","required":["fact_not_found"],"title":"KnowledgeGapDetails","description":"    \n    \n    \n    \n    "},"KnowledgeRecordType":{"properties":{"developer_name":{"type":"string","title":"Developer Name"},"name":{"type":"string","title":"Name"},"active":{"type":"boolean","title":"Active"}},"type":"object","required":["developer_name","name","active"],"title":"KnowledgeRecordType"},"LLMJudgeAssertion":{"properties":{"id":{"type":"string","title":"Id"},"description":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Description"},"type":{"type":"string","const":"llm_judge","title":"Type"},"expectation":{"type":"string","title":"Expectation"}},"type":"object","required":["id","type","expectation"],"title":"LLMJudgeAssertion"},"LinkCaseResponse":{"properties":{"case_id":{"type":"string","title":"Case Id"}},"type":"object","required":["case_id"],"title":"LinkCaseResponse"},"ListAPIKeysResponse":{"properties":{"api_keys":{"items":{"$ref":"#/components/schemas/APIKeyInfo"},"type":"array","title":"Api Keys","description":"All available API Keys"}},"type":"object","required":["api_keys"],"title":"ListAPIKeysResponse"},"ListArtifactsResponse":{"properties":{"artifacts":{"items":{"$ref":"#/components/schemas/ArtifactSummary"},"type":"array","title":"Artifacts"}},"type":"object","required":["artifacts"],"title":"ListArtifactsResponse"},"ListFaqsResponse":{"properties":{"success":{"type":"boolean","title":"Success"},"faqs":{"items":{"$ref":"#/components/schemas/StoredFaqListItem"},"type":"array","title":"Faqs"},"message":{"type":"string","title":"Message"}},"type":"object","required":["success","faqs"],"title":"ListFaqsResponse"},"ListTicketsResponse":{"properties":{"tickets":{"items":{"$ref":"#/components/schemas/TicketSummary"},"type":"array","title":"Tickets"},"cursor":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Cursor"}},"type":"object","required":["tickets","cursor"],"title":"ListTicketsResponse"},"LiveTestRequest":{"properties":{"bot_id":{"type":"string","title":"Bot Id"},"bot_version":{"type":"string","title":"Bot Version"},"config_id":{"type":"string","title":"Config Id"},"ticket_display_id":{"type":"string","title":"Ticket Display Id"},"comment_id_cutoff":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Comment Id Cutoff"}},"type":"object","required":["bot_id","bot_version","config_id","ticket_display_id"],"title":"LiveTestRequest"},"LiveTestResponse":{"properties":{"private_note":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Private Note"},"public_response":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Public Response"},"qe_response":{"anyOf":[{"$ref":"#/components/schemas/V2QueryResponse"},{"type":"null"}]},"session_id":{"type":"string","title":"Session Id"}},"type":"object","required":["session_id"],"title":"LiveTestResponse"},"LoginAuthRequest":{"properties":{"code":{"type":"string","title":"Code"}},"type":"object","required":["code"],"title":"LoginAuthRequest"},"Message":{"properties":{"message_id":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Message Id"}},"type":"object","title":"Message"},"MetadataRef":{"properties":{"tag":{"type":"string","title":"Tag"}},"type":"object","required":["tag"],"title":"MetadataRef"},"MicrosoftAuthPayload":{"properties":{"id_token":{"type":"string","title":"Id Token"},"access_token":{"type":"string","title":"Access Token"}},"type":"object","required":["id_token","access_token"],"title":"MicrosoftAuthPayload"},"MissingContextDetails":{"properties":{"kind":{"type":"string","const":"missing_context","title":"Kind","default":"missing_context"},"information_the_human_had":{"type":"string","maxLength":2000,"title":"Information The Human Had","description":"What the human knew that QueryPal was never given, stated as the information itself."},"source":{"$ref":"#/components/schemas/ContextSource"},"note":{"type":"string","maxLength":2000,"title":"Note","description":"Anything else a reader needs to know about it; empty if nothing.","default":""}},"type":"object","required":["information_the_human_had","source"],"title":"MissingContextDetails"},"MissingToolDetails":{"properties":{"kind":{"type":"string","const":"missing_tool","title":"Kind","default":"missing_tool"},"capability_needed":{"type":"string","maxLength":2000,"title":"Capability Needed","description":"What QueryPal would have needed to be able to do, as a capability rather than a tool name."},"human_action":{"type":"string","maxLength":2000,"title":"Human Action","description":"What the human did with that capability in this case."},"nearest_existing_tool":{"type":"string","maxLength":400,"title":"Nearest Existing Tool","default":""}},"type":"object","required":["capability_needed","human_action"],"title":"MissingToolDetails"},"ModelAuthor":{"properties":{"kind":{"type":"string","const":"model","title":"Kind","default":"model"},"model":{"type":"string","title":"Model","description":"The model the investigation ran on"}},"type":"object","required":["model"],"title":"ModelAuthor"},"NewProblems":{"properties":{"count":{"type":"integer","title":"Count","description":"Open problems whose page nobody has opened, as the overview marks New"}},"type":"object","required":["count"],"title":"NewProblems"},"NextProblem":{"properties":{"problem_id":{"type":"string","title":"Problem Id"},"summary":{"type":"string","title":"Summary"},"ticket_count":{"type":"integer","title":"Ticket Count","description":"Distinct tickets its assessments are about"}},"type":"object","required":["problem_id","summary","ticket_count"],"title":"NextProblem"},"NoDifferenceReason":{"type":"string","enum":["stylistic","scoring_noise"],"title":"NoDifferenceReason"},"NoDifferenceResult":{"properties":{"kind":{"type":"string","const":"no_difference","title":"Kind","default":"no_difference"},"reason":{"$ref":"#/components/schemas/NoDifferenceReason"},"note":{"type":"string","maxLength":2000,"title":"Note","description":"What a reviewer should know beyond the reason; empty if the reason says it all.","default":""}},"type":"object","required":["reason"],"title":"NoDifferenceResult"},"NoteFormat":{"properties":{"sections":{"items":{"$ref":"#/components/schemas/NoteSection"},"type":"array","title":"Sections"}},"type":"object","required":["sections"],"title":"NoteFormat"},"NoteSection":{"properties":{"title":{"type":"string","title":"Title"},"type":{"$ref":"#/components/schemas/NoteSectionType"},"hidden_subsections":{"items":{"type":"string"},"type":"array","title":"Hidden Subsections","default":[]},"enabled":{"type":"boolean","title":"Enabled","default":true}},"type":"object","required":["title","type"],"title":"NoteSection"},"NoteSectionType":{"type":"string","enum":["references","feedback","prompted","disclaimer","continue_conversation"],"title":"NoteSectionType"},"OneOff":{"properties":{"assessment_id":{"type":"string","title":"Assessment Id"},"request_id":{"type":"string","title":"Request Id"},"received_at":{"type":"string","format":"date-time","title":"Received At","description":"When the request was received"},"ticket_display_id":{"type":"string","title":"Ticket Display Id","description":"The human-facing ticket number"},"ticket_subject":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Ticket Subject","description":"The ticket's subject as recorded when QueryPal responded; None when that response recorded no ticket"},"cause":{"$ref":"#/components/schemas/DifferenceCause"},"headline":{"type":"string","title":"Headline","description":"What went wrong, in one line"}},"type":"object","required":["assessment_id","request_id","received_at","ticket_display_id","ticket_subject","cause","headline"],"title":"OneOff"},"OneOffsResponse":{"properties":{"one_offs":{"items":{"$ref":"#/components/schemas/OneOff"},"type":"array","title":"One Offs","description":"Newest request first"}},"type":"object","required":["one_offs"],"title":"OneOffsResponse"},"OpenAuthoringSessionResponse":{"properties":{"session_id":{"type":"string","title":"Session Id"},"created":{"type":"boolean","title":"Created"}},"type":"object","required":["session_id","created"],"title":"OpenAuthoringSessionResponse"},"OptOutPayload":{"properties":{"is_opted_out":{"type":"boolean","title":"Is Opted Out"}},"type":"object","required":["is_opted_out"],"title":"OptOutPayload"},"PicklistValue":{"properties":{"value":{"type":"string","title":"Value"},"label":{"type":"string","title":"Label"}},"type":"object","required":["value","label"],"title":"PicklistValue"},"Pipeline":{"type":"string","enum":["default","default_email","jb_tech_support","jb_sales_support","noop","agentic","agentic_chat","agentic_v2"],"title":"Pipeline"},"PostAnswerRequest":{"properties":{"session_id":{"type":"string","title":"Session Id"},"request_id":{"type":"string","title":"Request Id"},"note":{"type":"string","title":"Note"}},"type":"object","required":["session_id","request_id","note"],"title":"PostAnswerRequest"},"PostExampleRequest":{"properties":{"query":{"type":"string","title":"Query","description":"The query"},"answer":{"type":"string","title":"Answer","description":"The answer"},"bot_id":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Bot Id","description":"The identifier of the bot this example applies to"},"metadata":{"anyOf":[{"additionalProperties":true,"type":"object"},{"type":"null"}],"title":"Metadata","description":"Metadata associated with the example"}},"type":"object","required":["query","answer"],"title":"PostExampleRequest","description":"    \n    "},"PostExampleResponse":{"properties":{"id":{"type":"string","title":"Id","description":"The unique identifier of the example"}},"type":"object","required":["id"],"title":"PostExampleResponse","description":"    \n    "},"PostNewClickRequest":{"properties":{"session_id":{"type":"string","title":"Session Id"},"request_id":{"type":"string","title":"Request Id"},"click":{"$ref":"#/components/schemas/Click"}},"type":"object","required":["session_id","request_id","click"],"title":"PostNewClickRequest"},"PostNewSessionRequest":{"properties":{"tenant_id":{"type":"string","title":"Tenant Id"},"session_id":{"type":"string","title":"Session Id"},"request_id":{"type":"string","title":"Request Id"},"filters":{"items":{"type":"string"},"type":"array","title":"Filters"}},"type":"object","required":["tenant_id","session_id","request_id","filters"],"title":"PostNewSessionRequest"},"PostQueryResponse":{"properties":{"any_search_timed_out":{"type":"boolean","title":"Any Search Timed Out","description":"Whether search to any of the knowledge sources timed out"},"message_id":{"type":"string","title":"Message Id","description":"The unique identifier of the query response"},"answer":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Answer","description":"The answer to the query"},"used_refs":{"items":{"$ref":"#/components/schemas/ReferenceLink"},"type":"array","title":"Used Refs","description":"The references that were used to generate the answer"},"unused_refs":{"items":{"$ref":"#/components/schemas/ReferenceLink"},"type":"array","title":"Unused Refs","description":"Other relevant references that were not used in the answer"},"failed":{"type":"boolean","title":"Failed","description":"Whether the query failed","default":false},"metadata_filters":{"anyOf":[{"additionalProperties":true,"type":"object"},{"type":"null"}],"title":"Metadata Filters","description":"Deprecated; always null."},"automation_level":{"anyOf":[{"type":"string","enum":["deflect","assist"]},{"type":"null"}],"title":"Automation Level","description":"The automation level of the response"},"deflection_answer":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Deflection Answer","description":"The pre-formatted answer appropriate to send to users when automation level is set to deflect"}},"type":"object","required":["any_search_timed_out","message_id","answer","used_refs","unused_refs","automation_level"],"title":"PostQueryResponse","description":"    \n    "},"PostRatingRequest":{"properties":{"message_id":{"type":"string","title":"Message Id"},"rating":{"type":"integer","title":"Rating"},"reason":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Reason"}},"type":"object","required":["message_id","rating"],"title":"PostRatingRequest"},"PostTrackRequest":{"properties":{"tenant_id":{"type":"string","title":"Tenant Id"},"session_id":{"type":"string","title":"Session Id"},"request_id":{"type":"string","title":"Request Id"},"bot_id":{"type":"string","title":"Bot Id"},"reference":{"anyOf":[{"$ref":"#/components/schemas/Reference"},{"type":"null"}]},"link":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Link"}},"type":"object","required":["tenant_id","session_id","request_id","bot_id"],"title":"PostTrackRequest"},"PostUpdateSessionRequest":{"properties":{"tenant_id":{"type":"string","title":"Tenant Id"},"session_id":{"type":"string","title":"Session Id"},"filters":{"items":{"type":"string"},"type":"array","title":"Filters"}},"type":"object","required":["tenant_id","session_id","filters"],"title":"PostUpdateSessionRequest"},"PreFilterConfig":{"properties":{"prefilter_topics":{"items":{"type":"string"},"type":"array","title":"Prefilter Topics"},"all_topics":{"items":{"type":"string"},"type":"array","title":"All Topics"},"query_filter_regex_patterns":{"items":{"type":"string"},"type":"array","title":"Query Filter Regex Patterns"},"generic_prefilters":{"items":{"$ref":"#/components/schemas/GenericPreFilter"},"type":"array","title":"Generic Prefilters"}},"type":"object","title":"PreFilterConfig"},"PrincipalInfo":{"properties":{"tenant_id":{"type":"string","title":"Tenant Id","description":"The tenant identifier"}},"type":"object","required":["tenant_id"],"title":"PrincipalInfo","description":"    \n    "},"ProbeHit":{"properties":{"title":{"type":"string","title":"Title"},"link":{"type":"string","title":"Link","default":""}},"type":"object","required":["title"],"title":"ProbeHit","description":"    "},"ProbeRecord":{"properties":{"tool":{"type":"string","enum":["internal","web"],"title":"Tool"},"query":{"type":"string","title":"Query"},"outcome":{"$ref":"#/components/schemas/SearchOutcome"},"hits":{"items":{"$ref":"#/components/schemas/ProbeHit"},"type":"array","title":"Hits"}},"type":"object","required":["tool","query","outcome"],"title":"ProbeRecord","description":"    \n    \n    \n    \n    \n    "},"Problem":{"properties":{"problem_id":{"type":"string","title":"Problem Id"},"bot_id":{"type":"string","title":"Bot Id","description":"The bot whose differences this problem groups"},"summary":{"type":"string","title":"Summary","description":"A short, one-line summary, e.g. as would appear in a task list"},"description":{"type":"string","title":"Description","description":"What the pattern is, naming the shared facts behind it"},"assessment_ids":{"items":{"type":"string"},"type":"array","title":"Assessment Ids"},"status":{"type":"string","enum":["open","watching","fixed","dismissed","expired"],"title":"Status"},"current_fix_id":{"type":"string","title":"Current Fix Id","description":"The fix proposed for this problem now"},"first_opened_at":{"anyOf":[{"type":"string","format":"date-time"},{"type":"null"}],"title":"First Opened At","description":"When an admin of the tenant first opened its page; None while nobody has"},"created_at":{"type":"string","format":"date-time","title":"Created At","description":"When the record was created in our system"},"updated_at":{"type":"string","format":"date-time","title":"Updated At","description":"When the record was last modified in our system"}},"type":"object","required":["problem_id","bot_id","summary","description","assessment_ids","status","current_fix_id","created_at","updated_at"],"title":"Problem","description":"    \n    \n    \n    "},"ProblemCounts":{"properties":{"open":{"type":"integer","title":"Open","description":"Open problems, however old"},"new_this_week":{"type":"integer","title":"New This Week","description":"Open problems found in the last 7 days, counted from now whatever the range"},"differences_covered":{"type":"integer","title":"Differences Covered","description":"Current differences about requests received in the range that an open problem holds"},"differences_total":{"type":"integer","title":"Differences Total","description":"Current differences about requests received in the range"}},"type":"object","required":["open","new_this_week","differences_covered","differences_total"],"title":"ProblemCounts"},"ProblemDetail":{"properties":{"problem":{"$ref":"#/components/schemas/Problem"},"is_new":{"type":"boolean","title":"Is New","description":"Whether it is open and no admin of the tenant has opened its page yet"},"current_fix":{"$ref":"#/components/schemas/Fix"},"assessments":{"items":{"$ref":"#/components/schemas/Assessment"},"type":"array","title":"Assessments"},"ticket_count":{"type":"integer","title":"Ticket Count","description":"Distinct tickets the problem's assessments are about"},"history":{"items":{"$ref":"#/components/schemas/ProblemStatusChange"},"type":"array","title":"History","description":"Who changed its status, when and why, newest first"},"dominant_cause":{"anyOf":[{"$ref":"#/components/schemas/DifferenceCause"},{"type":"null"}],"description":"The most common cause among the problem's differences, ties broken in cause order; None when it holds none"},"tickets_this_week":{"type":"integer","title":"Tickets This Week","description":"Distinct tickets among its differences about requests received in the last 7 days"},"weekly_tickets":{"items":{"$ref":"#/components/schemas/WeekTickets"},"type":"array","title":"Weekly Tickets","description":"The 8 weeks ending now, oldest first"},"misses":{"items":{"$ref":"#/components/schemas/ProblemMiss"},"type":"array","title":"Misses","description":"Each difference the problem holds, newest request first"},"position":{"anyOf":[{"$ref":"#/components/schemas/ProblemPosition"},{"type":"null"}],"description":"Where the overview ranks it; None when it is not open"},"fix_checks":{"anyOf":[{"$ref":"#/components/schemas/FixCheckSummary"},{"type":"null"}],"description":"The current fix's checks; None when it has no bot version to check against, as an article fix or an instructions fix not yet drafted"},"draft_bot_version":{"anyOf":[{"type":"integer"},{"type":"null"}],"title":"Draft Bot Version","description":"The newest unpublished bot version saved for the current fix, while it is drafted; None before its first draft, once it is acted on, and for an article fix"},"live_bot_version":{"anyOf":[{"type":"integer"},{"type":"null"}],"title":"Live Bot Version","description":"The bot's live version, for an instructions fix; None for an article fix or a deleted bot"},"next_problem":{"anyOf":[{"$ref":"#/components/schemas/NextProblem"},{"type":"null"}],"description":"The overview's top-ranked open problem, for a problem that is not open; None when it is open or none is"}},"type":"object","required":["problem","is_new","current_fix","assessments","ticket_count","history","dominant_cause","tickets_this_week","weekly_tickets","misses","position","fix_checks","draft_bot_version","live_bot_version","next_problem"],"title":"ProblemDetail"},"ProblemMiss":{"properties":{"assessment_id":{"type":"string","title":"Assessment Id"},"request_id":{"type":"string","title":"Request Id"},"received_at":{"type":"string","format":"date-time","title":"Received At","description":"When the request was received"},"ticket_display_id":{"type":"string","title":"Ticket Display Id","description":"The human-facing ticket number"},"ticket_subject":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Ticket Subject","description":"The ticket's subject as recorded when QueryPal responded; None when that response recorded no ticket"}},"type":"object","required":["assessment_id","request_id","received_at","ticket_display_id","ticket_subject"],"title":"ProblemMiss"},"ProblemPosition":{"properties":{"rank":{"type":"integer","title":"Rank","description":"Its place among the open problems, 1 first, in the overview's order"},"open_count":{"type":"integer","title":"Open Count","description":"How many problems are open"}},"type":"object","required":["rank","open_count"],"title":"ProblemPosition"},"ProblemStatusChange":{"properties":{"problem_id":{"type":"string","title":"Problem Id"},"at":{"type":"string","format":"date-time","title":"At","description":"When it moved: the problem's updated_at for that write"},"by":{"oneOf":[{"$ref":"#/components/schemas/UserAuthor"},{"$ref":"#/components/schemas/SystemAuthor"}],"title":"By","discriminator":{"propertyName":"kind","mapping":{"system":"#/components/schemas/SystemAuthor","user":"#/components/schemas/UserAuthor"}}},"from_status":{"anyOf":[{"type":"string","enum":["open","watching","fixed","dismissed","expired"]},{"type":"null"}],"title":"From Status","description":"The status it left; None on creation"},"to_status":{"type":"string","enum":["open","watching","fixed","dismissed","expired"],"title":"To Status"},"reason":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Reason","description":"Why it was dismissed; only a dismissal carries one"}},"type":"object","required":["problem_id","at","by","from_status","to_status","reason"],"title":"ProblemStatusChange"},"ProcessDriver":{"type":"string","enum":["instructions","guidelines","feedback","prior_tickets","documentation","unknown","n/a"],"title":"ProcessDriver"},"ProposeInstructionsResponse":{"properties":{"bot_id":{"type":"string","title":"Bot Id"},"bot_version":{"type":"integer","title":"Bot Version"},"current_instructions":{"type":"string","title":"Current Instructions"},"proposed_instructions":{"type":"string","title":"Proposed Instructions"}},"type":"object","required":["bot_id","bot_version","current_instructions","proposed_instructions"],"title":"ProposeInstructionsResponse"},"PublishBotRequest":{"properties":{"bot_id":{"type":"string","title":"Bot Id"},"version_id":{"type":"string","title":"Version Id"}},"type":"object","required":["bot_id","version_id"],"title":"PublishBotRequest"},"QualityOverview":{"properties":{"match_rate":{"anyOf":[{"type":"number"},{"type":"null"}],"title":"Match Rate","description":"The mean entailment score of the scored comparisons about requests received in the range. None when none is scored"},"previous_match_rate":{"anyOf":[{"type":"number"},{"type":"null"}],"title":"Previous Match Rate","description":"The mean entailment score over the same length of time immediately before the range"},"tickets_drafted":{"type":"integer","title":"Tickets Drafted","description":"Distinct tickets QueryPal responded on for requests received in the range"},"problems":{"$ref":"#/components/schemas/ProblemCounts"},"daily":{"items":{"$ref":"#/components/schemas/DayCounts"},"type":"array","title":"Daily","description":"Every UTC day the range touches, oldest first"},"by_cause":{"additionalProperties":{"type":"integer"},"propertyNames":{"$ref":"#/components/schemas/DifferenceCause"},"type":"object","title":"By Cause","description":"Current differences about requests received in the range, per cause, omitting zeroes"},"top_problems":{"items":{"$ref":"#/components/schemas/TopProblem"},"type":"array","title":"Top Problems","description":"Every open problem, most tickets first"},"one_offs_count":{"type":"integer","title":"One Offs Count","description":"Current differences about requests received in the range no live problem holds"}},"type":"object","required":["match_rate","previous_match_rate","tickets_drafted","problems","daily","by_cause","top_problems","one_offs_count"],"title":"QualityOverview"},"QueryPalFormAction":{"properties":{"name":{"type":"string","title":"Name"},"description":{"type":"string","title":"Description"},"tenant_id":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Tenant Id"},"requires_approval":{"anyOf":[{"type":"boolean"},{"type":"null"}],"title":"Requires Approval"},"action_id":{"type":"string","title":"Action Id","default":""},"version":{"type":"integer","title":"Version","default":0},"created_at":{"type":"integer","title":"Created At"},"modified_at":{"type":"integer","title":"Modified At"},"action_type":{"type":"string","const":"form_action","title":"Action Type","default":"form_action"},"form_source":{"type":"string","const":"querypal","title":"Form Source"},"form_definition":{"$ref":"#/components/schemas/Form-Input"},"target_url":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Target Url","description":"The URL to submit the form to"}},"type":"object","required":["name","description","form_source","form_definition"],"title":"QueryPalFormAction"},"QueryPalResponse":{"properties":{"element_type":{"type":"string","const":"querypal_response","title":"Element Type","default":"querypal_response"},"comment_id":{"type":"string","title":"Comment Id"},"comment_created_at":{"type":"integer","title":"Comment Created At"},"public":{"type":"boolean","title":"Public"},"text":{"type":"string","title":"Text"},"score":{"anyOf":[{"type":"number"},{"type":"null"}],"title":"Score"},"score_bucket":{"$ref":"#/components/schemas/ScoreBucket"},"score_type":{"$ref":"#/components/schemas/ScoreType"},"scorable":{"anyOf":[{"type":"boolean"},{"type":"null"}],"title":"Scorable"},"disqualified":{"type":"boolean","title":"Disqualified","default":false},"disqualified_reason":{"anyOf":[{"$ref":"#/components/schemas/DisqualifiedReason"},{"type":"null"}]},"bot_id":{"type":"string","title":"Bot Id"},"bot_version":{"type":"integer","title":"Bot Version"},"bot_name":{"type":"string","title":"Bot Name"},"bot_avatar_slug":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Bot Avatar Slug"},"bot_avatar_path":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Bot Avatar Path"},"request_id":{"type":"string","title":"Request Id"},"session_id":{"type":"string","title":"Session Id"},"continuation_chat_enabled":{"type":"boolean","title":"Continuation Chat Enabled"},"scoring_details":{"anyOf":[{"$ref":"#/components/schemas/ScoringDetails"},{"type":"null"}]}},"type":"object","required":["comment_id","comment_created_at","public","text","score","score_bucket","score_type","scorable","bot_id","bot_version","bot_name","bot_avatar_slug","bot_avatar_path","request_id","session_id","continuation_chat_enabled","scoring_details"],"title":"QueryPalResponse"},"RatingPayload":{"properties":{"rating":{"type":"integer","title":"Rating"},"request_id":{"type":"string","title":"Request Id"},"comment":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Comment"},"issue_tags":{"items":{"$ref":"#/components/schemas/FeedbackIssue"},"type":"array","title":"Issue Tags"},"issue_details":{"additionalProperties":{"additionalProperties":{"type":"string"},"type":"object"},"propertyNames":{"$ref":"#/components/schemas/FeedbackIssue"},"type":"object","title":"Issue Details"}},"type":"object","required":["rating","request_id"],"title":"RatingPayload"},"Reference":{"properties":{"kb_name":{"type":"string","title":"Kb Name"},"link":{"type":"string","title":"Link"},"title":{"type":"string","title":"Title"},"ts":{"anyOf":[{"type":"number"},{"type":"null"}],"title":"Ts"}},"type":"object","required":["kb_name","link","title"],"title":"Reference"},"ReferenceLink":{"properties":{"link":{"type":"string","title":"Link","description":"The URL of the reference"},"title":{"type":"string","title":"Title","description":"A human-readable title of the reference"},"ts":{"anyOf":[{"type":"number"},{"type":"null"}],"title":"Ts","description":"Last modified timestamp of the reference"},"restricted":{"anyOf":[{"type":"boolean"},{"type":"null"}],"title":"Restricted","description":"Whether the reference is restricted, i.e. not accessible to all users in the organization"},"kb_name":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Kb Name","description":"The name of the knowledge base that the reference belongs to"},"config_id":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Config Id","description":"The identifier of the knowledge source"},"snippet":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Snippet","description":"A snippet of the reference content"},"public":{"anyOf":[{"type":"boolean"},{"type":"null"}],"title":"Public","description":"Whether the reference is a publicly accessible resource"},"score":{"anyOf":[{"type":"number"},{"type":"null"}],"title":"Score","description":"Score for the reference relevance"},"description":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Description","description":"Description of the reference"}},"type":"object","required":["link","title"],"title":"ReferenceLink","description":"    \n    "},"ReindexRequest":{"properties":{"file_ids":{"anyOf":[{"items":{"type":"string"},"type":"array"},{"type":"null"}],"title":"File Ids"},"websites":{"anyOf":[{"items":{"type":"string"},"type":"array"},{"type":"null"}],"title":"Websites"}},"type":"object","title":"ReindexRequest"},"ReportExportResponse":{"properties":{"id":{"type":"string","title":"Id"},"params":{"oneOf":[{"$ref":"#/components/schemas/UsageReportParams"},{"$ref":"#/components/schemas/AgentFeedbackParams"},{"$ref":"#/components/schemas/AnswerSummaryParams"},{"$ref":"#/components/schemas/BotSessionsParams"},{"$ref":"#/components/schemas/TriageReportParams"},{"$ref":"#/components/schemas/InterceptResponsesParams"},{"$ref":"#/components/schemas/SemanticDecorationsParams"}],"title":"Params","discriminator":{"propertyName":"kind","mapping":{"agent_feedback":"#/components/schemas/AgentFeedbackParams","answer_summary":"#/components/schemas/AnswerSummaryParams","bot_sessions":"#/components/schemas/BotSessionsParams","intercept_responses":"#/components/schemas/InterceptResponsesParams","semantic_decorations":"#/components/schemas/SemanticDecorationsParams","triage":"#/components/schemas/TriageReportParams","usage":"#/components/schemas/UsageReportParams"}}},"status":{"$ref":"#/components/schemas/ReportExportStatus"},"error":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Error"},"filename":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Filename"},"created_at":{"type":"string","format":"date-time","title":"Created At"}},"type":"object","required":["id","params","status","error","filename","created_at"],"title":"ReportExportResponse"},"ReportExportStatus":{"type":"string","enum":["pending","running","succeeded","no_data","failed"],"title":"ReportExportStatus"},"ResetRequest":{"properties":{"session_id":{"type":"string","title":"Session Id"}},"type":"object","required":["session_id"],"title":"ResetRequest"},"ResolvedTicketRoute":{"properties":{"config_id":{"type":"string","title":"Config Id"},"bot_id":{"type":"string","title":"Bot Id"},"display_id":{"type":"string","title":"Display Id"},"primary_session_id":{"type":"string","title":"Primary Session Id"}},"type":"object","required":["config_id","bot_id","display_id","primary_session_id"],"title":"ResolvedTicketRoute"},"ResolverConfigResponse":{"properties":{"url":{"type":"string","title":"Url"},"response_content_selector":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Response Content Selector"},"cache_enabled":{"type":"boolean","title":"Cache Enabled","default":false},"cache_ttl_seconds":{"anyOf":[{"type":"integer"},{"type":"null"}],"title":"Cache Ttl Seconds"}},"type":"object","required":["url"],"title":"ResolverConfigResponse"},"ResponseApprover":{"properties":{"user_id":{"type":"string","title":"User Id"},"user_name":{"type":"string","title":"User Name"}},"type":"object","required":["user_id","user_name"],"title":"ResponseApprover"},"ResponseInspection":{"properties":{"request_id":{"type":"string","title":"Request Id"},"messages":{"items":{"additionalProperties":true,"type":"object"},"type":"array","title":"Messages","description":"The turn's messages in full fidelity (to_full_dict), so retrieval, sub-agent and web-search detail survive. Left untyped: the message union has 28 members plus an unknown-message fallback, and admin-fe already carries the discriminated union."},"assessments":{"items":{"$ref":"#/components/schemas/Assessment"},"type":"array","title":"Assessments","description":"The current assessment of each of this response's comparisons; empty means quality analysis has never run for it"},"problems":{"items":{"$ref":"#/components/schemas/Problem"},"type":"array","title":"Problems","description":"Problems referencing any of this response's assessments, any status"},"groupings":{"items":{"$ref":"#/components/schemas/AssessmentGrouping"},"type":"array","title":"Groupings","description":"One entry per (assessment, problem) pair, so an assessment clustered under two problems reports both. Assessments under no problem are simply absent"}},"type":"object","required":["request_id","messages","assessments","problems"],"title":"ResponseInspection","description":"    \n    \n    \n    \n    \n    "},"ResponsePolicy":{"properties":{"allow_drafts":{"type":"boolean","title":"Allow Drafts","default":false},"allow_deflection":{"type":"boolean","title":"Allow Deflection","default":false},"per_topic_behavior_enabled":{"type":"boolean","title":"Per Topic Behavior Enabled","default":false},"topics":{"items":{"$ref":"#/components/schemas/BotTopic"},"type":"array","title":"Topics"},"discard_response_if_agent_review_needed":{"type":"boolean","title":"Discard Response If Agent Review Needed","default":false}},"type":"object","title":"ResponsePolicy"},"RestoreArtifactRequest":{"properties":{"expected_version":{"type":"integer","title":"Expected Version"}},"type":"object","required":["expected_version"],"title":"RestoreArtifactRequest"},"RetrievedButMisusedDetails":{"properties":{"kind":{"type":"string","const":"retrieved_but_misused","title":"Kind","default":"retrieved_but_misused"},"fact":{"type":"string","maxLength":2000,"title":"Fact","description":"The fact QueryPal had in front of it, stated as the fact itself."},"found_in":{"$ref":"#/components/schemas/EvidenceRef"},"divergence":{"$ref":"#/components/schemas/Divergence"}},"type":"object","required":["fact","found_in","divergence"],"title":"RetrievedButMisusedDetails"},"ReviewProblemPayload":{"properties":{"status":{"type":"string","enum":["open","dismissed"],"title":"Status","description":"dismissed to dismiss an open problem, open to reopen a dismissed or expired one"},"reason":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Reason","description":"Why it is not a problem: required to dismiss, refused otherwise"}},"type":"object","required":["status"],"title":"ReviewProblemPayload"},"RunActionRequest":{"properties":{"url_name":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Url Name"},"confirm_overwrite_draft":{"type":"boolean","title":"Confirm Overwrite Draft","default":false}},"type":"object","title":"RunActionRequest"},"RunActionResponse":{"properties":{"sync":{"anyOf":[{"$ref":"#/components/schemas/SyncStatus"},{"type":"null"}]},"draft_conflict":{"anyOf":[{"$ref":"#/components/schemas/DraftConflict"},{"type":"null"}]},"url_name_prompt":{"anyOf":[{"$ref":"#/components/schemas/UrlNamePrompt"},{"type":"null"}]},"case_link":{"anyOf":[{"$ref":"#/components/schemas/CaseLink"},{"type":"null"}]}},"type":"object","title":"RunActionResponse"},"RunEvaluationsRequest":{"properties":{"evaluation_ids":{"items":{"type":"string"},"type":"array","title":"Evaluation Ids"},"bot_id":{"type":"string","title":"Bot Id"},"bot_version":{"type":"integer","title":"Bot Version"},"run_mode":{"type":"string","enum":["unexecuted_only","all"],"title":"Run Mode"}},"type":"object","required":["evaluation_ids","bot_id","bot_version","run_mode"],"title":"RunEvaluationsRequest"},"SAMLACSPayload":{"properties":{"SAMLResponse":{"type":"string","title":"Samlresponse"},"RelayState":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Relaystate"}},"type":"object","required":["SAMLResponse"],"title":"SAMLACSPayload"},"SalesforceBotSettings":{"properties":{"deflection_sender_address":{"type":"string","title":"Deflection Sender Address"},"deflection_thread_token_in_subject":{"type":"boolean","title":"Deflection Thread Token In Subject"},"deflection_thread_token_in_body":{"type":"boolean","title":"Deflection Thread Token In Body"},"deflection_channel_by_origin":{"additionalProperties":{"type":"string","enum":["email","public_comment","none"]},"type":"object","title":"Deflection Channel By Origin"},"deflection_channel_without_origin":{"type":"string","enum":["email","public_comment","none"],"title":"Deflection Channel Without Origin"}},"type":"object","title":"SalesforceBotSettings"},"SalesforceIntegrationSetting":{"properties":{"boost":{"type":"string","title":"Boost"},"type":{"type":"string","const":"salesforce","title":"Type"},"articles_created_after":{"type":"string","title":"Articles Created After"},"articles_updated_after":{"type":"string","title":"Articles Updated After"},"cases_created_after":{"type":"string","title":"Cases Created After"},"cases_updated_after":{"type":"string","title":"Cases Updated After"}},"type":"object","required":["type"],"title":"SalesforceIntegrationSetting"},"SalesforceKnowledgeArtifactType":{"properties":{"type_id":{"type":"string","minLength":1,"title":"Type Id"},"name":{"type":"string","title":"Name"},"description":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Description"},"kind":{"type":"string","const":"salesforce_knowledge","title":"Kind","default":"salesforce_knowledge"},"salesforce_config_id":{"type":"string","minLength":1,"title":"Salesforce Config Id"},"record_type":{"type":"string","minLength":1,"title":"Record Type"},"auto_link_to_case":{"type":"boolean","title":"Auto Link To Case","default":false}},"type":"object","required":["type_id","name","salesforce_config_id","record_type"],"title":"SalesforceKnowledgeArtifactType","description":"    \n    "},"SalesforceKnowledgeRecordTypesRequest":{"properties":{"config_id":{"type":"string","title":"Config Id"}},"type":"object","required":["config_id"],"title":"SalesforceKnowledgeRecordTypesRequest"},"SalesforceRecordTypesRequest":{"properties":{"config_id":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Config Id"},"instance_url":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Instance Url"},"client_id":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Client Id"},"client_secret":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Client Secret"}},"type":"object","title":"SalesforceRecordTypesRequest"},"ScorabilityCategory":{"properties":{"name":{"type":"string","title":"Name"},"description":{"type":"string","title":"Description"},"is_scorable":{"type":"boolean","title":"Is Scorable","default":false}},"type":"object","required":["name","description"],"title":"ScorabilityCategory"},"ScorabilityPolicy":{"properties":{"enabled":{"type":"boolean","title":"Enabled","default":false},"categories":{"items":{"$ref":"#/components/schemas/ScorabilityCategory"},"type":"array","title":"Categories"}},"type":"object","title":"ScorabilityPolicy","description":"    \n    \n    "},"ScoreBucket":{"type":"string","enum":["low","medium","high","unscored"]},"ScoreType":{"type":"string","const":"entailment"},"ScoringDetails":{"properties":{"method":{"type":"string","title":"Method"},"human_agent_response":{"type":"string","title":"Human Agent Response"},"qp_statements":{"items":{"type":"string"},"type":"array","title":"Qp Statements"},"agent_statements":{"items":{"type":"string"},"type":"array","title":"Agent Statements"},"per_statement_scores":{"items":{"additionalProperties":true,"type":"object"},"type":"array","title":"Per Statement Scores"}},"type":"object","required":["method","human_agent_response","qp_statements","agent_statements","per_statement_scores"],"title":"ScoringDetails"},"SearchFailureDetails":{"properties":{"kind":{"type":"string","const":"search_failure","title":"Kind","default":"search_failure"},"fact_not_retrieved":{"type":"string","maxLength":2000,"title":"Fact Not Retrieved","description":"The fact your search found and QueryPal's never retrieved, stated as the fact itself."},"queries_querypal_ran":{"items":{"type":"string","maxLength":400},"type":"array","title":"Queries Querypal Ran"},"found_in":{"$ref":"#/components/schemas/SearchHitRef"}},"type":"object","required":["fact_not_retrieved","found_in"],"title":"SearchFailureDetails"},"SearchHitRef":{"properties":{"search":{"type":"integer","title":"Search","description":"The n of the [search n result m] label of the result that states the fact"},"hit":{"type":"integer","title":"Hit","description":"The m of that label"},"passage":{"type":"string","maxLength":2000,"title":"Passage","description":"The words in that result's text that state the fact, copied exactly"},"tool":{"type":"string","enum":["internal","web"],"title":"Tool"},"query":{"type":"string","title":"Query"},"title":{"type":"string","title":"Title"},"link":{"type":"string","title":"Link","default":""}},"type":"object","required":["search","hit","passage","tool","query","title"],"title":"SearchHitRef","description":"    \n    \n    \n    \n    "},"SearchOutcome":{"type":"string","enum":["hits","empty","unavailable"],"title":"SearchOutcome","description":"    \n    \n    \n    \n    "},"SearchRequest":{"properties":{"config_id":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Config Id","description":"Integration config identifier"},"start_ts":{"type":"integer","title":"Start Ts","description":"Start boundary (epoch seconds) of the time window being queried"},"end_ts":{"type":"integer","title":"End Ts","description":"End boundary (epoch seconds) of the time window being queried"},"filters":{"additionalProperties":{"type":"string"},"type":"object","title":"Filters","description":"Filters associated with the query"},"limit":{"type":"integer","maximum":10000.0,"title":"Limit","description":"Maximum number of results to return (max 10000)","default":10000}},"type":"object","required":["start_ts","end_ts"],"title":"SearchRequest","description":"    \n    "},"SearchResponse":{"properties":{"result":{"items":{"$ref":"#/components/schemas/SemanticDecorationResult"},"type":"array","title":"Result","description":"The search results"},"limit":{"type":"integer","title":"Limit","description":"The maximum number of results to return"}},"type":"object","required":["result","limit"],"title":"SearchResponse","description":"    \n    "},"SearchableDocument":{"properties":{"id":{"type":"string","title":"Id"},"filename":{"type":"string","title":"Filename"}},"type":"object","required":["id","filename"],"title":"SearchableDocument"},"SearchableWebsite":{"properties":{"id":{"type":"string","title":"Id"},"url":{"type":"string","title":"Url"},"url_allowlist_regex":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Url Allowlist Regex"}},"type":"object","required":["id","url"],"title":"SearchableWebsite"},"SecretResolverConfig":{"properties":{"url":{"type":"string","title":"Url"},"body":{"type":"string","format":"password","title":"Body","writeOnly":true},"response_content_selector":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Response Content Selector"},"cache_enabled":{"type":"boolean","title":"Cache Enabled","default":false},"cache_ttl_seconds":{"anyOf":[{"type":"integer"},{"type":"null"}],"title":"Cache Ttl Seconds"}},"type":"object","required":["url","body"],"title":"SecretResolverConfig","description":"    \n    "},"SemanticDecorationResult":{"properties":{"config_id":{"type":"string","title":"Config Id"},"source_doc":{"$ref":"#/components/schemas/SemanticDecorationSourceDoc"},"computed_fields":{"additionalProperties":true,"type":"object","title":"Computed Fields"},"metadata_fields":{"additionalProperties":{"type":"string"},"type":"object","title":"Metadata Fields","description":"Helpdesk metadata fields available as treemap dimensions"}},"type":"object","required":["config_id","source_doc","computed_fields"],"title":"SemanticDecorationResult"},"SemanticDecorationSourceDoc":{"properties":{"id":{"type":"string","title":"Id"},"display_id":{"type":"string","title":"Display Id"},"created_at":{"anyOf":[{"type":"number"},{"type":"string"}],"title":"Created At"},"title":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Title"},"url":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Url"}},"type":"object","required":["id","display_id","created_at","title","url"],"title":"SemanticDecorationSourceDoc"},"SemanticDecorationsParams":{"properties":{"kind":{"type":"string","const":"semantic_decorations","title":"Kind","default":"semantic_decorations"},"start_ts":{"type":"integer","title":"Start Ts"},"end_ts":{"type":"integer","title":"End Ts"},"config_id":{"type":"string","title":"Config Id","default":""}},"type":"object","required":["start_ts","end_ts"],"title":"SemanticDecorationsParams"},"ServiceNowNewIntegrationOauthRequest":{"properties":{"code":{"type":"string","title":"Code"},"verifier":{"type":"string","title":"Verifier"},"instance_url":{"type":"string","title":"Instance Url"},"client_id":{"type":"string","title":"Client Id"},"client_secret":{"type":"string","title":"Client Secret"},"config_id":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Config Id"}},"type":"object","required":["code","verifier","instance_url","client_id","client_secret"],"title":"ServiceNowNewIntegrationOauthRequest"},"ServiceNowTicketPayload":{"properties":{"description":{"type":"string","title":"Description"},"short_description":{"type":"string","title":"Short Description"},"sys_id":{"type":"string","title":"Sys Id"},"sys_created_on":{"type":"string","title":"Sys Created On"},"sys_updated_on":{"type":"string","title":"Sys Updated On"},"state":{"type":"string","title":"State"},"incident_id":{"type":"string","title":"Incident Id"},"bot_id":{"type":"string","title":"Bot Id"},"priority":{"type":"integer","title":"Priority"}},"type":"object","required":["description","short_description","sys_id","sys_created_on","sys_updated_on","state","incident_id","bot_id","priority"],"title":"ServiceNowTicketPayload"},"SetIdentityProviderRequest":{"properties":{"identity_provider":{"type":"string","const":"slack","title":"Identity Provider"}},"type":"object","required":["identity_provider"],"title":"SetIdentityProviderRequest"},"SetupPayload":{"properties":{"post_comment_webhook_url":{"type":"string","title":"Post Comment Webhook Url"},"configure_webhook_url":{"type":"string","title":"Configure Webhook Url"},"site_url":{"type":"string","title":"Site Url"}},"type":"object","required":["post_comment_webhook_url","configure_webhook_url","site_url"],"title":"SetupPayload"},"SlackAuthResponse":{"properties":{"token":{"type":"string","title":"Token"},"origin":{"type":"string","title":"Origin","default":"slack"}},"type":"object","required":["token"],"title":"SlackAuthResponse"},"SlackIntegrationSetting":{"properties":{"boost":{"type":"string","title":"Boost"},"type":{"type":"string","const":"slack","title":"Type"},"searchable_channels":{"items":{"$ref":"#/components/schemas/SlackSearchableChannel"},"type":"array","title":"Searchable Channels"},"search_all_channels":{"type":"boolean","title":"Search All Channels"}},"type":"object","required":["type","searchable_channels"],"title":"SlackIntegrationSetting"},"SlackIntegrationUser":{"properties":{"tenant_id":{"type":"string","title":"Tenant Id"},"integration_id":{"type":"string","title":"Integration Id"},"display_name":{"type":"string","title":"Display Name"},"real_name":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Real Name"},"id":{"type":"string","title":"Id"},"team_id":{"type":"string","title":"Team Id"},"email":{"type":"string","title":"Email"}},"type":"object","required":["tenant_id","integration_id","display_name","real_name","id","team_id","email"],"title":"SlackIntegrationUser"},"SlackSearchableChannel":{"properties":{"team_id":{"type":"string","title":"Team Id"},"channel_id":{"type":"string","title":"Channel Id"},"channel_name":{"type":"string","title":"Channel Name"},"is_private":{"type":"boolean","title":"Is Private"}},"type":"object","required":["team_id","channel_id","channel_name"],"title":"SlackSearchableChannel"},"StartFixCheckPayload":{"properties":{"run_request_id":{"type":"string","title":"Run Request Id","description":"The live-test request whose answer is checked"}},"type":"object","required":["run_request_id"],"title":"StartFixCheckPayload"},"StartSessionRequest":{"properties":{"tenant_id":{"type":"string","title":"Tenant Id"},"bot_id":{"type":"string","title":"Bot Id"}},"type":"object","required":["tenant_id","bot_id"],"title":"StartSessionRequest"},"Statement":{"properties":{"statement":{"type":"string","title":"Statement"},"is_entailed":{"type":"boolean","title":"Is Entailed"},"reasoning":{"type":"string","title":"Reasoning"}},"type":"object","required":["statement","is_entailed","reasoning"],"title":"Statement"},"StoreFaqRequest":{"properties":{"faq_content":{"type":"string","title":"Faq Content"},"ticket_id":{"type":"string","title":"Ticket Id"},"config_id":{"type":"string","title":"Config Id"},"title":{"type":"string","title":"Title"},"metadata":{"additionalProperties":true,"type":"object","title":"Metadata"}},"type":"object","required":["faq_content","ticket_id","config_id"],"title":"StoreFaqRequest"},"StoreFaqResponse":{"properties":{"success":{"type":"boolean","title":"Success"},"message":{"type":"string","title":"Message"},"ticket_id":{"type":"string","title":"Ticket Id"}},"type":"object","required":["success","message"],"title":"StoreFaqResponse"},"StoreRunbookRequest":{"properties":{"content":{"type":"string","title":"Content"},"name":{"type":"string","title":"Name"},"runbook_id":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Runbook Id"}},"type":"object","required":["content","name"],"title":"StoreRunbookRequest"},"StoredFaqListItem":{"properties":{"id":{"type":"string","title":"Id","default":""},"title":{"type":"string","title":"Title","default":"FAQ from Ticket"},"content":{"type":"string","title":"Content","default":""},"created_at":{"type":"integer","title":"Created At","default":0},"friendly_id":{"type":"string","title":"Friendly Id","default":""},"ticket_url":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Ticket Url"},"config_id":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Config Id"},"ticket_id":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Ticket Id"}},"type":"object","title":"StoredFaqListItem"},"SubmitFeedbackPayload":{"properties":{"user_id":{"type":"string","title":"User Id"},"comment":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Comment"},"vote":{"type":"string","enum":["yes","no"],"title":"Vote"}},"type":"object","required":["user_id","comment","vote"],"title":"SubmitFeedbackPayload"},"SubmitRatingPayload":{"properties":{"user_id":{"type":"string","title":"User Id"},"comment":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Comment"},"rating":{"type":"integer","title":"Rating"},"issue_tags":{"items":{"$ref":"#/components/schemas/FeedbackIssue"},"type":"array","title":"Issue Tags"},"issue_details":{"additionalProperties":{"additionalProperties":{"type":"string"},"type":"object"},"propertyNames":{"$ref":"#/components/schemas/FeedbackIssue"},"type":"object","title":"Issue Details"},"rating_only":{"type":"boolean","title":"Rating Only","default":false}},"type":"object","required":["user_id","comment","rating"],"title":"SubmitRatingPayload"},"SyncStatus":{"properties":{"provider":{"type":"string","const":"salesforce_knowledge","title":"Provider"},"status":{"type":"string","enum":["pending","synced","failed"],"title":"Status"},"external_id":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"External Id"},"url":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Url"},"version_synced":{"anyOf":[{"type":"integer"},{"type":"null"}],"title":"Version Synced"},"external_last_modified":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"External Last Modified"},"error":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Error"},"updated_at":{"type":"integer","title":"Updated At"}},"type":"object","required":["provider","status"],"title":"SyncStatus","description":"    \n    \n    "},"SystemAuthor":{"properties":{"kind":{"type":"string","const":"system","title":"Kind","default":"system"},"component":{"type":"string","title":"Component"}},"type":"object","required":["component"],"title":"SystemAuthor","description":"    "},"TaggingSettingsRequest":{"properties":{"enabled":{"type":"boolean","title":"Enabled","description":"Whether ticket tagging is enabled"},"tag_name":{"type":"string","maxLength":50,"minLength":1,"title":"Tag Name","description":"Tag name to apply to tickets"}},"type":"object","required":["enabled","tag_name"],"title":"TaggingSettingsRequest"},"TaggingSettingsResponse":{"properties":{"enabled":{"type":"boolean","title":"Enabled"},"tag_name":{"type":"string","title":"Tag Name"},"created_at":{"type":"number","title":"Created At"},"updated_at":{"type":"number","title":"Updated At"}},"type":"object","required":["enabled","tag_name","created_at","updated_at"],"title":"TaggingSettingsResponse"},"TestActionResult":{"properties":{"success":{"type":"boolean","title":"Success"},"status_code":{"anyOf":[{"type":"integer"},{"type":"null"}],"title":"Status Code"},"response_body":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Response Body"},"error_message":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Error Message"},"execution_mode":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Execution Mode"}},"type":"object","required":["success"],"title":"TestActionResult"},"TestBotActionRequest":{"properties":{"action":{"$ref":"#/components/schemas/HTTPAPIAction"},"variable_values":{"additionalProperties":{"type":"string"},"type":"object","title":"Variable Values"}},"type":"object","required":["action"],"title":"TestBotActionRequest"},"TestFilterPayload":{"properties":{"regex":{"type":"string","title":"Regex","description":"Regex to test"}},"type":"object","required":["regex"],"title":"TestFilterPayload"},"TestSecretResolutionRequest":{"properties":{"use_cache":{"type":"boolean","title":"Use Cache","default":false}},"type":"object","title":"TestSecretResolutionRequest"},"TestSecretResolutionResponse":{"properties":{"success":{"type":"boolean","title":"Success"},"status_code":{"anyOf":[{"type":"integer"},{"type":"null"}],"title":"Status Code"},"error_message":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Error Message"},"used_cache":{"type":"boolean","title":"Used Cache","default":false},"cache_status":{"$ref":"#/components/schemas/CacheStatusResponse"}},"type":"object","required":["success","cache_status"],"title":"TestSecretResolutionResponse"},"TextArtifactType":{"properties":{"type_id":{"type":"string","minLength":1,"title":"Type Id"},"name":{"type":"string","title":"Name"},"description":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Description"},"kind":{"type":"string","const":"text","title":"Kind","default":"text"}},"type":"object","required":["type_id","name"],"title":"TextArtifactType","description":"    "},"TicketAssessment":{"properties":{"assessment_id":{"type":"string","title":"Assessment Id"},"request_id":{"type":"string","title":"Request Id"},"agent_comment_id":{"type":"string","title":"Agent Comment Id","description":"The agent reply the draft was judged against"},"received_at":{"type":"string","format":"date-time","title":"Received At","description":"When the request was received"},"headline":{"type":"string","title":"Headline"},"result":{"oneOf":[{"$ref":"#/components/schemas/TicketDifference"},{"$ref":"#/components/schemas/TicketNoDifference"}],"title":"Result","description":"The difference's cause, or why there was none","discriminator":{"propertyName":"kind","mapping":{"difference":"#/components/schemas/TicketDifference","no_difference":"#/components/schemas/TicketNoDifference"}}}},"type":"object","required":["assessment_id","request_id","agent_comment_id","received_at","headline","result"],"title":"TicketAssessment"},"TicketChatSession":{"properties":{"session_id":{"type":"string","title":"Session Id"}},"type":"object","required":["session_id"],"title":"TicketChatSession"},"TicketComment":{"properties":{"id":{"type":"string","title":"Id"},"author_type":{"type":"string","enum":["user","agent"],"title":"Author Type"},"author_name":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Author Name"},"content":{"type":"string","title":"Content"},"timestamp":{"type":"integer","title":"Timestamp"}},"type":"object","required":["id","author_type","content","timestamp"],"title":"TicketComment"},"TicketCommentRef":{"properties":{"helpdesk_config_id":{"type":"string","title":"Helpdesk Config Id"},"ticket_id":{"type":"string","title":"Ticket Id"},"ticket_display_id":{"type":"string","title":"Ticket Display Id","description":"The human-facing ticket number, for linking into the Tickets UI"},"ticket_subject":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Ticket Subject","description":"The ticket's subject when the comparison was assessed; None if the ticket could not be read"},"comment_id":{"type":"string","title":"Comment Id"}},"type":"object","required":["helpdesk_config_id","ticket_id","ticket_display_id","ticket_subject","comment_id"],"title":"TicketCommentRef"},"TicketCommentResponse":{"properties":{"element_type":{"type":"string","const":"comment","title":"Element Type","default":"comment"},"id":{"type":"string","title":"Id"},"text":{"type":"string","title":"Text"},"author_type":{"type":"string","enum":["user","agent"],"title":"Author Type"},"author_name":{"type":"string","title":"Author Name"},"public":{"type":"boolean","title":"Public"},"created_at":{"type":"integer","title":"Created At"},"modified_at":{"type":"integer","title":"Modified At"},"attachments":{"items":{"$ref":"#/components/schemas/AttachmentItem"},"type":"array","title":"Attachments"}},"type":"object","required":["id","text","author_type","author_name","public","created_at","modified_at"],"title":"TicketCommentResponse"},"TicketContextResponse":{"properties":{"ticket":{"anyOf":[{"$ref":"#/components/schemas/TicketSummary"},{"type":"null"}]},"bot_id":{"type":"string","title":"Bot Id"},"bot_name":{"type":"string","title":"Bot Name"},"bot_avatar_url":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Bot Avatar Url"},"continuation_enabled":{"type":"boolean","title":"Continuation Enabled"},"trigger_enabled":{"type":"boolean","title":"Trigger Enabled"},"primary_session_id":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Primary Session Id"}},"type":"object","required":["ticket","bot_id","bot_name","bot_avatar_url","continuation_enabled","trigger_enabled","primary_session_id"],"title":"TicketContextResponse"},"TicketDetail":{"properties":{"id":{"type":"string","title":"Id"},"display_id":{"type":"string","title":"Display Id"},"url":{"type":"string","title":"Url"},"subject":{"type":"string","title":"Subject"},"topic":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Topic"},"created_at":{"type":"integer","title":"Created At"},"modified_at":{"type":"integer","title":"Modified At"},"requester_name":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Requester Name"},"requester_email":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Requester Email"},"querypal_responded":{"type":"boolean","title":"Querypal Responded"},"avg_score":{"anyOf":[{"type":"number"},{"type":"null"}],"title":"Avg Score"},"avg_score_bucket":{"$ref":"#/components/schemas/ScoreBucket"},"score_type":{"$ref":"#/components/schemas/ScoreType"},"description":{"type":"string","title":"Description"},"ticket_attachments":{"items":{"$ref":"#/components/schemas/AttachmentItem"},"type":"array","title":"Ticket Attachments"},"extra":{"additionalProperties":true,"type":"object","title":"Extra"},"timeline":{"items":{"oneOf":[{"$ref":"#/components/schemas/TicketCommentResponse"},{"$ref":"#/components/schemas/QueryPalResponse"},{"$ref":"#/components/schemas/TicketEventResponse"}],"discriminator":{"propertyName":"element_type","mapping":{"comment":"#/components/schemas/TicketCommentResponse","querypal_event":"#/components/schemas/TicketEventResponse","querypal_response":"#/components/schemas/QueryPalResponse"}}},"type":"array","title":"Timeline"}},"type":"object","required":["id","display_id","url","subject","topic","created_at","modified_at","requester_name","requester_email","querypal_responded","avg_score","avg_score_bucket","score_type","description","timeline"],"title":"TicketDetail"},"TicketDifference":{"properties":{"kind":{"type":"string","const":"difference","title":"Kind","default":"difference"},"cause":{"$ref":"#/components/schemas/DifferenceCause"}},"type":"object","required":["cause"],"title":"TicketDifference"},"TicketEventResponse":{"properties":{"element_type":{"type":"string","const":"querypal_event","title":"Element Type","default":"querypal_event"},"id":{"type":"string","title":"Id"},"created_at":{"type":"integer","title":"Created At"},"triggered_by":{"type":"string","enum":["ticket_created","user_comment"],"title":"Triggered By"},"outcome":{"type":"string","enum":["declined","technical_error"],"title":"Outcome"},"reason":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Reason"},"bot_id":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Bot Id"},"bot_version":{"anyOf":[{"type":"integer"},{"type":"null"}],"title":"Bot Version"},"bot_name":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Bot Name"}},"type":"object","required":["id","created_at","triggered_by","outcome","reason","bot_id","bot_version","bot_name"],"title":"TicketEventResponse"},"TicketNoDifference":{"properties":{"kind":{"type":"string","const":"no_difference","title":"Kind","default":"no_difference"},"reason":{"$ref":"#/components/schemas/NoDifferenceReason"}},"type":"object","required":["reason"],"title":"TicketNoDifference"},"TicketPayload":{"properties":{"custom":{"anyOf":[{"additionalProperties":true,"type":"object"},{"type":"null"}],"title":"Custom"},"sensitive_custom":{"anyOf":[{"additionalProperties":true,"type":"object"},{"type":"null"}],"title":"Sensitive Custom"},"tags":{"type":"string","title":"Tags"},"id":{"type":"string","title":"Id"},"subject":{"type":"string","title":"Subject"},"description":{"type":"string","title":"Description"},"status":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Status"},"priority":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Priority"},"ticket_type":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Ticket Type"},"group_name":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Group Name"},"requester":{"anyOf":[{"$ref":"#/components/schemas/FreshdeskTicketRequesterPayload"},{"type":"null"}]},"metadata":{"additionalProperties":true,"type":"object","title":"Metadata"},"include_comments":{"anyOf":[{"type":"boolean"},{"type":"null"}],"title":"Include Comments"}},"type":"object","required":["tags","id","subject","description"],"title":"TicketPayload"},"TicketRefreshCommentState":{"properties":{"id":{"type":"string","title":"Id"},"modified_at":{"type":"integer","title":"Modified At"}},"type":"object","required":["id","modified_at"],"title":"TicketRefreshCommentState"},"TicketRefreshRequest":{"properties":{"ticket_modified_at":{"type":"integer","title":"Ticket Modified At"},"comments":{"items":{"$ref":"#/components/schemas/TicketRefreshCommentState"},"type":"array","title":"Comments"}},"type":"object","required":["ticket_modified_at","comments"],"title":"TicketRefreshRequest"},"TicketSummary":{"properties":{"id":{"type":"string","title":"Id"},"display_id":{"type":"string","title":"Display Id"},"url":{"type":"string","title":"Url"},"subject":{"type":"string","title":"Subject"},"topic":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Topic"},"created_at":{"type":"integer","title":"Created At"},"modified_at":{"type":"integer","title":"Modified At"},"requester_name":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Requester Name"},"requester_email":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Requester Email"},"querypal_responded":{"type":"boolean","title":"Querypal Responded"},"avg_score":{"anyOf":[{"type":"number"},{"type":"null"}],"title":"Avg Score"},"avg_score_bucket":{"$ref":"#/components/schemas/ScoreBucket"},"score_type":{"$ref":"#/components/schemas/ScoreType"}},"type":"object","required":["id","display_id","url","subject","topic","created_at","modified_at","requester_name","requester_email","querypal_responded","avg_score","avg_score_bucket","score_type"],"title":"TicketSummary"},"ToolCallFailureDetails":{"properties":{"kind":{"type":"string","const":"tool_call_failure","title":"Kind","default":"tool_call_failure"},"tool":{"type":"string","maxLength":400,"title":"Tool"},"failure_mode":{"$ref":"#/components/schemas/ToolFailureMode"},"error_excerpt":{"type":"string","maxLength":2000,"title":"Error Excerpt","default":""}},"type":"object","required":["tool","failure_mode"],"title":"ToolCallFailureDetails"},"ToolFailureMode":{"type":"string","enum":["not_called","wrong_parameters","errored"],"title":"ToolFailureMode"},"ToolName":{"type":"string","enum":["agent-examples","jira","confluence","github","google_drive","google_drive_full_access","notion","slack","uploaded-docstore","website-docstore","onedrive","sharepoint","servicenow","stackoverflowteams","stackoverflowenterprise","apacheanswer","clickup","intercom","zendesk","youtrack","freshdesk","freshcaller","salesforce","helpscout","exported_data","feedback_examples","stackoverflow","jira_sm","stored_faqs","prefilter_examples","memory_lessons","memory_rules"],"title":"ToolName"},"TopProblem":{"properties":{"problem_id":{"type":"string","title":"Problem Id"},"summary":{"type":"string","title":"Summary"},"description":{"type":"string","title":"Description"},"dominant_cause":{"anyOf":[{"$ref":"#/components/schemas/DifferenceCause"},{"type":"null"}],"description":"The most common cause among the problem's differences, ties broken in cause order; None when it holds none"},"created_at":{"type":"string","format":"date-time","title":"Created At","description":"When the problem was found"},"is_new":{"type":"boolean","title":"Is New","description":"Whether no admin of the tenant has opened its page yet"},"ticket_count":{"type":"integer","title":"Ticket Count","description":"Distinct tickets the problem's differences are about"},"tickets_this_week":{"type":"integer","title":"Tickets This Week","description":"Distinct tickets among its differences about requests received in the last 7 days of the range"},"weekly_tickets":{"items":{"$ref":"#/components/schemas/WeekTickets"},"type":"array","title":"Weekly Tickets","description":"The 8 weeks ending at the range's end, oldest first"},"fix_type":{"type":"string","enum":["create_or_update_article","update_instructions"],"title":"Fix Type","description":"The type of the problem's current fix"},"fix_status":{"type":"string","enum":["drafted","applied","rejected","reverted"],"title":"Fix Status","description":"The status of the problem's current fix"}},"type":"object","required":["problem_id","summary","description","dominant_cause","created_at","is_new","ticket_count","tickets_this_week","weekly_tickets","fix_type","fix_status"],"title":"TopProblem"},"TopicsListResponse":{"properties":{"items":{"items":{"$ref":"#/components/schemas/TopicsResponse"},"type":"array","title":"Items","description":"The topics and sub-topics per helpdesk kind"}},"type":"object","required":["items"],"title":"TopicsListResponse","description":"    \n    "},"TopicsResponse":{"properties":{"topics":{"items":{"type":"string"},"type":"array","title":"Topics"},"subtopics":{"items":{"type":"string"},"type":"array","title":"Subtopics"},"config_kind":{"type":"string","title":"Config Kind","description":"The helpdesk kind the topics apply to, shared by all its configs"}},"type":"object","required":["config_kind"],"title":"TopicsResponse","description":"    \n    "},"TranscriptPayload":{"properties":{"id":{"type":"string","title":"Id"}},"type":"object","required":["id"],"title":"TranscriptPayload"},"TriageAnnotateAdminPayload":{"properties":{"ticket_id":{"type":"string","title":"Ticket Id"},"triage_config_id":{"type":"string","title":"Triage Config Id"},"triage_record_ts":{"type":"integer","title":"Triage Record Ts"},"admin_note":{"type":"string","title":"Admin Note"}},"type":"object","required":["ticket_id","triage_config_id","triage_record_ts","admin_note"],"title":"TriageAnnotateAdminPayload"},"TriageAnnotatePayload":{"properties":{"ticket_id":{"type":"string","title":"Ticket Id"},"triage_config_id":{"type":"string","title":"Triage Config Id"},"triage_record_ts":{"type":"integer","title":"Triage Record Ts"},"user_comment":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"User Comment"},"status":{"anyOf":[{"type":"string","enum":["needs_review","reviewed","not_reviewed"]},{"type":"null"}],"title":"Status"}},"type":"object","required":["ticket_id","triage_config_id","triage_record_ts"],"title":"TriageAnnotatePayload"},"TriageConfig-Input":{"properties":{"tenant_id":{"type":"string","title":"Tenant Id"},"id":{"type":"string","title":"Id"},"config_id":{"type":"string","title":"Config Id"},"fields":{"items":{"$ref":"#/components/schemas/TriageField"},"type":"array","title":"Fields","description":"fields to triage"},"instructions":{"type":"string","title":"Instructions","description":"instructions on how to triage the ticket"},"examples":{"items":{"additionalProperties":true,"type":"object"},"type":"array","title":"Examples","description":"Labeled examples of triage responses. Output field names should align with the `instruction_field_name`s in the `fields` array."},"enable_unclassifiable":{"type":"boolean","title":"Enable Unclassifiable","description":"Allow triage to return __UNCLASSIFIABLE__ for any field","default":false},"enable_dynamic_icl":{"type":"boolean","title":"Enable Dynamic Icl","description":"Allow dynamic ICL to be used for this triage config","default":false}},"type":"object","required":["tenant_id","id","config_id","fields","instructions"],"title":"TriageConfig"},"TriageConfig-Output":{"properties":{"tenant_id":{"type":"string","title":"Tenant Id"},"id":{"type":"string","title":"Id"},"config_id":{"type":"string","title":"Config Id"},"fields":{"items":{"$ref":"#/components/schemas/TriageField"},"type":"array","title":"Fields","description":"fields to triage"},"instructions":{"type":"string","title":"Instructions","description":"instructions on how to triage the ticket"},"examples":{"items":{"additionalProperties":true,"type":"object"},"type":"array","title":"Examples","description":"Labeled examples of triage responses. Output field names should align with the `instruction_field_name`s in the `fields` array."},"enable_unclassifiable":{"type":"boolean","title":"Enable Unclassifiable","description":"Allow triage to return __UNCLASSIFIABLE__ for any field","default":false},"enable_dynamic_icl":{"type":"boolean","title":"Enable Dynamic Icl","description":"Allow dynamic ICL to be used for this triage config","default":false},"PK":{"type":"string","title":"Pk","readOnly":true},"SK":{"type":"string","title":"Sk","readOnly":true}},"type":"object","required":["tenant_id","id","config_id","fields","instructions","PK","SK"],"title":"TriageConfig"},"TriageField":{"properties":{"field_id":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Field Id","description":"Field ID in the source system, if applicable"},"field_name":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Field Name","description":"Field name in the source system, if applicable"},"field_label":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Field Label","description":"Human-friendly label for the field"},"field_type":{"type":"string","title":"Field Type","description":"Field type in the source system. Hence, these are not normalized: they vary depending on the helpdesk"},"field_options":{"anyOf":[{"items":{"$ref":"#/components/schemas/FieldOption"},"type":"array"},{"type":"null"}],"title":"Field Options","description":"Field options"},"mapping_strategy":{"anyOf":[{"type":"string","enum":["custom_field","freshdesk_ticket_type"]},{"type":"null"}],"title":"Mapping Strategy","description":"Used to specify the mapping behavior for this field"},"instruction_field_name":{"type":"string","title":"Instruction Field Name","description":"The field name in the instructions"},"depends_on":{"anyOf":[{"items":{"$ref":"#/components/schemas/FieldDependency"},"type":"array"},{"type":"null"}],"title":"Depends On","description":"Fields this field depends on"}},"type":"object","required":["field_type","instruction_field_name"],"title":"TriageField"},"TriageReportParams":{"properties":{"kind":{"type":"string","const":"triage","title":"Kind","default":"triage"},"start_at":{"type":"string","format":"date-time","title":"Start At"},"end_at":{"type":"string","format":"date-time","title":"End At"},"triage_config_id":{"type":"string","title":"Triage Config Id"}},"type":"object","required":["start_at","end_at","triage_config_id"],"title":"TriageReportParams"},"TriggerQueryPalResponse":{"properties":{"request_id":{"type":"string","title":"Request Id"}},"type":"object","required":["request_id"],"title":"TriggerQueryPalResponse"},"UnsupportedClaimDetails":{"properties":{"kind":{"type":"string","const":"unsupported_claim","title":"Kind","default":"unsupported_claim"},"claim":{"type":"string","maxLength":2000,"title":"Claim","description":"What QueryPal stated as fact."},"why_unsupported":{"type":"string","maxLength":2000,"title":"Why Unsupported","description":"Why no source QueryPal was shown supports it: what the sources say instead, or that none covers it."},"source_cited":{"anyOf":[{"$ref":"#/components/schemas/EvidenceRef"},{"type":"null"}]}},"type":"object","required":["claim","why_unsupported"],"title":"UnsupportedClaimDetails"},"UpdateArtifactRequest":{"properties":{"fields":{"additionalProperties":true,"type":"object","title":"Fields"},"expected_version":{"type":"integer","title":"Expected Version"}},"type":"object","required":["fields","expected_version"],"title":"UpdateArtifactRequest"},"UpdateBoostPayload":{"properties":{"boost":{"type":"string","title":"Boost"}},"type":"object","required":["boost"],"title":"UpdateBoostPayload"},"UpdateBotActionSecretRequest":{"properties":{"secret_type":{"anyOf":[{"type":"string","enum":["bearer_token","custom_http_header"]},{"type":"null"}],"title":"Secret Type"},"secret_value":{"anyOf":[{"type":"string","format":"password","writeOnly":true},{"type":"null"}],"title":"Secret Value"},"description":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Description"},"allowed_host":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Allowed Host"},"header_name":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Header Name"},"resolver_config":{"anyOf":[{"$ref":"#/components/schemas/UpdateSecretResolverConfig"},{"type":"null"}]}},"type":"object","title":"UpdateBotActionSecretRequest"},"UpdateDocumentBoostPayload":{"properties":{"boost":{"type":"string","title":"Boost"}},"type":"object","required":["boost"],"title":"UpdateDocumentBoostPayload"},"UpdateDraftResponse":{"properties":{"version":{"type":"integer","title":"Version"}},"type":"object","required":["version"],"title":"UpdateDraftResponse"},"UpdateEvaluationRequest":{"properties":{"name":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Name"},"description":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Description"},"inputs":{"anyOf":[{"$ref":"#/components/schemas/EvaluationInputs"},{"type":"null"}]},"assertions":{"anyOf":[{"items":{"oneOf":[{"$ref":"#/components/schemas/AnswerPresentAssertion"},{"$ref":"#/components/schemas/LLMJudgeAssertion"}],"discriminator":{"propertyName":"type","mapping":{"answer_present":"#/components/schemas/AnswerPresentAssertion","llm_judge":"#/components/schemas/LLMJudgeAssertion"}}},"type":"array"},{"type":"null"}],"title":"Assertions"}},"type":"object","title":"UpdateEvaluationRequest"},"UpdateFaqContentRequest":{"properties":{"content":{"type":"string","title":"Content"},"faq_id":{"type":"string","title":"Faq Id"}},"type":"object","required":["content","faq_id"],"title":"UpdateFaqContentRequest"},"UpdateFaqResponse":{"properties":{"success":{"type":"boolean","title":"Success"}},"type":"object","required":["success"],"title":"UpdateFaqResponse"},"UpdateFeedbackPayload":{"properties":{"rating_id":{"type":"string","pattern":"^ratings&&tenant::.+\\|\\|request_id::.+&&user::.+$","title":"Rating Id"},"reason":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Reason"},"admin_notes":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Admin Notes"}},"type":"object","required":["rating_id"],"title":"UpdateFeedbackPayload"},"UpdateFeedbackStatusPayload":{"properties":{"feedback_id":{"type":"string","pattern":"^ratings&&tenant::.+\\|\\|request_id::.+&&user::.+$","title":"Feedback Id"},"status":{"type":"string","enum":["unreviewed","approved","rejected"],"title":"Status"}},"type":"object","required":["feedback_id","status"],"title":"UpdateFeedbackStatusPayload"},"UpdateFeedbackTriagePayload":{"properties":{"feedback_id":{"type":"string","pattern":"^ratings&&tenant::.+\\|\\|request_id::.+&&user::.+$","title":"Feedback Id"},"tags":{"anyOf":[{"items":{"type":"string"},"type":"array"},{"type":"null"}],"title":"Tags"},"indexable":{"anyOf":[{"type":"boolean"},{"type":"null"}],"title":"Indexable"}},"type":"object","required":["feedback_id"],"title":"UpdateFeedbackTriagePayload"},"UpdateNicknameRequest":{"properties":{"session_id":{"type":"string","title":"Session Id"},"nickname":{"type":"string","title":"Nickname"}},"type":"object","required":["session_id","nickname"],"title":"UpdateNicknameRequest"},"UpdateSecretResolverConfig":{"properties":{"url":{"type":"string","title":"Url"},"body":{"anyOf":[{"type":"string","format":"password","writeOnly":true},{"type":"null"}],"title":"Body"},"response_content_selector":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Response Content Selector"},"cache_enabled":{"type":"boolean","title":"Cache Enabled","default":false},"cache_ttl_seconds":{"anyOf":[{"type":"integer"},{"type":"null"}],"title":"Cache Ttl Seconds"}},"type":"object","required":["url"],"title":"UpdateSecretResolverConfig","description":"    \n    "},"UpdateTopicsRequest":{"properties":{"config_kind":{"type":"string","title":"Config Kind","description":"The helpdesk kind the topics apply to, shared by all its configs"},"topics":{"items":{"type":"string"},"type":"array","title":"Topics","description":"The topics tickets can be mapped to"},"subtopics":{"items":{"type":"string"},"type":"array","title":"Subtopics","description":"The sub-topics tickets can be mapped to"}},"type":"object","required":["config_kind","topics","subtopics"],"title":"UpdateTopicsRequest","description":"    \n    "},"UpdateWebsiteBoostPayload":{"properties":{"boost":{"type":"string","title":"Boost"}},"type":"object","required":["boost"],"title":"UpdateWebsiteBoostPayload"},"UploadedDocstoreIntegrationSetting":{"properties":{"boost":{"type":"string","title":"Boost"},"boost_per_doc":{"additionalProperties":{"type":"string"},"type":"object","title":"Boost Per Doc"},"type":{"type":"string","const":"uploaded-docstore","title":"Type"},"searchable_documents":{"items":{"$ref":"#/components/schemas/SearchableDocument"},"type":"array","title":"Searchable Documents"},"search_all_documents":{"type":"boolean","title":"Search All Documents"}},"type":"object","required":["type","searchable_documents","search_all_documents"],"title":"UploadedDocstoreIntegrationSetting"},"UpsertBotRequest":{"properties":{"bot_config":{"$ref":"#/components/schemas/BotConfig","examples":[{"actions":[],"active_channels":[{"channel_id":"C123456","channel_name":"Test Channel","interface_type":"slack","team_id":"T123456","team_name":"Test Team"}],"agentic_planner_enabled_config_ids":[],"agentic_planner_integration_settings":{},"agentic_planner_strict_runbook_alignment":false,"artifact_types":[],"bot_avatar_slug":"robot","bot_id":"ca2f5c98-8ea2-4103-a51d-2c3b38a5a05","description":"A silly bot","enable_all_configs":true,"enable_external_qa":false,"enable_gpt_answers":false,"enable_reference_only":false,"enable_slackbot_auto_answer":false,"enabled_integration_config_ids":["123456"],"end_search_ts":1711055839,"external_metadata_inclusion_patterns":[],"external_qa_prompts":[],"feature_flags":{"agent_model":"default:reasoning-model","consider_response_vote_prediction":true,"disable_replies":false,"enable_hallucinated_link_removal":true,"enable_link_descriptions":false,"enable_memory_learning":false,"feedback_outline_model":"default:bot-outline-model","global_boosts_per_doc":false,"link_display_format":"numeric","predict_response_vote_start_ts":0,"response_model":"default:bot-response-model","sub_agent_model":"default:sub-agent-model","tag_deflect":false,"tier_1_only":false,"use_email_translation":false,"use_feedback_examples_in_chat":false,"use_needs_response_filter":true,"use_ongoing_filter":false,"use_outline_feedback_loop":true,"use_post_validation_deflection":true,"use_specific_individual_filter":true},"guidelines":"","include_internal_links":false,"inherit_intercept_knowledge":false,"integration_settings":{},"is_default_bot":false,"is_external_qa_bot":false,"is_search_only":false,"key":"","mapped_workflows":[],"name":"Test Bot","post_continuation_link_when_unanswered":false,"prefilter_config":{"all_topics":[],"generic_prefilters":[],"prefilter_topics":[],"query_filter_regex_patterns":[]},"prompt":"Be a silly bot","require_authentication":false,"respond_if_not_confident":false,"response_approvers":[{"user_id":"U123456","user_name":"Test User"}],"runbooks":[],"show_ratings_and_feedback":false,"show_unanswered_reasoning":false,"tenant_id":"123456","version":0,"version_note":""}]},"source":{"anyOf":[{"$ref":"#/components/schemas/FixSource"},{"type":"null"}],"description":"What the saved version is for, such as the fix its editor is drafting. The config's own version_source is the loaded version's and is ignored."}},"type":"object","required":["bot_config"],"title":"UpsertBotRequest"},"UpsertToolConfigRequest":{"properties":{"config":{"title":"Config"}},"type":"object","required":["config"],"title":"UpsertToolConfigRequest"},"UrlNamePrompt":{"properties":{"suggested":{"type":"string","title":"Suggested"}},"type":"object","required":["suggested"],"title":"UrlNamePrompt","description":"    "},"UsageBucket":{"properties":{"start":{"type":"integer","title":"Start"},"counts":{"additionalProperties":{"type":"integer"},"type":"object","title":"Counts"}},"type":"object","required":["start","counts"],"title":"UsageBucket"},"UsageGroup":{"properties":{"key":{"type":"string","title":"Key"},"label":{"type":"string","title":"Label"},"total":{"type":"integer","title":"Total"}},"type":"object","required":["key","label","total"],"title":"UsageGroup"},"UsageReportParams":{"properties":{"kind":{"type":"string","const":"usage","title":"Kind","default":"usage"},"start_time":{"type":"integer","title":"Start Time"},"end_time":{"type":"integer","title":"End Time"},"granularity":{"type":"string","enum":["hour","day","week","month"],"title":"Granularity","default":"day"},"tz":{"type":"string","title":"Tz","default":"UTC"},"group_by":{"type":"string","enum":["none","bot","user","attachments","traffic","deflection"],"title":"Group By","default":"none"},"units":{"anyOf":[{"items":{"$ref":"#/components/schemas/UsageUnit"},"type":"array"},{"type":"null"}],"title":"Units"}},"type":"object","required":["start_time","end_time"],"title":"UsageReportParams"},"UsageSeriesResponse":{"properties":{"computed_at":{"anyOf":[{"type":"integer"},{"type":"null"}],"title":"Computed At"},"units":{"items":{"$ref":"#/components/schemas/UsageUnitSeries"},"type":"array","title":"Units"}},"type":"object","required":["computed_at","units"],"title":"UsageSeriesResponse"},"UsageUnit":{"type":"string","enum":["intercept_requests","intercept_responses","chat_requests","chat_sessions","search_requests"],"title":"UsageUnit"},"UsageUnitSeries":{"properties":{"unit":{"$ref":"#/components/schemas/UsageUnit"},"total":{"type":"integer","title":"Total"},"total_with_attachments":{"anyOf":[{"type":"integer"},{"type":"null"}],"title":"Total With Attachments"},"total_deflected":{"anyOf":[{"type":"integer"},{"type":"null"}],"title":"Total Deflected"},"groups":{"items":{"$ref":"#/components/schemas/UsageGroup"},"type":"array","title":"Groups"},"buckets":{"items":{"$ref":"#/components/schemas/UsageBucket"},"type":"array","title":"Buckets"}},"type":"object","required":["unit","total","total_with_attachments","total_deflected","groups","buckets"],"title":"UsageUnitSeries"},"UserAuthor":{"properties":{"kind":{"type":"string","const":"user","title":"Kind","default":"user"},"user_id":{"type":"string","title":"User Id"}},"type":"object","required":["user_id"],"title":"UserAuthor"},"UserRoleUpdate":{"properties":{"user_id":{"type":"string","title":"User Id","examples":["ca2f5c98-8ea2-4103-a51d-2c3b38a5a05"]},"new_role":{"anyOf":[{"type":"string","enum":["Admin","User"]},{"type":"null"}],"title":"New Role","description":"Either 'Admin' or 'User'","examples":["Admin","User"]}},"type":"object","required":["user_id"],"title":"UserRoleUpdate"},"V2QueryResponse":{"properties":{"all_messages":{"items":{"additionalProperties":true,"type":"object"},"type":"array","title":"All Messages"},"any_search_timed_out":{"type":"boolean","title":"Any Search Timed Out","default":false},"error":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Error"},"request_id":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Request Id"}},"type":"object","required":["all_messages"],"title":"V2QueryResponse"},"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"},"Variable":{"properties":{"name":{"type":"string","title":"Name"},"description":{"type":"string","title":"Description"}},"type":"object","required":["name","description"],"title":"Variable"},"VoteState":{"properties":{"vote":{"type":"string","enum":["yes","no"],"title":"Vote"},"reason":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Reason"}},"type":"object","required":["vote"],"title":"VoteState"},"WebSearchConfig":{"properties":{"enabled":{"type":"boolean","title":"Enabled","description":"If true, web_search and fetch_webpage tools are available to sub-agents","default":false},"allowed_domains":{"items":{"type":"string"},"type":"array","title":"Allowed Domains","description":"If non-empty, restricts both search results and fetch_webpage to these domains (matched against the URL netloc including subdomains). Empty = unrestricted."},"max_results":{"type":"integer","title":"Max Results","description":"Max search results returned per web_search call","default":10},"fetch_max_chars":{"type":"integer","title":"Fetch Max Chars","description":"Truncate fetched webpage content to this length","default":20000},"doc_max_bytes":{"type":"integer","title":"Doc Max Bytes","description":"Cap on the downloaded body size (bytes) for `fetch_webpage` and `fetch_web_document` before the streamed fetch aborts. Default: 25 MB.","default":26214400}},"type":"object","title":"WebSearchConfig","description":"    \n    \n    "},"WebhookPayload":{"properties":{"issue":{"$ref":"#/components/schemas/Issue"},"bot_id":{"type":"string","title":"Bot Id"},"installation_id":{"type":"string","title":"Installation Id"}},"type":"object","required":["issue","bot_id","installation_id"],"title":"WebhookPayload"},"WebstoreIntegrationSetting":{"properties":{"boost":{"type":"string","title":"Boost"},"boost_per_doc":{"additionalProperties":{"type":"string"},"type":"object","title":"Boost Per Doc"},"type":{"type":"string","const":"website-docstore","title":"Type"},"searchable_websites":{"items":{"$ref":"#/components/schemas/SearchableWebsite"},"type":"array","title":"Searchable Websites"},"search_all_websites":{"type":"boolean","title":"Search All Websites"}},"type":"object","required":["type","searchable_websites","search_all_websites"],"title":"WebstoreIntegrationSetting"},"WeekTickets":{"properties":{"week_start":{"type":"string","format":"date-time","title":"Week Start","description":"Start of the seven days counted; the last week ends at the range's end"},"tickets":{"type":"integer","title":"Tickets","description":"Distinct tickets among the problem's differences about requests received that week"}},"type":"object","required":["week_start","tickets"],"title":"WeekTickets"},"WorkflowReference":{"properties":{"name":{"type":"string","title":"Name"},"version":{"type":"string","title":"Version"}},"type":"object","required":["name","version"],"title":"WorkflowReference"},"YouTrackFilterProject":{"properties":{"type":{"type":"string","const":"project","title":"Type"},"id":{"type":"string","title":"Id"},"name":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Name"},"shortName":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Shortname"}},"type":"object","required":["type","id","name","shortName"],"title":"YouTrackFilterProject"},"YouTrackFilterTag":{"properties":{"type":{"type":"string","const":"tag","title":"Type"},"id":{"type":"string","title":"Id"},"name":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Name"}},"type":"object","required":["type","id","name"],"title":"YouTrackFilterTag"},"YouTrackIntegrationSetting":{"properties":{"boost":{"type":"string","title":"Boost"},"type":{"type":"string","const":"youtrack","title":"Type"},"search_all_articles":{"type":"boolean","title":"Search All Articles"},"article_filters":{"items":{"anyOf":[{"$ref":"#/components/schemas/YouTrackFilterTag"},{"$ref":"#/components/schemas/YouTrackFilterProject"}]},"type":"array","title":"Article Filters"},"search_all_issues":{"type":"boolean","title":"Search All Issues"},"issue_filters":{"items":{"anyOf":[{"$ref":"#/components/schemas/YouTrackFilterTag"},{"$ref":"#/components/schemas/YouTrackFilterProject"}]},"type":"array","title":"Issue Filters"},"issue_states":{"items":{"$ref":"#/components/schemas/YouTrackIssueState"},"type":"array","title":"Issue States"},"articles_created_after":{"type":"string","title":"Articles Created After"},"articles_updated_after":{"type":"string","title":"Articles Updated After"},"issues_created_after":{"type":"string","title":"Issues Created After"},"issues_updated_after":{"type":"string","title":"Issues Updated After"}},"type":"object","required":["type","search_all_articles","article_filters","search_all_issues","issue_filters"],"title":"YouTrackIntegrationSetting"},"YouTrackIssueState":{"properties":{"exclude":{"type":"boolean","title":"Exclude"},"value":{"type":"string","title":"Value"}},"type":"object","required":["exclude","value"],"title":"YouTrackIssueState"},"YouTrackProjectsRequest":{"properties":{"config_id":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Config Id"},"api_token":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Api Token"},"api_url":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Api Url"}},"type":"object","title":"YouTrackProjectsRequest"},"YouTrackTagsRequest":{"properties":{"config_id":{"type":"string","title":"Config Id"}},"type":"object","required":["config_id"],"title":"YouTrackTagsRequest"},"ZendeskAutodraftWebhookTicketPayload":{"properties":{"custom":{"anyOf":[{"additionalProperties":true,"type":"object"},{"type":"null"}],"title":"Custom"},"sensitive_custom":{"anyOf":[{"additionalProperties":true,"type":"object"},{"type":"null"}],"title":"Sensitive Custom"},"ticket":{"$ref":"#/components/schemas/ZendeskTicketPayload"},"requester":{"anyOf":[{"$ref":"#/components/schemas/ZendeskTicketRequesterPayload"},{"type":"null"}]},"bot_id":{"type":"string","title":"Bot Id"},"include_comments":{"anyOf":[{"type":"boolean"},{"type":"null"}],"title":"Include Comments","default":false}},"type":"object","required":["ticket","bot_id"],"title":"ZendeskAutodraftWebhookTicketPayload"},"ZendeskBotSettings":{"properties":{"webhook_id":{"type":"string","title":"Webhook Id"},"trigger_id":{"type":"string","title":"Trigger Id"},"trigger_category_id":{"type":"string","title":"Trigger Category Id"}},"type":"object","title":"ZendeskBotSettings"},"ZendeskBrandFilter":{"properties":{"type":{"type":"string","const":"brand","title":"Type"},"brand_id":{"type":"integer","title":"Brand Id"},"brand_name":{"type":"string","title":"Brand Name"}},"type":"object","required":["type","brand_id","brand_name"],"title":"ZendeskBrandFilter"},"ZendeskBrandsRequest":{"properties":{"config_id":{"type":"string","title":"Config Id"}},"type":"object","required":["config_id"],"title":"ZendeskBrandsRequest"},"ZendeskFormAction":{"properties":{"name":{"type":"string","title":"Name"},"description":{"type":"string","title":"Description"},"tenant_id":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Tenant Id"},"requires_approval":{"anyOf":[{"type":"boolean"},{"type":"null"}],"title":"Requires Approval"},"action_id":{"type":"string","title":"Action Id","default":""},"version":{"type":"integer","title":"Version","default":0},"created_at":{"type":"integer","title":"Created At"},"modified_at":{"type":"integer","title":"Modified At"},"action_type":{"type":"string","const":"form_action","title":"Action Type","default":"form_action"},"form_source":{"type":"string","const":"zendesk","title":"Form Source"},"external_form_id":{"type":"string","title":"External Form Id"},"config_id":{"type":"string","title":"Config Id"}},"type":"object","required":["name","description","form_source","external_form_id","config_id"],"title":"ZendeskFormAction"},"ZendeskIntegrationOauthRequest":{"properties":{"code":{"type":"string","title":"Code"},"subdomain":{"type":"string","title":"Subdomain"},"mask_pii":{"type":"boolean","title":"Mask Pii"},"index_tickets":{"type":"boolean","title":"Index Tickets"},"index_articles":{"type":"boolean","title":"Index Articles"},"include_draft":{"type":"boolean","title":"Include Draft"},"code_verifier":{"type":"string","title":"Code Verifier"},"mode":{"type":"string","title":"Mode"},"expires_in":{"type":"integer","title":"Expires In","default":172800},"refresh_token_expires_in":{"type":"integer","title":"Refresh Token Expires In","default":2592000}},"type":"object","required":["code","subdomain","mask_pii","index_tickets","index_articles","include_draft","code_verifier","mode"],"title":"ZendeskIntegrationOauthRequest"},"ZendeskIntegrationSetting":{"properties":{"boost":{"type":"string","title":"Boost"},"type":{"type":"string","const":"zendesk","title":"Type"},"include_limited_visibility_articles":{"type":"boolean","title":"Include Limited Visibility Articles"},"search_all_articles":{"type":"boolean","title":"Search All Articles"},"article_filters":{"items":{"$ref":"#/components/schemas/ZendeskBrandFilter"},"type":"array","title":"Article Filters"},"search_all_tickets":{"type":"boolean","title":"Search All Tickets"},"ticket_filters":{"items":{"$ref":"#/components/schemas/ZendeskBrandFilter"},"type":"array","title":"Ticket Filters"}},"type":"object","required":["type"],"title":"ZendeskIntegrationSetting"},"ZendeskTicketPayload":{"properties":{"id":{"type":"string","title":"Id"},"subject":{"type":"string","title":"Subject"},"description":{"type":"string","title":"Description"}},"type":"object","required":["id","subject","description"],"title":"ZendeskTicketPayload","description":"    \n    "},"ZendeskTicketRequesterPayload":{"properties":{"custom":{"anyOf":[{"additionalProperties":true,"type":"object"},{"type":"null"}],"title":"Custom"},"sensitive_custom":{"anyOf":[{"additionalProperties":true,"type":"object"},{"type":"null"}],"title":"Sensitive Custom"},"email":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Email","description":"The email of the requester","default":""},"name":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Name","description":"The name of the requester","default":""}},"type":"object","title":"ZendeskTicketRequesterPayload"},"ZendeskTicketTriagePayload":{"properties":{"ticket":{"$ref":"#/components/schemas/ZendeskTicketPayload"},"triage_config_id":{"type":"string","title":"Triage Config Id"}},"type":"object","required":["ticket","triage_config_id"],"title":"ZendeskTicketTriagePayload"},"admin_api__external_qa__router__PostQueryRequest":{"properties":{"query":{"type":"string","title":"Query"},"tenant_id":{"type":"string","title":"Tenant Id"},"bot_id":{"type":"string","title":"Bot Id"},"session_id":{"type":"string","title":"Session Id"},"filters":{"anyOf":[{"items":{"type":"string"},"type":"array"},{"type":"null"}],"title":"Filters"},"time_range":{"anyOf":[{"type":"integer"},{"type":"null"}],"title":"Time Range"},"confidence_level":{"anyOf":[{"type":"number"},{"type":"null"}],"title":"Confidence Level"},"resume":{"anyOf":[{},{"type":"null"}],"title":"Resume"}},"type":"object","required":["query","tenant_id","bot_id","session_id"],"title":"PostQueryRequest"},"admin_api__external_qa__router__PostVoteRequest":{"properties":{"tenant_id":{"type":"string","title":"Tenant Id"},"session_id":{"type":"string","title":"Session Id"},"request_id":{"type":"string","title":"Request Id"},"vote_state":{"anyOf":[{"$ref":"#/components/schemas/VoteState"},{"type":"null"}]}},"type":"object","required":["tenant_id","session_id","request_id"],"title":"PostVoteRequest"},"admin_api__qa_api__router__PostQueryRequest":{"properties":{"query":{"type":"string","title":"Query","description":"The query"},"bot_id":{"type":"string","title":"Bot Id","description":"The identifier of the bot. This bot's configuration will be used to process the query."},"session_id":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Session Id","description":"The session identifier. This is used to track the conversation context."},"metadata":{"anyOf":[{"additionalProperties":true,"type":"object"},{"type":"null"}],"title":"Metadata","description":"Metadata associated with the query"},"response_format":{"anyOf":[{"additionalProperties":true,"type":"object"},{"type":"null"}],"title":"Response Format","description":"Specify the response format, compatible with OpenAI's API response format"}},"type":"object","required":["query","bot_id"],"title":"PostQueryRequest","description":"    \n    "},"admin_api__qa_api__router__PostVoteRequest":{"properties":{"message_id":{"type":"string","title":"Message Id"},"vote":{"type":"string","enum":["yes","no"],"title":"Vote"},"reason":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Reason"}},"type":"object","required":["message_id","vote"],"title":"PostVoteRequest"}},"securitySchemes":{"JWT":{"type":"oauth2","flows":{"password":{"scopes":{},"tokenUrl":"token"}}},"HTTPBearer":{"type":"http","scheme":"bearer"}}}}