{"openapi":"3.1.0","info":{"title":"FastAPI","version":"0.1.0"},"paths":{"/health":{"get":{"summary":"Health","description":"Health check endpoint.\n\nReports ``status: \"active\"`` while any HTTP request OR webhook background\ntask is in flight, so the K8s preStop drain loop waits for both kinds of\nwork before SIGTERM is delivered. Without the webhook coupling, preStop\nwould see a quiet HTTP queue and exit early — burning the grace period\non a pod that still has accepted (and 200'd) webhook work pending; the\nin-lifespan drain would then have far less than the chart's nominal\n``terminationGracePeriodSeconds`` to finish that work.","operationId":"health_health_get","responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}}}}},"/knowledge/definition-proposals/candidates":{"get":{"tags":["knowledge"],"summary":"Candidates","operationId":"candidates_knowledge_definition_proposals_candidates_get","security":[{"APIKeyHeader":[]},{"HTTPBearer":[]}],"parameters":[{"name":"search","in":"query","required":true,"schema":{"type":"string","minLength":1,"maxLength":200,"title":"Search"}},{"name":"limit","in":"query","required":false,"schema":{"type":"integer","maximum":10,"minimum":1,"default":5,"title":"Limit"}},{"name":"timezone","in":"header","required":false,"schema":{"type":"string","default":"UTC","title":"Timezone"}},{"name":"x-user-id","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"X-User-Id"}},{"name":"x-actor-email","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"X-Actor-Email"}},{"name":"x-request-source","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"X-Request-Source"}},{"name":"x-operation-id","in":"header","required":false,"schema":{"anyOf":[{"type":"string","maxLength":36},{"type":"null"}],"title":"X-Operation-Id"}},{"name":"x-commit-message","in":"header","required":false,"schema":{"anyOf":[{"type":"string","minLength":1},{"type":"null"}],"title":"X-Commit-Message"}},{"name":"x-confirmation-id","in":"header","required":false,"schema":{"anyOf":[{"type":"string","maxLength":36},{"type":"null"}],"title":"X-Confirmation-Id"}},{"name":"x-chat-id","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"X-Chat-Id"}},{"name":"organization-id","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Organization-Id"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/DefinitionCandidatesResponse"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/knowledge/definition-proposals/history/{definition_id}":{"get":{"tags":["knowledge"],"summary":"History","operationId":"history_knowledge_definition_proposals_history__definition_id__get","security":[{"APIKeyHeader":[]},{"HTTPBearer":[]}],"parameters":[{"name":"definition_id","in":"path","required":true,"schema":{"type":"string","title":"Definition Id"}},{"name":"limit","in":"query","required":false,"schema":{"type":"integer","maximum":100,"minimum":1,"default":20,"title":"Limit"}},{"name":"timezone","in":"header","required":false,"schema":{"type":"string","default":"UTC","title":"Timezone"}},{"name":"x-user-id","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"X-User-Id"}},{"name":"x-actor-email","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"X-Actor-Email"}},{"name":"x-request-source","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"X-Request-Source"}},{"name":"x-operation-id","in":"header","required":false,"schema":{"anyOf":[{"type":"string","maxLength":36},{"type":"null"}],"title":"X-Operation-Id"}},{"name":"x-commit-message","in":"header","required":false,"schema":{"anyOf":[{"type":"string","minLength":1},{"type":"null"}],"title":"X-Commit-Message"}},{"name":"x-confirmation-id","in":"header","required":false,"schema":{"anyOf":[{"type":"string","maxLength":36},{"type":"null"}],"title":"X-Confirmation-Id"}},{"name":"x-chat-id","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"X-Chat-Id"}},{"name":"organization-id","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Organization-Id"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/DefinitionHistoryResponse"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/knowledge/definition-proposals/{review_id}":{"get":{"tags":["knowledge"],"summary":"Read","operationId":"read_knowledge_definition_proposals__review_id__get","security":[{"APIKeyHeader":[]},{"HTTPBearer":[]}],"parameters":[{"name":"review_id","in":"path","required":true,"schema":{"type":"string","title":"Review Id"}},{"name":"timezone","in":"header","required":false,"schema":{"type":"string","default":"UTC","title":"Timezone"}},{"name":"x-user-id","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"X-User-Id"}},{"name":"x-actor-email","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"X-Actor-Email"}},{"name":"x-request-source","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"X-Request-Source"}},{"name":"x-operation-id","in":"header","required":false,"schema":{"anyOf":[{"type":"string","maxLength":36},{"type":"null"}],"title":"X-Operation-Id"}},{"name":"x-commit-message","in":"header","required":false,"schema":{"anyOf":[{"type":"string","minLength":1},{"type":"null"}],"title":"X-Commit-Message"}},{"name":"x-confirmation-id","in":"header","required":false,"schema":{"anyOf":[{"type":"string","maxLength":36},{"type":"null"}],"title":"X-Confirmation-Id"}},{"name":"x-chat-id","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"X-Chat-Id"}},{"name":"organization-id","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Organization-Id"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/DefinitionProposalResponse"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/knowledge/definition-proposals":{"post":{"tags":["knowledge"],"summary":"Draft","operationId":"draft_knowledge_definition_proposals_post","security":[{"APIKeyHeader":[]},{"HTTPBearer":[]}],"parameters":[{"name":"timezone","in":"header","required":false,"schema":{"type":"string","default":"UTC","title":"Timezone"}},{"name":"x-user-id","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"X-User-Id"}},{"name":"x-actor-email","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"X-Actor-Email"}},{"name":"x-request-source","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"X-Request-Source"}},{"name":"x-operation-id","in":"header","required":false,"schema":{"anyOf":[{"type":"string","maxLength":36},{"type":"null"}],"title":"X-Operation-Id"}},{"name":"x-commit-message","in":"header","required":false,"schema":{"anyOf":[{"type":"string","minLength":1},{"type":"null"}],"title":"X-Commit-Message"}},{"name":"x-confirmation-id","in":"header","required":false,"schema":{"anyOf":[{"type":"string","maxLength":36},{"type":"null"}],"title":"X-Confirmation-Id"}},{"name":"x-chat-id","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"X-Chat-Id"}},{"name":"organization-id","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Organization-Id"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/DefinitionDraft-Input"}}}},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/DefinitionProposalResponse"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/knowledge/definition-proposals/{review_id}/decision":{"post":{"tags":["knowledge"],"summary":"Decide","operationId":"decide_knowledge_definition_proposals__review_id__decision_post","security":[{"APIKeyHeader":[]},{"HTTPBearer":[]}],"parameters":[{"name":"review_id","in":"path","required":true,"schema":{"type":"string","title":"Review Id"}},{"name":"timezone","in":"header","required":false,"schema":{"type":"string","default":"UTC","title":"Timezone"}},{"name":"x-user-id","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"X-User-Id"}},{"name":"x-actor-email","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"X-Actor-Email"}},{"name":"x-request-source","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"X-Request-Source"}},{"name":"x-operation-id","in":"header","required":false,"schema":{"anyOf":[{"type":"string","maxLength":36},{"type":"null"}],"title":"X-Operation-Id"}},{"name":"x-commit-message","in":"header","required":false,"schema":{"anyOf":[{"type":"string","minLength":1},{"type":"null"}],"title":"X-Commit-Message"}},{"name":"x-confirmation-id","in":"header","required":false,"schema":{"anyOf":[{"type":"string","maxLength":36},{"type":"null"}],"title":"X-Confirmation-Id"}},{"name":"x-chat-id","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"X-Chat-Id"}},{"name":"organization-id","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Organization-Id"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/DefinitionDecision"}}}},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/DefinitionProposalResponse"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/admin/knowledge/reviews":{"get":{"tags":["admin"],"summary":"Read Reviews","operationId":"read_reviews_admin_knowledge_reviews_get","security":[{"APIKeyHeader":[]},{"HTTPBearer":[]}],"parameters":[{"name":"status","in":"query","required":false,"schema":{"enum":["open","resolved"],"type":"string","default":"open","title":"Status"}},{"name":"limit","in":"query","required":false,"schema":{"type":"integer","maximum":20,"minimum":1,"default":20,"title":"Limit"}},{"name":"after_created_at","in":"query","required":false,"schema":{"anyOf":[{"type":"string","format":"date-time"},{"type":"null"}],"title":"After Created At"}},{"name":"after_id","in":"query","required":false,"schema":{"anyOf":[{"type":"string","minLength":1,"maxLength":255},{"type":"null"}],"title":"After Id"}},{"name":"organization-id","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Organization-Id"}},{"name":"timezone","in":"header","required":false,"schema":{"type":"string","default":"UTC","title":"Timezone"}},{"name":"x-user-id","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"X-User-Id"}},{"name":"x-actor-email","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"X-Actor-Email"}},{"name":"x-request-source","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"X-Request-Source"}},{"name":"x-operation-id","in":"header","required":false,"schema":{"anyOf":[{"type":"string","maxLength":36},{"type":"null"}],"title":"X-Operation-Id"}},{"name":"x-commit-message","in":"header","required":false,"schema":{"anyOf":[{"type":"string","minLength":1},{"type":"null"}],"title":"X-Commit-Message"}},{"name":"x-confirmation-id","in":"header","required":false,"schema":{"anyOf":[{"type":"string","maxLength":36},{"type":"null"}],"title":"X-Confirmation-Id"}},{"name":"x-chat-id","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"X-Chat-Id"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ReviewPageResponse"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/admin/knowledge/reviews/{review_id}":{"get":{"tags":["admin"],"summary":"Read Review","operationId":"read_review_admin_knowledge_reviews__review_id__get","security":[{"APIKeyHeader":[]},{"HTTPBearer":[]}],"parameters":[{"name":"review_id","in":"path","required":true,"schema":{"type":"string","format":"uuid","title":"Review Id"}},{"name":"organization-id","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Organization-Id"}},{"name":"timezone","in":"header","required":false,"schema":{"type":"string","default":"UTC","title":"Timezone"}},{"name":"x-user-id","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"X-User-Id"}},{"name":"x-actor-email","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"X-Actor-Email"}},{"name":"x-request-source","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"X-Request-Source"}},{"name":"x-operation-id","in":"header","required":false,"schema":{"anyOf":[{"type":"string","maxLength":36},{"type":"null"}],"title":"X-Operation-Id"}},{"name":"x-commit-message","in":"header","required":false,"schema":{"anyOf":[{"type":"string","minLength":1},{"type":"null"}],"title":"X-Commit-Message"}},{"name":"x-confirmation-id","in":"header","required":false,"schema":{"anyOf":[{"type":"string","maxLength":36},{"type":"null"}],"title":"X-Confirmation-Id"}},{"name":"x-chat-id","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"X-Chat-Id"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ReviewDetailResponse"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/admin/knowledge/reviews/{review_id}/decision":{"post":{"tags":["admin"],"summary":"Decide Review","operationId":"decide_review_admin_knowledge_reviews__review_id__decision_post","security":[{"APIKeyHeader":[]},{"HTTPBearer":[]}],"parameters":[{"name":"review_id","in":"path","required":true,"schema":{"type":"string","format":"uuid","title":"Review Id"}},{"name":"organization-id","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Organization-Id"}},{"name":"timezone","in":"header","required":false,"schema":{"type":"string","default":"UTC","title":"Timezone"}},{"name":"x-user-id","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"X-User-Id"}},{"name":"x-actor-email","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"X-Actor-Email"}},{"name":"x-request-source","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"X-Request-Source"}},{"name":"x-operation-id","in":"header","required":false,"schema":{"anyOf":[{"type":"string","maxLength":36},{"type":"null"}],"title":"X-Operation-Id"}},{"name":"x-commit-message","in":"header","required":false,"schema":{"anyOf":[{"type":"string","minLength":1},{"type":"null"}],"title":"X-Commit-Message"}},{"name":"x-confirmation-id","in":"header","required":false,"schema":{"anyOf":[{"type":"string","maxLength":36},{"type":"null"}],"title":"X-Confirmation-Id"}},{"name":"x-chat-id","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"X-Chat-Id"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ReviewResolutionRequest"}}}},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ReviewResolutionResponse"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/admin/knowledge/changes":{"get":{"tags":["admin"],"summary":"Read Changes","operationId":"read_changes_admin_knowledge_changes_get","security":[{"APIKeyHeader":[]},{"HTTPBearer":[]}],"parameters":[{"name":"limit","in":"query","required":false,"schema":{"type":"integer","maximum":20,"minimum":1,"default":20,"title":"Limit"}},{"name":"entity_id","in":"query","required":false,"schema":{"anyOf":[{"type":"string","minLength":1,"maxLength":255,"pattern":"^\\S(?:.*\\S)?$"},{"type":"null"}],"title":"Entity Id"}},{"name":"kind","in":"query","required":false,"schema":{"anyOf":[{"enum":["run","merge","merge_undo"],"type":"string"},{"type":"null"}],"title":"Kind"}},{"name":"after_happened_at","in":"query","required":false,"schema":{"anyOf":[{"type":"string","format":"date-time"},{"type":"null"}],"title":"After Happened At"}},{"name":"after_kind","in":"query","required":false,"schema":{"anyOf":[{"enum":["run","merge","merge_undo"],"type":"string"},{"type":"null"}],"title":"After Kind"}},{"name":"after_id","in":"query","required":false,"schema":{"anyOf":[{"type":"string","minLength":1,"maxLength":255},{"type":"null"}],"title":"After Id"}},{"name":"organization-id","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Organization-Id"}},{"name":"timezone","in":"header","required":false,"schema":{"type":"string","default":"UTC","title":"Timezone"}},{"name":"x-user-id","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"X-User-Id"}},{"name":"x-actor-email","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"X-Actor-Email"}},{"name":"x-request-source","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"X-Request-Source"}},{"name":"x-operation-id","in":"header","required":false,"schema":{"anyOf":[{"type":"string","maxLength":36},{"type":"null"}],"title":"X-Operation-Id"}},{"name":"x-commit-message","in":"header","required":false,"schema":{"anyOf":[{"type":"string","minLength":1},{"type":"null"}],"title":"X-Commit-Message"}},{"name":"x-confirmation-id","in":"header","required":false,"schema":{"anyOf":[{"type":"string","maxLength":36},{"type":"null"}],"title":"X-Confirmation-Id"}},{"name":"x-chat-id","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"X-Chat-Id"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ChangePageResponse"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/admin/knowledge/changes/{kind}/{change_id}":{"get":{"tags":["admin"],"summary":"Read Change","operationId":"read_change_admin_knowledge_changes__kind___change_id__get","security":[{"APIKeyHeader":[]},{"HTTPBearer":[]}],"parameters":[{"name":"kind","in":"path","required":true,"schema":{"enum":["run","merge","merge_undo"],"type":"string","title":"Kind"}},{"name":"change_id","in":"path","required":true,"schema":{"type":"string","format":"uuid","title":"Change Id"}},{"name":"evidence_limit","in":"query","required":false,"schema":{"type":"integer","maximum":20,"minimum":1,"default":20,"title":"Evidence Limit"}},{"name":"after_evidence_id","in":"query","required":false,"schema":{"anyOf":[{"type":"string","minLength":1,"maxLength":255,"pattern":"^\\S(?:.*\\S)?$"},{"type":"null"}],"title":"After Evidence Id"}},{"name":"organization-id","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Organization-Id"}},{"name":"timezone","in":"header","required":false,"schema":{"type":"string","default":"UTC","title":"Timezone"}},{"name":"x-user-id","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"X-User-Id"}},{"name":"x-actor-email","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"X-Actor-Email"}},{"name":"x-request-source","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"X-Request-Source"}},{"name":"x-operation-id","in":"header","required":false,"schema":{"anyOf":[{"type":"string","maxLength":36},{"type":"null"}],"title":"X-Operation-Id"}},{"name":"x-commit-message","in":"header","required":false,"schema":{"anyOf":[{"type":"string","minLength":1},{"type":"null"}],"title":"X-Commit-Message"}},{"name":"x-confirmation-id","in":"header","required":false,"schema":{"anyOf":[{"type":"string","maxLength":36},{"type":"null"}],"title":"X-Confirmation-Id"}},{"name":"x-chat-id","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"X-Chat-Id"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ChangeDetailResponse"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/admin/knowledge/merges/preview":{"post":{"tags":["admin"],"summary":"Inspect Merge","operationId":"inspect_merge_admin_knowledge_merges_preview_post","security":[{"APIKeyHeader":[]},{"HTTPBearer":[]}],"parameters":[{"name":"organization-id","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Organization-Id"}},{"name":"timezone","in":"header","required":false,"schema":{"type":"string","default":"UTC","title":"Timezone"}},{"name":"x-user-id","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"X-User-Id"}},{"name":"x-actor-email","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"X-Actor-Email"}},{"name":"x-request-source","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"X-Request-Source"}},{"name":"x-operation-id","in":"header","required":false,"schema":{"anyOf":[{"type":"string","maxLength":36},{"type":"null"}],"title":"X-Operation-Id"}},{"name":"x-commit-message","in":"header","required":false,"schema":{"anyOf":[{"type":"string","minLength":1},{"type":"null"}],"title":"X-Commit-Message"}},{"name":"x-confirmation-id","in":"header","required":false,"schema":{"anyOf":[{"type":"string","maxLength":36},{"type":"null"}],"title":"X-Confirmation-Id"}},{"name":"x-chat-id","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"X-Chat-Id"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/MergePair"}}}},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/MergePreviewResponse"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/admin/knowledge/merges":{"post":{"tags":["admin"],"summary":"Merge","operationId":"merge_admin_knowledge_merges_post","security":[{"APIKeyHeader":[]},{"HTTPBearer":[]}],"parameters":[{"name":"organization-id","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Organization-Id"}},{"name":"timezone","in":"header","required":false,"schema":{"type":"string","default":"UTC","title":"Timezone"}},{"name":"x-user-id","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"X-User-Id"}},{"name":"x-actor-email","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"X-Actor-Email"}},{"name":"x-request-source","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"X-Request-Source"}},{"name":"x-operation-id","in":"header","required":false,"schema":{"anyOf":[{"type":"string","maxLength":36},{"type":"null"}],"title":"X-Operation-Id"}},{"name":"x-commit-message","in":"header","required":false,"schema":{"anyOf":[{"type":"string","minLength":1},{"type":"null"}],"title":"X-Commit-Message"}},{"name":"x-confirmation-id","in":"header","required":false,"schema":{"anyOf":[{"type":"string","maxLength":36},{"type":"null"}],"title":"X-Confirmation-Id"}},{"name":"x-chat-id","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"X-Chat-Id"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/MergeRequest"}}}},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/MergeReceiptResponse"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/admin/knowledge/merges/{merge_id}/undo/preview":{"post":{"tags":["admin"],"summary":"Inspect Undo","operationId":"inspect_undo_admin_knowledge_merges__merge_id__undo_preview_post","security":[{"APIKeyHeader":[]},{"HTTPBearer":[]}],"parameters":[{"name":"merge_id","in":"path","required":true,"schema":{"type":"string","format":"uuid","title":"Merge Id"}},{"name":"organization-id","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Organization-Id"}},{"name":"timezone","in":"header","required":false,"schema":{"type":"string","default":"UTC","title":"Timezone"}},{"name":"x-user-id","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"X-User-Id"}},{"name":"x-actor-email","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"X-Actor-Email"}},{"name":"x-request-source","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"X-Request-Source"}},{"name":"x-operation-id","in":"header","required":false,"schema":{"anyOf":[{"type":"string","maxLength":36},{"type":"null"}],"title":"X-Operation-Id"}},{"name":"x-commit-message","in":"header","required":false,"schema":{"anyOf":[{"type":"string","minLength":1},{"type":"null"}],"title":"X-Commit-Message"}},{"name":"x-confirmation-id","in":"header","required":false,"schema":{"anyOf":[{"type":"string","maxLength":36},{"type":"null"}],"title":"X-Confirmation-Id"}},{"name":"x-chat-id","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"X-Chat-Id"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/MergePreviewResponse"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/admin/knowledge/merges/{merge_id}/undo":{"post":{"tags":["admin"],"summary":"Undo","operationId":"undo_admin_knowledge_merges__merge_id__undo_post","security":[{"APIKeyHeader":[]},{"HTTPBearer":[]}],"parameters":[{"name":"merge_id","in":"path","required":true,"schema":{"type":"string","format":"uuid","title":"Merge Id"}},{"name":"organization-id","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Organization-Id"}},{"name":"timezone","in":"header","required":false,"schema":{"type":"string","default":"UTC","title":"Timezone"}},{"name":"x-user-id","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"X-User-Id"}},{"name":"x-actor-email","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"X-Actor-Email"}},{"name":"x-request-source","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"X-Request-Source"}},{"name":"x-operation-id","in":"header","required":false,"schema":{"anyOf":[{"type":"string","maxLength":36},{"type":"null"}],"title":"X-Operation-Id"}},{"name":"x-commit-message","in":"header","required":false,"schema":{"anyOf":[{"type":"string","minLength":1},{"type":"null"}],"title":"X-Commit-Message"}},{"name":"x-confirmation-id","in":"header","required":false,"schema":{"anyOf":[{"type":"string","maxLength":36},{"type":"null"}],"title":"X-Confirmation-Id"}},{"name":"x-chat-id","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"X-Chat-Id"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/MergeUndoRequest"}}}},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/MergeReceiptResponse"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/admin/crm/maintenance-optout-migrations/preview":{"post":{"tags":["admin","crm"],"summary":"Preview","operationId":"preview_admin_crm_maintenance_optout_migrations_preview_post","security":[{"APIKeyHeader":[]},{"HTTPBearer":[]}],"parameters":[{"name":"organization-id","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Organization-Id"}},{"name":"timezone","in":"header","required":false,"schema":{"type":"string","default":"UTC","title":"Timezone"}},{"name":"x-user-id","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"X-User-Id"}},{"name":"x-actor-email","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"X-Actor-Email"}},{"name":"x-request-source","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"X-Request-Source"}},{"name":"x-operation-id","in":"header","required":false,"schema":{"anyOf":[{"type":"string","maxLength":36},{"type":"null"}],"title":"X-Operation-Id"}},{"name":"x-commit-message","in":"header","required":false,"schema":{"anyOf":[{"type":"string","minLength":1},{"type":"null"}],"title":"X-Commit-Message"}},{"name":"x-confirmation-id","in":"header","required":false,"schema":{"anyOf":[{"type":"string","maxLength":36},{"type":"null"}],"title":"X-Confirmation-Id"}},{"name":"x-chat-id","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"X-Chat-Id"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/MaintenanceOptoutMigrationRequest"}}}},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/MaintenanceOptoutMigrationPreview"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/admin/crm/maintenance-optout-migrations/apply":{"post":{"tags":["admin","crm"],"summary":"Apply","operationId":"apply_admin_crm_maintenance_optout_migrations_apply_post","security":[{"APIKeyHeader":[]},{"HTTPBearer":[]}],"parameters":[{"name":"organization-id","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Organization-Id"}},{"name":"timezone","in":"header","required":false,"schema":{"type":"string","default":"UTC","title":"Timezone"}},{"name":"x-user-id","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"X-User-Id"}},{"name":"x-actor-email","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"X-Actor-Email"}},{"name":"x-request-source","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"X-Request-Source"}},{"name":"x-operation-id","in":"header","required":false,"schema":{"anyOf":[{"type":"string","maxLength":36},{"type":"null"}],"title":"X-Operation-Id"}},{"name":"x-commit-message","in":"header","required":false,"schema":{"anyOf":[{"type":"string","minLength":1},{"type":"null"}],"title":"X-Commit-Message"}},{"name":"x-confirmation-id","in":"header","required":false,"schema":{"anyOf":[{"type":"string","maxLength":36},{"type":"null"}],"title":"X-Confirmation-Id"}},{"name":"x-chat-id","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"X-Chat-Id"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ApplyMaintenanceOptoutMigrationRequest"}}}},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/AppliedMaintenanceOptoutMigration"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/admin/crm/maintenance-optout-migrations/organization/preview":{"post":{"tags":["admin","crm"],"summary":"Preview Organization","operationId":"preview_organization_admin_crm_maintenance_optout_migrations_organization_preview_post","security":[{"APIKeyHeader":[]},{"HTTPBearer":[]}],"parameters":[{"name":"organization-id","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Organization-Id"}},{"name":"timezone","in":"header","required":false,"schema":{"type":"string","default":"UTC","title":"Timezone"}},{"name":"x-user-id","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"X-User-Id"}},{"name":"x-actor-email","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"X-Actor-Email"}},{"name":"x-request-source","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"X-Request-Source"}},{"name":"x-operation-id","in":"header","required":false,"schema":{"anyOf":[{"type":"string","maxLength":36},{"type":"null"}],"title":"X-Operation-Id"}},{"name":"x-commit-message","in":"header","required":false,"schema":{"anyOf":[{"type":"string","minLength":1},{"type":"null"}],"title":"X-Commit-Message"}},{"name":"x-confirmation-id","in":"header","required":false,"schema":{"anyOf":[{"type":"string","maxLength":36},{"type":"null"}],"title":"X-Confirmation-Id"}},{"name":"x-chat-id","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"X-Chat-Id"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/PreviewOrganizationOptoutsRequest"}}}},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/OrganizationOptoutPreview"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/admin/crm/maintenance-optout-migrations/organization/apply":{"post":{"tags":["admin","crm"],"summary":"Apply Organization","operationId":"apply_organization_admin_crm_maintenance_optout_migrations_organization_apply_post","security":[{"APIKeyHeader":[]},{"HTTPBearer":[]}],"parameters":[{"name":"organization-id","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Organization-Id"}},{"name":"timezone","in":"header","required":false,"schema":{"type":"string","default":"UTC","title":"Timezone"}},{"name":"x-user-id","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"X-User-Id"}},{"name":"x-actor-email","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"X-Actor-Email"}},{"name":"x-request-source","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"X-Request-Source"}},{"name":"x-operation-id","in":"header","required":false,"schema":{"anyOf":[{"type":"string","maxLength":36},{"type":"null"}],"title":"X-Operation-Id"}},{"name":"x-commit-message","in":"header","required":false,"schema":{"anyOf":[{"type":"string","minLength":1},{"type":"null"}],"title":"X-Commit-Message"}},{"name":"x-confirmation-id","in":"header","required":false,"schema":{"anyOf":[{"type":"string","maxLength":36},{"type":"null"}],"title":"X-Confirmation-Id"}},{"name":"x-chat-id","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"X-Chat-Id"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ApplyOrganizationOptoutsRequest"}}}},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/AppliedMaintenanceOptoutMigration"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/admin/engagement/scheduled-followup-cancellations/preview":{"post":{"tags":["admin"],"summary":"Preview","operationId":"preview_admin_engagement_scheduled_followup_cancellations_preview_post","security":[{"APIKeyHeader":[]},{"HTTPBearer":[]}],"parameters":[{"name":"organization-id","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Organization-Id"}},{"name":"timezone","in":"header","required":false,"schema":{"type":"string","default":"UTC","title":"Timezone"}},{"name":"x-user-id","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"X-User-Id"}},{"name":"x-actor-email","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"X-Actor-Email"}},{"name":"x-request-source","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"X-Request-Source"}},{"name":"x-operation-id","in":"header","required":false,"schema":{"anyOf":[{"type":"string","maxLength":36},{"type":"null"}],"title":"X-Operation-Id"}},{"name":"x-commit-message","in":"header","required":false,"schema":{"anyOf":[{"type":"string","minLength":1},{"type":"null"}],"title":"X-Commit-Message"}},{"name":"x-confirmation-id","in":"header","required":false,"schema":{"anyOf":[{"type":"string","maxLength":36},{"type":"null"}],"title":"X-Confirmation-Id"}},{"name":"x-chat-id","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"X-Chat-Id"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/CancellationRequest"}}}},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/CancellationPreview"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/admin/engagement/scheduled-followup-cancellations/apply":{"post":{"tags":["admin"],"summary":"Apply","operationId":"apply_admin_engagement_scheduled_followup_cancellations_apply_post","security":[{"APIKeyHeader":[]},{"HTTPBearer":[]}],"parameters":[{"name":"organization-id","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Organization-Id"}},{"name":"timezone","in":"header","required":false,"schema":{"type":"string","default":"UTC","title":"Timezone"}},{"name":"x-user-id","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"X-User-Id"}},{"name":"x-actor-email","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"X-Actor-Email"}},{"name":"x-request-source","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"X-Request-Source"}},{"name":"x-operation-id","in":"header","required":false,"schema":{"anyOf":[{"type":"string","maxLength":36},{"type":"null"}],"title":"X-Operation-Id"}},{"name":"x-commit-message","in":"header","required":false,"schema":{"anyOf":[{"type":"string","minLength":1},{"type":"null"}],"title":"X-Commit-Message"}},{"name":"x-confirmation-id","in":"header","required":false,"schema":{"anyOf":[{"type":"string","maxLength":36},{"type":"null"}],"title":"X-Confirmation-Id"}},{"name":"x-chat-id","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"X-Chat-Id"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ApplyCancellationRequest"}}}},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/CancellationResult"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/admin/voice-setup/search":{"post":{"tags":["admin"],"summary":"Search","operationId":"search_admin_voice_setup_search_post","security":[{"APIKeyHeader":[]},{"HTTPBearer":[]}],"parameters":[{"name":"organization-id","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Organization-Id"}},{"name":"timezone","in":"header","required":false,"schema":{"type":"string","default":"UTC","title":"Timezone"}},{"name":"x-user-id","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"X-User-Id"}},{"name":"x-actor-email","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"X-Actor-Email"}},{"name":"x-request-source","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"X-Request-Source"}},{"name":"x-operation-id","in":"header","required":false,"schema":{"anyOf":[{"type":"string","maxLength":36},{"type":"null"}],"title":"X-Operation-Id"}},{"name":"x-commit-message","in":"header","required":false,"schema":{"anyOf":[{"type":"string","minLength":1},{"type":"null"}],"title":"X-Commit-Message"}},{"name":"x-confirmation-id","in":"header","required":false,"schema":{"anyOf":[{"type":"string","maxLength":36},{"type":"null"}],"title":"X-Confirmation-Id"}},{"name":"x-chat-id","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"X-Chat-Id"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"type":"object","additionalProperties":true,"title":"Body"}}}},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"type":"object","additionalProperties":true,"title":"Response Search Admin Voice Setup Search Post"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/admin/voice-setup/preview":{"post":{"tags":["admin"],"summary":"Preview","operationId":"preview_admin_voice_setup_preview_post","security":[{"APIKeyHeader":[]},{"HTTPBearer":[]}],"parameters":[{"name":"organization-id","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Organization-Id"}},{"name":"timezone","in":"header","required":false,"schema":{"type":"string","default":"UTC","title":"Timezone"}},{"name":"x-user-id","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"X-User-Id"}},{"name":"x-actor-email","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"X-Actor-Email"}},{"name":"x-request-source","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"X-Request-Source"}},{"name":"x-operation-id","in":"header","required":false,"schema":{"anyOf":[{"type":"string","maxLength":36},{"type":"null"}],"title":"X-Operation-Id"}},{"name":"x-commit-message","in":"header","required":false,"schema":{"anyOf":[{"type":"string","minLength":1},{"type":"null"}],"title":"X-Commit-Message"}},{"name":"x-confirmation-id","in":"header","required":false,"schema":{"anyOf":[{"type":"string","maxLength":36},{"type":"null"}],"title":"X-Confirmation-Id"}},{"name":"x-chat-id","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"X-Chat-Id"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"type":"object","additionalProperties":true,"title":"Body"}}}},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"type":"object","additionalProperties":true,"title":"Response Preview Admin Voice Setup Preview Post"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/admin/voice-setup/apply":{"post":{"tags":["admin"],"summary":"Apply","operationId":"apply_admin_voice_setup_apply_post","security":[{"APIKeyHeader":[]},{"HTTPBearer":[]}],"parameters":[{"name":"organization-id","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Organization-Id"}},{"name":"timezone","in":"header","required":false,"schema":{"type":"string","default":"UTC","title":"Timezone"}},{"name":"x-user-id","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"X-User-Id"}},{"name":"x-actor-email","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"X-Actor-Email"}},{"name":"x-request-source","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"X-Request-Source"}},{"name":"x-operation-id","in":"header","required":false,"schema":{"anyOf":[{"type":"string","maxLength":36},{"type":"null"}],"title":"X-Operation-Id"}},{"name":"x-commit-message","in":"header","required":false,"schema":{"anyOf":[{"type":"string","minLength":1},{"type":"null"}],"title":"X-Commit-Message"}},{"name":"x-confirmation-id","in":"header","required":false,"schema":{"anyOf":[{"type":"string","maxLength":36},{"type":"null"}],"title":"X-Confirmation-Id"}},{"name":"x-chat-id","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"X-Chat-Id"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"type":"object","additionalProperties":true,"title":"Body"}}}},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"type":"object","additionalProperties":true,"title":"Response Apply Admin Voice Setup Apply Post"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/admin/preferences/organizations/{organization_id}/decisions/{preference_key}":{"get":{"tags":["admin","preferences"],"summary":"Get Decision Document","operationId":"get_decision_document_admin_preferences_organizations__organization_id__decisions__preference_key__get","security":[{"APIKeyHeader":[]},{"HTTPBearer":[]}],"parameters":[{"name":"organization_id","in":"path","required":true,"schema":{"type":"string","title":"Organization Id"}},{"name":"preference_key","in":"path","required":true,"schema":{"type":"string","title":"Preference Key"}},{"name":"entry_key","in":"query","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Entry Key"}},{"name":"organization-id","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Organization-Id"}},{"name":"timezone","in":"header","required":false,"schema":{"type":"string","default":"UTC","title":"Timezone"}},{"name":"x-user-id","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"X-User-Id"}},{"name":"x-actor-email","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"X-Actor-Email"}},{"name":"x-request-source","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"X-Request-Source"}},{"name":"x-operation-id","in":"header","required":false,"schema":{"anyOf":[{"type":"string","maxLength":36},{"type":"null"}],"title":"X-Operation-Id"}},{"name":"x-commit-message","in":"header","required":false,"schema":{"anyOf":[{"type":"string","minLength":1},{"type":"null"}],"title":"X-Commit-Message"}},{"name":"x-confirmation-id","in":"header","required":false,"schema":{"anyOf":[{"type":"string","maxLength":36},{"type":"null"}],"title":"X-Confirmation-Id"}},{"name":"x-chat-id","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"X-Chat-Id"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"type":"object","additionalProperties":true,"title":"Response Get Decision Document Admin Preferences Organizations  Organization Id  Decisions  Preference Key  Get"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/admin/preferences/organizations/{organization_id}/decisions/{preference_key}/edit":{"post":{"tags":["admin","preferences"],"summary":"Edit Decision Document","operationId":"edit_decision_document_admin_preferences_organizations__organization_id__decisions__preference_key__edit_post","security":[{"APIKeyHeader":[]},{"HTTPBearer":[]}],"parameters":[{"name":"organization_id","in":"path","required":true,"schema":{"type":"string","title":"Organization Id"}},{"name":"preference_key","in":"path","required":true,"schema":{"type":"string","title":"Preference Key"}},{"name":"entry_key","in":"query","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Entry Key"}},{"name":"organization-id","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Organization-Id"}},{"name":"timezone","in":"header","required":false,"schema":{"type":"string","default":"UTC","title":"Timezone"}},{"name":"x-user-id","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"X-User-Id"}},{"name":"x-actor-email","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"X-Actor-Email"}},{"name":"x-request-source","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"X-Request-Source"}},{"name":"x-operation-id","in":"header","required":false,"schema":{"anyOf":[{"type":"string","maxLength":36},{"type":"null"}],"title":"X-Operation-Id"}},{"name":"x-commit-message","in":"header","required":false,"schema":{"anyOf":[{"type":"string","minLength":1},{"type":"null"}],"title":"X-Commit-Message"}},{"name":"x-confirmation-id","in":"header","required":false,"schema":{"anyOf":[{"type":"string","maxLength":36},{"type":"null"}],"title":"X-Confirmation-Id"}},{"name":"x-chat-id","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"X-Chat-Id"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/DecisionPatchRequest"}}}},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"type":"object","additionalProperties":true,"title":"Response Edit Decision Document Admin Preferences Organizations  Organization Id  Decisions  Preference Key  Edit Post"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/admin/integrations/semrush/request":{"post":{"tags":["admin"],"summary":"Semrush Request","operationId":"semrush_request_admin_integrations_semrush_request_post","security":[{"APIKeyHeader":[]},{"HTTPBearer":[]}],"parameters":[{"name":"organization-id","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Organization-Id"}},{"name":"timezone","in":"header","required":false,"schema":{"type":"string","default":"UTC","title":"Timezone"}},{"name":"x-user-id","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"X-User-Id"}},{"name":"x-actor-email","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"X-Actor-Email"}},{"name":"x-request-source","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"X-Request-Source"}},{"name":"x-operation-id","in":"header","required":false,"schema":{"anyOf":[{"type":"string","maxLength":36},{"type":"null"}],"title":"X-Operation-Id"}},{"name":"x-commit-message","in":"header","required":false,"schema":{"anyOf":[{"type":"string","minLength":1},{"type":"null"}],"title":"X-Commit-Message"}},{"name":"x-confirmation-id","in":"header","required":false,"schema":{"anyOf":[{"type":"string","maxLength":36},{"type":"null"}],"title":"X-Confirmation-Id"}},{"name":"x-chat-id","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"X-Chat-Id"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/SemrushApiRequest"}}}},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ProviderApiResponse"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/admin/integrations/geotab/request":{"post":{"tags":["admin"],"summary":"Geotab Request","operationId":"geotab_request_admin_integrations_geotab_request_post","security":[{"APIKeyHeader":[]},{"HTTPBearer":[]}],"parameters":[{"name":"organization-id","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Organization-Id"}},{"name":"timezone","in":"header","required":false,"schema":{"type":"string","default":"UTC","title":"Timezone"}},{"name":"x-user-id","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"X-User-Id"}},{"name":"x-actor-email","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"X-Actor-Email"}},{"name":"x-request-source","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"X-Request-Source"}},{"name":"x-operation-id","in":"header","required":false,"schema":{"anyOf":[{"type":"string","maxLength":36},{"type":"null"}],"title":"X-Operation-Id"}},{"name":"x-commit-message","in":"header","required":false,"schema":{"anyOf":[{"type":"string","minLength":1},{"type":"null"}],"title":"X-Commit-Message"}},{"name":"x-confirmation-id","in":"header","required":false,"schema":{"anyOf":[{"type":"string","maxLength":36},{"type":"null"}],"title":"X-Confirmation-Id"}},{"name":"x-chat-id","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"X-Chat-Id"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/GeotabApiRequest"}}}},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ProviderApiResponse"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/admin/integrations/google-analytics/request":{"post":{"tags":["admin"],"summary":"Google Analytics Request","operationId":"google_analytics_request_admin_integrations_google_analytics_request_post","security":[{"APIKeyHeader":[]},{"HTTPBearer":[]}],"parameters":[{"name":"organization-id","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Organization-Id"}},{"name":"timezone","in":"header","required":false,"schema":{"type":"string","default":"UTC","title":"Timezone"}},{"name":"x-user-id","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"X-User-Id"}},{"name":"x-actor-email","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"X-Actor-Email"}},{"name":"x-request-source","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"X-Request-Source"}},{"name":"x-operation-id","in":"header","required":false,"schema":{"anyOf":[{"type":"string","maxLength":36},{"type":"null"}],"title":"X-Operation-Id"}},{"name":"x-commit-message","in":"header","required":false,"schema":{"anyOf":[{"type":"string","minLength":1},{"type":"null"}],"title":"X-Commit-Message"}},{"name":"x-confirmation-id","in":"header","required":false,"schema":{"anyOf":[{"type":"string","maxLength":36},{"type":"null"}],"title":"X-Confirmation-Id"}},{"name":"x-chat-id","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"X-Chat-Id"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/GoogleAnalyticsApiRequest"}}}},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ProviderApiResponse"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/admin/angi/connections":{"post":{"tags":["admin","admin"],"summary":"Create Connection","operationId":"create_connection_admin_angi_connections_post","security":[{"APIKeyHeader":[]},{"HTTPBearer":[]}],"parameters":[{"name":"organization-id","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Organization-Id"}},{"name":"timezone","in":"header","required":false,"schema":{"type":"string","default":"UTC","title":"Timezone"}},{"name":"x-user-id","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"X-User-Id"}},{"name":"x-actor-email","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"X-Actor-Email"}},{"name":"x-request-source","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"X-Request-Source"}},{"name":"x-operation-id","in":"header","required":false,"schema":{"anyOf":[{"type":"string","maxLength":36},{"type":"null"}],"title":"X-Operation-Id"}},{"name":"x-commit-message","in":"header","required":false,"schema":{"anyOf":[{"type":"string","minLength":1},{"type":"null"}],"title":"X-Commit-Message"}},{"name":"x-confirmation-id","in":"header","required":false,"schema":{"anyOf":[{"type":"string","maxLength":36},{"type":"null"}],"title":"X-Confirmation-Id"}},{"name":"x-chat-id","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"X-Chat-Id"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/AngiConnectionCreateRequest"}}}},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/AngiConnectionWithApiKeyResponse"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}},"get":{"tags":["admin","admin"],"summary":"List Connections","operationId":"list_connections_admin_angi_connections_get","security":[{"APIKeyHeader":[]},{"HTTPBearer":[]}],"parameters":[{"name":"organization_id","in":"query","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Organization Id"}},{"name":"company_name","in":"query","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Company Name"}},{"name":"status","in":"query","required":false,"schema":{"anyOf":[{"$ref":"#/components/schemas/AngiConnectionStatus"},{"type":"null"}],"title":"Status"}},{"name":"environment","in":"query","required":false,"schema":{"anyOf":[{"$ref":"#/components/schemas/AngiEnvironment"},{"type":"null"}],"title":"Environment"}},{"name":"organization-id","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Organization-Id"}},{"name":"timezone","in":"header","required":false,"schema":{"type":"string","default":"UTC","title":"Timezone"}},{"name":"x-user-id","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"X-User-Id"}},{"name":"x-actor-email","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"X-Actor-Email"}},{"name":"x-request-source","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"X-Request-Source"}},{"name":"x-operation-id","in":"header","required":false,"schema":{"anyOf":[{"type":"string","maxLength":36},{"type":"null"}],"title":"X-Operation-Id"}},{"name":"x-commit-message","in":"header","required":false,"schema":{"anyOf":[{"type":"string","minLength":1},{"type":"null"}],"title":"X-Commit-Message"}},{"name":"x-confirmation-id","in":"header","required":false,"schema":{"anyOf":[{"type":"string","maxLength":36},{"type":"null"}],"title":"X-Confirmation-Id"}},{"name":"x-chat-id","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"X-Chat-Id"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"type":"array","items":{"$ref":"#/components/schemas/AngiConnectionResponse"},"title":"Response List Connections Admin Angi Connections Get"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/admin/angi/connections/{connection_id}":{"get":{"tags":["admin","admin"],"summary":"Get Connection","operationId":"get_connection_admin_angi_connections__connection_id__get","security":[{"APIKeyHeader":[]},{"HTTPBearer":[]}],"parameters":[{"name":"connection_id","in":"path","required":true,"schema":{"type":"string","title":"Connection Id"}},{"name":"organization-id","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Organization-Id"}},{"name":"timezone","in":"header","required":false,"schema":{"type":"string","default":"UTC","title":"Timezone"}},{"name":"x-user-id","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"X-User-Id"}},{"name":"x-actor-email","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"X-Actor-Email"}},{"name":"x-request-source","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"X-Request-Source"}},{"name":"x-operation-id","in":"header","required":false,"schema":{"anyOf":[{"type":"string","maxLength":36},{"type":"null"}],"title":"X-Operation-Id"}},{"name":"x-commit-message","in":"header","required":false,"schema":{"anyOf":[{"type":"string","minLength":1},{"type":"null"}],"title":"X-Commit-Message"}},{"name":"x-confirmation-id","in":"header","required":false,"schema":{"anyOf":[{"type":"string","maxLength":36},{"type":"null"}],"title":"X-Confirmation-Id"}},{"name":"x-chat-id","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"X-Chat-Id"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/AngiConnectionResponse"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}},"patch":{"tags":["admin","admin"],"summary":"Update Connection","operationId":"update_connection_admin_angi_connections__connection_id__patch","security":[{"APIKeyHeader":[]},{"HTTPBearer":[]}],"parameters":[{"name":"connection_id","in":"path","required":true,"schema":{"type":"string","title":"Connection Id"}},{"name":"organization-id","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Organization-Id"}},{"name":"timezone","in":"header","required":false,"schema":{"type":"string","default":"UTC","title":"Timezone"}},{"name":"x-user-id","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"X-User-Id"}},{"name":"x-actor-email","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"X-Actor-Email"}},{"name":"x-request-source","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"X-Request-Source"}},{"name":"x-operation-id","in":"header","required":false,"schema":{"anyOf":[{"type":"string","maxLength":36},{"type":"null"}],"title":"X-Operation-Id"}},{"name":"x-commit-message","in":"header","required":false,"schema":{"anyOf":[{"type":"string","minLength":1},{"type":"null"}],"title":"X-Commit-Message"}},{"name":"x-confirmation-id","in":"header","required":false,"schema":{"anyOf":[{"type":"string","maxLength":36},{"type":"null"}],"title":"X-Confirmation-Id"}},{"name":"x-chat-id","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"X-Chat-Id"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/AngiConnectionUpdateRequest"}}}},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/AngiConnectionResponse"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/admin/angi/connections/{connection_id}/rotate-api-key":{"post":{"tags":["admin","admin"],"summary":"Rotate Connection Api Key","operationId":"rotate_connection_api_key_admin_angi_connections__connection_id__rotate_api_key_post","security":[{"APIKeyHeader":[]},{"HTTPBearer":[]}],"parameters":[{"name":"connection_id","in":"path","required":true,"schema":{"type":"string","title":"Connection Id"}},{"name":"organization-id","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Organization-Id"}},{"name":"timezone","in":"header","required":false,"schema":{"type":"string","default":"UTC","title":"Timezone"}},{"name":"x-user-id","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"X-User-Id"}},{"name":"x-actor-email","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"X-Actor-Email"}},{"name":"x-request-source","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"X-Request-Source"}},{"name":"x-operation-id","in":"header","required":false,"schema":{"anyOf":[{"type":"string","maxLength":36},{"type":"null"}],"title":"X-Operation-Id"}},{"name":"x-commit-message","in":"header","required":false,"schema":{"anyOf":[{"type":"string","minLength":1},{"type":"null"}],"title":"X-Commit-Message"}},{"name":"x-confirmation-id","in":"header","required":false,"schema":{"anyOf":[{"type":"string","maxLength":36},{"type":"null"}],"title":"X-Confirmation-Id"}},{"name":"x-chat-id","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"X-Chat-Id"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/AngiRotateApiKeyRequest"}}}},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/AngiConnectionWithApiKeyResponse"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/admin/angi/events":{"get":{"tags":["admin","admin"],"summary":"List Events","operationId":"list_events_admin_angi_events_get","security":[{"APIKeyHeader":[]},{"HTTPBearer":[]}],"parameters":[{"name":"organization_id","in":"query","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Organization Id"}},{"name":"connection_id","in":"query","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Connection Id"}},{"name":"status","in":"query","required":false,"schema":{"anyOf":[{"$ref":"#/components/schemas/AngiWebhookEventStatus"},{"type":"null"}],"title":"Status"}},{"name":"company_name","in":"query","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Company Name"}},{"name":"created_from","in":"query","required":false,"schema":{"anyOf":[{"type":"string","format":"date-time"},{"type":"null"}],"title":"Created From"}},{"name":"created_to","in":"query","required":false,"schema":{"anyOf":[{"type":"string","format":"date-time"},{"type":"null"}],"title":"Created To"}},{"name":"limit","in":"query","required":false,"schema":{"type":"integer","maximum":200,"minimum":1,"default":50,"title":"Limit"}},{"name":"cursor","in":"query","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Cursor"}},{"name":"organization-id","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Organization-Id"}},{"name":"timezone","in":"header","required":false,"schema":{"type":"string","default":"UTC","title":"Timezone"}},{"name":"x-user-id","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"X-User-Id"}},{"name":"x-actor-email","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"X-Actor-Email"}},{"name":"x-request-source","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"X-Request-Source"}},{"name":"x-operation-id","in":"header","required":false,"schema":{"anyOf":[{"type":"string","maxLength":36},{"type":"null"}],"title":"X-Operation-Id"}},{"name":"x-commit-message","in":"header","required":false,"schema":{"anyOf":[{"type":"string","minLength":1},{"type":"null"}],"title":"X-Commit-Message"}},{"name":"x-confirmation-id","in":"header","required":false,"schema":{"anyOf":[{"type":"string","maxLength":36},{"type":"null"}],"title":"X-Confirmation-Id"}},{"name":"x-chat-id","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"X-Chat-Id"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/AngiEventListResponse"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/admin/angi/events/{event_id}":{"get":{"tags":["admin","admin"],"summary":"Get Event","operationId":"get_event_admin_angi_events__event_id__get","security":[{"APIKeyHeader":[]},{"HTTPBearer":[]}],"parameters":[{"name":"event_id","in":"path","required":true,"schema":{"type":"string","title":"Event Id"}},{"name":"organization-id","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Organization-Id"}},{"name":"timezone","in":"header","required":false,"schema":{"type":"string","default":"UTC","title":"Timezone"}},{"name":"x-user-id","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"X-User-Id"}},{"name":"x-actor-email","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"X-Actor-Email"}},{"name":"x-request-source","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"X-Request-Source"}},{"name":"x-operation-id","in":"header","required":false,"schema":{"anyOf":[{"type":"string","maxLength":36},{"type":"null"}],"title":"X-Operation-Id"}},{"name":"x-commit-message","in":"header","required":false,"schema":{"anyOf":[{"type":"string","minLength":1},{"type":"null"}],"title":"X-Commit-Message"}},{"name":"x-confirmation-id","in":"header","required":false,"schema":{"anyOf":[{"type":"string","maxLength":36},{"type":"null"}],"title":"X-Confirmation-Id"}},{"name":"x-chat-id","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"X-Chat-Id"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/AngiEventResponse"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/admin/angi/events/{event_id}/replay":{"post":{"tags":["admin","admin"],"summary":"Replay Event","operationId":"replay_event_admin_angi_events__event_id__replay_post","security":[{"APIKeyHeader":[]},{"HTTPBearer":[]}],"parameters":[{"name":"event_id","in":"path","required":true,"schema":{"type":"string","title":"Event Id"}},{"name":"organization-id","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Organization-Id"}},{"name":"timezone","in":"header","required":false,"schema":{"type":"string","default":"UTC","title":"Timezone"}},{"name":"x-user-id","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"X-User-Id"}},{"name":"x-actor-email","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"X-Actor-Email"}},{"name":"x-request-source","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"X-Request-Source"}},{"name":"x-operation-id","in":"header","required":false,"schema":{"anyOf":[{"type":"string","maxLength":36},{"type":"null"}],"title":"X-Operation-Id"}},{"name":"x-commit-message","in":"header","required":false,"schema":{"anyOf":[{"type":"string","minLength":1},{"type":"null"}],"title":"X-Commit-Message"}},{"name":"x-confirmation-id","in":"header","required":false,"schema":{"anyOf":[{"type":"string","maxLength":36},{"type":"null"}],"title":"X-Confirmation-Id"}},{"name":"x-chat-id","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"X-Chat-Id"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/AngiReplayResponse"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/admin/lsa-recordings/capture":{"post":{"tags":["admin","admin"],"summary":"Capture Recording","description":"Re-report one LSA lead's sighting so ingest fetches and stores its recording.","operationId":"capture_recording_admin_lsa_recordings_capture_post","security":[{"APIKeyHeader":[]},{"HTTPBearer":[]}],"parameters":[{"name":"organization-id","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Organization-Id"}},{"name":"timezone","in":"header","required":false,"schema":{"type":"string","default":"UTC","title":"Timezone"}},{"name":"x-user-id","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"X-User-Id"}},{"name":"x-actor-email","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"X-Actor-Email"}},{"name":"x-request-source","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"X-Request-Source"}},{"name":"x-operation-id","in":"header","required":false,"schema":{"anyOf":[{"type":"string","maxLength":36},{"type":"null"}],"title":"X-Operation-Id"}},{"name":"x-commit-message","in":"header","required":false,"schema":{"anyOf":[{"type":"string","minLength":1},{"type":"null"}],"title":"X-Commit-Message"}},{"name":"x-confirmation-id","in":"header","required":false,"schema":{"anyOf":[{"type":"string","maxLength":36},{"type":"null"}],"title":"X-Confirmation-Id"}},{"name":"x-chat-id","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"X-Chat-Id"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/CaptureLsaRecordingRequest"}}}},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/CaptureLsaRecordingResponse"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/admin/announcements/active":{"get":{"tags":["admin","announcements"],"summary":"Read Active Announcement","operationId":"read_active_announcement_admin_announcements_active_get","security":[{"APIKeyHeader":[]},{"HTTPBearer":[]}],"parameters":[{"name":"organization-id","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Organization-Id"}},{"name":"timezone","in":"header","required":false,"schema":{"type":"string","default":"UTC","title":"Timezone"}},{"name":"x-user-id","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"X-User-Id"}},{"name":"x-actor-email","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"X-Actor-Email"}},{"name":"x-request-source","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"X-Request-Source"}},{"name":"x-operation-id","in":"header","required":false,"schema":{"anyOf":[{"type":"string","maxLength":36},{"type":"null"}],"title":"X-Operation-Id"}},{"name":"x-commit-message","in":"header","required":false,"schema":{"anyOf":[{"type":"string","minLength":1},{"type":"null"}],"title":"X-Commit-Message"}},{"name":"x-confirmation-id","in":"header","required":false,"schema":{"anyOf":[{"type":"string","maxLength":36},{"type":"null"}],"title":"X-Confirmation-Id"}},{"name":"x-chat-id","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"X-Chat-Id"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"anyOf":[{"$ref":"#/components/schemas/AnnouncementResponse"},{"type":"null"}],"title":"Response Read Active Announcement Admin Announcements Active Get"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/admin/announcements/":{"post":{"tags":["admin","announcements"],"summary":"Create Announcement","operationId":"create_announcement_admin_announcements__post","security":[{"APIKeyHeader":[]},{"HTTPBearer":[]}],"parameters":[{"name":"organization-id","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Organization-Id"}},{"name":"timezone","in":"header","required":false,"schema":{"type":"string","default":"UTC","title":"Timezone"}},{"name":"x-user-id","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"X-User-Id"}},{"name":"x-actor-email","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"X-Actor-Email"}},{"name":"x-request-source","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"X-Request-Source"}},{"name":"x-operation-id","in":"header","required":false,"schema":{"anyOf":[{"type":"string","maxLength":36},{"type":"null"}],"title":"X-Operation-Id"}},{"name":"x-commit-message","in":"header","required":false,"schema":{"anyOf":[{"type":"string","minLength":1},{"type":"null"}],"title":"X-Commit-Message"}},{"name":"x-confirmation-id","in":"header","required":false,"schema":{"anyOf":[{"type":"string","maxLength":36},{"type":"null"}],"title":"X-Confirmation-Id"}},{"name":"x-chat-id","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"X-Chat-Id"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/CreateAnnouncementRequest"}}}},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/AnnouncementMutationResult"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/admin/announcements/{announcement_id}":{"put":{"tags":["admin","announcements"],"summary":"Update Announcement","operationId":"update_announcement_admin_announcements__announcement_id__put","security":[{"APIKeyHeader":[]},{"HTTPBearer":[]}],"parameters":[{"name":"announcement_id","in":"path","required":true,"schema":{"type":"string","title":"Announcement Id"}},{"name":"organization-id","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Organization-Id"}},{"name":"timezone","in":"header","required":false,"schema":{"type":"string","default":"UTC","title":"Timezone"}},{"name":"x-user-id","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"X-User-Id"}},{"name":"x-actor-email","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"X-Actor-Email"}},{"name":"x-request-source","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"X-Request-Source"}},{"name":"x-operation-id","in":"header","required":false,"schema":{"anyOf":[{"type":"string","maxLength":36},{"type":"null"}],"title":"X-Operation-Id"}},{"name":"x-commit-message","in":"header","required":false,"schema":{"anyOf":[{"type":"string","minLength":1},{"type":"null"}],"title":"X-Commit-Message"}},{"name":"x-confirmation-id","in":"header","required":false,"schema":{"anyOf":[{"type":"string","maxLength":36},{"type":"null"}],"title":"X-Confirmation-Id"}},{"name":"x-chat-id","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"X-Chat-Id"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/UpdateAnnouncementRequest"}}}},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/AnnouncementMutationResult"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/admin/announcements/{announcement_id}/deactivate":{"put":{"tags":["admin","announcements"],"summary":"Deactivate Announcement","operationId":"deactivate_announcement_admin_announcements__announcement_id__deactivate_put","security":[{"APIKeyHeader":[]},{"HTTPBearer":[]}],"parameters":[{"name":"announcement_id","in":"path","required":true,"schema":{"type":"string","title":"Announcement Id"}},{"name":"organization-id","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Organization-Id"}},{"name":"timezone","in":"header","required":false,"schema":{"type":"string","default":"UTC","title":"Timezone"}},{"name":"x-user-id","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"X-User-Id"}},{"name":"x-actor-email","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"X-Actor-Email"}},{"name":"x-request-source","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"X-Request-Source"}},{"name":"x-operation-id","in":"header","required":false,"schema":{"anyOf":[{"type":"string","maxLength":36},{"type":"null"}],"title":"X-Operation-Id"}},{"name":"x-commit-message","in":"header","required":false,"schema":{"anyOf":[{"type":"string","minLength":1},{"type":"null"}],"title":"X-Commit-Message"}},{"name":"x-confirmation-id","in":"header","required":false,"schema":{"anyOf":[{"type":"string","maxLength":36},{"type":"null"}],"title":"X-Confirmation-Id"}},{"name":"x-chat-id","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"X-Chat-Id"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/AnnouncementMutationResult"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/admin/ask-jenny/supported-metrics":{"get":{"tags":["admin","ask-jenny"],"summary":"Get Supported Metrics","description":"Fixture-certified query_metrics, with expected-vs-actual rows from the last hourly check.","operationId":"get_supported_metrics_admin_ask_jenny_supported_metrics_get","security":[{"APIKeyHeader":[]},{"HTTPBearer":[]}],"parameters":[{"name":"organization-id","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Organization-Id"}},{"name":"timezone","in":"header","required":false,"schema":{"type":"string","default":"UTC","title":"Timezone"}},{"name":"x-user-id","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"X-User-Id"}},{"name":"x-actor-email","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"X-Actor-Email"}},{"name":"x-request-source","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"X-Request-Source"}},{"name":"x-operation-id","in":"header","required":false,"schema":{"anyOf":[{"type":"string","maxLength":36},{"type":"null"}],"title":"X-Operation-Id"}},{"name":"x-commit-message","in":"header","required":false,"schema":{"anyOf":[{"type":"string","minLength":1},{"type":"null"}],"title":"X-Commit-Message"}},{"name":"x-confirmation-id","in":"header","required":false,"schema":{"anyOf":[{"type":"string","maxLength":36},{"type":"null"}],"title":"X-Confirmation-Id"}},{"name":"x-chat-id","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"X-Chat-Id"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/SupportedMetricsResponse"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/admin/billing/accounts":{"get":{"tags":["admin","admin-billing"],"summary":"List Billing Accounts","operationId":"list_billing_accounts_admin_billing_accounts_get","security":[{"APIKeyHeader":[]},{"HTTPBearer":[]}],"parameters":[{"name":"organization-id","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Organization-Id"}},{"name":"timezone","in":"header","required":false,"schema":{"type":"string","default":"UTC","title":"Timezone"}},{"name":"x-user-id","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"X-User-Id"}},{"name":"x-actor-email","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"X-Actor-Email"}},{"name":"x-request-source","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"X-Request-Source"}},{"name":"x-operation-id","in":"header","required":false,"schema":{"anyOf":[{"type":"string","maxLength":36},{"type":"null"}],"title":"X-Operation-Id"}},{"name":"x-commit-message","in":"header","required":false,"schema":{"anyOf":[{"type":"string","minLength":1},{"type":"null"}],"title":"X-Commit-Message"}},{"name":"x-confirmation-id","in":"header","required":false,"schema":{"anyOf":[{"type":"string","maxLength":36},{"type":"null"}],"title":"X-Confirmation-Id"}},{"name":"x-chat-id","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"X-Chat-Id"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"type":"array","items":{"$ref":"#/components/schemas/BillingAccountPublic"},"title":"Response List Billing Accounts Admin Billing Accounts Get"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}},"post":{"tags":["admin","admin-billing"],"summary":"Create Billing Account","operationId":"create_billing_account_admin_billing_accounts_post","security":[{"APIKeyHeader":[]},{"HTTPBearer":[]}],"parameters":[{"name":"organization-id","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Organization-Id"}},{"name":"timezone","in":"header","required":false,"schema":{"type":"string","default":"UTC","title":"Timezone"}},{"name":"x-user-id","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"X-User-Id"}},{"name":"x-actor-email","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"X-Actor-Email"}},{"name":"x-request-source","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"X-Request-Source"}},{"name":"x-operation-id","in":"header","required":false,"schema":{"anyOf":[{"type":"string","maxLength":36},{"type":"null"}],"title":"X-Operation-Id"}},{"name":"x-commit-message","in":"header","required":false,"schema":{"anyOf":[{"type":"string","minLength":1},{"type":"null"}],"title":"X-Commit-Message"}},{"name":"x-confirmation-id","in":"header","required":false,"schema":{"anyOf":[{"type":"string","maxLength":36},{"type":"null"}],"title":"X-Confirmation-Id"}},{"name":"x-chat-id","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"X-Chat-Id"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/CreateBillingAccountBody"}}}},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/BillingAccountPublic"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/admin/billing/accounts/{billing_account_id}/organizations":{"get":{"tags":["admin","admin-billing"],"summary":"Organizations For Billing Account","operationId":"organizations_for_billing_account_admin_billing_accounts__billing_account_id__organizations_get","security":[{"APIKeyHeader":[]},{"HTTPBearer":[]}],"parameters":[{"name":"billing_account_id","in":"path","required":true,"schema":{"type":"string","title":"Billing Account Id"}},{"name":"organization-id","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Organization-Id"}},{"name":"timezone","in":"header","required":false,"schema":{"type":"string","default":"UTC","title":"Timezone"}},{"name":"x-user-id","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"X-User-Id"}},{"name":"x-actor-email","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"X-Actor-Email"}},{"name":"x-request-source","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"X-Request-Source"}},{"name":"x-operation-id","in":"header","required":false,"schema":{"anyOf":[{"type":"string","maxLength":36},{"type":"null"}],"title":"X-Operation-Id"}},{"name":"x-commit-message","in":"header","required":false,"schema":{"anyOf":[{"type":"string","minLength":1},{"type":"null"}],"title":"X-Commit-Message"}},{"name":"x-confirmation-id","in":"header","required":false,"schema":{"anyOf":[{"type":"string","maxLength":36},{"type":"null"}],"title":"X-Confirmation-Id"}},{"name":"x-chat-id","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"X-Chat-Id"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"type":"array","items":{"$ref":"#/components/schemas/OrganizationSummaryPublic"},"title":"Response Organizations For Billing Account Admin Billing Accounts  Billing Account Id  Organizations Get"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/admin/billing/accounts/{billing_account_id}":{"patch":{"tags":["admin","admin-billing"],"summary":"Update Billing Account","operationId":"update_billing_account_admin_billing_accounts__billing_account_id__patch","security":[{"APIKeyHeader":[]},{"HTTPBearer":[]}],"parameters":[{"name":"billing_account_id","in":"path","required":true,"schema":{"type":"string","title":"Billing Account Id"}},{"name":"organization-id","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Organization-Id"}},{"name":"timezone","in":"header","required":false,"schema":{"type":"string","default":"UTC","title":"Timezone"}},{"name":"x-user-id","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"X-User-Id"}},{"name":"x-actor-email","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"X-Actor-Email"}},{"name":"x-request-source","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"X-Request-Source"}},{"name":"x-operation-id","in":"header","required":false,"schema":{"anyOf":[{"type":"string","maxLength":36},{"type":"null"}],"title":"X-Operation-Id"}},{"name":"x-commit-message","in":"header","required":false,"schema":{"anyOf":[{"type":"string","minLength":1},{"type":"null"}],"title":"X-Commit-Message"}},{"name":"x-confirmation-id","in":"header","required":false,"schema":{"anyOf":[{"type":"string","maxLength":36},{"type":"null"}],"title":"X-Confirmation-Id"}},{"name":"x-chat-id","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"X-Chat-Id"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/UpdateBillingAccountBody"}}}},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/BillingAccountPublic"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/admin/billing/organization-access":{"post":{"tags":["admin","admin-billing"],"summary":"Set Organization Access","operationId":"set_organization_access_admin_billing_organization_access_post","security":[{"APIKeyHeader":[]},{"HTTPBearer":[]}],"parameters":[{"name":"organization-id","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Organization-Id"}},{"name":"timezone","in":"header","required":false,"schema":{"type":"string","default":"UTC","title":"Timezone"}},{"name":"x-user-id","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"X-User-Id"}},{"name":"x-actor-email","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"X-Actor-Email"}},{"name":"x-request-source","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"X-Request-Source"}},{"name":"x-operation-id","in":"header","required":false,"schema":{"anyOf":[{"type":"string","maxLength":36},{"type":"null"}],"title":"X-Operation-Id"}},{"name":"x-commit-message","in":"header","required":false,"schema":{"anyOf":[{"type":"string","minLength":1},{"type":"null"}],"title":"X-Commit-Message"}},{"name":"x-confirmation-id","in":"header","required":false,"schema":{"anyOf":[{"type":"string","maxLength":36},{"type":"null"}],"title":"X-Confirmation-Id"}},{"name":"x-chat-id","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"X-Chat-Id"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/SetOrganizationAccessBody"}}}},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/SuccessMessage"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/admin/billing/tie-organization":{"post":{"tags":["admin","admin-billing"],"summary":"Tie Organization To Billing Account","operationId":"tie_organization_to_billing_account_admin_billing_tie_organization_post","security":[{"APIKeyHeader":[]},{"HTTPBearer":[]}],"parameters":[{"name":"organization-id","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Organization-Id"}},{"name":"timezone","in":"header","required":false,"schema":{"type":"string","default":"UTC","title":"Timezone"}},{"name":"x-user-id","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"X-User-Id"}},{"name":"x-actor-email","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"X-Actor-Email"}},{"name":"x-request-source","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"X-Request-Source"}},{"name":"x-operation-id","in":"header","required":false,"schema":{"anyOf":[{"type":"string","maxLength":36},{"type":"null"}],"title":"X-Operation-Id"}},{"name":"x-commit-message","in":"header","required":false,"schema":{"anyOf":[{"type":"string","minLength":1},{"type":"null"}],"title":"X-Commit-Message"}},{"name":"x-confirmation-id","in":"header","required":false,"schema":{"anyOf":[{"type":"string","maxLength":36},{"type":"null"}],"title":"X-Confirmation-Id"}},{"name":"x-chat-id","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"X-Chat-Id"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/TieOrganizationBody"}}}},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/SuccessMessage"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/admin/campaigns/{campaign_id}/targeting":{"get":{"tags":["admin","campaigns"],"summary":"Campaign Targeting Admin","description":"Cross-org targeting loader: same payload as the org-scoped\n``GET /campaigns/targeting/{agent_v2_id}`` but addressed by campaign id.\n\nNo org-scope check — admin is cross-org by design.","operationId":"campaign_targeting_admin_admin_campaigns__campaign_id__targeting_get","security":[{"APIKeyHeader":[]},{"HTTPBearer":[]}],"parameters":[{"name":"campaign_id","in":"path","required":true,"schema":{"type":"string","title":"Campaign Id"}},{"name":"organization-id","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Organization-Id"}},{"name":"timezone","in":"header","required":false,"schema":{"type":"string","default":"UTC","title":"Timezone"}},{"name":"x-user-id","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"X-User-Id"}},{"name":"x-actor-email","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"X-Actor-Email"}},{"name":"x-request-source","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"X-Request-Source"}},{"name":"x-operation-id","in":"header","required":false,"schema":{"anyOf":[{"type":"string","maxLength":36},{"type":"null"}],"title":"X-Operation-Id"}},{"name":"x-commit-message","in":"header","required":false,"schema":{"anyOf":[{"type":"string","minLength":1},{"type":"null"}],"title":"X-Commit-Message"}},{"name":"x-confirmation-id","in":"header","required":false,"schema":{"anyOf":[{"type":"string","maxLength":36},{"type":"null"}],"title":"X-Confirmation-Id"}},{"name":"x-chat-id","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"X-Chat-Id"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}},"put":{"tags":["admin","campaigns"],"summary":"Save Campaign Targeting Admin","description":"Cross-org save of rule-builder wire groups.\n\nAccepts the same wire shape the org ``PUT /campaigns/{id}/rules`` accepts,\nconverts groups → ``{rule_type_key, params, sort_order}`` and proxies to\ncampaign-service. The raw ``PUT /rules`` above is left untouched for callers\nthat already send converted rows. Legacy YAML campaigns 409 here so the\nadmin save can't persist rules the YAML engine never applies.","operationId":"save_campaign_targeting_admin_admin_campaigns__campaign_id__targeting_put","security":[{"APIKeyHeader":[]},{"HTTPBearer":[]}],"parameters":[{"name":"campaign_id","in":"path","required":true,"schema":{"type":"string","title":"Campaign Id"}},{"name":"organization-id","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Organization-Id"}},{"name":"timezone","in":"header","required":false,"schema":{"type":"string","default":"UTC","title":"Timezone"}},{"name":"x-user-id","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"X-User-Id"}},{"name":"x-actor-email","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"X-Actor-Email"}},{"name":"x-request-source","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"X-Request-Source"}},{"name":"x-operation-id","in":"header","required":false,"schema":{"anyOf":[{"type":"string","maxLength":36},{"type":"null"}],"title":"X-Operation-Id"}},{"name":"x-commit-message","in":"header","required":false,"schema":{"anyOf":[{"type":"string","minLength":1},{"type":"null"}],"title":"X-Commit-Message"}},{"name":"x-confirmation-id","in":"header","required":false,"schema":{"anyOf":[{"type":"string","maxLength":36},{"type":"null"}],"title":"X-Confirmation-Id"}},{"name":"x-chat-id","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"X-Chat-Id"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/SaveCampaignTargetingBody"}}}},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/admin/campaigns/{campaign_id}/targeting-preview":{"post":{"tags":["admin","campaigns"],"summary":"Campaign Targeting Preview Admin","description":"Admin-scoped targeting preview.\n\nUsed by the internal-mcp ``preview_campaign_targeting`` tool (no body →\npersisted state) and the admin rule editor (body ``rules`` → unsaved edit).\nThe org-scoped sibling requires ``context.organization``; MCP authenticates\nwith a service key and has no per-user org, so it needs this admin route.\n\nThe omitted-vs-empty ``rules`` distinction is preserved: no body forwards\nno payload (persisted resolution), ``rules: []`` forwards an explicit empty\nset (everyone), so neither is coerced into the other.","operationId":"campaign_targeting_preview_admin_admin_campaigns__campaign_id__targeting_preview_post","security":[{"APIKeyHeader":[]},{"HTTPBearer":[]}],"parameters":[{"name":"campaign_id","in":"path","required":true,"schema":{"type":"string","title":"Campaign Id"}},{"name":"include_independent","in":"query","required":false,"schema":{"type":"boolean","default":false,"title":"Include Independent"}},{"name":"apply_region","in":"query","required":false,"schema":{"type":"boolean","default":true,"title":"Apply Region"}},{"name":"organization-id","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Organization-Id"}},{"name":"timezone","in":"header","required":false,"schema":{"type":"string","default":"UTC","title":"Timezone"}},{"name":"x-user-id","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"X-User-Id"}},{"name":"x-actor-email","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"X-Actor-Email"}},{"name":"x-request-source","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"X-Request-Source"}},{"name":"x-operation-id","in":"header","required":false,"schema":{"anyOf":[{"type":"string","maxLength":36},{"type":"null"}],"title":"X-Operation-Id"}},{"name":"x-commit-message","in":"header","required":false,"schema":{"anyOf":[{"type":"string","minLength":1},{"type":"null"}],"title":"X-Commit-Message"}},{"name":"x-confirmation-id","in":"header","required":false,"schema":{"anyOf":[{"type":"string","maxLength":36},{"type":"null"}],"title":"X-Confirmation-Id"}},{"name":"x-chat-id","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"X-Chat-Id"}}],"requestBody":{"content":{"application/json":{"schema":{"anyOf":[{"$ref":"#/components/schemas/CampaignTargetingPreviewBody"},{"type":"null"}],"title":"Body"}}}},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/admin/campaigns/{campaign_id}/targeting-preview/customers":{"post":{"tags":["admin","campaigns"],"summary":"Campaign Targeting Preview Customers Admin","description":"Cross-org page of customers a rule set would target (audience modal).\n\nSame body semantics as ``targeting-preview``: ``rules`` for an unsaved\nedit, omitted for the campaign's persisted rules.","operationId":"campaign_targeting_preview_customers_admin_admin_campaigns__campaign_id__targeting_preview_customers_post","security":[{"APIKeyHeader":[]},{"HTTPBearer":[]}],"parameters":[{"name":"campaign_id","in":"path","required":true,"schema":{"type":"string","title":"Campaign Id"}},{"name":"limit","in":"query","required":false,"schema":{"type":"integer","default":50,"title":"Limit"}},{"name":"offset","in":"query","required":false,"schema":{"type":"integer","default":0,"title":"Offset"}},{"name":"organization-id","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Organization-Id"}},{"name":"timezone","in":"header","required":false,"schema":{"type":"string","default":"UTC","title":"Timezone"}},{"name":"x-user-id","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"X-User-Id"}},{"name":"x-actor-email","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"X-Actor-Email"}},{"name":"x-request-source","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"X-Request-Source"}},{"name":"x-operation-id","in":"header","required":false,"schema":{"anyOf":[{"type":"string","maxLength":36},{"type":"null"}],"title":"X-Operation-Id"}},{"name":"x-commit-message","in":"header","required":false,"schema":{"anyOf":[{"type":"string","minLength":1},{"type":"null"}],"title":"X-Commit-Message"}},{"name":"x-confirmation-id","in":"header","required":false,"schema":{"anyOf":[{"type":"string","maxLength":36},{"type":"null"}],"title":"X-Confirmation-Id"}},{"name":"x-chat-id","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"X-Chat-Id"}}],"requestBody":{"content":{"application/json":{"schema":{"anyOf":[{"$ref":"#/components/schemas/CampaignTargetingPreviewBody"},{"type":"null"}],"title":"Body"}}}},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/admin/campaigns/sends":{"get":{"tags":["admin","campaigns"],"summary":"List Campaign Sends","operationId":"list_campaign_sends_admin_campaigns_sends_get","security":[{"APIKeyHeader":[]},{"HTTPBearer":[]}],"parameters":[{"name":"organization-id","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Organization-Id"}},{"name":"timezone","in":"header","required":false,"schema":{"type":"string","default":"UTC","title":"Timezone"}},{"name":"x-user-id","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"X-User-Id"}},{"name":"x-actor-email","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"X-Actor-Email"}},{"name":"x-request-source","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"X-Request-Source"}},{"name":"x-operation-id","in":"header","required":false,"schema":{"anyOf":[{"type":"string","maxLength":36},{"type":"null"}],"title":"X-Operation-Id"}},{"name":"x-commit-message","in":"header","required":false,"schema":{"anyOf":[{"type":"string","minLength":1},{"type":"null"}],"title":"X-Commit-Message"}},{"name":"x-confirmation-id","in":"header","required":false,"schema":{"anyOf":[{"type":"string","maxLength":36},{"type":"null"}],"title":"X-Confirmation-Id"}},{"name":"x-chat-id","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"X-Chat-Id"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/admin/campaigns/sends/history/{campaign_id}":{"get":{"tags":["admin","campaigns"],"summary":"Campaign Send History","operationId":"campaign_send_history_admin_campaigns_sends_history__campaign_id__get","security":[{"APIKeyHeader":[]},{"HTTPBearer":[]}],"parameters":[{"name":"campaign_id","in":"path","required":true,"schema":{"type":"string","title":"Campaign Id"}},{"name":"organization-id","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Organization-Id"}},{"name":"timezone","in":"header","required":false,"schema":{"type":"string","default":"UTC","title":"Timezone"}},{"name":"x-user-id","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"X-User-Id"}},{"name":"x-actor-email","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"X-Actor-Email"}},{"name":"x-request-source","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"X-Request-Source"}},{"name":"x-operation-id","in":"header","required":false,"schema":{"anyOf":[{"type":"string","maxLength":36},{"type":"null"}],"title":"X-Operation-Id"}},{"name":"x-commit-message","in":"header","required":false,"schema":{"anyOf":[{"type":"string","minLength":1},{"type":"null"}],"title":"X-Commit-Message"}},{"name":"x-confirmation-id","in":"header","required":false,"schema":{"anyOf":[{"type":"string","maxLength":36},{"type":"null"}],"title":"X-Confirmation-Id"}},{"name":"x-chat-id","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"X-Chat-Id"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/admin/campaigns/sends/{campaign_send_id}/status":{"put":{"tags":["admin","campaigns"],"summary":"Update Campaign Send Status","operationId":"update_campaign_send_status_admin_campaigns_sends__campaign_send_id__status_put","security":[{"APIKeyHeader":[]},{"HTTPBearer":[]}],"parameters":[{"name":"campaign_send_id","in":"path","required":true,"schema":{"type":"string","title":"Campaign Send Id"}},{"name":"organization-id","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Organization-Id"}},{"name":"timezone","in":"header","required":false,"schema":{"type":"string","default":"UTC","title":"Timezone"}},{"name":"x-user-id","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"X-User-Id"}},{"name":"x-actor-email","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"X-Actor-Email"}},{"name":"x-request-source","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"X-Request-Source"}},{"name":"x-operation-id","in":"header","required":false,"schema":{"anyOf":[{"type":"string","maxLength":36},{"type":"null"}],"title":"X-Operation-Id"}},{"name":"x-commit-message","in":"header","required":false,"schema":{"anyOf":[{"type":"string","minLength":1},{"type":"null"}],"title":"X-Commit-Message"}},{"name":"x-confirmation-id","in":"header","required":false,"schema":{"anyOf":[{"type":"string","maxLength":36},{"type":"null"}],"title":"X-Confirmation-Id"}},{"name":"x-chat-id","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"X-Chat-Id"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/admin/campaigns/sends/trigger":{"post":{"tags":["admin","campaigns"],"summary":"Trigger Campaign Send","operationId":"trigger_campaign_send_admin_campaigns_sends_trigger_post","security":[{"APIKeyHeader":[]},{"HTTPBearer":[]}],"parameters":[{"name":"organization-id","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Organization-Id"}},{"name":"timezone","in":"header","required":false,"schema":{"type":"string","default":"UTC","title":"Timezone"}},{"name":"x-user-id","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"X-User-Id"}},{"name":"x-actor-email","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"X-Actor-Email"}},{"name":"x-request-source","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"X-Request-Source"}},{"name":"x-operation-id","in":"header","required":false,"schema":{"anyOf":[{"type":"string","maxLength":36},{"type":"null"}],"title":"X-Operation-Id"}},{"name":"x-commit-message","in":"header","required":false,"schema":{"anyOf":[{"type":"string","minLength":1},{"type":"null"}],"title":"X-Commit-Message"}},{"name":"x-confirmation-id","in":"header","required":false,"schema":{"anyOf":[{"type":"string","maxLength":36},{"type":"null"}],"title":"X-Confirmation-Id"}},{"name":"x-chat-id","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"X-Chat-Id"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/admin/campaigns/preflight-snapshots":{"get":{"tags":["admin","campaigns"],"summary":"List Preflight Snapshots","description":"List preflight snapshots across orgs (newest run first). Filters are optional.","operationId":"list_preflight_snapshots_admin_campaigns_preflight_snapshots_get","security":[{"APIKeyHeader":[]},{"HTTPBearer":[]}],"parameters":[{"name":"organization_id","in":"query","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Organization Id"}},{"name":"start_date","in":"query","required":false,"schema":{"anyOf":[{"type":"string","format":"date"},{"type":"null"}],"title":"Start Date"}},{"name":"end_date","in":"query","required":false,"schema":{"anyOf":[{"type":"string","format":"date"},{"type":"null"}],"title":"End Date"}},{"name":"limit","in":"query","required":false,"schema":{"type":"integer","maximum":500,"minimum":1,"default":100,"title":"Limit"}},{"name":"offset","in":"query","required":false,"schema":{"type":"integer","minimum":0,"default":0,"title":"Offset"}},{"name":"organization-id","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Organization-Id"}},{"name":"timezone","in":"header","required":false,"schema":{"type":"string","default":"UTC","title":"Timezone"}},{"name":"x-user-id","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"X-User-Id"}},{"name":"x-actor-email","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"X-Actor-Email"}},{"name":"x-request-source","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"X-Request-Source"}},{"name":"x-operation-id","in":"header","required":false,"schema":{"anyOf":[{"type":"string","maxLength":36},{"type":"null"}],"title":"X-Operation-Id"}},{"name":"x-commit-message","in":"header","required":false,"schema":{"anyOf":[{"type":"string","minLength":1},{"type":"null"}],"title":"X-Commit-Message"}},{"name":"x-confirmation-id","in":"header","required":false,"schema":{"anyOf":[{"type":"string","maxLength":36},{"type":"null"}],"title":"X-Confirmation-Id"}},{"name":"x-chat-id","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"X-Chat-Id"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"type":"array","items":{"$ref":"#/components/schemas/PreflightSnapshotSummary"},"title":"Response List Preflight Snapshots Admin Campaigns Preflight Snapshots Get"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/admin/campaigns/preflight-snapshots/{snapshot_id}":{"get":{"tags":["admin","campaigns"],"summary":"Get Preflight Snapshot","description":"Fetch one snapshot including its full serialized report.","operationId":"get_preflight_snapshot_admin_campaigns_preflight_snapshots__snapshot_id__get","security":[{"APIKeyHeader":[]},{"HTTPBearer":[]}],"parameters":[{"name":"snapshot_id","in":"path","required":true,"schema":{"type":"string","title":"Snapshot Id"}},{"name":"organization-id","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Organization-Id"}},{"name":"timezone","in":"header","required":false,"schema":{"type":"string","default":"UTC","title":"Timezone"}},{"name":"x-user-id","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"X-User-Id"}},{"name":"x-actor-email","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"X-Actor-Email"}},{"name":"x-request-source","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"X-Request-Source"}},{"name":"x-operation-id","in":"header","required":false,"schema":{"anyOf":[{"type":"string","maxLength":36},{"type":"null"}],"title":"X-Operation-Id"}},{"name":"x-commit-message","in":"header","required":false,"schema":{"anyOf":[{"type":"string","minLength":1},{"type":"null"}],"title":"X-Commit-Message"}},{"name":"x-confirmation-id","in":"header","required":false,"schema":{"anyOf":[{"type":"string","maxLength":36},{"type":"null"}],"title":"X-Confirmation-Id"}},{"name":"x-chat-id","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"X-Chat-Id"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/PreflightSnapshotDetail"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/admin/campaigns/duplicate-outreach-alerts":{"get":{"tags":["admin","campaigns"],"summary":"List Duplicate Outreach Alerts","description":"List duplicate-outreach alerts across orgs (newest alert_date first). Filters are optional.","operationId":"list_duplicate_outreach_alerts_admin_campaigns_duplicate_outreach_alerts_get","security":[{"APIKeyHeader":[]},{"HTTPBearer":[]}],"parameters":[{"name":"organization_id","in":"query","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Organization Id"}},{"name":"start_date","in":"query","required":false,"schema":{"anyOf":[{"type":"string","format":"date"},{"type":"null"}],"title":"Start Date"}},{"name":"end_date","in":"query","required":false,"schema":{"anyOf":[{"type":"string","format":"date"},{"type":"null"}],"title":"End Date"}},{"name":"limit","in":"query","required":false,"schema":{"type":"integer","maximum":500,"minimum":1,"default":100,"title":"Limit"}},{"name":"offset","in":"query","required":false,"schema":{"type":"integer","minimum":0,"default":0,"title":"Offset"}},{"name":"organization-id","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Organization-Id"}},{"name":"timezone","in":"header","required":false,"schema":{"type":"string","default":"UTC","title":"Timezone"}},{"name":"x-user-id","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"X-User-Id"}},{"name":"x-actor-email","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"X-Actor-Email"}},{"name":"x-request-source","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"X-Request-Source"}},{"name":"x-operation-id","in":"header","required":false,"schema":{"anyOf":[{"type":"string","maxLength":36},{"type":"null"}],"title":"X-Operation-Id"}},{"name":"x-commit-message","in":"header","required":false,"schema":{"anyOf":[{"type":"string","minLength":1},{"type":"null"}],"title":"X-Commit-Message"}},{"name":"x-confirmation-id","in":"header","required":false,"schema":{"anyOf":[{"type":"string","maxLength":36},{"type":"null"}],"title":"X-Confirmation-Id"}},{"name":"x-chat-id","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"X-Chat-Id"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"type":"array","items":{"$ref":"#/components/schemas/DuplicateOutreachAlertPublic"},"title":"Response List Duplicate Outreach Alerts Admin Campaigns Duplicate Outreach Alerts Get"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/admin/campaigns/sends-by-day":{"get":{"tags":["admin","campaigns"],"summary":"Sends By Day","description":"Day × Org × Campaign scheduled sends with live outcome + engagement-status counts.\n\nCross-org by default; pass ``organization_id`` to scope. Date window defaults to\nthe last 7 days (``end_date`` = today UTC, ``start_date`` = end_date - 6) and is\ncapped at 31 days to bound query cost. ``agent`` (repeatable) filters to campaigns\nwhose persona matches one of the given roster keys (e.g. ``?agent=Daisy&agent=Mary``).","operationId":"sends_by_day_admin_campaigns_sends_by_day_get","security":[{"APIKeyHeader":[]},{"HTTPBearer":[]}],"parameters":[{"name":"organization_id","in":"query","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Organization Id"}},{"name":"start_date","in":"query","required":false,"schema":{"anyOf":[{"type":"string","format":"date"},{"type":"null"}],"title":"Start Date"}},{"name":"end_date","in":"query","required":false,"schema":{"anyOf":[{"type":"string","format":"date"},{"type":"null"}],"title":"End Date"}},{"name":"agent","in":"query","required":false,"schema":{"anyOf":[{"type":"array","items":{"type":"string"}},{"type":"null"}],"title":"Agent"}},{"name":"organization-id","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Organization-Id"}},{"name":"timezone","in":"header","required":false,"schema":{"type":"string","default":"UTC","title":"Timezone"}},{"name":"x-user-id","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"X-User-Id"}},{"name":"x-actor-email","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"X-Actor-Email"}},{"name":"x-request-source","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"X-Request-Source"}},{"name":"x-operation-id","in":"header","required":false,"schema":{"anyOf":[{"type":"string","maxLength":36},{"type":"null"}],"title":"X-Operation-Id"}},{"name":"x-commit-message","in":"header","required":false,"schema":{"anyOf":[{"type":"string","minLength":1},{"type":"null"}],"title":"X-Commit-Message"}},{"name":"x-confirmation-id","in":"header","required":false,"schema":{"anyOf":[{"type":"string","maxLength":36},{"type":"null"}],"title":"X-Confirmation-Id"}},{"name":"x-chat-id","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"X-Chat-Id"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"type":"array","items":{"$ref":"#/components/schemas/CampaignSendDayRow"},"title":"Response Sends By Day Admin Campaigns Sends By Day Get"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/admin/campaigns/scheduled":{"get":{"tags":["admin","campaigns"],"summary":"Upcoming Scheduled","description":"Upcoming cron-scheduled campaign sends in the window with no send row yet (today + future).\n\nLets the Outbound table show what's coming up, not just campaigns that have already sent.\nSame default-7-day window + 31-day cap as ``sends-by-day``.","operationId":"upcoming_scheduled_admin_campaigns_scheduled_get","security":[{"APIKeyHeader":[]},{"HTTPBearer":[]}],"parameters":[{"name":"organization_id","in":"query","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Organization Id"}},{"name":"start_date","in":"query","required":false,"schema":{"anyOf":[{"type":"string","format":"date"},{"type":"null"}],"title":"Start Date"}},{"name":"end_date","in":"query","required":false,"schema":{"anyOf":[{"type":"string","format":"date"},{"type":"null"}],"title":"End Date"}},{"name":"organization-id","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Organization-Id"}},{"name":"timezone","in":"header","required":false,"schema":{"type":"string","default":"UTC","title":"Timezone"}},{"name":"x-user-id","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"X-User-Id"}},{"name":"x-actor-email","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"X-Actor-Email"}},{"name":"x-request-source","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"X-Request-Source"}},{"name":"x-operation-id","in":"header","required":false,"schema":{"anyOf":[{"type":"string","maxLength":36},{"type":"null"}],"title":"X-Operation-Id"}},{"name":"x-commit-message","in":"header","required":false,"schema":{"anyOf":[{"type":"string","minLength":1},{"type":"null"}],"title":"X-Commit-Message"}},{"name":"x-confirmation-id","in":"header","required":false,"schema":{"anyOf":[{"type":"string","maxLength":36},{"type":"null"}],"title":"X-Confirmation-Id"}},{"name":"x-chat-id","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"X-Chat-Id"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"type":"array","items":{"$ref":"#/components/schemas/CampaignScheduleGapRow"},"title":"Response Upcoming Scheduled Admin Campaigns Scheduled Get"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/admin/campaigns/inbound-live-orgs":{"get":{"tags":["admin","campaigns"],"summary":"Inbound Live Orgs","description":"Orgs with an active inbound lead source (Angi/Meta/Zapier/Thumbtack/LSA connection or an\nactive EVENT-mode campaign) — the set the Inbound tab lists regardless of daily activity.","operationId":"inbound_live_orgs_admin_campaigns_inbound_live_orgs_get","security":[{"APIKeyHeader":[]},{"HTTPBearer":[]}],"parameters":[{"name":"organization-id","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Organization-Id"}},{"name":"timezone","in":"header","required":false,"schema":{"type":"string","default":"UTC","title":"Timezone"}},{"name":"x-user-id","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"X-User-Id"}},{"name":"x-actor-email","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"X-Actor-Email"}},{"name":"x-request-source","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"X-Request-Source"}},{"name":"x-operation-id","in":"header","required":false,"schema":{"anyOf":[{"type":"string","maxLength":36},{"type":"null"}],"title":"X-Operation-Id"}},{"name":"x-commit-message","in":"header","required":false,"schema":{"anyOf":[{"type":"string","minLength":1},{"type":"null"}],"title":"X-Commit-Message"}},{"name":"x-confirmation-id","in":"header","required":false,"schema":{"anyOf":[{"type":"string","maxLength":36},{"type":"null"}],"title":"X-Confirmation-Id"}},{"name":"x-chat-id","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"X-Chat-Id"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"type":"array","items":{"$ref":"#/components/schemas/InboundLiveOrg"},"title":"Response Inbound Live Orgs Admin Campaigns Inbound Live Orgs Get"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/admin/campaigns/lenny":{"get":{"tags":["admin","campaigns"],"summary":"Lenny Activity","description":"Day × Org Lenny (trigger-driven, campaign-less) sends/replies/booked.\n\nCross-org by default; pass ``organization_id`` to scope. Same default-7-day\nwindow + 31-day cap as ``sends-by-day``.","operationId":"lenny_activity_admin_campaigns_lenny_get","security":[{"APIKeyHeader":[]},{"HTTPBearer":[]}],"parameters":[{"name":"organization_id","in":"query","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Organization Id"}},{"name":"start_date","in":"query","required":false,"schema":{"anyOf":[{"type":"string","format":"date"},{"type":"null"}],"title":"Start Date"}},{"name":"end_date","in":"query","required":false,"schema":{"anyOf":[{"type":"string","format":"date"},{"type":"null"}],"title":"End Date"}},{"name":"organization-id","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Organization-Id"}},{"name":"timezone","in":"header","required":false,"schema":{"type":"string","default":"UTC","title":"Timezone"}},{"name":"x-user-id","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"X-User-Id"}},{"name":"x-actor-email","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"X-Actor-Email"}},{"name":"x-request-source","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"X-Request-Source"}},{"name":"x-operation-id","in":"header","required":false,"schema":{"anyOf":[{"type":"string","maxLength":36},{"type":"null"}],"title":"X-Operation-Id"}},{"name":"x-commit-message","in":"header","required":false,"schema":{"anyOf":[{"type":"string","minLength":1},{"type":"null"}],"title":"X-Commit-Message"}},{"name":"x-confirmation-id","in":"header","required":false,"schema":{"anyOf":[{"type":"string","maxLength":36},{"type":"null"}],"title":"X-Confirmation-Id"}},{"name":"x-chat-id","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"X-Chat-Id"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"type":"array","items":{"$ref":"#/components/schemas/LennyActivityDayRow"},"title":"Response Lenny Activity Admin Campaigns Lenny Get"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/admin/campaigns/sends-by-day/detail":{"get":{"tags":["admin","campaigns"],"summary":"Sends By Day Detail","description":"Outbound drawer drill-down for one (campaign, scheduled day, org): timeline marks +\naborted / success-outcome contact lists (first few of each, with uncapped totals).","operationId":"sends_by_day_detail_admin_campaigns_sends_by_day_detail_get","security":[{"APIKeyHeader":[]},{"HTTPBearer":[]}],"parameters":[{"name":"organization_id","in":"query","required":true,"schema":{"type":"string","title":"Organization Id"}},{"name":"campaign_id","in":"query","required":true,"schema":{"type":"string","title":"Campaign Id"}},{"name":"scheduled_dt","in":"query","required":true,"schema":{"type":"string","format":"date","title":"Scheduled Dt"}},{"name":"organization-id","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Organization-Id"}},{"name":"timezone","in":"header","required":false,"schema":{"type":"string","default":"UTC","title":"Timezone"}},{"name":"x-user-id","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"X-User-Id"}},{"name":"x-actor-email","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"X-Actor-Email"}},{"name":"x-request-source","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"X-Request-Source"}},{"name":"x-operation-id","in":"header","required":false,"schema":{"anyOf":[{"type":"string","maxLength":36},{"type":"null"}],"title":"X-Operation-Id"}},{"name":"x-commit-message","in":"header","required":false,"schema":{"anyOf":[{"type":"string","minLength":1},{"type":"null"}],"title":"X-Commit-Message"}},{"name":"x-confirmation-id","in":"header","required":false,"schema":{"anyOf":[{"type":"string","maxLength":36},{"type":"null"}],"title":"X-Confirmation-Id"}},{"name":"x-chat-id","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"X-Chat-Id"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/CampaignSendDayDetail"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/admin/campaigns/lenny/detail":{"get":{"tags":["admin","campaigns"],"summary":"Lenny Detail","description":"Inbound drawer drill-down for one (org, day): recent Lenny leads with reply/booked state.","operationId":"lenny_detail_admin_campaigns_lenny_detail_get","security":[{"APIKeyHeader":[]},{"HTTPBearer":[]}],"parameters":[{"name":"organization_id","in":"query","required":true,"schema":{"type":"string","title":"Organization Id"}},{"name":"day","in":"query","required":true,"schema":{"type":"string","format":"date","title":"Day"}},{"name":"organization-id","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Organization-Id"}},{"name":"timezone","in":"header","required":false,"schema":{"type":"string","default":"UTC","title":"Timezone"}},{"name":"x-user-id","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"X-User-Id"}},{"name":"x-actor-email","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"X-Actor-Email"}},{"name":"x-request-source","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"X-Request-Source"}},{"name":"x-operation-id","in":"header","required":false,"schema":{"anyOf":[{"type":"string","maxLength":36},{"type":"null"}],"title":"X-Operation-Id"}},{"name":"x-commit-message","in":"header","required":false,"schema":{"anyOf":[{"type":"string","minLength":1},{"type":"null"}],"title":"X-Commit-Message"}},{"name":"x-confirmation-id","in":"header","required":false,"schema":{"anyOf":[{"type":"string","maxLength":36},{"type":"null"}],"title":"X-Confirmation-Id"}},{"name":"x-chat-id","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"X-Chat-Id"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/LennyDayDetail"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/admin/campaigns/schedule-gaps":{"get":{"tags":["admin","campaigns"],"summary":"Schedule Gaps","description":"Day × Org × Campaign gaps: campaigns expected to send but with no send that day.\n\nA gap is a past org-local day a campaign was live + CRON-scheduled + its cron fired,\nyet produced no ``campaign_send`` row. Historical active/cron state is reconstructed\nfrom ``agent.edit_log``. Cross-org by default; pass ``organization_id`` to scope. Same\ndefault-7-day window + 31-day cap as ``sends-by-day``. Only past complete days are\nevaluated — the current day is never flagged.","operationId":"schedule_gaps_admin_campaigns_schedule_gaps_get","security":[{"APIKeyHeader":[]},{"HTTPBearer":[]}],"parameters":[{"name":"organization_id","in":"query","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Organization Id"}},{"name":"start_date","in":"query","required":false,"schema":{"anyOf":[{"type":"string","format":"date"},{"type":"null"}],"title":"Start Date"}},{"name":"end_date","in":"query","required":false,"schema":{"anyOf":[{"type":"string","format":"date"},{"type":"null"}],"title":"End Date"}},{"name":"organization-id","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Organization-Id"}},{"name":"timezone","in":"header","required":false,"schema":{"type":"string","default":"UTC","title":"Timezone"}},{"name":"x-user-id","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"X-User-Id"}},{"name":"x-actor-email","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"X-Actor-Email"}},{"name":"x-request-source","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"X-Request-Source"}},{"name":"x-operation-id","in":"header","required":false,"schema":{"anyOf":[{"type":"string","maxLength":36},{"type":"null"}],"title":"X-Operation-Id"}},{"name":"x-commit-message","in":"header","required":false,"schema":{"anyOf":[{"type":"string","minLength":1},{"type":"null"}],"title":"X-Commit-Message"}},{"name":"x-confirmation-id","in":"header","required":false,"schema":{"anyOf":[{"type":"string","maxLength":36},{"type":"null"}],"title":"X-Confirmation-Id"}},{"name":"x-chat-id","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"X-Chat-Id"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"type":"array","items":{"$ref":"#/components/schemas/CampaignScheduleGapRow"},"title":"Response Schedule Gaps Admin Campaigns Schedule Gaps Get"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/admin/channels/health":{"get":{"tags":["admin","channels"],"summary":"Get Channel Health","operationId":"get_channel_health_admin_channels_health_get","security":[{"APIKeyHeader":[]},{"HTTPBearer":[]}],"parameters":[{"name":"organization_id","in":"query","required":true,"schema":{"type":"string","description":"Organization ID whose channel health should be checked.","title":"Organization Id"},"description":"Organization ID whose channel health should be checked."},{"name":"organization-id","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Organization-Id"}},{"name":"timezone","in":"header","required":false,"schema":{"type":"string","default":"UTC","title":"Timezone"}},{"name":"x-user-id","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"X-User-Id"}},{"name":"x-actor-email","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"X-Actor-Email"}},{"name":"x-request-source","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"X-Request-Source"}},{"name":"x-operation-id","in":"header","required":false,"schema":{"anyOf":[{"type":"string","maxLength":36},{"type":"null"}],"title":"X-Operation-Id"}},{"name":"x-commit-message","in":"header","required":false,"schema":{"anyOf":[{"type":"string","minLength":1},{"type":"null"}],"title":"X-Commit-Message"}},{"name":"x-confirmation-id","in":"header","required":false,"schema":{"anyOf":[{"type":"string","maxLength":36},{"type":"null"}],"title":"X-Confirmation-Id"}},{"name":"x-chat-id","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"X-Chat-Id"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ChannelHealthPage"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/admin/channels/{channel_id}/health/refresh":{"post":{"tags":["admin","channels"],"summary":"Refresh Channel Health","operationId":"refresh_channel_health_admin_channels__channel_id__health_refresh_post","security":[{"APIKeyHeader":[]},{"HTTPBearer":[]}],"parameters":[{"name":"channel_id","in":"path","required":true,"schema":{"type":"string","title":"Channel Id"}},{"name":"organization_id","in":"query","required":true,"schema":{"type":"string","description":"Organization ID that owns the channel.","title":"Organization Id"},"description":"Organization ID that owns the channel."},{"name":"organization-id","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Organization-Id"}},{"name":"timezone","in":"header","required":false,"schema":{"type":"string","default":"UTC","title":"Timezone"}},{"name":"x-user-id","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"X-User-Id"}},{"name":"x-actor-email","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"X-Actor-Email"}},{"name":"x-request-source","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"X-Request-Source"}},{"name":"x-operation-id","in":"header","required":false,"schema":{"anyOf":[{"type":"string","maxLength":36},{"type":"null"}],"title":"X-Operation-Id"}},{"name":"x-commit-message","in":"header","required":false,"schema":{"anyOf":[{"type":"string","minLength":1},{"type":"null"}],"title":"X-Commit-Message"}},{"name":"x-confirmation-id","in":"header","required":false,"schema":{"anyOf":[{"type":"string","maxLength":36},{"type":"null"}],"title":"X-Confirmation-Id"}},{"name":"x-chat-id","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"X-Chat-Id"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ChannelHealthPublic"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/admin/channels/{channel_id}/messaging-profile":{"get":{"tags":["admin","channels"],"summary":"Get Channel Messaging Profile","operationId":"get_channel_messaging_profile_admin_channels__channel_id__messaging_profile_get","security":[{"APIKeyHeader":[]},{"HTTPBearer":[]}],"parameters":[{"name":"channel_id","in":"path","required":true,"schema":{"type":"string","title":"Channel Id"}},{"name":"organization_id","in":"query","required":true,"schema":{"type":"string","description":"Organization ID that owns the channel.","title":"Organization Id"},"description":"Organization ID that owns the channel."},{"name":"organization-id","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Organization-Id"}},{"name":"timezone","in":"header","required":false,"schema":{"type":"string","default":"UTC","title":"Timezone"}},{"name":"x-user-id","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"X-User-Id"}},{"name":"x-actor-email","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"X-Actor-Email"}},{"name":"x-request-source","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"X-Request-Source"}},{"name":"x-operation-id","in":"header","required":false,"schema":{"anyOf":[{"type":"string","maxLength":36},{"type":"null"}],"title":"X-Operation-Id"}},{"name":"x-commit-message","in":"header","required":false,"schema":{"anyOf":[{"type":"string","minLength":1},{"type":"null"}],"title":"X-Commit-Message"}},{"name":"x-confirmation-id","in":"header","required":false,"schema":{"anyOf":[{"type":"string","maxLength":36},{"type":"null"}],"title":"X-Confirmation-Id"}},{"name":"x-chat-id","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"X-Chat-Id"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ChannelMessagingProfilePublic"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/admin/channels/eligible-numbers":{"get":{"tags":["admin","channels"],"summary":"Get Eligible Numbers","operationId":"get_eligible_numbers_admin_channels_eligible_numbers_get","security":[{"APIKeyHeader":[]},{"HTTPBearer":[]}],"parameters":[{"name":"organization_id","in":"query","required":true,"schema":{"type":"string","description":"Organization whose approved messaging numbers should be listed.","title":"Organization Id"},"description":"Organization whose approved messaging numbers should be listed."},{"name":"provider","in":"query","required":false,"schema":{"anyOf":[{"$ref":"#/components/schemas/MessagingProvider"},{"type":"null"}],"title":"Provider"}},{"name":"channel_id","in":"query","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"description":"Current channel when editing an existing sender.","title":"Channel Id"},"description":"Current channel when editing an existing sender."},{"name":"organization-id","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Organization-Id"}},{"name":"timezone","in":"header","required":false,"schema":{"type":"string","default":"UTC","title":"Timezone"}},{"name":"x-user-id","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"X-User-Id"}},{"name":"x-actor-email","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"X-Actor-Email"}},{"name":"x-request-source","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"X-Request-Source"}},{"name":"x-operation-id","in":"header","required":false,"schema":{"anyOf":[{"type":"string","maxLength":36},{"type":"null"}],"title":"X-Operation-Id"}},{"name":"x-commit-message","in":"header","required":false,"schema":{"anyOf":[{"type":"string","minLength":1},{"type":"null"}],"title":"X-Commit-Message"}},{"name":"x-confirmation-id","in":"header","required":false,"schema":{"anyOf":[{"type":"string","maxLength":36},{"type":"null"}],"title":"X-Confirmation-Id"}},{"name":"x-chat-id","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"X-Chat-Id"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Page_EligibleChannelNumberPublic_"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/admin/channels/":{"get":{"tags":["admin","channels"],"summary":"Read Channels","operationId":"read_channels_admin_channels__get","security":[{"APIKeyHeader":[]},{"HTTPBearer":[]}],"parameters":[{"name":"organization_id","in":"query","required":true,"schema":{"type":"string","description":"Organization ID whose channels should be listed.","title":"Organization Id"},"description":"Organization ID whose channels should be listed."},{"name":"organization-id","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Organization-Id"}},{"name":"timezone","in":"header","required":false,"schema":{"type":"string","default":"UTC","title":"Timezone"}},{"name":"x-user-id","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"X-User-Id"}},{"name":"x-actor-email","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"X-Actor-Email"}},{"name":"x-request-source","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"X-Request-Source"}},{"name":"x-operation-id","in":"header","required":false,"schema":{"anyOf":[{"type":"string","maxLength":36},{"type":"null"}],"title":"X-Operation-Id"}},{"name":"x-commit-message","in":"header","required":false,"schema":{"anyOf":[{"type":"string","minLength":1},{"type":"null"}],"title":"X-Commit-Message"}},{"name":"x-confirmation-id","in":"header","required":false,"schema":{"anyOf":[{"type":"string","maxLength":36},{"type":"null"}],"title":"X-Confirmation-Id"}},{"name":"x-chat-id","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"X-Chat-Id"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Page_ChannelPublicWithChildren_"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}},"post":{"tags":["admin","channels"],"summary":"Create Channel","operationId":"create_channel_admin_channels__post","security":[{"APIKeyHeader":[]},{"HTTPBearer":[]}],"parameters":[{"name":"organization-id","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Organization-Id"}},{"name":"timezone","in":"header","required":false,"schema":{"type":"string","default":"UTC","title":"Timezone"}},{"name":"x-user-id","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"X-User-Id"}},{"name":"x-actor-email","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"X-Actor-Email"}},{"name":"x-request-source","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"X-Request-Source"}},{"name":"x-operation-id","in":"header","required":false,"schema":{"anyOf":[{"type":"string","maxLength":36},{"type":"null"}],"title":"X-Operation-Id"}},{"name":"x-commit-message","in":"header","required":false,"schema":{"anyOf":[{"type":"string","minLength":1},{"type":"null"}],"title":"X-Commit-Message"}},{"name":"x-confirmation-id","in":"header","required":false,"schema":{"anyOf":[{"type":"string","maxLength":36},{"type":"null"}],"title":"X-Confirmation-Id"}},{"name":"x-chat-id","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"X-Chat-Id"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/CreateChannelRequest"}}}},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ChannelPublicWithChildren"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/admin/channels/modules":{"get":{"tags":["admin","channels"],"summary":"Read Channel Modules","operationId":"read_channel_modules_admin_channels_modules_get","security":[{"APIKeyHeader":[]},{"HTTPBearer":[]}],"parameters":[{"name":"organization-id","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Organization-Id"}},{"name":"timezone","in":"header","required":false,"schema":{"type":"string","default":"UTC","title":"Timezone"}},{"name":"x-user-id","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"X-User-Id"}},{"name":"x-actor-email","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"X-Actor-Email"}},{"name":"x-request-source","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"X-Request-Source"}},{"name":"x-operation-id","in":"header","required":false,"schema":{"anyOf":[{"type":"string","maxLength":36},{"type":"null"}],"title":"X-Operation-Id"}},{"name":"x-commit-message","in":"header","required":false,"schema":{"anyOf":[{"type":"string","minLength":1},{"type":"null"}],"title":"X-Commit-Message"}},{"name":"x-confirmation-id","in":"header","required":false,"schema":{"anyOf":[{"type":"string","maxLength":36},{"type":"null"}],"title":"X-Confirmation-Id"}},{"name":"x-chat-id","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"X-Chat-Id"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Page_ChannelModulePublic_"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/admin/channels/{channel_id}":{"put":{"tags":["admin","channels"],"summary":"Update Channel","operationId":"update_channel_admin_channels__channel_id__put","security":[{"APIKeyHeader":[]},{"HTTPBearer":[]}],"parameters":[{"name":"channel_id","in":"path","required":true,"schema":{"type":"string","title":"Channel Id"}},{"name":"organization-id","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Organization-Id"}},{"name":"timezone","in":"header","required":false,"schema":{"type":"string","default":"UTC","title":"Timezone"}},{"name":"x-user-id","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"X-User-Id"}},{"name":"x-actor-email","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"X-Actor-Email"}},{"name":"x-request-source","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"X-Request-Source"}},{"name":"x-operation-id","in":"header","required":false,"schema":{"anyOf":[{"type":"string","maxLength":36},{"type":"null"}],"title":"X-Operation-Id"}},{"name":"x-commit-message","in":"header","required":false,"schema":{"anyOf":[{"type":"string","minLength":1},{"type":"null"}],"title":"X-Commit-Message"}},{"name":"x-confirmation-id","in":"header","required":false,"schema":{"anyOf":[{"type":"string","maxLength":36},{"type":"null"}],"title":"X-Confirmation-Id"}},{"name":"x-chat-id","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"X-Chat-Id"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/UpdateChannelRequest"}}}},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ChannelPublicWithChildren"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}},"delete":{"tags":["admin","channels"],"summary":"Delete Channel","operationId":"delete_channel_admin_channels__channel_id__delete","security":[{"APIKeyHeader":[]},{"HTTPBearer":[]}],"parameters":[{"name":"channel_id","in":"path","required":true,"schema":{"type":"string","title":"Channel Id"}},{"name":"organization-id","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Organization-Id"}},{"name":"timezone","in":"header","required":false,"schema":{"type":"string","default":"UTC","title":"Timezone"}},{"name":"x-user-id","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"X-User-Id"}},{"name":"x-actor-email","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"X-Actor-Email"}},{"name":"x-request-source","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"X-Request-Source"}},{"name":"x-operation-id","in":"header","required":false,"schema":{"anyOf":[{"type":"string","maxLength":36},{"type":"null"}],"title":"X-Operation-Id"}},{"name":"x-commit-message","in":"header","required":false,"schema":{"anyOf":[{"type":"string","minLength":1},{"type":"null"}],"title":"X-Commit-Message"}},{"name":"x-confirmation-id","in":"header","required":false,"schema":{"anyOf":[{"type":"string","maxLength":36},{"type":"null"}],"title":"X-Confirmation-Id"}},{"name":"x-chat-id","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"X-Chat-Id"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ChannelPublicWithChildren"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/admin/engagement/{engagement_id}/ai-response":{"get":{"tags":["admin","admin"],"summary":"Inspect Engagement Ai Response","operationId":"inspect_engagement_ai_response_admin_engagement__engagement_id__ai_response_get","security":[{"APIKeyHeader":[]},{"HTTPBearer":[]}],"parameters":[{"name":"engagement_id","in":"path","required":true,"schema":{"type":"string","title":"Engagement Id"}},{"name":"organization-id","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Organization-Id"}},{"name":"timezone","in":"header","required":false,"schema":{"type":"string","default":"UTC","title":"Timezone"}},{"name":"x-user-id","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"X-User-Id"}},{"name":"x-actor-email","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"X-Actor-Email"}},{"name":"x-request-source","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"X-Request-Source"}},{"name":"x-operation-id","in":"header","required":false,"schema":{"anyOf":[{"type":"string","maxLength":36},{"type":"null"}],"title":"X-Operation-Id"}},{"name":"x-commit-message","in":"header","required":false,"schema":{"anyOf":[{"type":"string","minLength":1},{"type":"null"}],"title":"X-Commit-Message"}},{"name":"x-confirmation-id","in":"header","required":false,"schema":{"anyOf":[{"type":"string","maxLength":36},{"type":"null"}],"title":"X-Confirmation-Id"}},{"name":"x-chat-id","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"X-Chat-Id"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/EngagementAiResponseState"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/admin/engagement/{engagement_id}/ai-response/resume":{"post":{"tags":["admin","admin"],"summary":"Resume Engagement Ai Responses","operationId":"resume_engagement_ai_responses_admin_engagement__engagement_id__ai_response_resume_post","security":[{"APIKeyHeader":[]},{"HTTPBearer":[]}],"parameters":[{"name":"engagement_id","in":"path","required":true,"schema":{"type":"string","title":"Engagement Id"}},{"name":"organization-id","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Organization-Id"}},{"name":"timezone","in":"header","required":false,"schema":{"type":"string","default":"UTC","title":"Timezone"}},{"name":"x-user-id","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"X-User-Id"}},{"name":"x-actor-email","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"X-Actor-Email"}},{"name":"x-request-source","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"X-Request-Source"}},{"name":"x-operation-id","in":"header","required":false,"schema":{"anyOf":[{"type":"string","maxLength":36},{"type":"null"}],"title":"X-Operation-Id"}},{"name":"x-commit-message","in":"header","required":false,"schema":{"anyOf":[{"type":"string","minLength":1},{"type":"null"}],"title":"X-Commit-Message"}},{"name":"x-confirmation-id","in":"header","required":false,"schema":{"anyOf":[{"type":"string","maxLength":36},{"type":"null"}],"title":"X-Confirmation-Id"}},{"name":"x-chat-id","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"X-Chat-Id"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ResumeAiResponseRequest"}}}},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ResumeAiResponseResponse"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/admin/engagement/{engagement_id}/stuck-state":{"get":{"tags":["admin","admin"],"summary":"Diagnose Stuck State","description":"Report whether this engagement is wedged on an orphan ext-mod write-ahead.\n\nMatches the FatalError gate in ``agent-service/agent/runner/handler/run_requested.py``:\na stuck engagement has an ``EventAction.success IS NULL`` row AND a\nmatching dangling ``ToolCallPart`` in the most recent persisted\n``ModelResponse``. When both hold the worker loops through DLQ on every\nretry.","operationId":"diagnose_stuck_state_admin_engagement__engagement_id__stuck_state_get","security":[{"APIKeyHeader":[]},{"HTTPBearer":[]}],"parameters":[{"name":"engagement_id","in":"path","required":true,"schema":{"type":"string","title":"Engagement Id"}},{"name":"organization-id","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Organization-Id"}},{"name":"timezone","in":"header","required":false,"schema":{"type":"string","default":"UTC","title":"Timezone"}},{"name":"x-user-id","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"X-User-Id"}},{"name":"x-actor-email","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"X-Actor-Email"}},{"name":"x-request-source","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"X-Request-Source"}},{"name":"x-operation-id","in":"header","required":false,"schema":{"anyOf":[{"type":"string","maxLength":36},{"type":"null"}],"title":"X-Operation-Id"}},{"name":"x-commit-message","in":"header","required":false,"schema":{"anyOf":[{"type":"string","minLength":1},{"type":"null"}],"title":"X-Commit-Message"}},{"name":"x-confirmation-id","in":"header","required":false,"schema":{"anyOf":[{"type":"string","maxLength":36},{"type":"null"}],"title":"X-Confirmation-Id"}},{"name":"x-chat-id","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"X-Chat-Id"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/StuckStateResponse"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/admin/engagement/{engagement_id}/unstick":{"post":{"tags":["admin","admin"],"summary":"Unstick Engagement","description":"Recover an engagement wedged on an orphan ext-mod write-ahead.\n\nTwo-step recovery, both in one transaction:\n  1. Flip ``EventAction.success`` from NULL → False so the\n     ``_any_pending_writeahead_for_modules`` gate stops firing.\n  2. Persist a synthetic ``ModelRequest`` ``LLM_RESPONSE`` event with a\n     ``ToolReturnPart`` for the dangling tool call. This clears the\n     ``_has_dangling_tool_call`` / ``_dangling_ext_mod_tool_names`` gates\n     so the next turn sees a complete tool exchange. The content\n     explicitly marks the tool as failed and tells the model not to retry.\n\nWe deliberately do NOT republish ``ENGAGEMENT_RUN_REQUESTED`` — the\nengagement is already in (or destined for) the DLQ, and the existing\nredrive will pick it up. Republishing here would race with that and\nqueue an extra turn.","operationId":"unstick_engagement_admin_engagement__engagement_id__unstick_post","security":[{"APIKeyHeader":[]},{"HTTPBearer":[]}],"parameters":[{"name":"engagement_id","in":"path","required":true,"schema":{"type":"string","title":"Engagement Id"}},{"name":"organization-id","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Organization-Id"}},{"name":"timezone","in":"header","required":false,"schema":{"type":"string","default":"UTC","title":"Timezone"}},{"name":"x-user-id","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"X-User-Id"}},{"name":"x-actor-email","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"X-Actor-Email"}},{"name":"x-request-source","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"X-Request-Source"}},{"name":"x-operation-id","in":"header","required":false,"schema":{"anyOf":[{"type":"string","maxLength":36},{"type":"null"}],"title":"X-Operation-Id"}},{"name":"x-commit-message","in":"header","required":false,"schema":{"anyOf":[{"type":"string","minLength":1},{"type":"null"}],"title":"X-Commit-Message"}},{"name":"x-confirmation-id","in":"header","required":false,"schema":{"anyOf":[{"type":"string","maxLength":36},{"type":"null"}],"title":"X-Confirmation-Id"}},{"name":"x-chat-id","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"X-Chat-Id"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/UnstickResponse"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/admin/engagement/{engagement_id}/resolved-objective-prompt":{"get":{"tags":["admin","admin"],"summary":"Read Resolved Objective Prompt","description":"Return the system prompt + resolved variables captured on the first turn.","operationId":"read_resolved_objective_prompt_admin_engagement__engagement_id__resolved_objective_prompt_get","security":[{"APIKeyHeader":[]},{"HTTPBearer":[]}],"parameters":[{"name":"engagement_id","in":"path","required":true,"schema":{"type":"string","title":"Engagement Id"}},{"name":"organization-id","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Organization-Id"}},{"name":"timezone","in":"header","required":false,"schema":{"type":"string","default":"UTC","title":"Timezone"}},{"name":"x-user-id","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"X-User-Id"}},{"name":"x-actor-email","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"X-Actor-Email"}},{"name":"x-request-source","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"X-Request-Source"}},{"name":"x-operation-id","in":"header","required":false,"schema":{"anyOf":[{"type":"string","maxLength":36},{"type":"null"}],"title":"X-Operation-Id"}},{"name":"x-commit-message","in":"header","required":false,"schema":{"anyOf":[{"type":"string","minLength":1},{"type":"null"}],"title":"X-Commit-Message"}},{"name":"x-confirmation-id","in":"header","required":false,"schema":{"anyOf":[{"type":"string","maxLength":36},{"type":"null"}],"title":"X-Confirmation-Id"}},{"name":"x-chat-id","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"X-Chat-Id"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ResolvedObjectivePromptResponse"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/admin/engagement/{engagement_id}/channels":{"get":{"tags":["admin","admin"],"summary":"Read Engagement Channels","operationId":"read_engagement_channels_admin_engagement__engagement_id__channels_get","security":[{"APIKeyHeader":[]},{"HTTPBearer":[]}],"parameters":[{"name":"engagement_id","in":"path","required":true,"schema":{"type":"string","title":"Engagement Id"}},{"name":"organization-id","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Organization-Id"}},{"name":"timezone","in":"header","required":false,"schema":{"type":"string","default":"UTC","title":"Timezone"}},{"name":"x-user-id","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"X-User-Id"}},{"name":"x-actor-email","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"X-Actor-Email"}},{"name":"x-request-source","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"X-Request-Source"}},{"name":"x-operation-id","in":"header","required":false,"schema":{"anyOf":[{"type":"string","maxLength":36},{"type":"null"}],"title":"X-Operation-Id"}},{"name":"x-commit-message","in":"header","required":false,"schema":{"anyOf":[{"type":"string","minLength":1},{"type":"null"}],"title":"X-Commit-Message"}},{"name":"x-confirmation-id","in":"header","required":false,"schema":{"anyOf":[{"type":"string","maxLength":36},{"type":"null"}],"title":"X-Confirmation-Id"}},{"name":"x-chat-id","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"X-Chat-Id"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/EngagementChannelOptionsResponse"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/admin/engagement/{engagement_id}":{"put":{"tags":["admin","admin"],"summary":"Update Engagement","operationId":"update_engagement_admin_engagement__engagement_id__put","security":[{"APIKeyHeader":[]},{"HTTPBearer":[]}],"parameters":[{"name":"engagement_id","in":"path","required":true,"schema":{"type":"string","title":"Engagement Id"}},{"name":"organization-id","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Organization-Id"}},{"name":"timezone","in":"header","required":false,"schema":{"type":"string","default":"UTC","title":"Timezone"}},{"name":"x-user-id","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"X-User-Id"}},{"name":"x-actor-email","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"X-Actor-Email"}},{"name":"x-request-source","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"X-Request-Source"}},{"name":"x-operation-id","in":"header","required":false,"schema":{"anyOf":[{"type":"string","maxLength":36},{"type":"null"}],"title":"X-Operation-Id"}},{"name":"x-commit-message","in":"header","required":false,"schema":{"anyOf":[{"type":"string","minLength":1},{"type":"null"}],"title":"X-Commit-Message"}},{"name":"x-confirmation-id","in":"header","required":false,"schema":{"anyOf":[{"type":"string","maxLength":36},{"type":"null"}],"title":"X-Confirmation-Id"}},{"name":"x-chat-id","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"X-Chat-Id"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/Engagement"}}}},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/EngagementPublic"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/admin/engagement-attempt-batches":{"post":{"tags":["admin","engagement-attempt-batches"],"summary":"Create Engagement Attempt Batch","description":"Create an engagement attempt batch via the in-process engagement domain.\n\nResolves the org from the body and assigns `context.organization` so the\ndownstream handler scopes to it.","operationId":"create_engagement_attempt_batch_admin_engagement_attempt_batches_post","security":[{"APIKeyHeader":[]},{"HTTPBearer":[]}],"parameters":[{"name":"organization-id","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Organization-Id"}},{"name":"timezone","in":"header","required":false,"schema":{"type":"string","default":"UTC","title":"Timezone"}},{"name":"x-user-id","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"X-User-Id"}},{"name":"x-actor-email","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"X-Actor-Email"}},{"name":"x-request-source","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"X-Request-Source"}},{"name":"x-operation-id","in":"header","required":false,"schema":{"anyOf":[{"type":"string","maxLength":36},{"type":"null"}],"title":"X-Operation-Id"}},{"name":"x-commit-message","in":"header","required":false,"schema":{"anyOf":[{"type":"string","minLength":1},{"type":"null"}],"title":"X-Commit-Message"}},{"name":"x-confirmation-id","in":"header","required":false,"schema":{"anyOf":[{"type":"string","maxLength":36},{"type":"null"}],"title":"X-Confirmation-Id"}},{"name":"x-chat-id","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"X-Chat-Id"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/CreateEngagementAttemptBatchRequest"}}}},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/CreateEngagementAttemptBatchResponse"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}},"get":{"tags":["admin","engagement-attempt-batches"],"summary":"List Engagement Attempt Batches","description":"List engagement attempt batches with optional filters and cursor pagination.","operationId":"list_engagement_attempt_batches_admin_engagement_attempt_batches_get","security":[{"APIKeyHeader":[]},{"HTTPBearer":[]}],"parameters":[{"name":"organization_id","in":"query","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Organization Id"}},{"name":"agent_id","in":"query","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Agent Id"}},{"name":"status","in":"query","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Status"}},{"name":"date_from","in":"query","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Date From"}},{"name":"date_to","in":"query","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Date To"}},{"name":"cursor","in":"query","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Cursor"}},{"name":"limit","in":"query","required":false,"schema":{"type":"integer","default":25,"title":"Limit"}},{"name":"organization-id","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Organization-Id"}},{"name":"timezone","in":"header","required":false,"schema":{"type":"string","default":"UTC","title":"Timezone"}},{"name":"x-user-id","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"X-User-Id"}},{"name":"x-actor-email","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"X-Actor-Email"}},{"name":"x-request-source","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"X-Request-Source"}},{"name":"x-operation-id","in":"header","required":false,"schema":{"anyOf":[{"type":"string","maxLength":36},{"type":"null"}],"title":"X-Operation-Id"}},{"name":"x-commit-message","in":"header","required":false,"schema":{"anyOf":[{"type":"string","minLength":1},{"type":"null"}],"title":"X-Commit-Message"}},{"name":"x-confirmation-id","in":"header","required":false,"schema":{"anyOf":[{"type":"string","maxLength":36},{"type":"null"}],"title":"X-Confirmation-Id"}},{"name":"x-chat-id","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"X-Chat-Id"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/BatchListPageResponse"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/admin/engagement-attempt-batches/campaign":{"post":{"tags":["admin","engagement-attempt-batches"],"summary":"Create Campaign Engagement Attempt Batch","operationId":"create_campaign_engagement_attempt_batch_admin_engagement_attempt_batches_campaign_post","security":[{"APIKeyHeader":[]},{"HTTPBearer":[]}],"parameters":[{"name":"organization-id","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Organization-Id"}},{"name":"timezone","in":"header","required":false,"schema":{"type":"string","default":"UTC","title":"Timezone"}},{"name":"x-user-id","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"X-User-Id"}},{"name":"x-actor-email","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"X-Actor-Email"}},{"name":"x-request-source","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"X-Request-Source"}},{"name":"x-operation-id","in":"header","required":false,"schema":{"anyOf":[{"type":"string","maxLength":36},{"type":"null"}],"title":"X-Operation-Id"}},{"name":"x-commit-message","in":"header","required":false,"schema":{"anyOf":[{"type":"string","minLength":1},{"type":"null"}],"title":"X-Commit-Message"}},{"name":"x-confirmation-id","in":"header","required":false,"schema":{"anyOf":[{"type":"string","maxLength":36},{"type":"null"}],"title":"X-Confirmation-Id"}},{"name":"x-chat-id","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"X-Chat-Id"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/CreateCampaignEngagementAttemptBatchRequest"}}}},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/CreateEngagementAttemptBatchResponse"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/admin/engagement-attempt-batches/direct/preflight":{"post":{"tags":["admin","engagement-attempt-batches"],"summary":"Preflight Direct Engagement Batch","operationId":"preflight_direct_engagement_batch_admin_engagement_attempt_batches_direct_preflight_post","security":[{"APIKeyHeader":[]},{"HTTPBearer":[]}],"parameters":[{"name":"organization-id","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Organization-Id"}},{"name":"timezone","in":"header","required":false,"schema":{"type":"string","default":"UTC","title":"Timezone"}},{"name":"x-user-id","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"X-User-Id"}},{"name":"x-actor-email","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"X-Actor-Email"}},{"name":"x-request-source","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"X-Request-Source"}},{"name":"x-operation-id","in":"header","required":false,"schema":{"anyOf":[{"type":"string","maxLength":36},{"type":"null"}],"title":"X-Operation-Id"}},{"name":"x-commit-message","in":"header","required":false,"schema":{"anyOf":[{"type":"string","minLength":1},{"type":"null"}],"title":"X-Commit-Message"}},{"name":"x-confirmation-id","in":"header","required":false,"schema":{"anyOf":[{"type":"string","maxLength":36},{"type":"null"}],"title":"X-Confirmation-Id"}},{"name":"x-chat-id","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"X-Chat-Id"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/DirectEngagementPreflightRequest"}}}},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/DirectEngagementPreflightResponse"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/admin/engagement-attempt-batches/direct":{"post":{"tags":["admin","engagement-attempt-batches"],"summary":"Create Direct Engagement Batch","operationId":"create_direct_engagement_batch_admin_engagement_attempt_batches_direct_post","security":[{"APIKeyHeader":[]},{"HTTPBearer":[]}],"parameters":[{"name":"organization-id","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Organization-Id"}},{"name":"timezone","in":"header","required":false,"schema":{"type":"string","default":"UTC","title":"Timezone"}},{"name":"x-user-id","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"X-User-Id"}},{"name":"x-actor-email","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"X-Actor-Email"}},{"name":"x-request-source","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"X-Request-Source"}},{"name":"x-operation-id","in":"header","required":false,"schema":{"anyOf":[{"type":"string","maxLength":36},{"type":"null"}],"title":"X-Operation-Id"}},{"name":"x-commit-message","in":"header","required":false,"schema":{"anyOf":[{"type":"string","minLength":1},{"type":"null"}],"title":"X-Commit-Message"}},{"name":"x-confirmation-id","in":"header","required":false,"schema":{"anyOf":[{"type":"string","maxLength":36},{"type":"null"}],"title":"X-Confirmation-Id"}},{"name":"x-chat-id","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"X-Chat-Id"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/CreateDirectEngagementRequest"}}}},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/CreateDirectEngagementResponse"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/admin/engagement-attempt-batches/{batch_id}":{"get":{"tags":["admin","engagement-attempt-batches"],"summary":"Get Engagement Attempt Batch","description":"Get a single engagement attempt batch with computed stats and cursor-paginated per-customer attempts.","operationId":"get_engagement_attempt_batch_admin_engagement_attempt_batches__batch_id__get","security":[{"APIKeyHeader":[]},{"HTTPBearer":[]}],"parameters":[{"name":"batch_id","in":"path","required":true,"schema":{"type":"string","title":"Batch Id"}},{"name":"attempts_cursor","in":"query","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Attempts Cursor"}},{"name":"attempts_limit","in":"query","required":false,"schema":{"type":"integer","default":50,"title":"Attempts Limit"}},{"name":"organization-id","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Organization-Id"}},{"name":"timezone","in":"header","required":false,"schema":{"type":"string","default":"UTC","title":"Timezone"}},{"name":"x-user-id","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"X-User-Id"}},{"name":"x-actor-email","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"X-Actor-Email"}},{"name":"x-request-source","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"X-Request-Source"}},{"name":"x-operation-id","in":"header","required":false,"schema":{"anyOf":[{"type":"string","maxLength":36},{"type":"null"}],"title":"X-Operation-Id"}},{"name":"x-commit-message","in":"header","required":false,"schema":{"anyOf":[{"type":"string","minLength":1},{"type":"null"}],"title":"X-Commit-Message"}},{"name":"x-confirmation-id","in":"header","required":false,"schema":{"anyOf":[{"type":"string","maxLength":36},{"type":"null"}],"title":"X-Confirmation-Id"}},{"name":"x-chat-id","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"X-Chat-Id"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/BatchDetailResponse"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/admin/engagement/escalations":{"get":{"tags":["admin","admin"],"summary":"Inspect Escalations","operationId":"inspect_escalations_admin_engagement_escalations_get","security":[{"APIKeyHeader":[]},{"HTTPBearer":[]}],"parameters":[{"name":"organization_id","in":"query","required":true,"schema":{"type":"string","title":"Organization Id"}},{"name":"escalation_ids","in":"query","required":true,"schema":{"type":"array","items":{"type":"string"},"minItems":1,"maxItems":50,"title":"Escalation Ids"}},{"name":"organization-id","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Organization-Id"}},{"name":"timezone","in":"header","required":false,"schema":{"type":"string","default":"UTC","title":"Timezone"}},{"name":"x-user-id","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"X-User-Id"}},{"name":"x-actor-email","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"X-Actor-Email"}},{"name":"x-request-source","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"X-Request-Source"}},{"name":"x-operation-id","in":"header","required":false,"schema":{"anyOf":[{"type":"string","maxLength":36},{"type":"null"}],"title":"X-Operation-Id"}},{"name":"x-commit-message","in":"header","required":false,"schema":{"anyOf":[{"type":"string","minLength":1},{"type":"null"}],"title":"X-Commit-Message"}},{"name":"x-confirmation-id","in":"header","required":false,"schema":{"anyOf":[{"type":"string","maxLength":36},{"type":"null"}],"title":"X-Confirmation-Id"}},{"name":"x-chat-id","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"X-Chat-Id"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/EscalationInspectionResponse"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/admin/engagement/escalations/resolve":{"post":{"tags":["admin","admin"],"summary":"Resolve Escalations","operationId":"resolve_escalations_admin_engagement_escalations_resolve_post","security":[{"APIKeyHeader":[]},{"HTTPBearer":[]}],"parameters":[{"name":"organization-id","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Organization-Id"}},{"name":"timezone","in":"header","required":false,"schema":{"type":"string","default":"UTC","title":"Timezone"}},{"name":"x-user-id","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"X-User-Id"}},{"name":"x-actor-email","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"X-Actor-Email"}},{"name":"x-request-source","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"X-Request-Source"}},{"name":"x-operation-id","in":"header","required":false,"schema":{"anyOf":[{"type":"string","maxLength":36},{"type":"null"}],"title":"X-Operation-Id"}},{"name":"x-commit-message","in":"header","required":false,"schema":{"anyOf":[{"type":"string","minLength":1},{"type":"null"}],"title":"X-Commit-Message"}},{"name":"x-confirmation-id","in":"header","required":false,"schema":{"anyOf":[{"type":"string","maxLength":36},{"type":"null"}],"title":"X-Confirmation-Id"}},{"name":"x-chat-id","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"X-Chat-Id"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/EscalationIdsRequest"}}}},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/EscalationActionResponse"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/admin/engagement/escalations/archive":{"post":{"tags":["admin","admin"],"summary":"Archive Escalations","operationId":"archive_escalations_admin_engagement_escalations_archive_post","security":[{"APIKeyHeader":[]},{"HTTPBearer":[]}],"parameters":[{"name":"organization-id","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Organization-Id"}},{"name":"timezone","in":"header","required":false,"schema":{"type":"string","default":"UTC","title":"Timezone"}},{"name":"x-user-id","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"X-User-Id"}},{"name":"x-actor-email","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"X-Actor-Email"}},{"name":"x-request-source","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"X-Request-Source"}},{"name":"x-operation-id","in":"header","required":false,"schema":{"anyOf":[{"type":"string","maxLength":36},{"type":"null"}],"title":"X-Operation-Id"}},{"name":"x-commit-message","in":"header","required":false,"schema":{"anyOf":[{"type":"string","minLength":1},{"type":"null"}],"title":"X-Commit-Message"}},{"name":"x-confirmation-id","in":"header","required":false,"schema":{"anyOf":[{"type":"string","maxLength":36},{"type":"null"}],"title":"X-Confirmation-Id"}},{"name":"x-chat-id","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"X-Chat-Id"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/EscalationIdsRequest"}}}},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/EscalationActionResponse"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/admin/engagement-internal/events":{"post":{"tags":["admin","engagement-internal"],"summary":"Create Event","operationId":"create_event_admin_engagement_internal_events_post","security":[{"APIKeyHeader":[]},{"HTTPBearer":[]}],"parameters":[{"name":"organization-id","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Organization-Id"}},{"name":"timezone","in":"header","required":false,"schema":{"type":"string","default":"UTC","title":"Timezone"}},{"name":"x-user-id","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"X-User-Id"}},{"name":"x-actor-email","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"X-Actor-Email"}},{"name":"x-request-source","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"X-Request-Source"}},{"name":"x-operation-id","in":"header","required":false,"schema":{"anyOf":[{"type":"string","maxLength":36},{"type":"null"}],"title":"X-Operation-Id"}},{"name":"x-commit-message","in":"header","required":false,"schema":{"anyOf":[{"type":"string","minLength":1},{"type":"null"}],"title":"X-Commit-Message"}},{"name":"x-confirmation-id","in":"header","required":false,"schema":{"anyOf":[{"type":"string","maxLength":36},{"type":"null"}],"title":"X-Confirmation-Id"}},{"name":"x-chat-id","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"X-Chat-Id"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/Event"}}}},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/EventPublicWithChildren"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/admin/engagement-internal/engagements/{engagement_id}":{"get":{"tags":["admin","engagement-internal"],"summary":"Read Engagement","operationId":"read_engagement_admin_engagement_internal_engagements__engagement_id__get","security":[{"APIKeyHeader":[]},{"HTTPBearer":[]}],"parameters":[{"name":"engagement_id","in":"path","required":true,"schema":{"type":"string","title":"Engagement Id"}},{"name":"include_cadence_gates","in":"query","required":false,"schema":{"type":"boolean","default":false,"title":"Include Cadence Gates"}},{"name":"organization-id","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Organization-Id"}},{"name":"timezone","in":"header","required":false,"schema":{"type":"string","default":"UTC","title":"Timezone"}},{"name":"x-user-id","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"X-User-Id"}},{"name":"x-actor-email","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"X-Actor-Email"}},{"name":"x-request-source","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"X-Request-Source"}},{"name":"x-operation-id","in":"header","required":false,"schema":{"anyOf":[{"type":"string","maxLength":36},{"type":"null"}],"title":"X-Operation-Id"}},{"name":"x-commit-message","in":"header","required":false,"schema":{"anyOf":[{"type":"string","minLength":1},{"type":"null"}],"title":"X-Commit-Message"}},{"name":"x-confirmation-id","in":"header","required":false,"schema":{"anyOf":[{"type":"string","maxLength":36},{"type":"null"}],"title":"X-Confirmation-Id"}},{"name":"x-chat-id","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"X-Chat-Id"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"anyOf":[{"$ref":"#/components/schemas/EngagementPublic"},{"$ref":"#/components/schemas/EngagementCadenceGates"}],"title":"Response Read Engagement Admin Engagement Internal Engagements  Engagement Id  Get"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/admin/engagement-internal/short-links":{"post":{"tags":["admin","engagement-internal"],"summary":"Create Short Link","operationId":"create_short_link_admin_engagement_internal_short_links_post","security":[{"APIKeyHeader":[]},{"HTTPBearer":[]}],"parameters":[{"name":"organization-id","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Organization-Id"}},{"name":"timezone","in":"header","required":false,"schema":{"type":"string","default":"UTC","title":"Timezone"}},{"name":"x-user-id","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"X-User-Id"}},{"name":"x-actor-email","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"X-Actor-Email"}},{"name":"x-request-source","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"X-Request-Source"}},{"name":"x-operation-id","in":"header","required":false,"schema":{"anyOf":[{"type":"string","maxLength":36},{"type":"null"}],"title":"X-Operation-Id"}},{"name":"x-commit-message","in":"header","required":false,"schema":{"anyOf":[{"type":"string","minLength":1},{"type":"null"}],"title":"X-Commit-Message"}},{"name":"x-confirmation-id","in":"header","required":false,"schema":{"anyOf":[{"type":"string","maxLength":36},{"type":"null"}],"title":"X-Confirmation-Id"}},{"name":"x-chat-id","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"X-Chat-Id"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/CreateShortLinkRequest"}}}},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ShortLinkPublic"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/admin/edit-logs/organizations/{organization_id}":{"get":{"tags":["admin","edit-logs"],"summary":"Read Org Edit Logs","operationId":"read_org_edit_logs_admin_edit_logs_organizations__organization_id__get","security":[{"APIKeyHeader":[]},{"HTTPBearer":[]}],"parameters":[{"name":"organization_id","in":"path","required":true,"schema":{"type":"string","title":"Organization Id"}},{"name":"entity_type","in":"query","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Entity Type"}},{"name":"edit_log_id","in":"query","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Edit Log Id"}},{"name":"entity_or_parent_id","in":"query","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Entity Or Parent Id"}},{"name":"limit","in":"query","required":false,"schema":{"type":"integer","maximum":500,"minimum":1,"default":100,"title":"Limit"}},{"name":"offset","in":"query","required":false,"schema":{"type":"integer","minimum":0,"default":0,"title":"Offset"}},{"name":"organization-id","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Organization-Id"}},{"name":"timezone","in":"header","required":false,"schema":{"type":"string","default":"UTC","title":"Timezone"}},{"name":"x-user-id","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"X-User-Id"}},{"name":"x-actor-email","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"X-Actor-Email"}},{"name":"x-request-source","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"X-Request-Source"}},{"name":"x-operation-id","in":"header","required":false,"schema":{"anyOf":[{"type":"string","maxLength":36},{"type":"null"}],"title":"X-Operation-Id"}},{"name":"x-commit-message","in":"header","required":false,"schema":{"anyOf":[{"type":"string","minLength":1},{"type":"null"}],"title":"X-Commit-Message"}},{"name":"x-confirmation-id","in":"header","required":false,"schema":{"anyOf":[{"type":"string","maxLength":36},{"type":"null"}],"title":"X-Confirmation-Id"}},{"name":"x-chat-id","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"X-Chat-Id"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/EditLogPageResponse"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/admin/edit-logs/entities":{"get":{"tags":["admin","edit-logs"],"summary":"Read Entity Edit Logs","operationId":"read_entity_edit_logs_admin_edit_logs_entities_get","security":[{"APIKeyHeader":[]},{"HTTPBearer":[]}],"parameters":[{"name":"id","in":"query","required":true,"schema":{"type":"array","items":{"type":"string"},"minItems":1,"title":"Id"}},{"name":"entity_type","in":"query","required":false,"schema":{"anyOf":[{"type":"array","items":{"type":"string"}},{"type":"null"}],"title":"Entity Type"}},{"name":"limit","in":"query","required":false,"schema":{"type":"integer","maximum":500,"minimum":1,"default":100,"title":"Limit"}},{"name":"offset","in":"query","required":false,"schema":{"type":"integer","minimum":0,"default":0,"title":"Offset"}},{"name":"organization-id","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Organization-Id"}},{"name":"timezone","in":"header","required":false,"schema":{"type":"string","default":"UTC","title":"Timezone"}},{"name":"x-user-id","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"X-User-Id"}},{"name":"x-actor-email","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"X-Actor-Email"}},{"name":"x-request-source","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"X-Request-Source"}},{"name":"x-operation-id","in":"header","required":false,"schema":{"anyOf":[{"type":"string","maxLength":36},{"type":"null"}],"title":"X-Operation-Id"}},{"name":"x-commit-message","in":"header","required":false,"schema":{"anyOf":[{"type":"string","minLength":1},{"type":"null"}],"title":"X-Commit-Message"}},{"name":"x-confirmation-id","in":"header","required":false,"schema":{"anyOf":[{"type":"string","maxLength":36},{"type":"null"}],"title":"X-Confirmation-Id"}},{"name":"x-chat-id","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"X-Chat-Id"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/EditLogPageResponse"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/admin/edit-logs/entries/{edit_log_id}":{"get":{"tags":["admin","edit-logs"],"summary":"Read Edit Log Entry","operationId":"read_edit_log_entry_admin_edit_logs_entries__edit_log_id__get","security":[{"APIKeyHeader":[]},{"HTTPBearer":[]}],"parameters":[{"name":"edit_log_id","in":"path","required":true,"schema":{"type":"string","title":"Edit Log Id"}},{"name":"organization-id","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Organization-Id"}},{"name":"timezone","in":"header","required":false,"schema":{"type":"string","default":"UTC","title":"Timezone"}},{"name":"x-user-id","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"X-User-Id"}},{"name":"x-actor-email","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"X-Actor-Email"}},{"name":"x-request-source","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"X-Request-Source"}},{"name":"x-operation-id","in":"header","required":false,"schema":{"anyOf":[{"type":"string","maxLength":36},{"type":"null"}],"title":"X-Operation-Id"}},{"name":"x-commit-message","in":"header","required":false,"schema":{"anyOf":[{"type":"string","minLength":1},{"type":"null"}],"title":"X-Commit-Message"}},{"name":"x-confirmation-id","in":"header","required":false,"schema":{"anyOf":[{"type":"string","maxLength":36},{"type":"null"}],"title":"X-Confirmation-Id"}},{"name":"x-chat-id","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"X-Chat-Id"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/EditLogResponse"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/admin/edit-logs/operations/{operation_id}":{"get":{"tags":["admin","edit-logs"],"summary":"Read Edit Log Operation","operationId":"read_edit_log_operation_admin_edit_logs_operations__operation_id__get","security":[{"APIKeyHeader":[]},{"HTTPBearer":[]}],"parameters":[{"name":"operation_id","in":"path","required":true,"schema":{"type":"string","title":"Operation Id"}},{"name":"organization-id","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Organization-Id"}},{"name":"timezone","in":"header","required":false,"schema":{"type":"string","default":"UTC","title":"Timezone"}},{"name":"x-user-id","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"X-User-Id"}},{"name":"x-actor-email","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"X-Actor-Email"}},{"name":"x-request-source","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"X-Request-Source"}},{"name":"x-operation-id","in":"header","required":false,"schema":{"anyOf":[{"type":"string","maxLength":36},{"type":"null"}],"title":"X-Operation-Id"}},{"name":"x-commit-message","in":"header","required":false,"schema":{"anyOf":[{"type":"string","minLength":1},{"type":"null"}],"title":"X-Commit-Message"}},{"name":"x-confirmation-id","in":"header","required":false,"schema":{"anyOf":[{"type":"string","maxLength":36},{"type":"null"}],"title":"X-Confirmation-Id"}},{"name":"x-chat-id","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"X-Chat-Id"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"type":"array","items":{"$ref":"#/components/schemas/EditLogResponse"},"title":"Response Read Edit Log Operation Admin Edit Logs Operations  Operation Id  Get"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/admin/experiments/metric-definitions":{"get":{"tags":["admin","experiments"],"summary":"Read Experiment Metric Definitions","operationId":"read_experiment_metric_definitions_admin_experiments_metric_definitions_get","security":[{"APIKeyHeader":[]},{"HTTPBearer":[]}],"parameters":[{"name":"organization-id","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Organization-Id"}},{"name":"timezone","in":"header","required":false,"schema":{"type":"string","default":"UTC","title":"Timezone"}},{"name":"x-user-id","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"X-User-Id"}},{"name":"x-actor-email","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"X-Actor-Email"}},{"name":"x-request-source","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"X-Request-Source"}},{"name":"x-operation-id","in":"header","required":false,"schema":{"anyOf":[{"type":"string","maxLength":36},{"type":"null"}],"title":"X-Operation-Id"}},{"name":"x-commit-message","in":"header","required":false,"schema":{"anyOf":[{"type":"string","minLength":1},{"type":"null"}],"title":"X-Commit-Message"}},{"name":"x-confirmation-id","in":"header","required":false,"schema":{"anyOf":[{"type":"string","maxLength":36},{"type":"null"}],"title":"X-Confirmation-Id"}},{"name":"x-chat-id","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"X-Chat-Id"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"type":"array","items":{"$ref":"#/components/schemas/ExperimentMetricDefinitionPublic"},"title":"Response Read Experiment Metric Definitions Admin Experiments Metric Definitions Get"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/admin/experiments/preview-sizing":{"post":{"tags":["admin","experiments"],"summary":"Preview Experiment Sizing","operationId":"preview_experiment_sizing_admin_experiments_preview_sizing_post","security":[{"APIKeyHeader":[]},{"HTTPBearer":[]}],"parameters":[{"name":"organization-id","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Organization-Id"}},{"name":"timezone","in":"header","required":false,"schema":{"type":"string","default":"UTC","title":"Timezone"}},{"name":"x-user-id","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"X-User-Id"}},{"name":"x-actor-email","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"X-Actor-Email"}},{"name":"x-request-source","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"X-Request-Source"}},{"name":"x-operation-id","in":"header","required":false,"schema":{"anyOf":[{"type":"string","maxLength":36},{"type":"null"}],"title":"X-Operation-Id"}},{"name":"x-commit-message","in":"header","required":false,"schema":{"anyOf":[{"type":"string","minLength":1},{"type":"null"}],"title":"X-Commit-Message"}},{"name":"x-confirmation-id","in":"header","required":false,"schema":{"anyOf":[{"type":"string","maxLength":36},{"type":"null"}],"title":"X-Confirmation-Id"}},{"name":"x-chat-id","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"X-Chat-Id"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/SizingPreviewRequest"}}}},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/SizingPreview"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/admin/experiments/preview-participants":{"post":{"tags":["admin","experiments"],"summary":"Preview Experiment Participants","operationId":"preview_experiment_participants_admin_experiments_preview_participants_post","security":[{"APIKeyHeader":[]},{"HTTPBearer":[]}],"parameters":[{"name":"organization-id","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Organization-Id"}},{"name":"timezone","in":"header","required":false,"schema":{"type":"string","default":"UTC","title":"Timezone"}},{"name":"x-user-id","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"X-User-Id"}},{"name":"x-actor-email","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"X-Actor-Email"}},{"name":"x-request-source","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"X-Request-Source"}},{"name":"x-operation-id","in":"header","required":false,"schema":{"anyOf":[{"type":"string","maxLength":36},{"type":"null"}],"title":"X-Operation-Id"}},{"name":"x-commit-message","in":"header","required":false,"schema":{"anyOf":[{"type":"string","minLength":1},{"type":"null"}],"title":"X-Commit-Message"}},{"name":"x-confirmation-id","in":"header","required":false,"schema":{"anyOf":[{"type":"string","maxLength":36},{"type":"null"}],"title":"X-Confirmation-Id"}},{"name":"x-chat-id","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"X-Chat-Id"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ParticipantPreviewRequest"}}}},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ExperimentAudiencePreview"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/admin/experiments/":{"post":{"tags":["admin","experiments"],"summary":"Create Experiment","operationId":"create_experiment_admin_experiments__post","security":[{"APIKeyHeader":[]},{"HTTPBearer":[]}],"parameters":[{"name":"organization-id","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Organization-Id"}},{"name":"timezone","in":"header","required":false,"schema":{"type":"string","default":"UTC","title":"Timezone"}},{"name":"x-user-id","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"X-User-Id"}},{"name":"x-actor-email","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"X-Actor-Email"}},{"name":"x-request-source","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"X-Request-Source"}},{"name":"x-operation-id","in":"header","required":false,"schema":{"anyOf":[{"type":"string","maxLength":36},{"type":"null"}],"title":"X-Operation-Id"}},{"name":"x-commit-message","in":"header","required":false,"schema":{"anyOf":[{"type":"string","minLength":1},{"type":"null"}],"title":"X-Commit-Message"}},{"name":"x-confirmation-id","in":"header","required":false,"schema":{"anyOf":[{"type":"string","maxLength":36},{"type":"null"}],"title":"X-Confirmation-Id"}},{"name":"x-chat-id","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"X-Chat-Id"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ExperimentCreate"}}}},"responses":{"201":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ExperimentPublic"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}},"get":{"tags":["admin","experiments"],"summary":"Read Experiments","operationId":"read_experiments_admin_experiments__get","security":[{"APIKeyHeader":[]},{"HTTPBearer":[]}],"parameters":[{"name":"status","in":"query","required":false,"schema":{"anyOf":[{"$ref":"#/components/schemas/ExperimentStatus"},{"type":"null"}],"title":"Status"}},{"name":"limit","in":"query","required":false,"schema":{"type":"integer","maximum":200,"minimum":1,"default":50,"title":"Limit"}},{"name":"offset","in":"query","required":false,"schema":{"type":"integer","minimum":0,"default":0,"title":"Offset"}},{"name":"organization-id","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Organization-Id"}},{"name":"timezone","in":"header","required":false,"schema":{"type":"string","default":"UTC","title":"Timezone"}},{"name":"x-user-id","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"X-User-Id"}},{"name":"x-actor-email","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"X-Actor-Email"}},{"name":"x-request-source","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"X-Request-Source"}},{"name":"x-operation-id","in":"header","required":false,"schema":{"anyOf":[{"type":"string","maxLength":36},{"type":"null"}],"title":"X-Operation-Id"}},{"name":"x-commit-message","in":"header","required":false,"schema":{"anyOf":[{"type":"string","minLength":1},{"type":"null"}],"title":"X-Commit-Message"}},{"name":"x-confirmation-id","in":"header","required":false,"schema":{"anyOf":[{"type":"string","maxLength":36},{"type":"null"}],"title":"X-Confirmation-Id"}},{"name":"x-chat-id","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"X-Chat-Id"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ExperimentPagePublic"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/admin/experiments/{experiment_id}":{"get":{"tags":["admin","experiments"],"summary":"Read Experiment","operationId":"read_experiment_admin_experiments__experiment_id__get","security":[{"APIKeyHeader":[]},{"HTTPBearer":[]}],"parameters":[{"name":"experiment_id","in":"path","required":true,"schema":{"type":"string","title":"Experiment Id"}},{"name":"organization-id","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Organization-Id"}},{"name":"timezone","in":"header","required":false,"schema":{"type":"string","default":"UTC","title":"Timezone"}},{"name":"x-user-id","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"X-User-Id"}},{"name":"x-actor-email","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"X-Actor-Email"}},{"name":"x-request-source","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"X-Request-Source"}},{"name":"x-operation-id","in":"header","required":false,"schema":{"anyOf":[{"type":"string","maxLength":36},{"type":"null"}],"title":"X-Operation-Id"}},{"name":"x-commit-message","in":"header","required":false,"schema":{"anyOf":[{"type":"string","minLength":1},{"type":"null"}],"title":"X-Commit-Message"}},{"name":"x-confirmation-id","in":"header","required":false,"schema":{"anyOf":[{"type":"string","maxLength":36},{"type":"null"}],"title":"X-Confirmation-Id"}},{"name":"x-chat-id","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"X-Chat-Id"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ExperimentPublic"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}},"patch":{"tags":["admin","experiments"],"summary":"Update Experiment","operationId":"update_experiment_admin_experiments__experiment_id__patch","security":[{"APIKeyHeader":[]},{"HTTPBearer":[]}],"parameters":[{"name":"experiment_id","in":"path","required":true,"schema":{"type":"string","title":"Experiment Id"}},{"name":"organization-id","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Organization-Id"}},{"name":"timezone","in":"header","required":false,"schema":{"type":"string","default":"UTC","title":"Timezone"}},{"name":"x-user-id","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"X-User-Id"}},{"name":"x-actor-email","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"X-Actor-Email"}},{"name":"x-request-source","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"X-Request-Source"}},{"name":"x-operation-id","in":"header","required":false,"schema":{"anyOf":[{"type":"string","maxLength":36},{"type":"null"}],"title":"X-Operation-Id"}},{"name":"x-commit-message","in":"header","required":false,"schema":{"anyOf":[{"type":"string","minLength":1},{"type":"null"}],"title":"X-Commit-Message"}},{"name":"x-confirmation-id","in":"header","required":false,"schema":{"anyOf":[{"type":"string","maxLength":36},{"type":"null"}],"title":"X-Confirmation-Id"}},{"name":"x-chat-id","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"X-Chat-Id"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ExperimentUpdate"}}}},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ExperimentPublic"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}},"delete":{"tags":["admin","experiments"],"summary":"Delete Experiment","operationId":"delete_experiment_admin_experiments__experiment_id__delete","security":[{"APIKeyHeader":[]},{"HTTPBearer":[]}],"parameters":[{"name":"experiment_id","in":"path","required":true,"schema":{"type":"string","title":"Experiment Id"}},{"name":"organization-id","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Organization-Id"}},{"name":"timezone","in":"header","required":false,"schema":{"type":"string","default":"UTC","title":"Timezone"}},{"name":"x-user-id","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"X-User-Id"}},{"name":"x-actor-email","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"X-Actor-Email"}},{"name":"x-request-source","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"X-Request-Source"}},{"name":"x-operation-id","in":"header","required":false,"schema":{"anyOf":[{"type":"string","maxLength":36},{"type":"null"}],"title":"X-Operation-Id"}},{"name":"x-commit-message","in":"header","required":false,"schema":{"anyOf":[{"type":"string","minLength":1},{"type":"null"}],"title":"X-Commit-Message"}},{"name":"x-confirmation-id","in":"header","required":false,"schema":{"anyOf":[{"type":"string","maxLength":36},{"type":"null"}],"title":"X-Confirmation-Id"}},{"name":"x-chat-id","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"X-Chat-Id"}}],"responses":{"204":{"description":"Successful Response"},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/admin/experiments/{experiment_id}/launch":{"post":{"tags":["admin","experiments"],"summary":"Launch Experiment","operationId":"launch_experiment_admin_experiments__experiment_id__launch_post","security":[{"APIKeyHeader":[]},{"HTTPBearer":[]}],"parameters":[{"name":"experiment_id","in":"path","required":true,"schema":{"type":"string","title":"Experiment Id"}},{"name":"organization-id","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Organization-Id"}},{"name":"timezone","in":"header","required":false,"schema":{"type":"string","default":"UTC","title":"Timezone"}},{"name":"x-user-id","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"X-User-Id"}},{"name":"x-actor-email","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"X-Actor-Email"}},{"name":"x-request-source","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"X-Request-Source"}},{"name":"x-operation-id","in":"header","required":false,"schema":{"anyOf":[{"type":"string","maxLength":36},{"type":"null"}],"title":"X-Operation-Id"}},{"name":"x-commit-message","in":"header","required":false,"schema":{"anyOf":[{"type":"string","minLength":1},{"type":"null"}],"title":"X-Commit-Message"}},{"name":"x-confirmation-id","in":"header","required":false,"schema":{"anyOf":[{"type":"string","maxLength":36},{"type":"null"}],"title":"X-Confirmation-Id"}},{"name":"x-chat-id","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"X-Chat-Id"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ExperimentPublic"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/admin/experiments/{experiment_id}/pause":{"post":{"tags":["admin","experiments"],"summary":"Pause Experiment","operationId":"pause_experiment_admin_experiments__experiment_id__pause_post","security":[{"APIKeyHeader":[]},{"HTTPBearer":[]}],"parameters":[{"name":"experiment_id","in":"path","required":true,"schema":{"type":"string","title":"Experiment Id"}},{"name":"organization-id","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Organization-Id"}},{"name":"timezone","in":"header","required":false,"schema":{"type":"string","default":"UTC","title":"Timezone"}},{"name":"x-user-id","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"X-User-Id"}},{"name":"x-actor-email","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"X-Actor-Email"}},{"name":"x-request-source","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"X-Request-Source"}},{"name":"x-operation-id","in":"header","required":false,"schema":{"anyOf":[{"type":"string","maxLength":36},{"type":"null"}],"title":"X-Operation-Id"}},{"name":"x-commit-message","in":"header","required":false,"schema":{"anyOf":[{"type":"string","minLength":1},{"type":"null"}],"title":"X-Commit-Message"}},{"name":"x-confirmation-id","in":"header","required":false,"schema":{"anyOf":[{"type":"string","maxLength":36},{"type":"null"}],"title":"X-Confirmation-Id"}},{"name":"x-chat-id","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"X-Chat-Id"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ExperimentPublic"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/admin/experiments/{experiment_id}/resume":{"post":{"tags":["admin","experiments"],"summary":"Resume Experiment","operationId":"resume_experiment_admin_experiments__experiment_id__resume_post","security":[{"APIKeyHeader":[]},{"HTTPBearer":[]}],"parameters":[{"name":"experiment_id","in":"path","required":true,"schema":{"type":"string","title":"Experiment Id"}},{"name":"organization-id","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Organization-Id"}},{"name":"timezone","in":"header","required":false,"schema":{"type":"string","default":"UTC","title":"Timezone"}},{"name":"x-user-id","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"X-User-Id"}},{"name":"x-actor-email","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"X-Actor-Email"}},{"name":"x-request-source","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"X-Request-Source"}},{"name":"x-operation-id","in":"header","required":false,"schema":{"anyOf":[{"type":"string","maxLength":36},{"type":"null"}],"title":"X-Operation-Id"}},{"name":"x-commit-message","in":"header","required":false,"schema":{"anyOf":[{"type":"string","minLength":1},{"type":"null"}],"title":"X-Commit-Message"}},{"name":"x-confirmation-id","in":"header","required":false,"schema":{"anyOf":[{"type":"string","maxLength":36},{"type":"null"}],"title":"X-Confirmation-Id"}},{"name":"x-chat-id","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"X-Chat-Id"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ExperimentPublic"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/admin/experiments/{experiment_id}/restart":{"post":{"tags":["admin","experiments"],"summary":"Restart Experiment","operationId":"restart_experiment_admin_experiments__experiment_id__restart_post","security":[{"APIKeyHeader":[]},{"HTTPBearer":[]}],"parameters":[{"name":"experiment_id","in":"path","required":true,"schema":{"type":"string","title":"Experiment Id"}},{"name":"organization-id","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Organization-Id"}},{"name":"timezone","in":"header","required":false,"schema":{"type":"string","default":"UTC","title":"Timezone"}},{"name":"x-user-id","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"X-User-Id"}},{"name":"x-actor-email","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"X-Actor-Email"}},{"name":"x-request-source","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"X-Request-Source"}},{"name":"x-operation-id","in":"header","required":false,"schema":{"anyOf":[{"type":"string","maxLength":36},{"type":"null"}],"title":"X-Operation-Id"}},{"name":"x-commit-message","in":"header","required":false,"schema":{"anyOf":[{"type":"string","minLength":1},{"type":"null"}],"title":"X-Commit-Message"}},{"name":"x-confirmation-id","in":"header","required":false,"schema":{"anyOf":[{"type":"string","maxLength":36},{"type":"null"}],"title":"X-Confirmation-Id"}},{"name":"x-chat-id","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"X-Chat-Id"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ExperimentPublic"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/admin/experiments/{experiment_id}/dashboard":{"post":{"tags":["admin","experiments"],"summary":"Rebuild Experiment Dashboard","operationId":"rebuild_experiment_dashboard_admin_experiments__experiment_id__dashboard_post","security":[{"APIKeyHeader":[]},{"HTTPBearer":[]}],"parameters":[{"name":"experiment_id","in":"path","required":true,"schema":{"type":"string","title":"Experiment Id"}},{"name":"organization-id","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Organization-Id"}},{"name":"timezone","in":"header","required":false,"schema":{"type":"string","default":"UTC","title":"Timezone"}},{"name":"x-user-id","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"X-User-Id"}},{"name":"x-actor-email","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"X-Actor-Email"}},{"name":"x-request-source","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"X-Request-Source"}},{"name":"x-operation-id","in":"header","required":false,"schema":{"anyOf":[{"type":"string","maxLength":36},{"type":"null"}],"title":"X-Operation-Id"}},{"name":"x-commit-message","in":"header","required":false,"schema":{"anyOf":[{"type":"string","minLength":1},{"type":"null"}],"title":"X-Commit-Message"}},{"name":"x-confirmation-id","in":"header","required":false,"schema":{"anyOf":[{"type":"string","maxLength":36},{"type":"null"}],"title":"X-Confirmation-Id"}},{"name":"x-chat-id","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"X-Chat-Id"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ExperimentPublic"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/admin/experiments/{experiment_id}/end":{"post":{"tags":["admin","experiments"],"summary":"End Experiment","operationId":"end_experiment_admin_experiments__experiment_id__end_post","security":[{"APIKeyHeader":[]},{"HTTPBearer":[]}],"parameters":[{"name":"experiment_id","in":"path","required":true,"schema":{"type":"string","title":"Experiment Id"}},{"name":"organization-id","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Organization-Id"}},{"name":"timezone","in":"header","required":false,"schema":{"type":"string","default":"UTC","title":"Timezone"}},{"name":"x-user-id","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"X-User-Id"}},{"name":"x-actor-email","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"X-Actor-Email"}},{"name":"x-request-source","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"X-Request-Source"}},{"name":"x-operation-id","in":"header","required":false,"schema":{"anyOf":[{"type":"string","maxLength":36},{"type":"null"}],"title":"X-Operation-Id"}},{"name":"x-commit-message","in":"header","required":false,"schema":{"anyOf":[{"type":"string","minLength":1},{"type":"null"}],"title":"X-Commit-Message"}},{"name":"x-confirmation-id","in":"header","required":false,"schema":{"anyOf":[{"type":"string","maxLength":36},{"type":"null"}],"title":"X-Confirmation-Id"}},{"name":"x-chat-id","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"X-Chat-Id"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/EndExperimentRequest"}}}},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ExperimentPublic"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/admin/gateway/{service_name}/{sub_path}":{"get":{"tags":["admin","gateway"],"summary":"Get Gateway","operationId":"get_gateway_admin_gateway__service_name___sub_path__get","security":[{"APIKeyHeader":[]},{"HTTPBearer":[]}],"parameters":[{"name":"service_name","in":"path","required":true,"schema":{"type":"string","title":"Service Name"}},{"name":"sub_path","in":"path","required":true,"schema":{"type":"string","title":"Sub Path"}},{"name":"organization-id","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Organization-Id"}},{"name":"timezone","in":"header","required":false,"schema":{"type":"string","default":"UTC","title":"Timezone"}},{"name":"x-user-id","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"X-User-Id"}},{"name":"x-actor-email","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"X-Actor-Email"}},{"name":"x-request-source","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"X-Request-Source"}},{"name":"x-operation-id","in":"header","required":false,"schema":{"anyOf":[{"type":"string","maxLength":36},{"type":"null"}],"title":"X-Operation-Id"}},{"name":"x-commit-message","in":"header","required":false,"schema":{"anyOf":[{"type":"string","minLength":1},{"type":"null"}],"title":"X-Commit-Message"}},{"name":"x-confirmation-id","in":"header","required":false,"schema":{"anyOf":[{"type":"string","maxLength":36},{"type":"null"}],"title":"X-Confirmation-Id"}},{"name":"x-chat-id","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"X-Chat-Id"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}},"post":{"tags":["admin","gateway"],"summary":"Post Gateway","operationId":"post_gateway_admin_gateway__service_name___sub_path__post","security":[{"APIKeyHeader":[]},{"HTTPBearer":[]}],"parameters":[{"name":"service_name","in":"path","required":true,"schema":{"type":"string","title":"Service Name"}},{"name":"sub_path","in":"path","required":true,"schema":{"type":"string","title":"Sub Path"}},{"name":"organization-id","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Organization-Id"}},{"name":"timezone","in":"header","required":false,"schema":{"type":"string","default":"UTC","title":"Timezone"}},{"name":"x-user-id","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"X-User-Id"}},{"name":"x-actor-email","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"X-Actor-Email"}},{"name":"x-request-source","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"X-Request-Source"}},{"name":"x-operation-id","in":"header","required":false,"schema":{"anyOf":[{"type":"string","maxLength":36},{"type":"null"}],"title":"X-Operation-Id"}},{"name":"x-commit-message","in":"header","required":false,"schema":{"anyOf":[{"type":"string","minLength":1},{"type":"null"}],"title":"X-Commit-Message"}},{"name":"x-confirmation-id","in":"header","required":false,"schema":{"anyOf":[{"type":"string","maxLength":36},{"type":"null"}],"title":"X-Confirmation-Id"}},{"name":"x-chat-id","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"X-Chat-Id"}}],"requestBody":{"content":{"application/json":{"schema":{"anyOf":[{"type":"object","additionalProperties":true},{"type":"null"}],"title":"Body"}}}},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}},"put":{"tags":["admin","gateway"],"summary":"Put Gateway","operationId":"put_gateway_admin_gateway__service_name___sub_path__put","security":[{"APIKeyHeader":[]},{"HTTPBearer":[]}],"parameters":[{"name":"service_name","in":"path","required":true,"schema":{"type":"string","title":"Service Name"}},{"name":"sub_path","in":"path","required":true,"schema":{"type":"string","title":"Sub Path"}},{"name":"organization-id","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Organization-Id"}},{"name":"timezone","in":"header","required":false,"schema":{"type":"string","default":"UTC","title":"Timezone"}},{"name":"x-user-id","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"X-User-Id"}},{"name":"x-actor-email","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"X-Actor-Email"}},{"name":"x-request-source","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"X-Request-Source"}},{"name":"x-operation-id","in":"header","required":false,"schema":{"anyOf":[{"type":"string","maxLength":36},{"type":"null"}],"title":"X-Operation-Id"}},{"name":"x-commit-message","in":"header","required":false,"schema":{"anyOf":[{"type":"string","minLength":1},{"type":"null"}],"title":"X-Commit-Message"}},{"name":"x-confirmation-id","in":"header","required":false,"schema":{"anyOf":[{"type":"string","maxLength":36},{"type":"null"}],"title":"X-Confirmation-Id"}},{"name":"x-chat-id","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"X-Chat-Id"}}],"requestBody":{"content":{"application/json":{"schema":{"anyOf":[{"type":"object","additionalProperties":true},{"type":"null"}],"title":"Body"}}}},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}},"patch":{"tags":["admin","gateway"],"summary":"Patch Gateway","operationId":"patch_gateway_admin_gateway__service_name___sub_path__patch","security":[{"APIKeyHeader":[]},{"HTTPBearer":[]}],"parameters":[{"name":"service_name","in":"path","required":true,"schema":{"type":"string","title":"Service Name"}},{"name":"sub_path","in":"path","required":true,"schema":{"type":"string","title":"Sub Path"}},{"name":"organization-id","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Organization-Id"}},{"name":"timezone","in":"header","required":false,"schema":{"type":"string","default":"UTC","title":"Timezone"}},{"name":"x-user-id","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"X-User-Id"}},{"name":"x-actor-email","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"X-Actor-Email"}},{"name":"x-request-source","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"X-Request-Source"}},{"name":"x-operation-id","in":"header","required":false,"schema":{"anyOf":[{"type":"string","maxLength":36},{"type":"null"}],"title":"X-Operation-Id"}},{"name":"x-commit-message","in":"header","required":false,"schema":{"anyOf":[{"type":"string","minLength":1},{"type":"null"}],"title":"X-Commit-Message"}},{"name":"x-confirmation-id","in":"header","required":false,"schema":{"anyOf":[{"type":"string","maxLength":36},{"type":"null"}],"title":"X-Confirmation-Id"}},{"name":"x-chat-id","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"X-Chat-Id"}}],"requestBody":{"content":{"application/json":{"schema":{"anyOf":[{"type":"object","additionalProperties":true},{"type":"null"}],"title":"Body"}}}},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}},"delete":{"tags":["admin","gateway"],"summary":"Delete Gateway","operationId":"delete_gateway_admin_gateway__service_name___sub_path__delete","security":[{"APIKeyHeader":[]},{"HTTPBearer":[]}],"parameters":[{"name":"service_name","in":"path","required":true,"schema":{"type":"string","title":"Service Name"}},{"name":"sub_path","in":"path","required":true,"schema":{"type":"string","title":"Sub Path"}},{"name":"organization-id","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Organization-Id"}},{"name":"timezone","in":"header","required":false,"schema":{"type":"string","default":"UTC","title":"Timezone"}},{"name":"x-user-id","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"X-User-Id"}},{"name":"x-actor-email","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"X-Actor-Email"}},{"name":"x-request-source","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"X-Request-Source"}},{"name":"x-operation-id","in":"header","required":false,"schema":{"anyOf":[{"type":"string","maxLength":36},{"type":"null"}],"title":"X-Operation-Id"}},{"name":"x-commit-message","in":"header","required":false,"schema":{"anyOf":[{"type":"string","minLength":1},{"type":"null"}],"title":"X-Commit-Message"}},{"name":"x-confirmation-id","in":"header","required":false,"schema":{"anyOf":[{"type":"string","maxLength":36},{"type":"null"}],"title":"X-Confirmation-Id"}},{"name":"x-chat-id","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"X-Chat-Id"}}],"requestBody":{"content":{"application/json":{"schema":{"anyOf":[{"type":"object","additionalProperties":true},{"type":"null"}],"title":"Body"}}}},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/admin/health/cache":{"get":{"tags":["admin","health"],"summary":"Cache Health","operationId":"cache_health_admin_health_cache_get","security":[{"APIKeyHeader":[]},{"HTTPBearer":[]}],"parameters":[{"name":"organization-id","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Organization-Id"}},{"name":"timezone","in":"header","required":false,"schema":{"type":"string","default":"UTC","title":"Timezone"}},{"name":"x-user-id","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"X-User-Id"}},{"name":"x-actor-email","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"X-Actor-Email"}},{"name":"x-request-source","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"X-Request-Source"}},{"name":"x-operation-id","in":"header","required":false,"schema":{"anyOf":[{"type":"string","maxLength":36},{"type":"null"}],"title":"X-Operation-Id"}},{"name":"x-commit-message","in":"header","required":false,"schema":{"anyOf":[{"type":"string","minLength":1},{"type":"null"}],"title":"X-Commit-Message"}},{"name":"x-confirmation-id","in":"header","required":false,"schema":{"anyOf":[{"type":"string","maxLength":36},{"type":"null"}],"title":"X-Confirmation-Id"}},{"name":"x-chat-id","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"X-Chat-Id"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/admin/engagements/{engagement_id}/hook-dispatches":{"get":{"tags":["admin","hook-dispatches"],"summary":"List Engagement Hook Dispatches","operationId":"list_engagement_hook_dispatches_admin_engagements__engagement_id__hook_dispatches_get","security":[{"APIKeyHeader":[]},{"HTTPBearer":[]}],"parameters":[{"name":"engagement_id","in":"path","required":true,"schema":{"type":"string","title":"Engagement Id"}},{"name":"organization-id","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Organization-Id"}},{"name":"timezone","in":"header","required":false,"schema":{"type":"string","default":"UTC","title":"Timezone"}},{"name":"x-user-id","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"X-User-Id"}},{"name":"x-actor-email","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"X-Actor-Email"}},{"name":"x-request-source","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"X-Request-Source"}},{"name":"x-operation-id","in":"header","required":false,"schema":{"anyOf":[{"type":"string","maxLength":36},{"type":"null"}],"title":"X-Operation-Id"}},{"name":"x-commit-message","in":"header","required":false,"schema":{"anyOf":[{"type":"string","minLength":1},{"type":"null"}],"title":"X-Commit-Message"}},{"name":"x-confirmation-id","in":"header","required":false,"schema":{"anyOf":[{"type":"string","maxLength":36},{"type":"null"}],"title":"X-Confirmation-Id"}},{"name":"x-chat-id","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"X-Chat-Id"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"type":"array","items":{"$ref":"#/components/schemas/HookDispatchPublic"},"title":"Response List Engagement Hook Dispatches Admin Engagements  Engagement Id  Hook Dispatches Get"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/admin/messaging-provisioning/organizations/{organization_id}/identity":{"get":{"tags":["admin","messaging-provisioning"],"summary":"Read Business Identity","operationId":"read_business_identity_admin_messaging_provisioning_organizations__organization_id__identity_get","security":[{"APIKeyHeader":[]},{"HTTPBearer":[]}],"parameters":[{"name":"organization_id","in":"path","required":true,"schema":{"type":"string","title":"Organization Id"}},{"name":"organization-id","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Organization-Id"}},{"name":"timezone","in":"header","required":false,"schema":{"type":"string","default":"UTC","title":"Timezone"}},{"name":"x-user-id","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"X-User-Id"}},{"name":"x-actor-email","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"X-Actor-Email"}},{"name":"x-request-source","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"X-Request-Source"}},{"name":"x-operation-id","in":"header","required":false,"schema":{"anyOf":[{"type":"string","maxLength":36},{"type":"null"}],"title":"X-Operation-Id"}},{"name":"x-commit-message","in":"header","required":false,"schema":{"anyOf":[{"type":"string","minLength":1},{"type":"null"}],"title":"X-Commit-Message"}},{"name":"x-confirmation-id","in":"header","required":false,"schema":{"anyOf":[{"type":"string","maxLength":36},{"type":"null"}],"title":"X-Confirmation-Id"}},{"name":"x-chat-id","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"X-Chat-Id"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/MessagingBusinessIdentityPublic"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}},"put":{"tags":["admin","messaging-provisioning"],"summary":"Upsert Business Identity","operationId":"upsert_business_identity_admin_messaging_provisioning_organizations__organization_id__identity_put","security":[{"APIKeyHeader":[]},{"HTTPBearer":[]}],"parameters":[{"name":"organization_id","in":"path","required":true,"schema":{"type":"string","title":"Organization Id"}},{"name":"organization-id","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Organization-Id"}},{"name":"timezone","in":"header","required":false,"schema":{"type":"string","default":"UTC","title":"Timezone"}},{"name":"x-user-id","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"X-User-Id"}},{"name":"x-actor-email","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"X-Actor-Email"}},{"name":"x-request-source","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"X-Request-Source"}},{"name":"x-operation-id","in":"header","required":false,"schema":{"anyOf":[{"type":"string","maxLength":36},{"type":"null"}],"title":"X-Operation-Id"}},{"name":"x-commit-message","in":"header","required":false,"schema":{"anyOf":[{"type":"string","minLength":1},{"type":"null"}],"title":"X-Commit-Message"}},{"name":"x-confirmation-id","in":"header","required":false,"schema":{"anyOf":[{"type":"string","maxLength":36},{"type":"null"}],"title":"X-Confirmation-Id"}},{"name":"x-chat-id","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"X-Chat-Id"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/MessagingBusinessIdentityUpsert"}}}},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/MessagingBusinessIdentityPublic"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/admin/messaging-provisioning/organizations/{organization_id}/compliance/{provider}":{"get":{"tags":["admin","messaging-provisioning"],"summary":"Read Compliance Config","operationId":"read_compliance_config_admin_messaging_provisioning_organizations__organization_id__compliance__provider__get","security":[{"APIKeyHeader":[]},{"HTTPBearer":[]}],"parameters":[{"name":"organization_id","in":"path","required":true,"schema":{"type":"string","title":"Organization Id"}},{"name":"provider","in":"path","required":true,"schema":{"$ref":"#/components/schemas/MessagingProvider"}},{"name":"organization-id","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Organization-Id"}},{"name":"timezone","in":"header","required":false,"schema":{"type":"string","default":"UTC","title":"Timezone"}},{"name":"x-user-id","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"X-User-Id"}},{"name":"x-actor-email","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"X-Actor-Email"}},{"name":"x-request-source","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"X-Request-Source"}},{"name":"x-operation-id","in":"header","required":false,"schema":{"anyOf":[{"type":"string","maxLength":36},{"type":"null"}],"title":"X-Operation-Id"}},{"name":"x-commit-message","in":"header","required":false,"schema":{"anyOf":[{"type":"string","minLength":1},{"type":"null"}],"title":"X-Commit-Message"}},{"name":"x-confirmation-id","in":"header","required":false,"schema":{"anyOf":[{"type":"string","maxLength":36},{"type":"null"}],"title":"X-Confirmation-Id"}},{"name":"x-chat-id","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"X-Chat-Id"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/MessagingComplianceConfigPublic"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}},"put":{"tags":["admin","messaging-provisioning"],"summary":"Upsert Compliance Config","operationId":"upsert_compliance_config_admin_messaging_provisioning_organizations__organization_id__compliance__provider__put","security":[{"APIKeyHeader":[]},{"HTTPBearer":[]}],"parameters":[{"name":"organization_id","in":"path","required":true,"schema":{"type":"string","title":"Organization Id"}},{"name":"provider","in":"path","required":true,"schema":{"$ref":"#/components/schemas/MessagingProvider"}},{"name":"organization-id","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Organization-Id"}},{"name":"timezone","in":"header","required":false,"schema":{"type":"string","default":"UTC","title":"Timezone"}},{"name":"x-user-id","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"X-User-Id"}},{"name":"x-actor-email","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"X-Actor-Email"}},{"name":"x-request-source","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"X-Request-Source"}},{"name":"x-operation-id","in":"header","required":false,"schema":{"anyOf":[{"type":"string","maxLength":36},{"type":"null"}],"title":"X-Operation-Id"}},{"name":"x-commit-message","in":"header","required":false,"schema":{"anyOf":[{"type":"string","minLength":1},{"type":"null"}],"title":"X-Commit-Message"}},{"name":"x-confirmation-id","in":"header","required":false,"schema":{"anyOf":[{"type":"string","maxLength":36},{"type":"null"}],"title":"X-Confirmation-Id"}},{"name":"x-chat-id","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"X-Chat-Id"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/MessagingComplianceConfigUpsert"}}}},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/MessagingComplianceConfigPublic"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/admin/messaging-provisioning/organizations/{organization_id}/{provider}/readiness":{"get":{"tags":["admin","messaging-provisioning"],"summary":"Read Provisioning Readiness","operationId":"read_provisioning_readiness_admin_messaging_provisioning_organizations__organization_id___provider__readiness_get","security":[{"APIKeyHeader":[]},{"HTTPBearer":[]}],"parameters":[{"name":"organization_id","in":"path","required":true,"schema":{"type":"string","title":"Organization Id"}},{"name":"provider","in":"path","required":true,"schema":{"$ref":"#/components/schemas/MessagingProvider"}},{"name":"organization-id","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Organization-Id"}},{"name":"timezone","in":"header","required":false,"schema":{"type":"string","default":"UTC","title":"Timezone"}},{"name":"x-user-id","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"X-User-Id"}},{"name":"x-actor-email","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"X-Actor-Email"}},{"name":"x-request-source","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"X-Request-Source"}},{"name":"x-operation-id","in":"header","required":false,"schema":{"anyOf":[{"type":"string","maxLength":36},{"type":"null"}],"title":"X-Operation-Id"}},{"name":"x-commit-message","in":"header","required":false,"schema":{"anyOf":[{"type":"string","minLength":1},{"type":"null"}],"title":"X-Commit-Message"}},{"name":"x-confirmation-id","in":"header","required":false,"schema":{"anyOf":[{"type":"string","maxLength":36},{"type":"null"}],"title":"X-Confirmation-Id"}},{"name":"x-chat-id","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"X-Chat-Id"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/MessagingReadinessPublic"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/admin/messaging-provisioning/organizations/{organization_id}/{provider}/status":{"get":{"tags":["admin","messaging-provisioning"],"summary":"Read Provisioning Status","operationId":"read_provisioning_status_admin_messaging_provisioning_organizations__organization_id___provider__status_get","security":[{"APIKeyHeader":[]},{"HTTPBearer":[]}],"parameters":[{"name":"organization_id","in":"path","required":true,"schema":{"type":"string","title":"Organization Id"}},{"name":"provider","in":"path","required":true,"schema":{"$ref":"#/components/schemas/MessagingProvider"}},{"name":"history_limit","in":"query","required":false,"schema":{"type":"integer","maximum":100,"minimum":1,"default":20,"title":"History Limit"}},{"name":"organization-id","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Organization-Id"}},{"name":"timezone","in":"header","required":false,"schema":{"type":"string","default":"UTC","title":"Timezone"}},{"name":"x-user-id","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"X-User-Id"}},{"name":"x-actor-email","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"X-Actor-Email"}},{"name":"x-request-source","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"X-Request-Source"}},{"name":"x-operation-id","in":"header","required":false,"schema":{"anyOf":[{"type":"string","maxLength":36},{"type":"null"}],"title":"X-Operation-Id"}},{"name":"x-commit-message","in":"header","required":false,"schema":{"anyOf":[{"type":"string","minLength":1},{"type":"null"}],"title":"X-Commit-Message"}},{"name":"x-confirmation-id","in":"header","required":false,"schema":{"anyOf":[{"type":"string","maxLength":36},{"type":"null"}],"title":"X-Confirmation-Id"}},{"name":"x-chat-id","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"X-Chat-Id"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/MessagingProvisioningStatusPublic"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/admin/messaging-provisioning/organizations/{organization_id}/{provider}/available-numbers":{"get":{"tags":["admin","messaging-provisioning"],"summary":"Search Available Local Numbers","operationId":"search_available_local_numbers_admin_messaging_provisioning_organizations__organization_id___provider__available_numbers_get","security":[{"APIKeyHeader":[]},{"HTTPBearer":[]}],"parameters":[{"name":"organization_id","in":"path","required":true,"schema":{"type":"string","title":"Organization Id"}},{"name":"provider","in":"path","required":true,"schema":{"$ref":"#/components/schemas/MessagingProvider"}},{"name":"area_code","in":"query","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Area Code"}},{"name":"contains","in":"query","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Contains"}},{"name":"limit","in":"query","required":false,"schema":{"type":"integer","maximum":50,"minimum":1,"default":20,"title":"Limit"}},{"name":"organization-id","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Organization-Id"}},{"name":"timezone","in":"header","required":false,"schema":{"type":"string","default":"UTC","title":"Timezone"}},{"name":"x-user-id","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"X-User-Id"}},{"name":"x-actor-email","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"X-Actor-Email"}},{"name":"x-request-source","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"X-Request-Source"}},{"name":"x-operation-id","in":"header","required":false,"schema":{"anyOf":[{"type":"string","maxLength":36},{"type":"null"}],"title":"X-Operation-Id"}},{"name":"x-commit-message","in":"header","required":false,"schema":{"anyOf":[{"type":"string","minLength":1},{"type":"null"}],"title":"X-Commit-Message"}},{"name":"x-confirmation-id","in":"header","required":false,"schema":{"anyOf":[{"type":"string","maxLength":36},{"type":"null"}],"title":"X-Confirmation-Id"}},{"name":"x-chat-id","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"X-Chat-Id"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"type":"array","items":{"$ref":"#/components/schemas/AvailablePhoneNumberPublic"},"title":"Response Search Available Local Numbers Admin Messaging Provisioning Organizations  Organization Id   Provider  Available Numbers Get"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/admin/messaging-provisioning/organizations/{organization_id}/{provider}/orchestrate":{"post":{"tags":["admin","messaging-provisioning"],"summary":"Orchestrate Messaging Provisioning","operationId":"orchestrate_messaging_provisioning_admin_messaging_provisioning_organizations__organization_id___provider__orchestrate_post","security":[{"APIKeyHeader":[]},{"HTTPBearer":[]}],"parameters":[{"name":"organization_id","in":"path","required":true,"schema":{"type":"string","title":"Organization Id"}},{"name":"provider","in":"path","required":true,"schema":{"$ref":"#/components/schemas/MessagingProvider"}},{"name":"organization-id","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Organization-Id"}},{"name":"timezone","in":"header","required":false,"schema":{"type":"string","default":"UTC","title":"Timezone"}},{"name":"x-user-id","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"X-User-Id"}},{"name":"x-actor-email","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"X-Actor-Email"}},{"name":"x-request-source","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"X-Request-Source"}},{"name":"x-operation-id","in":"header","required":false,"schema":{"anyOf":[{"type":"string","maxLength":36},{"type":"null"}],"title":"X-Operation-Id"}},{"name":"x-commit-message","in":"header","required":false,"schema":{"anyOf":[{"type":"string","minLength":1},{"type":"null"}],"title":"X-Commit-Message"}},{"name":"x-confirmation-id","in":"header","required":false,"schema":{"anyOf":[{"type":"string","maxLength":36},{"type":"null"}],"title":"X-Confirmation-Id"}},{"name":"x-chat-id","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"X-Chat-Id"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/MessagingProvisioningOrchestrationRequest"}}}},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/MessagingProvisioningOrchestrationPublic"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/admin/messaging-provisioning/organizations/{organization_id}/{provider}/campaign-preview":{"get":{"tags":["admin","messaging-provisioning"],"summary":"Read Campaign Submission Preview","operationId":"read_campaign_submission_preview_admin_messaging_provisioning_organizations__organization_id___provider__campaign_preview_get","security":[{"APIKeyHeader":[]},{"HTTPBearer":[]}],"parameters":[{"name":"organization_id","in":"path","required":true,"schema":{"type":"string","title":"Organization Id"}},{"name":"provider","in":"path","required":true,"schema":{"$ref":"#/components/schemas/MessagingProvider"}},{"name":"organization-id","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Organization-Id"}},{"name":"timezone","in":"header","required":false,"schema":{"type":"string","default":"UTC","title":"Timezone"}},{"name":"x-user-id","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"X-User-Id"}},{"name":"x-actor-email","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"X-Actor-Email"}},{"name":"x-request-source","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"X-Request-Source"}},{"name":"x-operation-id","in":"header","required":false,"schema":{"anyOf":[{"type":"string","maxLength":36},{"type":"null"}],"title":"X-Operation-Id"}},{"name":"x-commit-message","in":"header","required":false,"schema":{"anyOf":[{"type":"string","minLength":1},{"type":"null"}],"title":"X-Commit-Message"}},{"name":"x-confirmation-id","in":"header","required":false,"schema":{"anyOf":[{"type":"string","maxLength":36},{"type":"null"}],"title":"X-Confirmation-Id"}},{"name":"x-chat-id","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"X-Chat-Id"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/CampaignSubmissionPreviewPublic"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/admin/messaging-provisioning/organizations/{organization_id}/telnyx/sync-numbers":{"post":{"tags":["admin","messaging-provisioning"],"summary":"Start Telnyx Number Sync","operationId":"start_telnyx_number_sync_admin_messaging_provisioning_organizations__organization_id__telnyx_sync_numbers_post","security":[{"APIKeyHeader":[]},{"HTTPBearer":[]}],"parameters":[{"name":"organization_id","in":"path","required":true,"schema":{"type":"string","title":"Organization Id"}},{"name":"organization-id","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Organization-Id"}},{"name":"timezone","in":"header","required":false,"schema":{"type":"string","default":"UTC","title":"Timezone"}},{"name":"x-user-id","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"X-User-Id"}},{"name":"x-actor-email","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"X-Actor-Email"}},{"name":"x-request-source","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"X-Request-Source"}},{"name":"x-operation-id","in":"header","required":false,"schema":{"anyOf":[{"type":"string","maxLength":36},{"type":"null"}],"title":"X-Operation-Id"}},{"name":"x-commit-message","in":"header","required":false,"schema":{"anyOf":[{"type":"string","minLength":1},{"type":"null"}],"title":"X-Commit-Message"}},{"name":"x-confirmation-id","in":"header","required":false,"schema":{"anyOf":[{"type":"string","maxLength":36},{"type":"null"}],"title":"X-Confirmation-Id"}},{"name":"x-chat-id","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"X-Chat-Id"}}],"responses":{"202":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/TelnyxNumberSyncPublic"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/admin/messaging-provisioning/organizations/{organization_id}/telnyx/sync-numbers/{run_id}":{"get":{"tags":["admin","messaging-provisioning"],"summary":"Read Telnyx Number Sync","operationId":"read_telnyx_number_sync_admin_messaging_provisioning_organizations__organization_id__telnyx_sync_numbers__run_id__get","security":[{"APIKeyHeader":[]},{"HTTPBearer":[]}],"parameters":[{"name":"organization_id","in":"path","required":true,"schema":{"type":"string","title":"Organization Id"}},{"name":"run_id","in":"path","required":true,"schema":{"type":"string","format":"uuid","title":"Run Id"}},{"name":"organization-id","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Organization-Id"}},{"name":"timezone","in":"header","required":false,"schema":{"type":"string","default":"UTC","title":"Timezone"}},{"name":"x-user-id","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"X-User-Id"}},{"name":"x-actor-email","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"X-Actor-Email"}},{"name":"x-request-source","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"X-Request-Source"}},{"name":"x-operation-id","in":"header","required":false,"schema":{"anyOf":[{"type":"string","maxLength":36},{"type":"null"}],"title":"X-Operation-Id"}},{"name":"x-commit-message","in":"header","required":false,"schema":{"anyOf":[{"type":"string","minLength":1},{"type":"null"}],"title":"X-Commit-Message"}},{"name":"x-confirmation-id","in":"header","required":false,"schema":{"anyOf":[{"type":"string","maxLength":36},{"type":"null"}],"title":"X-Confirmation-Id"}},{"name":"x-chat-id","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"X-Chat-Id"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/TelnyxNumberSyncPublic"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/admin/engagements/{engagement_id}/hook-events":{"get":{"tags":["admin","hook-events"],"summary":"List Engagement Hook Events","description":"Return hook evaluation/action log lines for an engagement.\n\nBacked by SigNoz log queries — see ``api/utils/signoz_read.py``.\nReturns ``[]`` when SigNoz is not configured, the engagement doesn't\nexist, or the caller isn't authorized for the engagement's org. The\nhandler decides authorization; the router just shapes the response.\n\nThe signoz_read parser already coerces timestamps to ``datetime``,\nso unmappable rows are dropped at the source rather than silently\ndiscarded here on integer-timestamp surprises.","operationId":"list_engagement_hook_events_admin_engagements__engagement_id__hook_events_get","security":[{"APIKeyHeader":[]},{"HTTPBearer":[]}],"parameters":[{"name":"engagement_id","in":"path","required":true,"schema":{"type":"string","title":"Engagement Id"}},{"name":"organization-id","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Organization-Id"}},{"name":"timezone","in":"header","required":false,"schema":{"type":"string","default":"UTC","title":"Timezone"}},{"name":"x-user-id","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"X-User-Id"}},{"name":"x-actor-email","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"X-Actor-Email"}},{"name":"x-request-source","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"X-Request-Source"}},{"name":"x-operation-id","in":"header","required":false,"schema":{"anyOf":[{"type":"string","maxLength":36},{"type":"null"}],"title":"X-Operation-Id"}},{"name":"x-commit-message","in":"header","required":false,"schema":{"anyOf":[{"type":"string","minLength":1},{"type":"null"}],"title":"X-Commit-Message"}},{"name":"x-confirmation-id","in":"header","required":false,"schema":{"anyOf":[{"type":"string","maxLength":36},{"type":"null"}],"title":"X-Confirmation-Id"}},{"name":"x-chat-id","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"X-Chat-Id"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"type":"array","items":{"$ref":"#/components/schemas/HookEventResponse"},"title":"Response List Engagement Hook Events Admin Engagements  Engagement Id  Hook Events Get"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/admin/incidents/":{"get":{"tags":["admin","incidents"],"summary":"Read Incidents","operationId":"read_incidents_admin_incidents__get","security":[{"APIKeyHeader":[]},{"HTTPBearer":[]}],"parameters":[{"name":"cursor","in":"query","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Cursor"}},{"name":"limit","in":"query","required":false,"schema":{"type":"integer","default":25,"title":"Limit"}},{"name":"status","in":"query","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Status"}},{"name":"organization_id","in":"query","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Organization Id"}},{"name":"organization-id","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Organization-Id"}},{"name":"timezone","in":"header","required":false,"schema":{"type":"string","default":"UTC","title":"Timezone"}},{"name":"x-user-id","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"X-User-Id"}},{"name":"x-actor-email","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"X-Actor-Email"}},{"name":"x-request-source","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"X-Request-Source"}},{"name":"x-operation-id","in":"header","required":false,"schema":{"anyOf":[{"type":"string","maxLength":36},{"type":"null"}],"title":"X-Operation-Id"}},{"name":"x-commit-message","in":"header","required":false,"schema":{"anyOf":[{"type":"string","minLength":1},{"type":"null"}],"title":"X-Commit-Message"}},{"name":"x-confirmation-id","in":"header","required":false,"schema":{"anyOf":[{"type":"string","maxLength":36},{"type":"null"}],"title":"X-Confirmation-Id"}},{"name":"x-chat-id","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"X-Chat-Id"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/IncidentPageResponse"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}},"post":{"tags":["admin","incidents"],"summary":"Create Incident","operationId":"create_incident_admin_incidents__post","security":[{"APIKeyHeader":[]},{"HTTPBearer":[]}],"parameters":[{"name":"organization-id","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Organization-Id"}},{"name":"timezone","in":"header","required":false,"schema":{"type":"string","default":"UTC","title":"Timezone"}},{"name":"x-user-id","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"X-User-Id"}},{"name":"x-actor-email","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"X-Actor-Email"}},{"name":"x-request-source","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"X-Request-Source"}},{"name":"x-operation-id","in":"header","required":false,"schema":{"anyOf":[{"type":"string","maxLength":36},{"type":"null"}],"title":"X-Operation-Id"}},{"name":"x-commit-message","in":"header","required":false,"schema":{"anyOf":[{"type":"string","minLength":1},{"type":"null"}],"title":"X-Commit-Message"}},{"name":"x-confirmation-id","in":"header","required":false,"schema":{"anyOf":[{"type":"string","maxLength":36},{"type":"null"}],"title":"X-Confirmation-Id"}},{"name":"x-chat-id","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"X-Chat-Id"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/CreateIncidentRequest"}}}},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/IncidentResponse"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/admin/incidents/{incident_id}":{"get":{"tags":["admin","incidents"],"summary":"Read Incident","operationId":"read_incident_admin_incidents__incident_id__get","security":[{"APIKeyHeader":[]},{"HTTPBearer":[]}],"parameters":[{"name":"incident_id","in":"path","required":true,"schema":{"type":"string","title":"Incident Id"}},{"name":"organization-id","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Organization-Id"}},{"name":"timezone","in":"header","required":false,"schema":{"type":"string","default":"UTC","title":"Timezone"}},{"name":"x-user-id","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"X-User-Id"}},{"name":"x-actor-email","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"X-Actor-Email"}},{"name":"x-request-source","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"X-Request-Source"}},{"name":"x-operation-id","in":"header","required":false,"schema":{"anyOf":[{"type":"string","maxLength":36},{"type":"null"}],"title":"X-Operation-Id"}},{"name":"x-commit-message","in":"header","required":false,"schema":{"anyOf":[{"type":"string","minLength":1},{"type":"null"}],"title":"X-Commit-Message"}},{"name":"x-confirmation-id","in":"header","required":false,"schema":{"anyOf":[{"type":"string","maxLength":36},{"type":"null"}],"title":"X-Confirmation-Id"}},{"name":"x-chat-id","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"X-Chat-Id"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/IncidentResponse"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}},"put":{"tags":["admin","incidents"],"summary":"Update Incident","operationId":"update_incident_admin_incidents__incident_id__put","security":[{"APIKeyHeader":[]},{"HTTPBearer":[]}],"parameters":[{"name":"incident_id","in":"path","required":true,"schema":{"type":"string","title":"Incident Id"}},{"name":"organization-id","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Organization-Id"}},{"name":"timezone","in":"header","required":false,"schema":{"type":"string","default":"UTC","title":"Timezone"}},{"name":"x-user-id","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"X-User-Id"}},{"name":"x-actor-email","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"X-Actor-Email"}},{"name":"x-request-source","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"X-Request-Source"}},{"name":"x-operation-id","in":"header","required":false,"schema":{"anyOf":[{"type":"string","maxLength":36},{"type":"null"}],"title":"X-Operation-Id"}},{"name":"x-commit-message","in":"header","required":false,"schema":{"anyOf":[{"type":"string","minLength":1},{"type":"null"}],"title":"X-Commit-Message"}},{"name":"x-confirmation-id","in":"header","required":false,"schema":{"anyOf":[{"type":"string","maxLength":36},{"type":"null"}],"title":"X-Confirmation-Id"}},{"name":"x-chat-id","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"X-Chat-Id"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/UpdateIncidentRequest"}}}},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/IncidentResponse"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/admin/incidents/{incident_id}/preview-engagements":{"get":{"tags":["admin","incidents"],"summary":"Preview Incident Engagements","operationId":"preview_incident_engagements_admin_incidents__incident_id__preview_engagements_get","security":[{"APIKeyHeader":[]},{"HTTPBearer":[]}],"parameters":[{"name":"incident_id","in":"path","required":true,"schema":{"type":"string","title":"Incident Id"}},{"name":"cursor","in":"query","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Cursor"}},{"name":"limit","in":"query","required":false,"schema":{"type":"integer","default":25,"title":"Limit"}},{"name":"organization-id","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Organization-Id"}},{"name":"timezone","in":"header","required":false,"schema":{"type":"string","default":"UTC","title":"Timezone"}},{"name":"x-user-id","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"X-User-Id"}},{"name":"x-actor-email","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"X-Actor-Email"}},{"name":"x-request-source","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"X-Request-Source"}},{"name":"x-operation-id","in":"header","required":false,"schema":{"anyOf":[{"type":"string","maxLength":36},{"type":"null"}],"title":"X-Operation-Id"}},{"name":"x-commit-message","in":"header","required":false,"schema":{"anyOf":[{"type":"string","minLength":1},{"type":"null"}],"title":"X-Commit-Message"}},{"name":"x-confirmation-id","in":"header","required":false,"schema":{"anyOf":[{"type":"string","maxLength":36},{"type":"null"}],"title":"X-Confirmation-Id"}},{"name":"x-chat-id","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"X-Chat-Id"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/EngagementPreviewPageResponse"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/admin/incidents/{incident_id}/resolve":{"post":{"tags":["admin","incidents"],"summary":"Resolve Incident","operationId":"resolve_incident_admin_incidents__incident_id__resolve_post","security":[{"APIKeyHeader":[]},{"HTTPBearer":[]}],"parameters":[{"name":"incident_id","in":"path","required":true,"schema":{"type":"string","title":"Incident Id"}},{"name":"organization-id","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Organization-Id"}},{"name":"timezone","in":"header","required":false,"schema":{"type":"string","default":"UTC","title":"Timezone"}},{"name":"x-user-id","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"X-User-Id"}},{"name":"x-actor-email","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"X-Actor-Email"}},{"name":"x-request-source","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"X-Request-Source"}},{"name":"x-operation-id","in":"header","required":false,"schema":{"anyOf":[{"type":"string","maxLength":36},{"type":"null"}],"title":"X-Operation-Id"}},{"name":"x-commit-message","in":"header","required":false,"schema":{"anyOf":[{"type":"string","minLength":1},{"type":"null"}],"title":"X-Commit-Message"}},{"name":"x-confirmation-id","in":"header","required":false,"schema":{"anyOf":[{"type":"string","maxLength":36},{"type":"null"}],"title":"X-Confirmation-Id"}},{"name":"x-chat-id","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"X-Chat-Id"}}],"requestBody":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/Body_resolve_incident_admin_incidents__incident_id__resolve_post"}}}},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/IncidentResponse"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/admin/incidents/{incident_id}/skip":{"post":{"tags":["admin","incidents"],"summary":"Skip Incident Retry","operationId":"skip_incident_retry_admin_incidents__incident_id__skip_post","security":[{"APIKeyHeader":[]},{"HTTPBearer":[]}],"parameters":[{"name":"incident_id","in":"path","required":true,"schema":{"type":"string","title":"Incident Id"}},{"name":"organization-id","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Organization-Id"}},{"name":"timezone","in":"header","required":false,"schema":{"type":"string","default":"UTC","title":"Timezone"}},{"name":"x-user-id","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"X-User-Id"}},{"name":"x-actor-email","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"X-Actor-Email"}},{"name":"x-request-source","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"X-Request-Source"}},{"name":"x-operation-id","in":"header","required":false,"schema":{"anyOf":[{"type":"string","maxLength":36},{"type":"null"}],"title":"X-Operation-Id"}},{"name":"x-commit-message","in":"header","required":false,"schema":{"anyOf":[{"type":"string","minLength":1},{"type":"null"}],"title":"X-Commit-Message"}},{"name":"x-confirmation-id","in":"header","required":false,"schema":{"anyOf":[{"type":"string","maxLength":36},{"type":"null"}],"title":"X-Confirmation-Id"}},{"name":"x-chat-id","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"X-Chat-Id"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/IncidentResponse"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/admin/incidents/{incident_id}/retry-engagement/{engagement_id}":{"post":{"tags":["admin","incidents"],"summary":"Retry Single Engagement","operationId":"retry_single_engagement_admin_incidents__incident_id__retry_engagement__engagement_id__post","security":[{"APIKeyHeader":[]},{"HTTPBearer":[]}],"parameters":[{"name":"incident_id","in":"path","required":true,"schema":{"type":"string","title":"Incident Id"}},{"name":"engagement_id","in":"path","required":true,"schema":{"type":"string","title":"Engagement Id"}},{"name":"organization-id","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Organization-Id"}},{"name":"timezone","in":"header","required":false,"schema":{"type":"string","default":"UTC","title":"Timezone"}},{"name":"x-user-id","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"X-User-Id"}},{"name":"x-actor-email","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"X-Actor-Email"}},{"name":"x-request-source","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"X-Request-Source"}},{"name":"x-operation-id","in":"header","required":false,"schema":{"anyOf":[{"type":"string","maxLength":36},{"type":"null"}],"title":"X-Operation-Id"}},{"name":"x-commit-message","in":"header","required":false,"schema":{"anyOf":[{"type":"string","minLength":1},{"type":"null"}],"title":"X-Commit-Message"}},{"name":"x-confirmation-id","in":"header","required":false,"schema":{"anyOf":[{"type":"string","maxLength":36},{"type":"null"}],"title":"X-Confirmation-Id"}},{"name":"x-chat-id","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"X-Chat-Id"}}],"requestBody":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/Body_retry_single_engagement_admin_incidents__incident_id__retry_engagement__engagement_id__post"}}}},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"type":"object","additionalProperties":true,"title":"Response Retry Single Engagement Admin Incidents  Incident Id  Retry Engagement  Engagement Id  Post"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/admin/ld-flags/evaluate":{"post":{"tags":["admin","ld-flags"],"summary":"Evaluate Flag","description":"Evaluate a LaunchDarkly flag on behalf of a caller.\n\nThis endpoint is the single point where the LD SDK is consulted for every\nnon-api-service caller. The LD SDK's in-memory streaming cache answers in\nmicroseconds; no second cache layer is needed here.","operationId":"evaluate_flag_admin_ld_flags_evaluate_post","security":[{"APIKeyHeader":[]},{"HTTPBearer":[]}],"parameters":[{"name":"organization-id","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Organization-Id"}},{"name":"timezone","in":"header","required":false,"schema":{"type":"string","default":"UTC","title":"Timezone"}},{"name":"x-user-id","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"X-User-Id"}},{"name":"x-actor-email","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"X-Actor-Email"}},{"name":"x-request-source","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"X-Request-Source"}},{"name":"x-operation-id","in":"header","required":false,"schema":{"anyOf":[{"type":"string","maxLength":36},{"type":"null"}],"title":"X-Operation-Id"}},{"name":"x-commit-message","in":"header","required":false,"schema":{"anyOf":[{"type":"string","minLength":1},{"type":"null"}],"title":"X-Commit-Message"}},{"name":"x-confirmation-id","in":"header","required":false,"schema":{"anyOf":[{"type":"string","maxLength":36},{"type":"null"}],"title":"X-Confirmation-Id"}},{"name":"x-chat-id","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"X-Chat-Id"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/EvaluateFlagRequest"}}}},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/EvaluateFlagResponse"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/admin/lead-source-brands":{"get":{"tags":["admin","lead-source-brand-admin"],"summary":"List Lead Source Brands","operationId":"list_lead_source_brands_admin_lead_source_brands_get","security":[{"APIKeyHeader":[]},{"HTTPBearer":[]}],"parameters":[{"name":"organization_id","in":"query","required":true,"schema":{"type":"string","title":"Organization Id"}},{"name":"source","in":"query","required":false,"schema":{"anyOf":[{"$ref":"#/components/schemas/LeadSourceBrandSource"},{"type":"null"}],"title":"Source"}},{"name":"organization-id","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Organization-Id"}},{"name":"timezone","in":"header","required":false,"schema":{"type":"string","default":"UTC","title":"Timezone"}},{"name":"x-user-id","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"X-User-Id"}},{"name":"x-actor-email","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"X-Actor-Email"}},{"name":"x-request-source","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"X-Request-Source"}},{"name":"x-operation-id","in":"header","required":false,"schema":{"anyOf":[{"type":"string","maxLength":36},{"type":"null"}],"title":"X-Operation-Id"}},{"name":"x-commit-message","in":"header","required":false,"schema":{"anyOf":[{"type":"string","minLength":1},{"type":"null"}],"title":"X-Commit-Message"}},{"name":"x-confirmation-id","in":"header","required":false,"schema":{"anyOf":[{"type":"string","maxLength":36},{"type":"null"}],"title":"X-Confirmation-Id"}},{"name":"x-chat-id","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"X-Chat-Id"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"type":"array","items":{"$ref":"#/components/schemas/LeadSourceBrandPublic"},"title":"Response List Lead Source Brands Admin Lead Source Brands Get"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/admin/lead-source-brands/{organization_id}/{source}/{brand_target_id}":{"patch":{"tags":["admin","lead-source-brand-admin"],"summary":"Update Lead Source Brand","operationId":"update_lead_source_brand_admin_lead_source_brands__organization_id___source___brand_target_id__patch","security":[{"APIKeyHeader":[]},{"HTTPBearer":[]}],"parameters":[{"name":"organization_id","in":"path","required":true,"schema":{"type":"string","title":"Organization Id"}},{"name":"source","in":"path","required":true,"schema":{"$ref":"#/components/schemas/LeadSourceBrandSource"}},{"name":"brand_target_id","in":"path","required":true,"schema":{"type":"string","title":"Brand Target Id"}},{"name":"organization-id","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Organization-Id"}},{"name":"timezone","in":"header","required":false,"schema":{"type":"string","default":"UTC","title":"Timezone"}},{"name":"x-user-id","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"X-User-Id"}},{"name":"x-actor-email","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"X-Actor-Email"}},{"name":"x-request-source","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"X-Request-Source"}},{"name":"x-operation-id","in":"header","required":false,"schema":{"anyOf":[{"type":"string","maxLength":36},{"type":"null"}],"title":"X-Operation-Id"}},{"name":"x-commit-message","in":"header","required":false,"schema":{"anyOf":[{"type":"string","minLength":1},{"type":"null"}],"title":"X-Commit-Message"}},{"name":"x-confirmation-id","in":"header","required":false,"schema":{"anyOf":[{"type":"string","maxLength":36},{"type":"null"}],"title":"X-Confirmation-Id"}},{"name":"x-chat-id","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"X-Chat-Id"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/LeadSourceBrandUpdate"}}}},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/LeadSourceBrandPublic"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/admin/google-ads/discover":{"post":{"tags":["admin","google-ads-admin"],"summary":"Discover Google Ads Accounts","description":"Walk the org's own Google Ads OAuth credential and upsert every reachable customer (and\nits MCC's descendants) as an inactive candidate, returning the org's full current account\nlist. Never authenticates with the shared UpSmith manager credential.","operationId":"discover_google_ads_accounts_admin_google_ads_discover_post","security":[{"APIKeyHeader":[]},{"HTTPBearer":[]}],"parameters":[{"name":"organization-id","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Organization-Id"}},{"name":"timezone","in":"header","required":false,"schema":{"type":"string","default":"UTC","title":"Timezone"}},{"name":"x-user-id","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"X-User-Id"}},{"name":"x-actor-email","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"X-Actor-Email"}},{"name":"x-request-source","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"X-Request-Source"}},{"name":"x-operation-id","in":"header","required":false,"schema":{"anyOf":[{"type":"string","maxLength":36},{"type":"null"}],"title":"X-Operation-Id"}},{"name":"x-commit-message","in":"header","required":false,"schema":{"anyOf":[{"type":"string","minLength":1},{"type":"null"}],"title":"X-Commit-Message"}},{"name":"x-confirmation-id","in":"header","required":false,"schema":{"anyOf":[{"type":"string","maxLength":36},{"type":"null"}],"title":"X-Confirmation-Id"}},{"name":"x-chat-id","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"X-Chat-Id"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/DiscoverGoogleAdsAccountsBody"}}}},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"type":"array","items":{"$ref":"#/components/schemas/GoogleAdsAccountPublic"},"title":"Response Discover Google Ads Accounts Admin Google Ads Discover Post"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/admin/google-ads/accounts":{"get":{"tags":["admin","google-ads-admin"],"summary":"List Google Ads Accounts","description":"Every live (active or inactive) standard Google Ads account discovered for an org.","operationId":"list_google_ads_accounts_admin_google_ads_accounts_get","security":[{"APIKeyHeader":[]},{"HTTPBearer":[]}],"parameters":[{"name":"organization_id","in":"query","required":true,"schema":{"type":"string","title":"Organization Id"}},{"name":"organization-id","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Organization-Id"}},{"name":"timezone","in":"header","required":false,"schema":{"type":"string","default":"UTC","title":"Timezone"}},{"name":"x-user-id","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"X-User-Id"}},{"name":"x-actor-email","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"X-Actor-Email"}},{"name":"x-request-source","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"X-Request-Source"}},{"name":"x-operation-id","in":"header","required":false,"schema":{"anyOf":[{"type":"string","maxLength":36},{"type":"null"}],"title":"X-Operation-Id"}},{"name":"x-commit-message","in":"header","required":false,"schema":{"anyOf":[{"type":"string","minLength":1},{"type":"null"}],"title":"X-Commit-Message"}},{"name":"x-confirmation-id","in":"header","required":false,"schema":{"anyOf":[{"type":"string","maxLength":36},{"type":"null"}],"title":"X-Confirmation-Id"}},{"name":"x-chat-id","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"X-Chat-Id"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"type":"array","items":{"$ref":"#/components/schemas/GoogleAdsAccountPublic"},"title":"Response List Google Ads Accounts Admin Google Ads Accounts Get"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/admin/google-ads/accounts/{account_id}/enroll":{"post":{"tags":["admin","google-ads-admin"],"summary":"Enroll Google Ads Account","description":"Flip ``is_active`` — the operator enrollment gate the standard-Ads spend sync walks.\nRejected with 404 unless ``account_id`` belongs to ``organization_id``.","operationId":"enroll_google_ads_account_admin_google_ads_accounts__account_id__enroll_post","security":[{"APIKeyHeader":[]},{"HTTPBearer":[]}],"parameters":[{"name":"account_id","in":"path","required":true,"schema":{"type":"string","title":"Account Id"}},{"name":"organization-id","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Organization-Id"}},{"name":"timezone","in":"header","required":false,"schema":{"type":"string","default":"UTC","title":"Timezone"}},{"name":"x-user-id","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"X-User-Id"}},{"name":"x-actor-email","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"X-Actor-Email"}},{"name":"x-request-source","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"X-Request-Source"}},{"name":"x-operation-id","in":"header","required":false,"schema":{"anyOf":[{"type":"string","maxLength":36},{"type":"null"}],"title":"X-Operation-Id"}},{"name":"x-commit-message","in":"header","required":false,"schema":{"anyOf":[{"type":"string","minLength":1},{"type":"null"}],"title":"X-Commit-Message"}},{"name":"x-confirmation-id","in":"header","required":false,"schema":{"anyOf":[{"type":"string","maxLength":36},{"type":"null"}],"title":"X-Confirmation-Id"}},{"name":"x-chat-id","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"X-Chat-Id"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/EnrollGoogleAdsAccountBody"}}}},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/GoogleAdsAccountPublic"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/admin/google-ads/account-business-units":{"get":{"tags":["admin","google-ads-admin"],"summary":"List Google Ads Account Business Units","description":"Live business-unit mappings for one standard Google Ads account. Rejected with 404\nunless ``google_ads_account_id`` belongs to ``organization_id``.","operationId":"list_google_ads_account_business_units_admin_google_ads_account_business_units_get","security":[{"APIKeyHeader":[]},{"HTTPBearer":[]}],"parameters":[{"name":"organization_id","in":"query","required":true,"schema":{"type":"string","title":"Organization Id"}},{"name":"google_ads_account_id","in":"query","required":true,"schema":{"type":"string","title":"Google Ads Account Id"}},{"name":"organization-id","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Organization-Id"}},{"name":"timezone","in":"header","required":false,"schema":{"type":"string","default":"UTC","title":"Timezone"}},{"name":"x-user-id","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"X-User-Id"}},{"name":"x-actor-email","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"X-Actor-Email"}},{"name":"x-request-source","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"X-Request-Source"}},{"name":"x-operation-id","in":"header","required":false,"schema":{"anyOf":[{"type":"string","maxLength":36},{"type":"null"}],"title":"X-Operation-Id"}},{"name":"x-commit-message","in":"header","required":false,"schema":{"anyOf":[{"type":"string","minLength":1},{"type":"null"}],"title":"X-Commit-Message"}},{"name":"x-confirmation-id","in":"header","required":false,"schema":{"anyOf":[{"type":"string","maxLength":36},{"type":"null"}],"title":"X-Confirmation-Id"}},{"name":"x-chat-id","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"X-Chat-Id"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"type":"array","items":{"$ref":"#/components/schemas/GoogleAdsAccountBusinessUnitPublic"},"title":"Response List Google Ads Account Business Units Admin Google Ads Account Business Units Get"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}},"post":{"tags":["admin","google-ads-admin"],"summary":"Create Google Ads Account Business Unit","description":"Add one business unit to the account's mapped set (existing mappings kept, idempotent).\n\nSingle-row atomic insert (or tombstone-revive) — not a read-then-full-reconcile — so two\nconcurrent single-item calls on the same account can't race and drop each other's write.\nRejected with 404 unless ``google_ads_account_id`` belongs to ``organization_id``.","operationId":"create_google_ads_account_business_unit_admin_google_ads_account_business_units_post","security":[{"APIKeyHeader":[]},{"HTTPBearer":[]}],"parameters":[{"name":"organization-id","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Organization-Id"}},{"name":"timezone","in":"header","required":false,"schema":{"type":"string","default":"UTC","title":"Timezone"}},{"name":"x-user-id","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"X-User-Id"}},{"name":"x-actor-email","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"X-Actor-Email"}},{"name":"x-request-source","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"X-Request-Source"}},{"name":"x-operation-id","in":"header","required":false,"schema":{"anyOf":[{"type":"string","maxLength":36},{"type":"null"}],"title":"X-Operation-Id"}},{"name":"x-commit-message","in":"header","required":false,"schema":{"anyOf":[{"type":"string","minLength":1},{"type":"null"}],"title":"X-Commit-Message"}},{"name":"x-confirmation-id","in":"header","required":false,"schema":{"anyOf":[{"type":"string","maxLength":36},{"type":"null"}],"title":"X-Confirmation-Id"}},{"name":"x-chat-id","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"X-Chat-Id"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/GoogleAdsAccountBusinessUnitBody"}}}},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/GoogleAdsAccountBusinessUnitPublic"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}},"delete":{"tags":["admin","google-ads-admin"],"summary":"Delete Google Ads Account Business Unit","description":"Remove one business unit from the account's mapped set, leaving the rest untouched.\n\nSingle-row atomic soft-delete — not a read-then-full-reconcile — so it can't race a\nconcurrent add/remove on the same account. No-op (200, unchanged set) if the BU isn't\ncurrently mapped. Rejected with 404 unless ``google_ads_account_id`` belongs to\n``organization_id``.","operationId":"delete_google_ads_account_business_unit_admin_google_ads_account_business_units_delete","security":[{"APIKeyHeader":[]},{"HTTPBearer":[]}],"parameters":[{"name":"organization_id","in":"query","required":true,"schema":{"type":"string","title":"Organization Id"}},{"name":"google_ads_account_id","in":"query","required":true,"schema":{"type":"string","title":"Google Ads Account Id"}},{"name":"st_business_unit_id","in":"query","required":true,"schema":{"type":"integer","title":"St Business Unit Id"}},{"name":"organization-id","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Organization-Id"}},{"name":"timezone","in":"header","required":false,"schema":{"type":"string","default":"UTC","title":"Timezone"}},{"name":"x-user-id","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"X-User-Id"}},{"name":"x-actor-email","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"X-Actor-Email"}},{"name":"x-request-source","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"X-Request-Source"}},{"name":"x-operation-id","in":"header","required":false,"schema":{"anyOf":[{"type":"string","maxLength":36},{"type":"null"}],"title":"X-Operation-Id"}},{"name":"x-commit-message","in":"header","required":false,"schema":{"anyOf":[{"type":"string","minLength":1},{"type":"null"}],"title":"X-Commit-Message"}},{"name":"x-confirmation-id","in":"header","required":false,"schema":{"anyOf":[{"type":"string","maxLength":36},{"type":"null"}],"title":"X-Confirmation-Id"}},{"name":"x-chat-id","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"X-Chat-Id"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"type":"array","items":{"$ref":"#/components/schemas/GoogleAdsAccountBusinessUnitPublic"},"title":"Response Delete Google Ads Account Business Unit Admin Google Ads Account Business Units Delete"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/admin/lsa/mcc-membership":{"get":{"tags":["admin","lsa-admin"],"summary":"Google Lsa Mcc Membership","description":"List the ENABLED accounts a Google Ads MCC manages and, when ``target_customer_id``\nis given, whether the target is one of them.\n\nAuthenticates with the MCC's shared manager credential when one is mapped, so it still\nanswers \"does MCC X manage customer Y?\" even if the org's own Google Ads credential is\ndead — the state a per-org OAuth-400 leaves an account in when its ``login_customer_id``\nwas never populated. Use it to decide whether such an account can be mapped onto a\nhealthy shared manager credential instead of reconnecting a fresh per-org credential.","operationId":"google_lsa_mcc_membership_admin_lsa_mcc_membership_get","security":[{"APIKeyHeader":[]},{"HTTPBearer":[]}],"parameters":[{"name":"manager_customer_id","in":"query","required":true,"schema":{"type":"string","title":"Manager Customer Id"}},{"name":"organization_id","in":"query","required":true,"schema":{"type":"string","title":"Organization Id"}},{"name":"target_customer_id","in":"query","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Target Customer Id"}},{"name":"organization-id","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Organization-Id"}},{"name":"timezone","in":"header","required":false,"schema":{"type":"string","default":"UTC","title":"Timezone"}},{"name":"x-user-id","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"X-User-Id"}},{"name":"x-actor-email","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"X-Actor-Email"}},{"name":"x-request-source","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"X-Request-Source"}},{"name":"x-operation-id","in":"header","required":false,"schema":{"anyOf":[{"type":"string","maxLength":36},{"type":"null"}],"title":"X-Operation-Id"}},{"name":"x-commit-message","in":"header","required":false,"schema":{"anyOf":[{"type":"string","minLength":1},{"type":"null"}],"title":"X-Commit-Message"}},{"name":"x-confirmation-id","in":"header","required":false,"schema":{"anyOf":[{"type":"string","maxLength":36},{"type":"null"}],"title":"X-Confirmation-Id"}},{"name":"x-chat-id","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"X-Chat-Id"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/GoogleLsaMccMembership"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/admin/lsa/leads":{"get":{"tags":["admin","lsa-admin"],"summary":"Google Lsa Leads","description":"Fetch an org's LSA leads straight from Google over the last ``lookback_days`` and, when\n``reconcile`` is set (default), diff them against ``leads.lead`` by external id.\n\nThe read that separates \"Google delivered no leads\" from \"we dropped leads Google\ndelivered\": each account reports ``google_count`` vs ``missing_from_db_count`` (the dropped\nset), and ``db_window_count`` for the reverse case (Google dry now, we ingested earlier).\nAuthenticates via the account's MCC manager credential where one is mapped, so it reads\neven when the org's own Google Ads credential is dead. Read-only; one Google Ads op per\naccount. Pass ``reconcile=false`` for the raw Google fetch with no DB comparison.","operationId":"google_lsa_leads_admin_lsa_leads_get","security":[{"APIKeyHeader":[]},{"HTTPBearer":[]}],"parameters":[{"name":"organization_id","in":"query","required":true,"schema":{"type":"string","title":"Organization Id"}},{"name":"lookback_days","in":"query","required":false,"schema":{"type":"integer","default":7,"title":"Lookback Days"}},{"name":"google_customer_id","in":"query","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Google Customer Id"}},{"name":"reconcile","in":"query","required":false,"schema":{"type":"boolean","default":true,"title":"Reconcile"}},{"name":"organization-id","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Organization-Id"}},{"name":"timezone","in":"header","required":false,"schema":{"type":"string","default":"UTC","title":"Timezone"}},{"name":"x-user-id","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"X-User-Id"}},{"name":"x-actor-email","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"X-Actor-Email"}},{"name":"x-request-source","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"X-Request-Source"}},{"name":"x-operation-id","in":"header","required":false,"schema":{"anyOf":[{"type":"string","maxLength":36},{"type":"null"}],"title":"X-Operation-Id"}},{"name":"x-commit-message","in":"header","required":false,"schema":{"anyOf":[{"type":"string","minLength":1},{"type":"null"}],"title":"X-Commit-Message"}},{"name":"x-confirmation-id","in":"header","required":false,"schema":{"anyOf":[{"type":"string","maxLength":36},{"type":"null"}],"title":"X-Confirmation-Id"}},{"name":"x-chat-id","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"X-Chat-Id"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/GoogleLsaLeadsProbe"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/admin/lsa/conversations":{"get":{"tags":["admin","lsa-admin"],"summary":"Google Lsa Conversations","description":"Read ``local_services_lead_conversation`` straight from Google for one LSA account\n(optionally scoped to one ``lead_resource_name``) and, when ``reconcile`` is set, diff the\nconsumer messages against ``leads.google_lsa_conversation_message``.\n\nThe ground-truth read behind the \"does Google return the customer's later replies?\"\nquestion. ``missing_from_db_count`` is the dropped set — messages Google returned that we\nnever stored. ``missing_from_thread_count`` is reported separately and is usually benign\n(lead intakes and revival openers are persisted as synthetic intakes, so they carry no\nconversation-keyed external_id); PHONE_CALL/BOOKING rows land in ``non_message_count``\nrather than looking like loss. No watermark/lookback suppression (unlike the poller);\n``message_channel_only=false`` widens past the MESSAGE channel. Read-only; one Google Ads op.","operationId":"google_lsa_conversations_admin_lsa_conversations_get","security":[{"APIKeyHeader":[]},{"HTTPBearer":[]}],"parameters":[{"name":"organization_id","in":"query","required":true,"schema":{"type":"string","title":"Organization Id"}},{"name":"google_customer_id","in":"query","required":true,"schema":{"type":"string","title":"Google Customer Id"}},{"name":"lead_resource_name","in":"query","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Lead Resource Name"}},{"name":"lookback_days","in":"query","required":false,"schema":{"type":"integer","default":30,"title":"Lookback Days"}},{"name":"message_channel_only","in":"query","required":false,"schema":{"type":"boolean","default":true,"title":"Message Channel Only"}},{"name":"reconcile","in":"query","required":false,"schema":{"type":"boolean","default":true,"title":"Reconcile"}},{"name":"organization-id","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Organization-Id"}},{"name":"timezone","in":"header","required":false,"schema":{"type":"string","default":"UTC","title":"Timezone"}},{"name":"x-user-id","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"X-User-Id"}},{"name":"x-actor-email","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"X-Actor-Email"}},{"name":"x-request-source","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"X-Request-Source"}},{"name":"x-operation-id","in":"header","required":false,"schema":{"anyOf":[{"type":"string","maxLength":36},{"type":"null"}],"title":"X-Operation-Id"}},{"name":"x-commit-message","in":"header","required":false,"schema":{"anyOf":[{"type":"string","minLength":1},{"type":"null"}],"title":"X-Commit-Message"}},{"name":"x-confirmation-id","in":"header","required":false,"schema":{"anyOf":[{"type":"string","maxLength":36},{"type":"null"}],"title":"X-Confirmation-Id"}},{"name":"x-chat-id","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"X-Chat-Id"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/GoogleLsaConversationsProbe"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/admin/lsa/write-access":{"get":{"tags":["admin","lsa-admin"],"summary":"Google Lsa Write Access","description":"Whether the org's Google Ads credential can actually reply on its LSA lead conversations.\n\nA read-only OAuth grant still reads leads (it holds ACCESS_GLS_LEAD), so ingestion looks\nhealthy while every AppendLocalServicesLeadConversation is rejected. This reads\n``customer_user_access`` per active account and reports whether any user holds ADMIN or\nSTANDARD — telling those two states apart without attempting a write.\n\nAccounts served by a mapped MCC manager credential report ``manager_served`` with no\nGoogle call. ``ok`` is false only for states a person must fix; a transient probe failure\nleaves it true. Read-only; one Google Ads op per non-manager-served account, cached 24h\nper org (``use_cache=false`` forces a fresh read).","operationId":"google_lsa_write_access_admin_lsa_write_access_get","security":[{"APIKeyHeader":[]},{"HTTPBearer":[]}],"parameters":[{"name":"organization_id","in":"query","required":true,"schema":{"type":"string","title":"Organization Id"}},{"name":"use_cache","in":"query","required":false,"schema":{"type":"boolean","default":true,"title":"Use Cache"}},{"name":"organization-id","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Organization-Id"}},{"name":"timezone","in":"header","required":false,"schema":{"type":"string","default":"UTC","title":"Timezone"}},{"name":"x-user-id","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"X-User-Id"}},{"name":"x-actor-email","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"X-Actor-Email"}},{"name":"x-request-source","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"X-Request-Source"}},{"name":"x-operation-id","in":"header","required":false,"schema":{"anyOf":[{"type":"string","maxLength":36},{"type":"null"}],"title":"X-Operation-Id"}},{"name":"x-commit-message","in":"header","required":false,"schema":{"anyOf":[{"type":"string","minLength":1},{"type":"null"}],"title":"X-Commit-Message"}},{"name":"x-confirmation-id","in":"header","required":false,"schema":{"anyOf":[{"type":"string","maxLength":36},{"type":"null"}],"title":"X-Confirmation-Id"}},{"name":"x-chat-id","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"X-Chat-Id"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/GoogleLsaWriteAccessProbe"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/admin/lsa/gaql":{"post":{"tags":["admin","lsa-admin"],"summary":"Run Google Ads Gaql","description":"Run an arbitrary GAQL query against one of an org's Google Ads customers and return the\nrows as dicts.\n\nAuthenticates with the org's own per-org OAuth credential by default; pass a\n``login_customer_id`` mapped to a shared manager credential to run under that MCC instead\n(which reaches only accounts linked under it). ``customer_id`` defaults to the org's single\nactive LSA account when omitted. Read-only — GAQL only selects, so nothing is written to\nGoogle or our DB; note the per-org credential reaches the customer's *full* Google Ads\naccount (Search / PMax / Display), not just Local Services. A revoked/expired credential or\na malformed query surfaces as a 400.\n\nPass ``api_version`` to run this one query on a different Google Ads API version than the\nservice default — the only way to select a field that exists solely in a newer version.\nSelecting a field the chosen version doesn't define is a 400 from Google.","operationId":"run_google_ads_gaql_admin_lsa_gaql_post","security":[{"APIKeyHeader":[]},{"HTTPBearer":[]}],"parameters":[{"name":"organization-id","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Organization-Id"}},{"name":"timezone","in":"header","required":false,"schema":{"type":"string","default":"UTC","title":"Timezone"}},{"name":"x-user-id","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"X-User-Id"}},{"name":"x-actor-email","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"X-Actor-Email"}},{"name":"x-request-source","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"X-Request-Source"}},{"name":"x-operation-id","in":"header","required":false,"schema":{"anyOf":[{"type":"string","maxLength":36},{"type":"null"}],"title":"X-Operation-Id"}},{"name":"x-commit-message","in":"header","required":false,"schema":{"anyOf":[{"type":"string","minLength":1},{"type":"null"}],"title":"X-Commit-Message"}},{"name":"x-confirmation-id","in":"header","required":false,"schema":{"anyOf":[{"type":"string","maxLength":36},{"type":"null"}],"title":"X-Confirmation-Id"}},{"name":"x-chat-id","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"X-Chat-Id"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/GaqlRequest"}}}},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/GaqlResult"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/admin/lsa/account-reports":{"get":{"tags":["admin","lsa-admin"],"summary":"Fetch Google Lsa Account Reports","description":"Fetch the Local Services Ads ``accountReports`` for an org's LSA accounts — review\nrating + count, phone-lead responsiveness, connected calls, and Google's weekly budget.\n\nThis hits the separate Local Services Ads Reporting API (``localservices.googleapis.com``),\nnot the Google Ads API / GAQL, so it's the only way to read LSA reviews. The report is\nmanager-scoped: it's fetched once for the MCC and filtered to the org's own accounts.\n``login_customer_id`` defaults to the org's single manager when unambiguous; ``report_date``\ndefaults to yesterday (the last complete day; ``current_period_*`` cover that single day,\nwhile rating / reviews / responsiveness / weekly budget are current-state). ``customer_id``\nnarrows to one account. Read-only. A revoked/expired credential surfaces as a 400.","operationId":"fetch_google_lsa_account_reports_admin_lsa_account_reports_get","security":[{"APIKeyHeader":[]},{"HTTPBearer":[]}],"parameters":[{"name":"organization_id","in":"query","required":true,"schema":{"type":"string","title":"Organization Id"}},{"name":"login_customer_id","in":"query","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Login Customer Id"}},{"name":"customer_id","in":"query","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Customer Id"}},{"name":"report_date","in":"query","required":false,"schema":{"anyOf":[{"type":"string","format":"date"},{"type":"null"}],"title":"Report Date"}},{"name":"organization-id","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Organization-Id"}},{"name":"timezone","in":"header","required":false,"schema":{"type":"string","default":"UTC","title":"Timezone"}},{"name":"x-user-id","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"X-User-Id"}},{"name":"x-actor-email","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"X-Actor-Email"}},{"name":"x-request-source","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"X-Request-Source"}},{"name":"x-operation-id","in":"header","required":false,"schema":{"anyOf":[{"type":"string","maxLength":36},{"type":"null"}],"title":"X-Operation-Id"}},{"name":"x-commit-message","in":"header","required":false,"schema":{"anyOf":[{"type":"string","minLength":1},{"type":"null"}],"title":"X-Commit-Message"}},{"name":"x-confirmation-id","in":"header","required":false,"schema":{"anyOf":[{"type":"string","maxLength":36},{"type":"null"}],"title":"X-Confirmation-Id"}},{"name":"x-chat-id","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"X-Chat-Id"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/GoogleLsaAccountReportsResult"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/admin/lsa/account-login-customer-id":{"patch":{"tags":["admin","lsa-admin"],"summary":"Set Google Lsa Account Login Customer Id","description":"Set an LSA account's ``login_customer_id`` (MCC) so it authenticates via that MCC's\nshared manager credential instead of the org's per-org credential.\n\nThe remap that heals an account whose per-org OAuth credential died (e.g. an account with\na NULL ``login_customer_id`` after a per-org OAuth-400): once pointed at an MCC that has a\nmapped manager credential, the next poll resumes ingestion. Guarded server-side — rejected\nwith 400 unless Google reports the customer as a managed child of the MCC.","operationId":"set_google_lsa_account_login_customer_id_admin_lsa_account_login_customer_id_patch","security":[{"APIKeyHeader":[]},{"HTTPBearer":[]}],"parameters":[{"name":"organization-id","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Organization-Id"}},{"name":"timezone","in":"header","required":false,"schema":{"type":"string","default":"UTC","title":"Timezone"}},{"name":"x-user-id","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"X-User-Id"}},{"name":"x-actor-email","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"X-Actor-Email"}},{"name":"x-request-source","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"X-Request-Source"}},{"name":"x-operation-id","in":"header","required":false,"schema":{"anyOf":[{"type":"string","maxLength":36},{"type":"null"}],"title":"X-Operation-Id"}},{"name":"x-commit-message","in":"header","required":false,"schema":{"anyOf":[{"type":"string","minLength":1},{"type":"null"}],"title":"X-Commit-Message"}},{"name":"x-confirmation-id","in":"header","required":false,"schema":{"anyOf":[{"type":"string","maxLength":36},{"type":"null"}],"title":"X-Confirmation-Id"}},{"name":"x-chat-id","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"X-Chat-Id"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/SetGoogleLsaLoginCustomerIdBody"}}}},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/api__domains__leads__google_ads__lsa__lsa_account__GoogleLSAAccountResponse"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/admin/lsa/account-business-units":{"get":{"tags":["admin","lsa-admin"],"summary":"List Google Lsa Account Business Units","description":"List the live LSA account -> ServiceTitan business-unit mappings for an org (optionally one\naccount). Inspect what the seeding backfill produced before correcting it.","operationId":"list_google_lsa_account_business_units_admin_lsa_account_business_units_get","security":[{"APIKeyHeader":[]},{"HTTPBearer":[]}],"parameters":[{"name":"organization_id","in":"query","required":true,"schema":{"type":"string","format":"uuid","title":"Organization Id"}},{"name":"google_lsa_account_id","in":"query","required":false,"schema":{"anyOf":[{"type":"string","format":"uuid"},{"type":"null"}],"title":"Google Lsa Account Id"}},{"name":"organization-id","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Organization-Id"}},{"name":"timezone","in":"header","required":false,"schema":{"type":"string","default":"UTC","title":"Timezone"}},{"name":"x-user-id","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"X-User-Id"}},{"name":"x-actor-email","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"X-Actor-Email"}},{"name":"x-request-source","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"X-Request-Source"}},{"name":"x-operation-id","in":"header","required":false,"schema":{"anyOf":[{"type":"string","maxLength":36},{"type":"null"}],"title":"X-Operation-Id"}},{"name":"x-commit-message","in":"header","required":false,"schema":{"anyOf":[{"type":"string","minLength":1},{"type":"null"}],"title":"X-Commit-Message"}},{"name":"x-confirmation-id","in":"header","required":false,"schema":{"anyOf":[{"type":"string","maxLength":36},{"type":"null"}],"title":"X-Confirmation-Id"}},{"name":"x-chat-id","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"X-Chat-Id"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"type":"array","items":{"$ref":"#/components/schemas/GoogleLSAAccountBusinessUnitResponse"},"title":"Response List Google Lsa Account Business Units Admin Lsa Account Business Units Get"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/admin/lsa/account-business-unit":{"post":{"tags":["admin","lsa-admin"],"summary":"Create Google Lsa Account Business Unit","description":"Map an LSA account to a ServiceTitan business unit. Idempotent — returns the existing live\nrow if the pair is already mapped. Use to add mappings the seeding backfill missed (e.g.\nmarket-split accounts) or to correct a miscategorization.","operationId":"create_google_lsa_account_business_unit_admin_lsa_account_business_unit_post","security":[{"APIKeyHeader":[]},{"HTTPBearer":[]}],"parameters":[{"name":"organization-id","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Organization-Id"}},{"name":"timezone","in":"header","required":false,"schema":{"type":"string","default":"UTC","title":"Timezone"}},{"name":"x-user-id","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"X-User-Id"}},{"name":"x-actor-email","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"X-Actor-Email"}},{"name":"x-request-source","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"X-Request-Source"}},{"name":"x-operation-id","in":"header","required":false,"schema":{"anyOf":[{"type":"string","maxLength":36},{"type":"null"}],"title":"X-Operation-Id"}},{"name":"x-commit-message","in":"header","required":false,"schema":{"anyOf":[{"type":"string","minLength":1},{"type":"null"}],"title":"X-Commit-Message"}},{"name":"x-confirmation-id","in":"header","required":false,"schema":{"anyOf":[{"type":"string","maxLength":36},{"type":"null"}],"title":"X-Confirmation-Id"}},{"name":"x-chat-id","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"X-Chat-Id"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/GoogleLSAAccountBusinessUnitBody"}}}},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/GoogleLSAAccountBusinessUnitResponse"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}},"delete":{"tags":["admin","lsa-admin"],"summary":"Delete Google Lsa Account Business Unit","description":"Soft-delete one LSA account -> business-unit mapping (404 if no live row matches). Use to\nremove a mapping the seeding backfill got wrong.","operationId":"delete_google_lsa_account_business_unit_admin_lsa_account_business_unit_delete","security":[{"APIKeyHeader":[]},{"HTTPBearer":[]}],"parameters":[{"name":"organization_id","in":"query","required":true,"schema":{"type":"string","format":"uuid","title":"Organization Id"}},{"name":"google_lsa_account_id","in":"query","required":true,"schema":{"type":"string","format":"uuid","title":"Google Lsa Account Id"}},{"name":"st_business_unit_id","in":"query","required":true,"schema":{"type":"integer","title":"St Business Unit Id"}},{"name":"organization-id","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Organization-Id"}},{"name":"timezone","in":"header","required":false,"schema":{"type":"string","default":"UTC","title":"Timezone"}},{"name":"x-user-id","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"X-User-Id"}},{"name":"x-actor-email","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"X-Actor-Email"}},{"name":"x-request-source","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"X-Request-Source"}},{"name":"x-operation-id","in":"header","required":false,"schema":{"anyOf":[{"type":"string","maxLength":36},{"type":"null"}],"title":"X-Operation-Id"}},{"name":"x-commit-message","in":"header","required":false,"schema":{"anyOf":[{"type":"string","minLength":1},{"type":"null"}],"title":"X-Commit-Message"}},{"name":"x-confirmation-id","in":"header","required":false,"schema":{"anyOf":[{"type":"string","maxLength":36},{"type":"null"}],"title":"X-Confirmation-Id"}},{"name":"x-chat-id","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"X-Chat-Id"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/GoogleLSAAccountBusinessUnitResponse"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/admin/memories":{"post":{"tags":["admin","memories"],"summary":"Create Memory","description":"Create a new organization-owned memory.\n\n- ORGANIZATION: Org-wide memories for Agents V2 (scope_id = org ID, organization_id required)\n- ORGANIZATION_ASK_JENNY: Org-wide memories for Ask Jenny (scope_id = org ID, organization_id required)\n- USER: Employee-specific memories (scope_id = user ID, organization_id required)\n- CUSTOMER: Contact-specific memories (scope_id = contact ID, organization_id required)","operationId":"create_memory_admin_memories_post","security":[{"APIKeyHeader":[]},{"HTTPBearer":[]}],"parameters":[{"name":"organization-id","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Organization-Id"}},{"name":"timezone","in":"header","required":false,"schema":{"type":"string","default":"UTC","title":"Timezone"}},{"name":"x-user-id","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"X-User-Id"}},{"name":"x-actor-email","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"X-Actor-Email"}},{"name":"x-request-source","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"X-Request-Source"}},{"name":"x-operation-id","in":"header","required":false,"schema":{"anyOf":[{"type":"string","maxLength":36},{"type":"null"}],"title":"X-Operation-Id"}},{"name":"x-commit-message","in":"header","required":false,"schema":{"anyOf":[{"type":"string","minLength":1},{"type":"null"}],"title":"X-Commit-Message"}},{"name":"x-confirmation-id","in":"header","required":false,"schema":{"anyOf":[{"type":"string","maxLength":36},{"type":"null"}],"title":"X-Confirmation-Id"}},{"name":"x-chat-id","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"X-Chat-Id"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/CreateMemoryRequest"}}}},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/MemoryResponse"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}},"get":{"tags":["admin","memories"],"summary":"List Memories","description":"List current memories with optional filters.\n\nReturns only active (not superseded, not deleted) memories.\nFilter by level (any ``MemoryLevel`` value), scope_id, organization_id, or category.","operationId":"list_memories_admin_memories_get","security":[{"APIKeyHeader":[]},{"HTTPBearer":[]}],"parameters":[{"name":"level","in":"query","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Level"}},{"name":"scope_id","in":"query","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Scope Id"}},{"name":"organization_id","in":"query","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Organization Id"}},{"name":"category","in":"query","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Category"}},{"name":"limit","in":"query","required":false,"schema":{"type":"integer","default":100,"title":"Limit"}},{"name":"organization-id","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Organization-Id"}},{"name":"timezone","in":"header","required":false,"schema":{"type":"string","default":"UTC","title":"Timezone"}},{"name":"x-user-id","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"X-User-Id"}},{"name":"x-actor-email","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"X-Actor-Email"}},{"name":"x-request-source","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"X-Request-Source"}},{"name":"x-operation-id","in":"header","required":false,"schema":{"anyOf":[{"type":"string","maxLength":36},{"type":"null"}],"title":"X-Operation-Id"}},{"name":"x-commit-message","in":"header","required":false,"schema":{"anyOf":[{"type":"string","minLength":1},{"type":"null"}],"title":"X-Commit-Message"}},{"name":"x-confirmation-id","in":"header","required":false,"schema":{"anyOf":[{"type":"string","maxLength":36},{"type":"null"}],"title":"X-Confirmation-Id"}},{"name":"x-chat-id","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"X-Chat-Id"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"type":"array","items":{"$ref":"#/components/schemas/MemoryResponse"},"title":"Response List Memories Admin Memories Get"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/admin/memories/{memory_id}":{"get":{"tags":["admin","memories"],"summary":"Get Memory","description":"Get a single memory by ID (any level).","operationId":"get_memory_admin_memories__memory_id__get","security":[{"APIKeyHeader":[]},{"HTTPBearer":[]}],"parameters":[{"name":"memory_id","in":"path","required":true,"schema":{"type":"string","title":"Memory Id"}},{"name":"organization-id","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Organization-Id"}},{"name":"timezone","in":"header","required":false,"schema":{"type":"string","default":"UTC","title":"Timezone"}},{"name":"x-user-id","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"X-User-Id"}},{"name":"x-actor-email","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"X-Actor-Email"}},{"name":"x-request-source","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"X-Request-Source"}},{"name":"x-operation-id","in":"header","required":false,"schema":{"anyOf":[{"type":"string","maxLength":36},{"type":"null"}],"title":"X-Operation-Id"}},{"name":"x-commit-message","in":"header","required":false,"schema":{"anyOf":[{"type":"string","minLength":1},{"type":"null"}],"title":"X-Commit-Message"}},{"name":"x-confirmation-id","in":"header","required":false,"schema":{"anyOf":[{"type":"string","maxLength":36},{"type":"null"}],"title":"X-Confirmation-Id"}},{"name":"x-chat-id","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"X-Chat-Id"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/MemoryResponse"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}},"patch":{"tags":["admin","memories"],"summary":"Update Memory","description":"Update a memory (supersession-based, works for any level).\n\nCreates a new version of the memory with updated content/category,\nmarks the old version as superseded.","operationId":"update_memory_admin_memories__memory_id__patch","security":[{"APIKeyHeader":[]},{"HTTPBearer":[]}],"parameters":[{"name":"memory_id","in":"path","required":true,"schema":{"type":"string","title":"Memory Id"}},{"name":"organization-id","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Organization-Id"}},{"name":"timezone","in":"header","required":false,"schema":{"type":"string","default":"UTC","title":"Timezone"}},{"name":"x-user-id","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"X-User-Id"}},{"name":"x-actor-email","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"X-Actor-Email"}},{"name":"x-request-source","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"X-Request-Source"}},{"name":"x-operation-id","in":"header","required":false,"schema":{"anyOf":[{"type":"string","maxLength":36},{"type":"null"}],"title":"X-Operation-Id"}},{"name":"x-commit-message","in":"header","required":false,"schema":{"anyOf":[{"type":"string","minLength":1},{"type":"null"}],"title":"X-Commit-Message"}},{"name":"x-confirmation-id","in":"header","required":false,"schema":{"anyOf":[{"type":"string","maxLength":36},{"type":"null"}],"title":"X-Confirmation-Id"}},{"name":"x-chat-id","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"X-Chat-Id"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/UpdateMemoryRequest"}}}},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/MemoryResponse"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}},"delete":{"tags":["admin","memories"],"summary":"Delete Memory","description":"Soft-delete a memory (works for any level).\n\nMarks the memory as deleted in Postgres and removes its vector from Pinecone.","operationId":"delete_memory_admin_memories__memory_id__delete","security":[{"APIKeyHeader":[]},{"HTTPBearer":[]}],"parameters":[{"name":"memory_id","in":"path","required":true,"schema":{"type":"string","title":"Memory Id"}},{"name":"organization-id","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Organization-Id"}},{"name":"timezone","in":"header","required":false,"schema":{"type":"string","default":"UTC","title":"Timezone"}},{"name":"x-user-id","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"X-User-Id"}},{"name":"x-actor-email","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"X-Actor-Email"}},{"name":"x-request-source","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"X-Request-Source"}},{"name":"x-operation-id","in":"header","required":false,"schema":{"anyOf":[{"type":"string","maxLength":36},{"type":"null"}],"title":"X-Operation-Id"}},{"name":"x-commit-message","in":"header","required":false,"schema":{"anyOf":[{"type":"string","minLength":1},{"type":"null"}],"title":"X-Commit-Message"}},{"name":"x-confirmation-id","in":"header","required":false,"schema":{"anyOf":[{"type":"string","maxLength":36},{"type":"null"}],"title":"X-Confirmation-Id"}},{"name":"x-chat-id","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"X-Chat-Id"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/MemoryResponse"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/admin/onboarding-drafts/{organization_id}":{"get":{"tags":["admin","onboarding-drafts"],"summary":"Read Onboarding Draft","operationId":"read_onboarding_draft_admin_onboarding_drafts__organization_id__get","security":[{"APIKeyHeader":[]},{"HTTPBearer":[]}],"parameters":[{"name":"organization_id","in":"path","required":true,"schema":{"type":"string","title":"Organization Id"}},{"name":"organization-id","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Organization-Id"}},{"name":"timezone","in":"header","required":false,"schema":{"type":"string","default":"UTC","title":"Timezone"}},{"name":"x-user-id","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"X-User-Id"}},{"name":"x-actor-email","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"X-Actor-Email"}},{"name":"x-request-source","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"X-Request-Source"}},{"name":"x-operation-id","in":"header","required":false,"schema":{"anyOf":[{"type":"string","maxLength":36},{"type":"null"}],"title":"X-Operation-Id"}},{"name":"x-commit-message","in":"header","required":false,"schema":{"anyOf":[{"type":"string","minLength":1},{"type":"null"}],"title":"X-Commit-Message"}},{"name":"x-confirmation-id","in":"header","required":false,"schema":{"anyOf":[{"type":"string","maxLength":36},{"type":"null"}],"title":"X-Confirmation-Id"}},{"name":"x-chat-id","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"X-Chat-Id"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/OnboardingDraftPublic"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}},"post":{"tags":["admin","onboarding-drafts"],"summary":"Enroll Onboarding Draft","description":"Idempotently enroll an organization in /setup and optionally seed its ServiceTitan step.","operationId":"enroll_onboarding_draft_admin_onboarding_drafts__organization_id__post","security":[{"APIKeyHeader":[]},{"HTTPBearer":[]}],"parameters":[{"name":"organization_id","in":"path","required":true,"schema":{"type":"string","title":"Organization Id"}},{"name":"organization-id","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Organization-Id"}},{"name":"timezone","in":"header","required":false,"schema":{"type":"string","default":"UTC","title":"Timezone"}},{"name":"x-user-id","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"X-User-Id"}},{"name":"x-actor-email","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"X-Actor-Email"}},{"name":"x-request-source","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"X-Request-Source"}},{"name":"x-operation-id","in":"header","required":false,"schema":{"anyOf":[{"type":"string","maxLength":36},{"type":"null"}],"title":"X-Operation-Id"}},{"name":"x-commit-message","in":"header","required":false,"schema":{"anyOf":[{"type":"string","minLength":1},{"type":"null"}],"title":"X-Commit-Message"}},{"name":"x-confirmation-id","in":"header","required":false,"schema":{"anyOf":[{"type":"string","maxLength":36},{"type":"null"}],"title":"X-Confirmation-Id"}},{"name":"x-chat-id","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"X-Chat-Id"}}],"requestBody":{"content":{"application/json":{"schema":{"anyOf":[{"$ref":"#/components/schemas/OnboardingDraftEnrollmentRequest"},{"type":"null"}],"title":"Request"}}}},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/OnboardingDraftPublic"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}},"delete":{"tags":["admin","onboarding-drafts"],"summary":"Delete Onboarding Draft","description":"Unenroll an organization: the draft and its steps go, the organization keeps everything else.","operationId":"delete_onboarding_draft_admin_onboarding_drafts__organization_id__delete","security":[{"APIKeyHeader":[]},{"HTTPBearer":[]}],"parameters":[{"name":"organization_id","in":"path","required":true,"schema":{"type":"string","title":"Organization Id"}},{"name":"organization-id","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Organization-Id"}},{"name":"timezone","in":"header","required":false,"schema":{"type":"string","default":"UTC","title":"Timezone"}},{"name":"x-user-id","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"X-User-Id"}},{"name":"x-actor-email","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"X-Actor-Email"}},{"name":"x-request-source","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"X-Request-Source"}},{"name":"x-operation-id","in":"header","required":false,"schema":{"anyOf":[{"type":"string","maxLength":36},{"type":"null"}],"title":"X-Operation-Id"}},{"name":"x-commit-message","in":"header","required":false,"schema":{"anyOf":[{"type":"string","minLength":1},{"type":"null"}],"title":"X-Commit-Message"}},{"name":"x-confirmation-id","in":"header","required":false,"schema":{"anyOf":[{"type":"string","maxLength":36},{"type":"null"}],"title":"X-Confirmation-Id"}},{"name":"x-chat-id","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"X-Chat-Id"}}],"responses":{"204":{"description":"Successful Response"},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/admin/onboarding-demo":{"get":{"tags":["admin","onboarding-demo"],"summary":"Read Demo","operationId":"read_demo_admin_onboarding_demo_get","security":[{"APIKeyHeader":[]},{"HTTPBearer":[]}],"parameters":[{"name":"organization-id","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Organization-Id"}},{"name":"timezone","in":"header","required":false,"schema":{"type":"string","default":"UTC","title":"Timezone"}},{"name":"x-user-id","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"X-User-Id"}},{"name":"x-actor-email","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"X-Actor-Email"}},{"name":"x-request-source","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"X-Request-Source"}},{"name":"x-operation-id","in":"header","required":false,"schema":{"anyOf":[{"type":"string","maxLength":36},{"type":"null"}],"title":"X-Operation-Id"}},{"name":"x-commit-message","in":"header","required":false,"schema":{"anyOf":[{"type":"string","minLength":1},{"type":"null"}],"title":"X-Commit-Message"}},{"name":"x-confirmation-id","in":"header","required":false,"schema":{"anyOf":[{"type":"string","maxLength":36},{"type":"null"}],"title":"X-Confirmation-Id"}},{"name":"x-chat-id","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"X-Chat-Id"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"anyOf":[{"$ref":"#/components/schemas/AdminDemoPublic"},{"type":"null"}],"title":"Response Read Demo Admin Onboarding Demo Get"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}},"post":{"tags":["admin","onboarding-demo"],"summary":"Ensure Demo","operationId":"ensure_demo_admin_onboarding_demo_post","security":[{"APIKeyHeader":[]},{"HTTPBearer":[]}],"parameters":[{"name":"organization-id","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Organization-Id"}},{"name":"timezone","in":"header","required":false,"schema":{"type":"string","default":"UTC","title":"Timezone"}},{"name":"x-user-id","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"X-User-Id"}},{"name":"x-actor-email","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"X-Actor-Email"}},{"name":"x-request-source","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"X-Request-Source"}},{"name":"x-operation-id","in":"header","required":false,"schema":{"anyOf":[{"type":"string","maxLength":36},{"type":"null"}],"title":"X-Operation-Id"}},{"name":"x-commit-message","in":"header","required":false,"schema":{"anyOf":[{"type":"string","minLength":1},{"type":"null"}],"title":"X-Commit-Message"}},{"name":"x-confirmation-id","in":"header","required":false,"schema":{"anyOf":[{"type":"string","maxLength":36},{"type":"null"}],"title":"X-Confirmation-Id"}},{"name":"x-chat-id","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"X-Chat-Id"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/AdminDemoPublic"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/admin/onboarding-demo/reset":{"post":{"tags":["admin","onboarding-demo"],"summary":"Reset Demo","operationId":"reset_demo_admin_onboarding_demo_reset_post","security":[{"APIKeyHeader":[]},{"HTTPBearer":[]}],"parameters":[{"name":"organization-id","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Organization-Id"}},{"name":"timezone","in":"header","required":false,"schema":{"type":"string","default":"UTC","title":"Timezone"}},{"name":"x-user-id","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"X-User-Id"}},{"name":"x-actor-email","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"X-Actor-Email"}},{"name":"x-request-source","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"X-Request-Source"}},{"name":"x-operation-id","in":"header","required":false,"schema":{"anyOf":[{"type":"string","maxLength":36},{"type":"null"}],"title":"X-Operation-Id"}},{"name":"x-commit-message","in":"header","required":false,"schema":{"anyOf":[{"type":"string","minLength":1},{"type":"null"}],"title":"X-Commit-Message"}},{"name":"x-confirmation-id","in":"header","required":false,"schema":{"anyOf":[{"type":"string","maxLength":36},{"type":"null"}],"title":"X-Confirmation-Id"}},{"name":"x-chat-id","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"X-Chat-Id"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/AdminDemoPublic"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/admin/onboarding/organization":{"post":{"tags":["admin","onboarding"],"summary":"Setup Organization","operationId":"setup_organization_admin_onboarding_organization_post","security":[{"APIKeyHeader":[]},{"HTTPBearer":[]}],"parameters":[{"name":"organization-id","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Organization-Id"}},{"name":"timezone","in":"header","required":false,"schema":{"type":"string","default":"UTC","title":"Timezone"}},{"name":"x-user-id","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"X-User-Id"}},{"name":"x-actor-email","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"X-Actor-Email"}},{"name":"x-request-source","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"X-Request-Source"}},{"name":"x-operation-id","in":"header","required":false,"schema":{"anyOf":[{"type":"string","maxLength":36},{"type":"null"}],"title":"X-Operation-Id"}},{"name":"x-commit-message","in":"header","required":false,"schema":{"anyOf":[{"type":"string","minLength":1},{"type":"null"}],"title":"X-Commit-Message"}},{"name":"x-confirmation-id","in":"header","required":false,"schema":{"anyOf":[{"type":"string","maxLength":36},{"type":"null"}],"title":"X-Confirmation-Id"}},{"name":"x-chat-id","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"X-Chat-Id"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/Body_setup_organization_admin_onboarding_organization_post"}}}},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Organization"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/admin/onboarding/organization/{organization_id}":{"put":{"tags":["admin","onboarding"],"summary":"Update Existing Organization","operationId":"update_existing_organization_admin_onboarding_organization__organization_id__put","security":[{"APIKeyHeader":[]},{"HTTPBearer":[]}],"parameters":[{"name":"organization_id","in":"path","required":true,"schema":{"type":"string","title":"Organization Id"}},{"name":"organization-id","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Organization-Id"}},{"name":"timezone","in":"header","required":false,"schema":{"type":"string","default":"UTC","title":"Timezone"}},{"name":"x-user-id","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"X-User-Id"}},{"name":"x-actor-email","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"X-Actor-Email"}},{"name":"x-request-source","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"X-Request-Source"}},{"name":"x-operation-id","in":"header","required":false,"schema":{"anyOf":[{"type":"string","maxLength":36},{"type":"null"}],"title":"X-Operation-Id"}},{"name":"x-commit-message","in":"header","required":false,"schema":{"anyOf":[{"type":"string","minLength":1},{"type":"null"}],"title":"X-Commit-Message"}},{"name":"x-confirmation-id","in":"header","required":false,"schema":{"anyOf":[{"type":"string","maxLength":36},{"type":"null"}],"title":"X-Confirmation-Id"}},{"name":"x-chat-id","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"X-Chat-Id"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/admin/onboarding/invite-user":{"post":{"tags":["admin","onboarding"],"summary":"Invite User To Organization","operationId":"invite_user_to_organization_admin_onboarding_invite_user_post","security":[{"APIKeyHeader":[]},{"HTTPBearer":[]}],"parameters":[{"name":"organization-id","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Organization-Id"}},{"name":"timezone","in":"header","required":false,"schema":{"type":"string","default":"UTC","title":"Timezone"}},{"name":"x-user-id","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"X-User-Id"}},{"name":"x-actor-email","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"X-Actor-Email"}},{"name":"x-request-source","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"X-Request-Source"}},{"name":"x-operation-id","in":"header","required":false,"schema":{"anyOf":[{"type":"string","maxLength":36},{"type":"null"}],"title":"X-Operation-Id"}},{"name":"x-commit-message","in":"header","required":false,"schema":{"anyOf":[{"type":"string","minLength":1},{"type":"null"}],"title":"X-Commit-Message"}},{"name":"x-confirmation-id","in":"header","required":false,"schema":{"anyOf":[{"type":"string","maxLength":36},{"type":"null"}],"title":"X-Confirmation-Id"}},{"name":"x-chat-id","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"X-Chat-Id"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/Body_invite_user_to_organization_admin_onboarding_invite_user_post"}}}},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/User"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/admin/onboarding/organization-admin":{"post":{"tags":["admin","onboarding"],"summary":"Setup Organization Admin","operationId":"setup_organization_admin_admin_onboarding_organization_admin_post","security":[{"APIKeyHeader":[]},{"HTTPBearer":[]}],"parameters":[{"name":"organization-id","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Organization-Id"}},{"name":"timezone","in":"header","required":false,"schema":{"type":"string","default":"UTC","title":"Timezone"}},{"name":"x-user-id","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"X-User-Id"}},{"name":"x-actor-email","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"X-Actor-Email"}},{"name":"x-request-source","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"X-Request-Source"}},{"name":"x-operation-id","in":"header","required":false,"schema":{"anyOf":[{"type":"string","maxLength":36},{"type":"null"}],"title":"X-Operation-Id"}},{"name":"x-commit-message","in":"header","required":false,"schema":{"anyOf":[{"type":"string","minLength":1},{"type":"null"}],"title":"X-Commit-Message"}},{"name":"x-confirmation-id","in":"header","required":false,"schema":{"anyOf":[{"type":"string","maxLength":36},{"type":"null"}],"title":"X-Confirmation-Id"}},{"name":"x-chat-id","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"X-Chat-Id"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/OrganizationAdminRequest"}}}},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/OrganizationAdminResponse"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/admin/employee-identities/options":{"get":{"tags":["admin","employee-identities"],"summary":"Read Identity Options","description":"Directory accounts an employee could be, for one system.\n\nRead live from each provider rather than a mirror: unlike organizations, there is no\ntable of Linear/Plain/Slack *users* — the ingest only ever stores the ones it already\nresolved, which is precisely not what a picker needs to offer.\n\nEach source is isolated. Linear needs no new permission, Plain's ``users`` query needs\n``user:read`` and Slack's needs the ``users:read`` bot scope, so one of the three may\nfail while the others work; that surfaces as a 502 for that source alone.\n\nDisabled accounts are excluded unless asked for. They are still linkable — a departed\nperson owns records and their account is the honest answer for that history — but they\nare noise in a picker whose usual job is naming a current employee.","operationId":"read_identity_options_admin_employee_identities_options_get","security":[{"APIKeyHeader":[]},{"HTTPBearer":[]}],"parameters":[{"name":"source","in":"query","required":true,"schema":{"type":"string","title":"Source"}},{"name":"search","in":"query","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Search"}},{"name":"include_disabled","in":"query","required":false,"schema":{"type":"boolean","default":false,"title":"Include Disabled"}},{"name":"organization-id","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Organization-Id"}},{"name":"timezone","in":"header","required":false,"schema":{"type":"string","default":"UTC","title":"Timezone"}},{"name":"x-user-id","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"X-User-Id"}},{"name":"x-actor-email","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"X-Actor-Email"}},{"name":"x-request-source","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"X-Request-Source"}},{"name":"x-operation-id","in":"header","required":false,"schema":{"anyOf":[{"type":"string","maxLength":36},{"type":"null"}],"title":"X-Operation-Id"}},{"name":"x-commit-message","in":"header","required":false,"schema":{"anyOf":[{"type":"string","minLength":1},{"type":"null"}],"title":"X-Commit-Message"}},{"name":"x-confirmation-id","in":"header","required":false,"schema":{"anyOf":[{"type":"string","maxLength":36},{"type":"null"}],"title":"X-Confirmation-Id"}},{"name":"x-chat-id","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"X-Chat-Id"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/IdentityOptions"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/admin/employee-identities/":{"get":{"tags":["admin","employee-identities"],"summary":"Read Employee Identities","description":"Every UpSmith employee and who they are in each system, unresolved first.\n\nLists employees with no identity row at all, because those are precisely the people\nthe ingest could not resolve and the ones this page exists for.\n\nDeparted employees are excluded unless asked for: leaving UpSmith does not soft-delete\n``auth.user``, so they would otherwise sit in the queue permanently unresolvable.","operationId":"read_employee_identities_admin_employee_identities__get","security":[{"APIKeyHeader":[]},{"HTTPBearer":[]}],"parameters":[{"name":"status","in":"query","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Status"}},{"name":"search","in":"query","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Search"}},{"name":"include_departed","in":"query","required":false,"schema":{"type":"boolean","default":false,"title":"Include Departed"}},{"name":"limit","in":"query","required":false,"schema":{"type":"integer","default":100,"title":"Limit"}},{"name":"page","in":"query","required":false,"schema":{"type":"integer","default":0,"title":"Page"}},{"name":"organization-id","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Organization-Id"}},{"name":"timezone","in":"header","required":false,"schema":{"type":"string","default":"UTC","title":"Timezone"}},{"name":"x-user-id","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"X-User-Id"}},{"name":"x-actor-email","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"X-Actor-Email"}},{"name":"x-request-source","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"X-Request-Source"}},{"name":"x-operation-id","in":"header","required":false,"schema":{"anyOf":[{"type":"string","maxLength":36},{"type":"null"}],"title":"X-Operation-Id"}},{"name":"x-commit-message","in":"header","required":false,"schema":{"anyOf":[{"type":"string","minLength":1},{"type":"null"}],"title":"X-Commit-Message"}},{"name":"x-confirmation-id","in":"header","required":false,"schema":{"anyOf":[{"type":"string","maxLength":36},{"type":"null"}],"title":"X-Confirmation-Id"}},{"name":"x-chat-id","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"X-Chat-Id"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/EmployeeIdentityPage"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/admin/employee-identities/{user_id}":{"put":{"tags":["admin","employee-identities"],"summary":"Update Employee Identity","description":"Set, correct or clear who an employee is in Linear, Plain or Slack.\n\nAn omitted field is left alone; an explicit ``null`` clears it. Setting one locks that\nsource by default — the ingest re-resolves on every reconcile, so an unlocked\ncorrection is overwritten within the hour.\n\nClearing matters more here than elsewhere: a person can hold two accounts in the same\nsystem, so \"not this one\" is a real answer that exact-email matching cannot reach.","operationId":"update_employee_identity_admin_employee_identities__user_id__put","security":[{"APIKeyHeader":[]},{"HTTPBearer":[]}],"parameters":[{"name":"user_id","in":"path","required":true,"schema":{"type":"string","title":"User Id"}},{"name":"organization-id","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Organization-Id"}},{"name":"timezone","in":"header","required":false,"schema":{"type":"string","default":"UTC","title":"Timezone"}},{"name":"x-user-id","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"X-User-Id"}},{"name":"x-actor-email","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"X-Actor-Email"}},{"name":"x-request-source","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"X-Request-Source"}},{"name":"x-operation-id","in":"header","required":false,"schema":{"anyOf":[{"type":"string","maxLength":36},{"type":"null"}],"title":"X-Operation-Id"}},{"name":"x-commit-message","in":"header","required":false,"schema":{"anyOf":[{"type":"string","minLength":1},{"type":"null"}],"title":"X-Commit-Message"}},{"name":"x-confirmation-id","in":"header","required":false,"schema":{"anyOf":[{"type":"string","maxLength":36},{"type":"null"}],"title":"X-Confirmation-Id"}},{"name":"x-chat-id","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"X-Chat-Id"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/UpdateEmployeeIdentityRequest"}}}},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/EmployeeIdentityState"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/admin/organizations/":{"get":{"tags":["admin","organizations"],"summary":"List Organizations","operationId":"list_organizations_admin_organizations__get","security":[{"APIKeyHeader":[]},{"HTTPBearer":[]}],"parameters":[{"name":"limit","in":"query","required":false,"schema":{"anyOf":[{"type":"integer"},{"type":"null"}],"title":"Limit"}},{"name":"page","in":"query","required":false,"schema":{"anyOf":[{"type":"integer"},{"type":"null"}],"title":"Page"}},{"name":"search","in":"query","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Search"}},{"name":"organization-id","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Organization-Id"}},{"name":"timezone","in":"header","required":false,"schema":{"type":"string","default":"UTC","title":"Timezone"}},{"name":"x-user-id","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"X-User-Id"}},{"name":"x-actor-email","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"X-Actor-Email"}},{"name":"x-request-source","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"X-Request-Source"}},{"name":"x-operation-id","in":"header","required":false,"schema":{"anyOf":[{"type":"string","maxLength":36},{"type":"null"}],"title":"X-Operation-Id"}},{"name":"x-commit-message","in":"header","required":false,"schema":{"anyOf":[{"type":"string","minLength":1},{"type":"null"}],"title":"X-Commit-Message"}},{"name":"x-confirmation-id","in":"header","required":false,"schema":{"anyOf":[{"type":"string","maxLength":36},{"type":"null"}],"title":"X-Confirmation-Id"}},{"name":"x-chat-id","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"X-Chat-Id"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/OrganizationPage"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}},"post":{"tags":["admin","organizations"],"summary":"Create Organization","operationId":"create_organization_admin_organizations__post","security":[{"APIKeyHeader":[]},{"HTTPBearer":[]}],"parameters":[{"name":"organization-id","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Organization-Id"}},{"name":"timezone","in":"header","required":false,"schema":{"type":"string","default":"UTC","title":"Timezone"}},{"name":"x-user-id","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"X-User-Id"}},{"name":"x-actor-email","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"X-Actor-Email"}},{"name":"x-request-source","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"X-Request-Source"}},{"name":"x-operation-id","in":"header","required":false,"schema":{"anyOf":[{"type":"string","maxLength":36},{"type":"null"}],"title":"X-Operation-Id"}},{"name":"x-commit-message","in":"header","required":false,"schema":{"anyOf":[{"type":"string","minLength":1},{"type":"null"}],"title":"X-Commit-Message"}},{"name":"x-confirmation-id","in":"header","required":false,"schema":{"anyOf":[{"type":"string","maxLength":36},{"type":"null"}],"title":"X-Confirmation-Id"}},{"name":"x-chat-id","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"X-Chat-Id"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/CreateOrganizationRequest"}}}},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/OrganizationRead"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/admin/organizations/link-queue":{"get":{"tags":["admin","organizations"],"summary":"Read Organization Link Queue","description":"Organizations the matcher could not finish, most actionable first.\n\nStatus is recomputed by running the matcher in dry-run mode, so this and the scheduled\nflow can never disagree about what \"conflicting\" means.\n\nSorting happens here rather than in the client because the response is paged: sorting\none page of 50 out of several hundred would order only what you can already see.\n\n``activity`` narrows to one product or widens to everything. It defaults to organizations\nlive on either: nobody needs a dormant account linked, and they are most of what makes\nthe queue long.","operationId":"read_organization_link_queue_admin_organizations_link_queue_get","security":[{"APIKeyHeader":[]},{"HTTPBearer":[]}],"parameters":[{"name":"status","in":"query","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Status"}},{"name":"search","in":"query","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Search"}},{"name":"sort","in":"query","required":false,"schema":{"type":"string","default":"status","title":"Sort"}},{"name":"dir","in":"query","required":false,"schema":{"type":"string","default":"asc","title":"Dir"}},{"name":"activity","in":"query","required":false,"schema":{"type":"string","default":"active","title":"Activity"}},{"name":"limit","in":"query","required":false,"schema":{"type":"integer","default":50,"title":"Limit"}},{"name":"page","in":"query","required":false,"schema":{"type":"integer","default":0,"title":"Page"}},{"name":"organization-id","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Organization-Id"}},{"name":"timezone","in":"header","required":false,"schema":{"type":"string","default":"UTC","title":"Timezone"}},{"name":"x-user-id","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"X-User-Id"}},{"name":"x-actor-email","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"X-Actor-Email"}},{"name":"x-request-source","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"X-Request-Source"}},{"name":"x-operation-id","in":"header","required":false,"schema":{"anyOf":[{"type":"string","maxLength":36},{"type":"null"}],"title":"X-Operation-Id"}},{"name":"x-commit-message","in":"header","required":false,"schema":{"anyOf":[{"type":"string","minLength":1},{"type":"null"}],"title":"X-Commit-Message"}},{"name":"x-confirmation-id","in":"header","required":false,"schema":{"anyOf":[{"type":"string","maxLength":36},{"type":"null"}],"title":"X-Confirmation-Id"}},{"name":"x-chat-id","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"X-Chat-Id"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/OrganizationLinkQueue"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/admin/organizations/link-options":{"get":{"tags":["admin","organizations"],"summary":"Read Organization Link Options","description":"Search one mirror for a record to link an organization to.\n\nSeparate from ``link-candidates``, which only returns what the matcher found by domain\nor name. Every organization in the queue is there because that found nothing, so\npicking a record has to be able to start from a search.","operationId":"read_organization_link_options_admin_organizations_link_options_get","security":[{"APIKeyHeader":[]},{"HTTPBearer":[]}],"parameters":[{"name":"source","in":"query","required":true,"schema":{"type":"string","title":"Source"}},{"name":"search","in":"query","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Search"}},{"name":"limit","in":"query","required":false,"schema":{"type":"integer","default":25,"title":"Limit"}},{"name":"organization-id","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Organization-Id"}},{"name":"timezone","in":"header","required":false,"schema":{"type":"string","default":"UTC","title":"Timezone"}},{"name":"x-user-id","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"X-User-Id"}},{"name":"x-actor-email","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"X-Actor-Email"}},{"name":"x-request-source","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"X-Request-Source"}},{"name":"x-operation-id","in":"header","required":false,"schema":{"anyOf":[{"type":"string","maxLength":36},{"type":"null"}],"title":"X-Operation-Id"}},{"name":"x-commit-message","in":"header","required":false,"schema":{"anyOf":[{"type":"string","minLength":1},{"type":"null"}],"title":"X-Commit-Message"}},{"name":"x-confirmation-id","in":"header","required":false,"schema":{"anyOf":[{"type":"string","maxLength":36},{"type":"null"}],"title":"X-Confirmation-Id"}},{"name":"x-chat-id","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"X-Chat-Id"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/OrganizationLinkOptions"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/admin/organizations/{organization_id}":{"get":{"tags":["admin","organizations"],"summary":"Get Organization","operationId":"get_organization_admin_organizations__organization_id__get","security":[{"APIKeyHeader":[]},{"HTTPBearer":[]}],"parameters":[{"name":"organization_id","in":"path","required":true,"schema":{"type":"string","title":"Organization Id"}},{"name":"organization-id","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Organization-Id"}},{"name":"timezone","in":"header","required":false,"schema":{"type":"string","default":"UTC","title":"Timezone"}},{"name":"x-user-id","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"X-User-Id"}},{"name":"x-actor-email","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"X-Actor-Email"}},{"name":"x-request-source","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"X-Request-Source"}},{"name":"x-operation-id","in":"header","required":false,"schema":{"anyOf":[{"type":"string","maxLength":36},{"type":"null"}],"title":"X-Operation-Id"}},{"name":"x-commit-message","in":"header","required":false,"schema":{"anyOf":[{"type":"string","minLength":1},{"type":"null"}],"title":"X-Commit-Message"}},{"name":"x-confirmation-id","in":"header","required":false,"schema":{"anyOf":[{"type":"string","maxLength":36},{"type":"null"}],"title":"X-Confirmation-Id"}},{"name":"x-chat-id","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"X-Chat-Id"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Organization"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}},"put":{"tags":["admin","organizations"],"summary":"Update Organization","description":"Update an organization's mutable fields.\n\nDelegates to the auth handler which handles audit logging and\ncross-service sync.\n\nCarries a ``preflight`` key beside the organization's own fields: the\norg-scoped findings for the org these values produce.","operationId":"update_organization_admin_organizations__organization_id__put","security":[{"APIKeyHeader":[]},{"HTTPBearer":[]}],"parameters":[{"name":"organization_id","in":"path","required":true,"schema":{"type":"string","title":"Organization Id"}},{"name":"organization-id","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Organization-Id"}},{"name":"timezone","in":"header","required":false,"schema":{"type":"string","default":"UTC","title":"Timezone"}},{"name":"x-user-id","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"X-User-Id"}},{"name":"x-actor-email","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"X-Actor-Email"}},{"name":"x-request-source","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"X-Request-Source"}},{"name":"x-operation-id","in":"header","required":false,"schema":{"anyOf":[{"type":"string","maxLength":36},{"type":"null"}],"title":"X-Operation-Id"}},{"name":"x-commit-message","in":"header","required":false,"schema":{"anyOf":[{"type":"string","minLength":1},{"type":"null"}],"title":"X-Commit-Message"}},{"name":"x-confirmation-id","in":"header","required":false,"schema":{"anyOf":[{"type":"string","maxLength":36},{"type":"null"}],"title":"X-Confirmation-Id"}},{"name":"x-chat-id","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"X-Chat-Id"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/AdminUpdateOrganizationRequest"}}}},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"type":"object","additionalProperties":true,"title":"Response Update Organization Admin Organizations  Organization Id  Put"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}},"delete":{"tags":["admin","organizations"],"summary":"Delete Organization","description":"Soft-delete an organization (sets `deleted_at`). Delegates to the auth\nhandler so the audit + cache invalidation paths fire there as well.","operationId":"delete_organization_admin_organizations__organization_id__delete","security":[{"APIKeyHeader":[]},{"HTTPBearer":[]}],"parameters":[{"name":"organization_id","in":"path","required":true,"schema":{"type":"string","title":"Organization Id"}},{"name":"organization-id","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Organization-Id"}},{"name":"timezone","in":"header","required":false,"schema":{"type":"string","default":"UTC","title":"Timezone"}},{"name":"x-user-id","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"X-User-Id"}},{"name":"x-actor-email","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"X-Actor-Email"}},{"name":"x-request-source","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"X-Request-Source"}},{"name":"x-operation-id","in":"header","required":false,"schema":{"anyOf":[{"type":"string","maxLength":36},{"type":"null"}],"title":"X-Operation-Id"}},{"name":"x-commit-message","in":"header","required":false,"schema":{"anyOf":[{"type":"string","minLength":1},{"type":"null"}],"title":"X-Commit-Message"}},{"name":"x-confirmation-id","in":"header","required":false,"schema":{"anyOf":[{"type":"string","maxLength":36},{"type":"null"}],"title":"X-Confirmation-Id"}},{"name":"x-chat-id","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"X-Chat-Id"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Organization"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/admin/organizations/{organization_id}/link-candidates":{"get":{"tags":["admin","organizations"],"summary":"Read Organization Link Candidates","description":"Records this organization could be, by the same keys the matcher uses.\n\nIncludes candidates the matcher itself rejected as ambiguous — adjudicating those is\nthe reason a person is looking.","operationId":"read_organization_link_candidates_admin_organizations__organization_id__link_candidates_get","security":[{"APIKeyHeader":[]},{"HTTPBearer":[]}],"parameters":[{"name":"organization_id","in":"path","required":true,"schema":{"type":"string","title":"Organization Id"}},{"name":"organization-id","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Organization-Id"}},{"name":"timezone","in":"header","required":false,"schema":{"type":"string","default":"UTC","title":"Timezone"}},{"name":"x-user-id","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"X-User-Id"}},{"name":"x-actor-email","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"X-Actor-Email"}},{"name":"x-request-source","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"X-Request-Source"}},{"name":"x-operation-id","in":"header","required":false,"schema":{"anyOf":[{"type":"string","maxLength":36},{"type":"null"}],"title":"X-Operation-Id"}},{"name":"x-commit-message","in":"header","required":false,"schema":{"anyOf":[{"type":"string","minLength":1},{"type":"null"}],"title":"X-Commit-Message"}},{"name":"x-confirmation-id","in":"header","required":false,"schema":{"anyOf":[{"type":"string","maxLength":36},{"type":"null"}],"title":"X-Confirmation-Id"}},{"name":"x-chat-id","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"X-Chat-Id"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/OrganizationLinkCandidates"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/admin/organizations/{organization_id}/links":{"put":{"tags":["admin","organizations"],"summary":"Update Organization Links","description":"Set, correct or clear which record in each external system this organization is.\n\nAn omitted field is left alone; an explicit ``null`` clears the link. Setting one locks\nthat source by default, because the matcher runs hourly and would otherwise revert the\ncorrection on its next pass.","operationId":"update_organization_links_admin_organizations__organization_id__links_put","security":[{"APIKeyHeader":[]},{"HTTPBearer":[]}],"parameters":[{"name":"organization_id","in":"path","required":true,"schema":{"type":"string","title":"Organization Id"}},{"name":"organization-id","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Organization-Id"}},{"name":"timezone","in":"header","required":false,"schema":{"type":"string","default":"UTC","title":"Timezone"}},{"name":"x-user-id","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"X-User-Id"}},{"name":"x-actor-email","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"X-Actor-Email"}},{"name":"x-request-source","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"X-Request-Source"}},{"name":"x-operation-id","in":"header","required":false,"schema":{"anyOf":[{"type":"string","maxLength":36},{"type":"null"}],"title":"X-Operation-Id"}},{"name":"x-commit-message","in":"header","required":false,"schema":{"anyOf":[{"type":"string","minLength":1},{"type":"null"}],"title":"X-Commit-Message"}},{"name":"x-confirmation-id","in":"header","required":false,"schema":{"anyOf":[{"type":"string","maxLength":36},{"type":"null"}],"title":"X-Confirmation-Id"}},{"name":"x-chat-id","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"X-Chat-Id"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/UpdateOrganizationLinksRequest"}}}},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Organization"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/admin/organizations/{organization_id}/sync-defaults":{"post":{"tags":["admin","organizations"],"summary":"Sync Organization Defaults","description":"Re-run the platform defaults setup against an existing organization\n(agents, channels, tools, links). Returns the organization with full\nnested data so callers can refresh local state in one round-trip —\nmatches the GraphQL `syncOrganizationDefaults` contract.","operationId":"sync_organization_defaults_admin_organizations__organization_id__sync_defaults_post","security":[{"APIKeyHeader":[]},{"HTTPBearer":[]}],"parameters":[{"name":"organization_id","in":"path","required":true,"schema":{"type":"string","title":"Organization Id"}},{"name":"organization-id","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Organization-Id"}},{"name":"timezone","in":"header","required":false,"schema":{"type":"string","default":"UTC","title":"Timezone"}},{"name":"x-user-id","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"X-User-Id"}},{"name":"x-actor-email","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"X-Actor-Email"}},{"name":"x-request-source","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"X-Request-Source"}},{"name":"x-operation-id","in":"header","required":false,"schema":{"anyOf":[{"type":"string","maxLength":36},{"type":"null"}],"title":"X-Operation-Id"}},{"name":"x-commit-message","in":"header","required":false,"schema":{"anyOf":[{"type":"string","minLength":1},{"type":"null"}],"title":"X-Commit-Message"}},{"name":"x-confirmation-id","in":"header","required":false,"schema":{"anyOf":[{"type":"string","maxLength":36},{"type":"null"}],"title":"X-Confirmation-Id"}},{"name":"x-chat-id","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"X-Chat-Id"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/OrganizationRead"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/admin/organizations/{organization_id}/deprovision-channels":{"post":{"tags":["admin","organizations"],"summary":"Deprovision Organization Channels","description":"Soft-delete an offboarded organization's live channels (agent links, region rows and\nnumber bindings go with them, each audited).\n\nSeparate from the platform flag, which is a pause: the org must already be off the\nagent platform, and no unpaused agent may still be linked to its channels. Defaults to a\ndry run listing what would go; POST ``{\"dry_run\": false}`` to apply. Re-runnable.\n\nThe numbers stay leased — only their messaging bindings are cleared, so they return to\nthe eligible pool. A channel reported with ``has_messaging_number: false`` is the only\nrecord of that number on our side; note it down before applying.","operationId":"deprovision_organization_channels_admin_organizations__organization_id__deprovision_channels_post","security":[{"APIKeyHeader":[]},{"HTTPBearer":[]}],"parameters":[{"name":"organization_id","in":"path","required":true,"schema":{"type":"string","title":"Organization Id"}},{"name":"organization-id","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Organization-Id"}},{"name":"timezone","in":"header","required":false,"schema":{"type":"string","default":"UTC","title":"Timezone"}},{"name":"x-user-id","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"X-User-Id"}},{"name":"x-actor-email","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"X-Actor-Email"}},{"name":"x-request-source","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"X-Request-Source"}},{"name":"x-operation-id","in":"header","required":false,"schema":{"anyOf":[{"type":"string","maxLength":36},{"type":"null"}],"title":"X-Operation-Id"}},{"name":"x-commit-message","in":"header","required":false,"schema":{"anyOf":[{"type":"string","minLength":1},{"type":"null"}],"title":"X-Commit-Message"}},{"name":"x-confirmation-id","in":"header","required":false,"schema":{"anyOf":[{"type":"string","maxLength":36},{"type":"null"}],"title":"X-Confirmation-Id"}},{"name":"x-chat-id","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"X-Chat-Id"}}],"requestBody":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/Body_deprovision_organization_channels_admin_organizations__organization_id__deprovision_channels_post"}}}},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/OrganizationChannelDeprovision"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/admin/organization-parent-link-requests/":{"get":{"tags":["admin","organizations"],"summary":"List Parent Link Requests","operationId":"list_parent_link_requests_admin_organization_parent_link_requests__get","security":[{"APIKeyHeader":[]},{"HTTPBearer":[]}],"parameters":[{"name":"status","in":"query","required":false,"schema":{"anyOf":[{"$ref":"#/components/schemas/OrganizationParentLinkStatus"},{"type":"null"}],"default":"pending","title":"Status"}},{"name":"organization_id","in":"query","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Organization Id"}},{"name":"organization-id","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Organization-Id"}},{"name":"timezone","in":"header","required":false,"schema":{"type":"string","default":"UTC","title":"Timezone"}},{"name":"x-user-id","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"X-User-Id"}},{"name":"x-actor-email","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"X-Actor-Email"}},{"name":"x-request-source","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"X-Request-Source"}},{"name":"x-operation-id","in":"header","required":false,"schema":{"anyOf":[{"type":"string","maxLength":36},{"type":"null"}],"title":"X-Operation-Id"}},{"name":"x-commit-message","in":"header","required":false,"schema":{"anyOf":[{"type":"string","minLength":1},{"type":"null"}],"title":"X-Commit-Message"}},{"name":"x-confirmation-id","in":"header","required":false,"schema":{"anyOf":[{"type":"string","maxLength":36},{"type":"null"}],"title":"X-Confirmation-Id"}},{"name":"x-chat-id","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"X-Chat-Id"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"type":"array","items":{"$ref":"#/components/schemas/OrganizationParentLinkRequestRead"},"title":"Response List Parent Link Requests Admin Organization Parent Link Requests  Get"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/admin/organization-parent-link-requests/{request_id}/approve":{"post":{"tags":["admin","organizations"],"summary":"Approve Parent Link Request","operationId":"approve_parent_link_request_admin_organization_parent_link_requests__request_id__approve_post","security":[{"APIKeyHeader":[]},{"HTTPBearer":[]}],"parameters":[{"name":"request_id","in":"path","required":true,"schema":{"type":"string","title":"Request Id"}},{"name":"organization-id","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Organization-Id"}},{"name":"timezone","in":"header","required":false,"schema":{"type":"string","default":"UTC","title":"Timezone"}},{"name":"x-user-id","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"X-User-Id"}},{"name":"x-actor-email","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"X-Actor-Email"}},{"name":"x-request-source","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"X-Request-Source"}},{"name":"x-operation-id","in":"header","required":false,"schema":{"anyOf":[{"type":"string","maxLength":36},{"type":"null"}],"title":"X-Operation-Id"}},{"name":"x-commit-message","in":"header","required":false,"schema":{"anyOf":[{"type":"string","minLength":1},{"type":"null"}],"title":"X-Commit-Message"}},{"name":"x-confirmation-id","in":"header","required":false,"schema":{"anyOf":[{"type":"string","maxLength":36},{"type":"null"}],"title":"X-Confirmation-Id"}},{"name":"x-chat-id","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"X-Chat-Id"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ParentLinkDecisionRequest"}}}},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/OrganizationParentLinkRequestRead"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/admin/organization-parent-link-requests/{request_id}/reject":{"post":{"tags":["admin","organizations"],"summary":"Reject Parent Link Request","operationId":"reject_parent_link_request_admin_organization_parent_link_requests__request_id__reject_post","security":[{"APIKeyHeader":[]},{"HTTPBearer":[]}],"parameters":[{"name":"request_id","in":"path","required":true,"schema":{"type":"string","title":"Request Id"}},{"name":"organization-id","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Organization-Id"}},{"name":"timezone","in":"header","required":false,"schema":{"type":"string","default":"UTC","title":"Timezone"}},{"name":"x-user-id","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"X-User-Id"}},{"name":"x-actor-email","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"X-Actor-Email"}},{"name":"x-request-source","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"X-Request-Source"}},{"name":"x-operation-id","in":"header","required":false,"schema":{"anyOf":[{"type":"string","maxLength":36},{"type":"null"}],"title":"X-Operation-Id"}},{"name":"x-commit-message","in":"header","required":false,"schema":{"anyOf":[{"type":"string","minLength":1},{"type":"null"}],"title":"X-Commit-Message"}},{"name":"x-confirmation-id","in":"header","required":false,"schema":{"anyOf":[{"type":"string","maxLength":36},{"type":"null"}],"title":"X-Confirmation-Id"}},{"name":"x-chat-id","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"X-Chat-Id"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ParentLinkDecisionRequest"}}}},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/OrganizationParentLinkRequestRead"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/admin/hubspot-companies/{company_id}":{"patch":{"tags":["admin","hubspot-companies"],"summary":"Update Company","description":"Set the named properties, leaving every other property on the company untouched.\n\nAn unknown property name is the failure worth knowing about: HubSpot ignores it rather\nthan erroring, so the call succeeds and the value is simply never stored. The response\nechoes what HubSpot holds afterwards, which is the only way to see that happen.","operationId":"update_company_admin_hubspot_companies__company_id__patch","security":[{"APIKeyHeader":[]},{"HTTPBearer":[]}],"parameters":[{"name":"company_id","in":"path","required":true,"schema":{"type":"string","title":"Company Id"}},{"name":"organization-id","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Organization-Id"}},{"name":"timezone","in":"header","required":false,"schema":{"type":"string","default":"UTC","title":"Timezone"}},{"name":"x-user-id","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"X-User-Id"}},{"name":"x-actor-email","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"X-Actor-Email"}},{"name":"x-request-source","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"X-Request-Source"}},{"name":"x-operation-id","in":"header","required":false,"schema":{"anyOf":[{"type":"string","maxLength":36},{"type":"null"}],"title":"X-Operation-Id"}},{"name":"x-commit-message","in":"header","required":false,"schema":{"anyOf":[{"type":"string","minLength":1},{"type":"null"}],"title":"X-Commit-Message"}},{"name":"x-confirmation-id","in":"header","required":false,"schema":{"anyOf":[{"type":"string","maxLength":36},{"type":"null"}],"title":"X-Confirmation-Id"}},{"name":"x-chat-id","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"X-Chat-Id"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/UpdateCompanyRequest"}}}},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"type":"object","additionalProperties":true,"title":"Response Update Company Admin Hubspot Companies  Company Id  Patch"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/admin/hubspot-schema/properties":{"get":{"tags":["admin","hubspot-schema"],"summary":"List Properties","description":"Properties on one CRM object, optionally filtered by substring of name or label.\n\nFilter on the label when you know what someone called it in the UI, and read back the\n``name`` — that is the value a properties request has to use. ``type`` and\n``field_type`` say whether a value is an owner id, an enum or free text, which decides\nwhether it can be mapped exactly or only guessed at.\n\n``include_options`` adds an enumeration's allowed values. Off by default because a full\nlisting drowns in them, but for an enum they are the whole question: whether the stored\nvalue is something joinable like an email, or a display name that can only be matched\nby guessing.","operationId":"list_properties_admin_hubspot_schema_properties_get","security":[{"APIKeyHeader":[]},{"HTTPBearer":[]}],"parameters":[{"name":"object_type","in":"query","required":false,"schema":{"type":"string","default":"companies","title":"Object Type"}},{"name":"contains","in":"query","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Contains"}},{"name":"include_options","in":"query","required":false,"schema":{"type":"boolean","default":false,"title":"Include Options"}},{"name":"organization-id","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Organization-Id"}},{"name":"timezone","in":"header","required":false,"schema":{"type":"string","default":"UTC","title":"Timezone"}},{"name":"x-user-id","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"X-User-Id"}},{"name":"x-actor-email","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"X-Actor-Email"}},{"name":"x-request-source","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"X-Request-Source"}},{"name":"x-operation-id","in":"header","required":false,"schema":{"anyOf":[{"type":"string","maxLength":36},{"type":"null"}],"title":"X-Operation-Id"}},{"name":"x-commit-message","in":"header","required":false,"schema":{"anyOf":[{"type":"string","minLength":1},{"type":"null"}],"title":"X-Commit-Message"}},{"name":"x-confirmation-id","in":"header","required":false,"schema":{"anyOf":[{"type":"string","maxLength":36},{"type":"null"}],"title":"X-Confirmation-Id"}},{"name":"x-chat-id","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"X-Chat-Id"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"type":"object","additionalProperties":true,"title":"Response List Properties Admin Hubspot Schema Properties Get"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}},"post":{"tags":["admin","hubspot-schema"],"summary":"Create Property","description":"Define a property. The name is what every later request reads it by, and is permanent.\n\n``name`` is constrained to what HubSpot lowercases it to anyway, so that the name a\ncaller believes it created is the name it can read back.","operationId":"create_property_admin_hubspot_schema_properties_post","security":[{"APIKeyHeader":[]},{"HTTPBearer":[]}],"parameters":[{"name":"object_type","in":"query","required":false,"schema":{"type":"string","default":"companies","title":"Object Type"}},{"name":"organization-id","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Organization-Id"}},{"name":"timezone","in":"header","required":false,"schema":{"type":"string","default":"UTC","title":"Timezone"}},{"name":"x-user-id","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"X-User-Id"}},{"name":"x-actor-email","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"X-Actor-Email"}},{"name":"x-request-source","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"X-Request-Source"}},{"name":"x-operation-id","in":"header","required":false,"schema":{"anyOf":[{"type":"string","maxLength":36},{"type":"null"}],"title":"X-Operation-Id"}},{"name":"x-commit-message","in":"header","required":false,"schema":{"anyOf":[{"type":"string","minLength":1},{"type":"null"}],"title":"X-Commit-Message"}},{"name":"x-confirmation-id","in":"header","required":false,"schema":{"anyOf":[{"type":"string","maxLength":36},{"type":"null"}],"title":"X-Confirmation-Id"}},{"name":"x-chat-id","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"X-Chat-Id"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/CreatePropertyRequest"}}}},"responses":{"201":{"description":"Successful Response","content":{"application/json":{"schema":{"type":"object","additionalProperties":true,"title":"Response Create Property Admin Hubspot Schema Properties Post"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/admin/plain-schema/mutations":{"get":{"tags":["admin","plain-schema"],"summary":"List Plain Mutations","description":"Every mutation Plain exposes, optionally filtered by substring.\n\nAnswers \"can this be written at all\" without guessing at an input field name.","operationId":"list_plain_mutations_admin_plain_schema_mutations_get","security":[{"APIKeyHeader":[]},{"HTTPBearer":[]}],"parameters":[{"name":"contains","in":"query","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Contains"}},{"name":"organization-id","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Organization-Id"}},{"name":"timezone","in":"header","required":false,"schema":{"type":"string","default":"UTC","title":"Timezone"}},{"name":"x-user-id","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"X-User-Id"}},{"name":"x-actor-email","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"X-Actor-Email"}},{"name":"x-request-source","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"X-Request-Source"}},{"name":"x-operation-id","in":"header","required":false,"schema":{"anyOf":[{"type":"string","maxLength":36},{"type":"null"}],"title":"X-Operation-Id"}},{"name":"x-commit-message","in":"header","required":false,"schema":{"anyOf":[{"type":"string","minLength":1},{"type":"null"}],"title":"X-Commit-Message"}},{"name":"x-confirmation-id","in":"header","required":false,"schema":{"anyOf":[{"type":"string","maxLength":36},{"type":"null"}],"title":"X-Confirmation-Id"}},{"name":"x-chat-id","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"X-Chat-Id"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"type":"object","additionalProperties":true,"title":"Response List Plain Mutations Admin Plain Schema Mutations Get"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/admin/plain-schema/types/{name}":{"get":{"tags":["admin","plain-schema"],"summary":"Describe Plain Type","description":"One type's live definition — fields, input fields, union members, enum values.","operationId":"describe_plain_type_admin_plain_schema_types__name__get","security":[{"APIKeyHeader":[]},{"HTTPBearer":[]}],"parameters":[{"name":"name","in":"path","required":true,"schema":{"type":"string","title":"Name"}},{"name":"organization-id","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Organization-Id"}},{"name":"timezone","in":"header","required":false,"schema":{"type":"string","default":"UTC","title":"Timezone"}},{"name":"x-user-id","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"X-User-Id"}},{"name":"x-actor-email","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"X-Actor-Email"}},{"name":"x-request-source","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"X-Request-Source"}},{"name":"x-operation-id","in":"header","required":false,"schema":{"anyOf":[{"type":"string","maxLength":36},{"type":"null"}],"title":"X-Operation-Id"}},{"name":"x-commit-message","in":"header","required":false,"schema":{"anyOf":[{"type":"string","minLength":1},{"type":"null"}],"title":"X-Commit-Message"}},{"name":"x-confirmation-id","in":"header","required":false,"schema":{"anyOf":[{"type":"string","maxLength":36},{"type":"null"}],"title":"X-Confirmation-Id"}},{"name":"x-chat-id","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"X-Chat-Id"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"type":"object","additionalProperties":true,"title":"Response Describe Plain Type Admin Plain Schema Types  Name  Get"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/admin/provision/{campaign_type}":{"post":{"tags":["admin","provision"],"summary":"Provision Campaign","description":"Admin/ops: ensure any org's campaign-gated path for campaign_type exists (idempotent).","operationId":"provision_campaign_admin_provision__campaign_type__post","security":[{"APIKeyHeader":[]},{"HTTPBearer":[]}],"parameters":[{"name":"campaign_type","in":"path","required":true,"schema":{"type":"string","title":"Campaign Type"}},{"name":"organization-id","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Organization-Id"}},{"name":"timezone","in":"header","required":false,"schema":{"type":"string","default":"UTC","title":"Timezone"}},{"name":"x-user-id","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"X-User-Id"}},{"name":"x-actor-email","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"X-Actor-Email"}},{"name":"x-request-source","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"X-Request-Source"}},{"name":"x-operation-id","in":"header","required":false,"schema":{"anyOf":[{"type":"string","maxLength":36},{"type":"null"}],"title":"X-Operation-Id"}},{"name":"x-commit-message","in":"header","required":false,"schema":{"anyOf":[{"type":"string","minLength":1},{"type":"null"}],"title":"X-Commit-Message"}},{"name":"x-confirmation-id","in":"header","required":false,"schema":{"anyOf":[{"type":"string","maxLength":36},{"type":"null"}],"title":"X-Confirmation-Id"}},{"name":"x-chat-id","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"X-Chat-Id"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/api__routers__admin__provision__ProvisionRequest"}}}},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"type":"object","additionalProperties":true,"title":"Response Provision Campaign Admin Provision  Campaign Type  Post"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/admin/tenants/without-credentials-initialized":{"get":{"tags":["admin","service-titan-tenant"],"summary":"Tenant Ids Without Credentials Initialized","description":"List tenant IDs that have the app installed but no credentials initialized, with a count.","operationId":"tenant_ids_without_credentials_initialized_admin_tenants_without_credentials_initialized_get","security":[{"APIKeyHeader":[]},{"HTTPBearer":[]}],"parameters":[{"name":"organization-id","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Organization-Id"}},{"name":"timezone","in":"header","required":false,"schema":{"type":"string","default":"UTC","title":"Timezone"}},{"name":"x-user-id","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"X-User-Id"}},{"name":"x-actor-email","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"X-Actor-Email"}},{"name":"x-request-source","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"X-Request-Source"}},{"name":"x-operation-id","in":"header","required":false,"schema":{"anyOf":[{"type":"string","maxLength":36},{"type":"null"}],"title":"X-Operation-Id"}},{"name":"x-commit-message","in":"header","required":false,"schema":{"anyOf":[{"type":"string","minLength":1},{"type":"null"}],"title":"X-Commit-Message"}},{"name":"x-confirmation-id","in":"header","required":false,"schema":{"anyOf":[{"type":"string","maxLength":36},{"type":"null"}],"title":"X-Confirmation-Id"}},{"name":"x-chat-id","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"X-Chat-Id"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ServiceTitanIdsWithoutCredentialsResponse"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/admin/tenants/check-app-installation":{"post":{"tags":["admin","service-titan-tenant"],"summary":"Run Check App Installation","description":"Manually trigger the check-app-installation process for tenants without credentials initialized.","operationId":"run_check_app_installation_admin_tenants_check_app_installation_post","security":[{"APIKeyHeader":[]},{"HTTPBearer":[]}],"parameters":[{"name":"organization-id","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Organization-Id"}},{"name":"timezone","in":"header","required":false,"schema":{"type":"string","default":"UTC","title":"Timezone"}},{"name":"x-user-id","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"X-User-Id"}},{"name":"x-actor-email","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"X-Actor-Email"}},{"name":"x-request-source","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"X-Request-Source"}},{"name":"x-operation-id","in":"header","required":false,"schema":{"anyOf":[{"type":"string","maxLength":36},{"type":"null"}],"title":"X-Operation-Id"}},{"name":"x-commit-message","in":"header","required":false,"schema":{"anyOf":[{"type":"string","minLength":1},{"type":"null"}],"title":"X-Commit-Message"}},{"name":"x-confirmation-id","in":"header","required":false,"schema":{"anyOf":[{"type":"string","maxLength":36},{"type":"null"}],"title":"X-Confirmation-Id"}},{"name":"x-chat-id","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"X-Chat-Id"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/CheckAppInstallationResponse"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/admin/simulations/":{"post":{"tags":["admin","simulations"],"summary":"Create Simulation","description":"Create a simulation engagement for testing agent flows with mock data.","operationId":"create_simulation_admin_simulations__post","security":[{"APIKeyHeader":[]},{"HTTPBearer":[]}],"parameters":[{"name":"organization-id","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Organization-Id"}},{"name":"timezone","in":"header","required":false,"schema":{"type":"string","default":"UTC","title":"Timezone"}},{"name":"x-user-id","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"X-User-Id"}},{"name":"x-actor-email","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"X-Actor-Email"}},{"name":"x-request-source","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"X-Request-Source"}},{"name":"x-operation-id","in":"header","required":false,"schema":{"anyOf":[{"type":"string","maxLength":36},{"type":"null"}],"title":"X-Operation-Id"}},{"name":"x-commit-message","in":"header","required":false,"schema":{"anyOf":[{"type":"string","minLength":1},{"type":"null"}],"title":"X-Commit-Message"}},{"name":"x-confirmation-id","in":"header","required":false,"schema":{"anyOf":[{"type":"string","maxLength":36},{"type":"null"}],"title":"X-Confirmation-Id"}},{"name":"x-chat-id","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"X-Chat-Id"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/CreateSimulationRequest"}}}},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/SimulationResponse"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/admin/simulations/{engagement_id}/owner":{"get":{"tags":["admin","simulations"],"summary":"Get Simulation Owner","description":"Resolve a simulation engagement's owning org, independent of the caller's active org.\n\nDirect links to a simulation carry no/stale org context, but the engagement read\nis org-scoped — so the admin UI needs this to reconcile its active org first.","operationId":"get_simulation_owner_admin_simulations__engagement_id__owner_get","security":[{"APIKeyHeader":[]},{"HTTPBearer":[]}],"parameters":[{"name":"engagement_id","in":"path","required":true,"schema":{"type":"string","title":"Engagement Id"}},{"name":"organization-id","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Organization-Id"}},{"name":"timezone","in":"header","required":false,"schema":{"type":"string","default":"UTC","title":"Timezone"}},{"name":"x-user-id","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"X-User-Id"}},{"name":"x-actor-email","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"X-Actor-Email"}},{"name":"x-request-source","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"X-Request-Source"}},{"name":"x-operation-id","in":"header","required":false,"schema":{"anyOf":[{"type":"string","maxLength":36},{"type":"null"}],"title":"X-Operation-Id"}},{"name":"x-commit-message","in":"header","required":false,"schema":{"anyOf":[{"type":"string","minLength":1},{"type":"null"}],"title":"X-Commit-Message"}},{"name":"x-confirmation-id","in":"header","required":false,"schema":{"anyOf":[{"type":"string","maxLength":36},{"type":"null"}],"title":"X-Confirmation-Id"}},{"name":"x-chat-id","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"X-Chat-Id"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/SimulationOwnerResponse"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/admin/simulations/{engagement_id}/messages":{"get":{"tags":["admin","simulations"],"summary":"Read Simulation Messages","description":"Read the customer/agent message transcript of a simulation engagement, oldest first.\n\n``include_actions`` interleaves the agent's tool calls (ACTION events) with the\nmessages by time — each carries an ``action`` with the resolved ``tool_name`` —\nso the transcript shows what the agent did between turns.","operationId":"read_simulation_messages_admin_simulations__engagement_id__messages_get","security":[{"APIKeyHeader":[]},{"HTTPBearer":[]}],"parameters":[{"name":"engagement_id","in":"path","required":true,"schema":{"type":"string","title":"Engagement Id"}},{"name":"include_actions","in":"query","required":false,"schema":{"type":"boolean","default":false,"title":"Include Actions"}},{"name":"organization-id","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Organization-Id"}},{"name":"timezone","in":"header","required":false,"schema":{"type":"string","default":"UTC","title":"Timezone"}},{"name":"x-user-id","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"X-User-Id"}},{"name":"x-actor-email","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"X-Actor-Email"}},{"name":"x-request-source","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"X-Request-Source"}},{"name":"x-operation-id","in":"header","required":false,"schema":{"anyOf":[{"type":"string","maxLength":36},{"type":"null"}],"title":"X-Operation-Id"}},{"name":"x-commit-message","in":"header","required":false,"schema":{"anyOf":[{"type":"string","minLength":1},{"type":"null"}],"title":"X-Commit-Message"}},{"name":"x-confirmation-id","in":"header","required":false,"schema":{"anyOf":[{"type":"string","maxLength":36},{"type":"null"}],"title":"X-Confirmation-Id"}},{"name":"x-chat-id","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"X-Chat-Id"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"type":"array","items":{"$ref":"#/components/schemas/SimulationMessage"},"title":"Response Read Simulation Messages Admin Simulations  Engagement Id  Messages Get"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}},"post":{"tags":["admin","simulations"],"summary":"Send Simulation Customer Message","description":"Send a message as the customer into a simulation and trigger the next agent turn.","operationId":"send_simulation_customer_message_admin_simulations__engagement_id__messages_post","security":[{"APIKeyHeader":[]},{"HTTPBearer":[]}],"parameters":[{"name":"engagement_id","in":"path","required":true,"schema":{"type":"string","title":"Engagement Id"}},{"name":"organization-id","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Organization-Id"}},{"name":"timezone","in":"header","required":false,"schema":{"type":"string","default":"UTC","title":"Timezone"}},{"name":"x-user-id","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"X-User-Id"}},{"name":"x-actor-email","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"X-Actor-Email"}},{"name":"x-request-source","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"X-Request-Source"}},{"name":"x-operation-id","in":"header","required":false,"schema":{"anyOf":[{"type":"string","maxLength":36},{"type":"null"}],"title":"X-Operation-Id"}},{"name":"x-commit-message","in":"header","required":false,"schema":{"anyOf":[{"type":"string","minLength":1},{"type":"null"}],"title":"X-Commit-Message"}},{"name":"x-confirmation-id","in":"header","required":false,"schema":{"anyOf":[{"type":"string","maxLength":36},{"type":"null"}],"title":"X-Confirmation-Id"}},{"name":"x-chat-id","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"X-Chat-Id"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/SendCustomerMessageRequest"}}}},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/EventPublicWithChildren"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/admin/simulations/{engagement_id}/scenario-transcript":{"get":{"tags":["admin","simulations"],"summary":"Read Scenario Transcript","description":"Backend-agnostic, role-labeled scenario transcript, oldest first.\n\nResolves the run's backend from its scenario meta, so it works for a customer\nrun (INTERACTION events) and an Ask Jenny run (LLM_RESPONSE events) alike —\nunlike ``/messages``, which only reads INTERACTION events and is empty for Jenny.\n\n``include_actions`` interleaves the agent's tool calls (ACTION events, which both\nbackends persist to ``event_action``) with the messages by time — each carrying\nthe resolved tool name — so the transcript shows what the agent did between turns.","operationId":"read_scenario_transcript_admin_simulations__engagement_id__scenario_transcript_get","security":[{"APIKeyHeader":[]},{"HTTPBearer":[]}],"parameters":[{"name":"engagement_id","in":"path","required":true,"schema":{"type":"string","title":"Engagement Id"}},{"name":"include_actions","in":"query","required":false,"schema":{"type":"boolean","default":false,"title":"Include Actions"}},{"name":"organization-id","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Organization-Id"}},{"name":"timezone","in":"header","required":false,"schema":{"type":"string","default":"UTC","title":"Timezone"}},{"name":"x-user-id","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"X-User-Id"}},{"name":"x-actor-email","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"X-Actor-Email"}},{"name":"x-request-source","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"X-Request-Source"}},{"name":"x-operation-id","in":"header","required":false,"schema":{"anyOf":[{"type":"string","maxLength":36},{"type":"null"}],"title":"X-Operation-Id"}},{"name":"x-commit-message","in":"header","required":false,"schema":{"anyOf":[{"type":"string","minLength":1},{"type":"null"}],"title":"X-Commit-Message"}},{"name":"x-confirmation-id","in":"header","required":false,"schema":{"anyOf":[{"type":"string","maxLength":36},{"type":"null"}],"title":"X-Confirmation-Id"}},{"name":"x-chat-id","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"X-Chat-Id"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"type":"array","items":{"$ref":"#/components/schemas/ScenarioTranscriptLine"},"title":"Response Read Scenario Transcript Admin Simulations  Engagement Id  Scenario Transcript Get"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/admin/simulations/runs":{"get":{"tags":["admin","simulations"],"summary":"List Simulation Runs","description":"List simulation runs for an org (both modes), newest first, with optional filters.\n\nReads the typed ``agent.simulation_scenario_run`` table — the queryable store both\nthe scripted and LLM-driven paths project onto — so runs can be listed/filtered\nwithout scanning ``engagement.metadata_json``.","operationId":"list_simulation_runs_admin_simulations_runs_get","security":[{"APIKeyHeader":[]},{"HTTPBearer":[]}],"parameters":[{"name":"organization_id","in":"query","required":true,"schema":{"type":"string","title":"Organization Id"}},{"name":"status","in":"query","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Status"}},{"name":"outcome","in":"query","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Outcome"}},{"name":"agent_v2_id","in":"query","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Agent V2 Id"}},{"name":"mode","in":"query","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Mode"}},{"name":"limit","in":"query","required":false,"schema":{"type":"integer","default":50,"title":"Limit"}},{"name":"organization-id","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Organization-Id"}},{"name":"timezone","in":"header","required":false,"schema":{"type":"string","default":"UTC","title":"Timezone"}},{"name":"x-user-id","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"X-User-Id"}},{"name":"x-actor-email","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"X-Actor-Email"}},{"name":"x-request-source","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"X-Request-Source"}},{"name":"x-operation-id","in":"header","required":false,"schema":{"anyOf":[{"type":"string","maxLength":36},{"type":"null"}],"title":"X-Operation-Id"}},{"name":"x-commit-message","in":"header","required":false,"schema":{"anyOf":[{"type":"string","minLength":1},{"type":"null"}],"title":"X-Commit-Message"}},{"name":"x-confirmation-id","in":"header","required":false,"schema":{"anyOf":[{"type":"string","maxLength":36},{"type":"null"}],"title":"X-Confirmation-Id"}},{"name":"x-chat-id","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"X-Chat-Id"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"type":"array","items":{"$ref":"#/components/schemas/SimulationRunSummary"},"title":"Response List Simulation Runs Admin Simulations Runs Get"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/admin/simulations/{engagement_id}/scheduled-hooks":{"get":{"tags":["admin","simulations"],"summary":"List Simulation Scheduled Hooks","description":"List the pending scheduled hooks queued for a simulation engagement.","operationId":"list_simulation_scheduled_hooks_admin_simulations__engagement_id__scheduled_hooks_get","security":[{"APIKeyHeader":[]},{"HTTPBearer":[]}],"parameters":[{"name":"engagement_id","in":"path","required":true,"schema":{"type":"string","title":"Engagement Id"}},{"name":"organization-id","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Organization-Id"}},{"name":"timezone","in":"header","required":false,"schema":{"type":"string","default":"UTC","title":"Timezone"}},{"name":"x-user-id","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"X-User-Id"}},{"name":"x-actor-email","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"X-Actor-Email"}},{"name":"x-request-source","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"X-Request-Source"}},{"name":"x-operation-id","in":"header","required":false,"schema":{"anyOf":[{"type":"string","maxLength":36},{"type":"null"}],"title":"X-Operation-Id"}},{"name":"x-commit-message","in":"header","required":false,"schema":{"anyOf":[{"type":"string","minLength":1},{"type":"null"}],"title":"X-Commit-Message"}},{"name":"x-confirmation-id","in":"header","required":false,"schema":{"anyOf":[{"type":"string","maxLength":36},{"type":"null"}],"title":"X-Confirmation-Id"}},{"name":"x-chat-id","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"X-Chat-Id"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"type":"array","items":{"$ref":"#/components/schemas/ScheduledHookPublic"},"title":"Response List Simulation Scheduled Hooks Admin Simulations  Engagement Id  Scheduled Hooks Get"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/admin/simulations/{engagement_id}/scheduled-hooks/fire":{"post":{"tags":["admin","simulations"],"summary":"Fire Simulation Scheduled Hook","description":"Fire a pending scheduled hook now (``trigger_id`` omitted fires the soonest).","operationId":"fire_simulation_scheduled_hook_admin_simulations__engagement_id__scheduled_hooks_fire_post","security":[{"APIKeyHeader":[]},{"HTTPBearer":[]}],"parameters":[{"name":"engagement_id","in":"path","required":true,"schema":{"type":"string","title":"Engagement Id"}},{"name":"organization-id","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Organization-Id"}},{"name":"timezone","in":"header","required":false,"schema":{"type":"string","default":"UTC","title":"Timezone"}},{"name":"x-user-id","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"X-User-Id"}},{"name":"x-actor-email","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"X-Actor-Email"}},{"name":"x-request-source","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"X-Request-Source"}},{"name":"x-operation-id","in":"header","required":false,"schema":{"anyOf":[{"type":"string","maxLength":36},{"type":"null"}],"title":"X-Operation-Id"}},{"name":"x-commit-message","in":"header","required":false,"schema":{"anyOf":[{"type":"string","minLength":1},{"type":"null"}],"title":"X-Commit-Message"}},{"name":"x-confirmation-id","in":"header","required":false,"schema":{"anyOf":[{"type":"string","maxLength":36},{"type":"null"}],"title":"X-Confirmation-Id"}},{"name":"x-chat-id","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"X-Chat-Id"}}],"requestBody":{"content":{"application/json":{"schema":{"anyOf":[{"$ref":"#/components/schemas/FireScheduledHookRequest"},{"type":"null"}],"title":"Body"}}}},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ScheduledHookFireResponse"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/admin/simulations/scenario":{"post":{"tags":["admin","simulations"],"summary":"Start Simulation Scenario","description":"Start a fire-and-forget, LLM-driven multi-turn simulation; poll GET /scenario/{id} for status.","operationId":"start_simulation_scenario_admin_simulations_scenario_post","security":[{"APIKeyHeader":[]},{"HTTPBearer":[]}],"parameters":[{"name":"organization-id","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Organization-Id"}},{"name":"timezone","in":"header","required":false,"schema":{"type":"string","default":"UTC","title":"Timezone"}},{"name":"x-user-id","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"X-User-Id"}},{"name":"x-actor-email","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"X-Actor-Email"}},{"name":"x-request-source","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"X-Request-Source"}},{"name":"x-operation-id","in":"header","required":false,"schema":{"anyOf":[{"type":"string","maxLength":36},{"type":"null"}],"title":"X-Operation-Id"}},{"name":"x-commit-message","in":"header","required":false,"schema":{"anyOf":[{"type":"string","minLength":1},{"type":"null"}],"title":"X-Commit-Message"}},{"name":"x-confirmation-id","in":"header","required":false,"schema":{"anyOf":[{"type":"string","maxLength":36},{"type":"null"}],"title":"X-Confirmation-Id"}},{"name":"x-chat-id","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"X-Chat-Id"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ScenarioRequest"}}}},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ScenarioStartResponse"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/admin/simulations/ask-jenny":{"post":{"tags":["admin","simulations"],"summary":"Start Ask Jenny Scenario","description":"Start a fire-and-forget operator-vs-AskJenny scenario; poll GET /scenario/{id} for status.\n\nCreates a simulated ASK_JENNY engagement via agent-service, stamps the scenario\nmeta with ``kind=\"ask_jenny\"`` (selecting the operator persona + Jenny backend)\nand a heartbeat window sized to the per-turn budget, then schedules the loop.","operationId":"start_ask_jenny_scenario_admin_simulations_ask_jenny_post","security":[{"APIKeyHeader":[]},{"HTTPBearer":[]}],"parameters":[{"name":"organization-id","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Organization-Id"}},{"name":"timezone","in":"header","required":false,"schema":{"type":"string","default":"UTC","title":"Timezone"}},{"name":"x-user-id","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"X-User-Id"}},{"name":"x-actor-email","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"X-Actor-Email"}},{"name":"x-request-source","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"X-Request-Source"}},{"name":"x-operation-id","in":"header","required":false,"schema":{"anyOf":[{"type":"string","maxLength":36},{"type":"null"}],"title":"X-Operation-Id"}},{"name":"x-commit-message","in":"header","required":false,"schema":{"anyOf":[{"type":"string","minLength":1},{"type":"null"}],"title":"X-Commit-Message"}},{"name":"x-confirmation-id","in":"header","required":false,"schema":{"anyOf":[{"type":"string","maxLength":36},{"type":"null"}],"title":"X-Confirmation-Id"}},{"name":"x-chat-id","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"X-Chat-Id"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/AskJennyScenarioRequest"}}}},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ScenarioStartResponse"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/admin/simulations/scenario/{engagement_id}":{"get":{"tags":["admin","simulations"],"summary":"Get Simulation Scenario","description":"Status of a scenario run; relaunches the loop if it died (stale heartbeat).","operationId":"get_simulation_scenario_admin_simulations_scenario__engagement_id__get","security":[{"APIKeyHeader":[]},{"HTTPBearer":[]}],"parameters":[{"name":"engagement_id","in":"path","required":true,"schema":{"type":"string","title":"Engagement Id"}},{"name":"organization-id","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Organization-Id"}},{"name":"timezone","in":"header","required":false,"schema":{"type":"string","default":"UTC","title":"Timezone"}},{"name":"x-user-id","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"X-User-Id"}},{"name":"x-actor-email","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"X-Actor-Email"}},{"name":"x-request-source","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"X-Request-Source"}},{"name":"x-operation-id","in":"header","required":false,"schema":{"anyOf":[{"type":"string","maxLength":36},{"type":"null"}],"title":"X-Operation-Id"}},{"name":"x-commit-message","in":"header","required":false,"schema":{"anyOf":[{"type":"string","minLength":1},{"type":"null"}],"title":"X-Commit-Message"}},{"name":"x-confirmation-id","in":"header","required":false,"schema":{"anyOf":[{"type":"string","maxLength":36},{"type":"null"}],"title":"X-Confirmation-Id"}},{"name":"x-chat-id","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"X-Chat-Id"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ScenarioStatusResponse"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/admin/preferences/definitions":{"get":{"tags":["admin","preferences"],"summary":"List Definitions","operationId":"list_definitions_admin_preferences_definitions_get","security":[{"APIKeyHeader":[]},{"HTTPBearer":[]}],"parameters":[{"name":"category","in":"query","required":false,"schema":{"anyOf":[{"$ref":"#/components/schemas/PreferenceCategory"},{"type":"null"}],"title":"Category"}},{"name":"scope","in":"query","required":false,"schema":{"anyOf":[{"$ref":"#/components/schemas/PreferenceScope"},{"type":"null"}],"title":"Scope"}},{"name":"organization-id","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Organization-Id"}},{"name":"timezone","in":"header","required":false,"schema":{"type":"string","default":"UTC","title":"Timezone"}},{"name":"x-user-id","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"X-User-Id"}},{"name":"x-actor-email","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"X-Actor-Email"}},{"name":"x-request-source","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"X-Request-Source"}},{"name":"x-operation-id","in":"header","required":false,"schema":{"anyOf":[{"type":"string","maxLength":36},{"type":"null"}],"title":"X-Operation-Id"}},{"name":"x-commit-message","in":"header","required":false,"schema":{"anyOf":[{"type":"string","minLength":1},{"type":"null"}],"title":"X-Commit-Message"}},{"name":"x-confirmation-id","in":"header","required":false,"schema":{"anyOf":[{"type":"string","maxLength":36},{"type":"null"}],"title":"X-Confirmation-Id"}},{"name":"x-chat-id","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"X-Chat-Id"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"type":"array","items":{"$ref":"#/components/schemas/PreferenceDefinitionResponse"},"title":"Response List Definitions Admin Preferences Definitions Get"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}},"post":{"tags":["admin","preferences"],"summary":"Create Definition","operationId":"create_definition_admin_preferences_definitions_post","security":[{"APIKeyHeader":[]},{"HTTPBearer":[]}],"parameters":[{"name":"organization-id","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Organization-Id"}},{"name":"timezone","in":"header","required":false,"schema":{"type":"string","default":"UTC","title":"Timezone"}},{"name":"x-user-id","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"X-User-Id"}},{"name":"x-actor-email","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"X-Actor-Email"}},{"name":"x-request-source","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"X-Request-Source"}},{"name":"x-operation-id","in":"header","required":false,"schema":{"anyOf":[{"type":"string","maxLength":36},{"type":"null"}],"title":"X-Operation-Id"}},{"name":"x-commit-message","in":"header","required":false,"schema":{"anyOf":[{"type":"string","minLength":1},{"type":"null"}],"title":"X-Commit-Message"}},{"name":"x-confirmation-id","in":"header","required":false,"schema":{"anyOf":[{"type":"string","maxLength":36},{"type":"null"}],"title":"X-Confirmation-Id"}},{"name":"x-chat-id","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"X-Chat-Id"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/PreferenceDefinitionCreate"}}}},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/PreferenceDefinitionResponse"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/admin/preferences/definitions/{definition_id}":{"get":{"tags":["admin","preferences"],"summary":"Get Definition","operationId":"get_definition_admin_preferences_definitions__definition_id__get","security":[{"APIKeyHeader":[]},{"HTTPBearer":[]}],"parameters":[{"name":"definition_id","in":"path","required":true,"schema":{"type":"string","title":"Definition Id"}},{"name":"organization-id","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Organization-Id"}},{"name":"timezone","in":"header","required":false,"schema":{"type":"string","default":"UTC","title":"Timezone"}},{"name":"x-user-id","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"X-User-Id"}},{"name":"x-actor-email","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"X-Actor-Email"}},{"name":"x-request-source","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"X-Request-Source"}},{"name":"x-operation-id","in":"header","required":false,"schema":{"anyOf":[{"type":"string","maxLength":36},{"type":"null"}],"title":"X-Operation-Id"}},{"name":"x-commit-message","in":"header","required":false,"schema":{"anyOf":[{"type":"string","minLength":1},{"type":"null"}],"title":"X-Commit-Message"}},{"name":"x-confirmation-id","in":"header","required":false,"schema":{"anyOf":[{"type":"string","maxLength":36},{"type":"null"}],"title":"X-Confirmation-Id"}},{"name":"x-chat-id","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"X-Chat-Id"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/PreferenceDefinitionResponse"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}},"put":{"tags":["admin","preferences"],"summary":"Update Definition","operationId":"update_definition_admin_preferences_definitions__definition_id__put","security":[{"APIKeyHeader":[]},{"HTTPBearer":[]}],"parameters":[{"name":"definition_id","in":"path","required":true,"schema":{"type":"string","title":"Definition Id"}},{"name":"organization-id","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Organization-Id"}},{"name":"timezone","in":"header","required":false,"schema":{"type":"string","default":"UTC","title":"Timezone"}},{"name":"x-user-id","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"X-User-Id"}},{"name":"x-actor-email","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"X-Actor-Email"}},{"name":"x-request-source","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"X-Request-Source"}},{"name":"x-operation-id","in":"header","required":false,"schema":{"anyOf":[{"type":"string","maxLength":36},{"type":"null"}],"title":"X-Operation-Id"}},{"name":"x-commit-message","in":"header","required":false,"schema":{"anyOf":[{"type":"string","minLength":1},{"type":"null"}],"title":"X-Commit-Message"}},{"name":"x-confirmation-id","in":"header","required":false,"schema":{"anyOf":[{"type":"string","maxLength":36},{"type":"null"}],"title":"X-Confirmation-Id"}},{"name":"x-chat-id","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"X-Chat-Id"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/PreferenceDefinitionUpdate"}}}},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/PreferenceDefinitionResponse"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}},"delete":{"tags":["admin","preferences"],"summary":"Delete Definition","operationId":"delete_definition_admin_preferences_definitions__definition_id__delete","security":[{"APIKeyHeader":[]},{"HTTPBearer":[]}],"parameters":[{"name":"definition_id","in":"path","required":true,"schema":{"type":"string","title":"Definition Id"}},{"name":"organization-id","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Organization-Id"}},{"name":"timezone","in":"header","required":false,"schema":{"type":"string","default":"UTC","title":"Timezone"}},{"name":"x-user-id","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"X-User-Id"}},{"name":"x-actor-email","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"X-Actor-Email"}},{"name":"x-request-source","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"X-Request-Source"}},{"name":"x-operation-id","in":"header","required":false,"schema":{"anyOf":[{"type":"string","maxLength":36},{"type":"null"}],"title":"X-Operation-Id"}},{"name":"x-commit-message","in":"header","required":false,"schema":{"anyOf":[{"type":"string","minLength":1},{"type":"null"}],"title":"X-Commit-Message"}},{"name":"x-confirmation-id","in":"header","required":false,"schema":{"anyOf":[{"type":"string","maxLength":36},{"type":"null"}],"title":"X-Confirmation-Id"}},{"name":"x-chat-id","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"X-Chat-Id"}}],"responses":{"204":{"description":"Successful Response"},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/admin/preferences/organizations/{organization_id}":{"get":{"tags":["admin","preferences"],"summary":"Get Org Preferences","operationId":"get_org_preferences_admin_preferences_organizations__organization_id__get","security":[{"APIKeyHeader":[]},{"HTTPBearer":[]}],"parameters":[{"name":"organization_id","in":"path","required":true,"schema":{"type":"string","title":"Organization Id"}},{"name":"organization-id","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Organization-Id"}},{"name":"timezone","in":"header","required":false,"schema":{"type":"string","default":"UTC","title":"Timezone"}},{"name":"x-user-id","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"X-User-Id"}},{"name":"x-actor-email","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"X-Actor-Email"}},{"name":"x-request-source","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"X-Request-Source"}},{"name":"x-operation-id","in":"header","required":false,"schema":{"anyOf":[{"type":"string","maxLength":36},{"type":"null"}],"title":"X-Operation-Id"}},{"name":"x-commit-message","in":"header","required":false,"schema":{"anyOf":[{"type":"string","minLength":1},{"type":"null"}],"title":"X-Commit-Message"}},{"name":"x-confirmation-id","in":"header","required":false,"schema":{"anyOf":[{"type":"string","maxLength":36},{"type":"null"}],"title":"X-Confirmation-Id"}},{"name":"x-chat-id","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"X-Chat-Id"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ResolvedPreferencesResponse"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}},"put":{"tags":["admin","preferences"],"summary":"Upsert Org Preferences","description":"Set org preference overrides, grading what the proposed values do to the org.","operationId":"upsert_org_preferences_admin_preferences_organizations__organization_id__put","security":[{"APIKeyHeader":[]},{"HTTPBearer":[]}],"parameters":[{"name":"organization_id","in":"path","required":true,"schema":{"type":"string","title":"Organization Id"}},{"name":"organization-id","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Organization-Id"}},{"name":"timezone","in":"header","required":false,"schema":{"type":"string","default":"UTC","title":"Timezone"}},{"name":"x-user-id","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"X-User-Id"}},{"name":"x-actor-email","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"X-Actor-Email"}},{"name":"x-request-source","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"X-Request-Source"}},{"name":"x-operation-id","in":"header","required":false,"schema":{"anyOf":[{"type":"string","maxLength":36},{"type":"null"}],"title":"X-Operation-Id"}},{"name":"x-commit-message","in":"header","required":false,"schema":{"anyOf":[{"type":"string","minLength":1},{"type":"null"}],"title":"X-Commit-Message"}},{"name":"x-confirmation-id","in":"header","required":false,"schema":{"anyOf":[{"type":"string","maxLength":36},{"type":"null"}],"title":"X-Confirmation-Id"}},{"name":"x-chat-id","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"X-Chat-Id"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/PreferenceBulkUpsertRequest"}}}},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"type":"object","additionalProperties":true,"title":"Response Upsert Org Preferences Admin Preferences Organizations  Organization Id  Put"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/admin/preferences/organizations/{organization_id}/preflight":{"post":{"tags":["admin","preferences"],"summary":"Preflight Org Preferences","description":"Grade the ``PUT`` with this body without saving.","operationId":"preflight_org_preferences_admin_preferences_organizations__organization_id__preflight_post","security":[{"APIKeyHeader":[]},{"HTTPBearer":[]}],"parameters":[{"name":"organization_id","in":"path","required":true,"schema":{"type":"string","title":"Organization Id"}},{"name":"organization-id","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Organization-Id"}},{"name":"timezone","in":"header","required":false,"schema":{"type":"string","default":"UTC","title":"Timezone"}},{"name":"x-user-id","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"X-User-Id"}},{"name":"x-actor-email","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"X-Actor-Email"}},{"name":"x-request-source","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"X-Request-Source"}},{"name":"x-operation-id","in":"header","required":false,"schema":{"anyOf":[{"type":"string","maxLength":36},{"type":"null"}],"title":"X-Operation-Id"}},{"name":"x-commit-message","in":"header","required":false,"schema":{"anyOf":[{"type":"string","minLength":1},{"type":"null"}],"title":"X-Commit-Message"}},{"name":"x-confirmation-id","in":"header","required":false,"schema":{"anyOf":[{"type":"string","maxLength":36},{"type":"null"}],"title":"X-Confirmation-Id"}},{"name":"x-chat-id","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"X-Chat-Id"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/PreferenceBulkUpsertRequest"}}}},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"type":"object","additionalProperties":true,"title":"Response Preflight Org Preferences Admin Preferences Organizations  Organization Id  Preflight Post"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/admin/preferences/organizations/{organization_id}/campaign-attribution":{"get":{"tags":["admin","preferences"],"summary":"Get Campaign Attribution","description":"The booking campaign decision as the editor's controls.\n\n``editable`` false means the document says something these controls do not show — a branch on an\nattribute the editor has no row for — and a write would drop it. The editor renders read-only.","operationId":"get_campaign_attribution_admin_preferences_organizations__organization_id__campaign_attribution_get","security":[{"APIKeyHeader":[]},{"HTTPBearer":[]}],"parameters":[{"name":"organization_id","in":"path","required":true,"schema":{"type":"string","title":"Organization Id"}},{"name":"organization-id","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Organization-Id"}},{"name":"timezone","in":"header","required":false,"schema":{"type":"string","default":"UTC","title":"Timezone"}},{"name":"x-user-id","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"X-User-Id"}},{"name":"x-actor-email","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"X-Actor-Email"}},{"name":"x-request-source","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"X-Request-Source"}},{"name":"x-operation-id","in":"header","required":false,"schema":{"anyOf":[{"type":"string","maxLength":36},{"type":"null"}],"title":"X-Operation-Id"}},{"name":"x-commit-message","in":"header","required":false,"schema":{"anyOf":[{"type":"string","minLength":1},{"type":"null"}],"title":"X-Commit-Message"}},{"name":"x-confirmation-id","in":"header","required":false,"schema":{"anyOf":[{"type":"string","maxLength":36},{"type":"null"}],"title":"X-Confirmation-Id"}},{"name":"x-chat-id","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"X-Chat-Id"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"type":"object","additionalProperties":true,"title":"Response Get Campaign Attribution Admin Preferences Organizations  Organization Id  Campaign Attribution Get"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}},"put":{"tags":["admin","preferences"],"summary":"Set Campaign Attribution","description":"Rewrite the booking campaign decision from the editor's controls.\n\nRefused when the stored document is not editable: the rewrite is generated from these controls\nalone, so a branch they cannot express would be dropped and that organization's attribution\nsilently reassigned. Those documents are edited through the decision-document API instead.","operationId":"set_campaign_attribution_admin_preferences_organizations__organization_id__campaign_attribution_put","security":[{"APIKeyHeader":[]},{"HTTPBearer":[]}],"parameters":[{"name":"organization_id","in":"path","required":true,"schema":{"type":"string","title":"Organization Id"}},{"name":"organization-id","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Organization-Id"}},{"name":"timezone","in":"header","required":false,"schema":{"type":"string","default":"UTC","title":"Timezone"}},{"name":"x-user-id","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"X-User-Id"}},{"name":"x-actor-email","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"X-Actor-Email"}},{"name":"x-request-source","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"X-Request-Source"}},{"name":"x-operation-id","in":"header","required":false,"schema":{"anyOf":[{"type":"string","maxLength":36},{"type":"null"}],"title":"X-Operation-Id"}},{"name":"x-commit-message","in":"header","required":false,"schema":{"anyOf":[{"type":"string","minLength":1},{"type":"null"}],"title":"X-Commit-Message"}},{"name":"x-confirmation-id","in":"header","required":false,"schema":{"anyOf":[{"type":"string","maxLength":36},{"type":"null"}],"title":"X-Confirmation-Id"}},{"name":"x-chat-id","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"X-Chat-Id"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/CampaignAttributionRequest"}}}},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"type":"object","additionalProperties":true,"title":"Response Set Campaign Attribution Admin Preferences Organizations  Organization Id  Campaign Attribution Put"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/admin/preferences/organizations/{organization_id}/{definition_key}":{"delete":{"tags":["admin","preferences"],"summary":"Delete Org Preference","description":"Drop an org override, grading what reverting to the default does to the org.\n\nReturns a body rather than 204 so the report has somewhere to go. Dropping\nan override is an org settings edit like any other, and the default it\nreverts to is as capable of blocking as the value being removed — so it is\ngraded like any other.","operationId":"delete_org_preference_admin_preferences_organizations__organization_id___definition_key__delete","security":[{"APIKeyHeader":[]},{"HTTPBearer":[]}],"parameters":[{"name":"organization_id","in":"path","required":true,"schema":{"type":"string","title":"Organization Id"}},{"name":"definition_key","in":"path","required":true,"schema":{"type":"string","title":"Definition Key"}},{"name":"organization-id","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Organization-Id"}},{"name":"timezone","in":"header","required":false,"schema":{"type":"string","default":"UTC","title":"Timezone"}},{"name":"x-user-id","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"X-User-Id"}},{"name":"x-actor-email","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"X-Actor-Email"}},{"name":"x-request-source","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"X-Request-Source"}},{"name":"x-operation-id","in":"header","required":false,"schema":{"anyOf":[{"type":"string","maxLength":36},{"type":"null"}],"title":"X-Operation-Id"}},{"name":"x-commit-message","in":"header","required":false,"schema":{"anyOf":[{"type":"string","minLength":1},{"type":"null"}],"title":"X-Commit-Message"}},{"name":"x-confirmation-id","in":"header","required":false,"schema":{"anyOf":[{"type":"string","maxLength":36},{"type":"null"}],"title":"X-Confirmation-Id"}},{"name":"x-chat-id","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"X-Chat-Id"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"type":"object","additionalProperties":true,"title":"Response Delete Org Preference Admin Preferences Organizations  Organization Id   Definition Key  Delete"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/admin/preferences/organizations/{organization_id}/entries/{definition_key}":{"get":{"tags":["admin","preferences"],"summary":"List Org Preference Entries","description":"The entries of one list preference: the definition's defaults merged with the organization's rows,\nplus rows that start later when ``include_scheduled`` is set.","operationId":"list_org_preference_entries_admin_preferences_organizations__organization_id__entries__definition_key__get","security":[{"APIKeyHeader":[]},{"HTTPBearer":[]}],"parameters":[{"name":"organization_id","in":"path","required":true,"schema":{"type":"string","title":"Organization Id"}},{"name":"definition_key","in":"path","required":true,"schema":{"type":"string","title":"Definition Key"}},{"name":"include_scheduled","in":"query","required":false,"schema":{"type":"boolean","default":false,"title":"Include Scheduled"}},{"name":"organization-id","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Organization-Id"}},{"name":"timezone","in":"header","required":false,"schema":{"type":"string","default":"UTC","title":"Timezone"}},{"name":"x-user-id","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"X-User-Id"}},{"name":"x-actor-email","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"X-Actor-Email"}},{"name":"x-request-source","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"X-Request-Source"}},{"name":"x-operation-id","in":"header","required":false,"schema":{"anyOf":[{"type":"string","maxLength":36},{"type":"null"}],"title":"X-Operation-Id"}},{"name":"x-commit-message","in":"header","required":false,"schema":{"anyOf":[{"type":"string","minLength":1},{"type":"null"}],"title":"X-Commit-Message"}},{"name":"x-confirmation-id","in":"header","required":false,"schema":{"anyOf":[{"type":"string","maxLength":36},{"type":"null"}],"title":"X-Confirmation-Id"}},{"name":"x-chat-id","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"X-Chat-Id"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/PreferenceEntriesResponse"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/admin/preferences/organizations/{organization_id}/entries/{definition_key}/{entry_key}":{"put":{"tags":["admin","preferences"],"summary":"Upsert Org Preference Entry","description":"Add or change one entry of a list preference, grading the list the write produces.\n\nA key matching a default entry overrides it; any other key adds one.","operationId":"upsert_org_preference_entry_admin_preferences_organizations__organization_id__entries__definition_key___entry_key__put","security":[{"APIKeyHeader":[]},{"HTTPBearer":[]}],"parameters":[{"name":"organization_id","in":"path","required":true,"schema":{"type":"string","title":"Organization Id"}},{"name":"definition_key","in":"path","required":true,"schema":{"type":"string","title":"Definition Key"}},{"name":"entry_key","in":"path","required":true,"schema":{"type":"string","maxLength":128,"title":"Entry Key"}},{"name":"organization-id","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Organization-Id"}},{"name":"timezone","in":"header","required":false,"schema":{"type":"string","default":"UTC","title":"Timezone"}},{"name":"x-user-id","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"X-User-Id"}},{"name":"x-actor-email","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"X-Actor-Email"}},{"name":"x-request-source","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"X-Request-Source"}},{"name":"x-operation-id","in":"header","required":false,"schema":{"anyOf":[{"type":"string","maxLength":36},{"type":"null"}],"title":"X-Operation-Id"}},{"name":"x-commit-message","in":"header","required":false,"schema":{"anyOf":[{"type":"string","minLength":1},{"type":"null"}],"title":"X-Commit-Message"}},{"name":"x-confirmation-id","in":"header","required":false,"schema":{"anyOf":[{"type":"string","maxLength":36},{"type":"null"}],"title":"X-Confirmation-Id"}},{"name":"x-chat-id","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"X-Chat-Id"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/PreferenceEntryWrite"}}}},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"type":"object","additionalProperties":true,"title":"Response Upsert Org Preference Entry Admin Preferences Organizations  Organization Id  Entries  Definition Key   Entry Key  Put"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}},"delete":{"tags":["admin","preferences"],"summary":"Delete Org Preference Entry","description":"Remove the organization's row for one entry. 404 when there is none.","operationId":"delete_org_preference_entry_admin_preferences_organizations__organization_id__entries__definition_key___entry_key__delete","security":[{"APIKeyHeader":[]},{"HTTPBearer":[]}],"parameters":[{"name":"organization_id","in":"path","required":true,"schema":{"type":"string","title":"Organization Id"}},{"name":"definition_key","in":"path","required":true,"schema":{"type":"string","title":"Definition Key"}},{"name":"entry_key","in":"path","required":true,"schema":{"type":"string","title":"Entry Key"}},{"name":"organization-id","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Organization-Id"}},{"name":"timezone","in":"header","required":false,"schema":{"type":"string","default":"UTC","title":"Timezone"}},{"name":"x-user-id","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"X-User-Id"}},{"name":"x-actor-email","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"X-Actor-Email"}},{"name":"x-request-source","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"X-Request-Source"}},{"name":"x-operation-id","in":"header","required":false,"schema":{"anyOf":[{"type":"string","maxLength":36},{"type":"null"}],"title":"X-Operation-Id"}},{"name":"x-commit-message","in":"header","required":false,"schema":{"anyOf":[{"type":"string","minLength":1},{"type":"null"}],"title":"X-Commit-Message"}},{"name":"x-confirmation-id","in":"header","required":false,"schema":{"anyOf":[{"type":"string","maxLength":36},{"type":"null"}],"title":"X-Confirmation-Id"}},{"name":"x-chat-id","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"X-Chat-Id"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"type":"object","additionalProperties":true,"title":"Response Delete Org Preference Entry Admin Preferences Organizations  Organization Id  Entries  Definition Key   Entry Key  Delete"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/admin/preferences/organizations/{organization_id}/entries/{definition_key}/{entry_key}/reset":{"post":{"tags":["admin","preferences"],"summary":"Reset Org Preference Entry","description":"Drop the organization's override so the definition's default entry shows through.","operationId":"reset_org_preference_entry_admin_preferences_organizations__organization_id__entries__definition_key___entry_key__reset_post","security":[{"APIKeyHeader":[]},{"HTTPBearer":[]}],"parameters":[{"name":"organization_id","in":"path","required":true,"schema":{"type":"string","title":"Organization Id"}},{"name":"definition_key","in":"path","required":true,"schema":{"type":"string","title":"Definition Key"}},{"name":"entry_key","in":"path","required":true,"schema":{"type":"string","title":"Entry Key"}},{"name":"organization-id","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Organization-Id"}},{"name":"timezone","in":"header","required":false,"schema":{"type":"string","default":"UTC","title":"Timezone"}},{"name":"x-user-id","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"X-User-Id"}},{"name":"x-actor-email","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"X-Actor-Email"}},{"name":"x-request-source","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"X-Request-Source"}},{"name":"x-operation-id","in":"header","required":false,"schema":{"anyOf":[{"type":"string","maxLength":36},{"type":"null"}],"title":"X-Operation-Id"}},{"name":"x-commit-message","in":"header","required":false,"schema":{"anyOf":[{"type":"string","minLength":1},{"type":"null"}],"title":"X-Commit-Message"}},{"name":"x-confirmation-id","in":"header","required":false,"schema":{"anyOf":[{"type":"string","maxLength":36},{"type":"null"}],"title":"X-Confirmation-Id"}},{"name":"x-chat-id","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"X-Chat-Id"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"type":"object","additionalProperties":true,"title":"Response Reset Org Preference Entry Admin Preferences Organizations  Organization Id  Entries  Definition Key   Entry Key  Reset Post"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/admin/preferences/organizations/{organization_id}/entries/{definition_key}/{entry_key}/preflight":{"post":{"tags":["admin","preferences"],"summary":"Preflight Org Preference Entry","description":"Grade writing or removing one entry without saving.","operationId":"preflight_org_preference_entry_admin_preferences_organizations__organization_id__entries__definition_key___entry_key__preflight_post","security":[{"APIKeyHeader":[]},{"HTTPBearer":[]}],"parameters":[{"name":"organization_id","in":"path","required":true,"schema":{"type":"string","title":"Organization Id"}},{"name":"definition_key","in":"path","required":true,"schema":{"type":"string","title":"Definition Key"}},{"name":"entry_key","in":"path","required":true,"schema":{"type":"string","title":"Entry Key"}},{"name":"organization-id","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Organization-Id"}},{"name":"timezone","in":"header","required":false,"schema":{"type":"string","default":"UTC","title":"Timezone"}},{"name":"x-user-id","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"X-User-Id"}},{"name":"x-actor-email","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"X-Actor-Email"}},{"name":"x-request-source","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"X-Request-Source"}},{"name":"x-operation-id","in":"header","required":false,"schema":{"anyOf":[{"type":"string","maxLength":36},{"type":"null"}],"title":"X-Operation-Id"}},{"name":"x-commit-message","in":"header","required":false,"schema":{"anyOf":[{"type":"string","minLength":1},{"type":"null"}],"title":"X-Commit-Message"}},{"name":"x-confirmation-id","in":"header","required":false,"schema":{"anyOf":[{"type":"string","maxLength":36},{"type":"null"}],"title":"X-Confirmation-Id"}},{"name":"x-chat-id","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"X-Chat-Id"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/EntryPreflightRequest"}}}},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"type":"object","additionalProperties":true,"title":"Response Preflight Org Preference Entry Admin Preferences Organizations  Organization Id  Entries  Definition Key   Entry Key  Preflight Post"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/admin/preferences/decisions/{preference_key}":{"get":{"tags":["admin","preferences"],"summary":"Get Decision Catalog","description":"Everything a document for this preference may name: attributes with their types and legal\noperators, plus the outputs it may write.","operationId":"get_decision_catalog_admin_preferences_decisions__preference_key__get","security":[{"APIKeyHeader":[]},{"HTTPBearer":[]}],"parameters":[{"name":"preference_key","in":"path","required":true,"schema":{"type":"string","title":"Preference Key"}},{"name":"organization-id","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Organization-Id"}},{"name":"timezone","in":"header","required":false,"schema":{"type":"string","default":"UTC","title":"Timezone"}},{"name":"x-user-id","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"X-User-Id"}},{"name":"x-actor-email","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"X-Actor-Email"}},{"name":"x-request-source","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"X-Request-Source"}},{"name":"x-operation-id","in":"header","required":false,"schema":{"anyOf":[{"type":"string","maxLength":36},{"type":"null"}],"title":"X-Operation-Id"}},{"name":"x-commit-message","in":"header","required":false,"schema":{"anyOf":[{"type":"string","minLength":1},{"type":"null"}],"title":"X-Commit-Message"}},{"name":"x-confirmation-id","in":"header","required":false,"schema":{"anyOf":[{"type":"string","maxLength":36},{"type":"null"}],"title":"X-Confirmation-Id"}},{"name":"x-chat-id","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"X-Chat-Id"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"type":"object","additionalProperties":true,"title":"Response Get Decision Catalog Admin Preferences Decisions  Preference Key  Get"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/admin/preferences/organizations/{organization_id}/decisions/{preference_key}/preview":{"post":{"tags":["admin","preferences"],"summary":"Preview Decision","description":"Evaluate a draft document against real engagements without storing it.\n\nEach engagement reports what the organization resolves today and what the draft would resolve,\nwith ServiceTitan campaign names beside the ids: a document names campaigns by id, so an id alone\ndoes not tell an author whether it is the right one.","operationId":"preview_decision_admin_preferences_organizations__organization_id__decisions__preference_key__preview_post","security":[{"APIKeyHeader":[]},{"HTTPBearer":[]}],"parameters":[{"name":"organization_id","in":"path","required":true,"schema":{"type":"string","title":"Organization Id"}},{"name":"preference_key","in":"path","required":true,"schema":{"type":"string","title":"Preference Key"}},{"name":"organization-id","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Organization-Id"}},{"name":"timezone","in":"header","required":false,"schema":{"type":"string","default":"UTC","title":"Timezone"}},{"name":"x-user-id","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"X-User-Id"}},{"name":"x-actor-email","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"X-Actor-Email"}},{"name":"x-request-source","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"X-Request-Source"}},{"name":"x-operation-id","in":"header","required":false,"schema":{"anyOf":[{"type":"string","maxLength":36},{"type":"null"}],"title":"X-Operation-Id"}},{"name":"x-commit-message","in":"header","required":false,"schema":{"anyOf":[{"type":"string","minLength":1},{"type":"null"}],"title":"X-Commit-Message"}},{"name":"x-confirmation-id","in":"header","required":false,"schema":{"anyOf":[{"type":"string","maxLength":36},{"type":"null"}],"title":"X-Confirmation-Id"}},{"name":"x-chat-id","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"X-Chat-Id"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/DecisionPreviewRequest"}}}},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"type":"object","additionalProperties":true,"title":"Response Preview Decision Admin Preferences Organizations  Organization Id  Decisions  Preference Key  Preview Post"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/admin/user-preferences/definitions":{"get":{"tags":["admin","user-preferences"],"summary":"List User Preference Definitions","operationId":"list_user_preference_definitions_admin_user_preferences_definitions_get","security":[{"APIKeyHeader":[]},{"HTTPBearer":[]}],"parameters":[{"name":"category","in":"query","required":false,"schema":{"anyOf":[{"$ref":"#/components/schemas/PreferenceCategory"},{"type":"null"}],"title":"Category"}},{"name":"organization-id","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Organization-Id"}},{"name":"timezone","in":"header","required":false,"schema":{"type":"string","default":"UTC","title":"Timezone"}},{"name":"x-user-id","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"X-User-Id"}},{"name":"x-actor-email","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"X-Actor-Email"}},{"name":"x-request-source","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"X-Request-Source"}},{"name":"x-operation-id","in":"header","required":false,"schema":{"anyOf":[{"type":"string","maxLength":36},{"type":"null"}],"title":"X-Operation-Id"}},{"name":"x-commit-message","in":"header","required":false,"schema":{"anyOf":[{"type":"string","minLength":1},{"type":"null"}],"title":"X-Commit-Message"}},{"name":"x-confirmation-id","in":"header","required":false,"schema":{"anyOf":[{"type":"string","maxLength":36},{"type":"null"}],"title":"X-Confirmation-Id"}},{"name":"x-chat-id","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"X-Chat-Id"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"type":"array","items":{"$ref":"#/components/schemas/UserPreferenceDefinitionResponse"},"title":"Response List User Preference Definitions Admin User Preferences Definitions Get"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}},"post":{"tags":["admin","user-preferences"],"summary":"Create User Preference Definition","operationId":"create_user_preference_definition_admin_user_preferences_definitions_post","security":[{"APIKeyHeader":[]},{"HTTPBearer":[]}],"parameters":[{"name":"organization-id","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Organization-Id"}},{"name":"timezone","in":"header","required":false,"schema":{"type":"string","default":"UTC","title":"Timezone"}},{"name":"x-user-id","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"X-User-Id"}},{"name":"x-actor-email","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"X-Actor-Email"}},{"name":"x-request-source","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"X-Request-Source"}},{"name":"x-operation-id","in":"header","required":false,"schema":{"anyOf":[{"type":"string","maxLength":36},{"type":"null"}],"title":"X-Operation-Id"}},{"name":"x-commit-message","in":"header","required":false,"schema":{"anyOf":[{"type":"string","minLength":1},{"type":"null"}],"title":"X-Commit-Message"}},{"name":"x-confirmation-id","in":"header","required":false,"schema":{"anyOf":[{"type":"string","maxLength":36},{"type":"null"}],"title":"X-Confirmation-Id"}},{"name":"x-chat-id","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"X-Chat-Id"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/UserPreferenceDefinitionCreate"}}}},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/UserPreferenceDefinitionResponse"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/admin/user-preferences/definitions/{definition_id}":{"put":{"tags":["admin","user-preferences"],"summary":"Update User Preference Definition","operationId":"update_user_preference_definition_admin_user_preferences_definitions__definition_id__put","security":[{"APIKeyHeader":[]},{"HTTPBearer":[]}],"parameters":[{"name":"definition_id","in":"path","required":true,"schema":{"type":"string","title":"Definition Id"}},{"name":"organization-id","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Organization-Id"}},{"name":"timezone","in":"header","required":false,"schema":{"type":"string","default":"UTC","title":"Timezone"}},{"name":"x-user-id","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"X-User-Id"}},{"name":"x-actor-email","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"X-Actor-Email"}},{"name":"x-request-source","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"X-Request-Source"}},{"name":"x-operation-id","in":"header","required":false,"schema":{"anyOf":[{"type":"string","maxLength":36},{"type":"null"}],"title":"X-Operation-Id"}},{"name":"x-commit-message","in":"header","required":false,"schema":{"anyOf":[{"type":"string","minLength":1},{"type":"null"}],"title":"X-Commit-Message"}},{"name":"x-confirmation-id","in":"header","required":false,"schema":{"anyOf":[{"type":"string","maxLength":36},{"type":"null"}],"title":"X-Confirmation-Id"}},{"name":"x-chat-id","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"X-Chat-Id"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/UserPreferenceDefinitionUpdate"}}}},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/UserPreferenceDefinitionResponse"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}},"delete":{"tags":["admin","user-preferences"],"summary":"Delete User Preference Definition","operationId":"delete_user_preference_definition_admin_user_preferences_definitions__definition_id__delete","security":[{"APIKeyHeader":[]},{"HTTPBearer":[]}],"parameters":[{"name":"definition_id","in":"path","required":true,"schema":{"type":"string","title":"Definition Id"}},{"name":"organization-id","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Organization-Id"}},{"name":"timezone","in":"header","required":false,"schema":{"type":"string","default":"UTC","title":"Timezone"}},{"name":"x-user-id","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"X-User-Id"}},{"name":"x-actor-email","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"X-Actor-Email"}},{"name":"x-request-source","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"X-Request-Source"}},{"name":"x-operation-id","in":"header","required":false,"schema":{"anyOf":[{"type":"string","maxLength":36},{"type":"null"}],"title":"X-Operation-Id"}},{"name":"x-commit-message","in":"header","required":false,"schema":{"anyOf":[{"type":"string","minLength":1},{"type":"null"}],"title":"X-Commit-Message"}},{"name":"x-confirmation-id","in":"header","required":false,"schema":{"anyOf":[{"type":"string","maxLength":36},{"type":"null"}],"title":"X-Confirmation-Id"}},{"name":"x-chat-id","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"X-Chat-Id"}}],"responses":{"204":{"description":"Successful Response"},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/admin/user-preferences/users/{user_id}":{"get":{"tags":["admin","user-preferences"],"summary":"Get User Preferences","operationId":"get_user_preferences_admin_user_preferences_users__user_id__get","security":[{"APIKeyHeader":[]},{"HTTPBearer":[]}],"parameters":[{"name":"user_id","in":"path","required":true,"schema":{"type":"string","title":"User Id"}},{"name":"organization_id","in":"query","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Organization Id"}},{"name":"organization-id","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Organization-Id"}},{"name":"timezone","in":"header","required":false,"schema":{"type":"string","default":"UTC","title":"Timezone"}},{"name":"x-user-id","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"X-User-Id"}},{"name":"x-actor-email","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"X-Actor-Email"}},{"name":"x-request-source","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"X-Request-Source"}},{"name":"x-operation-id","in":"header","required":false,"schema":{"anyOf":[{"type":"string","maxLength":36},{"type":"null"}],"title":"X-Operation-Id"}},{"name":"x-commit-message","in":"header","required":false,"schema":{"anyOf":[{"type":"string","minLength":1},{"type":"null"}],"title":"X-Commit-Message"}},{"name":"x-confirmation-id","in":"header","required":false,"schema":{"anyOf":[{"type":"string","maxLength":36},{"type":"null"}],"title":"X-Confirmation-Id"}},{"name":"x-chat-id","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"X-Chat-Id"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ResolvedUserPreferencesResponse"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}},"put":{"tags":["admin","user-preferences"],"summary":"Upsert User Preferences For User","operationId":"upsert_user_preferences_for_user_admin_user_preferences_users__user_id__put","security":[{"APIKeyHeader":[]},{"HTTPBearer":[]}],"parameters":[{"name":"user_id","in":"path","required":true,"schema":{"type":"string","title":"User Id"}},{"name":"organization_id","in":"query","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Organization Id"}},{"name":"organization-id","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Organization-Id"}},{"name":"timezone","in":"header","required":false,"schema":{"type":"string","default":"UTC","title":"Timezone"}},{"name":"x-user-id","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"X-User-Id"}},{"name":"x-actor-email","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"X-Actor-Email"}},{"name":"x-request-source","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"X-Request-Source"}},{"name":"x-operation-id","in":"header","required":false,"schema":{"anyOf":[{"type":"string","maxLength":36},{"type":"null"}],"title":"X-Operation-Id"}},{"name":"x-commit-message","in":"header","required":false,"schema":{"anyOf":[{"type":"string","minLength":1},{"type":"null"}],"title":"X-Commit-Message"}},{"name":"x-confirmation-id","in":"header","required":false,"schema":{"anyOf":[{"type":"string","maxLength":36},{"type":"null"}],"title":"X-Confirmation-Id"}},{"name":"x-chat-id","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"X-Chat-Id"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/UserPreferenceBulkUpsertRequest"}}}},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"type":"object","additionalProperties":{"type":"boolean"},"title":"Response Upsert User Preferences For User Admin User Preferences Users  User Id  Put"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/admin/user-preferences/users/{user_id}/{definition_key}":{"delete":{"tags":["admin","user-preferences"],"summary":"Delete User Preference Value","operationId":"delete_user_preference_value_admin_user_preferences_users__user_id___definition_key__delete","security":[{"APIKeyHeader":[]},{"HTTPBearer":[]}],"parameters":[{"name":"user_id","in":"path","required":true,"schema":{"type":"string","title":"User Id"}},{"name":"definition_key","in":"path","required":true,"schema":{"type":"string","title":"Definition Key"}},{"name":"organization_id","in":"query","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Organization Id"}},{"name":"organization-id","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Organization-Id"}},{"name":"timezone","in":"header","required":false,"schema":{"type":"string","default":"UTC","title":"Timezone"}},{"name":"x-user-id","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"X-User-Id"}},{"name":"x-actor-email","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"X-Actor-Email"}},{"name":"x-request-source","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"X-Request-Source"}},{"name":"x-operation-id","in":"header","required":false,"schema":{"anyOf":[{"type":"string","maxLength":36},{"type":"null"}],"title":"X-Operation-Id"}},{"name":"x-commit-message","in":"header","required":false,"schema":{"anyOf":[{"type":"string","minLength":1},{"type":"null"}],"title":"X-Commit-Message"}},{"name":"x-confirmation-id","in":"header","required":false,"schema":{"anyOf":[{"type":"string","maxLength":36},{"type":"null"}],"title":"X-Confirmation-Id"}},{"name":"x-chat-id","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"X-Chat-Id"}}],"responses":{"204":{"description":"Successful Response"},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/admin/test-batches":{"get":{"tags":["admin","test-batches"],"summary":"List Test Batches","description":"List test batches with optional filters. Shows all when no organization_id is provided.","operationId":"list_test_batches_admin_test_batches_get","security":[{"APIKeyHeader":[]},{"HTTPBearer":[]}],"parameters":[{"name":"organization_id","in":"query","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Organization Id"}},{"name":"limit","in":"query","required":false,"schema":{"type":"integer","default":50,"title":"Limit"}},{"name":"organization-id","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Organization-Id"}},{"name":"timezone","in":"header","required":false,"schema":{"type":"string","default":"UTC","title":"Timezone"}},{"name":"x-user-id","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"X-User-Id"}},{"name":"x-actor-email","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"X-Actor-Email"}},{"name":"x-request-source","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"X-Request-Source"}},{"name":"x-operation-id","in":"header","required":false,"schema":{"anyOf":[{"type":"string","maxLength":36},{"type":"null"}],"title":"X-Operation-Id"}},{"name":"x-commit-message","in":"header","required":false,"schema":{"anyOf":[{"type":"string","minLength":1},{"type":"null"}],"title":"X-Commit-Message"}},{"name":"x-confirmation-id","in":"header","required":false,"schema":{"anyOf":[{"type":"string","maxLength":36},{"type":"null"}],"title":"X-Confirmation-Id"}},{"name":"x-chat-id","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"X-Chat-Id"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/TestBatchPageResponse"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/admin/test-sms/":{"post":{"tags":["admin","test-sms"],"summary":"Send Test Sms","description":"Send a one-shot SMS for admin testing.\n\nDispatches through the channel's provider — Twilio (SMS) or Telnyx\n(SMS_TELNYX). Bypasses the engagement / agent\npipeline entirely: no Contact is created, no Engagement record is written,\nand inbound replies are NOT routed back to any agent. Use this only to\nverify SMS delivery for an org's configured SMS channel.","operationId":"send_test_sms_admin_test_sms__post","security":[{"APIKeyHeader":[]},{"HTTPBearer":[]}],"parameters":[{"name":"organization-id","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Organization-Id"}},{"name":"timezone","in":"header","required":false,"schema":{"type":"string","default":"UTC","title":"Timezone"}},{"name":"x-user-id","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"X-User-Id"}},{"name":"x-actor-email","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"X-Actor-Email"}},{"name":"x-request-source","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"X-Request-Source"}},{"name":"x-operation-id","in":"header","required":false,"schema":{"anyOf":[{"type":"string","maxLength":36},{"type":"null"}],"title":"X-Operation-Id"}},{"name":"x-commit-message","in":"header","required":false,"schema":{"anyOf":[{"type":"string","minLength":1},{"type":"null"}],"title":"X-Commit-Message"}},{"name":"x-confirmation-id","in":"header","required":false,"schema":{"anyOf":[{"type":"string","maxLength":36},{"type":"null"}],"title":"X-Confirmation-Id"}},{"name":"x-chat-id","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"X-Chat-Id"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/SendTestSMSRequest"}}}},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/SendTestSMSResponse"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/admin/thumbtack/write-access":{"get":{"tags":["admin","admin"],"summary":"Thumbtack Write Access","description":"Whether the org's Thumbtack grants can reply inside the negotiation thread.\n\nThumbtack splits reading a thread from writing to it across two scopes, so a grant\nholding only the read scope ingests leads normally while every in-thread reply is\nrejected — a state nothing else reports. Reads the stored grant rather than calling\nThumbtack: a refresh cannot widen the consented scope, so there is nothing to ask.\n\n``no_connections`` is healthy. Not cached — the read is local.","operationId":"thumbtack_write_access_admin_thumbtack_write_access_get","security":[{"APIKeyHeader":[]},{"HTTPBearer":[]}],"parameters":[{"name":"organization_id","in":"query","required":true,"schema":{"type":"string","title":"Organization Id"}},{"name":"organization-id","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Organization-Id"}},{"name":"timezone","in":"header","required":false,"schema":{"type":"string","default":"UTC","title":"Timezone"}},{"name":"x-user-id","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"X-User-Id"}},{"name":"x-actor-email","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"X-Actor-Email"}},{"name":"x-request-source","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"X-Request-Source"}},{"name":"x-operation-id","in":"header","required":false,"schema":{"anyOf":[{"type":"string","maxLength":36},{"type":"null"}],"title":"X-Operation-Id"}},{"name":"x-commit-message","in":"header","required":false,"schema":{"anyOf":[{"type":"string","minLength":1},{"type":"null"}],"title":"X-Commit-Message"}},{"name":"x-confirmation-id","in":"header","required":false,"schema":{"anyOf":[{"type":"string","maxLength":36},{"type":"null"}],"title":"X-Confirmation-Id"}},{"name":"x-chat-id","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"X-Chat-Id"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ThumbtackWriteAccessProbe"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/admin/users/{user_id}/password":{"post":{"tags":["admin","users"],"summary":"Set User Password","description":"Set a user's PropelAuth password. Admin only.","operationId":"set_user_password_admin_users__user_id__password_post","security":[{"APIKeyHeader":[]},{"HTTPBearer":[]}],"parameters":[{"name":"user_id","in":"path","required":true,"schema":{"type":"string","title":"User Id"}},{"name":"organization-id","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Organization-Id"}},{"name":"timezone","in":"header","required":false,"schema":{"type":"string","default":"UTC","title":"Timezone"}},{"name":"x-user-id","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"X-User-Id"}},{"name":"x-actor-email","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"X-Actor-Email"}},{"name":"x-request-source","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"X-Request-Source"}},{"name":"x-operation-id","in":"header","required":false,"schema":{"anyOf":[{"type":"string","maxLength":36},{"type":"null"}],"title":"X-Operation-Id"}},{"name":"x-commit-message","in":"header","required":false,"schema":{"anyOf":[{"type":"string","minLength":1},{"type":"null"}],"title":"X-Commit-Message"}},{"name":"x-confirmation-id","in":"header","required":false,"schema":{"anyOf":[{"type":"string","maxLength":36},{"type":"null"}],"title":"X-Confirmation-Id"}},{"name":"x-chat-id","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"X-Chat-Id"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/SetUserPasswordRequest"}}}},"responses":{"204":{"description":"Successful Response"},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/admin/users/{user_id}/magic-link":{"post":{"tags":["admin","users"],"summary":"Send User Magic Link","description":"Email a one-time login magic link to the user. Admin only.","operationId":"send_user_magic_link_admin_users__user_id__magic_link_post","security":[{"APIKeyHeader":[]},{"HTTPBearer":[]}],"parameters":[{"name":"user_id","in":"path","required":true,"schema":{"type":"string","title":"User Id"}},{"name":"organization-id","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Organization-Id"}},{"name":"timezone","in":"header","required":false,"schema":{"type":"string","default":"UTC","title":"Timezone"}},{"name":"x-user-id","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"X-User-Id"}},{"name":"x-actor-email","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"X-Actor-Email"}},{"name":"x-request-source","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"X-Request-Source"}},{"name":"x-operation-id","in":"header","required":false,"schema":{"anyOf":[{"type":"string","maxLength":36},{"type":"null"}],"title":"X-Operation-Id"}},{"name":"x-commit-message","in":"header","required":false,"schema":{"anyOf":[{"type":"string","minLength":1},{"type":"null"}],"title":"X-Commit-Message"}},{"name":"x-confirmation-id","in":"header","required":false,"schema":{"anyOf":[{"type":"string","maxLength":36},{"type":"null"}],"title":"X-Confirmation-Id"}},{"name":"x-chat-id","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"X-Chat-Id"}}],"responses":{"204":{"description":"Successful Response"},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/admin/users/{user_id}/offboard":{"post":{"tags":["admin","users"],"summary":"Offboard User","description":"Revoke a departed employee's access and remove them from internal lists.\n\nDisables the PropelAuth account, then soft-deletes ``auth.user``. Both are needed:\nsoft-deleting alone hides someone who can still sign in, and disabling alone leaves\nthem in every internal work-list permanently.\n\nIdempotent — offboarding an already-offboarded user returns them unchanged.","operationId":"offboard_user_admin_users__user_id__offboard_post","security":[{"APIKeyHeader":[]},{"HTTPBearer":[]}],"parameters":[{"name":"user_id","in":"path","required":true,"schema":{"type":"string","title":"User Id"}},{"name":"organization-id","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Organization-Id"}},{"name":"timezone","in":"header","required":false,"schema":{"type":"string","default":"UTC","title":"Timezone"}},{"name":"x-user-id","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"X-User-Id"}},{"name":"x-actor-email","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"X-Actor-Email"}},{"name":"x-request-source","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"X-Request-Source"}},{"name":"x-operation-id","in":"header","required":false,"schema":{"anyOf":[{"type":"string","maxLength":36},{"type":"null"}],"title":"X-Operation-Id"}},{"name":"x-commit-message","in":"header","required":false,"schema":{"anyOf":[{"type":"string","minLength":1},{"type":"null"}],"title":"X-Commit-Message"}},{"name":"x-confirmation-id","in":"header","required":false,"schema":{"anyOf":[{"type":"string","maxLength":36},{"type":"null"}],"title":"X-Confirmation-Id"}},{"name":"x-chat-id","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"X-Chat-Id"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/User"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/admin/widget/config/{organization_id}":{"get":{"tags":["admin","widget-admin"],"summary":"Get Widget Config","operationId":"get_widget_config_admin_widget_config__organization_id__get","security":[{"APIKeyHeader":[]},{"HTTPBearer":[]}],"parameters":[{"name":"organization_id","in":"path","required":true,"schema":{"type":"string","title":"Organization Id"}},{"name":"organization-id","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Organization-Id"}},{"name":"timezone","in":"header","required":false,"schema":{"type":"string","default":"UTC","title":"Timezone"}},{"name":"x-user-id","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"X-User-Id"}},{"name":"x-actor-email","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"X-Actor-Email"}},{"name":"x-request-source","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"X-Request-Source"}},{"name":"x-operation-id","in":"header","required":false,"schema":{"anyOf":[{"type":"string","maxLength":36},{"type":"null"}],"title":"X-Operation-Id"}},{"name":"x-commit-message","in":"header","required":false,"schema":{"anyOf":[{"type":"string","minLength":1},{"type":"null"}],"title":"X-Commit-Message"}},{"name":"x-confirmation-id","in":"header","required":false,"schema":{"anyOf":[{"type":"string","maxLength":36},{"type":"null"}],"title":"X-Confirmation-Id"}},{"name":"x-chat-id","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"X-Chat-Id"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/WidgetConfigAdminResponse"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}},"put":{"tags":["admin","widget-admin"],"summary":"Upsert Widget Config","operationId":"upsert_widget_config_admin_widget_config__organization_id__put","security":[{"APIKeyHeader":[]},{"HTTPBearer":[]}],"parameters":[{"name":"organization_id","in":"path","required":true,"schema":{"type":"string","title":"Organization Id"}},{"name":"organization-id","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Organization-Id"}},{"name":"timezone","in":"header","required":false,"schema":{"type":"string","default":"UTC","title":"Timezone"}},{"name":"x-user-id","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"X-User-Id"}},{"name":"x-actor-email","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"X-Actor-Email"}},{"name":"x-request-source","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"X-Request-Source"}},{"name":"x-operation-id","in":"header","required":false,"schema":{"anyOf":[{"type":"string","maxLength":36},{"type":"null"}],"title":"X-Operation-Id"}},{"name":"x-commit-message","in":"header","required":false,"schema":{"anyOf":[{"type":"string","minLength":1},{"type":"null"}],"title":"X-Commit-Message"}},{"name":"x-confirmation-id","in":"header","required":false,"schema":{"anyOf":[{"type":"string","maxLength":36},{"type":"null"}],"title":"X-Confirmation-Id"}},{"name":"x-chat-id","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"X-Chat-Id"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/WidgetConfigUpsertRequest"}}}},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/WidgetConfigAdminResponse"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/admin/widget/required-sms-opt-in-copy":{"get":{"tags":["admin","widget-admin"],"summary":"Get global required SMS opt-in copy","operationId":"get_required_sms_opt_in_copy_admin_widget_required_sms_opt_in_copy_get","security":[{"APIKeyHeader":[]},{"HTTPBearer":[]}],"parameters":[{"name":"purpose","in":"query","required":false,"schema":{"enum":["combined","booking","marketing"],"type":"string","default":"combined","title":"Purpose"}},{"name":"organization-id","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Organization-Id"}},{"name":"timezone","in":"header","required":false,"schema":{"type":"string","default":"UTC","title":"Timezone"}},{"name":"x-user-id","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"X-User-Id"}},{"name":"x-actor-email","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"X-Actor-Email"}},{"name":"x-request-source","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"X-Request-Source"}},{"name":"x-operation-id","in":"header","required":false,"schema":{"anyOf":[{"type":"string","maxLength":36},{"type":"null"}],"title":"X-Operation-Id"}},{"name":"x-commit-message","in":"header","required":false,"schema":{"anyOf":[{"type":"string","minLength":1},{"type":"null"}],"title":"X-Commit-Message"}},{"name":"x-confirmation-id","in":"header","required":false,"schema":{"anyOf":[{"type":"string","maxLength":36},{"type":"null"}],"title":"X-Confirmation-Id"}},{"name":"x-chat-id","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"X-Chat-Id"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/WidgetRequiredSmsOptInCopyResponse"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}},"put":{"tags":["admin","widget-admin"],"summary":"Update global required SMS opt-in copy","operationId":"update_required_sms_opt_in_copy_admin_widget_required_sms_opt_in_copy_put","security":[{"APIKeyHeader":[]},{"HTTPBearer":[]}],"parameters":[{"name":"purpose","in":"query","required":false,"schema":{"enum":["combined","booking","marketing"],"type":"string","default":"combined","title":"Purpose"}},{"name":"organization-id","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Organization-Id"}},{"name":"timezone","in":"header","required":false,"schema":{"type":"string","default":"UTC","title":"Timezone"}},{"name":"x-user-id","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"X-User-Id"}},{"name":"x-actor-email","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"X-Actor-Email"}},{"name":"x-request-source","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"X-Request-Source"}},{"name":"x-operation-id","in":"header","required":false,"schema":{"anyOf":[{"type":"string","maxLength":36},{"type":"null"}],"title":"X-Operation-Id"}},{"name":"x-commit-message","in":"header","required":false,"schema":{"anyOf":[{"type":"string","minLength":1},{"type":"null"}],"title":"X-Commit-Message"}},{"name":"x-confirmation-id","in":"header","required":false,"schema":{"anyOf":[{"type":"string","maxLength":36},{"type":"null"}],"title":"X-Confirmation-Id"}},{"name":"x-chat-id","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"X-Chat-Id"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/WidgetRequiredSmsOptInCopyUpdateRequest"}}}},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/WidgetRequiredSmsOptInCopyResponse"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/agents/ask-jenny-resolved-agent-v2":{"get":{"tags":["authenticated","agents"],"summary":"Read Ask Jenny Resolved Agent V2","description":"Return the V2 agent Ask Jenny effectively uses for ``organization_id``.\n\nMirrors the runtime resolution (org preference → global default) so the admin\nconversations view scopes to the same agent orgs actually chat with — including\norgs that rely on the global default and have never set the org preference.\n\nThe org comes from the query param, not the header: the admin conversations view\ncompares the echoed id against the org it selected, which may not be the header org.","operationId":"read_ask_jenny_resolved_agent_v2_agents_ask_jenny_resolved_agent_v2_get","security":[{"APIKeyHeader":[]},{"HTTPBearer":[]}],"parameters":[{"name":"organization_id","in":"query","required":true,"schema":{"type":"string","title":"Organization Id"}},{"name":"organization-id","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Organization-Id"}},{"name":"x-user-id","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"X-User-Id"}},{"name":"timezone","in":"header","required":false,"schema":{"type":"string","default":"UTC","title":"Timezone"}},{"name":"x-actor-email","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"X-Actor-Email"}},{"name":"x-request-source","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"X-Request-Source"}},{"name":"x-operation-id","in":"header","required":false,"schema":{"anyOf":[{"type":"string","maxLength":36},{"type":"null"}],"title":"X-Operation-Id"}},{"name":"x-commit-message","in":"header","required":false,"schema":{"anyOf":[{"type":"string","minLength":1},{"type":"null"}],"title":"X-Commit-Message"}},{"name":"x-confirmation-id","in":"header","required":false,"schema":{"anyOf":[{"type":"string","maxLength":36},{"type":"null"}],"title":"X-Confirmation-Id"}},{"name":"x-chat-id","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"X-Chat-Id"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/AskJennyResolvedAgentResponse"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/agents/rosters":{"get":{"tags":["authenticated","agents"],"summary":"Read Rosters","description":"The canonical persona roster with its presentation config.\n\nGlobal reference data, ~20 rows. The frontend renders persona cards, orders\nthem, and resolves a persona name out of an agent title from this, so adding\na persona is a row insert rather than a matching TypeScript edit.","operationId":"read_rosters_agents_rosters_get","security":[{"APIKeyHeader":[]},{"HTTPBearer":[]}],"parameters":[{"name":"public_only","in":"query","required":false,"schema":{"type":"boolean","default":false,"title":"Public Only"}},{"name":"organization-id","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Organization-Id"}},{"name":"x-user-id","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"X-User-Id"}},{"name":"timezone","in":"header","required":false,"schema":{"type":"string","default":"UTC","title":"Timezone"}},{"name":"x-actor-email","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"X-Actor-Email"}},{"name":"x-request-source","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"X-Request-Source"}},{"name":"x-operation-id","in":"header","required":false,"schema":{"anyOf":[{"type":"string","maxLength":36},{"type":"null"}],"title":"X-Operation-Id"}},{"name":"x-commit-message","in":"header","required":false,"schema":{"anyOf":[{"type":"string","minLength":1},{"type":"null"}],"title":"X-Commit-Message"}},{"name":"x-confirmation-id","in":"header","required":false,"schema":{"anyOf":[{"type":"string","maxLength":36},{"type":"null"}],"title":"X-Confirmation-Id"}},{"name":"x-chat-id","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"X-Chat-Id"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"type":"array","items":{"$ref":"#/components/schemas/RosterPublic"},"title":"Response Read Rosters Agents Rosters Get"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/agents/conversation-agents-v1":{"get":{"tags":["authenticated","agents"],"summary":"Read Conversation Agents V1","description":"Lightweight V1-agent list for the conversations / simulations filter dropdown.\n\nSourced from the agent name stamped onto engagement metadata (not agent.agent),\nso historical v1 agents keep appearing after the v1 agent tables are dropped.\nReturns only v1 agents with at least one engagement eligible for the\nrequesting conversations or simulations list.","operationId":"read_conversation_agents_v1_agents_conversation_agents_v1_get","security":[{"APIKeyHeader":[]},{"HTTPBearer":[]}],"parameters":[{"name":"is_simulated","in":"query","required":false,"schema":{"type":"boolean","default":false,"title":"Is Simulated"}},{"name":"hidden","in":"query","required":false,"schema":{"anyOf":[{"type":"boolean"},{"type":"null"}],"title":"Hidden"}},{"name":"group_by_customer","in":"query","required":false,"schema":{"type":"boolean","default":false,"title":"Group By Customer"}},{"name":"organization-id","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Organization-Id"}},{"name":"x-user-id","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"X-User-Id"}},{"name":"timezone","in":"header","required":false,"schema":{"type":"string","default":"UTC","title":"Timezone"}},{"name":"x-actor-email","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"X-Actor-Email"}},{"name":"x-request-source","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"X-Request-Source"}},{"name":"x-operation-id","in":"header","required":false,"schema":{"anyOf":[{"type":"string","maxLength":36},{"type":"null"}],"title":"X-Operation-Id"}},{"name":"x-commit-message","in":"header","required":false,"schema":{"anyOf":[{"type":"string","minLength":1},{"type":"null"}],"title":"X-Commit-Message"}},{"name":"x-confirmation-id","in":"header","required":false,"schema":{"anyOf":[{"type":"string","maxLength":36},{"type":"null"}],"title":"X-Confirmation-Id"}},{"name":"x-chat-id","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"X-Chat-Id"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"type":"array","items":{"$ref":"#/components/schemas/ConversationAgentV1Response"},"title":"Response Read Conversation Agents V1 Agents Conversation Agents V1 Get"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/agents/conversation-agents-v2":{"get":{"tags":["authenticated","agents"],"summary":"Read Conversation Agents V2","description":"Lightweight V2-agent list for the conversations / simulations filter dropdown.\n\nReturns only the V2 agents in the user's org that have at least one engagement\neligible for the requesting list. Non-admin users need this because the admin\n``/agents-v2/`` endpoint is gated and would otherwise leave the filter empty\n(see ENG-3867).","operationId":"read_conversation_agents_v2_agents_conversation_agents_v2_get","security":[{"APIKeyHeader":[]},{"HTTPBearer":[]}],"parameters":[{"name":"is_simulated","in":"query","required":false,"schema":{"type":"boolean","default":false,"title":"Is Simulated"}},{"name":"hidden","in":"query","required":false,"schema":{"anyOf":[{"type":"boolean"},{"type":"null"}],"title":"Hidden"}},{"name":"group_by_customer","in":"query","required":false,"schema":{"type":"boolean","default":false,"title":"Group By Customer"}},{"name":"organization-id","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Organization-Id"}},{"name":"x-user-id","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"X-User-Id"}},{"name":"timezone","in":"header","required":false,"schema":{"type":"string","default":"UTC","title":"Timezone"}},{"name":"x-actor-email","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"X-Actor-Email"}},{"name":"x-request-source","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"X-Request-Source"}},{"name":"x-operation-id","in":"header","required":false,"schema":{"anyOf":[{"type":"string","maxLength":36},{"type":"null"}],"title":"X-Operation-Id"}},{"name":"x-commit-message","in":"header","required":false,"schema":{"anyOf":[{"type":"string","minLength":1},{"type":"null"}],"title":"X-Commit-Message"}},{"name":"x-confirmation-id","in":"header","required":false,"schema":{"anyOf":[{"type":"string","maxLength":36},{"type":"null"}],"title":"X-Confirmation-Id"}},{"name":"x-chat-id","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"X-Chat-Id"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"type":"array","items":{"$ref":"#/components/schemas/ConversationAgentV2Response"},"title":"Response Read Conversation Agents V2 Agents Conversation Agents V2 Get"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/agents/selectable-agents-v2":{"get":{"tags":["authenticated","agents"],"summary":"Read Selectable Agents V2","description":"V2 agents in the user's org. Not deleted; paused agents excluded unless\n``include_paused`` is set. No has-engagements filter — a freshly created agent\nmust be selectable before its first engagement.\n\nAssignment dropdowns use the default (runnable agents only); the agents\nmanagement page passes ``include_paused=true`` to list and unpause them.","operationId":"read_selectable_agents_v2_agents_selectable_agents_v2_get","security":[{"APIKeyHeader":[]},{"HTTPBearer":[]}],"parameters":[{"name":"include_paused","in":"query","required":false,"schema":{"type":"boolean","default":false,"title":"Include Paused"}},{"name":"organization-id","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Organization-Id"}},{"name":"x-user-id","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"X-User-Id"}},{"name":"timezone","in":"header","required":false,"schema":{"type":"string","default":"UTC","title":"Timezone"}},{"name":"x-actor-email","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"X-Actor-Email"}},{"name":"x-request-source","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"X-Request-Source"}},{"name":"x-operation-id","in":"header","required":false,"schema":{"anyOf":[{"type":"string","maxLength":36},{"type":"null"}],"title":"X-Operation-Id"}},{"name":"x-commit-message","in":"header","required":false,"schema":{"anyOf":[{"type":"string","minLength":1},{"type":"null"}],"title":"X-Commit-Message"}},{"name":"x-confirmation-id","in":"header","required":false,"schema":{"anyOf":[{"type":"string","maxLength":36},{"type":"null"}],"title":"X-Confirmation-Id"}},{"name":"x-chat-id","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"X-Chat-Id"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"type":"array","items":{"$ref":"#/components/schemas/SelectableAgentV2Response"},"title":"Response Read Selectable Agents V2 Agents Selectable Agents V2 Get"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/agents/agents-v2/{agent_v2_id}":{"patch":{"tags":["authenticated","agents"],"summary":"Update Agent V2 Settings","description":"Pause/unpause or update voice settings for a v2 agent in the caller's org.\nOrg-scoped so non-admin users can manage their own agents from the agents page\nwithout the admin ``/agents-v2/`` gateway.","operationId":"update_agent_v2_settings_agents_agents_v2__agent_v2_id__patch","security":[{"APIKeyHeader":[]},{"HTTPBearer":[]}],"parameters":[{"name":"agent_v2_id","in":"path","required":true,"schema":{"type":"string","title":"Agent V2 Id"}},{"name":"organization-id","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Organization-Id"}},{"name":"x-user-id","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"X-User-Id"}},{"name":"timezone","in":"header","required":false,"schema":{"type":"string","default":"UTC","title":"Timezone"}},{"name":"x-actor-email","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"X-Actor-Email"}},{"name":"x-request-source","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"X-Request-Source"}},{"name":"x-operation-id","in":"header","required":false,"schema":{"anyOf":[{"type":"string","maxLength":36},{"type":"null"}],"title":"X-Operation-Id"}},{"name":"x-commit-message","in":"header","required":false,"schema":{"anyOf":[{"type":"string","minLength":1},{"type":"null"}],"title":"X-Commit-Message"}},{"name":"x-confirmation-id","in":"header","required":false,"schema":{"anyOf":[{"type":"string","maxLength":36},{"type":"null"}],"title":"X-Confirmation-Id"}},{"name":"x-chat-id","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"X-Chat-Id"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/UpdateAgentV2SettingsRequest"}}}},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/SelectableAgentV2Response"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/entity-cards":{"post":{"tags":["authenticated","entity-cards"],"summary":"Read Entity Cards","description":"Batch the cards a renderer needs for one kind of entity.\n\nagent-service owns entity resolution; this forwards the caller's own authorization so it\nreads as the viewer. Ids the viewer's organization does not own come back absent.","operationId":"read_entity_cards_entity_cards_post","security":[{"APIKeyHeader":[]},{"HTTPBearer":[]}],"parameters":[{"name":"timezone","in":"header","required":false,"schema":{"type":"string","default":"UTC","title":"Timezone"}},{"name":"x-user-id","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"X-User-Id"}},{"name":"x-actor-email","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"X-Actor-Email"}},{"name":"x-request-source","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"X-Request-Source"}},{"name":"x-operation-id","in":"header","required":false,"schema":{"anyOf":[{"type":"string","maxLength":36},{"type":"null"}],"title":"X-Operation-Id"}},{"name":"x-commit-message","in":"header","required":false,"schema":{"anyOf":[{"type":"string","minLength":1},{"type":"null"}],"title":"X-Commit-Message"}},{"name":"x-confirmation-id","in":"header","required":false,"schema":{"anyOf":[{"type":"string","maxLength":36},{"type":"null"}],"title":"X-Confirmation-Id"}},{"name":"x-chat-id","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"X-Chat-Id"}},{"name":"organization-id","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Organization-Id"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/EntityCardsRequest"}}}},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/EntityCardsResponse"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/entity-cards/{kind}/{entity_id}":{"get":{"tags":["authenticated","entity-cards"],"summary":"Read Entity Card Detail","description":"What expanding one card adds to it; 404 when the kind cannot expand or the entity is not the viewer's.","operationId":"read_entity_card_detail_entity_cards__kind___entity_id__get","security":[{"APIKeyHeader":[]},{"HTTPBearer":[]}],"parameters":[{"name":"kind","in":"path","required":true,"schema":{"type":"string","minLength":1,"maxLength":64,"pattern":"^[a-z][a-z_]*$","title":"Kind"}},{"name":"entity_id","in":"path","required":true,"schema":{"type":"string","minLength":1,"maxLength":255,"title":"Entity Id"}},{"name":"timezone","in":"header","required":false,"schema":{"type":"string","default":"UTC","title":"Timezone"}},{"name":"x-user-id","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"X-User-Id"}},{"name":"x-actor-email","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"X-Actor-Email"}},{"name":"x-request-source","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"X-Request-Source"}},{"name":"x-operation-id","in":"header","required":false,"schema":{"anyOf":[{"type":"string","maxLength":36},{"type":"null"}],"title":"X-Operation-Id"}},{"name":"x-commit-message","in":"header","required":false,"schema":{"anyOf":[{"type":"string","minLength":1},{"type":"null"}],"title":"X-Commit-Message"}},{"name":"x-confirmation-id","in":"header","required":false,"schema":{"anyOf":[{"type":"string","maxLength":36},{"type":"null"}],"title":"X-Confirmation-Id"}},{"name":"x-chat-id","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"X-Chat-Id"}},{"name":"organization-id","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Organization-Id"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/EntityCardDetailResponse"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/agents/documents/":{"get":{"tags":["authenticated","agent-documents"],"summary":"Read Documents","operationId":"read_documents_agents_documents__get","security":[{"APIKeyHeader":[]},{"HTTPBearer":[]}],"parameters":[{"name":"cursor","in":"query","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Cursor"}},{"name":"organization-id","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Organization-Id"}},{"name":"x-user-id","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"X-User-Id"}},{"name":"timezone","in":"header","required":false,"schema":{"type":"string","default":"UTC","title":"Timezone"}},{"name":"x-actor-email","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"X-Actor-Email"}},{"name":"x-request-source","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"X-Request-Source"}},{"name":"x-operation-id","in":"header","required":false,"schema":{"anyOf":[{"type":"string","maxLength":36},{"type":"null"}],"title":"X-Operation-Id"}},{"name":"x-commit-message","in":"header","required":false,"schema":{"anyOf":[{"type":"string","minLength":1},{"type":"null"}],"title":"X-Commit-Message"}},{"name":"x-confirmation-id","in":"header","required":false,"schema":{"anyOf":[{"type":"string","maxLength":36},{"type":"null"}],"title":"X-Confirmation-Id"}},{"name":"x-chat-id","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"X-Chat-Id"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/DocumentPage"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}},"post":{"tags":["authenticated","agent-documents"],"summary":"Create Document","operationId":"create_document_agents_documents__post","security":[{"APIKeyHeader":[]},{"HTTPBearer":[]}],"parameters":[{"name":"organization-id","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Organization-Id"}},{"name":"x-user-id","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"X-User-Id"}},{"name":"timezone","in":"header","required":false,"schema":{"type":"string","default":"UTC","title":"Timezone"}},{"name":"x-actor-email","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"X-Actor-Email"}},{"name":"x-request-source","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"X-Request-Source"}},{"name":"x-operation-id","in":"header","required":false,"schema":{"anyOf":[{"type":"string","maxLength":36},{"type":"null"}],"title":"X-Operation-Id"}},{"name":"x-commit-message","in":"header","required":false,"schema":{"anyOf":[{"type":"string","minLength":1},{"type":"null"}],"title":"X-Commit-Message"}},{"name":"x-confirmation-id","in":"header","required":false,"schema":{"anyOf":[{"type":"string","maxLength":36},{"type":"null"}],"title":"X-Confirmation-Id"}},{"name":"x-chat-id","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"X-Chat-Id"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/CreateDocumentBody"}}}},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/DocumentPublic"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/agents/documents/{document_id}":{"get":{"tags":["authenticated","agent-documents"],"summary":"Read Document","operationId":"read_document_agents_documents__document_id__get","security":[{"APIKeyHeader":[]},{"HTTPBearer":[]}],"parameters":[{"name":"document_id","in":"path","required":true,"schema":{"type":"string","title":"Document Id"}},{"name":"organization-id","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Organization-Id"}},{"name":"x-user-id","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"X-User-Id"}},{"name":"timezone","in":"header","required":false,"schema":{"type":"string","default":"UTC","title":"Timezone"}},{"name":"x-actor-email","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"X-Actor-Email"}},{"name":"x-request-source","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"X-Request-Source"}},{"name":"x-operation-id","in":"header","required":false,"schema":{"anyOf":[{"type":"string","maxLength":36},{"type":"null"}],"title":"X-Operation-Id"}},{"name":"x-commit-message","in":"header","required":false,"schema":{"anyOf":[{"type":"string","minLength":1},{"type":"null"}],"title":"X-Commit-Message"}},{"name":"x-confirmation-id","in":"header","required":false,"schema":{"anyOf":[{"type":"string","maxLength":36},{"type":"null"}],"title":"X-Confirmation-Id"}},{"name":"x-chat-id","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"X-Chat-Id"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/DocumentPublic"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}},"patch":{"tags":["authenticated","agent-documents"],"summary":"Update Document","operationId":"update_document_agents_documents__document_id__patch","security":[{"APIKeyHeader":[]},{"HTTPBearer":[]}],"parameters":[{"name":"document_id","in":"path","required":true,"schema":{"type":"string","title":"Document Id"}},{"name":"organization-id","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Organization-Id"}},{"name":"x-user-id","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"X-User-Id"}},{"name":"timezone","in":"header","required":false,"schema":{"type":"string","default":"UTC","title":"Timezone"}},{"name":"x-actor-email","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"X-Actor-Email"}},{"name":"x-request-source","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"X-Request-Source"}},{"name":"x-operation-id","in":"header","required":false,"schema":{"anyOf":[{"type":"string","maxLength":36},{"type":"null"}],"title":"X-Operation-Id"}},{"name":"x-commit-message","in":"header","required":false,"schema":{"anyOf":[{"type":"string","minLength":1},{"type":"null"}],"title":"X-Commit-Message"}},{"name":"x-confirmation-id","in":"header","required":false,"schema":{"anyOf":[{"type":"string","maxLength":36},{"type":"null"}],"title":"X-Confirmation-Id"}},{"name":"x-chat-id","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"X-Chat-Id"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/UpdateDocumentBody"}}}},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/DocumentPublic"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}},"delete":{"tags":["authenticated","agent-documents"],"summary":"Delete Document","operationId":"delete_document_agents_documents__document_id__delete","security":[{"APIKeyHeader":[]},{"HTTPBearer":[]}],"parameters":[{"name":"document_id","in":"path","required":true,"schema":{"type":"string","title":"Document Id"}},{"name":"organization-id","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Organization-Id"}},{"name":"x-user-id","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"X-User-Id"}},{"name":"timezone","in":"header","required":false,"schema":{"type":"string","default":"UTC","title":"Timezone"}},{"name":"x-actor-email","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"X-Actor-Email"}},{"name":"x-request-source","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"X-Request-Source"}},{"name":"x-operation-id","in":"header","required":false,"schema":{"anyOf":[{"type":"string","maxLength":36},{"type":"null"}],"title":"X-Operation-Id"}},{"name":"x-commit-message","in":"header","required":false,"schema":{"anyOf":[{"type":"string","minLength":1},{"type":"null"}],"title":"X-Commit-Message"}},{"name":"x-confirmation-id","in":"header","required":false,"schema":{"anyOf":[{"type":"string","maxLength":36},{"type":"null"}],"title":"X-Confirmation-Id"}},{"name":"x-chat-id","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"X-Chat-Id"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/DocumentPublic"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/agents/documents/{document_id}/targets":{"get":{"tags":["authenticated","agent-documents"],"summary":"Read Document Targets","operationId":"read_document_targets_agents_documents__document_id__targets_get","security":[{"APIKeyHeader":[]},{"HTTPBearer":[]}],"parameters":[{"name":"document_id","in":"path","required":true,"schema":{"type":"string","title":"Document Id"}},{"name":"organization-id","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Organization-Id"}},{"name":"x-user-id","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"X-User-Id"}},{"name":"timezone","in":"header","required":false,"schema":{"type":"string","default":"UTC","title":"Timezone"}},{"name":"x-actor-email","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"X-Actor-Email"}},{"name":"x-request-source","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"X-Request-Source"}},{"name":"x-operation-id","in":"header","required":false,"schema":{"anyOf":[{"type":"string","maxLength":36},{"type":"null"}],"title":"X-Operation-Id"}},{"name":"x-commit-message","in":"header","required":false,"schema":{"anyOf":[{"type":"string","minLength":1},{"type":"null"}],"title":"X-Commit-Message"}},{"name":"x-confirmation-id","in":"header","required":false,"schema":{"anyOf":[{"type":"string","maxLength":36},{"type":"null"}],"title":"X-Confirmation-Id"}},{"name":"x-chat-id","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"X-Chat-Id"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/DocumentTargetsResponse"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}},"put":{"tags":["authenticated","agent-documents"],"summary":"Replace Document Targets","operationId":"replace_document_targets_agents_documents__document_id__targets_put","security":[{"APIKeyHeader":[]},{"HTTPBearer":[]}],"parameters":[{"name":"document_id","in":"path","required":true,"schema":{"type":"string","title":"Document Id"}},{"name":"organization-id","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Organization-Id"}},{"name":"x-user-id","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"X-User-Id"}},{"name":"timezone","in":"header","required":false,"schema":{"type":"string","default":"UTC","title":"Timezone"}},{"name":"x-actor-email","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"X-Actor-Email"}},{"name":"x-request-source","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"X-Request-Source"}},{"name":"x-operation-id","in":"header","required":false,"schema":{"anyOf":[{"type":"string","maxLength":36},{"type":"null"}],"title":"X-Operation-Id"}},{"name":"x-commit-message","in":"header","required":false,"schema":{"anyOf":[{"type":"string","minLength":1},{"type":"null"}],"title":"X-Commit-Message"}},{"name":"x-confirmation-id","in":"header","required":false,"schema":{"anyOf":[{"type":"string","maxLength":36},{"type":"null"}],"title":"X-Confirmation-Id"}},{"name":"x-chat-id","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"X-Chat-Id"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/DocumentTargetsReplace"}}}},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/DocumentTargetsResponse"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/agents/tool-modules/":{"get":{"tags":["authenticated","agent-tool-modules"],"summary":"Read Tool Modules","operationId":"read_tool_modules_agents_tool_modules__get","security":[{"APIKeyHeader":[]},{"HTTPBearer":[]}],"parameters":[{"name":"organization-id","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Organization-Id"}},{"name":"x-user-id","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"X-User-Id"}},{"name":"timezone","in":"header","required":false,"schema":{"type":"string","default":"UTC","title":"Timezone"}},{"name":"x-actor-email","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"X-Actor-Email"}},{"name":"x-request-source","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"X-Request-Source"}},{"name":"x-operation-id","in":"header","required":false,"schema":{"anyOf":[{"type":"string","maxLength":36},{"type":"null"}],"title":"X-Operation-Id"}},{"name":"x-commit-message","in":"header","required":false,"schema":{"anyOf":[{"type":"string","minLength":1},{"type":"null"}],"title":"X-Commit-Message"}},{"name":"x-confirmation-id","in":"header","required":false,"schema":{"anyOf":[{"type":"string","maxLength":36},{"type":"null"}],"title":"X-Confirmation-Id"}},{"name":"x-chat-id","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"X-Chat-Id"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"type":"array","items":{"$ref":"#/components/schemas/ToolModulePublic"},"title":"Response Read Tool Modules Agents Tool Modules  Get"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}},"post":{"tags":["authenticated","agent-tool-modules"],"summary":"Create Tool Module With Interchange","operationId":"create_tool_module_with_interchange_agents_tool_modules__post","security":[{"APIKeyHeader":[]},{"HTTPBearer":[]}],"parameters":[{"name":"organization-id","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Organization-Id"}},{"name":"x-user-id","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"X-User-Id"}},{"name":"timezone","in":"header","required":false,"schema":{"type":"string","default":"UTC","title":"Timezone"}},{"name":"x-actor-email","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"X-Actor-Email"}},{"name":"x-request-source","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"X-Request-Source"}},{"name":"x-operation-id","in":"header","required":false,"schema":{"anyOf":[{"type":"string","maxLength":36},{"type":"null"}],"title":"X-Operation-Id"}},{"name":"x-commit-message","in":"header","required":false,"schema":{"anyOf":[{"type":"string","minLength":1},{"type":"null"}],"title":"X-Commit-Message"}},{"name":"x-confirmation-id","in":"header","required":false,"schema":{"anyOf":[{"type":"string","maxLength":36},{"type":"null"}],"title":"X-Confirmation-Id"}},{"name":"x-chat-id","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"X-Chat-Id"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/CreateToolModuleWithInterchangeBody"}}}},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ToolModulePublic"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/agents/voices/":{"get":{"tags":["authenticated","agent-voices"],"summary":"Read Voices","operationId":"read_voices_agents_voices__get","security":[{"APIKeyHeader":[]},{"HTTPBearer":[]}],"parameters":[{"name":"organization-id","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Organization-Id"}},{"name":"x-user-id","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"X-User-Id"}},{"name":"timezone","in":"header","required":false,"schema":{"type":"string","default":"UTC","title":"Timezone"}},{"name":"x-actor-email","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"X-Actor-Email"}},{"name":"x-request-source","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"X-Request-Source"}},{"name":"x-operation-id","in":"header","required":false,"schema":{"anyOf":[{"type":"string","maxLength":36},{"type":"null"}],"title":"X-Operation-Id"}},{"name":"x-commit-message","in":"header","required":false,"schema":{"anyOf":[{"type":"string","minLength":1},{"type":"null"}],"title":"X-Commit-Message"}},{"name":"x-confirmation-id","in":"header","required":false,"schema":{"anyOf":[{"type":"string","maxLength":36},{"type":"null"}],"title":"X-Confirmation-Id"}},{"name":"x-chat-id","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"X-Chat-Id"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/VoiceCatalogResponse"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/agent-variants/":{"post":{"tags":["authenticated","agent-variants"],"summary":"Create Agent Variant","operationId":"create_agent_variant_agent_variants__post","security":[{"APIKeyHeader":[]},{"HTTPBearer":[]}],"parameters":[{"name":"timezone","in":"header","required":false,"schema":{"type":"string","default":"UTC","title":"Timezone"}},{"name":"x-user-id","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"X-User-Id"}},{"name":"x-actor-email","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"X-Actor-Email"}},{"name":"x-request-source","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"X-Request-Source"}},{"name":"x-operation-id","in":"header","required":false,"schema":{"anyOf":[{"type":"string","maxLength":36},{"type":"null"}],"title":"X-Operation-Id"}},{"name":"x-commit-message","in":"header","required":false,"schema":{"anyOf":[{"type":"string","minLength":1},{"type":"null"}],"title":"X-Commit-Message"}},{"name":"x-confirmation-id","in":"header","required":false,"schema":{"anyOf":[{"type":"string","maxLength":36},{"type":"null"}],"title":"X-Confirmation-Id"}},{"name":"x-chat-id","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"X-Chat-Id"}},{"name":"organization-id","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Organization-Id"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/CreateAgentVariantBody"}}}},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"type":"object","additionalProperties":true,"title":"Response Create Agent Variant Agent Variants  Post"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}},"get":{"tags":["authenticated","agent-variants"],"summary":"List Agent Variants","operationId":"list_agent_variants_agent_variants__get","security":[{"APIKeyHeader":[]},{"HTTPBearer":[]}],"parameters":[{"name":"agent_v2_id","in":"query","required":true,"schema":{"type":"string","title":"Agent V2 Id"}},{"name":"limit","in":"query","required":false,"schema":{"type":"integer","default":50,"title":"Limit"}},{"name":"offset","in":"query","required":false,"schema":{"type":"integer","default":0,"title":"Offset"}},{"name":"timezone","in":"header","required":false,"schema":{"type":"string","default":"UTC","title":"Timezone"}},{"name":"x-user-id","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"X-User-Id"}},{"name":"x-actor-email","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"X-Actor-Email"}},{"name":"x-request-source","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"X-Request-Source"}},{"name":"x-operation-id","in":"header","required":false,"schema":{"anyOf":[{"type":"string","maxLength":36},{"type":"null"}],"title":"X-Operation-Id"}},{"name":"x-commit-message","in":"header","required":false,"schema":{"anyOf":[{"type":"string","minLength":1},{"type":"null"}],"title":"X-Commit-Message"}},{"name":"x-confirmation-id","in":"header","required":false,"schema":{"anyOf":[{"type":"string","maxLength":36},{"type":"null"}],"title":"X-Confirmation-Id"}},{"name":"x-chat-id","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"X-Chat-Id"}},{"name":"organization-id","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Organization-Id"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"type":"object","additionalProperties":true,"title":"Response List Agent Variants Agent Variants  Get"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/agent-variants/{variant_id}":{"get":{"tags":["authenticated","agent-variants"],"summary":"Read Agent Variant","operationId":"read_agent_variant_agent_variants__variant_id__get","security":[{"APIKeyHeader":[]},{"HTTPBearer":[]}],"parameters":[{"name":"variant_id","in":"path","required":true,"schema":{"type":"string","title":"Variant Id"}},{"name":"timezone","in":"header","required":false,"schema":{"type":"string","default":"UTC","title":"Timezone"}},{"name":"x-user-id","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"X-User-Id"}},{"name":"x-actor-email","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"X-Actor-Email"}},{"name":"x-request-source","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"X-Request-Source"}},{"name":"x-operation-id","in":"header","required":false,"schema":{"anyOf":[{"type":"string","maxLength":36},{"type":"null"}],"title":"X-Operation-Id"}},{"name":"x-commit-message","in":"header","required":false,"schema":{"anyOf":[{"type":"string","minLength":1},{"type":"null"}],"title":"X-Commit-Message"}},{"name":"x-confirmation-id","in":"header","required":false,"schema":{"anyOf":[{"type":"string","maxLength":36},{"type":"null"}],"title":"X-Confirmation-Id"}},{"name":"x-chat-id","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"X-Chat-Id"}},{"name":"organization-id","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Organization-Id"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"type":"object","additionalProperties":true,"title":"Response Read Agent Variant Agent Variants  Variant Id  Get"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/agent-variants/{variant_id}/promote":{"post":{"tags":["authenticated","agent-variants"],"summary":"Promote Agent Variant","operationId":"promote_agent_variant_agent_variants__variant_id__promote_post","security":[{"APIKeyHeader":[]},{"HTTPBearer":[]}],"parameters":[{"name":"variant_id","in":"path","required":true,"schema":{"type":"string","title":"Variant Id"}},{"name":"timezone","in":"header","required":false,"schema":{"type":"string","default":"UTC","title":"Timezone"}},{"name":"x-user-id","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"X-User-Id"}},{"name":"x-actor-email","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"X-Actor-Email"}},{"name":"x-request-source","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"X-Request-Source"}},{"name":"x-operation-id","in":"header","required":false,"schema":{"anyOf":[{"type":"string","maxLength":36},{"type":"null"}],"title":"X-Operation-Id"}},{"name":"x-commit-message","in":"header","required":false,"schema":{"anyOf":[{"type":"string","minLength":1},{"type":"null"}],"title":"X-Commit-Message"}},{"name":"x-confirmation-id","in":"header","required":false,"schema":{"anyOf":[{"type":"string","maxLength":36},{"type":"null"}],"title":"X-Confirmation-Id"}},{"name":"x-chat-id","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"X-Chat-Id"}},{"name":"organization-id","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Organization-Id"}}],"requestBody":{"content":{"application/json":{"schema":{"anyOf":[{"$ref":"#/components/schemas/PromoteAgentVariantRequest"},{"type":"null"}],"title":"Body"}}}},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"type":"object","additionalProperties":true,"title":"Response Promote Agent Variant Agent Variants  Variant Id  Promote Post"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/agent-variants/{variant_id}/objectives":{"get":{"tags":["authenticated","agent-variants"],"summary":"Read Variant Objectives","operationId":"read_variant_objectives_agent_variants__variant_id__objectives_get","security":[{"APIKeyHeader":[]},{"HTTPBearer":[]}],"parameters":[{"name":"variant_id","in":"path","required":true,"schema":{"type":"string","title":"Variant Id"}},{"name":"timezone","in":"header","required":false,"schema":{"type":"string","default":"UTC","title":"Timezone"}},{"name":"x-user-id","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"X-User-Id"}},{"name":"x-actor-email","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"X-Actor-Email"}},{"name":"x-request-source","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"X-Request-Source"}},{"name":"x-operation-id","in":"header","required":false,"schema":{"anyOf":[{"type":"string","maxLength":36},{"type":"null"}],"title":"X-Operation-Id"}},{"name":"x-commit-message","in":"header","required":false,"schema":{"anyOf":[{"type":"string","minLength":1},{"type":"null"}],"title":"X-Commit-Message"}},{"name":"x-confirmation-id","in":"header","required":false,"schema":{"anyOf":[{"type":"string","maxLength":36},{"type":"null"}],"title":"X-Confirmation-Id"}},{"name":"x-chat-id","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"X-Chat-Id"}},{"name":"organization-id","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Organization-Id"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"type":"array","items":{"$ref":"#/components/schemas/VariantObjectiveResponse"},"title":"Response Read Variant Objectives Agent Variants  Variant Id  Objectives Get"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/integrations/angi/connection":{"get":{"tags":["authenticated","integrations"],"summary":"Read Angi Connection","operationId":"read_angi_connection_integrations_angi_connection_get","security":[{"APIKeyHeader":[]},{"HTTPBearer":[]}],"parameters":[{"name":"organization-id","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Organization-Id"}},{"name":"x-user-id","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"X-User-Id"}},{"name":"timezone","in":"header","required":false,"schema":{"type":"string","default":"UTC","title":"Timezone"}},{"name":"x-actor-email","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"X-Actor-Email"}},{"name":"x-request-source","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"X-Request-Source"}},{"name":"x-operation-id","in":"header","required":false,"schema":{"anyOf":[{"type":"string","maxLength":36},{"type":"null"}],"title":"X-Operation-Id"}},{"name":"x-commit-message","in":"header","required":false,"schema":{"anyOf":[{"type":"string","minLength":1},{"type":"null"}],"title":"X-Commit-Message"}},{"name":"x-confirmation-id","in":"header","required":false,"schema":{"anyOf":[{"type":"string","maxLength":36},{"type":"null"}],"title":"X-Confirmation-Id"}},{"name":"x-chat-id","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"X-Chat-Id"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/AngiCustomerConnectionStateResponse"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}},"post":{"tags":["authenticated","integrations"],"summary":"Create Angi Connection","operationId":"create_angi_connection_integrations_angi_connection_post","security":[{"APIKeyHeader":[]},{"HTTPBearer":[]}],"parameters":[{"name":"organization-id","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Organization-Id"}},{"name":"x-user-id","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"X-User-Id"}},{"name":"timezone","in":"header","required":false,"schema":{"type":"string","default":"UTC","title":"Timezone"}},{"name":"x-actor-email","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"X-Actor-Email"}},{"name":"x-request-source","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"X-Request-Source"}},{"name":"x-operation-id","in":"header","required":false,"schema":{"anyOf":[{"type":"string","maxLength":36},{"type":"null"}],"title":"X-Operation-Id"}},{"name":"x-commit-message","in":"header","required":false,"schema":{"anyOf":[{"type":"string","minLength":1},{"type":"null"}],"title":"X-Commit-Message"}},{"name":"x-confirmation-id","in":"header","required":false,"schema":{"anyOf":[{"type":"string","maxLength":36},{"type":"null"}],"title":"X-Confirmation-Id"}},{"name":"x-chat-id","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"X-Chat-Id"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/AngiCustomerConnectionCreateRequest"}}}},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/AngiCustomerConnectionWithApiKeyResponse"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}},"patch":{"tags":["authenticated","integrations"],"summary":"Update Angi Connection","operationId":"update_angi_connection_integrations_angi_connection_patch","security":[{"APIKeyHeader":[]},{"HTTPBearer":[]}],"parameters":[{"name":"organization-id","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Organization-Id"}},{"name":"x-user-id","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"X-User-Id"}},{"name":"timezone","in":"header","required":false,"schema":{"type":"string","default":"UTC","title":"Timezone"}},{"name":"x-actor-email","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"X-Actor-Email"}},{"name":"x-request-source","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"X-Request-Source"}},{"name":"x-operation-id","in":"header","required":false,"schema":{"anyOf":[{"type":"string","maxLength":36},{"type":"null"}],"title":"X-Operation-Id"}},{"name":"x-commit-message","in":"header","required":false,"schema":{"anyOf":[{"type":"string","minLength":1},{"type":"null"}],"title":"X-Commit-Message"}},{"name":"x-confirmation-id","in":"header","required":false,"schema":{"anyOf":[{"type":"string","maxLength":36},{"type":"null"}],"title":"X-Confirmation-Id"}},{"name":"x-chat-id","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"X-Chat-Id"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/AngiCustomerConnectionUpdateRequest"}}}},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/AngiCustomerConnectionOnlyResponse"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/integrations/angi/connection/rotate-api-key":{"post":{"tags":["authenticated","integrations"],"summary":"Rotate Angi Connection Api Key","operationId":"rotate_angi_connection_api_key_integrations_angi_connection_rotate_api_key_post","security":[{"APIKeyHeader":[]},{"HTTPBearer":[]}],"parameters":[{"name":"organization-id","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Organization-Id"}},{"name":"x-user-id","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"X-User-Id"}},{"name":"timezone","in":"header","required":false,"schema":{"type":"string","default":"UTC","title":"Timezone"}},{"name":"x-actor-email","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"X-Actor-Email"}},{"name":"x-request-source","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"X-Request-Source"}},{"name":"x-operation-id","in":"header","required":false,"schema":{"anyOf":[{"type":"string","maxLength":36},{"type":"null"}],"title":"X-Operation-Id"}},{"name":"x-commit-message","in":"header","required":false,"schema":{"anyOf":[{"type":"string","minLength":1},{"type":"null"}],"title":"X-Commit-Message"}},{"name":"x-confirmation-id","in":"header","required":false,"schema":{"anyOf":[{"type":"string","maxLength":36},{"type":"null"}],"title":"X-Confirmation-Id"}},{"name":"x-chat-id","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"X-Chat-Id"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/AngiCustomerConnectionWithApiKeyResponse"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/integrations/angi/events":{"get":{"tags":["authenticated","integrations"],"summary":"List Angi Events","operationId":"list_angi_events_integrations_angi_events_get","security":[{"APIKeyHeader":[]},{"HTTPBearer":[]}],"parameters":[{"name":"status","in":"query","required":false,"schema":{"anyOf":[{"$ref":"#/components/schemas/AngiWebhookEventStatus"},{"type":"null"}],"title":"Status"}},{"name":"limit","in":"query","required":false,"schema":{"type":"integer","maximum":100,"minimum":1,"default":20,"title":"Limit"}},{"name":"cursor","in":"query","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Cursor"}},{"name":"organization-id","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Organization-Id"}},{"name":"x-user-id","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"X-User-Id"}},{"name":"timezone","in":"header","required":false,"schema":{"type":"string","default":"UTC","title":"Timezone"}},{"name":"x-actor-email","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"X-Actor-Email"}},{"name":"x-request-source","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"X-Request-Source"}},{"name":"x-operation-id","in":"header","required":false,"schema":{"anyOf":[{"type":"string","maxLength":36},{"type":"null"}],"title":"X-Operation-Id"}},{"name":"x-commit-message","in":"header","required":false,"schema":{"anyOf":[{"type":"string","minLength":1},{"type":"null"}],"title":"X-Commit-Message"}},{"name":"x-confirmation-id","in":"header","required":false,"schema":{"anyOf":[{"type":"string","maxLength":36},{"type":"null"}],"title":"X-Confirmation-Id"}},{"name":"x-chat-id","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"X-Chat-Id"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/AngiCustomerEventListResponse"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/integrations/angi/events/{event_id}/replay":{"post":{"tags":["authenticated","integrations"],"summary":"Replay Angi Event","operationId":"replay_angi_event_integrations_angi_events__event_id__replay_post","security":[{"APIKeyHeader":[]},{"HTTPBearer":[]}],"parameters":[{"name":"event_id","in":"path","required":true,"schema":{"type":"string","title":"Event Id"}},{"name":"organization-id","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Organization-Id"}},{"name":"x-user-id","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"X-User-Id"}},{"name":"timezone","in":"header","required":false,"schema":{"type":"string","default":"UTC","title":"Timezone"}},{"name":"x-actor-email","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"X-Actor-Email"}},{"name":"x-request-source","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"X-Request-Source"}},{"name":"x-operation-id","in":"header","required":false,"schema":{"anyOf":[{"type":"string","maxLength":36},{"type":"null"}],"title":"X-Operation-Id"}},{"name":"x-commit-message","in":"header","required":false,"schema":{"anyOf":[{"type":"string","minLength":1},{"type":"null"}],"title":"X-Commit-Message"}},{"name":"x-confirmation-id","in":"header","required":false,"schema":{"anyOf":[{"type":"string","maxLength":36},{"type":"null"}],"title":"X-Confirmation-Id"}},{"name":"x-chat-id","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"X-Chat-Id"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/AngiCustomerReplayResponse"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/integrations/zapier/connection":{"get":{"tags":["authenticated","integrations"],"summary":"Read Connection","operationId":"read_connection_integrations_zapier_connection_get","security":[{"APIKeyHeader":[]},{"HTTPBearer":[]}],"parameters":[{"name":"organization-id","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Organization-Id"}},{"name":"x-user-id","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"X-User-Id"}},{"name":"timezone","in":"header","required":false,"schema":{"type":"string","default":"UTC","title":"Timezone"}},{"name":"x-actor-email","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"X-Actor-Email"}},{"name":"x-request-source","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"X-Request-Source"}},{"name":"x-operation-id","in":"header","required":false,"schema":{"anyOf":[{"type":"string","maxLength":36},{"type":"null"}],"title":"X-Operation-Id"}},{"name":"x-commit-message","in":"header","required":false,"schema":{"anyOf":[{"type":"string","minLength":1},{"type":"null"}],"title":"X-Commit-Message"}},{"name":"x-confirmation-id","in":"header","required":false,"schema":{"anyOf":[{"type":"string","maxLength":36},{"type":"null"}],"title":"X-Confirmation-Id"}},{"name":"x-chat-id","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"X-Chat-Id"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/WebhookConnectionStateResponse"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}},"post":{"tags":["authenticated","integrations"],"summary":"Create Connection","operationId":"create_connection_integrations_zapier_connection_post","security":[{"APIKeyHeader":[]},{"HTTPBearer":[]}],"parameters":[{"name":"organization-id","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Organization-Id"}},{"name":"x-user-id","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"X-User-Id"}},{"name":"timezone","in":"header","required":false,"schema":{"type":"string","default":"UTC","title":"Timezone"}},{"name":"x-actor-email","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"X-Actor-Email"}},{"name":"x-request-source","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"X-Request-Source"}},{"name":"x-operation-id","in":"header","required":false,"schema":{"anyOf":[{"type":"string","maxLength":36},{"type":"null"}],"title":"X-Operation-Id"}},{"name":"x-commit-message","in":"header","required":false,"schema":{"anyOf":[{"type":"string","minLength":1},{"type":"null"}],"title":"X-Commit-Message"}},{"name":"x-confirmation-id","in":"header","required":false,"schema":{"anyOf":[{"type":"string","maxLength":36},{"type":"null"}],"title":"X-Confirmation-Id"}},{"name":"x-chat-id","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"X-Chat-Id"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/WebhookConnectionCreateRequest"}}}},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/WebhookConnectionWithApiKeyResponse"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}},"patch":{"tags":["authenticated","integrations"],"summary":"Update Connection","operationId":"update_connection_integrations_zapier_connection_patch","security":[{"APIKeyHeader":[]},{"HTTPBearer":[]}],"parameters":[{"name":"organization-id","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Organization-Id"}},{"name":"x-user-id","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"X-User-Id"}},{"name":"timezone","in":"header","required":false,"schema":{"type":"string","default":"UTC","title":"Timezone"}},{"name":"x-actor-email","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"X-Actor-Email"}},{"name":"x-request-source","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"X-Request-Source"}},{"name":"x-operation-id","in":"header","required":false,"schema":{"anyOf":[{"type":"string","maxLength":36},{"type":"null"}],"title":"X-Operation-Id"}},{"name":"x-commit-message","in":"header","required":false,"schema":{"anyOf":[{"type":"string","minLength":1},{"type":"null"}],"title":"X-Commit-Message"}},{"name":"x-confirmation-id","in":"header","required":false,"schema":{"anyOf":[{"type":"string","maxLength":36},{"type":"null"}],"title":"X-Confirmation-Id"}},{"name":"x-chat-id","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"X-Chat-Id"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/WebhookConnectionUpdateRequest"}}}},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/WebhookConnectionOnlyResponse"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/integrations/zapier/connection/rotate-api-key":{"post":{"tags":["authenticated","integrations"],"summary":"Rotate Connection Api Key","operationId":"rotate_connection_api_key_integrations_zapier_connection_rotate_api_key_post","security":[{"APIKeyHeader":[]},{"HTTPBearer":[]}],"parameters":[{"name":"organization-id","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Organization-Id"}},{"name":"x-user-id","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"X-User-Id"}},{"name":"timezone","in":"header","required":false,"schema":{"type":"string","default":"UTC","title":"Timezone"}},{"name":"x-actor-email","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"X-Actor-Email"}},{"name":"x-request-source","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"X-Request-Source"}},{"name":"x-operation-id","in":"header","required":false,"schema":{"anyOf":[{"type":"string","maxLength":36},{"type":"null"}],"title":"X-Operation-Id"}},{"name":"x-commit-message","in":"header","required":false,"schema":{"anyOf":[{"type":"string","minLength":1},{"type":"null"}],"title":"X-Commit-Message"}},{"name":"x-confirmation-id","in":"header","required":false,"schema":{"anyOf":[{"type":"string","maxLength":36},{"type":"null"}],"title":"X-Confirmation-Id"}},{"name":"x-chat-id","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"X-Chat-Id"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/WebhookConnectionWithApiKeyResponse"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/integrations/modernize/connection":{"get":{"tags":["authenticated","integrations"],"summary":"Read Connection","operationId":"read_connection_integrations_modernize_connection_get","security":[{"APIKeyHeader":[]},{"HTTPBearer":[]}],"parameters":[{"name":"organization-id","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Organization-Id"}},{"name":"x-user-id","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"X-User-Id"}},{"name":"timezone","in":"header","required":false,"schema":{"type":"string","default":"UTC","title":"Timezone"}},{"name":"x-actor-email","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"X-Actor-Email"}},{"name":"x-request-source","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"X-Request-Source"}},{"name":"x-operation-id","in":"header","required":false,"schema":{"anyOf":[{"type":"string","maxLength":36},{"type":"null"}],"title":"X-Operation-Id"}},{"name":"x-commit-message","in":"header","required":false,"schema":{"anyOf":[{"type":"string","minLength":1},{"type":"null"}],"title":"X-Commit-Message"}},{"name":"x-confirmation-id","in":"header","required":false,"schema":{"anyOf":[{"type":"string","maxLength":36},{"type":"null"}],"title":"X-Confirmation-Id"}},{"name":"x-chat-id","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"X-Chat-Id"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/WebhookConnectionStateResponse"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}},"post":{"tags":["authenticated","integrations"],"summary":"Create Connection","operationId":"create_connection_integrations_modernize_connection_post","security":[{"APIKeyHeader":[]},{"HTTPBearer":[]}],"parameters":[{"name":"organization-id","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Organization-Id"}},{"name":"x-user-id","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"X-User-Id"}},{"name":"timezone","in":"header","required":false,"schema":{"type":"string","default":"UTC","title":"Timezone"}},{"name":"x-actor-email","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"X-Actor-Email"}},{"name":"x-request-source","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"X-Request-Source"}},{"name":"x-operation-id","in":"header","required":false,"schema":{"anyOf":[{"type":"string","maxLength":36},{"type":"null"}],"title":"X-Operation-Id"}},{"name":"x-commit-message","in":"header","required":false,"schema":{"anyOf":[{"type":"string","minLength":1},{"type":"null"}],"title":"X-Commit-Message"}},{"name":"x-confirmation-id","in":"header","required":false,"schema":{"anyOf":[{"type":"string","maxLength":36},{"type":"null"}],"title":"X-Confirmation-Id"}},{"name":"x-chat-id","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"X-Chat-Id"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/WebhookConnectionCreateRequest"}}}},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/WebhookConnectionWithApiKeyResponse"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}},"patch":{"tags":["authenticated","integrations"],"summary":"Update Connection","operationId":"update_connection_integrations_modernize_connection_patch","security":[{"APIKeyHeader":[]},{"HTTPBearer":[]}],"parameters":[{"name":"organization-id","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Organization-Id"}},{"name":"x-user-id","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"X-User-Id"}},{"name":"timezone","in":"header","required":false,"schema":{"type":"string","default":"UTC","title":"Timezone"}},{"name":"x-actor-email","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"X-Actor-Email"}},{"name":"x-request-source","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"X-Request-Source"}},{"name":"x-operation-id","in":"header","required":false,"schema":{"anyOf":[{"type":"string","maxLength":36},{"type":"null"}],"title":"X-Operation-Id"}},{"name":"x-commit-message","in":"header","required":false,"schema":{"anyOf":[{"type":"string","minLength":1},{"type":"null"}],"title":"X-Commit-Message"}},{"name":"x-confirmation-id","in":"header","required":false,"schema":{"anyOf":[{"type":"string","maxLength":36},{"type":"null"}],"title":"X-Confirmation-Id"}},{"name":"x-chat-id","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"X-Chat-Id"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/WebhookConnectionUpdateRequest"}}}},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/WebhookConnectionOnlyResponse"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/integrations/modernize/connection/rotate-api-key":{"post":{"tags":["authenticated","integrations"],"summary":"Rotate Connection Api Key","operationId":"rotate_connection_api_key_integrations_modernize_connection_rotate_api_key_post","security":[{"APIKeyHeader":[]},{"HTTPBearer":[]}],"parameters":[{"name":"organization-id","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Organization-Id"}},{"name":"x-user-id","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"X-User-Id"}},{"name":"timezone","in":"header","required":false,"schema":{"type":"string","default":"UTC","title":"Timezone"}},{"name":"x-actor-email","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"X-Actor-Email"}},{"name":"x-request-source","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"X-Request-Source"}},{"name":"x-operation-id","in":"header","required":false,"schema":{"anyOf":[{"type":"string","maxLength":36},{"type":"null"}],"title":"X-Operation-Id"}},{"name":"x-commit-message","in":"header","required":false,"schema":{"anyOf":[{"type":"string","minLength":1},{"type":"null"}],"title":"X-Commit-Message"}},{"name":"x-confirmation-id","in":"header","required":false,"schema":{"anyOf":[{"type":"string","maxLength":36},{"type":"null"}],"title":"X-Confirmation-Id"}},{"name":"x-chat-id","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"X-Chat-Id"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/WebhookConnectionWithApiKeyResponse"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/announcements/active":{"get":{"tags":["authenticated","announcements"],"summary":"Read Active Announcement","operationId":"read_active_announcement_announcements_active_get","security":[{"APIKeyHeader":[]},{"HTTPBearer":[]}],"parameters":[{"name":"organization-id","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Organization-Id"}},{"name":"x-user-id","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"X-User-Id"}},{"name":"timezone","in":"header","required":false,"schema":{"type":"string","default":"UTC","title":"Timezone"}},{"name":"x-actor-email","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"X-Actor-Email"}},{"name":"x-request-source","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"X-Request-Source"}},{"name":"x-operation-id","in":"header","required":false,"schema":{"anyOf":[{"type":"string","maxLength":36},{"type":"null"}],"title":"X-Operation-Id"}},{"name":"x-commit-message","in":"header","required":false,"schema":{"anyOf":[{"type":"string","minLength":1},{"type":"null"}],"title":"X-Commit-Message"}},{"name":"x-confirmation-id","in":"header","required":false,"schema":{"anyOf":[{"type":"string","maxLength":36},{"type":"null"}],"title":"X-Confirmation-Id"}},{"name":"x-chat-id","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"X-Chat-Id"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"anyOf":[{"$ref":"#/components/schemas/AnnouncementResponse"},{"type":"null"}],"title":"Response Read Active Announcement Announcements Active Get"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/announcements/{announcement_id}/dismiss":{"post":{"tags":["authenticated","announcements"],"summary":"Dismiss Announcement","operationId":"dismiss_announcement_announcements__announcement_id__dismiss_post","security":[{"APIKeyHeader":[]},{"HTTPBearer":[]}],"parameters":[{"name":"announcement_id","in":"path","required":true,"schema":{"type":"string","title":"Announcement Id"}},{"name":"organization-id","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Organization-Id"}},{"name":"x-user-id","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"X-User-Id"}},{"name":"timezone","in":"header","required":false,"schema":{"type":"string","default":"UTC","title":"Timezone"}},{"name":"x-actor-email","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"X-Actor-Email"}},{"name":"x-request-source","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"X-Request-Source"}},{"name":"x-operation-id","in":"header","required":false,"schema":{"anyOf":[{"type":"string","maxLength":36},{"type":"null"}],"title":"X-Operation-Id"}},{"name":"x-commit-message","in":"header","required":false,"schema":{"anyOf":[{"type":"string","minLength":1},{"type":"null"}],"title":"X-Commit-Message"}},{"name":"x-confirmation-id","in":"header","required":false,"schema":{"anyOf":[{"type":"string","maxLength":36},{"type":"null"}],"title":"X-Confirmation-Id"}},{"name":"x-chat-id","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"X-Chat-Id"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/DismissAnnouncementResponse"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/ask-jenny/chat/stream":{"post":{"tags":["authenticated","ask-jenny"],"summary":"Chat Stream","description":"Streaming chat endpoint using Server-Sent Events.\n\nSend a message and receive tokens as they are generated in real-time.","operationId":"chat_stream_ask_jenny_chat_stream_post","security":[{"APIKeyHeader":[]},{"HTTPBearer":[]}],"parameters":[{"name":"organization-id","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Organization-Id"}},{"name":"x-user-id","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"X-User-Id"}},{"name":"timezone","in":"header","required":false,"schema":{"type":"string","default":"UTC","title":"Timezone"}},{"name":"x-actor-email","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"X-Actor-Email"}},{"name":"x-request-source","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"X-Request-Source"}},{"name":"x-operation-id","in":"header","required":false,"schema":{"anyOf":[{"type":"string","maxLength":36},{"type":"null"}],"title":"X-Operation-Id"}},{"name":"x-commit-message","in":"header","required":false,"schema":{"anyOf":[{"type":"string","minLength":1},{"type":"null"}],"title":"X-Commit-Message"}},{"name":"x-confirmation-id","in":"header","required":false,"schema":{"anyOf":[{"type":"string","maxLength":36},{"type":"null"}],"title":"X-Confirmation-Id"}},{"name":"x-chat-id","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"X-Chat-Id"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"type":"object","additionalProperties":true,"title":"Request Body"}}}},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/crm/contacts/{contact_id}/timeline":{"get":{"tags":["authenticated","crm"],"summary":"Customer Timeline","operationId":"customer_timeline_crm_contacts__contact_id__timeline_get","security":[{"APIKeyHeader":[]},{"HTTPBearer":[]}],"parameters":[{"name":"contact_id","in":"path","required":true,"schema":{"type":"string","title":"Contact Id"}},{"name":"cursor","in":"query","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Cursor"}},{"name":"limit","in":"query","required":false,"schema":{"type":"integer","maximum":100,"minimum":1,"default":50,"title":"Limit"}},{"name":"flatten_messages","in":"query","required":false,"schema":{"type":"boolean","default":false,"title":"Flatten Messages"}},{"name":"flatten_events","in":"query","required":false,"schema":{"type":"boolean","default":false,"title":"Flatten Events"}},{"name":"group_voice_engagements","in":"query","required":false,"schema":{"type":"boolean","default":false,"title":"Group Voice Engagements"}},{"name":"exclude_engagement_id","in":"query","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Exclude Engagement Id"}},{"name":"include_service_titan_events","in":"query","required":false,"schema":{"type":"boolean","default":false,"title":"Include Service Titan Events"}},{"name":"include_ai_response_changes","in":"query","required":false,"schema":{"type":"boolean","default":false,"title":"Include Ai Response Changes"}},{"name":"include_call_tag_results","in":"query","required":false,"schema":{"type":"boolean","default":false,"title":"Include Call Tag Results"}},{"name":"include_notes","in":"query","required":false,"schema":{"type":"boolean","default":false,"title":"Include Notes"}},{"name":"organization-id","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Organization-Id"}},{"name":"x-user-id","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"X-User-Id"}},{"name":"timezone","in":"header","required":false,"schema":{"type":"string","default":"UTC","title":"Timezone"}},{"name":"x-actor-email","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"X-Actor-Email"}},{"name":"x-request-source","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"X-Request-Source"}},{"name":"x-operation-id","in":"header","required":false,"schema":{"anyOf":[{"type":"string","maxLength":36},{"type":"null"}],"title":"X-Operation-Id"}},{"name":"x-commit-message","in":"header","required":false,"schema":{"anyOf":[{"type":"string","minLength":1},{"type":"null"}],"title":"X-Commit-Message"}},{"name":"x-confirmation-id","in":"header","required":false,"schema":{"anyOf":[{"type":"string","maxLength":36},{"type":"null"}],"title":"X-Confirmation-Id"}},{"name":"x-chat-id","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"X-Chat-Id"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/CustomerTimelinePagePublic"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/crm/contacts/{contact_id}/escalations":{"get":{"tags":["authenticated","crm"],"summary":"Customer Escalations","operationId":"customer_escalations_crm_contacts__contact_id__escalations_get","security":[{"APIKeyHeader":[]},{"HTTPBearer":[]}],"parameters":[{"name":"contact_id","in":"path","required":true,"schema":{"type":"string","title":"Contact Id"}},{"name":"organization-id","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Organization-Id"}},{"name":"x-user-id","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"X-User-Id"}},{"name":"timezone","in":"header","required":false,"schema":{"type":"string","default":"UTC","title":"Timezone"}},{"name":"x-actor-email","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"X-Actor-Email"}},{"name":"x-request-source","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"X-Request-Source"}},{"name":"x-operation-id","in":"header","required":false,"schema":{"anyOf":[{"type":"string","maxLength":36},{"type":"null"}],"title":"X-Operation-Id"}},{"name":"x-commit-message","in":"header","required":false,"schema":{"anyOf":[{"type":"string","minLength":1},{"type":"null"}],"title":"X-Commit-Message"}},{"name":"x-confirmation-id","in":"header","required":false,"schema":{"anyOf":[{"type":"string","maxLength":36},{"type":"null"}],"title":"X-Confirmation-Id"}},{"name":"x-chat-id","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"X-Chat-Id"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"type":"array","items":{"$ref":"#/components/schemas/EscalationBasicPublic"},"title":"Response Customer Escalations Crm Contacts  Contact Id  Escalations Get"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/crm/contacts/{contact_id}/timeline/scheduled-actions/{trigger_id}/prompt":{"get":{"tags":["authenticated","crm"],"summary":"Customer Timeline Scheduled Action Prompt","operationId":"customer_timeline_scheduled_action_prompt_crm_contacts__contact_id__timeline_scheduled_actions__trigger_id__prompt_get","security":[{"APIKeyHeader":[]},{"HTTPBearer":[]}],"parameters":[{"name":"contact_id","in":"path","required":true,"schema":{"type":"string","title":"Contact Id"}},{"name":"trigger_id","in":"path","required":true,"schema":{"type":"string","title":"Trigger Id"}},{"name":"organization-id","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Organization-Id"}},{"name":"x-user-id","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"X-User-Id"}},{"name":"timezone","in":"header","required":false,"schema":{"type":"string","default":"UTC","title":"Timezone"}},{"name":"x-actor-email","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"X-Actor-Email"}},{"name":"x-request-source","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"X-Request-Source"}},{"name":"x-operation-id","in":"header","required":false,"schema":{"anyOf":[{"type":"string","maxLength":36},{"type":"null"}],"title":"X-Operation-Id"}},{"name":"x-commit-message","in":"header","required":false,"schema":{"anyOf":[{"type":"string","minLength":1},{"type":"null"}],"title":"X-Commit-Message"}},{"name":"x-confirmation-id","in":"header","required":false,"schema":{"anyOf":[{"type":"string","maxLength":36},{"type":"null"}],"title":"X-Confirmation-Id"}},{"name":"x-chat-id","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"X-Chat-Id"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/CustomerTimelineScheduledActionPromptPublic"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/crm/contacts/{contact_id}/contact-methods":{"get":{"tags":["authenticated","crm"],"summary":"List Contact Methods","operationId":"list_contact_methods_crm_contacts__contact_id__contact_methods_get","security":[{"APIKeyHeader":[]},{"HTTPBearer":[]}],"parameters":[{"name":"contact_id","in":"path","required":true,"schema":{"type":"string","title":"Contact Id"}},{"name":"organization-id","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Organization-Id"}},{"name":"x-user-id","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"X-User-Id"}},{"name":"timezone","in":"header","required":false,"schema":{"type":"string","default":"UTC","title":"Timezone"}},{"name":"x-actor-email","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"X-Actor-Email"}},{"name":"x-request-source","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"X-Request-Source"}},{"name":"x-operation-id","in":"header","required":false,"schema":{"anyOf":[{"type":"string","maxLength":36},{"type":"null"}],"title":"X-Operation-Id"}},{"name":"x-commit-message","in":"header","required":false,"schema":{"anyOf":[{"type":"string","minLength":1},{"type":"null"}],"title":"X-Commit-Message"}},{"name":"x-confirmation-id","in":"header","required":false,"schema":{"anyOf":[{"type":"string","maxLength":36},{"type":"null"}],"title":"X-Confirmation-Id"}},{"name":"x-chat-id","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"X-Chat-Id"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"type":"array","items":{"$ref":"#/components/schemas/ContactMethodResponse"},"title":"Response List Contact Methods Crm Contacts  Contact Id  Contact Methods Get"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/crm/contacts/{contact_id}/contact-method-ranking":{"get":{"tags":["authenticated","crm"],"summary":"Contact Method Ranking","operationId":"contact_method_ranking_crm_contacts__contact_id__contact_method_ranking_get","security":[{"APIKeyHeader":[]},{"HTTPBearer":[]}],"parameters":[{"name":"contact_id","in":"path","required":true,"schema":{"type":"string","title":"Contact Id"}},{"name":"organization-id","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Organization-Id"}},{"name":"x-user-id","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"X-User-Id"}},{"name":"timezone","in":"header","required":false,"schema":{"type":"string","default":"UTC","title":"Timezone"}},{"name":"x-actor-email","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"X-Actor-Email"}},{"name":"x-request-source","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"X-Request-Source"}},{"name":"x-operation-id","in":"header","required":false,"schema":{"anyOf":[{"type":"string","maxLength":36},{"type":"null"}],"title":"X-Operation-Id"}},{"name":"x-commit-message","in":"header","required":false,"schema":{"anyOf":[{"type":"string","minLength":1},{"type":"null"}],"title":"X-Commit-Message"}},{"name":"x-confirmation-id","in":"header","required":false,"schema":{"anyOf":[{"type":"string","maxLength":36},{"type":"null"}],"title":"X-Confirmation-Id"}},{"name":"x-chat-id","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"X-Chat-Id"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ContactMethodRankingResponse"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/crm/contact-methods/{contact_method_id}":{"patch":{"tags":["authenticated","crm"],"summary":"Toggle Do Not Text","operationId":"toggle_do_not_text_crm_contact_methods__contact_method_id__patch","security":[{"APIKeyHeader":[]},{"HTTPBearer":[]}],"parameters":[{"name":"contact_method_id","in":"path","required":true,"schema":{"type":"string","title":"Contact Method Id"}},{"name":"organization-id","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Organization-Id"}},{"name":"x-user-id","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"X-User-Id"}},{"name":"timezone","in":"header","required":false,"schema":{"type":"string","default":"UTC","title":"Timezone"}},{"name":"x-actor-email","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"X-Actor-Email"}},{"name":"x-request-source","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"X-Request-Source"}},{"name":"x-operation-id","in":"header","required":false,"schema":{"anyOf":[{"type":"string","maxLength":36},{"type":"null"}],"title":"X-Operation-Id"}},{"name":"x-commit-message","in":"header","required":false,"schema":{"anyOf":[{"type":"string","minLength":1},{"type":"null"}],"title":"X-Commit-Message"}},{"name":"x-confirmation-id","in":"header","required":false,"schema":{"anyOf":[{"type":"string","maxLength":36},{"type":"null"}],"title":"X-Confirmation-Id"}},{"name":"x-chat-id","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"X-Chat-Id"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ToggleDoNotTextRequest"}}}},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ContactMethodResponse"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/crm/contacts/dnc":{"get":{"tags":["authenticated","crm"],"summary":"List Dnc Contacts","operationId":"list_dnc_contacts_crm_contacts_dnc_get","security":[{"APIKeyHeader":[]},{"HTTPBearer":[]}],"parameters":[{"name":"limit","in":"query","required":false,"schema":{"type":"integer","default":10,"title":"Limit"}},{"name":"page","in":"query","required":false,"schema":{"type":"integer","default":1,"title":"Page"}},{"name":"search","in":"query","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Search"}},{"name":"organization-id","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Organization-Id"}},{"name":"x-user-id","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"X-User-Id"}},{"name":"timezone","in":"header","required":false,"schema":{"type":"string","default":"UTC","title":"Timezone"}},{"name":"x-actor-email","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"X-Actor-Email"}},{"name":"x-request-source","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"X-Request-Source"}},{"name":"x-operation-id","in":"header","required":false,"schema":{"anyOf":[{"type":"string","maxLength":36},{"type":"null"}],"title":"X-Operation-Id"}},{"name":"x-commit-message","in":"header","required":false,"schema":{"anyOf":[{"type":"string","minLength":1},{"type":"null"}],"title":"X-Commit-Message"}},{"name":"x-confirmation-id","in":"header","required":false,"schema":{"anyOf":[{"type":"string","maxLength":36},{"type":"null"}],"title":"X-Confirmation-Id"}},{"name":"x-chat-id","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"X-Chat-Id"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ContactPage"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/crm/maintenance-types":{"get":{"tags":["authenticated","crm"],"summary":"List Maintenance Types","description":"The maintenances a stop request can name, for the stop panel's picker.","operationId":"list_maintenance_types_crm_maintenance_types_get","security":[{"APIKeyHeader":[]},{"HTTPBearer":[]}],"parameters":[{"name":"organization-id","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Organization-Id"}},{"name":"x-user-id","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"X-User-Id"}},{"name":"timezone","in":"header","required":false,"schema":{"type":"string","default":"UTC","title":"Timezone"}},{"name":"x-actor-email","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"X-Actor-Email"}},{"name":"x-request-source","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"X-Request-Source"}},{"name":"x-operation-id","in":"header","required":false,"schema":{"anyOf":[{"type":"string","maxLength":36},{"type":"null"}],"title":"X-Operation-Id"}},{"name":"x-commit-message","in":"header","required":false,"schema":{"anyOf":[{"type":"string","minLength":1},{"type":"null"}],"title":"X-Commit-Message"}},{"name":"x-confirmation-id","in":"header","required":false,"schema":{"anyOf":[{"type":"string","maxLength":36},{"type":"null"}],"title":"X-Confirmation-Id"}},{"name":"x-chat-id","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"X-Chat-Id"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"type":"array","items":{"$ref":"#/components/schemas/MaintenanceTypeOptionPublic"},"title":"Response List Maintenance Types Crm Maintenance Types Get"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/crm/contacts/{contact_id}/stop-policy":{"get":{"tags":["authenticated","crm"],"summary":"Contact Stop Policy","description":"Every live stop standing against this contact, at every level.\n\nThe boolean on ``ContactPublic`` says whether outreach is off; this says what\nturned it off, so the office can tell a campaign opt-out from a number the\ncarrier blocked from a request to be removed entirely.","operationId":"contact_stop_policy_crm_contacts__contact_id__stop_policy_get","security":[{"APIKeyHeader":[]},{"HTTPBearer":[]}],"parameters":[{"name":"contact_id","in":"path","required":true,"schema":{"type":"string","title":"Contact Id"}},{"name":"organization-id","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Organization-Id"}},{"name":"x-user-id","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"X-User-Id"}},{"name":"timezone","in":"header","required":false,"schema":{"type":"string","default":"UTC","title":"Timezone"}},{"name":"x-actor-email","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"X-Actor-Email"}},{"name":"x-request-source","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"X-Request-Source"}},{"name":"x-operation-id","in":"header","required":false,"schema":{"anyOf":[{"type":"string","maxLength":36},{"type":"null"}],"title":"X-Operation-Id"}},{"name":"x-commit-message","in":"header","required":false,"schema":{"anyOf":[{"type":"string","minLength":1},{"type":"null"}],"title":"X-Commit-Message"}},{"name":"x-confirmation-id","in":"header","required":false,"schema":{"anyOf":[{"type":"string","maxLength":36},{"type":"null"}],"title":"X-Confirmation-Id"}},{"name":"x-chat-id","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"X-Chat-Id"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ContactStopPolicyPublic"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/crm/contacts/{contact_id}/stop-requests":{"post":{"tags":["authenticated","crm"],"summary":"Create Stop Request","description":"Record a stop the office was told about, at the level they were told it.\n\nReturns the whole policy rather than the one row: marking at any level can\nchange the computed answer, and the panel re-renders from this.","operationId":"create_stop_request_crm_contacts__contact_id__stop_requests_post","security":[{"APIKeyHeader":[]},{"HTTPBearer":[]}],"parameters":[{"name":"contact_id","in":"path","required":true,"schema":{"type":"string","title":"Contact Id"}},{"name":"organization-id","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Organization-Id"}},{"name":"x-user-id","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"X-User-Id"}},{"name":"timezone","in":"header","required":false,"schema":{"type":"string","default":"UTC","title":"Timezone"}},{"name":"x-actor-email","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"X-Actor-Email"}},{"name":"x-request-source","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"X-Request-Source"}},{"name":"x-operation-id","in":"header","required":false,"schema":{"anyOf":[{"type":"string","maxLength":36},{"type":"null"}],"title":"X-Operation-Id"}},{"name":"x-commit-message","in":"header","required":false,"schema":{"anyOf":[{"type":"string","minLength":1},{"type":"null"}],"title":"X-Commit-Message"}},{"name":"x-confirmation-id","in":"header","required":false,"schema":{"anyOf":[{"type":"string","maxLength":36},{"type":"null"}],"title":"X-Confirmation-Id"}},{"name":"x-chat-id","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"X-Chat-Id"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/CreateStopRequestBody"}}}},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ContactStopPolicyPublic"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/crm/contacts/{contact_id}/stop-requests/{request_id}/revoke":{"post":{"tags":["authenticated","crm"],"summary":"Revoke Stop Request","operationId":"revoke_stop_request_crm_contacts__contact_id__stop_requests__request_id__revoke_post","security":[{"APIKeyHeader":[]},{"HTTPBearer":[]}],"parameters":[{"name":"contact_id","in":"path","required":true,"schema":{"type":"string","title":"Contact Id"}},{"name":"request_id","in":"path","required":true,"schema":{"type":"string","title":"Request Id"}},{"name":"organization-id","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Organization-Id"}},{"name":"x-user-id","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"X-User-Id"}},{"name":"timezone","in":"header","required":false,"schema":{"type":"string","default":"UTC","title":"Timezone"}},{"name":"x-actor-email","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"X-Actor-Email"}},{"name":"x-request-source","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"X-Request-Source"}},{"name":"x-operation-id","in":"header","required":false,"schema":{"anyOf":[{"type":"string","maxLength":36},{"type":"null"}],"title":"X-Operation-Id"}},{"name":"x-commit-message","in":"header","required":false,"schema":{"anyOf":[{"type":"string","minLength":1},{"type":"null"}],"title":"X-Commit-Message"}},{"name":"x-confirmation-id","in":"header","required":false,"schema":{"anyOf":[{"type":"string","maxLength":36},{"type":"null"}],"title":"X-Confirmation-Id"}},{"name":"x-chat-id","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"X-Chat-Id"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/RevokeStopRequestBody"}}}},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ContactStopPolicyPublic"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/crm/contacts/{contact_id}/dnc":{"post":{"tags":["authenticated","crm"],"summary":"Toggle Do Not Contact","operationId":"toggle_do_not_contact_crm_contacts__contact_id__dnc_post","security":[{"APIKeyHeader":[]},{"HTTPBearer":[]}],"parameters":[{"name":"contact_id","in":"path","required":true,"schema":{"type":"string","title":"Contact Id"}},{"name":"organization-id","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Organization-Id"}},{"name":"x-user-id","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"X-User-Id"}},{"name":"timezone","in":"header","required":false,"schema":{"type":"string","default":"UTC","title":"Timezone"}},{"name":"x-actor-email","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"X-Actor-Email"}},{"name":"x-request-source","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"X-Request-Source"}},{"name":"x-operation-id","in":"header","required":false,"schema":{"anyOf":[{"type":"string","maxLength":36},{"type":"null"}],"title":"X-Operation-Id"}},{"name":"x-commit-message","in":"header","required":false,"schema":{"anyOf":[{"type":"string","minLength":1},{"type":"null"}],"title":"X-Commit-Message"}},{"name":"x-confirmation-id","in":"header","required":false,"schema":{"anyOf":[{"type":"string","maxLength":36},{"type":"null"}],"title":"X-Confirmation-Id"}},{"name":"x-chat-id","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"X-Chat-Id"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ToggleDoNotContactRequest"}}}},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ContactPublic"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/crm/contacts/{contact_id}/notes":{"post":{"tags":["authenticated","crm"],"summary":"Create Note","operationId":"create_note_crm_contacts__contact_id__notes_post","security":[{"APIKeyHeader":[]},{"HTTPBearer":[]}],"parameters":[{"name":"contact_id","in":"path","required":true,"schema":{"type":"string","title":"Contact Id"}},{"name":"organization-id","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Organization-Id"}},{"name":"x-user-id","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"X-User-Id"}},{"name":"timezone","in":"header","required":false,"schema":{"type":"string","default":"UTC","title":"Timezone"}},{"name":"x-actor-email","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"X-Actor-Email"}},{"name":"x-request-source","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"X-Request-Source"}},{"name":"x-operation-id","in":"header","required":false,"schema":{"anyOf":[{"type":"string","maxLength":36},{"type":"null"}],"title":"X-Operation-Id"}},{"name":"x-commit-message","in":"header","required":false,"schema":{"anyOf":[{"type":"string","minLength":1},{"type":"null"}],"title":"X-Commit-Message"}},{"name":"x-confirmation-id","in":"header","required":false,"schema":{"anyOf":[{"type":"string","maxLength":36},{"type":"null"}],"title":"X-Confirmation-Id"}},{"name":"x-chat-id","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"X-Chat-Id"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/CustomerNoteCreate"}}}},"responses":{"201":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/CustomerTimelineNotePublic"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/crm/contacts/{contact_id}/notes/{note_id}":{"patch":{"tags":["authenticated","crm"],"summary":"Update Note","operationId":"update_note_crm_contacts__contact_id__notes__note_id__patch","security":[{"APIKeyHeader":[]},{"HTTPBearer":[]}],"parameters":[{"name":"contact_id","in":"path","required":true,"schema":{"type":"string","title":"Contact Id"}},{"name":"note_id","in":"path","required":true,"schema":{"type":"string","title":"Note Id"}},{"name":"organization-id","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Organization-Id"}},{"name":"x-user-id","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"X-User-Id"}},{"name":"timezone","in":"header","required":false,"schema":{"type":"string","default":"UTC","title":"Timezone"}},{"name":"x-actor-email","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"X-Actor-Email"}},{"name":"x-request-source","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"X-Request-Source"}},{"name":"x-operation-id","in":"header","required":false,"schema":{"anyOf":[{"type":"string","maxLength":36},{"type":"null"}],"title":"X-Operation-Id"}},{"name":"x-commit-message","in":"header","required":false,"schema":{"anyOf":[{"type":"string","minLength":1},{"type":"null"}],"title":"X-Commit-Message"}},{"name":"x-confirmation-id","in":"header","required":false,"schema":{"anyOf":[{"type":"string","maxLength":36},{"type":"null"}],"title":"X-Confirmation-Id"}},{"name":"x-chat-id","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"X-Chat-Id"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/CustomerNoteUpdate"}}}},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/CustomerTimelineNotePublic"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}},"delete":{"tags":["authenticated","crm"],"summary":"Delete Note","operationId":"delete_note_crm_contacts__contact_id__notes__note_id__delete","security":[{"APIKeyHeader":[]},{"HTTPBearer":[]}],"parameters":[{"name":"contact_id","in":"path","required":true,"schema":{"type":"string","title":"Contact Id"}},{"name":"note_id","in":"path","required":true,"schema":{"type":"string","title":"Note Id"}},{"name":"organization-id","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Organization-Id"}},{"name":"x-user-id","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"X-User-Id"}},{"name":"timezone","in":"header","required":false,"schema":{"type":"string","default":"UTC","title":"Timezone"}},{"name":"x-actor-email","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"X-Actor-Email"}},{"name":"x-request-source","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"X-Request-Source"}},{"name":"x-operation-id","in":"header","required":false,"schema":{"anyOf":[{"type":"string","maxLength":36},{"type":"null"}],"title":"X-Operation-Id"}},{"name":"x-commit-message","in":"header","required":false,"schema":{"anyOf":[{"type":"string","minLength":1},{"type":"null"}],"title":"X-Commit-Message"}},{"name":"x-confirmation-id","in":"header","required":false,"schema":{"anyOf":[{"type":"string","maxLength":36},{"type":"null"}],"title":"X-Confirmation-Id"}},{"name":"x-chat-id","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"X-Chat-Id"}}],"responses":{"204":{"description":"Successful Response"},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/email/send":{"post":{"tags":["authenticated","email"],"summary":"Send Email","operationId":"send_email_email_send_post","security":[{"APIKeyHeader":[]},{"HTTPBearer":[]}],"parameters":[{"name":"organization-id","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Organization-Id"}},{"name":"x-user-id","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"X-User-Id"}},{"name":"timezone","in":"header","required":false,"schema":{"type":"string","default":"UTC","title":"Timezone"}},{"name":"x-actor-email","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"X-Actor-Email"}},{"name":"x-request-source","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"X-Request-Source"}},{"name":"x-operation-id","in":"header","required":false,"schema":{"anyOf":[{"type":"string","maxLength":36},{"type":"null"}],"title":"X-Operation-Id"}},{"name":"x-commit-message","in":"header","required":false,"schema":{"anyOf":[{"type":"string","minLength":1},{"type":"null"}],"title":"X-Commit-Message"}},{"name":"x-confirmation-id","in":"header","required":false,"schema":{"anyOf":[{"type":"string","maxLength":36},{"type":"null"}],"title":"X-Confirmation-Id"}},{"name":"x-chat-id","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"X-Chat-Id"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/SendEmailRequest"}}}},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/engagements/search/filtered":{"get":{"tags":["authenticated","engagements"],"summary":"Search Engagements","operationId":"search_engagements_engagements_search_filtered_get","security":[{"APIKeyHeader":[]},{"HTTPBearer":[]}],"parameters":[{"name":"query","in":"query","required":true,"schema":{"type":"string","title":"Query"}},{"name":"cursor","in":"query","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Cursor"}},{"name":"is_simulated","in":"query","required":false,"schema":{"anyOf":[{"type":"boolean"},{"type":"null"}],"title":"Is Simulated"}},{"name":"organization_ids","in":"query","required":false,"schema":{"anyOf":[{"type":"array","items":{"type":"string"}},{"type":"null"}],"title":"Organization Ids"}},{"name":"match","in":"query","required":false,"schema":{"enum":["identity","hybrid"],"type":"string","default":"identity","title":"Match"}},{"name":"filters","in":"query","required":false,"schema":{"anyOf":[{"type":"string","maxLength":16000},{"type":"null"}],"title":"Filters"}},{"name":"conversation_kind","in":"query","required":false,"schema":{"anyOf":[{"enum":["customers","ask_jenny"],"type":"string"},{"type":"null"}],"title":"Conversation Kind"}},{"name":"organization-id","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Organization-Id"}},{"name":"x-user-id","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"X-User-Id"}},{"name":"timezone","in":"header","required":false,"schema":{"type":"string","default":"UTC","title":"Timezone"}},{"name":"x-actor-email","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"X-Actor-Email"}},{"name":"x-request-source","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"X-Request-Source"}},{"name":"x-operation-id","in":"header","required":false,"schema":{"anyOf":[{"type":"string","maxLength":36},{"type":"null"}],"title":"X-Operation-Id"}},{"name":"x-commit-message","in":"header","required":false,"schema":{"anyOf":[{"type":"string","minLength":1},{"type":"null"}],"title":"X-Commit-Message"}},{"name":"x-confirmation-id","in":"header","required":false,"schema":{"anyOf":[{"type":"string","maxLength":36},{"type":"null"}],"title":"X-Confirmation-Id"}},{"name":"x-chat-id","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"X-Chat-Id"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ConversationSearchPage"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/engagements/search":{"get":{"tags":["authenticated","engagements"],"summary":"Search Engagements","operationId":"search_engagements_engagements_search_get","security":[{"APIKeyHeader":[]},{"HTTPBearer":[]}],"parameters":[{"name":"query","in":"query","required":true,"schema":{"type":"string","title":"Query"}},{"name":"cursor","in":"query","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Cursor"}},{"name":"is_simulated","in":"query","required":false,"schema":{"anyOf":[{"type":"boolean"},{"type":"null"}],"title":"Is Simulated"}},{"name":"organization_ids","in":"query","required":false,"schema":{"anyOf":[{"type":"array","items":{"type":"string"}},{"type":"null"}],"title":"Organization Ids"}},{"name":"match","in":"query","required":false,"schema":{"enum":["identity","hybrid"],"type":"string","default":"identity","title":"Match"}},{"name":"filters","in":"query","required":false,"schema":{"anyOf":[{"type":"string","maxLength":16000},{"type":"null"}],"title":"Filters"}},{"name":"conversation_kind","in":"query","required":false,"schema":{"anyOf":[{"enum":["customers","ask_jenny"],"type":"string"},{"type":"null"}],"title":"Conversation Kind"}},{"name":"organization-id","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Organization-Id"}},{"name":"x-user-id","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"X-User-Id"}},{"name":"timezone","in":"header","required":false,"schema":{"type":"string","default":"UTC","title":"Timezone"}},{"name":"x-actor-email","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"X-Actor-Email"}},{"name":"x-request-source","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"X-Request-Source"}},{"name":"x-operation-id","in":"header","required":false,"schema":{"anyOf":[{"type":"string","maxLength":36},{"type":"null"}],"title":"X-Operation-Id"}},{"name":"x-commit-message","in":"header","required":false,"schema":{"anyOf":[{"type":"string","minLength":1},{"type":"null"}],"title":"X-Commit-Message"}},{"name":"x-confirmation-id","in":"header","required":false,"schema":{"anyOf":[{"type":"string","maxLength":36},{"type":"null"}],"title":"X-Confirmation-Id"}},{"name":"x-chat-id","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"X-Chat-Id"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ConversationSearchPage"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/engagements/count":{"get":{"tags":["authenticated","engagements"],"summary":"Count Engagements","description":"Total for the list filter set, fetched in parallel with the first page.","operationId":"count_engagements_engagements_count_get","security":[{"APIKeyHeader":[]},{"HTTPBearer":[]}],"parameters":[{"name":"status","in":"query","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Status"}},{"name":"booked","in":"query","required":false,"schema":{"anyOf":[{"type":"boolean"},{"type":"null"}],"title":"Booked"}},{"name":"booking_status","in":"query","required":false,"schema":{"anyOf":[{"type":"array","items":{"$ref":"#/components/schemas/EngagementBookingStatus"}},{"type":"null"}],"title":"Booking Status"}},{"name":"resolved","in":"query","required":false,"schema":{"anyOf":[{"type":"boolean"},{"type":"null"}],"title":"Resolved"}},{"name":"escalation_status","in":"query","required":false,"schema":{"anyOf":[{"type":"array","items":{"$ref":"#/components/schemas/EngagementEscalationStatus"}},{"type":"null"}],"title":"Escalation Status"}},{"name":"hidden","in":"query","required":false,"schema":{"anyOf":[{"type":"boolean"},{"type":"null"}],"default":false,"title":"Hidden"}},{"name":"ai_paused","in":"query","required":false,"schema":{"anyOf":[{"type":"boolean"},{"type":"null"}],"title":"Ai Paused"}},{"name":"needs_reply","in":"query","required":false,"schema":{"anyOf":[{"type":"boolean"},{"type":"null"}],"title":"Needs Reply"}},{"name":"additionally_include_booked","in":"query","required":false,"schema":{"type":"boolean","default":false,"title":"Additionally Include Booked"}},{"name":"additionally_include_resolved","in":"query","required":false,"schema":{"type":"boolean","default":false,"title":"Additionally Include Resolved"}},{"name":"needs_attention","in":"query","required":false,"schema":{"anyOf":[{"type":"boolean"},{"type":"null"}],"title":"Needs Attention"}},{"name":"agent_id","in":"query","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Agent Id"}},{"name":"agent_v2_id","in":"query","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Agent V2 Id"}},{"name":"agent_ids","in":"query","required":false,"schema":{"anyOf":[{"type":"array","items":{"type":"string"}},{"type":"null"}],"title":"Agent Ids"}},{"name":"agent_v2_ids","in":"query","required":false,"schema":{"anyOf":[{"type":"array","items":{"type":"string"}},{"type":"null"}],"title":"Agent V2 Ids"}},{"name":"campaign_id","in":"query","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Campaign Id"}},{"name":"is_simulated","in":"query","required":false,"schema":{"anyOf":[{"type":"boolean"},{"type":"null"}],"title":"Is Simulated"}},{"name":"source","in":"query","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Source"}},{"name":"created_after","in":"query","required":false,"schema":{"anyOf":[{"type":"string","format":"date-time"},{"type":"null"}],"title":"Created After"}},{"name":"created_before","in":"query","required":false,"schema":{"anyOf":[{"type":"string","format":"date-time"},{"type":"null"}],"title":"Created Before"}},{"name":"conversation_kind","in":"query","required":false,"schema":{"anyOf":[{"enum":["customers","ask_jenny"],"type":"string"},{"type":"null"}],"title":"Conversation Kind"}},{"name":"group_by_customer","in":"query","required":false,"schema":{"type":"boolean","default":false,"title":"Group By Customer"}},{"name":"organization_ids","in":"query","required":false,"schema":{"anyOf":[{"type":"array","items":{"type":"string"}},{"type":"null"}],"title":"Organization Ids"}},{"name":"organization-id","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Organization-Id"}},{"name":"x-user-id","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"X-User-Id"}},{"name":"timezone","in":"header","required":false,"schema":{"type":"string","default":"UTC","title":"Timezone"}},{"name":"x-actor-email","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"X-Actor-Email"}},{"name":"x-request-source","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"X-Request-Source"}},{"name":"x-operation-id","in":"header","required":false,"schema":{"anyOf":[{"type":"string","maxLength":36},{"type":"null"}],"title":"X-Operation-Id"}},{"name":"x-commit-message","in":"header","required":false,"schema":{"anyOf":[{"type":"string","minLength":1},{"type":"null"}],"title":"X-Commit-Message"}},{"name":"x-confirmation-id","in":"header","required":false,"schema":{"anyOf":[{"type":"string","maxLength":36},{"type":"null"}],"title":"X-Confirmation-Id"}},{"name":"x-chat-id","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"X-Chat-Id"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/EngagementCountPublic"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/engagements/sources":{"get":{"tags":["authenticated","engagements"],"summary":"List Engagement Sources","description":"Lead sources this org has actually received conversations from.\n\nBacks the inbox's Source facet. Declared above ``/{engagement_id}`` so the\nliteral path wins the match.","operationId":"list_engagement_sources_engagements_sources_get","security":[{"APIKeyHeader":[]},{"HTTPBearer":[]}],"parameters":[{"name":"organization-id","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Organization-Id"}},{"name":"x-user-id","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"X-User-Id"}},{"name":"timezone","in":"header","required":false,"schema":{"type":"string","default":"UTC","title":"Timezone"}},{"name":"x-actor-email","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"X-Actor-Email"}},{"name":"x-request-source","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"X-Request-Source"}},{"name":"x-operation-id","in":"header","required":false,"schema":{"anyOf":[{"type":"string","maxLength":36},{"type":"null"}],"title":"X-Operation-Id"}},{"name":"x-commit-message","in":"header","required":false,"schema":{"anyOf":[{"type":"string","minLength":1},{"type":"null"}],"title":"X-Commit-Message"}},{"name":"x-confirmation-id","in":"header","required":false,"schema":{"anyOf":[{"type":"string","maxLength":36},{"type":"null"}],"title":"X-Confirmation-Id"}},{"name":"x-chat-id","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"X-Chat-Id"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"type":"array","items":{"type":"string"},"title":"Response List Engagement Sources Engagements Sources Get"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/engagements/{engagement_id}/timeline":{"get":{"tags":["authenticated","engagements"],"summary":"Read Engagement Timeline","description":"Paginated, chronological event stream for an engagement.\n\n``cursor`` is the opaque ``{timestamp}|{event_id}`` token from the prior\npage's ``cursor``; ``reverse=True`` loads the most-recent page first (used\non initial open) then pages backward into older events.","operationId":"read_engagement_timeline_engagements__engagement_id__timeline_get","security":[{"APIKeyHeader":[]},{"HTTPBearer":[]}],"parameters":[{"name":"engagement_id","in":"path","required":true,"schema":{"type":"string","title":"Engagement Id"}},{"name":"cursor","in":"query","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Cursor"}},{"name":"reverse","in":"query","required":false,"schema":{"type":"boolean","default":false,"title":"Reverse"}},{"name":"include_ai_response_changes","in":"query","required":false,"schema":{"type":"boolean","default":false,"title":"Include Ai Response Changes"}},{"name":"organization-id","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Organization-Id"}},{"name":"x-user-id","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"X-User-Id"}},{"name":"timezone","in":"header","required":false,"schema":{"type":"string","default":"UTC","title":"Timezone"}},{"name":"x-actor-email","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"X-Actor-Email"}},{"name":"x-request-source","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"X-Request-Source"}},{"name":"x-operation-id","in":"header","required":false,"schema":{"anyOf":[{"type":"string","maxLength":36},{"type":"null"}],"title":"X-Operation-Id"}},{"name":"x-commit-message","in":"header","required":false,"schema":{"anyOf":[{"type":"string","minLength":1},{"type":"null"}],"title":"X-Commit-Message"}},{"name":"x-confirmation-id","in":"header","required":false,"schema":{"anyOf":[{"type":"string","maxLength":36},{"type":"null"}],"title":"X-Confirmation-Id"}},{"name":"x-chat-id","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"X-Chat-Id"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Page_Union_TimelineEventPublic__AiResponseChangeTimelinePublic__"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/engagements/{engagement_id}/conversation-review":{"get":{"tags":["authenticated","engagements"],"summary":"Read Conversation Review","description":"Transcript, audio URL, and evaluation results for a conversation.","operationId":"read_conversation_review_engagements__engagement_id__conversation_review_get","security":[{"APIKeyHeader":[]},{"HTTPBearer":[]}],"parameters":[{"name":"engagement_id","in":"path","required":true,"schema":{"type":"string","title":"Engagement Id"}},{"name":"organization-id","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Organization-Id"}},{"name":"x-user-id","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"X-User-Id"}},{"name":"timezone","in":"header","required":false,"schema":{"type":"string","default":"UTC","title":"Timezone"}},{"name":"x-actor-email","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"X-Actor-Email"}},{"name":"x-request-source","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"X-Request-Source"}},{"name":"x-operation-id","in":"header","required":false,"schema":{"anyOf":[{"type":"string","maxLength":36},{"type":"null"}],"title":"X-Operation-Id"}},{"name":"x-commit-message","in":"header","required":false,"schema":{"anyOf":[{"type":"string","minLength":1},{"type":"null"}],"title":"X-Commit-Message"}},{"name":"x-confirmation-id","in":"header","required":false,"schema":{"anyOf":[{"type":"string","maxLength":36},{"type":"null"}],"title":"X-Confirmation-Id"}},{"name":"x-chat-id","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"X-Chat-Id"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ConversationReviewPublic"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/engagements/{engagement_id}":{"get":{"tags":["authenticated","engagements"],"summary":"Read Engagement","operationId":"read_engagement_engagements__engagement_id__get","security":[{"APIKeyHeader":[]},{"HTTPBearer":[]}],"parameters":[{"name":"engagement_id","in":"path","required":true,"schema":{"type":"string","title":"Engagement Id"}},{"name":"organization-id","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Organization-Id"}},{"name":"x-user-id","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"X-User-Id"}},{"name":"timezone","in":"header","required":false,"schema":{"type":"string","default":"UTC","title":"Timezone"}},{"name":"x-actor-email","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"X-Actor-Email"}},{"name":"x-request-source","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"X-Request-Source"}},{"name":"x-operation-id","in":"header","required":false,"schema":{"anyOf":[{"type":"string","maxLength":36},{"type":"null"}],"title":"X-Operation-Id"}},{"name":"x-commit-message","in":"header","required":false,"schema":{"anyOf":[{"type":"string","minLength":1},{"type":"null"}],"title":"X-Commit-Message"}},{"name":"x-confirmation-id","in":"header","required":false,"schema":{"anyOf":[{"type":"string","maxLength":36},{"type":"null"}],"title":"X-Confirmation-Id"}},{"name":"x-chat-id","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"X-Chat-Id"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ConversationDetailPublic"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/engagements":{"get":{"tags":["authenticated","engagements"],"summary":"Read Engagements","operationId":"read_engagements_engagements_get","security":[{"APIKeyHeader":[]},{"HTTPBearer":[]}],"parameters":[{"name":"status","in":"query","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Status"}},{"name":"booked","in":"query","required":false,"schema":{"anyOf":[{"type":"boolean"},{"type":"null"}],"title":"Booked"}},{"name":"booking_status","in":"query","required":false,"schema":{"anyOf":[{"type":"array","items":{"$ref":"#/components/schemas/EngagementBookingStatus"}},{"type":"null"}],"title":"Booking Status"}},{"name":"resolved","in":"query","required":false,"schema":{"anyOf":[{"type":"boolean"},{"type":"null"}],"title":"Resolved"}},{"name":"escalation_status","in":"query","required":false,"schema":{"anyOf":[{"type":"array","items":{"$ref":"#/components/schemas/EngagementEscalationStatus"}},{"type":"null"}],"title":"Escalation Status"}},{"name":"hidden","in":"query","required":false,"schema":{"anyOf":[{"type":"boolean"},{"type":"null"}],"default":false,"title":"Hidden"}},{"name":"ai_paused","in":"query","required":false,"schema":{"anyOf":[{"type":"boolean"},{"type":"null"}],"title":"Ai Paused"}},{"name":"needs_reply","in":"query","required":false,"schema":{"anyOf":[{"type":"boolean"},{"type":"null"}],"title":"Needs Reply"}},{"name":"additionally_include_booked","in":"query","required":false,"schema":{"type":"boolean","default":false,"title":"Additionally Include Booked"}},{"name":"additionally_include_resolved","in":"query","required":false,"schema":{"type":"boolean","default":false,"title":"Additionally Include Resolved"}},{"name":"needs_attention","in":"query","required":false,"schema":{"anyOf":[{"type":"boolean"},{"type":"null"}],"title":"Needs Attention"}},{"name":"agent_id","in":"query","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Agent Id"}},{"name":"agent_v2_id","in":"query","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Agent V2 Id"}},{"name":"agent_ids","in":"query","required":false,"schema":{"anyOf":[{"type":"array","items":{"type":"string"}},{"type":"null"}],"title":"Agent Ids"}},{"name":"agent_v2_ids","in":"query","required":false,"schema":{"anyOf":[{"type":"array","items":{"type":"string"}},{"type":"null"}],"title":"Agent V2 Ids"}},{"name":"campaign_id","in":"query","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Campaign Id"}},{"name":"is_simulated","in":"query","required":false,"schema":{"anyOf":[{"type":"boolean"},{"type":"null"}],"title":"Is Simulated"}},{"name":"source","in":"query","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Source"}},{"name":"created_after","in":"query","required":false,"schema":{"anyOf":[{"type":"string","format":"date-time"},{"type":"null"}],"title":"Created After"}},{"name":"created_before","in":"query","required":false,"schema":{"anyOf":[{"type":"string","format":"date-time"},{"type":"null"}],"title":"Created Before"}},{"name":"escalated_after","in":"query","required":false,"schema":{"anyOf":[{"type":"string","format":"date-time"},{"type":"null"}],"title":"Escalated After"}},{"name":"conversation_kind","in":"query","required":false,"schema":{"anyOf":[{"enum":["customers","ask_jenny"],"type":"string"},{"type":"null"}],"title":"Conversation Kind"}},{"name":"group_by_customer","in":"query","required":false,"schema":{"type":"boolean","default":false,"title":"Group By Customer"}},{"name":"sort","in":"query","required":false,"schema":{"type":"string","default":"newest","title":"Sort"}},{"name":"cursor","in":"query","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Cursor"}},{"name":"include_total","in":"query","required":false,"schema":{"type":"boolean","default":true,"title":"Include Total"}},{"name":"organization_ids","in":"query","required":false,"schema":{"anyOf":[{"type":"array","items":{"type":"string"}},{"type":"null"}],"title":"Organization Ids"}},{"name":"organization-id","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Organization-Id"}},{"name":"x-user-id","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"X-User-Id"}},{"name":"timezone","in":"header","required":false,"schema":{"type":"string","default":"UTC","title":"Timezone"}},{"name":"x-actor-email","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"X-Actor-Email"}},{"name":"x-request-source","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"X-Request-Source"}},{"name":"x-operation-id","in":"header","required":false,"schema":{"anyOf":[{"type":"string","maxLength":36},{"type":"null"}],"title":"X-Operation-Id"}},{"name":"x-commit-message","in":"header","required":false,"schema":{"anyOf":[{"type":"string","minLength":1},{"type":"null"}],"title":"X-Commit-Message"}},{"name":"x-confirmation-id","in":"header","required":false,"schema":{"anyOf":[{"type":"string","maxLength":36},{"type":"null"}],"title":"X-Confirmation-Id"}},{"name":"x-chat-id","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"X-Chat-Id"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Page_ConversationListItemPublic_"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/engagements/events":{"post":{"tags":["authenticated","engagements"],"summary":"Create Event","operationId":"create_event_engagements_events_post","security":[{"APIKeyHeader":[]},{"HTTPBearer":[]}],"parameters":[{"name":"organization-id","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Organization-Id"}},{"name":"x-user-id","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"X-User-Id"}},{"name":"timezone","in":"header","required":false,"schema":{"type":"string","default":"UTC","title":"Timezone"}},{"name":"x-actor-email","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"X-Actor-Email"}},{"name":"x-request-source","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"X-Request-Source"}},{"name":"x-operation-id","in":"header","required":false,"schema":{"anyOf":[{"type":"string","maxLength":36},{"type":"null"}],"title":"X-Operation-Id"}},{"name":"x-commit-message","in":"header","required":false,"schema":{"anyOf":[{"type":"string","minLength":1},{"type":"null"}],"title":"X-Commit-Message"}},{"name":"x-confirmation-id","in":"header","required":false,"schema":{"anyOf":[{"type":"string","maxLength":36},{"type":"null"}],"title":"X-Confirmation-Id"}},{"name":"x-chat-id","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"X-Chat-Id"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/CreateEventBody"}}}},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/TimelineEventPublic"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/engagements/{engagement_id}/ai-response":{"patch":{"tags":["authenticated","engagements"],"summary":"Toggle Ai Response","operationId":"toggle_ai_response_engagements__engagement_id__ai_response_patch","security":[{"APIKeyHeader":[]},{"HTTPBearer":[]}],"parameters":[{"name":"engagement_id","in":"path","required":true,"schema":{"type":"string","title":"Engagement Id"}},{"name":"organization-id","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Organization-Id"}},{"name":"x-user-id","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"X-User-Id"}},{"name":"timezone","in":"header","required":false,"schema":{"type":"string","default":"UTC","title":"Timezone"}},{"name":"x-actor-email","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"X-Actor-Email"}},{"name":"x-request-source","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"X-Request-Source"}},{"name":"x-operation-id","in":"header","required":false,"schema":{"anyOf":[{"type":"string","maxLength":36},{"type":"null"}],"title":"X-Operation-Id"}},{"name":"x-commit-message","in":"header","required":false,"schema":{"anyOf":[{"type":"string","minLength":1},{"type":"null"}],"title":"X-Commit-Message"}},{"name":"x-confirmation-id","in":"header","required":false,"schema":{"anyOf":[{"type":"string","maxLength":36},{"type":"null"}],"title":"X-Confirmation-Id"}},{"name":"x-chat-id","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"X-Chat-Id"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ToggleAiResponseBody"}}}},"responses":{"204":{"description":"Successful Response"},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/engagements/{engagement_id}/report-issue":{"post":{"tags":["authenticated","engagements"],"summary":"Report Issue","operationId":"report_issue_engagements__engagement_id__report_issue_post","security":[{"APIKeyHeader":[]},{"HTTPBearer":[]}],"parameters":[{"name":"engagement_id","in":"path","required":true,"schema":{"type":"string","title":"Engagement Id"}},{"name":"organization-id","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Organization-Id"}},{"name":"x-user-id","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"X-User-Id"}},{"name":"timezone","in":"header","required":false,"schema":{"type":"string","default":"UTC","title":"Timezone"}},{"name":"x-actor-email","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"X-Actor-Email"}},{"name":"x-request-source","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"X-Request-Source"}},{"name":"x-operation-id","in":"header","required":false,"schema":{"anyOf":[{"type":"string","maxLength":36},{"type":"null"}],"title":"X-Operation-Id"}},{"name":"x-commit-message","in":"header","required":false,"schema":{"anyOf":[{"type":"string","minLength":1},{"type":"null"}],"title":"X-Commit-Message"}},{"name":"x-confirmation-id","in":"header","required":false,"schema":{"anyOf":[{"type":"string","maxLength":36},{"type":"null"}],"title":"X-Confirmation-Id"}},{"name":"x-chat-id","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"X-Chat-Id"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ReportIssueBody"}}}},"responses":{"204":{"description":"Successful Response"},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/engagements/{engagement_id}/booked":{"patch":{"tags":["authenticated","engagements"],"summary":"Mark Booked","operationId":"mark_booked_engagements__engagement_id__booked_patch","security":[{"APIKeyHeader":[]},{"HTTPBearer":[]}],"parameters":[{"name":"engagement_id","in":"path","required":true,"schema":{"type":"string","title":"Engagement Id"}},{"name":"organization-id","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Organization-Id"}},{"name":"x-user-id","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"X-User-Id"}},{"name":"timezone","in":"header","required":false,"schema":{"type":"string","default":"UTC","title":"Timezone"}},{"name":"x-actor-email","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"X-Actor-Email"}},{"name":"x-request-source","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"X-Request-Source"}},{"name":"x-operation-id","in":"header","required":false,"schema":{"anyOf":[{"type":"string","maxLength":36},{"type":"null"}],"title":"X-Operation-Id"}},{"name":"x-commit-message","in":"header","required":false,"schema":{"anyOf":[{"type":"string","minLength":1},{"type":"null"}],"title":"X-Commit-Message"}},{"name":"x-confirmation-id","in":"header","required":false,"schema":{"anyOf":[{"type":"string","maxLength":36},{"type":"null"}],"title":"X-Confirmation-Id"}},{"name":"x-chat-id","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"X-Chat-Id"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/MarkBookedBody"}}}},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/EngagementDetailPublic"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/engagements/{engagement_id}/hidden":{"patch":{"tags":["authenticated","engagements"],"summary":"Set Hidden","description":"Hide the conversation from the default inbox, or restore it.","operationId":"set_hidden_engagements__engagement_id__hidden_patch","security":[{"APIKeyHeader":[]},{"HTTPBearer":[]}],"parameters":[{"name":"engagement_id","in":"path","required":true,"schema":{"type":"string","title":"Engagement Id"}},{"name":"organization-id","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Organization-Id"}},{"name":"x-user-id","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"X-User-Id"}},{"name":"timezone","in":"header","required":false,"schema":{"type":"string","default":"UTC","title":"Timezone"}},{"name":"x-actor-email","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"X-Actor-Email"}},{"name":"x-request-source","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"X-Request-Source"}},{"name":"x-operation-id","in":"header","required":false,"schema":{"anyOf":[{"type":"string","maxLength":36},{"type":"null"}],"title":"X-Operation-Id"}},{"name":"x-commit-message","in":"header","required":false,"schema":{"anyOf":[{"type":"string","minLength":1},{"type":"null"}],"title":"X-Commit-Message"}},{"name":"x-confirmation-id","in":"header","required":false,"schema":{"anyOf":[{"type":"string","maxLength":36},{"type":"null"}],"title":"X-Confirmation-Id"}},{"name":"x-chat-id","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"X-Chat-Id"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/SetHiddenBody"}}}},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/EngagementDetailPublic"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/engagements/run-agent-prime":{"post":{"tags":["authenticated","engagements"],"summary":"Run Agent Prime","operationId":"run_agent_prime_engagements_run_agent_prime_post","security":[{"APIKeyHeader":[]},{"HTTPBearer":[]}],"parameters":[{"name":"organization-id","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Organization-Id"}},{"name":"x-user-id","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"X-User-Id"}},{"name":"timezone","in":"header","required":false,"schema":{"type":"string","default":"UTC","title":"Timezone"}},{"name":"x-actor-email","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"X-Actor-Email"}},{"name":"x-request-source","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"X-Request-Source"}},{"name":"x-operation-id","in":"header","required":false,"schema":{"anyOf":[{"type":"string","maxLength":36},{"type":"null"}],"title":"X-Operation-Id"}},{"name":"x-commit-message","in":"header","required":false,"schema":{"anyOf":[{"type":"string","minLength":1},{"type":"null"}],"title":"X-Commit-Message"}},{"name":"x-confirmation-id","in":"header","required":false,"schema":{"anyOf":[{"type":"string","maxLength":36},{"type":"null"}],"title":"X-Confirmation-Id"}},{"name":"x-chat-id","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"X-Chat-Id"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/RunAgentPrimeBody"}}}},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/RunAgentPrimeResponse"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/engagements/simulations":{"post":{"tags":["authenticated","engagements"],"summary":"Create Simulation","operationId":"create_simulation_engagements_simulations_post","security":[{"APIKeyHeader":[]},{"HTTPBearer":[]}],"parameters":[{"name":"organization-id","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Organization-Id"}},{"name":"x-user-id","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"X-User-Id"}},{"name":"timezone","in":"header","required":false,"schema":{"type":"string","default":"UTC","title":"Timezone"}},{"name":"x-actor-email","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"X-Actor-Email"}},{"name":"x-request-source","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"X-Request-Source"}},{"name":"x-operation-id","in":"header","required":false,"schema":{"anyOf":[{"type":"string","maxLength":36},{"type":"null"}],"title":"X-Operation-Id"}},{"name":"x-commit-message","in":"header","required":false,"schema":{"anyOf":[{"type":"string","minLength":1},{"type":"null"}],"title":"X-Commit-Message"}},{"name":"x-confirmation-id","in":"header","required":false,"schema":{"anyOf":[{"type":"string","maxLength":36},{"type":"null"}],"title":"X-Confirmation-Id"}},{"name":"x-chat-id","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"X-Chat-Id"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/CreateSimulationBody"}}}},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/EngagementDetailPublic"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/engagements/{engagement_id}/simulation-scenario":{"get":{"tags":["authenticated","engagements"],"summary":"Read Simulation Scenario","description":"Live scenario status + transcript for a simulation engagement, org-scoped.\n\nReturns scenario status, the interaction transcript used for polling, and the\ncustomer-visible event timeline used for rendering. Org isolation comes from ``read_engagement``\n(the admin status handler it delegates to is org-agnostic by design); it also\nself-heals a dead server-side loop on each poll.\n\nA plain (optimus) simulation has no scenario run, so the scenario read 404s.\nReturn its transcript anyway with ``is_scenario_run=False`` so the UI can render\nthe conversation instead of a blank pane.","operationId":"read_simulation_scenario_engagements__engagement_id__simulation_scenario_get","security":[{"APIKeyHeader":[]},{"HTTPBearer":[]}],"parameters":[{"name":"engagement_id","in":"path","required":true,"schema":{"type":"string","title":"Engagement Id"}},{"name":"organization-id","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Organization-Id"}},{"name":"x-user-id","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"X-User-Id"}},{"name":"timezone","in":"header","required":false,"schema":{"type":"string","default":"UTC","title":"Timezone"}},{"name":"x-actor-email","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"X-Actor-Email"}},{"name":"x-request-source","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"X-Request-Source"}},{"name":"x-operation-id","in":"header","required":false,"schema":{"anyOf":[{"type":"string","maxLength":36},{"type":"null"}],"title":"X-Operation-Id"}},{"name":"x-commit-message","in":"header","required":false,"schema":{"anyOf":[{"type":"string","minLength":1},{"type":"null"}],"title":"X-Commit-Message"}},{"name":"x-confirmation-id","in":"header","required":false,"schema":{"anyOf":[{"type":"string","maxLength":36},{"type":"null"}],"title":"X-Confirmation-Id"}},{"name":"x-chat-id","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"X-Chat-Id"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/SimulationScenarioLiveResponse"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/engagements/{engagement_id}/simulation-messages":{"post":{"tags":["authenticated","engagements"],"summary":"Send Simulation Customer Message","description":"Post the user's message as the customer into an interactive simulation, org-scoped.\n\nInjects the inbound event and dispatches the agent's reply — the same primitive\nthe autonomous loop uses to deliver its LLM customer's turns.","operationId":"send_simulation_customer_message_engagements__engagement_id__simulation_messages_post","security":[{"APIKeyHeader":[]},{"HTTPBearer":[]}],"parameters":[{"name":"engagement_id","in":"path","required":true,"schema":{"type":"string","title":"Engagement Id"}},{"name":"organization-id","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Organization-Id"}},{"name":"x-user-id","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"X-User-Id"}},{"name":"timezone","in":"header","required":false,"schema":{"type":"string","default":"UTC","title":"Timezone"}},{"name":"x-actor-email","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"X-Actor-Email"}},{"name":"x-request-source","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"X-Request-Source"}},{"name":"x-operation-id","in":"header","required":false,"schema":{"anyOf":[{"type":"string","maxLength":36},{"type":"null"}],"title":"X-Operation-Id"}},{"name":"x-commit-message","in":"header","required":false,"schema":{"anyOf":[{"type":"string","minLength":1},{"type":"null"}],"title":"X-Commit-Message"}},{"name":"x-confirmation-id","in":"header","required":false,"schema":{"anyOf":[{"type":"string","maxLength":36},{"type":"null"}],"title":"X-Confirmation-Id"}},{"name":"x-chat-id","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"X-Chat-Id"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/SimulationCustomerMessageBody"}}}},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/EventPublicWithChildren"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/engagements/{engagement_id}/simulation-scenario/end":{"post":{"tags":["authenticated","engagements"],"summary":"End Simulation Scenario","description":"End an interactive run, org-scoped.\n\nAn interactive run has no loop to reach a terminal state on its own, so the user\nsays when they're done, marking the run they drove terminal.","operationId":"end_simulation_scenario_engagements__engagement_id__simulation_scenario_end_post","security":[{"APIKeyHeader":[]},{"HTTPBearer":[]}],"parameters":[{"name":"engagement_id","in":"path","required":true,"schema":{"type":"string","title":"Engagement Id"}},{"name":"organization-id","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Organization-Id"}},{"name":"x-user-id","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"X-User-Id"}},{"name":"timezone","in":"header","required":false,"schema":{"type":"string","default":"UTC","title":"Timezone"}},{"name":"x-actor-email","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"X-Actor-Email"}},{"name":"x-request-source","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"X-Request-Source"}},{"name":"x-operation-id","in":"header","required":false,"schema":{"anyOf":[{"type":"string","maxLength":36},{"type":"null"}],"title":"X-Operation-Id"}},{"name":"x-commit-message","in":"header","required":false,"schema":{"anyOf":[{"type":"string","minLength":1},{"type":"null"}],"title":"X-Commit-Message"}},{"name":"x-confirmation-id","in":"header","required":false,"schema":{"anyOf":[{"type":"string","maxLength":36},{"type":"null"}],"title":"X-Confirmation-Id"}},{"name":"x-chat-id","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"X-Chat-Id"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/SimulationScenarioLiveResponse"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/sessions/{session_id}":{"get":{"tags":["authenticated","sessions"],"summary":"Read Session","operationId":"read_session_sessions__session_id__get","security":[{"APIKeyHeader":[]},{"HTTPBearer":[]}],"parameters":[{"name":"session_id","in":"path","required":true,"schema":{"type":"string","title":"Session Id"}},{"name":"cursor","in":"query","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Cursor"}},{"name":"organization-id","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Organization-Id"}},{"name":"x-user-id","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"X-User-Id"}},{"name":"timezone","in":"header","required":false,"schema":{"type":"string","default":"UTC","title":"Timezone"}},{"name":"x-actor-email","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"X-Actor-Email"}},{"name":"x-request-source","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"X-Request-Source"}},{"name":"x-operation-id","in":"header","required":false,"schema":{"anyOf":[{"type":"string","maxLength":36},{"type":"null"}],"title":"X-Operation-Id"}},{"name":"x-commit-message","in":"header","required":false,"schema":{"anyOf":[{"type":"string","minLength":1},{"type":"null"}],"title":"X-Commit-Message"}},{"name":"x-confirmation-id","in":"header","required":false,"schema":{"anyOf":[{"type":"string","maxLength":36},{"type":"null"}],"title":"X-Confirmation-Id"}},{"name":"x-chat-id","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"X-Chat-Id"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/SessionDetailPublic"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/sessions":{"get":{"tags":["authenticated","sessions"],"summary":"Read Sessions","operationId":"read_sessions_sessions_get","security":[{"APIKeyHeader":[]},{"HTTPBearer":[]}],"parameters":[{"name":"cursor","in":"query","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Cursor"}},{"name":"organization-id","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Organization-Id"}},{"name":"x-user-id","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"X-User-Id"}},{"name":"timezone","in":"header","required":false,"schema":{"type":"string","default":"UTC","title":"Timezone"}},{"name":"x-actor-email","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"X-Actor-Email"}},{"name":"x-request-source","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"X-Request-Source"}},{"name":"x-operation-id","in":"header","required":false,"schema":{"anyOf":[{"type":"string","maxLength":36},{"type":"null"}],"title":"X-Operation-Id"}},{"name":"x-commit-message","in":"header","required":false,"schema":{"anyOf":[{"type":"string","minLength":1},{"type":"null"}],"title":"X-Commit-Message"}},{"name":"x-confirmation-id","in":"header","required":false,"schema":{"anyOf":[{"type":"string","maxLength":36},{"type":"null"}],"title":"X-Confirmation-Id"}},{"name":"x-chat-id","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"X-Chat-Id"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Page_SessionPublic_"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}},"post":{"tags":["authenticated","sessions"],"summary":"Create Session","operationId":"create_session_sessions_post","security":[{"APIKeyHeader":[]},{"HTTPBearer":[]}],"parameters":[{"name":"organization-id","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Organization-Id"}},{"name":"x-user-id","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"X-User-Id"}},{"name":"timezone","in":"header","required":false,"schema":{"type":"string","default":"UTC","title":"Timezone"}},{"name":"x-actor-email","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"X-Actor-Email"}},{"name":"x-request-source","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"X-Request-Source"}},{"name":"x-operation-id","in":"header","required":false,"schema":{"anyOf":[{"type":"string","maxLength":36},{"type":"null"}],"title":"X-Operation-Id"}},{"name":"x-commit-message","in":"header","required":false,"schema":{"anyOf":[{"type":"string","minLength":1},{"type":"null"}],"title":"X-Commit-Message"}},{"name":"x-confirmation-id","in":"header","required":false,"schema":{"anyOf":[{"type":"string","maxLength":36},{"type":"null"}],"title":"X-Confirmation-Id"}},{"name":"x-chat-id","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"X-Chat-Id"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/CreateSessionBody"}}}},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/SessionPublic"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/escalations":{"post":{"tags":["authenticated","escalations"],"summary":"Create Escalation","operationId":"create_escalation_escalations_post","security":[{"APIKeyHeader":[]},{"HTTPBearer":[]}],"parameters":[{"name":"organization-id","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Organization-Id"}},{"name":"x-user-id","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"X-User-Id"}},{"name":"timezone","in":"header","required":false,"schema":{"type":"string","default":"UTC","title":"Timezone"}},{"name":"x-actor-email","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"X-Actor-Email"}},{"name":"x-request-source","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"X-Request-Source"}},{"name":"x-operation-id","in":"header","required":false,"schema":{"anyOf":[{"type":"string","maxLength":36},{"type":"null"}],"title":"X-Operation-Id"}},{"name":"x-commit-message","in":"header","required":false,"schema":{"anyOf":[{"type":"string","minLength":1},{"type":"null"}],"title":"X-Commit-Message"}},{"name":"x-confirmation-id","in":"header","required":false,"schema":{"anyOf":[{"type":"string","maxLength":36},{"type":"null"}],"title":"X-Confirmation-Id"}},{"name":"x-chat-id","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"X-Chat-Id"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/CreateEscalationBody"}}}},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/EscalationBasicPublic"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/escalations/archive-resolved":{"post":{"tags":["authenticated","escalations"],"summary":"Archive Resolved Escalations","operationId":"archive_resolved_escalations_escalations_archive_resolved_post","security":[{"APIKeyHeader":[]},{"HTTPBearer":[]}],"parameters":[{"name":"organization-id","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Organization-Id"}},{"name":"x-user-id","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"X-User-Id"}},{"name":"timezone","in":"header","required":false,"schema":{"type":"string","default":"UTC","title":"Timezone"}},{"name":"x-actor-email","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"X-Actor-Email"}},{"name":"x-request-source","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"X-Request-Source"}},{"name":"x-operation-id","in":"header","required":false,"schema":{"anyOf":[{"type":"string","maxLength":36},{"type":"null"}],"title":"X-Operation-Id"}},{"name":"x-commit-message","in":"header","required":false,"schema":{"anyOf":[{"type":"string","minLength":1},{"type":"null"}],"title":"X-Commit-Message"}},{"name":"x-confirmation-id","in":"header","required":false,"schema":{"anyOf":[{"type":"string","maxLength":36},{"type":"null"}],"title":"X-Confirmation-Id"}},{"name":"x-chat-id","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"X-Chat-Id"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ArchiveResolvedResponse"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/escalations/{escalation_id}":{"patch":{"tags":["authenticated","escalations"],"summary":"Update Escalation","operationId":"update_escalation_escalations__escalation_id__patch","security":[{"APIKeyHeader":[]},{"HTTPBearer":[]}],"parameters":[{"name":"escalation_id","in":"path","required":true,"schema":{"type":"string","title":"Escalation Id"}},{"name":"organization-id","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Organization-Id"}},{"name":"x-user-id","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"X-User-Id"}},{"name":"timezone","in":"header","required":false,"schema":{"type":"string","default":"UTC","title":"Timezone"}},{"name":"x-actor-email","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"X-Actor-Email"}},{"name":"x-request-source","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"X-Request-Source"}},{"name":"x-operation-id","in":"header","required":false,"schema":{"anyOf":[{"type":"string","maxLength":36},{"type":"null"}],"title":"X-Operation-Id"}},{"name":"x-commit-message","in":"header","required":false,"schema":{"anyOf":[{"type":"string","minLength":1},{"type":"null"}],"title":"X-Commit-Message"}},{"name":"x-confirmation-id","in":"header","required":false,"schema":{"anyOf":[{"type":"string","maxLength":36},{"type":"null"}],"title":"X-Confirmation-Id"}},{"name":"x-chat-id","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"X-Chat-Id"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/UpdateEscalationBody"}}}},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/EscalationBasicPublic"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/escalations/{escalation_id}/reason-change-events":{"get":{"tags":["authenticated","escalations"],"summary":"Read Escalation Reason Change Events","operationId":"read_escalation_reason_change_events_escalations__escalation_id__reason_change_events_get","security":[{"APIKeyHeader":[]},{"HTTPBearer":[]}],"parameters":[{"name":"escalation_id","in":"path","required":true,"schema":{"type":"string","title":"Escalation Id"}},{"name":"organization-id","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Organization-Id"}},{"name":"x-user-id","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"X-User-Id"}},{"name":"timezone","in":"header","required":false,"schema":{"type":"string","default":"UTC","title":"Timezone"}},{"name":"x-actor-email","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"X-Actor-Email"}},{"name":"x-request-source","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"X-Request-Source"}},{"name":"x-operation-id","in":"header","required":false,"schema":{"anyOf":[{"type":"string","maxLength":36},{"type":"null"}],"title":"X-Operation-Id"}},{"name":"x-commit-message","in":"header","required":false,"schema":{"anyOf":[{"type":"string","minLength":1},{"type":"null"}],"title":"X-Commit-Message"}},{"name":"x-confirmation-id","in":"header","required":false,"schema":{"anyOf":[{"type":"string","maxLength":36},{"type":"null"}],"title":"X-Confirmation-Id"}},{"name":"x-chat-id","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"X-Chat-Id"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"type":"array","items":{"$ref":"#/components/schemas/EscalationReasonChangeEventPublic"},"title":"Response Read Escalation Reason Change Events Escalations  Escalation Id  Reason Change Events Get"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/engagements/{engagement_id}/pending-messages/process":{"post":{"tags":["authenticated","engagements"],"summary":"Process Pending Messages","operationId":"process_pending_messages_engagements__engagement_id__pending_messages_process_post","security":[{"APIKeyHeader":[]},{"HTTPBearer":[]}],"parameters":[{"name":"engagement_id","in":"path","required":true,"schema":{"type":"string","title":"Engagement Id"}},{"name":"organization-id","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Organization-Id"}},{"name":"x-user-id","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"X-User-Id"}},{"name":"timezone","in":"header","required":false,"schema":{"type":"string","default":"UTC","title":"Timezone"}},{"name":"x-actor-email","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"X-Actor-Email"}},{"name":"x-request-source","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"X-Request-Source"}},{"name":"x-operation-id","in":"header","required":false,"schema":{"anyOf":[{"type":"string","maxLength":36},{"type":"null"}],"title":"X-Operation-Id"}},{"name":"x-commit-message","in":"header","required":false,"schema":{"anyOf":[{"type":"string","minLength":1},{"type":"null"}],"title":"X-Commit-Message"}},{"name":"x-confirmation-id","in":"header","required":false,"schema":{"anyOf":[{"type":"string","maxLength":36},{"type":"null"}],"title":"X-Confirmation-Id"}},{"name":"x-chat-id","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"X-Chat-Id"}}],"responses":{"202":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ProcessPendingMessagesResponse"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/engagements/{engagement_id}/turn-status":{"get":{"tags":["authenticated","engagements"],"summary":"Read Engagement Turn Status","operationId":"read_engagement_turn_status_engagements__engagement_id__turn_status_get","security":[{"APIKeyHeader":[]},{"HTTPBearer":[]}],"parameters":[{"name":"engagement_id","in":"path","required":true,"schema":{"type":"string","title":"Engagement Id"}},{"name":"customer_timeline","in":"query","required":false,"schema":{"type":"boolean","default":false,"title":"Customer Timeline"}},{"name":"organization-id","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Organization-Id"}},{"name":"x-user-id","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"X-User-Id"}},{"name":"timezone","in":"header","required":false,"schema":{"type":"string","default":"UTC","title":"Timezone"}},{"name":"x-actor-email","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"X-Actor-Email"}},{"name":"x-request-source","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"X-Request-Source"}},{"name":"x-operation-id","in":"header","required":false,"schema":{"anyOf":[{"type":"string","maxLength":36},{"type":"null"}],"title":"X-Operation-Id"}},{"name":"x-commit-message","in":"header","required":false,"schema":{"anyOf":[{"type":"string","minLength":1},{"type":"null"}],"title":"X-Commit-Message"}},{"name":"x-confirmation-id","in":"header","required":false,"schema":{"anyOf":[{"type":"string","maxLength":36},{"type":"null"}],"title":"X-Confirmation-Id"}},{"name":"x-chat-id","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"X-Chat-Id"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/EngagementTurnStatusPublic"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/engagements/{engagement_id}/turn-status/stream":{"get":{"tags":["authenticated","engagements"],"summary":"Stream Engagement Turn Status","description":"Server-sent equivalent of ``read_engagement_turn_status``.\n\nEmits a frame only when the revision changes, so a reader costs one held\nconnection instead of a request per second.","operationId":"stream_engagement_turn_status_engagements__engagement_id__turn_status_stream_get","security":[{"APIKeyHeader":[]},{"HTTPBearer":[]}],"parameters":[{"name":"engagement_id","in":"path","required":true,"schema":{"type":"string","title":"Engagement Id"}},{"name":"customer_timeline","in":"query","required":false,"schema":{"type":"boolean","default":false,"title":"Customer Timeline"}},{"name":"organization-id","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Organization-Id"}},{"name":"x-user-id","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"X-User-Id"}},{"name":"timezone","in":"header","required":false,"schema":{"type":"string","default":"UTC","title":"Timezone"}},{"name":"x-actor-email","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"X-Actor-Email"}},{"name":"x-request-source","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"X-Request-Source"}},{"name":"x-operation-id","in":"header","required":false,"schema":{"anyOf":[{"type":"string","maxLength":36},{"type":"null"}],"title":"X-Operation-Id"}},{"name":"x-commit-message","in":"header","required":false,"schema":{"anyOf":[{"type":"string","minLength":1},{"type":"null"}],"title":"X-Commit-Message"}},{"name":"x-confirmation-id","in":"header","required":false,"schema":{"anyOf":[{"type":"string","maxLength":36},{"type":"null"}],"title":"X-Confirmation-Id"}},{"name":"x-chat-id","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"X-Chat-Id"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/engagements/changes/stream":{"get":{"tags":["authenticated","engagements"],"summary":"Stream Conversation Changes","description":"Tell the conversations sidebar when to refetch its head.\n\nCarries no rows and reads no database. The sidebar's list is filtered and\ncursor-merged client-side, so an org-scoped \"something changed\" is both the\ncheapest useful signal and the only one that cannot be wrong about whether a\nrow still belongs in the reader's view.","operationId":"stream_conversation_changes_engagements_changes_stream_get","security":[{"APIKeyHeader":[]},{"HTTPBearer":[]}],"parameters":[{"name":"organization-id","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Organization-Id"}},{"name":"x-user-id","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"X-User-Id"}},{"name":"timezone","in":"header","required":false,"schema":{"type":"string","default":"UTC","title":"Timezone"}},{"name":"x-actor-email","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"X-Actor-Email"}},{"name":"x-request-source","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"X-Request-Source"}},{"name":"x-operation-id","in":"header","required":false,"schema":{"anyOf":[{"type":"string","maxLength":36},{"type":"null"}],"title":"X-Operation-Id"}},{"name":"x-commit-message","in":"header","required":false,"schema":{"anyOf":[{"type":"string","minLength":1},{"type":"null"}],"title":"X-Commit-Message"}},{"name":"x-confirmation-id","in":"header","required":false,"schema":{"anyOf":[{"type":"string","maxLength":36},{"type":"null"}],"title":"X-Confirmation-Id"}},{"name":"x-chat-id","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"X-Chat-Id"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/escalation-groups":{"get":{"tags":["authenticated","escalation-groups"],"summary":"Read Escalation Groups","operationId":"read_escalation_groups_escalation_groups_get","security":[{"APIKeyHeader":[]},{"HTTPBearer":[]}],"parameters":[{"name":"cursor","in":"query","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Cursor"}},{"name":"limit","in":"query","required":false,"schema":{"type":"integer","default":25,"title":"Limit"}},{"name":"organization-id","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Organization-Id"}},{"name":"x-user-id","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"X-User-Id"}},{"name":"timezone","in":"header","required":false,"schema":{"type":"string","default":"UTC","title":"Timezone"}},{"name":"x-actor-email","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"X-Actor-Email"}},{"name":"x-request-source","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"X-Request-Source"}},{"name":"x-operation-id","in":"header","required":false,"schema":{"anyOf":[{"type":"string","maxLength":36},{"type":"null"}],"title":"X-Operation-Id"}},{"name":"x-commit-message","in":"header","required":false,"schema":{"anyOf":[{"type":"string","minLength":1},{"type":"null"}],"title":"X-Commit-Message"}},{"name":"x-confirmation-id","in":"header","required":false,"schema":{"anyOf":[{"type":"string","maxLength":36},{"type":"null"}],"title":"X-Confirmation-Id"}},{"name":"x-chat-id","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"X-Chat-Id"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Page_EscalationGroupViewPublic_"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}},"post":{"tags":["authenticated","escalation-groups"],"summary":"Create Escalation Group","operationId":"create_escalation_group_escalation_groups_post","security":[{"APIKeyHeader":[]},{"HTTPBearer":[]}],"parameters":[{"name":"organization-id","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Organization-Id"}},{"name":"x-user-id","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"X-User-Id"}},{"name":"timezone","in":"header","required":false,"schema":{"type":"string","default":"UTC","title":"Timezone"}},{"name":"x-actor-email","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"X-Actor-Email"}},{"name":"x-request-source","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"X-Request-Source"}},{"name":"x-operation-id","in":"header","required":false,"schema":{"anyOf":[{"type":"string","maxLength":36},{"type":"null"}],"title":"X-Operation-Id"}},{"name":"x-commit-message","in":"header","required":false,"schema":{"anyOf":[{"type":"string","minLength":1},{"type":"null"}],"title":"X-Commit-Message"}},{"name":"x-confirmation-id","in":"header","required":false,"schema":{"anyOf":[{"type":"string","maxLength":36},{"type":"null"}],"title":"X-Confirmation-Id"}},{"name":"x-chat-id","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"X-Chat-Id"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/CreateEscalationGroupBody"}}}},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/EscalationGroupViewPublic"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/escalation-groups/{escalation_group_id}":{"patch":{"tags":["authenticated","escalation-groups"],"summary":"Update Escalation Group","operationId":"update_escalation_group_escalation_groups__escalation_group_id__patch","security":[{"APIKeyHeader":[]},{"HTTPBearer":[]}],"parameters":[{"name":"escalation_group_id","in":"path","required":true,"schema":{"type":"string","title":"Escalation Group Id"}},{"name":"organization-id","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Organization-Id"}},{"name":"x-user-id","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"X-User-Id"}},{"name":"timezone","in":"header","required":false,"schema":{"type":"string","default":"UTC","title":"Timezone"}},{"name":"x-actor-email","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"X-Actor-Email"}},{"name":"x-request-source","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"X-Request-Source"}},{"name":"x-operation-id","in":"header","required":false,"schema":{"anyOf":[{"type":"string","maxLength":36},{"type":"null"}],"title":"X-Operation-Id"}},{"name":"x-commit-message","in":"header","required":false,"schema":{"anyOf":[{"type":"string","minLength":1},{"type":"null"}],"title":"X-Commit-Message"}},{"name":"x-confirmation-id","in":"header","required":false,"schema":{"anyOf":[{"type":"string","maxLength":36},{"type":"null"}],"title":"X-Confirmation-Id"}},{"name":"x-chat-id","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"X-Chat-Id"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/UpdateEscalationGroupBody"}}}},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/EscalationGroupViewPublic"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}},"delete":{"tags":["authenticated","escalation-groups"],"summary":"Delete Escalation Group","operationId":"delete_escalation_group_escalation_groups__escalation_group_id__delete","security":[{"APIKeyHeader":[]},{"HTTPBearer":[]}],"parameters":[{"name":"escalation_group_id","in":"path","required":true,"schema":{"type":"string","title":"Escalation Group Id"}},{"name":"organization-id","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Organization-Id"}},{"name":"x-user-id","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"X-User-Id"}},{"name":"timezone","in":"header","required":false,"schema":{"type":"string","default":"UTC","title":"Timezone"}},{"name":"x-actor-email","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"X-Actor-Email"}},{"name":"x-request-source","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"X-Request-Source"}},{"name":"x-operation-id","in":"header","required":false,"schema":{"anyOf":[{"type":"string","maxLength":36},{"type":"null"}],"title":"X-Operation-Id"}},{"name":"x-commit-message","in":"header","required":false,"schema":{"anyOf":[{"type":"string","minLength":1},{"type":"null"}],"title":"X-Commit-Message"}},{"name":"x-confirmation-id","in":"header","required":false,"schema":{"anyOf":[{"type":"string","maxLength":36},{"type":"null"}],"title":"X-Confirmation-Id"}},{"name":"x-chat-id","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"X-Chat-Id"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/EscalationGroupViewPublic"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/sms/send":{"post":{"tags":["authenticated","sms"],"summary":"Send Sms","operationId":"send_sms_sms_send_post","security":[{"APIKeyHeader":[]},{"HTTPBearer":[]}],"parameters":[{"name":"organization-id","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Organization-Id"}},{"name":"x-user-id","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"X-User-Id"}},{"name":"timezone","in":"header","required":false,"schema":{"type":"string","default":"UTC","title":"Timezone"}},{"name":"x-actor-email","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"X-Actor-Email"}},{"name":"x-request-source","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"X-Request-Source"}},{"name":"x-operation-id","in":"header","required":false,"schema":{"anyOf":[{"type":"string","maxLength":36},{"type":"null"}],"title":"X-Operation-Id"}},{"name":"x-commit-message","in":"header","required":false,"schema":{"anyOf":[{"type":"string","minLength":1},{"type":"null"}],"title":"X-Commit-Message"}},{"name":"x-confirmation-id","in":"header","required":false,"schema":{"anyOf":[{"type":"string","maxLength":36},{"type":"null"}],"title":"X-Confirmation-Id"}},{"name":"x-chat-id","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"X-Chat-Id"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/SendSMSRequest"}}}},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/integrations/google-ads/callback":{"post":{"tags":["authenticated","integrations"],"summary":"Oauth Callback","description":"Exchange Google OAuth authorization code for access and refresh tokens.\nCreates or updates the Google Ads integration with the credentials.","operationId":"oauth_callback_integrations_google_ads_callback_post","security":[{"APIKeyHeader":[]},{"HTTPBearer":[]}],"parameters":[{"name":"timezone","in":"header","required":false,"schema":{"type":"string","default":"UTC","title":"Timezone"}},{"name":"x-user-id","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"X-User-Id"}},{"name":"x-actor-email","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"X-Actor-Email"}},{"name":"x-request-source","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"X-Request-Source"}},{"name":"x-operation-id","in":"header","required":false,"schema":{"anyOf":[{"type":"string","maxLength":36},{"type":"null"}],"title":"X-Operation-Id"}},{"name":"x-commit-message","in":"header","required":false,"schema":{"anyOf":[{"type":"string","minLength":1},{"type":"null"}],"title":"X-Commit-Message"}},{"name":"x-confirmation-id","in":"header","required":false,"schema":{"anyOf":[{"type":"string","maxLength":36},{"type":"null"}],"title":"X-Confirmation-Id"}},{"name":"x-chat-id","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"X-Chat-Id"}},{"name":"organization-id","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Organization-Id"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/api__domains__integrations__schemas__google_ads__OAuthCallbackRequest"}}}},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"anyOf":[{"$ref":"#/components/schemas/Integration"},{"type":"null"}],"title":"Response Oauth Callback Integrations Google Ads Callback Post"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/integrations/google-ads/token-details":{"get":{"tags":["authenticated","integrations"],"summary":"Get Token Details","operationId":"get_token_details_integrations_google_ads_token_details_get","security":[{"APIKeyHeader":[]},{"HTTPBearer":[]}],"parameters":[{"name":"timezone","in":"header","required":false,"schema":{"type":"string","default":"UTC","title":"Timezone"}},{"name":"x-user-id","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"X-User-Id"}},{"name":"x-actor-email","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"X-Actor-Email"}},{"name":"x-request-source","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"X-Request-Source"}},{"name":"x-operation-id","in":"header","required":false,"schema":{"anyOf":[{"type":"string","maxLength":36},{"type":"null"}],"title":"X-Operation-Id"}},{"name":"x-commit-message","in":"header","required":false,"schema":{"anyOf":[{"type":"string","minLength":1},{"type":"null"}],"title":"X-Commit-Message"}},{"name":"x-confirmation-id","in":"header","required":false,"schema":{"anyOf":[{"type":"string","maxLength":36},{"type":"null"}],"title":"X-Confirmation-Id"}},{"name":"x-chat-id","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"X-Chat-Id"}},{"name":"organization-id","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Organization-Id"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/GoogleAdsTokenDetails"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/integrations/google-ads/disconnect":{"post":{"tags":["authenticated","integrations"],"summary":"Disconnect","description":"Disconnect Google Ads integration by revoking tokens and deleting per-org integration data.","operationId":"disconnect_integrations_google_ads_disconnect_post","security":[{"APIKeyHeader":[]},{"HTTPBearer":[]}],"parameters":[{"name":"timezone","in":"header","required":false,"schema":{"type":"string","default":"UTC","title":"Timezone"}},{"name":"x-user-id","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"X-User-Id"}},{"name":"x-actor-email","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"X-Actor-Email"}},{"name":"x-request-source","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"X-Request-Source"}},{"name":"x-operation-id","in":"header","required":false,"schema":{"anyOf":[{"type":"string","maxLength":36},{"type":"null"}],"title":"X-Operation-Id"}},{"name":"x-commit-message","in":"header","required":false,"schema":{"anyOf":[{"type":"string","minLength":1},{"type":"null"}],"title":"X-Commit-Message"}},{"name":"x-confirmation-id","in":"header","required":false,"schema":{"anyOf":[{"type":"string","maxLength":36},{"type":"null"}],"title":"X-Confirmation-Id"}},{"name":"x-chat-id","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"X-Chat-Id"}},{"name":"organization-id","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Organization-Id"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"type":"object","additionalProperties":true,"title":"Response Disconnect Integrations Google Ads Disconnect Post"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/integrations/google-ads/lsa-health":{"get":{"tags":["authenticated","integrations"],"summary":"Get Google Lsa Health","description":"Google LSA reply health for the calling org's integrations card.\n\nReads the shared hourly-cached probe rather than asking Google per page view, so\nopening the page costs a Redis hit in the normal case and at most one refresh per\norg per hour when the entry has aged out.","operationId":"get_google_lsa_health_integrations_google_ads_lsa_health_get","security":[{"APIKeyHeader":[]},{"HTTPBearer":[]}],"parameters":[{"name":"timezone","in":"header","required":false,"schema":{"type":"string","default":"UTC","title":"Timezone"}},{"name":"x-user-id","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"X-User-Id"}},{"name":"x-actor-email","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"X-Actor-Email"}},{"name":"x-request-source","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"X-Request-Source"}},{"name":"x-operation-id","in":"header","required":false,"schema":{"anyOf":[{"type":"string","maxLength":36},{"type":"null"}],"title":"X-Operation-Id"}},{"name":"x-commit-message","in":"header","required":false,"schema":{"anyOf":[{"type":"string","minLength":1},{"type":"null"}],"title":"X-Commit-Message"}},{"name":"x-confirmation-id","in":"header","required":false,"schema":{"anyOf":[{"type":"string","maxLength":36},{"type":"null"}],"title":"X-Confirmation-Id"}},{"name":"x-chat-id","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"X-Chat-Id"}},{"name":"organization-id","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Organization-Id"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/GoogleLsaHealthResponse"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/integrations/google-ads/enrollment-health":{"get":{"tags":["authenticated","integrations"],"summary":"Get Google Ads Enrollment Health","description":"Google Ads enrollment health for the calling org's integrations card.","operationId":"get_google_ads_enrollment_health_integrations_google_ads_enrollment_health_get","security":[{"APIKeyHeader":[]},{"HTTPBearer":[]}],"parameters":[{"name":"timezone","in":"header","required":false,"schema":{"type":"string","default":"UTC","title":"Timezone"}},{"name":"x-user-id","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"X-User-Id"}},{"name":"x-actor-email","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"X-Actor-Email"}},{"name":"x-request-source","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"X-Request-Source"}},{"name":"x-operation-id","in":"header","required":false,"schema":{"anyOf":[{"type":"string","maxLength":36},{"type":"null"}],"title":"X-Operation-Id"}},{"name":"x-commit-message","in":"header","required":false,"schema":{"anyOf":[{"type":"string","minLength":1},{"type":"null"}],"title":"X-Commit-Message"}},{"name":"x-confirmation-id","in":"header","required":false,"schema":{"anyOf":[{"type":"string","maxLength":36},{"type":"null"}],"title":"X-Confirmation-Id"}},{"name":"x-chat-id","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"X-Chat-Id"}},{"name":"organization-id","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Organization-Id"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/GoogleAdsEnrollmentHealthResponse"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/integrations/google-ads/accounts":{"get":{"tags":["authenticated","integrations"],"summary":"List Enrollable Google Ads Accounts","description":"Non-manager Google Ads accounts discovered under the calling org's own Google connection.","operationId":"list_enrollable_google_ads_accounts_integrations_google_ads_accounts_get","security":[{"APIKeyHeader":[]},{"HTTPBearer":[]}],"parameters":[{"name":"timezone","in":"header","required":false,"schema":{"type":"string","default":"UTC","title":"Timezone"}},{"name":"x-user-id","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"X-User-Id"}},{"name":"x-actor-email","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"X-Actor-Email"}},{"name":"x-request-source","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"X-Request-Source"}},{"name":"x-operation-id","in":"header","required":false,"schema":{"anyOf":[{"type":"string","maxLength":36},{"type":"null"}],"title":"X-Operation-Id"}},{"name":"x-commit-message","in":"header","required":false,"schema":{"anyOf":[{"type":"string","minLength":1},{"type":"null"}],"title":"X-Commit-Message"}},{"name":"x-confirmation-id","in":"header","required":false,"schema":{"anyOf":[{"type":"string","maxLength":36},{"type":"null"}],"title":"X-Confirmation-Id"}},{"name":"x-chat-id","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"X-Chat-Id"}},{"name":"organization-id","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Organization-Id"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/GoogleAdsEnrollableAccounts"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/integrations/google-ads/accounts/enroll-all":{"post":{"tags":["authenticated","integrations"],"summary":"Enroll All Own Google Ads Accounts","description":"Enroll every discovered account no other org can also see; claimed ones are left for staff.","operationId":"enroll_all_own_google_ads_accounts_integrations_google_ads_accounts_enroll_all_post","security":[{"APIKeyHeader":[]},{"HTTPBearer":[]}],"parameters":[{"name":"timezone","in":"header","required":false,"schema":{"type":"string","default":"UTC","title":"Timezone"}},{"name":"x-user-id","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"X-User-Id"}},{"name":"x-actor-email","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"X-Actor-Email"}},{"name":"x-request-source","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"X-Request-Source"}},{"name":"x-operation-id","in":"header","required":false,"schema":{"anyOf":[{"type":"string","maxLength":36},{"type":"null"}],"title":"X-Operation-Id"}},{"name":"x-commit-message","in":"header","required":false,"schema":{"anyOf":[{"type":"string","minLength":1},{"type":"null"}],"title":"X-Commit-Message"}},{"name":"x-confirmation-id","in":"header","required":false,"schema":{"anyOf":[{"type":"string","maxLength":36},{"type":"null"}],"title":"X-Confirmation-Id"}},{"name":"x-chat-id","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"X-Chat-Id"}},{"name":"organization-id","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Organization-Id"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/GoogleAdsEnrollableAccounts"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/integrations/google-ads/accounts/{account_id}/enroll":{"post":{"tags":["authenticated","integrations"],"summary":"Enroll Own Google Ads Account","description":"Enroll or un-enroll one of the calling org's discovered accounts for spend tracking.\n\nDiscovery under a franchise or agency login reaches accounts other orgs own, so enrolling\nan account another org can also see is refused and left for staff to confirm.","operationId":"enroll_own_google_ads_account_integrations_google_ads_accounts__account_id__enroll_post","security":[{"APIKeyHeader":[]},{"HTTPBearer":[]}],"parameters":[{"name":"account_id","in":"path","required":true,"schema":{"type":"string","title":"Account Id"}},{"name":"timezone","in":"header","required":false,"schema":{"type":"string","default":"UTC","title":"Timezone"}},{"name":"x-user-id","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"X-User-Id"}},{"name":"x-actor-email","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"X-Actor-Email"}},{"name":"x-request-source","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"X-Request-Source"}},{"name":"x-operation-id","in":"header","required":false,"schema":{"anyOf":[{"type":"string","maxLength":36},{"type":"null"}],"title":"X-Operation-Id"}},{"name":"x-commit-message","in":"header","required":false,"schema":{"anyOf":[{"type":"string","minLength":1},{"type":"null"}],"title":"X-Commit-Message"}},{"name":"x-confirmation-id","in":"header","required":false,"schema":{"anyOf":[{"type":"string","maxLength":36},{"type":"null"}],"title":"X-Confirmation-Id"}},{"name":"x-chat-id","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"X-Chat-Id"}},{"name":"organization-id","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Organization-Id"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/GoogleAdsEnrollAccountBody"}}}},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/GoogleAdsEnrollableAccount"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/integrations/setup-request":{"post":{"tags":["authenticated","integrations"],"summary":"Request Integration Setup","description":"Log and notify OPS when a user asks to be set up with an assisted integration (LSA / Meta).","operationId":"request_integration_setup_integrations_setup_request_post","security":[{"APIKeyHeader":[]},{"HTTPBearer":[]}],"parameters":[{"name":"organization-id","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Organization-Id"}},{"name":"x-user-id","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"X-User-Id"}},{"name":"timezone","in":"header","required":false,"schema":{"type":"string","default":"UTC","title":"Timezone"}},{"name":"x-actor-email","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"X-Actor-Email"}},{"name":"x-request-source","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"X-Request-Source"}},{"name":"x-operation-id","in":"header","required":false,"schema":{"anyOf":[{"type":"string","maxLength":36},{"type":"null"}],"title":"X-Operation-Id"}},{"name":"x-commit-message","in":"header","required":false,"schema":{"anyOf":[{"type":"string","minLength":1},{"type":"null"}],"title":"X-Commit-Message"}},{"name":"x-confirmation-id","in":"header","required":false,"schema":{"anyOf":[{"type":"string","maxLength":36},{"type":"null"}],"title":"X-Confirmation-Id"}},{"name":"x-chat-id","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"X-Chat-Id"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/IntegrationSetupRequest"}}}},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/integrations/lsa-setup-request":{"post":{"tags":["authenticated","integrations"],"summary":"Request Lsa Setup","description":"Notify OPS that a user submitted their Google LSA account IDs so invites can be sent.","operationId":"request_lsa_setup_integrations_lsa_setup_request_post","security":[{"APIKeyHeader":[]},{"HTTPBearer":[]}],"parameters":[{"name":"organization-id","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Organization-Id"}},{"name":"x-user-id","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"X-User-Id"}},{"name":"timezone","in":"header","required":false,"schema":{"type":"string","default":"UTC","title":"Timezone"}},{"name":"x-actor-email","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"X-Actor-Email"}},{"name":"x-request-source","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"X-Request-Source"}},{"name":"x-operation-id","in":"header","required":false,"schema":{"anyOf":[{"type":"string","maxLength":36},{"type":"null"}],"title":"X-Operation-Id"}},{"name":"x-commit-message","in":"header","required":false,"schema":{"anyOf":[{"type":"string","minLength":1},{"type":"null"}],"title":"X-Commit-Message"}},{"name":"x-confirmation-id","in":"header","required":false,"schema":{"anyOf":[{"type":"string","maxLength":36},{"type":"null"}],"title":"X-Confirmation-Id"}},{"name":"x-chat-id","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"X-Chat-Id"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/LsaSetupRequest"}}}},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/integrations/catalog":{"get":{"tags":["authenticated","integrations"],"summary":"List Integration Catalog","description":"The integrations this organization's Integrations page offers.","operationId":"list_integration_catalog_integrations_catalog_get","security":[{"APIKeyHeader":[]},{"HTTPBearer":[]}],"parameters":[{"name":"organization-id","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Organization-Id"}},{"name":"x-user-id","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"X-User-Id"}},{"name":"timezone","in":"header","required":false,"schema":{"type":"string","default":"UTC","title":"Timezone"}},{"name":"x-actor-email","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"X-Actor-Email"}},{"name":"x-request-source","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"X-Request-Source"}},{"name":"x-operation-id","in":"header","required":false,"schema":{"anyOf":[{"type":"string","maxLength":36},{"type":"null"}],"title":"X-Operation-Id"}},{"name":"x-commit-message","in":"header","required":false,"schema":{"anyOf":[{"type":"string","minLength":1},{"type":"null"}],"title":"X-Commit-Message"}},{"name":"x-confirmation-id","in":"header","required":false,"schema":{"anyOf":[{"type":"string","maxLength":36},{"type":"null"}],"title":"X-Confirmation-Id"}},{"name":"x-chat-id","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"X-Chat-Id"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"type":"array","items":{"$ref":"#/components/schemas/IntegrationCatalogEntry"},"title":"Response List Integration Catalog Integrations Catalog Get"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/leads/":{"get":{"tags":["authenticated","leads"],"summary":"List Leads","operationId":"list_leads_leads__get","security":[{"APIKeyHeader":[]},{"HTTPBearer":[]}],"parameters":[{"name":"limit","in":"query","required":false,"schema":{"type":"integer","default":25,"title":"Limit"}},{"name":"page","in":"query","required":false,"schema":{"anyOf":[{"type":"integer"},{"type":"null"}],"title":"Page"}},{"name":"status","in":"query","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Status"}},{"name":"source","in":"query","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Source"}},{"name":"lead_type","in":"query","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Lead Type"}},{"name":"utm_source","in":"query","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Utm Source"}},{"name":"query","in":"query","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Query"}},{"name":"received_after","in":"query","required":false,"schema":{"anyOf":[{"type":"string","format":"date-time"},{"type":"null"}],"title":"Received After"}},{"name":"received_before","in":"query","required":false,"schema":{"anyOf":[{"type":"string","format":"date-time"},{"type":"null"}],"title":"Received Before"}},{"name":"organization-id","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Organization-Id"}},{"name":"x-user-id","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"X-User-Id"}},{"name":"timezone","in":"header","required":false,"schema":{"type":"string","default":"UTC","title":"Timezone"}},{"name":"x-actor-email","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"X-Actor-Email"}},{"name":"x-request-source","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"X-Request-Source"}},{"name":"x-operation-id","in":"header","required":false,"schema":{"anyOf":[{"type":"string","maxLength":36},{"type":"null"}],"title":"X-Operation-Id"}},{"name":"x-commit-message","in":"header","required":false,"schema":{"anyOf":[{"type":"string","minLength":1},{"type":"null"}],"title":"X-Commit-Message"}},{"name":"x-confirmation-id","in":"header","required":false,"schema":{"anyOf":[{"type":"string","maxLength":36},{"type":"null"}],"title":"X-Confirmation-Id"}},{"name":"x-chat-id","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"X-Chat-Id"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/LeadPage"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/leads/sources":{"get":{"tags":["authenticated","leads"],"summary":"List Lead Sources","operationId":"list_lead_sources_leads_sources_get","security":[{"APIKeyHeader":[]},{"HTTPBearer":[]}],"parameters":[{"name":"status","in":"query","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Status"}},{"name":"organization-id","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Organization-Id"}},{"name":"x-user-id","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"X-User-Id"}},{"name":"timezone","in":"header","required":false,"schema":{"type":"string","default":"UTC","title":"Timezone"}},{"name":"x-actor-email","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"X-Actor-Email"}},{"name":"x-request-source","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"X-Request-Source"}},{"name":"x-operation-id","in":"header","required":false,"schema":{"anyOf":[{"type":"string","maxLength":36},{"type":"null"}],"title":"X-Operation-Id"}},{"name":"x-commit-message","in":"header","required":false,"schema":{"anyOf":[{"type":"string","minLength":1},{"type":"null"}],"title":"X-Commit-Message"}},{"name":"x-confirmation-id","in":"header","required":false,"schema":{"anyOf":[{"type":"string","maxLength":36},{"type":"null"}],"title":"X-Confirmation-Id"}},{"name":"x-chat-id","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"X-Chat-Id"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"type":"array","items":{"$ref":"#/components/schemas/LeadSourceFacet"},"title":"Response List Lead Sources Leads Sources Get"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/leads/ingest/service-titan-form":{"post":{"tags":["authenticated","leads"],"summary":"Ingest Service Titan Form Lead","description":"Ingest a ServiceTitan form-fill booking as a Lead.\n\nCalled by service-titan-service's bookings ETL dispatcher. The org comes from\nthe request body, not the auth context; only compare when the caller carries\nan organization. Dedup happens inside ``LeadIngestionHandler``.","operationId":"ingest_service_titan_form_lead_leads_ingest_service_titan_form_post","security":[{"APIKeyHeader":[]},{"HTTPBearer":[]}],"parameters":[{"name":"organization-id","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Organization-Id"}},{"name":"x-user-id","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"X-User-Id"}},{"name":"timezone","in":"header","required":false,"schema":{"type":"string","default":"UTC","title":"Timezone"}},{"name":"x-actor-email","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"X-Actor-Email"}},{"name":"x-request-source","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"X-Request-Source"}},{"name":"x-operation-id","in":"header","required":false,"schema":{"anyOf":[{"type":"string","maxLength":36},{"type":"null"}],"title":"X-Operation-Id"}},{"name":"x-commit-message","in":"header","required":false,"schema":{"anyOf":[{"type":"string","minLength":1},{"type":"null"}],"title":"X-Commit-Message"}},{"name":"x-confirmation-id","in":"header","required":false,"schema":{"anyOf":[{"type":"string","maxLength":36},{"type":"null"}],"title":"X-Confirmation-Id"}},{"name":"x-chat-id","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"X-Chat-Id"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ServiceTitanFormIngestRequest"}}}},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ServiceTitanFormIngestResponse"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/leads/ingest/service-titan-call":{"post":{"tags":["authenticated","leads"],"summary":"Ingest Service Titan Call Lead","description":"Ingest a settled missed inbound ServiceTitan call as a Lead.\n\nSuppresses customer engagement: the CRM sync creates/links the contact and\nmarks the lead synced, but no auto-reply or engagement.start is fired. The\npayload carries the voicemail transcript when one was captured.","operationId":"ingest_service_titan_call_lead_leads_ingest_service_titan_call_post","security":[{"APIKeyHeader":[]},{"HTTPBearer":[]}],"parameters":[{"name":"organization-id","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Organization-Id"}},{"name":"x-user-id","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"X-User-Id"}},{"name":"timezone","in":"header","required":false,"schema":{"type":"string","default":"UTC","title":"Timezone"}},{"name":"x-actor-email","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"X-Actor-Email"}},{"name":"x-request-source","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"X-Request-Source"}},{"name":"x-operation-id","in":"header","required":false,"schema":{"anyOf":[{"type":"string","maxLength":36},{"type":"null"}],"title":"X-Operation-Id"}},{"name":"x-commit-message","in":"header","required":false,"schema":{"anyOf":[{"type":"string","minLength":1},{"type":"null"}],"title":"X-Commit-Message"}},{"name":"x-confirmation-id","in":"header","required":false,"schema":{"anyOf":[{"type":"string","maxLength":36},{"type":"null"}],"title":"X-Confirmation-Id"}},{"name":"x-chat-id","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"X-Chat-Id"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ServiceTitanCallIngestRequest"}}}},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ServiceTitanCallIngestResponse"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/leads/ingest/ringcentral-call":{"post":{"tags":["authenticated","leads"],"summary":"Ingest Ringcentral Call Lead","description":"Ingest a missed inbound RingCentral call as a Lead.\n\nThe RingCentral counterpart to the ServiceTitan call ingest, and suppresses\ncustomer engagement the same way: the CRM sync creates or links the contact so a\ncampaign trigger can resolve it, but the intake itself sends nothing.\n\nIdempotent on ``(organization_id, \"ringcentral_call\", call_id)``, which is what\nlets the webhook and the poll backstop both report a call without minting twice.","operationId":"ingest_ringcentral_call_lead_leads_ingest_ringcentral_call_post","security":[{"APIKeyHeader":[]},{"HTTPBearer":[]}],"parameters":[{"name":"organization-id","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Organization-Id"}},{"name":"x-user-id","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"X-User-Id"}},{"name":"timezone","in":"header","required":false,"schema":{"type":"string","default":"UTC","title":"Timezone"}},{"name":"x-actor-email","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"X-Actor-Email"}},{"name":"x-request-source","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"X-Request-Source"}},{"name":"x-operation-id","in":"header","required":false,"schema":{"anyOf":[{"type":"string","maxLength":36},{"type":"null"}],"title":"X-Operation-Id"}},{"name":"x-commit-message","in":"header","required":false,"schema":{"anyOf":[{"type":"string","minLength":1},{"type":"null"}],"title":"X-Commit-Message"}},{"name":"x-confirmation-id","in":"header","required":false,"schema":{"anyOf":[{"type":"string","maxLength":36},{"type":"null"}],"title":"X-Confirmation-Id"}},{"name":"x-chat-id","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"X-Chat-Id"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/RingCentralCallIngestRequest"}}}},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/RingCentralCallIngestResponse"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/integrations/thumbtack/connection":{"post":{"tags":["authenticated","integrations"],"summary":"Initiate Thumbtack Connection","description":"Begin the Thumbtack OAuth flow. Returns the URL the browser should redirect to.\n\nPass ?environment=TEST to use the Thumbtack staging auth server.\nDefaults to PRODUCTION.\n\nThe earlier proof-cookie binding was removed (J14): the FE Next.js proxy\ndoesn't forward Set-Cookie, and even if it did, the cookie would land on\nthe FE host while the OAuth callback hits the BE host. Replay protection\nnow comes from the single-use Redis nonce on the state token; the\nidentity-mismatch guard in handle_thumbtack_callback covers reconnect\noverwrites.","operationId":"initiate_thumbtack_connection_integrations_thumbtack_connection_post","security":[{"APIKeyHeader":[]},{"HTTPBearer":[]}],"parameters":[{"name":"environment","in":"query","required":false,"schema":{"type":"string","pattern":"^(TEST|PRODUCTION)$","default":"PRODUCTION","title":"Environment"}},{"name":"organization-id","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Organization-Id"}},{"name":"x-user-id","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"X-User-Id"}},{"name":"timezone","in":"header","required":false,"schema":{"type":"string","default":"UTC","title":"Timezone"}},{"name":"x-actor-email","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"X-Actor-Email"}},{"name":"x-request-source","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"X-Request-Source"}},{"name":"x-operation-id","in":"header","required":false,"schema":{"anyOf":[{"type":"string","maxLength":36},{"type":"null"}],"title":"X-Operation-Id"}},{"name":"x-commit-message","in":"header","required":false,"schema":{"anyOf":[{"type":"string","minLength":1},{"type":"null"}],"title":"X-Commit-Message"}},{"name":"x-confirmation-id","in":"header","required":false,"schema":{"anyOf":[{"type":"string","maxLength":36},{"type":"null"}],"title":"X-Confirmation-Id"}},{"name":"x-chat-id","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"X-Chat-Id"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ThumbtackConnectionInitiateResponse"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}},"get":{"tags":["authenticated","integrations"],"summary":"Get Thumbtack Connection","description":"Return the current Thumbtack connection status for the caller's organization.","operationId":"get_thumbtack_connection_integrations_thumbtack_connection_get","security":[{"APIKeyHeader":[]},{"HTTPBearer":[]}],"parameters":[{"name":"organization-id","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Organization-Id"}},{"name":"x-user-id","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"X-User-Id"}},{"name":"timezone","in":"header","required":false,"schema":{"type":"string","default":"UTC","title":"Timezone"}},{"name":"x-actor-email","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"X-Actor-Email"}},{"name":"x-request-source","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"X-Request-Source"}},{"name":"x-operation-id","in":"header","required":false,"schema":{"anyOf":[{"type":"string","maxLength":36},{"type":"null"}],"title":"X-Operation-Id"}},{"name":"x-commit-message","in":"header","required":false,"schema":{"anyOf":[{"type":"string","minLength":1},{"type":"null"}],"title":"X-Commit-Message"}},{"name":"x-confirmation-id","in":"header","required":false,"schema":{"anyOf":[{"type":"string","maxLength":36},{"type":"null"}],"title":"X-Confirmation-Id"}},{"name":"x-chat-id","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"X-Chat-Id"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"type":"object","additionalProperties":true,"title":"Response Get Thumbtack Connection Integrations Thumbtack Connection Get"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}},"delete":{"tags":["authenticated","integrations"],"summary":"Disconnect Thumbtack Connection","description":"Mark the Thumbtack connection DISABLED and delete the stored secret.","operationId":"disconnect_thumbtack_connection_integrations_thumbtack_connection_delete","security":[{"APIKeyHeader":[]},{"HTTPBearer":[]}],"parameters":[{"name":"organization-id","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Organization-Id"}},{"name":"x-user-id","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"X-User-Id"}},{"name":"timezone","in":"header","required":false,"schema":{"type":"string","default":"UTC","title":"Timezone"}},{"name":"x-actor-email","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"X-Actor-Email"}},{"name":"x-request-source","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"X-Request-Source"}},{"name":"x-operation-id","in":"header","required":false,"schema":{"anyOf":[{"type":"string","maxLength":36},{"type":"null"}],"title":"X-Operation-Id"}},{"name":"x-commit-message","in":"header","required":false,"schema":{"anyOf":[{"type":"string","minLength":1},{"type":"null"}],"title":"X-Commit-Message"}},{"name":"x-confirmation-id","in":"header","required":false,"schema":{"anyOf":[{"type":"string","maxLength":36},{"type":"null"}],"title":"X-Confirmation-Id"}},{"name":"x-chat-id","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"X-Chat-Id"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ThumbtackDisconnectResponse"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/integrations/thumbtack/connections":{"get":{"tags":["authenticated","integrations"],"summary":"Get Thumbtack Connections","description":"Return every Thumbtack connection for the caller's organization — one per connected account.","operationId":"get_thumbtack_connections_integrations_thumbtack_connections_get","security":[{"APIKeyHeader":[]},{"HTTPBearer":[]}],"parameters":[{"name":"organization-id","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Organization-Id"}},{"name":"x-user-id","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"X-User-Id"}},{"name":"timezone","in":"header","required":false,"schema":{"type":"string","default":"UTC","title":"Timezone"}},{"name":"x-actor-email","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"X-Actor-Email"}},{"name":"x-request-source","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"X-Request-Source"}},{"name":"x-operation-id","in":"header","required":false,"schema":{"anyOf":[{"type":"string","maxLength":36},{"type":"null"}],"title":"X-Operation-Id"}},{"name":"x-commit-message","in":"header","required":false,"schema":{"anyOf":[{"type":"string","minLength":1},{"type":"null"}],"title":"X-Commit-Message"}},{"name":"x-confirmation-id","in":"header","required":false,"schema":{"anyOf":[{"type":"string","maxLength":36},{"type":"null"}],"title":"X-Confirmation-Id"}},{"name":"x-chat-id","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"X-Chat-Id"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"type":"object","additionalProperties":true,"title":"Response Get Thumbtack Connections Integrations Thumbtack Connections Get"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/integrations/thumbtack/connections/{connection_id}":{"delete":{"tags":["authenticated","integrations"],"summary":"Disconnect Thumbtack Connection By Id","description":"Disconnect a single Thumbtack connection by id; the org's other connections are untouched.","operationId":"disconnect_thumbtack_connection_by_id_integrations_thumbtack_connections__connection_id__delete","security":[{"APIKeyHeader":[]},{"HTTPBearer":[]}],"parameters":[{"name":"connection_id","in":"path","required":true,"schema":{"type":"string","title":"Connection Id"}},{"name":"organization-id","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Organization-Id"}},{"name":"x-user-id","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"X-User-Id"}},{"name":"timezone","in":"header","required":false,"schema":{"type":"string","default":"UTC","title":"Timezone"}},{"name":"x-actor-email","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"X-Actor-Email"}},{"name":"x-request-source","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"X-Request-Source"}},{"name":"x-operation-id","in":"header","required":false,"schema":{"anyOf":[{"type":"string","maxLength":36},{"type":"null"}],"title":"X-Operation-Id"}},{"name":"x-commit-message","in":"header","required":false,"schema":{"anyOf":[{"type":"string","minLength":1},{"type":"null"}],"title":"X-Commit-Message"}},{"name":"x-confirmation-id","in":"header","required":false,"schema":{"anyOf":[{"type":"string","maxLength":36},{"type":"null"}],"title":"X-Confirmation-Id"}},{"name":"x-chat-id","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"X-Chat-Id"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ThumbtackDisconnectResponse"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/integrations/thumbtack/connections/{connection_id}/businesses/{business_id}":{"patch":{"tags":["authenticated","integrations"],"summary":"Update Thumbtack Business Brand","description":"Set the brand the agent introduces itself as, the customer's label, or both, for one business.","operationId":"update_thumbtack_business_brand_integrations_thumbtack_connections__connection_id__businesses__business_id__patch","security":[{"APIKeyHeader":[]},{"HTTPBearer":[]}],"parameters":[{"name":"connection_id","in":"path","required":true,"schema":{"type":"string","title":"Connection Id"}},{"name":"business_id","in":"path","required":true,"schema":{"type":"string","title":"Business Id"}},{"name":"organization-id","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Organization-Id"}},{"name":"x-user-id","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"X-User-Id"}},{"name":"timezone","in":"header","required":false,"schema":{"type":"string","default":"UTC","title":"Timezone"}},{"name":"x-actor-email","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"X-Actor-Email"}},{"name":"x-request-source","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"X-Request-Source"}},{"name":"x-operation-id","in":"header","required":false,"schema":{"anyOf":[{"type":"string","maxLength":36},{"type":"null"}],"title":"X-Operation-Id"}},{"name":"x-commit-message","in":"header","required":false,"schema":{"anyOf":[{"type":"string","minLength":1},{"type":"null"}],"title":"X-Commit-Message"}},{"name":"x-confirmation-id","in":"header","required":false,"schema":{"anyOf":[{"type":"string","maxLength":36},{"type":"null"}],"title":"X-Confirmation-Id"}},{"name":"x-chat-id","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"X-Chat-Id"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ThumbtackBusinessUpdateRequest"}}}},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"type":"object","additionalProperties":true,"title":"Response Update Thumbtack Business Brand Integrations Thumbtack Connections  Connection Id  Businesses  Business Id  Patch"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/integrations/thumbtack/write-access-health":{"get":{"tags":["authenticated","integrations"],"summary":"Get Thumbtack Write Access Health","description":"Thumbtack in-thread reply health for the calling org's integrations card.\n\nSame grading the ops preflight uses, shown to the customer because only the account owner\ncan widen a scope grant. An org with nothing connected is not_applicable rather than\nhealthy so the card has nothing to render. No cache: the probe reads the stored grant locally.","operationId":"get_thumbtack_write_access_health_integrations_thumbtack_write_access_health_get","security":[{"APIKeyHeader":[]},{"HTTPBearer":[]}],"parameters":[{"name":"organization-id","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Organization-Id"}},{"name":"x-user-id","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"X-User-Id"}},{"name":"timezone","in":"header","required":false,"schema":{"type":"string","default":"UTC","title":"Timezone"}},{"name":"x-actor-email","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"X-Actor-Email"}},{"name":"x-request-source","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"X-Request-Source"}},{"name":"x-operation-id","in":"header","required":false,"schema":{"anyOf":[{"type":"string","maxLength":36},{"type":"null"}],"title":"X-Operation-Id"}},{"name":"x-commit-message","in":"header","required":false,"schema":{"anyOf":[{"type":"string","minLength":1},{"type":"null"}],"title":"X-Commit-Message"}},{"name":"x-confirmation-id","in":"header","required":false,"schema":{"anyOf":[{"type":"string","maxLength":36},{"type":"null"}],"title":"X-Confirmation-Id"}},{"name":"x-chat-id","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"X-Chat-Id"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ThumbtackHealthResponse"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/integrations/thumbtack/connection/webhooks/register":{"post":{"tags":["authenticated","integrations"],"summary":"Register Thumbtack Webhooks","description":"Register (or refresh) the webhook for every business under the current connection.","operationId":"register_thumbtack_webhooks_integrations_thumbtack_connection_webhooks_register_post","security":[{"APIKeyHeader":[]},{"HTTPBearer":[]}],"parameters":[{"name":"organization-id","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Organization-Id"}},{"name":"x-user-id","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"X-User-Id"}},{"name":"timezone","in":"header","required":false,"schema":{"type":"string","default":"UTC","title":"Timezone"}},{"name":"x-actor-email","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"X-Actor-Email"}},{"name":"x-request-source","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"X-Request-Source"}},{"name":"x-operation-id","in":"header","required":false,"schema":{"anyOf":[{"type":"string","maxLength":36},{"type":"null"}],"title":"X-Operation-Id"}},{"name":"x-commit-message","in":"header","required":false,"schema":{"anyOf":[{"type":"string","minLength":1},{"type":"null"}],"title":"X-Commit-Message"}},{"name":"x-confirmation-id","in":"header","required":false,"schema":{"anyOf":[{"type":"string","maxLength":36},{"type":"null"}],"title":"X-Confirmation-Id"}},{"name":"x-chat-id","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"X-Chat-Id"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ThumbtackWebhookRegistrationResponse"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/integrations/thumbtack/connection/webhooks":{"delete":{"tags":["authenticated","integrations"],"summary":"Deregister Thumbtack Webhooks","description":"Delete all webhooks for the current org's connection and clear local state.","operationId":"deregister_thumbtack_webhooks_integrations_thumbtack_connection_webhooks_delete","security":[{"APIKeyHeader":[]},{"HTTPBearer":[]}],"parameters":[{"name":"organization-id","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Organization-Id"}},{"name":"x-user-id","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"X-User-Id"}},{"name":"timezone","in":"header","required":false,"schema":{"type":"string","default":"UTC","title":"Timezone"}},{"name":"x-actor-email","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"X-Actor-Email"}},{"name":"x-request-source","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"X-Request-Source"}},{"name":"x-operation-id","in":"header","required":false,"schema":{"anyOf":[{"type":"string","maxLength":36},{"type":"null"}],"title":"X-Operation-Id"}},{"name":"x-commit-message","in":"header","required":false,"schema":{"anyOf":[{"type":"string","minLength":1},{"type":"null"}],"title":"X-Commit-Message"}},{"name":"x-confirmation-id","in":"header","required":false,"schema":{"anyOf":[{"type":"string","maxLength":36},{"type":"null"}],"title":"X-Confirmation-Id"}},{"name":"x-chat-id","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"X-Chat-Id"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ThumbtackWebhookDeregistrationResponse"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/integrations/thumbtack/connections/{connection_id}/webhooks/register":{"post":{"tags":["authenticated","integrations"],"summary":"Register Thumbtack Webhooks For Connection","description":"Register (or refresh) the webhook for every business under the given connection.","operationId":"register_thumbtack_webhooks_for_connection_integrations_thumbtack_connections__connection_id__webhooks_register_post","security":[{"APIKeyHeader":[]},{"HTTPBearer":[]}],"parameters":[{"name":"connection_id","in":"path","required":true,"schema":{"type":"string","title":"Connection Id"}},{"name":"organization-id","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Organization-Id"}},{"name":"x-user-id","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"X-User-Id"}},{"name":"timezone","in":"header","required":false,"schema":{"type":"string","default":"UTC","title":"Timezone"}},{"name":"x-actor-email","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"X-Actor-Email"}},{"name":"x-request-source","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"X-Request-Source"}},{"name":"x-operation-id","in":"header","required":false,"schema":{"anyOf":[{"type":"string","maxLength":36},{"type":"null"}],"title":"X-Operation-Id"}},{"name":"x-commit-message","in":"header","required":false,"schema":{"anyOf":[{"type":"string","minLength":1},{"type":"null"}],"title":"X-Commit-Message"}},{"name":"x-confirmation-id","in":"header","required":false,"schema":{"anyOf":[{"type":"string","maxLength":36},{"type":"null"}],"title":"X-Confirmation-Id"}},{"name":"x-chat-id","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"X-Chat-Id"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ThumbtackWebhookRegistrationResponse"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/integrations/thumbtack/connections/{connection_id}/webhooks":{"delete":{"tags":["authenticated","integrations"],"summary":"Deregister Thumbtack Webhooks For Connection","description":"Delete all webhooks for the given connection and clear local state.","operationId":"deregister_thumbtack_webhooks_for_connection_integrations_thumbtack_connections__connection_id__webhooks_delete","security":[{"APIKeyHeader":[]},{"HTTPBearer":[]}],"parameters":[{"name":"connection_id","in":"path","required":true,"schema":{"type":"string","title":"Connection Id"}},{"name":"organization-id","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Organization-Id"}},{"name":"x-user-id","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"X-User-Id"}},{"name":"timezone","in":"header","required":false,"schema":{"type":"string","default":"UTC","title":"Timezone"}},{"name":"x-actor-email","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"X-Actor-Email"}},{"name":"x-request-source","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"X-Request-Source"}},{"name":"x-operation-id","in":"header","required":false,"schema":{"anyOf":[{"type":"string","maxLength":36},{"type":"null"}],"title":"X-Operation-Id"}},{"name":"x-commit-message","in":"header","required":false,"schema":{"anyOf":[{"type":"string","minLength":1},{"type":"null"}],"title":"X-Commit-Message"}},{"name":"x-confirmation-id","in":"header","required":false,"schema":{"anyOf":[{"type":"string","maxLength":36},{"type":"null"}],"title":"X-Confirmation-Id"}},{"name":"x-chat-id","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"X-Chat-Id"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ThumbtackWebhookDeregistrationResponse"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/integrations/thumbtack/connections/{connection_id}/negotiations/{negotiation_id}/messages":{"get":{"tags":["authenticated","integrations"],"summary":"Get Thumbtack Negotiation Messages","description":"Raw Thumbtack message page for one negotiation. Staff-only — it returns customer message text.","operationId":"get_thumbtack_negotiation_messages_integrations_thumbtack_connections__connection_id__negotiations__negotiation_id__messages_get","security":[{"APIKeyHeader":[]},{"HTTPBearer":[]}],"parameters":[{"name":"connection_id","in":"path","required":true,"schema":{"type":"string","title":"Connection Id"}},{"name":"negotiation_id","in":"path","required":true,"schema":{"type":"string","title":"Negotiation Id"}},{"name":"organization-id","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Organization-Id"}},{"name":"x-user-id","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"X-User-Id"}},{"name":"timezone","in":"header","required":false,"schema":{"type":"string","default":"UTC","title":"Timezone"}},{"name":"x-actor-email","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"X-Actor-Email"}},{"name":"x-request-source","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"X-Request-Source"}},{"name":"x-operation-id","in":"header","required":false,"schema":{"anyOf":[{"type":"string","maxLength":36},{"type":"null"}],"title":"X-Operation-Id"}},{"name":"x-commit-message","in":"header","required":false,"schema":{"anyOf":[{"type":"string","minLength":1},{"type":"null"}],"title":"X-Commit-Message"}},{"name":"x-confirmation-id","in":"header","required":false,"schema":{"anyOf":[{"type":"string","maxLength":36},{"type":"null"}],"title":"X-Confirmation-Id"}},{"name":"x-chat-id","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"X-Chat-Id"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"type":"object","additionalProperties":true,"title":"Response Get Thumbtack Negotiation Messages Integrations Thumbtack Connections  Connection Id  Negotiations  Negotiation Id  Messages Get"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/integrations/thumbtack/businesses/{business_id}/phone-numbers":{"get":{"tags":["authenticated","integrations"],"summary":"List Thumbtack Phone Numbers","operationId":"list_thumbtack_phone_numbers_integrations_thumbtack_businesses__business_id__phone_numbers_get","security":[{"APIKeyHeader":[]},{"HTTPBearer":[]}],"parameters":[{"name":"business_id","in":"path","required":true,"schema":{"type":"string","title":"Business Id"}},{"name":"refresh","in":"query","required":false,"schema":{"type":"boolean","default":false,"title":"Refresh"}},{"name":"organization-id","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Organization-Id"}},{"name":"x-user-id","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"X-User-Id"}},{"name":"timezone","in":"header","required":false,"schema":{"type":"string","default":"UTC","title":"Timezone"}},{"name":"x-actor-email","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"X-Actor-Email"}},{"name":"x-request-source","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"X-Request-Source"}},{"name":"x-operation-id","in":"header","required":false,"schema":{"anyOf":[{"type":"string","maxLength":36},{"type":"null"}],"title":"X-Operation-Id"}},{"name":"x-commit-message","in":"header","required":false,"schema":{"anyOf":[{"type":"string","minLength":1},{"type":"null"}],"title":"X-Commit-Message"}},{"name":"x-confirmation-id","in":"header","required":false,"schema":{"anyOf":[{"type":"string","maxLength":36},{"type":"null"}],"title":"X-Confirmation-Id"}},{"name":"x-chat-id","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"X-Chat-Id"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ThumbtackPhoneNumberListResponse"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}},"post":{"tags":["authenticated","integrations"],"summary":"Create Thumbtack Phone Number","operationId":"create_thumbtack_phone_number_integrations_thumbtack_businesses__business_id__phone_numbers_post","security":[{"APIKeyHeader":[]},{"HTTPBearer":[]}],"parameters":[{"name":"business_id","in":"path","required":true,"schema":{"type":"string","title":"Business Id"}},{"name":"organization-id","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Organization-Id"}},{"name":"x-user-id","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"X-User-Id"}},{"name":"timezone","in":"header","required":false,"schema":{"type":"string","default":"UTC","title":"Timezone"}},{"name":"x-actor-email","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"X-Actor-Email"}},{"name":"x-request-source","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"X-Request-Source"}},{"name":"x-operation-id","in":"header","required":false,"schema":{"anyOf":[{"type":"string","maxLength":36},{"type":"null"}],"title":"X-Operation-Id"}},{"name":"x-commit-message","in":"header","required":false,"schema":{"anyOf":[{"type":"string","minLength":1},{"type":"null"}],"title":"X-Commit-Message"}},{"name":"x-confirmation-id","in":"header","required":false,"schema":{"anyOf":[{"type":"string","maxLength":36},{"type":"null"}],"title":"X-Confirmation-Id"}},{"name":"x-chat-id","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"X-Chat-Id"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ThumbtackPhoneNumberCreateRequest"}}}},"responses":{"201":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ThumbtackPhoneNumberResponse"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/integrations/thumbtack/businesses/{business_id}/phone-numbers/bulk":{"post":{"tags":["authenticated","integrations"],"summary":"Bulk Create Thumbtack Phone Numbers","operationId":"bulk_create_thumbtack_phone_numbers_integrations_thumbtack_businesses__business_id__phone_numbers_bulk_post","security":[{"APIKeyHeader":[]},{"HTTPBearer":[]}],"parameters":[{"name":"business_id","in":"path","required":true,"schema":{"type":"string","title":"Business Id"}},{"name":"organization-id","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Organization-Id"}},{"name":"x-user-id","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"X-User-Id"}},{"name":"timezone","in":"header","required":false,"schema":{"type":"string","default":"UTC","title":"Timezone"}},{"name":"x-actor-email","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"X-Actor-Email"}},{"name":"x-request-source","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"X-Request-Source"}},{"name":"x-operation-id","in":"header","required":false,"schema":{"anyOf":[{"type":"string","maxLength":36},{"type":"null"}],"title":"X-Operation-Id"}},{"name":"x-commit-message","in":"header","required":false,"schema":{"anyOf":[{"type":"string","minLength":1},{"type":"null"}],"title":"X-Commit-Message"}},{"name":"x-confirmation-id","in":"header","required":false,"schema":{"anyOf":[{"type":"string","maxLength":36},{"type":"null"}],"title":"X-Confirmation-Id"}},{"name":"x-chat-id","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"X-Chat-Id"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ThumbtackPhoneNumberBulkCreateRequest"}}}},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ThumbtackPhoneNumberListResponse"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/integrations/thumbtack/businesses/{business_id}/phone-numbers/{phone_number_id}":{"patch":{"tags":["authenticated","integrations"],"summary":"Update Thumbtack Phone Number","operationId":"update_thumbtack_phone_number_integrations_thumbtack_businesses__business_id__phone_numbers__phone_number_id__patch","security":[{"APIKeyHeader":[]},{"HTTPBearer":[]}],"parameters":[{"name":"business_id","in":"path","required":true,"schema":{"type":"string","title":"Business Id"}},{"name":"phone_number_id","in":"path","required":true,"schema":{"type":"string","title":"Phone Number Id"}},{"name":"organization-id","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Organization-Id"}},{"name":"x-user-id","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"X-User-Id"}},{"name":"timezone","in":"header","required":false,"schema":{"type":"string","default":"UTC","title":"Timezone"}},{"name":"x-actor-email","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"X-Actor-Email"}},{"name":"x-request-source","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"X-Request-Source"}},{"name":"x-operation-id","in":"header","required":false,"schema":{"anyOf":[{"type":"string","maxLength":36},{"type":"null"}],"title":"X-Operation-Id"}},{"name":"x-commit-message","in":"header","required":false,"schema":{"anyOf":[{"type":"string","minLength":1},{"type":"null"}],"title":"X-Commit-Message"}},{"name":"x-confirmation-id","in":"header","required":false,"schema":{"anyOf":[{"type":"string","maxLength":36},{"type":"null"}],"title":"X-Confirmation-Id"}},{"name":"x-chat-id","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"X-Chat-Id"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ThumbtackPhoneNumberUpdateRequest"}}}},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ThumbtackPhoneNumberResponse"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}},"delete":{"tags":["authenticated","integrations"],"summary":"Delete Thumbtack Phone Number","operationId":"delete_thumbtack_phone_number_integrations_thumbtack_businesses__business_id__phone_numbers__phone_number_id__delete","security":[{"APIKeyHeader":[]},{"HTTPBearer":[]}],"parameters":[{"name":"business_id","in":"path","required":true,"schema":{"type":"string","title":"Business Id"}},{"name":"phone_number_id","in":"path","required":true,"schema":{"type":"string","title":"Phone Number Id"}},{"name":"organization-id","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Organization-Id"}},{"name":"x-user-id","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"X-User-Id"}},{"name":"timezone","in":"header","required":false,"schema":{"type":"string","default":"UTC","title":"Timezone"}},{"name":"x-actor-email","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"X-Actor-Email"}},{"name":"x-request-source","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"X-Request-Source"}},{"name":"x-operation-id","in":"header","required":false,"schema":{"anyOf":[{"type":"string","maxLength":36},{"type":"null"}],"title":"X-Operation-Id"}},{"name":"x-commit-message","in":"header","required":false,"schema":{"anyOf":[{"type":"string","minLength":1},{"type":"null"}],"title":"X-Commit-Message"}},{"name":"x-confirmation-id","in":"header","required":false,"schema":{"anyOf":[{"type":"string","maxLength":36},{"type":"null"}],"title":"X-Confirmation-Id"}},{"name":"x-chat-id","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"X-Chat-Id"}}],"responses":{"204":{"description":"Successful Response"},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/integrations/yelp/connection":{"post":{"tags":["authenticated","integrations"],"summary":"Initiate Yelp Connection","operationId":"initiate_yelp_connection_integrations_yelp_connection_post","security":[{"APIKeyHeader":[]},{"HTTPBearer":[]}],"parameters":[{"name":"environment","in":"query","required":false,"schema":{"type":"string","pattern":"^(TEST|PRODUCTION)$","default":"PRODUCTION","title":"Environment"}},{"name":"connection_id","in":"query","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"description":"Existing connection to re-authorize (reconnect)","title":"Connection Id"},"description":"Existing connection to re-authorize (reconnect)"},{"name":"organization-id","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Organization-Id"}},{"name":"x-user-id","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"X-User-Id"}},{"name":"timezone","in":"header","required":false,"schema":{"type":"string","default":"UTC","title":"Timezone"}},{"name":"x-actor-email","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"X-Actor-Email"}},{"name":"x-request-source","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"X-Request-Source"}},{"name":"x-operation-id","in":"header","required":false,"schema":{"anyOf":[{"type":"string","maxLength":36},{"type":"null"}],"title":"X-Operation-Id"}},{"name":"x-commit-message","in":"header","required":false,"schema":{"anyOf":[{"type":"string","minLength":1},{"type":"null"}],"title":"X-Commit-Message"}},{"name":"x-confirmation-id","in":"header","required":false,"schema":{"anyOf":[{"type":"string","maxLength":36},{"type":"null"}],"title":"X-Confirmation-Id"}},{"name":"x-chat-id","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"X-Chat-Id"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/YelpConnectionInitiateResponse"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}},"get":{"tags":["authenticated","integrations"],"summary":"Get Yelp Connection","operationId":"get_yelp_connection_integrations_yelp_connection_get","security":[{"APIKeyHeader":[]},{"HTTPBearer":[]}],"parameters":[{"name":"organization-id","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Organization-Id"}},{"name":"x-user-id","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"X-User-Id"}},{"name":"timezone","in":"header","required":false,"schema":{"type":"string","default":"UTC","title":"Timezone"}},{"name":"x-actor-email","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"X-Actor-Email"}},{"name":"x-request-source","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"X-Request-Source"}},{"name":"x-operation-id","in":"header","required":false,"schema":{"anyOf":[{"type":"string","maxLength":36},{"type":"null"}],"title":"X-Operation-Id"}},{"name":"x-commit-message","in":"header","required":false,"schema":{"anyOf":[{"type":"string","minLength":1},{"type":"null"}],"title":"X-Commit-Message"}},{"name":"x-confirmation-id","in":"header","required":false,"schema":{"anyOf":[{"type":"string","maxLength":36},{"type":"null"}],"title":"X-Confirmation-Id"}},{"name":"x-chat-id","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"X-Chat-Id"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"type":"object","additionalProperties":true,"title":"Response Get Yelp Connection Integrations Yelp Connection Get"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}},"delete":{"tags":["authenticated","integrations"],"summary":"Disconnect Yelp Connection","operationId":"disconnect_yelp_connection_integrations_yelp_connection_delete","security":[{"APIKeyHeader":[]},{"HTTPBearer":[]}],"parameters":[{"name":"organization-id","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Organization-Id"}},{"name":"x-user-id","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"X-User-Id"}},{"name":"timezone","in":"header","required":false,"schema":{"type":"string","default":"UTC","title":"Timezone"}},{"name":"x-actor-email","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"X-Actor-Email"}},{"name":"x-request-source","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"X-Request-Source"}},{"name":"x-operation-id","in":"header","required":false,"schema":{"anyOf":[{"type":"string","maxLength":36},{"type":"null"}],"title":"X-Operation-Id"}},{"name":"x-commit-message","in":"header","required":false,"schema":{"anyOf":[{"type":"string","minLength":1},{"type":"null"}],"title":"X-Commit-Message"}},{"name":"x-confirmation-id","in":"header","required":false,"schema":{"anyOf":[{"type":"string","maxLength":36},{"type":"null"}],"title":"X-Confirmation-Id"}},{"name":"x-chat-id","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"X-Chat-Id"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/YelpDisconnectResponse"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/integrations/yelp/connection/businesses":{"get":{"tags":["authenticated","integrations"],"summary":"List Yelp Businesses","operationId":"list_yelp_businesses_integrations_yelp_connection_businesses_get","security":[{"APIKeyHeader":[]},{"HTTPBearer":[]}],"parameters":[{"name":"organization-id","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Organization-Id"}},{"name":"x-user-id","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"X-User-Id"}},{"name":"timezone","in":"header","required":false,"schema":{"type":"string","default":"UTC","title":"Timezone"}},{"name":"x-actor-email","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"X-Actor-Email"}},{"name":"x-request-source","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"X-Request-Source"}},{"name":"x-operation-id","in":"header","required":false,"schema":{"anyOf":[{"type":"string","maxLength":36},{"type":"null"}],"title":"X-Operation-Id"}},{"name":"x-commit-message","in":"header","required":false,"schema":{"anyOf":[{"type":"string","minLength":1},{"type":"null"}],"title":"X-Commit-Message"}},{"name":"x-confirmation-id","in":"header","required":false,"schema":{"anyOf":[{"type":"string","maxLength":36},{"type":"null"}],"title":"X-Confirmation-Id"}},{"name":"x-chat-id","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"X-Chat-Id"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"type":"array","items":{"type":"object","additionalProperties":true},"title":"Response List Yelp Businesses Integrations Yelp Connection Businesses Get"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}},"patch":{"tags":["authenticated","integrations"],"summary":"Select Yelp Businesses","operationId":"select_yelp_businesses_integrations_yelp_connection_businesses_patch","security":[{"APIKeyHeader":[]},{"HTTPBearer":[]}],"parameters":[{"name":"organization-id","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Organization-Id"}},{"name":"x-user-id","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"X-User-Id"}},{"name":"timezone","in":"header","required":false,"schema":{"type":"string","default":"UTC","title":"Timezone"}},{"name":"x-actor-email","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"X-Actor-Email"}},{"name":"x-request-source","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"X-Request-Source"}},{"name":"x-operation-id","in":"header","required":false,"schema":{"anyOf":[{"type":"string","maxLength":36},{"type":"null"}],"title":"X-Operation-Id"}},{"name":"x-commit-message","in":"header","required":false,"schema":{"anyOf":[{"type":"string","minLength":1},{"type":"null"}],"title":"X-Commit-Message"}},{"name":"x-confirmation-id","in":"header","required":false,"schema":{"anyOf":[{"type":"string","maxLength":36},{"type":"null"}],"title":"X-Confirmation-Id"}},{"name":"x-chat-id","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"X-Chat-Id"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/YelpBusinessSelection"}}}},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"type":"object","additionalProperties":true,"title":"Response Select Yelp Businesses Integrations Yelp Connection Businesses Patch"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/media/upload-url":{"post":{"tags":["authenticated","media"],"summary":"Create Upload Url","operationId":"create_upload_url_media_upload_url_post","security":[{"APIKeyHeader":[]},{"HTTPBearer":[]}],"parameters":[{"name":"organization-id","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Organization-Id"}},{"name":"x-user-id","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"X-User-Id"}},{"name":"timezone","in":"header","required":false,"schema":{"type":"string","default":"UTC","title":"Timezone"}},{"name":"x-actor-email","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"X-Actor-Email"}},{"name":"x-request-source","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"X-Request-Source"}},{"name":"x-operation-id","in":"header","required":false,"schema":{"anyOf":[{"type":"string","maxLength":36},{"type":"null"}],"title":"X-Operation-Id"}},{"name":"x-commit-message","in":"header","required":false,"schema":{"anyOf":[{"type":"string","minLength":1},{"type":"null"}],"title":"X-Commit-Message"}},{"name":"x-confirmation-id","in":"header","required":false,"schema":{"anyOf":[{"type":"string","maxLength":36},{"type":"null"}],"title":"X-Confirmation-Id"}},{"name":"x-chat-id","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"X-Chat-Id"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/CreateUploadUrlRequest"}}}},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/CreateUploadUrlResponse"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/integrations/meta-ads/callback":{"post":{"tags":["authenticated","integrations"],"summary":"Oauth Callback","operationId":"oauth_callback_integrations_meta_ads_callback_post","security":[{"APIKeyHeader":[]},{"HTTPBearer":[]}],"parameters":[{"name":"timezone","in":"header","required":false,"schema":{"type":"string","default":"UTC","title":"Timezone"}},{"name":"x-user-id","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"X-User-Id"}},{"name":"x-actor-email","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"X-Actor-Email"}},{"name":"x-request-source","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"X-Request-Source"}},{"name":"x-operation-id","in":"header","required":false,"schema":{"anyOf":[{"type":"string","maxLength":36},{"type":"null"}],"title":"X-Operation-Id"}},{"name":"x-commit-message","in":"header","required":false,"schema":{"anyOf":[{"type":"string","minLength":1},{"type":"null"}],"title":"X-Commit-Message"}},{"name":"x-confirmation-id","in":"header","required":false,"schema":{"anyOf":[{"type":"string","maxLength":36},{"type":"null"}],"title":"X-Confirmation-Id"}},{"name":"x-chat-id","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"X-Chat-Id"}},{"name":"organization-id","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Organization-Id"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/api__domains__integrations__schemas__meta_ads__OAuthCallbackRequest"}}}},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Integration"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/integrations/meta-ads/token-details":{"get":{"tags":["authenticated","integrations"],"summary":"Get Token Details","operationId":"get_token_details_integrations_meta_ads_token_details_get","security":[{"APIKeyHeader":[]},{"HTTPBearer":[]}],"parameters":[{"name":"timezone","in":"header","required":false,"schema":{"type":"string","default":"UTC","title":"Timezone"}},{"name":"x-user-id","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"X-User-Id"}},{"name":"x-actor-email","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"X-Actor-Email"}},{"name":"x-request-source","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"X-Request-Source"}},{"name":"x-operation-id","in":"header","required":false,"schema":{"anyOf":[{"type":"string","maxLength":36},{"type":"null"}],"title":"X-Operation-Id"}},{"name":"x-commit-message","in":"header","required":false,"schema":{"anyOf":[{"type":"string","minLength":1},{"type":"null"}],"title":"X-Commit-Message"}},{"name":"x-confirmation-id","in":"header","required":false,"schema":{"anyOf":[{"type":"string","maxLength":36},{"type":"null"}],"title":"X-Confirmation-Id"}},{"name":"x-chat-id","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"X-Chat-Id"}},{"name":"organization-id","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Organization-Id"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/MetaTokenDetails"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/integrations/meta-ads/pages":{"get":{"tags":["authenticated","integrations"],"summary":"List Pages","operationId":"list_pages_integrations_meta_ads_pages_get","security":[{"APIKeyHeader":[]},{"HTTPBearer":[]}],"parameters":[{"name":"timezone","in":"header","required":false,"schema":{"type":"string","default":"UTC","title":"Timezone"}},{"name":"x-user-id","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"X-User-Id"}},{"name":"x-actor-email","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"X-Actor-Email"}},{"name":"x-request-source","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"X-Request-Source"}},{"name":"x-operation-id","in":"header","required":false,"schema":{"anyOf":[{"type":"string","maxLength":36},{"type":"null"}],"title":"X-Operation-Id"}},{"name":"x-commit-message","in":"header","required":false,"schema":{"anyOf":[{"type":"string","minLength":1},{"type":"null"}],"title":"X-Commit-Message"}},{"name":"x-confirmation-id","in":"header","required":false,"schema":{"anyOf":[{"type":"string","maxLength":36},{"type":"null"}],"title":"X-Confirmation-Id"}},{"name":"x-chat-id","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"X-Chat-Id"}},{"name":"organization-id","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Organization-Id"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"type":"array","items":{"$ref":"#/components/schemas/MetaPageResponse"},"title":"Response List Pages Integrations Meta Ads Pages Get"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/integrations/meta-ads/insights":{"get":{"tags":["authenticated","integrations"],"summary":"Get Ads Insights","operationId":"get_ads_insights_integrations_meta_ads_insights_get","security":[{"APIKeyHeader":[]},{"HTTPBearer":[]}],"parameters":[{"name":"date_preset","in":"query","required":false,"schema":{"type":"string","default":"last_30d","title":"Date Preset"}},{"name":"timezone","in":"header","required":false,"schema":{"type":"string","default":"UTC","title":"Timezone"}},{"name":"x-user-id","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"X-User-Id"}},{"name":"x-actor-email","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"X-Actor-Email"}},{"name":"x-request-source","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"X-Request-Source"}},{"name":"x-operation-id","in":"header","required":false,"schema":{"anyOf":[{"type":"string","maxLength":36},{"type":"null"}],"title":"X-Operation-Id"}},{"name":"x-commit-message","in":"header","required":false,"schema":{"anyOf":[{"type":"string","minLength":1},{"type":"null"}],"title":"X-Commit-Message"}},{"name":"x-confirmation-id","in":"header","required":false,"schema":{"anyOf":[{"type":"string","maxLength":36},{"type":"null"}],"title":"X-Confirmation-Id"}},{"name":"x-chat-id","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"X-Chat-Id"}},{"name":"organization-id","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Organization-Id"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/MetaAdsInsightsResponse"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/integrations/meta-ads/pages/{page_id}/connect":{"put":{"tags":["authenticated","integrations"],"summary":"Connect Page","operationId":"connect_page_integrations_meta_ads_pages__page_id__connect_put","security":[{"APIKeyHeader":[]},{"HTTPBearer":[]}],"parameters":[{"name":"page_id","in":"path","required":true,"schema":{"type":"string","title":"Page Id"}},{"name":"timezone","in":"header","required":false,"schema":{"type":"string","default":"UTC","title":"Timezone"}},{"name":"x-user-id","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"X-User-Id"}},{"name":"x-actor-email","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"X-Actor-Email"}},{"name":"x-request-source","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"X-Request-Source"}},{"name":"x-operation-id","in":"header","required":false,"schema":{"anyOf":[{"type":"string","maxLength":36},{"type":"null"}],"title":"X-Operation-Id"}},{"name":"x-commit-message","in":"header","required":false,"schema":{"anyOf":[{"type":"string","minLength":1},{"type":"null"}],"title":"X-Commit-Message"}},{"name":"x-confirmation-id","in":"header","required":false,"schema":{"anyOf":[{"type":"string","maxLength":36},{"type":"null"}],"title":"X-Confirmation-Id"}},{"name":"x-chat-id","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"X-Chat-Id"}},{"name":"organization-id","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Organization-Id"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/MetaPageConnectResponse"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}},"delete":{"tags":["authenticated","integrations"],"summary":"Disconnect Page","operationId":"disconnect_page_integrations_meta_ads_pages__page_id__connect_delete","security":[{"APIKeyHeader":[]},{"HTTPBearer":[]}],"parameters":[{"name":"page_id","in":"path","required":true,"schema":{"type":"string","title":"Page Id"}},{"name":"timezone","in":"header","required":false,"schema":{"type":"string","default":"UTC","title":"Timezone"}},{"name":"x-user-id","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"X-User-Id"}},{"name":"x-actor-email","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"X-Actor-Email"}},{"name":"x-request-source","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"X-Request-Source"}},{"name":"x-operation-id","in":"header","required":false,"schema":{"anyOf":[{"type":"string","maxLength":36},{"type":"null"}],"title":"X-Operation-Id"}},{"name":"x-commit-message","in":"header","required":false,"schema":{"anyOf":[{"type":"string","minLength":1},{"type":"null"}],"title":"X-Commit-Message"}},{"name":"x-confirmation-id","in":"header","required":false,"schema":{"anyOf":[{"type":"string","maxLength":36},{"type":"null"}],"title":"X-Confirmation-Id"}},{"name":"x-chat-id","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"X-Chat-Id"}},{"name":"organization-id","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Organization-Id"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"type":"object","additionalProperties":true,"title":"Response Disconnect Page Integrations Meta Ads Pages  Page Id  Connect Delete"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/integrations/meta-ads/pages/{page_id}":{"patch":{"tags":["authenticated","integrations"],"summary":"Update Meta Page Brand","description":"Set the brand the agent introduces itself as for a connected Meta page.","operationId":"update_meta_page_brand_integrations_meta_ads_pages__page_id__patch","security":[{"APIKeyHeader":[]},{"HTTPBearer":[]}],"parameters":[{"name":"page_id","in":"path","required":true,"schema":{"type":"string","title":"Page Id"}},{"name":"timezone","in":"header","required":false,"schema":{"type":"string","default":"UTC","title":"Timezone"}},{"name":"x-user-id","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"X-User-Id"}},{"name":"x-actor-email","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"X-Actor-Email"}},{"name":"x-request-source","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"X-Request-Source"}},{"name":"x-operation-id","in":"header","required":false,"schema":{"anyOf":[{"type":"string","maxLength":36},{"type":"null"}],"title":"X-Operation-Id"}},{"name":"x-commit-message","in":"header","required":false,"schema":{"anyOf":[{"type":"string","minLength":1},{"type":"null"}],"title":"X-Commit-Message"}},{"name":"x-confirmation-id","in":"header","required":false,"schema":{"anyOf":[{"type":"string","maxLength":36},{"type":"null"}],"title":"X-Confirmation-Id"}},{"name":"x-chat-id","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"X-Chat-Id"}},{"name":"organization-id","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Organization-Id"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/MetaPageBrandUpdateRequest"}}}},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/MetaPageResponse"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/integrations/meta-ads/disconnect":{"post":{"tags":["authenticated","integrations"],"summary":"Disconnect","operationId":"disconnect_integrations_meta_ads_disconnect_post","security":[{"APIKeyHeader":[]},{"HTTPBearer":[]}],"parameters":[{"name":"timezone","in":"header","required":false,"schema":{"type":"string","default":"UTC","title":"Timezone"}},{"name":"x-user-id","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"X-User-Id"}},{"name":"x-actor-email","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"X-Actor-Email"}},{"name":"x-request-source","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"X-Request-Source"}},{"name":"x-operation-id","in":"header","required":false,"schema":{"anyOf":[{"type":"string","maxLength":36},{"type":"null"}],"title":"X-Operation-Id"}},{"name":"x-commit-message","in":"header","required":false,"schema":{"anyOf":[{"type":"string","minLength":1},{"type":"null"}],"title":"X-Commit-Message"}},{"name":"x-confirmation-id","in":"header","required":false,"schema":{"anyOf":[{"type":"string","maxLength":36},{"type":"null"}],"title":"X-Confirmation-Id"}},{"name":"x-chat-id","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"X-Chat-Id"}},{"name":"organization-id","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Organization-Id"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"type":"object","additionalProperties":true,"title":"Response Disconnect Integrations Meta Ads Disconnect Post"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/resolve/conversation/{engagement_id}":{"get":{"tags":["authenticated","resolve"],"summary":"Resolve Conversation Organization","operationId":"resolve_conversation_organization_resolve_conversation__engagement_id__get","security":[{"APIKeyHeader":[]},{"HTTPBearer":[]}],"parameters":[{"name":"engagement_id","in":"path","required":true,"schema":{"type":"string","title":"Engagement Id"}},{"name":"organization-id","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Organization-Id"}},{"name":"x-user-id","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"X-User-Id"}},{"name":"timezone","in":"header","required":false,"schema":{"type":"string","default":"UTC","title":"Timezone"}},{"name":"x-actor-email","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"X-Actor-Email"}},{"name":"x-request-source","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"X-Request-Source"}},{"name":"x-operation-id","in":"header","required":false,"schema":{"anyOf":[{"type":"string","maxLength":36},{"type":"null"}],"title":"X-Operation-Id"}},{"name":"x-commit-message","in":"header","required":false,"schema":{"anyOf":[{"type":"string","minLength":1},{"type":"null"}],"title":"X-Commit-Message"}},{"name":"x-confirmation-id","in":"header","required":false,"schema":{"anyOf":[{"type":"string","maxLength":36},{"type":"null"}],"title":"X-Confirmation-Id"}},{"name":"x-chat-id","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"X-Chat-Id"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/OrganizationResolution"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/resolve/ask-jenny/{chat_id}":{"get":{"tags":["authenticated","resolve"],"summary":"Resolve Ask Jenny Organization","operationId":"resolve_ask_jenny_organization_resolve_ask_jenny__chat_id__get","security":[{"APIKeyHeader":[]},{"HTTPBearer":[]}],"parameters":[{"name":"chat_id","in":"path","required":true,"schema":{"type":"string","title":"Chat Id"}},{"name":"organization-id","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Organization-Id"}},{"name":"x-user-id","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"X-User-Id"}},{"name":"timezone","in":"header","required":false,"schema":{"type":"string","default":"UTC","title":"Timezone"}},{"name":"x-actor-email","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"X-Actor-Email"}},{"name":"x-request-source","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"X-Request-Source"}},{"name":"x-operation-id","in":"header","required":false,"schema":{"anyOf":[{"type":"string","maxLength":36},{"type":"null"}],"title":"X-Operation-Id"}},{"name":"x-commit-message","in":"header","required":false,"schema":{"anyOf":[{"type":"string","minLength":1},{"type":"null"}],"title":"X-Commit-Message"}},{"name":"x-confirmation-id","in":"header","required":false,"schema":{"anyOf":[{"type":"string","maxLength":36},{"type":"null"}],"title":"X-Confirmation-Id"}},{"name":"x-chat-id","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"X-Chat-Id"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/OrganizationResolution"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/tenants/":{"get":{"tags":["authenticated","service-titan-tenant"],"summary":"Read Tenants","operationId":"read_tenants_tenants__get","security":[{"APIKeyHeader":[]},{"HTTPBearer":[]}],"parameters":[{"name":"organization-id","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Organization-Id"}},{"name":"x-user-id","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"X-User-Id"}},{"name":"timezone","in":"header","required":false,"schema":{"type":"string","default":"UTC","title":"Timezone"}},{"name":"x-actor-email","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"X-Actor-Email"}},{"name":"x-request-source","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"X-Request-Source"}},{"name":"x-operation-id","in":"header","required":false,"schema":{"anyOf":[{"type":"string","maxLength":36},{"type":"null"}],"title":"X-Operation-Id"}},{"name":"x-commit-message","in":"header","required":false,"schema":{"anyOf":[{"type":"string","minLength":1},{"type":"null"}],"title":"X-Commit-Message"}},{"name":"x-confirmation-id","in":"header","required":false,"schema":{"anyOf":[{"type":"string","maxLength":36},{"type":"null"}],"title":"X-Confirmation-Id"}},{"name":"x-chat-id","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"X-Chat-Id"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"type":"array","items":{"$ref":"#/components/schemas/ServiceTitanTenantPublic"},"title":"Response Read Tenants Tenants  Get"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}},"post":{"tags":["authenticated","service-titan-tenant"],"summary":"Add Tenant","description":"Request the ServiceTitan app install for the caller's own organization.\n\nThe tenant name is the authenticated organization's, never the client's. Submitting\nthe tenant the organization is already connected to is answered from stored state,\nso a replay reports the same single request instead of failing.","operationId":"add_tenant_tenants__post","security":[{"APIKeyHeader":[]},{"HTTPBearer":[]}],"parameters":[{"name":"organization-id","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Organization-Id"}},{"name":"x-user-id","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"X-User-Id"}},{"name":"timezone","in":"header","required":false,"schema":{"type":"string","default":"UTC","title":"Timezone"}},{"name":"x-actor-email","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"X-Actor-Email"}},{"name":"x-request-source","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"X-Request-Source"}},{"name":"x-operation-id","in":"header","required":false,"schema":{"anyOf":[{"type":"string","maxLength":36},{"type":"null"}],"title":"X-Operation-Id"}},{"name":"x-commit-message","in":"header","required":false,"schema":{"anyOf":[{"type":"string","minLength":1},{"type":"null"}],"title":"X-Commit-Message"}},{"name":"x-confirmation-id","in":"header","required":false,"schema":{"anyOf":[{"type":"string","maxLength":36},{"type":"null"}],"title":"X-Confirmation-Id"}},{"name":"x-chat-id","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"X-Chat-Id"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/AddTenantRequest"}}}},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/AddServiceTitanOrgResponse"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/tenants/confirm-installation":{"post":{"tags":["authenticated","service-titan-tenant"],"summary":"Confirm Own Installation","description":"Self-serve confirm of the caller's own ServiceTitan install.\n\nTenants are resolved from the authenticated org, never taken from the client.\nA benign 400 (not installed yet, already confirmed) is skipped; any other\nerror is logged and, if it left nothing confirmed, surfaced as 502 so the\nclient shows a real error instead of the \"not installed yet\" hint.\n\nA 409 is the exception: it is the environment reconciliation refusing, and its\ndetail is written for the customer. Swallowing it would show \"not approved yet\"\nfor a tenant that will never be approved.","operationId":"confirm_own_installation_tenants_confirm_installation_post","security":[{"APIKeyHeader":[]},{"HTTPBearer":[]}],"parameters":[{"name":"organization-id","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Organization-Id"}},{"name":"x-user-id","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"X-User-Id"}},{"name":"timezone","in":"header","required":false,"schema":{"type":"string","default":"UTC","title":"Timezone"}},{"name":"x-actor-email","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"X-Actor-Email"}},{"name":"x-request-source","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"X-Request-Source"}},{"name":"x-operation-id","in":"header","required":false,"schema":{"anyOf":[{"type":"string","maxLength":36},{"type":"null"}],"title":"X-Operation-Id"}},{"name":"x-commit-message","in":"header","required":false,"schema":{"anyOf":[{"type":"string","minLength":1},{"type":"null"}],"title":"X-Commit-Message"}},{"name":"x-confirmation-id","in":"header","required":false,"schema":{"anyOf":[{"type":"string","maxLength":36},{"type":"null"}],"title":"X-Confirmation-Id"}},{"name":"x-chat-id","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"X-Chat-Id"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ConfirmOwnInstallationResponse"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/tenants/connection":{"get":{"tags":["authenticated","service-titan-tenant"],"summary":"Read Connection","description":"The caller's own organization's ServiceTitan connection, for the Integrations page.","operationId":"read_connection_tenants_connection_get","security":[{"APIKeyHeader":[]},{"HTTPBearer":[]}],"parameters":[{"name":"organization-id","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Organization-Id"}},{"name":"x-user-id","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"X-User-Id"}},{"name":"timezone","in":"header","required":false,"schema":{"type":"string","default":"UTC","title":"Timezone"}},{"name":"x-actor-email","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"X-Actor-Email"}},{"name":"x-request-source","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"X-Request-Source"}},{"name":"x-operation-id","in":"header","required":false,"schema":{"anyOf":[{"type":"string","maxLength":36},{"type":"null"}],"title":"X-Operation-Id"}},{"name":"x-commit-message","in":"header","required":false,"schema":{"anyOf":[{"type":"string","minLength":1},{"type":"null"}],"title":"X-Commit-Message"}},{"name":"x-confirmation-id","in":"header","required":false,"schema":{"anyOf":[{"type":"string","maxLength":36},{"type":"null"}],"title":"X-Confirmation-Id"}},{"name":"x-chat-id","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"X-Chat-Id"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ServiceTitanConnectionPublic"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/tenants/first-sync":{"get":{"tags":["authenticated","service-titan-tenant"],"summary":"Read First Sync","description":"The caller's own organization's first ServiceTitan sync, from durable ETL rows.\n\nCounts are computed only once the sync is done, so polling while it runs stays cheap.","operationId":"read_first_sync_tenants_first_sync_get","security":[{"APIKeyHeader":[]},{"HTTPBearer":[]}],"parameters":[{"name":"organization-id","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Organization-Id"}},{"name":"x-user-id","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"X-User-Id"}},{"name":"timezone","in":"header","required":false,"schema":{"type":"string","default":"UTC","title":"Timezone"}},{"name":"x-actor-email","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"X-Actor-Email"}},{"name":"x-request-source","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"X-Request-Source"}},{"name":"x-operation-id","in":"header","required":false,"schema":{"anyOf":[{"type":"string","maxLength":36},{"type":"null"}],"title":"X-Operation-Id"}},{"name":"x-commit-message","in":"header","required":false,"schema":{"anyOf":[{"type":"string","minLength":1},{"type":"null"}],"title":"X-Commit-Message"}},{"name":"x-confirmation-id","in":"header","required":false,"schema":{"anyOf":[{"type":"string","maxLength":36},{"type":"null"}],"title":"X-Confirmation-Id"}},{"name":"x-chat-id","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"X-Chat-Id"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/FirstSyncStatePublic"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/tenants/{tenant_id}/properties":{"get":{"tags":["authenticated","service-titan-tenant"],"summary":"Read Tenant Properties","operationId":"read_tenant_properties_tenants__tenant_id__properties_get","security":[{"APIKeyHeader":[]},{"HTTPBearer":[]}],"parameters":[{"name":"tenant_id","in":"path","required":true,"schema":{"type":"string","title":"Tenant Id"}},{"name":"organization-id","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Organization-Id"}},{"name":"x-user-id","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"X-User-Id"}},{"name":"timezone","in":"header","required":false,"schema":{"type":"string","default":"UTC","title":"Timezone"}},{"name":"x-actor-email","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"X-Actor-Email"}},{"name":"x-request-source","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"X-Request-Source"}},{"name":"x-operation-id","in":"header","required":false,"schema":{"anyOf":[{"type":"string","maxLength":36},{"type":"null"}],"title":"X-Operation-Id"}},{"name":"x-commit-message","in":"header","required":false,"schema":{"anyOf":[{"type":"string","minLength":1},{"type":"null"}],"title":"X-Commit-Message"}},{"name":"x-confirmation-id","in":"header","required":false,"schema":{"anyOf":[{"type":"string","maxLength":36},{"type":"null"}],"title":"X-Confirmation-Id"}},{"name":"x-chat-id","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"X-Chat-Id"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ServiceTitanSettings"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}},"patch":{"tags":["authenticated","service-titan-tenant"],"summary":"Update Tenant Properties","operationId":"update_tenant_properties_tenants__tenant_id__properties_patch","security":[{"APIKeyHeader":[]},{"HTTPBearer":[]}],"parameters":[{"name":"tenant_id","in":"path","required":true,"schema":{"type":"string","title":"Tenant Id"}},{"name":"organization-id","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Organization-Id"}},{"name":"x-user-id","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"X-User-Id"}},{"name":"timezone","in":"header","required":false,"schema":{"type":"string","default":"UTC","title":"Timezone"}},{"name":"x-actor-email","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"X-Actor-Email"}},{"name":"x-request-source","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"X-Request-Source"}},{"name":"x-operation-id","in":"header","required":false,"schema":{"anyOf":[{"type":"string","maxLength":36},{"type":"null"}],"title":"X-Operation-Id"}},{"name":"x-commit-message","in":"header","required":false,"schema":{"anyOf":[{"type":"string","minLength":1},{"type":"null"}],"title":"X-Commit-Message"}},{"name":"x-confirmation-id","in":"header","required":false,"schema":{"anyOf":[{"type":"string","maxLength":36},{"type":"null"}],"title":"X-Confirmation-Id"}},{"name":"x-chat-id","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"X-Chat-Id"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/UpdateTenantPropertiesRequest"}}}},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"type":"object","additionalProperties":true,"title":"Response Update Tenant Properties Tenants  Tenant Id  Properties Patch"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/tenants/portal-credentials":{"post":{"tags":["authenticated","service-titan-tenant"],"summary":"Submit Portal Credentials","description":"Store the portal login for the caller's own connected tenant and test it.\n\nThe tenant is the organization's, never the client's. The values go straight to\nservice-titan-service, which merges them into the tenant's existing secret and\nruns the login; nothing here logs, stores or echoes them.","operationId":"submit_portal_credentials_tenants_portal_credentials_post","security":[{"APIKeyHeader":[]},{"HTTPBearer":[]}],"parameters":[{"name":"organization-id","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Organization-Id"}},{"name":"x-user-id","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"X-User-Id"}},{"name":"timezone","in":"header","required":false,"schema":{"type":"string","default":"UTC","title":"Timezone"}},{"name":"x-actor-email","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"X-Actor-Email"}},{"name":"x-request-source","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"X-Request-Source"}},{"name":"x-operation-id","in":"header","required":false,"schema":{"anyOf":[{"type":"string","maxLength":36},{"type":"null"}],"title":"X-Operation-Id"}},{"name":"x-commit-message","in":"header","required":false,"schema":{"anyOf":[{"type":"string","minLength":1},{"type":"null"}],"title":"X-Commit-Message"}},{"name":"x-confirmation-id","in":"header","required":false,"schema":{"anyOf":[{"type":"string","maxLength":36},{"type":"null"}],"title":"X-Confirmation-Id"}},{"name":"x-chat-id","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"X-Chat-Id"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/PortalCredentialsRequest"}}}},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ServiceTitanPortalCredentialsStatus"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/tenants/network-connection":{"post":{"tags":["authenticated"],"summary":"Request Network Connection","operationId":"request_network_connection_tenants_network_connection_post","security":[{"APIKeyHeader":[]},{"HTTPBearer":[]}],"parameters":[{"name":"organization-id","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Organization-Id"}},{"name":"x-user-id","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"X-User-Id"}},{"name":"timezone","in":"header","required":false,"schema":{"type":"string","default":"UTC","title":"Timezone"}},{"name":"x-actor-email","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"X-Actor-Email"}},{"name":"x-request-source","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"X-Request-Source"}},{"name":"x-operation-id","in":"header","required":false,"schema":{"anyOf":[{"type":"string","maxLength":36},{"type":"null"}],"title":"X-Operation-Id"}},{"name":"x-commit-message","in":"header","required":false,"schema":{"anyOf":[{"type":"string","minLength":1},{"type":"null"}],"title":"X-Commit-Message"}},{"name":"x-confirmation-id","in":"header","required":false,"schema":{"anyOf":[{"type":"string","maxLength":36},{"type":"null"}],"title":"X-Confirmation-Id"}},{"name":"x-chat-id","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"X-Chat-Id"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/NetworkConnectionRequest"}}}},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/AddServiceTitanOrgResponse"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/setup/sms-opt-in":{"get":{"tags":["authenticated","setup"],"summary":"Read Sms Opt In","operationId":"read_sms_opt_in_setup_sms_opt_in_get","security":[{"APIKeyHeader":[]},{"HTTPBearer":[]}],"parameters":[{"name":"organization-id","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Organization-Id"}},{"name":"x-user-id","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"X-User-Id"}},{"name":"timezone","in":"header","required":false,"schema":{"type":"string","default":"UTC","title":"Timezone"}},{"name":"x-actor-email","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"X-Actor-Email"}},{"name":"x-request-source","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"X-Request-Source"}},{"name":"x-operation-id","in":"header","required":false,"schema":{"anyOf":[{"type":"string","maxLength":36},{"type":"null"}],"title":"X-Operation-Id"}},{"name":"x-commit-message","in":"header","required":false,"schema":{"anyOf":[{"type":"string","minLength":1},{"type":"null"}],"title":"X-Commit-Message"}},{"name":"x-confirmation-id","in":"header","required":false,"schema":{"anyOf":[{"type":"string","maxLength":36},{"type":"null"}],"title":"X-Confirmation-Id"}},{"name":"x-chat-id","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"X-Chat-Id"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/SmsOptInPublic"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}},"put":{"tags":["authenticated","setup"],"summary":"Write Sms Opt In","operationId":"write_sms_opt_in_setup_sms_opt_in_put","security":[{"APIKeyHeader":[]},{"HTTPBearer":[]}],"parameters":[{"name":"organization-id","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Organization-Id"}},{"name":"x-user-id","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"X-User-Id"}},{"name":"timezone","in":"header","required":false,"schema":{"type":"string","default":"UTC","title":"Timezone"}},{"name":"x-actor-email","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"X-Actor-Email"}},{"name":"x-request-source","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"X-Request-Source"}},{"name":"x-operation-id","in":"header","required":false,"schema":{"anyOf":[{"type":"string","maxLength":36},{"type":"null"}],"title":"X-Operation-Id"}},{"name":"x-commit-message","in":"header","required":false,"schema":{"anyOf":[{"type":"string","minLength":1},{"type":"null"}],"title":"X-Commit-Message"}},{"name":"x-confirmation-id","in":"header","required":false,"schema":{"anyOf":[{"type":"string","maxLength":36},{"type":"null"}],"title":"X-Confirmation-Id"}},{"name":"x-chat-id","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"X-Chat-Id"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/SmsOptInRequest"}}}},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/SmsOptInPublic"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/billing/prices":{"get":{"tags":["authenticated","billing"],"summary":"List Prices","operationId":"list_prices_billing_prices_get","security":[{"APIKeyHeader":[]},{"HTTPBearer":[]}],"parameters":[{"name":"product_id","in":"query","required":true,"schema":{"type":"string","title":"Product Id"}},{"name":"active","in":"query","required":false,"schema":{"type":"boolean","default":true,"title":"Active"}},{"name":"organization-id","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Organization-Id"}},{"name":"x-user-id","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"X-User-Id"}},{"name":"timezone","in":"header","required":false,"schema":{"type":"string","default":"UTC","title":"Timezone"}},{"name":"x-actor-email","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"X-Actor-Email"}},{"name":"x-request-source","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"X-Request-Source"}},{"name":"x-operation-id","in":"header","required":false,"schema":{"anyOf":[{"type":"string","maxLength":36},{"type":"null"}],"title":"X-Operation-Id"}},{"name":"x-commit-message","in":"header","required":false,"schema":{"anyOf":[{"type":"string","minLength":1},{"type":"null"}],"title":"X-Commit-Message"}},{"name":"x-confirmation-id","in":"header","required":false,"schema":{"anyOf":[{"type":"string","maxLength":36},{"type":"null"}],"title":"X-Confirmation-Id"}},{"name":"x-chat-id","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"X-Chat-Id"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"type":"array","items":{"$ref":"#/components/schemas/StripePrice"},"title":"Response List Prices Billing Prices Get"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/billing/subscription":{"get":{"tags":["authenticated","billing"],"summary":"Get Subscription","operationId":"get_subscription_billing_subscription_get","security":[{"APIKeyHeader":[]},{"HTTPBearer":[]}],"parameters":[{"name":"organization_id","in":"query","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Organization Id"}},{"name":"organization-id","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Organization-Id"}},{"name":"x-user-id","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"X-User-Id"}},{"name":"timezone","in":"header","required":false,"schema":{"type":"string","default":"UTC","title":"Timezone"}},{"name":"x-actor-email","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"X-Actor-Email"}},{"name":"x-request-source","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"X-Request-Source"}},{"name":"x-operation-id","in":"header","required":false,"schema":{"anyOf":[{"type":"string","maxLength":36},{"type":"null"}],"title":"X-Operation-Id"}},{"name":"x-commit-message","in":"header","required":false,"schema":{"anyOf":[{"type":"string","minLength":1},{"type":"null"}],"title":"X-Commit-Message"}},{"name":"x-confirmation-id","in":"header","required":false,"schema":{"anyOf":[{"type":"string","maxLength":36},{"type":"null"}],"title":"X-Confirmation-Id"}},{"name":"x-chat-id","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"X-Chat-Id"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/SubscriptionPublic"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/billing/checkout-session":{"post":{"tags":["authenticated","billing"],"summary":"Create Checkout Session","operationId":"create_checkout_session_billing_checkout_session_post","security":[{"APIKeyHeader":[]},{"HTTPBearer":[]}],"parameters":[{"name":"organization-id","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Organization-Id"}},{"name":"x-user-id","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"X-User-Id"}},{"name":"timezone","in":"header","required":false,"schema":{"type":"string","default":"UTC","title":"Timezone"}},{"name":"x-actor-email","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"X-Actor-Email"}},{"name":"x-request-source","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"X-Request-Source"}},{"name":"x-operation-id","in":"header","required":false,"schema":{"anyOf":[{"type":"string","maxLength":36},{"type":"null"}],"title":"X-Operation-Id"}},{"name":"x-commit-message","in":"header","required":false,"schema":{"anyOf":[{"type":"string","minLength":1},{"type":"null"}],"title":"X-Commit-Message"}},{"name":"x-confirmation-id","in":"header","required":false,"schema":{"anyOf":[{"type":"string","maxLength":36},{"type":"null"}],"title":"X-Confirmation-Id"}},{"name":"x-chat-id","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"X-Chat-Id"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/CreateCheckoutSessionBody"}}}},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/SessionUrl"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/billing/portal-session":{"post":{"tags":["authenticated","billing"],"summary":"Create Portal Session","operationId":"create_portal_session_billing_portal_session_post","security":[{"APIKeyHeader":[]},{"HTTPBearer":[]}],"parameters":[{"name":"organization-id","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Organization-Id"}},{"name":"x-user-id","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"X-User-Id"}},{"name":"timezone","in":"header","required":false,"schema":{"type":"string","default":"UTC","title":"Timezone"}},{"name":"x-actor-email","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"X-Actor-Email"}},{"name":"x-request-source","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"X-Request-Source"}},{"name":"x-operation-id","in":"header","required":false,"schema":{"anyOf":[{"type":"string","maxLength":36},{"type":"null"}],"title":"X-Operation-Id"}},{"name":"x-commit-message","in":"header","required":false,"schema":{"anyOf":[{"type":"string","minLength":1},{"type":"null"}],"title":"X-Commit-Message"}},{"name":"x-confirmation-id","in":"header","required":false,"schema":{"anyOf":[{"type":"string","maxLength":36},{"type":"null"}],"title":"X-Confirmation-Id"}},{"name":"x-chat-id","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"X-Chat-Id"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/CreatePortalSessionBody"}}}},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/SessionUrl"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/campaigns/enriched":{"get":{"tags":["authenticated","campaigns"],"summary":"List Campaigns Enriched","description":"Return campaigns with agent module metadata and region/trade tags for grouping.","operationId":"list_campaigns_enriched_campaigns_enriched_get","security":[{"APIKeyHeader":[]},{"HTTPBearer":[]}],"parameters":[{"name":"organization-id","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Organization-Id"}},{"name":"x-user-id","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"X-User-Id"}},{"name":"timezone","in":"header","required":false,"schema":{"type":"string","default":"UTC","title":"Timezone"}},{"name":"x-actor-email","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"X-Actor-Email"}},{"name":"x-request-source","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"X-Request-Source"}},{"name":"x-operation-id","in":"header","required":false,"schema":{"anyOf":[{"type":"string","maxLength":36},{"type":"null"}],"title":"X-Operation-Id"}},{"name":"x-commit-message","in":"header","required":false,"schema":{"anyOf":[{"type":"string","minLength":1},{"type":"null"}],"title":"X-Commit-Message"}},{"name":"x-confirmation-id","in":"header","required":false,"schema":{"anyOf":[{"type":"string","maxLength":36},{"type":"null"}],"title":"X-Confirmation-Id"}},{"name":"x-chat-id","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"X-Chat-Id"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/campaigns/overview":{"get":{"tags":["authenticated","campaigns"],"summary":"Campaign Overview","description":"Return campaigns grouped by agent module with send stats for a date.\n\nIf no date is provided, defaults to the org-local \"today\" so the\nhomepage's per-card ``eligible`` / ``sent`` numbers share the same\ndaypart as the KpiBand and ``/agent-stats``. The ``date`` query param\nstill lets admin tooling pin to a specific historical date.","operationId":"campaign_overview_campaigns_overview_get","security":[{"APIKeyHeader":[]},{"HTTPBearer":[]}],"parameters":[{"name":"date","in":"query","required":false,"schema":{"anyOf":[{"type":"string","format":"date"},{"type":"null"}],"title":"Date"}},{"name":"organization-id","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Organization-Id"}},{"name":"x-user-id","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"X-User-Id"}},{"name":"timezone","in":"header","required":false,"schema":{"type":"string","default":"UTC","title":"Timezone"}},{"name":"x-actor-email","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"X-Actor-Email"}},{"name":"x-request-source","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"X-Request-Source"}},{"name":"x-operation-id","in":"header","required":false,"schema":{"anyOf":[{"type":"string","maxLength":36},{"type":"null"}],"title":"X-Operation-Id"}},{"name":"x-commit-message","in":"header","required":false,"schema":{"anyOf":[{"type":"string","minLength":1},{"type":"null"}],"title":"X-Commit-Message"}},{"name":"x-confirmation-id","in":"header","required":false,"schema":{"anyOf":[{"type":"string","maxLength":36},{"type":"null"}],"title":"X-Confirmation-Id"}},{"name":"x-chat-id","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"X-Chat-Id"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/campaigns/agent-stats":{"get":{"tags":["authenticated","campaigns"],"summary":"Agent Stats","description":"Return per-agent stats (replies, outcomes) for landing page cards.\n\nToday / ``days``-day windows anchor on the org-local day so the per-day\nsparkline buckets line up with the homepage KPI band rather than\ndrifting across UTC midnight.","operationId":"agent_stats_campaigns_agent_stats_get","security":[{"APIKeyHeader":[]},{"HTTPBearer":[]}],"parameters":[{"name":"days","in":"query","required":false,"schema":{"type":"integer","maximum":28,"minimum":7,"default":7,"title":"Days"}},{"name":"organization-id","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Organization-Id"}},{"name":"x-user-id","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"X-User-Id"}},{"name":"timezone","in":"header","required":false,"schema":{"type":"string","default":"UTC","title":"Timezone"}},{"name":"x-actor-email","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"X-Actor-Email"}},{"name":"x-request-source","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"X-Request-Source"}},{"name":"x-operation-id","in":"header","required":false,"schema":{"anyOf":[{"type":"string","maxLength":36},{"type":"null"}],"title":"X-Operation-Id"}},{"name":"x-commit-message","in":"header","required":false,"schema":{"anyOf":[{"type":"string","minLength":1},{"type":"null"}],"title":"X-Commit-Message"}},{"name":"x-confirmation-id","in":"header","required":false,"schema":{"anyOf":[{"type":"string","maxLength":36},{"type":"null"}],"title":"X-Confirmation-Id"}},{"name":"x-chat-id","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"X-Chat-Id"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/campaigns/kpi-summary":{"get":{"tags":["authenticated","campaigns"],"summary":"Kpi Summary","description":"Return aggregated KPI band data for the campaigns landing page.\n\nAll \"today\" metrics (sends, eligible, replies, board fill, throttling)\nuse the same org-local day boundary so they can't drift apart across\nUTC midnight — see ``_resolve_org_today_window``.","operationId":"kpi_summary_campaigns_kpi_summary_get","security":[{"APIKeyHeader":[]},{"HTTPBearer":[]}],"parameters":[{"name":"organization-id","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Organization-Id"}},{"name":"x-user-id","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"X-User-Id"}},{"name":"timezone","in":"header","required":false,"schema":{"type":"string","default":"UTC","title":"Timezone"}},{"name":"x-actor-email","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"X-Actor-Email"}},{"name":"x-request-source","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"X-Request-Source"}},{"name":"x-operation-id","in":"header","required":false,"schema":{"anyOf":[{"type":"string","maxLength":36},{"type":"null"}],"title":"X-Operation-Id"}},{"name":"x-commit-message","in":"header","required":false,"schema":{"anyOf":[{"type":"string","minLength":1},{"type":"null"}],"title":"X-Commit-Message"}},{"name":"x-confirmation-id","in":"header","required":false,"schema":{"anyOf":[{"type":"string","maxLength":36},{"type":"null"}],"title":"X-Confirmation-Id"}},{"name":"x-chat-id","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"X-Chat-Id"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/campaigns/agent-opportunities":{"get":{"tags":["authenticated","campaigns"],"summary":"Agent Opportunities","description":"Return opportunity stats for each agent type, derived from real org data.\n\nThese populate the 'hard number' callouts on the available-agent cards.","operationId":"agent_opportunities_campaigns_agent_opportunities_get","security":[{"APIKeyHeader":[]},{"HTTPBearer":[]}],"parameters":[{"name":"organization-id","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Organization-Id"}},{"name":"x-user-id","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"X-User-Id"}},{"name":"timezone","in":"header","required":false,"schema":{"type":"string","default":"UTC","title":"Timezone"}},{"name":"x-actor-email","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"X-Actor-Email"}},{"name":"x-request-source","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"X-Request-Source"}},{"name":"x-operation-id","in":"header","required":false,"schema":{"anyOf":[{"type":"string","maxLength":36},{"type":"null"}],"title":"X-Operation-Id"}},{"name":"x-commit-message","in":"header","required":false,"schema":{"anyOf":[{"type":"string","minLength":1},{"type":"null"}],"title":"X-Commit-Message"}},{"name":"x-confirmation-id","in":"header","required":false,"schema":{"anyOf":[{"type":"string","maxLength":36},{"type":"null"}],"title":"X-Confirmation-Id"}},{"name":"x-chat-id","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"X-Chat-Id"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/campaigns/enable-agent-request":{"post":{"tags":["authenticated","campaigns"],"summary":"Request Enable Agent","description":"Log and notify OPS when a user requests to enable an available agent.","operationId":"request_enable_agent_campaigns_enable_agent_request_post","security":[{"APIKeyHeader":[]},{"HTTPBearer":[]}],"parameters":[{"name":"organization-id","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Organization-Id"}},{"name":"x-user-id","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"X-User-Id"}},{"name":"timezone","in":"header","required":false,"schema":{"type":"string","default":"UTC","title":"Timezone"}},{"name":"x-actor-email","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"X-Actor-Email"}},{"name":"x-request-source","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"X-Request-Source"}},{"name":"x-operation-id","in":"header","required":false,"schema":{"anyOf":[{"type":"string","maxLength":36},{"type":"null"}],"title":"X-Operation-Id"}},{"name":"x-commit-message","in":"header","required":false,"schema":{"anyOf":[{"type":"string","minLength":1},{"type":"null"}],"title":"X-Commit-Message"}},{"name":"x-confirmation-id","in":"header","required":false,"schema":{"anyOf":[{"type":"string","maxLength":36},{"type":"null"}],"title":"X-Confirmation-Id"}},{"name":"x-chat-id","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"X-Chat-Id"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/AgentEnableRequest"}}}},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/campaigns/summary/{agent_module_id}":{"get":{"tags":["authenticated","campaigns"],"summary":"Campaign Summary","description":"CampaignDetail-shaped response with only the cheap fields populated.\n\nOne enriched-campaigns DB query — no campaign-service sends round trip,\nlive engagement SQL, or capacity math — so the agent detail page can\nbecome interactive (variants, targeting, settings, pause) while\n``/detail`` computes metrics. Metric fields are zeroed/null; the\nfrontend only renders metrics from ``/detail``.","operationId":"campaign_summary_campaigns_summary__agent_module_id__get","security":[{"APIKeyHeader":[]},{"HTTPBearer":[]}],"parameters":[{"name":"agent_module_id","in":"path","required":true,"schema":{"type":"string","title":"Agent Module Id"}},{"name":"organization-id","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Organization-Id"}},{"name":"x-user-id","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"X-User-Id"}},{"name":"timezone","in":"header","required":false,"schema":{"type":"string","default":"UTC","title":"Timezone"}},{"name":"x-actor-email","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"X-Actor-Email"}},{"name":"x-request-source","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"X-Request-Source"}},{"name":"x-operation-id","in":"header","required":false,"schema":{"anyOf":[{"type":"string","maxLength":36},{"type":"null"}],"title":"X-Operation-Id"}},{"name":"x-commit-message","in":"header","required":false,"schema":{"anyOf":[{"type":"string","minLength":1},{"type":"null"}],"title":"X-Commit-Message"}},{"name":"x-confirmation-id","in":"header","required":false,"schema":{"anyOf":[{"type":"string","maxLength":36},{"type":"null"}],"title":"X-Confirmation-Id"}},{"name":"x-chat-id","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"X-Chat-Id"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/campaigns/detail/{agent_module_id}":{"get":{"tags":["authenticated","campaigns"],"summary":"Campaign Detail","description":"Return per-variant detail for a specific agent module's campaigns.\n\nWhen the input ``agent_module_id`` resolves to a known JTBD roster name\n(Mollie / Mary / etc.), the variant list expands to include every\ncampaign in the org under that roster — across both the v1\n``agent_module`` and v2 ``agent_v2`` records the homepage groups\ntogether. So clicking into \"Mollie\" surfaces the full picture, not\njust whichever variant ``agentModuleIdMap`` happened to pick first.","operationId":"campaign_detail_campaigns_detail__agent_module_id__get","security":[{"APIKeyHeader":[]},{"HTTPBearer":[]}],"parameters":[{"name":"agent_module_id","in":"path","required":true,"schema":{"type":"string","title":"Agent Module Id"}},{"name":"date","in":"query","required":false,"schema":{"anyOf":[{"type":"string","format":"date"},{"type":"null"}],"title":"Date"}},{"name":"range","in":"query","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Range"}},{"name":"organization-id","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Organization-Id"}},{"name":"x-user-id","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"X-User-Id"}},{"name":"timezone","in":"header","required":false,"schema":{"type":"string","default":"UTC","title":"Timezone"}},{"name":"x-actor-email","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"X-Actor-Email"}},{"name":"x-request-source","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"X-Request-Source"}},{"name":"x-operation-id","in":"header","required":false,"schema":{"anyOf":[{"type":"string","maxLength":36},{"type":"null"}],"title":"X-Operation-Id"}},{"name":"x-commit-message","in":"header","required":false,"schema":{"anyOf":[{"type":"string","minLength":1},{"type":"null"}],"title":"X-Commit-Message"}},{"name":"x-confirmation-id","in":"header","required":false,"schema":{"anyOf":[{"type":"string","maxLength":36},{"type":"null"}],"title":"X-Confirmation-Id"}},{"name":"x-chat-id","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"X-Chat-Id"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/campaigns/{agent_module_id}/nps":{"get":{"tags":["authenticated","campaigns"],"summary":"Agent Nps","description":"Net Promoter Score for a Sunny agent's collected reviews, current vs prior.\n\nSunny-only: any other roster has no recorded NPS, so the score is null.\n``range`` mirrors the detail endpoint (today / 7d / 30d) and the prior\nwindow is the equally-sized period immediately before it.","operationId":"agent_nps_campaigns__agent_module_id__nps_get","security":[{"APIKeyHeader":[]},{"HTTPBearer":[]}],"parameters":[{"name":"agent_module_id","in":"path","required":true,"schema":{"type":"string","title":"Agent Module Id"}},{"name":"range","in":"query","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Range"}},{"name":"organization-id","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Organization-Id"}},{"name":"x-user-id","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"X-User-Id"}},{"name":"timezone","in":"header","required":false,"schema":{"type":"string","default":"UTC","title":"Timezone"}},{"name":"x-actor-email","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"X-Actor-Email"}},{"name":"x-request-source","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"X-Request-Source"}},{"name":"x-operation-id","in":"header","required":false,"schema":{"anyOf":[{"type":"string","maxLength":36},{"type":"null"}],"title":"X-Operation-Id"}},{"name":"x-commit-message","in":"header","required":false,"schema":{"anyOf":[{"type":"string","minLength":1},{"type":"null"}],"title":"X-Commit-Message"}},{"name":"x-confirmation-id","in":"header","required":false,"schema":{"anyOf":[{"type":"string","maxLength":36},{"type":"null"}],"title":"X-Confirmation-Id"}},{"name":"x-chat-id","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"X-Chat-Id"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/campaigns/agents/{agent_module_id}/bookings":{"get":{"tags":["authenticated","campaigns"],"summary":"Agent Bookings","description":"Booking breakdown for an agent, by region → job type group.\n\nSources ``dbt.fct_upsmith_bookings`` scoped by its direct agent attribution\nvia the shared ``_BOOKING_ROW_TYPE_FILTER`` so \"Booked\" can't disagree\nacross surfaces.\nFilters (region / job type group / business unit / status) and the range\npreset narrow the set; ``available_filters`` lists every value present for\nthe agent regardless of the current filter so the dropdowns stay populated.\nPassing no ``status`` counts every non-canceled booking that reached a\nServiceTitan job — the same default the homepage card applies, so the two\nsurfaces agree.\n``format=csv`` streams the matching bookings as a per-job CSV for portal\nreconciliation.\n\n``month`` (``YYYY-MM``) overrides ``range`` for the day view: the headline\ntotal and CSV cover that calendar month, while ``by_day`` covers the\nSunday-aligned calendar grid the month renders in (so boundary-week totals\ncan include adjacent-month days).","operationId":"agent_bookings_campaigns_agents__agent_module_id__bookings_get","security":[{"APIKeyHeader":[]},{"HTTPBearer":[]}],"parameters":[{"name":"agent_module_id","in":"path","required":true,"schema":{"type":"string","title":"Agent Module Id"}},{"name":"range","in":"query","required":false,"schema":{"type":"string","default":"mtd","title":"Range"}},{"name":"group_by","in":"query","required":false,"schema":{"type":"string","default":"region","title":"Group By"}},{"name":"month","in":"query","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Month"}},{"name":"region","in":"query","required":false,"schema":{"anyOf":[{"type":"array","items":{"type":"string"}},{"type":"null"}],"title":"Region"}},{"name":"job_type_group","in":"query","required":false,"schema":{"anyOf":[{"type":"array","items":{"type":"string"}},{"type":"null"}],"title":"Job Type Group"}},{"name":"business_unit","in":"query","required":false,"schema":{"anyOf":[{"type":"array","items":{"type":"string"}},{"type":"null"}],"title":"Business Unit"}},{"name":"status","in":"query","required":false,"schema":{"anyOf":[{"type":"array","items":{"type":"string"}},{"type":"null"}],"title":"Status"}},{"name":"format","in":"query","required":false,"schema":{"type":"string","default":"json","title":"Format"}},{"name":"organization-id","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Organization-Id"}},{"name":"x-user-id","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"X-User-Id"}},{"name":"timezone","in":"header","required":false,"schema":{"type":"string","default":"UTC","title":"Timezone"}},{"name":"x-actor-email","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"X-Actor-Email"}},{"name":"x-request-source","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"X-Request-Source"}},{"name":"x-operation-id","in":"header","required":false,"schema":{"anyOf":[{"type":"string","maxLength":36},{"type":"null"}],"title":"X-Operation-Id"}},{"name":"x-commit-message","in":"header","required":false,"schema":{"anyOf":[{"type":"string","minLength":1},{"type":"null"}],"title":"X-Commit-Message"}},{"name":"x-confirmation-id","in":"header","required":false,"schema":{"anyOf":[{"type":"string","maxLength":36},{"type":"null"}],"title":"X-Confirmation-Id"}},{"name":"x-chat-id","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"X-Chat-Id"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/campaigns/pause/{agent_module_id}":{"post":{"tags":["authenticated","campaigns"],"summary":"Toggle Pause Agent","description":"Pause or unpause all campaigns for an agent module.\n\nIf any campaign is active, pause all. If all are paused, unpause all.","operationId":"toggle_pause_agent_campaigns_pause__agent_module_id__post","security":[{"APIKeyHeader":[]},{"HTTPBearer":[]}],"parameters":[{"name":"agent_module_id","in":"path","required":true,"schema":{"type":"string","title":"Agent Module Id"}},{"name":"organization-id","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Organization-Id"}},{"name":"x-user-id","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"X-User-Id"}},{"name":"timezone","in":"header","required":false,"schema":{"type":"string","default":"UTC","title":"Timezone"}},{"name":"x-actor-email","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"X-Actor-Email"}},{"name":"x-request-source","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"X-Request-Source"}},{"name":"x-operation-id","in":"header","required":false,"schema":{"anyOf":[{"type":"string","maxLength":36},{"type":"null"}],"title":"X-Operation-Id"}},{"name":"x-commit-message","in":"header","required":false,"schema":{"anyOf":[{"type":"string","minLength":1},{"type":"null"}],"title":"X-Commit-Message"}},{"name":"x-confirmation-id","in":"header","required":false,"schema":{"anyOf":[{"type":"string","maxLength":36},{"type":"null"}],"title":"X-Confirmation-Id"}},{"name":"x-chat-id","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"X-Chat-Id"}}],"requestBody":{"content":{"application/json":{"schema":{"anyOf":[{"$ref":"#/components/schemas/ToggleCampaignPauseRequest"},{"type":"null"}],"title":"Payload"}}}},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/campaigns/ordering-keys":{"get":{"tags":["authenticated","campaigns"],"summary":"Campaign Ordering Keys","description":"Catalog of campaign customer-ordering options (key/label/description).","operationId":"campaign_ordering_keys_campaigns_ordering_keys_get","security":[{"APIKeyHeader":[]},{"HTTPBearer":[]}],"parameters":[{"name":"organization-id","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Organization-Id"}},{"name":"x-user-id","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"X-User-Id"}},{"name":"timezone","in":"header","required":false,"schema":{"type":"string","default":"UTC","title":"Timezone"}},{"name":"x-actor-email","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"X-Actor-Email"}},{"name":"x-request-source","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"X-Request-Source"}},{"name":"x-operation-id","in":"header","required":false,"schema":{"anyOf":[{"type":"string","maxLength":36},{"type":"null"}],"title":"X-Operation-Id"}},{"name":"x-commit-message","in":"header","required":false,"schema":{"anyOf":[{"type":"string","minLength":1},{"type":"null"}],"title":"X-Commit-Message"}},{"name":"x-confirmation-id","in":"header","required":false,"schema":{"anyOf":[{"type":"string","maxLength":36},{"type":"null"}],"title":"X-Confirmation-Id"}},{"name":"x-chat-id","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"X-Chat-Id"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/campaigns/settings-options":{"get":{"tags":["authenticated","campaigns"],"summary":"Campaign Settings Options","description":"Return org-specific options for settings dropdowns.","operationId":"campaign_settings_options_campaigns_settings_options_get","security":[{"APIKeyHeader":[]},{"HTTPBearer":[]}],"parameters":[{"name":"organization-id","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Organization-Id"}},{"name":"x-user-id","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"X-User-Id"}},{"name":"timezone","in":"header","required":false,"schema":{"type":"string","default":"UTC","title":"Timezone"}},{"name":"x-actor-email","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"X-Actor-Email"}},{"name":"x-request-source","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"X-Request-Source"}},{"name":"x-operation-id","in":"header","required":false,"schema":{"anyOf":[{"type":"string","maxLength":36},{"type":"null"}],"title":"X-Operation-Id"}},{"name":"x-commit-message","in":"header","required":false,"schema":{"anyOf":[{"type":"string","minLength":1},{"type":"null"}],"title":"X-Commit-Message"}},{"name":"x-confirmation-id","in":"header","required":false,"schema":{"anyOf":[{"type":"string","maxLength":36},{"type":"null"}],"title":"X-Confirmation-Id"}},{"name":"x-chat-id","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"X-Chat-Id"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/campaigns/{campaign_id}/settings":{"put":{"tags":["authenticated","campaigns"],"summary":"Update Campaign Settings","description":"Proxy campaign settings update to campaign-service.","operationId":"update_campaign_settings_campaigns__campaign_id__settings_put","security":[{"APIKeyHeader":[]},{"HTTPBearer":[]}],"parameters":[{"name":"campaign_id","in":"path","required":true,"schema":{"type":"string","title":"Campaign Id"}},{"name":"organization-id","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Organization-Id"}},{"name":"x-user-id","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"X-User-Id"}},{"name":"timezone","in":"header","required":false,"schema":{"type":"string","default":"UTC","title":"Timezone"}},{"name":"x-actor-email","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"X-Actor-Email"}},{"name":"x-request-source","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"X-Request-Source"}},{"name":"x-operation-id","in":"header","required":false,"schema":{"anyOf":[{"type":"string","maxLength":36},{"type":"null"}],"title":"X-Operation-Id"}},{"name":"x-commit-message","in":"header","required":false,"schema":{"anyOf":[{"type":"string","minLength":1},{"type":"null"}],"title":"X-Commit-Message"}},{"name":"x-confirmation-id","in":"header","required":false,"schema":{"anyOf":[{"type":"string","maxLength":36},{"type":"null"}],"title":"X-Confirmation-Id"}},{"name":"x-chat-id","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"X-Chat-Id"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/campaigns/{campaign_id}/engagement-cooldown":{"put":{"tags":["authenticated","campaigns"],"summary":"Set Engagement Cooldown","description":"Upsert the engagements campaign_rule's last_contact_within filter for the campaign.\n\nReplaces the legacy ``Campaign.engagement_cooldown_threshold`` write path used by\nthe variants settings editor. Org-scoped — verifies the campaign belongs to the\nauthenticated user's organization before proxying to campaign-service.","operationId":"set_engagement_cooldown_campaigns__campaign_id__engagement_cooldown_put","security":[{"APIKeyHeader":[]},{"HTTPBearer":[]}],"parameters":[{"name":"campaign_id","in":"path","required":true,"schema":{"type":"string","title":"Campaign Id"}},{"name":"organization-id","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Organization-Id"}},{"name":"x-user-id","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"X-User-Id"}},{"name":"timezone","in":"header","required":false,"schema":{"type":"string","default":"UTC","title":"Timezone"}},{"name":"x-actor-email","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"X-Actor-Email"}},{"name":"x-request-source","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"X-Request-Source"}},{"name":"x-operation-id","in":"header","required":false,"schema":{"anyOf":[{"type":"string","maxLength":36},{"type":"null"}],"title":"X-Operation-Id"}},{"name":"x-commit-message","in":"header","required":false,"schema":{"anyOf":[{"type":"string","minLength":1},{"type":"null"}],"title":"X-Commit-Message"}},{"name":"x-confirmation-id","in":"header","required":false,"schema":{"anyOf":[{"type":"string","maxLength":36},{"type":"null"}],"title":"X-Confirmation-Id"}},{"name":"x-chat-id","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"X-Chat-Id"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/campaigns/{campaign_id}/disqualifying-tags":{"get":{"tags":["authenticated","campaigns"],"summary":"Campaign Disqualifying Tags","description":"Campaign-level disqualifying tag names, in the vocabulary the settings form uses.","operationId":"campaign_disqualifying_tags_campaigns__campaign_id__disqualifying_tags_get","security":[{"APIKeyHeader":[]},{"HTTPBearer":[]}],"parameters":[{"name":"campaign_id","in":"path","required":true,"schema":{"type":"string","title":"Campaign Id"}},{"name":"organization-id","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Organization-Id"}},{"name":"x-user-id","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"X-User-Id"}},{"name":"timezone","in":"header","required":false,"schema":{"type":"string","default":"UTC","title":"Timezone"}},{"name":"x-actor-email","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"X-Actor-Email"}},{"name":"x-request-source","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"X-Request-Source"}},{"name":"x-operation-id","in":"header","required":false,"schema":{"anyOf":[{"type":"string","maxLength":36},{"type":"null"}],"title":"X-Operation-Id"}},{"name":"x-commit-message","in":"header","required":false,"schema":{"anyOf":[{"type":"string","minLength":1},{"type":"null"}],"title":"X-Commit-Message"}},{"name":"x-confirmation-id","in":"header","required":false,"schema":{"anyOf":[{"type":"string","maxLength":36},{"type":"null"}],"title":"X-Confirmation-Id"}},{"name":"x-chat-id","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"X-Chat-Id"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}},"put":{"tags":["authenticated","campaigns"],"summary":"Set Campaign Disqualifying Tags","description":"Replace the campaign's disqualifying tags, addressed by tag name.\n\nThe settings form speaks names (as does ``/campaigns/settings-options``), so names\nare resolved to ServiceTitan tag ids here before proxying to campaign-service.","operationId":"set_campaign_disqualifying_tags_campaigns__campaign_id__disqualifying_tags_put","security":[{"APIKeyHeader":[]},{"HTTPBearer":[]}],"parameters":[{"name":"campaign_id","in":"path","required":true,"schema":{"type":"string","title":"Campaign Id"}},{"name":"organization-id","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Organization-Id"}},{"name":"x-user-id","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"X-User-Id"}},{"name":"timezone","in":"header","required":false,"schema":{"type":"string","default":"UTC","title":"Timezone"}},{"name":"x-actor-email","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"X-Actor-Email"}},{"name":"x-request-source","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"X-Request-Source"}},{"name":"x-operation-id","in":"header","required":false,"schema":{"anyOf":[{"type":"string","maxLength":36},{"type":"null"}],"title":"X-Operation-Id"}},{"name":"x-commit-message","in":"header","required":false,"schema":{"anyOf":[{"type":"string","minLength":1},{"type":"null"}],"title":"X-Commit-Message"}},{"name":"x-confirmation-id","in":"header","required":false,"schema":{"anyOf":[{"type":"string","maxLength":36},{"type":"null"}],"title":"X-Confirmation-Id"}},{"name":"x-chat-id","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"X-Chat-Id"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/SetCampaignDisqualifyingTagsRequest"}}}},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/campaigns/targeting-health/{agent_v2_id}":{"get":{"tags":["authenticated","campaigns"],"summary":"Targeting Health","description":"Return targeting health metrics, summed across every variant for the agent.\n\nThe agent detail page renders this card at the bottom of the Performance\ntab; users want it to reflect the whole agent (e.g. Mollie across all\nregion × trade variants), not just the oldest campaign. We aggregate by\nsumming each metric across every campaign slug:\n\n- eligible_pool / starting_pool / pool_pct: sum of each variant's latest\n  snapshot.\n- net_pool_change / burn_rate: sum of per-variant deltas vs. each\n  variant's snapshot from ~7 days ago (so a variant with stale snapshots\n  doesn't poison the rest).\n- reintroduction_rate: sum of per-variant reintroductions for the next 7\n  days.\n- evaluated_at: most recent evaluated_date across variants.","operationId":"targeting_health_campaigns_targeting_health__agent_v2_id__get","security":[{"APIKeyHeader":[]},{"HTTPBearer":[]}],"parameters":[{"name":"agent_v2_id","in":"path","required":true,"schema":{"type":"string","title":"Agent V2 Id"}},{"name":"organization-id","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Organization-Id"}},{"name":"x-user-id","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"X-User-Id"}},{"name":"timezone","in":"header","required":false,"schema":{"type":"string","default":"UTC","title":"Timezone"}},{"name":"x-actor-email","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"X-Actor-Email"}},{"name":"x-request-source","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"X-Request-Source"}},{"name":"x-operation-id","in":"header","required":false,"schema":{"anyOf":[{"type":"string","maxLength":36},{"type":"null"}],"title":"X-Operation-Id"}},{"name":"x-commit-message","in":"header","required":false,"schema":{"anyOf":[{"type":"string","minLength":1},{"type":"null"}],"title":"X-Commit-Message"}},{"name":"x-confirmation-id","in":"header","required":false,"schema":{"anyOf":[{"type":"string","maxLength":36},{"type":"null"}],"title":"X-Confirmation-Id"}},{"name":"x-chat-id","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"X-Chat-Id"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/campaigns/targeting/{agent_v2_id}":{"get":{"tags":["authenticated","campaigns"],"summary":"Campaign Targeting","description":"Return targeting rules and funnel data for a campaign variant.\n\nBy default uses the first campaign for the agent (oldest by created_at).\nPass ``campaign_id`` (the campaign UUID) to load a specific variant —\nused by the variant selector on the agent detail page so users can edit\neach variant's rules independently.\n\nLoads campaign_rule rows for that campaign, resolving org-level defaults,\nand the latest targeting_snapshot for funnel step data.","operationId":"campaign_targeting_campaigns_targeting__agent_v2_id__get","security":[{"APIKeyHeader":[]},{"HTTPBearer":[]}],"parameters":[{"name":"agent_v2_id","in":"path","required":true,"schema":{"type":"string","title":"Agent V2 Id"}},{"name":"campaign_id","in":"query","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Campaign Id"}},{"name":"organization-id","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Organization-Id"}},{"name":"x-user-id","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"X-User-Id"}},{"name":"timezone","in":"header","required":false,"schema":{"type":"string","default":"UTC","title":"Timezone"}},{"name":"x-actor-email","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"X-Actor-Email"}},{"name":"x-request-source","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"X-Request-Source"}},{"name":"x-operation-id","in":"header","required":false,"schema":{"anyOf":[{"type":"string","maxLength":36},{"type":"null"}],"title":"X-Operation-Id"}},{"name":"x-commit-message","in":"header","required":false,"schema":{"anyOf":[{"type":"string","minLength":1},{"type":"null"}],"title":"X-Commit-Message"}},{"name":"x-confirmation-id","in":"header","required":false,"schema":{"anyOf":[{"type":"string","maxLength":36},{"type":"null"}],"title":"X-Confirmation-Id"}},{"name":"x-chat-id","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"X-Chat-Id"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/campaigns/{campaign_id}/targeting-preview":{"post":{"tags":["authenticated","campaigns"],"summary":"Campaign Targeting Preview","description":"Live targeting preview keyed by campaign UUID.\n\nPass ``rules`` in the body for the agents-page live-edit case;\nomit it to evaluate the campaign's persisted rule set (admin\nTargeting tab, MCP preview tool). The optional flags expose the\nper-step ``name`` / ``filter_type`` / ``num_unique`` enrichments\nthe agents page doesn't need.\n\nOrg-scoped: verifies the campaign belongs to the authenticated\nuser's organization before proxying, matching the pattern used by\n``PUT /{campaign_id}/settings``.","operationId":"campaign_targeting_preview_campaigns__campaign_id__targeting_preview_post","security":[{"APIKeyHeader":[]},{"HTTPBearer":[]}],"parameters":[{"name":"campaign_id","in":"path","required":true,"schema":{"type":"string","title":"Campaign Id"}},{"name":"include_independent","in":"query","required":false,"schema":{"type":"boolean","default":false,"title":"Include Independent"}},{"name":"apply_region","in":"query","required":false,"schema":{"type":"boolean","default":true,"title":"Apply Region"}},{"name":"organization-id","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Organization-Id"}},{"name":"x-user-id","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"X-User-Id"}},{"name":"timezone","in":"header","required":false,"schema":{"type":"string","default":"UTC","title":"Timezone"}},{"name":"x-actor-email","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"X-Actor-Email"}},{"name":"x-request-source","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"X-Request-Source"}},{"name":"x-operation-id","in":"header","required":false,"schema":{"anyOf":[{"type":"string","maxLength":36},{"type":"null"}],"title":"X-Operation-Id"}},{"name":"x-commit-message","in":"header","required":false,"schema":{"anyOf":[{"type":"string","minLength":1},{"type":"null"}],"title":"X-Commit-Message"}},{"name":"x-confirmation-id","in":"header","required":false,"schema":{"anyOf":[{"type":"string","maxLength":36},{"type":"null"}],"title":"X-Confirmation-Id"}},{"name":"x-chat-id","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"X-Chat-Id"}}],"requestBody":{"content":{"application/json":{"schema":{"anyOf":[{"$ref":"#/components/schemas/CampaignTargetingPreviewBody"},{"type":"null"}],"title":"Body"}}}},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/campaigns/{campaign_id}/targeting-preview/customers":{"post":{"tags":["authenticated","campaigns"],"summary":"Campaign Targeting Preview Customers","description":"Page through the customers the given rule set would target.\n\nSame body semantics as ``targeting-preview``: pass ``rules`` to evaluate\nthe builder's unsaved state, omit it for the campaign's persisted rules.\nOrg-scoped like the preview proxy.","operationId":"campaign_targeting_preview_customers_campaigns__campaign_id__targeting_preview_customers_post","security":[{"APIKeyHeader":[]},{"HTTPBearer":[]}],"parameters":[{"name":"campaign_id","in":"path","required":true,"schema":{"type":"string","title":"Campaign Id"}},{"name":"limit","in":"query","required":false,"schema":{"type":"integer","default":50,"title":"Limit"}},{"name":"offset","in":"query","required":false,"schema":{"type":"integer","default":0,"title":"Offset"}},{"name":"organization-id","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Organization-Id"}},{"name":"x-user-id","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"X-User-Id"}},{"name":"timezone","in":"header","required":false,"schema":{"type":"string","default":"UTC","title":"Timezone"}},{"name":"x-actor-email","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"X-Actor-Email"}},{"name":"x-request-source","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"X-Request-Source"}},{"name":"x-operation-id","in":"header","required":false,"schema":{"anyOf":[{"type":"string","maxLength":36},{"type":"null"}],"title":"X-Operation-Id"}},{"name":"x-commit-message","in":"header","required":false,"schema":{"anyOf":[{"type":"string","minLength":1},{"type":"null"}],"title":"X-Commit-Message"}},{"name":"x-confirmation-id","in":"header","required":false,"schema":{"anyOf":[{"type":"string","maxLength":36},{"type":"null"}],"title":"X-Confirmation-Id"}},{"name":"x-chat-id","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"X-Chat-Id"}}],"requestBody":{"content":{"application/json":{"schema":{"anyOf":[{"$ref":"#/components/schemas/CampaignTargetingPreviewBody"},{"type":"null"}],"title":"Body"}}}},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/campaigns/targeting-labels":{"post":{"tags":["authenticated","campaigns"],"summary":"Campaign Targeting Labels","description":"Names for the ids in a rule set, the same ``labels`` the targeting payload carries.","operationId":"campaign_targeting_labels_campaigns_targeting_labels_post","security":[{"APIKeyHeader":[]},{"HTTPBearer":[]}],"parameters":[{"name":"organization-id","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Organization-Id"}},{"name":"x-user-id","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"X-User-Id"}},{"name":"timezone","in":"header","required":false,"schema":{"type":"string","default":"UTC","title":"Timezone"}},{"name":"x-actor-email","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"X-Actor-Email"}},{"name":"x-request-source","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"X-Request-Source"}},{"name":"x-operation-id","in":"header","required":false,"schema":{"anyOf":[{"type":"string","maxLength":36},{"type":"null"}],"title":"X-Operation-Id"}},{"name":"x-commit-message","in":"header","required":false,"schema":{"anyOf":[{"type":"string","minLength":1},{"type":"null"}],"title":"X-Commit-Message"}},{"name":"x-confirmation-id","in":"header","required":false,"schema":{"anyOf":[{"type":"string","maxLength":36},{"type":"null"}],"title":"X-Confirmation-Id"}},{"name":"x-chat-id","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"X-Chat-Id"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/TargetingLabelsBody"}}}},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"type":"object","additionalProperties":{"type":"object","additionalProperties":{"type":"string"}},"title":"Response Campaign Targeting Labels Campaigns Targeting Labels Post"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/campaigns/{campaign_id}/rules":{"put":{"tags":["authenticated","campaigns"],"summary":"Save Campaign Targeting","description":"Persist the targeting rule builder's state as campaign-level rules.\n\nConverts each rule group into a ``campaign_rule`` row (``rule_type_key``\n= the group's source, ``params`` = the group payload) and proxies to\ncampaign-service's full-replacement PUT, which validates params against\nthe engine's discriminated union.","operationId":"save_campaign_targeting_campaigns__campaign_id__rules_put","security":[{"APIKeyHeader":[]},{"HTTPBearer":[]}],"parameters":[{"name":"campaign_id","in":"path","required":true,"schema":{"type":"string","title":"Campaign Id"}},{"name":"organization-id","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Organization-Id"}},{"name":"x-user-id","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"X-User-Id"}},{"name":"timezone","in":"header","required":false,"schema":{"type":"string","default":"UTC","title":"Timezone"}},{"name":"x-actor-email","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"X-Actor-Email"}},{"name":"x-request-source","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"X-Request-Source"}},{"name":"x-operation-id","in":"header","required":false,"schema":{"anyOf":[{"type":"string","maxLength":36},{"type":"null"}],"title":"X-Operation-Id"}},{"name":"x-commit-message","in":"header","required":false,"schema":{"anyOf":[{"type":"string","minLength":1},{"type":"null"}],"title":"X-Commit-Message"}},{"name":"x-confirmation-id","in":"header","required":false,"schema":{"anyOf":[{"type":"string","maxLength":36},{"type":"null"}],"title":"X-Confirmation-Id"}},{"name":"x-chat-id","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"X-Chat-Id"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/SaveCampaignTargetingBody"}}}},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/campaigns/{campaign_id}/triggers":{"get":{"tags":["authenticated","campaigns"],"summary":"List Campaign Triggers Authenticated","operationId":"list_campaign_triggers_authenticated_campaigns__campaign_id__triggers_get","security":[{"APIKeyHeader":[]},{"HTTPBearer":[]}],"parameters":[{"name":"campaign_id","in":"path","required":true,"schema":{"type":"string","title":"Campaign Id"}},{"name":"organization-id","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Organization-Id"}},{"name":"x-user-id","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"X-User-Id"}},{"name":"timezone","in":"header","required":false,"schema":{"type":"string","default":"UTC","title":"Timezone"}},{"name":"x-actor-email","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"X-Actor-Email"}},{"name":"x-request-source","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"X-Request-Source"}},{"name":"x-operation-id","in":"header","required":false,"schema":{"anyOf":[{"type":"string","maxLength":36},{"type":"null"}],"title":"X-Operation-Id"}},{"name":"x-commit-message","in":"header","required":false,"schema":{"anyOf":[{"type":"string","minLength":1},{"type":"null"}],"title":"X-Commit-Message"}},{"name":"x-confirmation-id","in":"header","required":false,"schema":{"anyOf":[{"type":"string","maxLength":36},{"type":"null"}],"title":"X-Confirmation-Id"}},{"name":"x-chat-id","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"X-Chat-Id"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"type":"array","items":{"$ref":"#/components/schemas/CampaignTriggerPublic"},"title":"Response List Campaign Triggers Authenticated Campaigns  Campaign Id  Triggers Get"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/campaigns/{campaign_id}/triggers/{trigger_id}":{"put":{"tags":["authenticated","campaigns"],"summary":"Update Campaign Trigger Authenticated","operationId":"update_campaign_trigger_authenticated_campaigns__campaign_id__triggers__trigger_id__put","security":[{"APIKeyHeader":[]},{"HTTPBearer":[]}],"parameters":[{"name":"campaign_id","in":"path","required":true,"schema":{"type":"string","title":"Campaign Id"}},{"name":"trigger_id","in":"path","required":true,"schema":{"type":"string","title":"Trigger Id"}},{"name":"organization-id","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Organization-Id"}},{"name":"x-user-id","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"X-User-Id"}},{"name":"timezone","in":"header","required":false,"schema":{"type":"string","default":"UTC","title":"Timezone"}},{"name":"x-actor-email","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"X-Actor-Email"}},{"name":"x-request-source","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"X-Request-Source"}},{"name":"x-operation-id","in":"header","required":false,"schema":{"anyOf":[{"type":"string","maxLength":36},{"type":"null"}],"title":"X-Operation-Id"}},{"name":"x-commit-message","in":"header","required":false,"schema":{"anyOf":[{"type":"string","minLength":1},{"type":"null"}],"title":"X-Commit-Message"}},{"name":"x-confirmation-id","in":"header","required":false,"schema":{"anyOf":[{"type":"string","maxLength":36},{"type":"null"}],"title":"X-Confirmation-Id"}},{"name":"x-chat-id","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"X-Chat-Id"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/UpdateCampaignTriggerBody"}}}},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/CampaignTriggerPublic"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/campaigns/{campaign_id}/triggers/{trigger_id}/filters":{"get":{"tags":["authenticated","campaigns"],"summary":"List Event Filters Authenticated","operationId":"list_event_filters_authenticated_campaigns__campaign_id__triggers__trigger_id__filters_get","security":[{"APIKeyHeader":[]},{"HTTPBearer":[]}],"parameters":[{"name":"campaign_id","in":"path","required":true,"schema":{"type":"string","title":"Campaign Id"}},{"name":"trigger_id","in":"path","required":true,"schema":{"type":"string","title":"Trigger Id"}},{"name":"organization-id","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Organization-Id"}},{"name":"x-user-id","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"X-User-Id"}},{"name":"timezone","in":"header","required":false,"schema":{"type":"string","default":"UTC","title":"Timezone"}},{"name":"x-actor-email","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"X-Actor-Email"}},{"name":"x-request-source","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"X-Request-Source"}},{"name":"x-operation-id","in":"header","required":false,"schema":{"anyOf":[{"type":"string","maxLength":36},{"type":"null"}],"title":"X-Operation-Id"}},{"name":"x-commit-message","in":"header","required":false,"schema":{"anyOf":[{"type":"string","minLength":1},{"type":"null"}],"title":"X-Commit-Message"}},{"name":"x-confirmation-id","in":"header","required":false,"schema":{"anyOf":[{"type":"string","maxLength":36},{"type":"null"}],"title":"X-Confirmation-Id"}},{"name":"x-chat-id","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"X-Chat-Id"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"type":"array","items":{"$ref":"#/components/schemas/EventFilterPublic"},"title":"Response List Event Filters Authenticated Campaigns  Campaign Id  Triggers  Trigger Id  Filters Get"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}},"post":{"tags":["authenticated","campaigns"],"summary":"Create Event Filter Authenticated","operationId":"create_event_filter_authenticated_campaigns__campaign_id__triggers__trigger_id__filters_post","security":[{"APIKeyHeader":[]},{"HTTPBearer":[]}],"parameters":[{"name":"campaign_id","in":"path","required":true,"schema":{"type":"string","title":"Campaign Id"}},{"name":"trigger_id","in":"path","required":true,"schema":{"type":"string","title":"Trigger Id"}},{"name":"organization-id","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Organization-Id"}},{"name":"x-user-id","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"X-User-Id"}},{"name":"timezone","in":"header","required":false,"schema":{"type":"string","default":"UTC","title":"Timezone"}},{"name":"x-actor-email","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"X-Actor-Email"}},{"name":"x-request-source","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"X-Request-Source"}},{"name":"x-operation-id","in":"header","required":false,"schema":{"anyOf":[{"type":"string","maxLength":36},{"type":"null"}],"title":"X-Operation-Id"}},{"name":"x-commit-message","in":"header","required":false,"schema":{"anyOf":[{"type":"string","minLength":1},{"type":"null"}],"title":"X-Commit-Message"}},{"name":"x-confirmation-id","in":"header","required":false,"schema":{"anyOf":[{"type":"string","maxLength":36},{"type":"null"}],"title":"X-Confirmation-Id"}},{"name":"x-chat-id","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"X-Chat-Id"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/CreateEventFilterBody"}}}},"responses":{"201":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/EventFilterPublic"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/campaigns/{campaign_id}/triggers/{trigger_id}/filters/{filter_id}":{"patch":{"tags":["authenticated","campaigns"],"summary":"Update Event Filter Authenticated","operationId":"update_event_filter_authenticated_campaigns__campaign_id__triggers__trigger_id__filters__filter_id__patch","security":[{"APIKeyHeader":[]},{"HTTPBearer":[]}],"parameters":[{"name":"campaign_id","in":"path","required":true,"schema":{"type":"string","title":"Campaign Id"}},{"name":"trigger_id","in":"path","required":true,"schema":{"type":"string","title":"Trigger Id"}},{"name":"filter_id","in":"path","required":true,"schema":{"type":"string","title":"Filter Id"}},{"name":"organization-id","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Organization-Id"}},{"name":"x-user-id","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"X-User-Id"}},{"name":"timezone","in":"header","required":false,"schema":{"type":"string","default":"UTC","title":"Timezone"}},{"name":"x-actor-email","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"X-Actor-Email"}},{"name":"x-request-source","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"X-Request-Source"}},{"name":"x-operation-id","in":"header","required":false,"schema":{"anyOf":[{"type":"string","maxLength":36},{"type":"null"}],"title":"X-Operation-Id"}},{"name":"x-commit-message","in":"header","required":false,"schema":{"anyOf":[{"type":"string","minLength":1},{"type":"null"}],"title":"X-Commit-Message"}},{"name":"x-confirmation-id","in":"header","required":false,"schema":{"anyOf":[{"type":"string","maxLength":36},{"type":"null"}],"title":"X-Confirmation-Id"}},{"name":"x-chat-id","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"X-Chat-Id"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/UpdateEventFilterBody"}}}},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/EventFilterPublic"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}},"delete":{"tags":["authenticated","campaigns"],"summary":"Delete Event Filter Authenticated","operationId":"delete_event_filter_authenticated_campaigns__campaign_id__triggers__trigger_id__filters__filter_id__delete","security":[{"APIKeyHeader":[]},{"HTTPBearer":[]}],"parameters":[{"name":"campaign_id","in":"path","required":true,"schema":{"type":"string","title":"Campaign Id"}},{"name":"trigger_id","in":"path","required":true,"schema":{"type":"string","title":"Trigger Id"}},{"name":"filter_id","in":"path","required":true,"schema":{"type":"string","title":"Filter Id"}},{"name":"organization-id","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Organization-Id"}},{"name":"x-user-id","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"X-User-Id"}},{"name":"timezone","in":"header","required":false,"schema":{"type":"string","default":"UTC","title":"Timezone"}},{"name":"x-actor-email","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"X-Actor-Email"}},{"name":"x-request-source","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"X-Request-Source"}},{"name":"x-operation-id","in":"header","required":false,"schema":{"anyOf":[{"type":"string","maxLength":36},{"type":"null"}],"title":"X-Operation-Id"}},{"name":"x-commit-message","in":"header","required":false,"schema":{"anyOf":[{"type":"string","minLength":1},{"type":"null"}],"title":"X-Commit-Message"}},{"name":"x-confirmation-id","in":"header","required":false,"schema":{"anyOf":[{"type":"string","maxLength":36},{"type":"null"}],"title":"X-Confirmation-Id"}},{"name":"x-chat-id","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"X-Chat-Id"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/DeletedResponse"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/campaigns/event-filter-types":{"get":{"tags":["authenticated","campaigns"],"summary":"Event Filter Type Catalog","description":"Global catalog — no org-scoping needed, event-filter types are not org-specific.","operationId":"event_filter_type_catalog_campaigns_event_filter_types_get","security":[{"APIKeyHeader":[]},{"HTTPBearer":[]}],"parameters":[{"name":"event_type","in":"query","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Event Type"}},{"name":"organization-id","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Organization-Id"}},{"name":"x-user-id","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"X-User-Id"}},{"name":"timezone","in":"header","required":false,"schema":{"type":"string","default":"UTC","title":"Timezone"}},{"name":"x-actor-email","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"X-Actor-Email"}},{"name":"x-request-source","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"X-Request-Source"}},{"name":"x-operation-id","in":"header","required":false,"schema":{"anyOf":[{"type":"string","maxLength":36},{"type":"null"}],"title":"X-Operation-Id"}},{"name":"x-commit-message","in":"header","required":false,"schema":{"anyOf":[{"type":"string","minLength":1},{"type":"null"}],"title":"X-Commit-Message"}},{"name":"x-confirmation-id","in":"header","required":false,"schema":{"anyOf":[{"type":"string","maxLength":36},{"type":"null"}],"title":"X-Confirmation-Id"}},{"name":"x-chat-id","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"X-Chat-Id"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"type":"array","items":{"$ref":"#/components/schemas/EventFilterTypePublic"},"title":"Response Event Filter Type Catalog Campaigns Event Filter Types Get"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/campaigns/event-source-columns":{"get":{"tags":["authenticated","campaigns"],"summary":"Gateway Alias Campaign  Campaigns Event-Source-Columns","operationId":"gateway_alias_campaign__campaigns_event_source_columns_campaigns_event_source_columns_get","security":[{"APIKeyHeader":[]},{"HTTPBearer":[]}],"parameters":[{"name":"organization-id","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Organization-Id"}},{"name":"x-user-id","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"X-User-Id"}},{"name":"timezone","in":"header","required":false,"schema":{"type":"string","default":"UTC","title":"Timezone"}},{"name":"x-actor-email","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"X-Actor-Email"}},{"name":"x-request-source","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"X-Request-Source"}},{"name":"x-operation-id","in":"header","required":false,"schema":{"anyOf":[{"type":"string","maxLength":36},{"type":"null"}],"title":"X-Operation-Id"}},{"name":"x-commit-message","in":"header","required":false,"schema":{"anyOf":[{"type":"string","minLength":1},{"type":"null"}],"title":"X-Commit-Message"}},{"name":"x-confirmation-id","in":"header","required":false,"schema":{"anyOf":[{"type":"string","maxLength":36},{"type":"null"}],"title":"X-Confirmation-Id"}},{"name":"x-chat-id","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"X-Chat-Id"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"type":"object","additionalProperties":{"type":"object","additionalProperties":true},"title":"Response Gateway Alias Campaign  Campaigns Event Source Columns Campaigns Event Source Columns Get"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/followup-cadences":{"get":{"tags":["authenticated","followup_cadences"],"summary":"Followup Cadence List","operationId":"followup_cadence_list_followup_cadences_get","security":[{"APIKeyHeader":[]},{"HTTPBearer":[]}],"parameters":[{"name":"organization-id","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Organization-Id"}},{"name":"x-user-id","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"X-User-Id"}},{"name":"timezone","in":"header","required":false,"schema":{"type":"string","default":"UTC","title":"Timezone"}},{"name":"x-actor-email","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"X-Actor-Email"}},{"name":"x-request-source","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"X-Request-Source"}},{"name":"x-operation-id","in":"header","required":false,"schema":{"anyOf":[{"type":"string","maxLength":36},{"type":"null"}],"title":"X-Operation-Id"}},{"name":"x-commit-message","in":"header","required":false,"schema":{"anyOf":[{"type":"string","minLength":1},{"type":"null"}],"title":"X-Commit-Message"}},{"name":"x-confirmation-id","in":"header","required":false,"schema":{"anyOf":[{"type":"string","maxLength":36},{"type":"null"}],"title":"X-Confirmation-Id"}},{"name":"x-chat-id","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"X-Chat-Id"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"type":"array","items":{"$ref":"#/components/schemas/FollowupCadencePublic"},"title":"Response Followup Cadence List Followup Cadences Get"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}},"post":{"tags":["authenticated","followup_cadences"],"summary":"Followup Cadence Create","operationId":"followup_cadence_create_followup_cadences_post","security":[{"APIKeyHeader":[]},{"HTTPBearer":[]}],"parameters":[{"name":"organization-id","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Organization-Id"}},{"name":"x-user-id","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"X-User-Id"}},{"name":"timezone","in":"header","required":false,"schema":{"type":"string","default":"UTC","title":"Timezone"}},{"name":"x-actor-email","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"X-Actor-Email"}},{"name":"x-request-source","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"X-Request-Source"}},{"name":"x-operation-id","in":"header","required":false,"schema":{"anyOf":[{"type":"string","maxLength":36},{"type":"null"}],"title":"X-Operation-Id"}},{"name":"x-commit-message","in":"header","required":false,"schema":{"anyOf":[{"type":"string","minLength":1},{"type":"null"}],"title":"X-Commit-Message"}},{"name":"x-confirmation-id","in":"header","required":false,"schema":{"anyOf":[{"type":"string","maxLength":36},{"type":"null"}],"title":"X-Confirmation-Id"}},{"name":"x-chat-id","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"X-Chat-Id"}}],"responses":{"201":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/FollowupCadencePublic"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/followup-cadences/{followup_cadence_id}":{"get":{"tags":["authenticated","followup_cadences"],"summary":"Followup Cadence Get","operationId":"followup_cadence_get_followup_cadences__followup_cadence_id__get","security":[{"APIKeyHeader":[]},{"HTTPBearer":[]}],"parameters":[{"name":"followup_cadence_id","in":"path","required":true,"schema":{"type":"string","title":"Followup Cadence Id"}},{"name":"organization-id","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Organization-Id"}},{"name":"x-user-id","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"X-User-Id"}},{"name":"timezone","in":"header","required":false,"schema":{"type":"string","default":"UTC","title":"Timezone"}},{"name":"x-actor-email","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"X-Actor-Email"}},{"name":"x-request-source","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"X-Request-Source"}},{"name":"x-operation-id","in":"header","required":false,"schema":{"anyOf":[{"type":"string","maxLength":36},{"type":"null"}],"title":"X-Operation-Id"}},{"name":"x-commit-message","in":"header","required":false,"schema":{"anyOf":[{"type":"string","minLength":1},{"type":"null"}],"title":"X-Commit-Message"}},{"name":"x-confirmation-id","in":"header","required":false,"schema":{"anyOf":[{"type":"string","maxLength":36},{"type":"null"}],"title":"X-Confirmation-Id"}},{"name":"x-chat-id","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"X-Chat-Id"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/FollowupCadencePublic"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}},"put":{"tags":["authenticated","followup_cadences"],"summary":"Followup Cadence Update","operationId":"followup_cadence_update_followup_cadences__followup_cadence_id__put","security":[{"APIKeyHeader":[]},{"HTTPBearer":[]}],"parameters":[{"name":"followup_cadence_id","in":"path","required":true,"schema":{"type":"string","title":"Followup Cadence Id"}},{"name":"organization-id","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Organization-Id"}},{"name":"x-user-id","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"X-User-Id"}},{"name":"timezone","in":"header","required":false,"schema":{"type":"string","default":"UTC","title":"Timezone"}},{"name":"x-actor-email","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"X-Actor-Email"}},{"name":"x-request-source","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"X-Request-Source"}},{"name":"x-operation-id","in":"header","required":false,"schema":{"anyOf":[{"type":"string","maxLength":36},{"type":"null"}],"title":"X-Operation-Id"}},{"name":"x-commit-message","in":"header","required":false,"schema":{"anyOf":[{"type":"string","minLength":1},{"type":"null"}],"title":"X-Commit-Message"}},{"name":"x-confirmation-id","in":"header","required":false,"schema":{"anyOf":[{"type":"string","maxLength":36},{"type":"null"}],"title":"X-Confirmation-Id"}},{"name":"x-chat-id","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"X-Chat-Id"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/FollowupCadencePublic"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}},"delete":{"tags":["authenticated","followup_cadences"],"summary":"Followup Cadence Delete","operationId":"followup_cadence_delete_followup_cadences__followup_cadence_id__delete","security":[{"APIKeyHeader":[]},{"HTTPBearer":[]}],"parameters":[{"name":"followup_cadence_id","in":"path","required":true,"schema":{"type":"string","title":"Followup Cadence Id"}},{"name":"organization-id","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Organization-Id"}},{"name":"x-user-id","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"X-User-Id"}},{"name":"timezone","in":"header","required":false,"schema":{"type":"string","default":"UTC","title":"Timezone"}},{"name":"x-actor-email","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"X-Actor-Email"}},{"name":"x-request-source","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"X-Request-Source"}},{"name":"x-operation-id","in":"header","required":false,"schema":{"anyOf":[{"type":"string","maxLength":36},{"type":"null"}],"title":"X-Operation-Id"}},{"name":"x-commit-message","in":"header","required":false,"schema":{"anyOf":[{"type":"string","minLength":1},{"type":"null"}],"title":"X-Commit-Message"}},{"name":"x-confirmation-id","in":"header","required":false,"schema":{"anyOf":[{"type":"string","maxLength":36},{"type":"null"}],"title":"X-Confirmation-Id"}},{"name":"x-chat-id","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"X-Chat-Id"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/FollowupCadencePublic"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/followup-cadences/{followup_cadence_id}/campaigns/{campaign_id}":{"put":{"tags":["authenticated","followup_cadences"],"summary":"Followup Cadence Attach","operationId":"followup_cadence_attach_followup_cadences__followup_cadence_id__campaigns__campaign_id__put","security":[{"APIKeyHeader":[]},{"HTTPBearer":[]}],"parameters":[{"name":"followup_cadence_id","in":"path","required":true,"schema":{"type":"string","title":"Followup Cadence Id"}},{"name":"campaign_id","in":"path","required":true,"schema":{"type":"string","title":"Campaign Id"}},{"name":"organization-id","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Organization-Id"}},{"name":"x-user-id","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"X-User-Id"}},{"name":"timezone","in":"header","required":false,"schema":{"type":"string","default":"UTC","title":"Timezone"}},{"name":"x-actor-email","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"X-Actor-Email"}},{"name":"x-request-source","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"X-Request-Source"}},{"name":"x-operation-id","in":"header","required":false,"schema":{"anyOf":[{"type":"string","maxLength":36},{"type":"null"}],"title":"X-Operation-Id"}},{"name":"x-commit-message","in":"header","required":false,"schema":{"anyOf":[{"type":"string","minLength":1},{"type":"null"}],"title":"X-Commit-Message"}},{"name":"x-confirmation-id","in":"header","required":false,"schema":{"anyOf":[{"type":"string","maxLength":36},{"type":"null"}],"title":"X-Confirmation-Id"}},{"name":"x-chat-id","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"X-Chat-Id"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/FollowupCadenceAttachmentPublic"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/followup-cadences/campaigns/{campaign_id}":{"delete":{"tags":["authenticated","followup_cadences"],"summary":"Followup Cadence Detach","operationId":"followup_cadence_detach_followup_cadences_campaigns__campaign_id__delete","security":[{"APIKeyHeader":[]},{"HTTPBearer":[]}],"parameters":[{"name":"campaign_id","in":"path","required":true,"schema":{"type":"string","title":"Campaign Id"}},{"name":"organization-id","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Organization-Id"}},{"name":"x-user-id","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"X-User-Id"}},{"name":"timezone","in":"header","required":false,"schema":{"type":"string","default":"UTC","title":"Timezone"}},{"name":"x-actor-email","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"X-Actor-Email"}},{"name":"x-request-source","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"X-Request-Source"}},{"name":"x-operation-id","in":"header","required":false,"schema":{"anyOf":[{"type":"string","maxLength":36},{"type":"null"}],"title":"X-Operation-Id"}},{"name":"x-commit-message","in":"header","required":false,"schema":{"anyOf":[{"type":"string","minLength":1},{"type":"null"}],"title":"X-Commit-Message"}},{"name":"x-confirmation-id","in":"header","required":false,"schema":{"anyOf":[{"type":"string","maxLength":36},{"type":"null"}],"title":"X-Confirmation-Id"}},{"name":"x-chat-id","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"X-Chat-Id"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/FollowupCadenceAttachmentPublic"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/evals/test-cases":{"get":{"tags":["authenticated","evals"],"summary":"List Test Cases","operationId":"list_test_cases_evals_test_cases_get","security":[{"APIKeyHeader":[]},{"HTTPBearer":[]}],"parameters":[{"name":"agent_module_ids","in":"query","required":false,"schema":{"anyOf":[{"type":"array","items":{"type":"string"}},{"type":"null"}],"title":"Agent Module Ids"}},{"name":"agent_v2_ids","in":"query","required":false,"schema":{"anyOf":[{"type":"array","items":{"type":"string"}},{"type":"null"}],"title":"Agent V2 Ids"}},{"name":"objective_ids","in":"query","required":false,"schema":{"anyOf":[{"type":"array","items":{"type":"string"}},{"type":"null"}],"title":"Objective Ids"}},{"name":"tool_module_ids","in":"query","required":false,"schema":{"anyOf":[{"type":"array","items":{"type":"string"}},{"type":"null"}],"title":"Tool Module Ids"}},{"name":"hook_config_ids","in":"query","required":false,"schema":{"anyOf":[{"type":"array","items":{"type":"string"}},{"type":"null"}],"title":"Hook Config Ids"}},{"name":"q","in":"query","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Q"}},{"name":"kind","in":"query","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Kind"}},{"name":"limit","in":"query","required":false,"schema":{"type":"integer","maximum":500,"minimum":1,"default":50,"title":"Limit"}},{"name":"offset","in":"query","required":false,"schema":{"type":"integer","minimum":0,"default":0,"title":"Offset"}},{"name":"organization-id","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Organization-Id"}},{"name":"x-user-id","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"X-User-Id"}},{"name":"timezone","in":"header","required":false,"schema":{"type":"string","default":"UTC","title":"Timezone"}},{"name":"x-actor-email","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"X-Actor-Email"}},{"name":"x-request-source","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"X-Request-Source"}},{"name":"x-operation-id","in":"header","required":false,"schema":{"anyOf":[{"type":"string","maxLength":36},{"type":"null"}],"title":"X-Operation-Id"}},{"name":"x-commit-message","in":"header","required":false,"schema":{"anyOf":[{"type":"string","minLength":1},{"type":"null"}],"title":"X-Commit-Message"}},{"name":"x-confirmation-id","in":"header","required":false,"schema":{"anyOf":[{"type":"string","maxLength":36},{"type":"null"}],"title":"X-Confirmation-Id"}},{"name":"x-chat-id","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"X-Chat-Id"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"title":"Response List Test Cases Evals Test Cases Get"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}},"post":{"tags":["authenticated","evals"],"summary":"Create Test Case","operationId":"create_test_case_evals_test_cases_post","security":[{"APIKeyHeader":[]},{"HTTPBearer":[]}],"parameters":[{"name":"organization-id","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Organization-Id"}},{"name":"x-user-id","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"X-User-Id"}},{"name":"timezone","in":"header","required":false,"schema":{"type":"string","default":"UTC","title":"Timezone"}},{"name":"x-actor-email","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"X-Actor-Email"}},{"name":"x-request-source","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"X-Request-Source"}},{"name":"x-operation-id","in":"header","required":false,"schema":{"anyOf":[{"type":"string","maxLength":36},{"type":"null"}],"title":"X-Operation-Id"}},{"name":"x-commit-message","in":"header","required":false,"schema":{"anyOf":[{"type":"string","minLength":1},{"type":"null"}],"title":"X-Commit-Message"}},{"name":"x-confirmation-id","in":"header","required":false,"schema":{"anyOf":[{"type":"string","maxLength":36},{"type":"null"}],"title":"X-Confirmation-Id"}},{"name":"x-chat-id","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"X-Chat-Id"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"type":"object","additionalProperties":true,"title":"Body"}}}},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"title":"Response Create Test Case Evals Test Cases Post"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/evals/test-cases/bulk-links":{"post":{"tags":["authenticated","evals"],"summary":"Bulk Link Test Cases","operationId":"bulk_link_test_cases_evals_test_cases_bulk_links_post","security":[{"APIKeyHeader":[]},{"HTTPBearer":[]}],"parameters":[{"name":"organization-id","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Organization-Id"}},{"name":"x-user-id","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"X-User-Id"}},{"name":"timezone","in":"header","required":false,"schema":{"type":"string","default":"UTC","title":"Timezone"}},{"name":"x-actor-email","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"X-Actor-Email"}},{"name":"x-request-source","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"X-Request-Source"}},{"name":"x-operation-id","in":"header","required":false,"schema":{"anyOf":[{"type":"string","maxLength":36},{"type":"null"}],"title":"X-Operation-Id"}},{"name":"x-commit-message","in":"header","required":false,"schema":{"anyOf":[{"type":"string","minLength":1},{"type":"null"}],"title":"X-Commit-Message"}},{"name":"x-confirmation-id","in":"header","required":false,"schema":{"anyOf":[{"type":"string","maxLength":36},{"type":"null"}],"title":"X-Confirmation-Id"}},{"name":"x-chat-id","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"X-Chat-Id"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"type":"object","additionalProperties":true,"title":"Body"}}}},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"title":"Response Bulk Link Test Cases Evals Test Cases Bulk Links Post"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/evals/test-cases/{test_case_id}":{"get":{"tags":["authenticated","evals"],"summary":"Read Test Case","operationId":"read_test_case_evals_test_cases__test_case_id__get","security":[{"APIKeyHeader":[]},{"HTTPBearer":[]}],"parameters":[{"name":"test_case_id","in":"path","required":true,"schema":{"type":"string","title":"Test Case Id"}},{"name":"organization-id","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Organization-Id"}},{"name":"x-user-id","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"X-User-Id"}},{"name":"timezone","in":"header","required":false,"schema":{"type":"string","default":"UTC","title":"Timezone"}},{"name":"x-actor-email","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"X-Actor-Email"}},{"name":"x-request-source","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"X-Request-Source"}},{"name":"x-operation-id","in":"header","required":false,"schema":{"anyOf":[{"type":"string","maxLength":36},{"type":"null"}],"title":"X-Operation-Id"}},{"name":"x-commit-message","in":"header","required":false,"schema":{"anyOf":[{"type":"string","minLength":1},{"type":"null"}],"title":"X-Commit-Message"}},{"name":"x-confirmation-id","in":"header","required":false,"schema":{"anyOf":[{"type":"string","maxLength":36},{"type":"null"}],"title":"X-Confirmation-Id"}},{"name":"x-chat-id","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"X-Chat-Id"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"title":"Response Read Test Case Evals Test Cases  Test Case Id  Get"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}},"put":{"tags":["authenticated","evals"],"summary":"Update Test Case","operationId":"update_test_case_evals_test_cases__test_case_id__put","security":[{"APIKeyHeader":[]},{"HTTPBearer":[]}],"parameters":[{"name":"test_case_id","in":"path","required":true,"schema":{"type":"string","title":"Test Case Id"}},{"name":"organization-id","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Organization-Id"}},{"name":"x-user-id","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"X-User-Id"}},{"name":"timezone","in":"header","required":false,"schema":{"type":"string","default":"UTC","title":"Timezone"}},{"name":"x-actor-email","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"X-Actor-Email"}},{"name":"x-request-source","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"X-Request-Source"}},{"name":"x-operation-id","in":"header","required":false,"schema":{"anyOf":[{"type":"string","maxLength":36},{"type":"null"}],"title":"X-Operation-Id"}},{"name":"x-commit-message","in":"header","required":false,"schema":{"anyOf":[{"type":"string","minLength":1},{"type":"null"}],"title":"X-Commit-Message"}},{"name":"x-confirmation-id","in":"header","required":false,"schema":{"anyOf":[{"type":"string","maxLength":36},{"type":"null"}],"title":"X-Confirmation-Id"}},{"name":"x-chat-id","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"X-Chat-Id"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"type":"object","additionalProperties":true,"title":"Body"}}}},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"title":"Response Update Test Case Evals Test Cases  Test Case Id  Put"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}},"delete":{"tags":["authenticated","evals"],"summary":"Delete Test Case","operationId":"delete_test_case_evals_test_cases__test_case_id__delete","security":[{"APIKeyHeader":[]},{"HTTPBearer":[]}],"parameters":[{"name":"test_case_id","in":"path","required":true,"schema":{"type":"string","title":"Test Case Id"}},{"name":"organization-id","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Organization-Id"}},{"name":"x-user-id","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"X-User-Id"}},{"name":"timezone","in":"header","required":false,"schema":{"type":"string","default":"UTC","title":"Timezone"}},{"name":"x-actor-email","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"X-Actor-Email"}},{"name":"x-request-source","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"X-Request-Source"}},{"name":"x-operation-id","in":"header","required":false,"schema":{"anyOf":[{"type":"string","maxLength":36},{"type":"null"}],"title":"X-Operation-Id"}},{"name":"x-commit-message","in":"header","required":false,"schema":{"anyOf":[{"type":"string","minLength":1},{"type":"null"}],"title":"X-Commit-Message"}},{"name":"x-confirmation-id","in":"header","required":false,"schema":{"anyOf":[{"type":"string","maxLength":36},{"type":"null"}],"title":"X-Confirmation-Id"}},{"name":"x-chat-id","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"X-Chat-Id"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"title":"Response Delete Test Case Evals Test Cases  Test Case Id  Delete"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/evals/ask-jenny/test-cases":{"post":{"tags":["authenticated","evals"],"summary":"Create Ask Jenny Test Case","operationId":"create_ask_jenny_test_case_evals_ask_jenny_test_cases_post","security":[{"APIKeyHeader":[]},{"HTTPBearer":[]}],"parameters":[{"name":"organization-id","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Organization-Id"}},{"name":"x-user-id","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"X-User-Id"}},{"name":"timezone","in":"header","required":false,"schema":{"type":"string","default":"UTC","title":"Timezone"}},{"name":"x-actor-email","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"X-Actor-Email"}},{"name":"x-request-source","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"X-Request-Source"}},{"name":"x-operation-id","in":"header","required":false,"schema":{"anyOf":[{"type":"string","maxLength":36},{"type":"null"}],"title":"X-Operation-Id"}},{"name":"x-commit-message","in":"header","required":false,"schema":{"anyOf":[{"type":"string","minLength":1},{"type":"null"}],"title":"X-Commit-Message"}},{"name":"x-confirmation-id","in":"header","required":false,"schema":{"anyOf":[{"type":"string","maxLength":36},{"type":"null"}],"title":"X-Confirmation-Id"}},{"name":"x-chat-id","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"X-Chat-Id"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"type":"object","additionalProperties":true,"title":"Body"}}}},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"title":"Response Create Ask Jenny Test Case Evals Ask Jenny Test Cases Post"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/evals/ask-jenny/test-cases/{test_case_id}":{"put":{"tags":["authenticated","evals"],"summary":"Update Ask Jenny Test Case","operationId":"update_ask_jenny_test_case_evals_ask_jenny_test_cases__test_case_id__put","security":[{"APIKeyHeader":[]},{"HTTPBearer":[]}],"parameters":[{"name":"test_case_id","in":"path","required":true,"schema":{"type":"string","title":"Test Case Id"}},{"name":"organization-id","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Organization-Id"}},{"name":"x-user-id","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"X-User-Id"}},{"name":"timezone","in":"header","required":false,"schema":{"type":"string","default":"UTC","title":"Timezone"}},{"name":"x-actor-email","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"X-Actor-Email"}},{"name":"x-request-source","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"X-Request-Source"}},{"name":"x-operation-id","in":"header","required":false,"schema":{"anyOf":[{"type":"string","maxLength":36},{"type":"null"}],"title":"X-Operation-Id"}},{"name":"x-commit-message","in":"header","required":false,"schema":{"anyOf":[{"type":"string","minLength":1},{"type":"null"}],"title":"X-Commit-Message"}},{"name":"x-confirmation-id","in":"header","required":false,"schema":{"anyOf":[{"type":"string","maxLength":36},{"type":"null"}],"title":"X-Confirmation-Id"}},{"name":"x-chat-id","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"X-Chat-Id"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"type":"object","additionalProperties":true,"title":"Body"}}}},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"title":"Response Update Ask Jenny Test Case Evals Ask Jenny Test Cases  Test Case Id  Put"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/evals/batches":{"get":{"tags":["authenticated","evals"],"summary":"List Batches","operationId":"list_batches_evals_batches_get","security":[{"APIKeyHeader":[]},{"HTTPBearer":[]}],"parameters":[{"name":"has_group","in":"query","required":false,"schema":{"anyOf":[{"type":"boolean"},{"type":"null"}],"title":"Has Group"}},{"name":"organization-id","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Organization-Id"}},{"name":"x-user-id","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"X-User-Id"}},{"name":"timezone","in":"header","required":false,"schema":{"type":"string","default":"UTC","title":"Timezone"}},{"name":"x-actor-email","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"X-Actor-Email"}},{"name":"x-request-source","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"X-Request-Source"}},{"name":"x-operation-id","in":"header","required":false,"schema":{"anyOf":[{"type":"string","maxLength":36},{"type":"null"}],"title":"X-Operation-Id"}},{"name":"x-commit-message","in":"header","required":false,"schema":{"anyOf":[{"type":"string","minLength":1},{"type":"null"}],"title":"X-Commit-Message"}},{"name":"x-confirmation-id","in":"header","required":false,"schema":{"anyOf":[{"type":"string","maxLength":36},{"type":"null"}],"title":"X-Confirmation-Id"}},{"name":"x-chat-id","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"X-Chat-Id"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"title":"Response List Batches Evals Batches Get"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/evals/results":{"get":{"tags":["authenticated","evals"],"summary":"List Results","operationId":"list_results_evals_results_get","security":[{"APIKeyHeader":[]},{"HTTPBearer":[]}],"parameters":[{"name":"batch_id","in":"query","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Batch Id"}},{"name":"kind","in":"query","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Kind"}},{"name":"organization-id","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Organization-Id"}},{"name":"x-user-id","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"X-User-Id"}},{"name":"timezone","in":"header","required":false,"schema":{"type":"string","default":"UTC","title":"Timezone"}},{"name":"x-actor-email","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"X-Actor-Email"}},{"name":"x-request-source","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"X-Request-Source"}},{"name":"x-operation-id","in":"header","required":false,"schema":{"anyOf":[{"type":"string","maxLength":36},{"type":"null"}],"title":"X-Operation-Id"}},{"name":"x-commit-message","in":"header","required":false,"schema":{"anyOf":[{"type":"string","minLength":1},{"type":"null"}],"title":"X-Commit-Message"}},{"name":"x-confirmation-id","in":"header","required":false,"schema":{"anyOf":[{"type":"string","maxLength":36},{"type":"null"}],"title":"X-Confirmation-Id"}},{"name":"x-chat-id","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"X-Chat-Id"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"title":"Response List Results Evals Results Get"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/evals/run-tests":{"post":{"tags":["authenticated","evals"],"summary":"Run Tests","operationId":"run_tests_evals_run_tests_post","security":[{"APIKeyHeader":[]},{"HTTPBearer":[]}],"parameters":[{"name":"organization-id","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Organization-Id"}},{"name":"x-user-id","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"X-User-Id"}},{"name":"timezone","in":"header","required":false,"schema":{"type":"string","default":"UTC","title":"Timezone"}},{"name":"x-actor-email","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"X-Actor-Email"}},{"name":"x-request-source","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"X-Request-Source"}},{"name":"x-operation-id","in":"header","required":false,"schema":{"anyOf":[{"type":"string","maxLength":36},{"type":"null"}],"title":"X-Operation-Id"}},{"name":"x-commit-message","in":"header","required":false,"schema":{"anyOf":[{"type":"string","minLength":1},{"type":"null"}],"title":"X-Commit-Message"}},{"name":"x-confirmation-id","in":"header","required":false,"schema":{"anyOf":[{"type":"string","maxLength":36},{"type":"null"}],"title":"X-Confirmation-Id"}},{"name":"x-chat-id","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"X-Chat-Id"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"type":"object","additionalProperties":true,"title":"Body"}}}},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"title":"Response Run Tests Evals Run Tests Post"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/evals/subjects":{"get":{"tags":["authenticated","evals"],"summary":"List Subjects","operationId":"list_subjects_evals_subjects_get","security":[{"APIKeyHeader":[]},{"HTTPBearer":[]}],"parameters":[{"name":"organization-id","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Organization-Id"}},{"name":"x-user-id","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"X-User-Id"}},{"name":"timezone","in":"header","required":false,"schema":{"type":"string","default":"UTC","title":"Timezone"}},{"name":"x-actor-email","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"X-Actor-Email"}},{"name":"x-request-source","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"X-Request-Source"}},{"name":"x-operation-id","in":"header","required":false,"schema":{"anyOf":[{"type":"string","maxLength":36},{"type":"null"}],"title":"X-Operation-Id"}},{"name":"x-commit-message","in":"header","required":false,"schema":{"anyOf":[{"type":"string","minLength":1},{"type":"null"}],"title":"X-Commit-Message"}},{"name":"x-confirmation-id","in":"header","required":false,"schema":{"anyOf":[{"type":"string","maxLength":36},{"type":"null"}],"title":"X-Confirmation-Id"}},{"name":"x-chat-id","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"X-Chat-Id"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"title":"Response List Subjects Evals Subjects Get"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/evals/resolve-subjects":{"post":{"tags":["authenticated","evals"],"summary":"Resolve Subjects","operationId":"resolve_subjects_evals_resolve_subjects_post","security":[{"APIKeyHeader":[]},{"HTTPBearer":[]}],"parameters":[{"name":"organization-id","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Organization-Id"}},{"name":"x-user-id","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"X-User-Id"}},{"name":"timezone","in":"header","required":false,"schema":{"type":"string","default":"UTC","title":"Timezone"}},{"name":"x-actor-email","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"X-Actor-Email"}},{"name":"x-request-source","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"X-Request-Source"}},{"name":"x-operation-id","in":"header","required":false,"schema":{"anyOf":[{"type":"string","maxLength":36},{"type":"null"}],"title":"X-Operation-Id"}},{"name":"x-commit-message","in":"header","required":false,"schema":{"anyOf":[{"type":"string","minLength":1},{"type":"null"}],"title":"X-Commit-Message"}},{"name":"x-confirmation-id","in":"header","required":false,"schema":{"anyOf":[{"type":"string","maxLength":36},{"type":"null"}],"title":"X-Confirmation-Id"}},{"name":"x-chat-id","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"X-Chat-Id"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"type":"object","additionalProperties":true,"title":"Body"}}}},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"title":"Response Resolve Subjects Evals Resolve Subjects Post"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/evals/run-batch-group":{"post":{"tags":["authenticated","evals"],"summary":"Run Batch Group","operationId":"run_batch_group_evals_run_batch_group_post","security":[{"APIKeyHeader":[]},{"HTTPBearer":[]}],"parameters":[{"name":"organization-id","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Organization-Id"}},{"name":"x-user-id","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"X-User-Id"}},{"name":"timezone","in":"header","required":false,"schema":{"type":"string","default":"UTC","title":"Timezone"}},{"name":"x-actor-email","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"X-Actor-Email"}},{"name":"x-request-source","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"X-Request-Source"}},{"name":"x-operation-id","in":"header","required":false,"schema":{"anyOf":[{"type":"string","maxLength":36},{"type":"null"}],"title":"X-Operation-Id"}},{"name":"x-commit-message","in":"header","required":false,"schema":{"anyOf":[{"type":"string","minLength":1},{"type":"null"}],"title":"X-Commit-Message"}},{"name":"x-confirmation-id","in":"header","required":false,"schema":{"anyOf":[{"type":"string","maxLength":36},{"type":"null"}],"title":"X-Confirmation-Id"}},{"name":"x-chat-id","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"X-Chat-Id"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"type":"object","additionalProperties":true,"title":"Body"}}}},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"title":"Response Run Batch Group Evals Run Batch Group Post"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/evals/groups":{"get":{"tags":["authenticated","evals"],"summary":"List Groups","operationId":"list_groups_evals_groups_get","security":[{"APIKeyHeader":[]},{"HTTPBearer":[]}],"parameters":[{"name":"status","in":"query","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Status"}},{"name":"organization_id","in":"query","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Organization Id"}},{"name":"limit","in":"query","required":false,"schema":{"type":"integer","maximum":500,"minimum":1,"default":100,"title":"Limit"}},{"name":"offset","in":"query","required":false,"schema":{"type":"integer","minimum":0,"default":0,"title":"Offset"}},{"name":"organization-id","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Organization-Id"}},{"name":"x-user-id","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"X-User-Id"}},{"name":"timezone","in":"header","required":false,"schema":{"type":"string","default":"UTC","title":"Timezone"}},{"name":"x-actor-email","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"X-Actor-Email"}},{"name":"x-request-source","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"X-Request-Source"}},{"name":"x-operation-id","in":"header","required":false,"schema":{"anyOf":[{"type":"string","maxLength":36},{"type":"null"}],"title":"X-Operation-Id"}},{"name":"x-commit-message","in":"header","required":false,"schema":{"anyOf":[{"type":"string","minLength":1},{"type":"null"}],"title":"X-Commit-Message"}},{"name":"x-confirmation-id","in":"header","required":false,"schema":{"anyOf":[{"type":"string","maxLength":36},{"type":"null"}],"title":"X-Confirmation-Id"}},{"name":"x-chat-id","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"X-Chat-Id"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"title":"Response List Groups Evals Groups Get"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/evals/groups/{group_id}":{"get":{"tags":["authenticated","evals"],"summary":"Read Group","operationId":"read_group_evals_groups__group_id__get","security":[{"APIKeyHeader":[]},{"HTTPBearer":[]}],"parameters":[{"name":"group_id","in":"path","required":true,"schema":{"type":"string","title":"Group Id"}},{"name":"organization-id","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Organization-Id"}},{"name":"x-user-id","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"X-User-Id"}},{"name":"timezone","in":"header","required":false,"schema":{"type":"string","default":"UTC","title":"Timezone"}},{"name":"x-actor-email","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"X-Actor-Email"}},{"name":"x-request-source","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"X-Request-Source"}},{"name":"x-operation-id","in":"header","required":false,"schema":{"anyOf":[{"type":"string","maxLength":36},{"type":"null"}],"title":"X-Operation-Id"}},{"name":"x-commit-message","in":"header","required":false,"schema":{"anyOf":[{"type":"string","minLength":1},{"type":"null"}],"title":"X-Commit-Message"}},{"name":"x-confirmation-id","in":"header","required":false,"schema":{"anyOf":[{"type":"string","maxLength":36},{"type":"null"}],"title":"X-Confirmation-Id"}},{"name":"x-chat-id","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"X-Chat-Id"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"title":"Response Read Group Evals Groups  Group Id  Get"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/evals/convert-sample":{"post":{"tags":["authenticated","evals"],"summary":"Convert Sample","operationId":"convert_sample_evals_convert_sample_post","security":[{"APIKeyHeader":[]},{"HTTPBearer":[]}],"parameters":[{"name":"organization-id","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Organization-Id"}},{"name":"x-user-id","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"X-User-Id"}},{"name":"timezone","in":"header","required":false,"schema":{"type":"string","default":"UTC","title":"Timezone"}},{"name":"x-actor-email","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"X-Actor-Email"}},{"name":"x-request-source","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"X-Request-Source"}},{"name":"x-operation-id","in":"header","required":false,"schema":{"anyOf":[{"type":"string","maxLength":36},{"type":"null"}],"title":"X-Operation-Id"}},{"name":"x-commit-message","in":"header","required":false,"schema":{"anyOf":[{"type":"string","minLength":1},{"type":"null"}],"title":"X-Commit-Message"}},{"name":"x-confirmation-id","in":"header","required":false,"schema":{"anyOf":[{"type":"string","maxLength":36},{"type":"null"}],"title":"X-Confirmation-Id"}},{"name":"x-chat-id","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"X-Chat-Id"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"type":"object","additionalProperties":true,"title":"Body"}}}},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"title":"Response Convert Sample Evals Convert Sample Post"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/evals/explain-failure":{"post":{"tags":["authenticated","evals"],"summary":"Explain Failure","description":"Call an LLM to explain why an eval failed.","operationId":"explain_failure_evals_explain_failure_post","security":[{"APIKeyHeader":[]},{"HTTPBearer":[]}],"parameters":[{"name":"organization-id","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Organization-Id"}},{"name":"x-user-id","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"X-User-Id"}},{"name":"timezone","in":"header","required":false,"schema":{"type":"string","default":"UTC","title":"Timezone"}},{"name":"x-actor-email","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"X-Actor-Email"}},{"name":"x-request-source","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"X-Request-Source"}},{"name":"x-operation-id","in":"header","required":false,"schema":{"anyOf":[{"type":"string","maxLength":36},{"type":"null"}],"title":"X-Operation-Id"}},{"name":"x-commit-message","in":"header","required":false,"schema":{"anyOf":[{"type":"string","minLength":1},{"type":"null"}],"title":"X-Commit-Message"}},{"name":"x-confirmation-id","in":"header","required":false,"schema":{"anyOf":[{"type":"string","maxLength":36},{"type":"null"}],"title":"X-Confirmation-Id"}},{"name":"x-chat-id","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"X-Chat-Id"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"type":"object","additionalProperties":true,"title":"Body"}}}},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"title":"Response Explain Failure Evals Explain Failure Post"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/evals/test-cases/{test_case_id}/links":{"put":{"tags":["authenticated","evals"],"summary":"Replace Test Case Links","operationId":"replace_test_case_links_evals_test_cases__test_case_id__links_put","security":[{"APIKeyHeader":[]},{"HTTPBearer":[]}],"parameters":[{"name":"test_case_id","in":"path","required":true,"schema":{"type":"string","title":"Test Case Id"}},{"name":"organization-id","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Organization-Id"}},{"name":"x-user-id","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"X-User-Id"}},{"name":"timezone","in":"header","required":false,"schema":{"type":"string","default":"UTC","title":"Timezone"}},{"name":"x-actor-email","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"X-Actor-Email"}},{"name":"x-request-source","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"X-Request-Source"}},{"name":"x-operation-id","in":"header","required":false,"schema":{"anyOf":[{"type":"string","maxLength":36},{"type":"null"}],"title":"X-Operation-Id"}},{"name":"x-commit-message","in":"header","required":false,"schema":{"anyOf":[{"type":"string","minLength":1},{"type":"null"}],"title":"X-Commit-Message"}},{"name":"x-confirmation-id","in":"header","required":false,"schema":{"anyOf":[{"type":"string","maxLength":36},{"type":"null"}],"title":"X-Confirmation-Id"}},{"name":"x-chat-id","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"X-Chat-Id"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"type":"object","additionalProperties":true,"title":"Body"}}}},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"title":"Response Replace Test Case Links Evals Test Cases  Test Case Id  Links Put"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}},"get":{"tags":["authenticated","evals"],"summary":"Read Test Case Links","operationId":"read_test_case_links_evals_test_cases__test_case_id__links_get","security":[{"APIKeyHeader":[]},{"HTTPBearer":[]}],"parameters":[{"name":"test_case_id","in":"path","required":true,"schema":{"type":"string","title":"Test Case Id"}},{"name":"organization-id","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Organization-Id"}},{"name":"x-user-id","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"X-User-Id"}},{"name":"timezone","in":"header","required":false,"schema":{"type":"string","default":"UTC","title":"Timezone"}},{"name":"x-actor-email","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"X-Actor-Email"}},{"name":"x-request-source","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"X-Request-Source"}},{"name":"x-operation-id","in":"header","required":false,"schema":{"anyOf":[{"type":"string","maxLength":36},{"type":"null"}],"title":"X-Operation-Id"}},{"name":"x-commit-message","in":"header","required":false,"schema":{"anyOf":[{"type":"string","minLength":1},{"type":"null"}],"title":"X-Commit-Message"}},{"name":"x-confirmation-id","in":"header","required":false,"schema":{"anyOf":[{"type":"string","maxLength":36},{"type":"null"}],"title":"X-Confirmation-Id"}},{"name":"x-chat-id","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"X-Chat-Id"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"title":"Response Read Test Case Links Evals Test Cases  Test Case Id  Links Get"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/evals/objectives/{objective_id}/test-cases":{"get":{"tags":["authenticated","evals"],"summary":"List Test Cases For Objective","operationId":"list_test_cases_for_objective_evals_objectives__objective_id__test_cases_get","security":[{"APIKeyHeader":[]},{"HTTPBearer":[]}],"parameters":[{"name":"objective_id","in":"path","required":true,"schema":{"type":"string","title":"Objective Id"}},{"name":"organization-id","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Organization-Id"}},{"name":"x-user-id","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"X-User-Id"}},{"name":"timezone","in":"header","required":false,"schema":{"type":"string","default":"UTC","title":"Timezone"}},{"name":"x-actor-email","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"X-Actor-Email"}},{"name":"x-request-source","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"X-Request-Source"}},{"name":"x-operation-id","in":"header","required":false,"schema":{"anyOf":[{"type":"string","maxLength":36},{"type":"null"}],"title":"X-Operation-Id"}},{"name":"x-commit-message","in":"header","required":false,"schema":{"anyOf":[{"type":"string","minLength":1},{"type":"null"}],"title":"X-Commit-Message"}},{"name":"x-confirmation-id","in":"header","required":false,"schema":{"anyOf":[{"type":"string","maxLength":36},{"type":"null"}],"title":"X-Confirmation-Id"}},{"name":"x-chat-id","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"X-Chat-Id"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"title":"Response List Test Cases For Objective Evals Objectives  Objective Id  Test Cases Get"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/evals/tool-modules/{tool_module_id}/test-cases":{"get":{"tags":["authenticated","evals"],"summary":"List Test Cases For Tool Module","operationId":"list_test_cases_for_tool_module_evals_tool_modules__tool_module_id__test_cases_get","security":[{"APIKeyHeader":[]},{"HTTPBearer":[]}],"parameters":[{"name":"tool_module_id","in":"path","required":true,"schema":{"type":"string","title":"Tool Module Id"}},{"name":"organization-id","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Organization-Id"}},{"name":"x-user-id","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"X-User-Id"}},{"name":"timezone","in":"header","required":false,"schema":{"type":"string","default":"UTC","title":"Timezone"}},{"name":"x-actor-email","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"X-Actor-Email"}},{"name":"x-request-source","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"X-Request-Source"}},{"name":"x-operation-id","in":"header","required":false,"schema":{"anyOf":[{"type":"string","maxLength":36},{"type":"null"}],"title":"X-Operation-Id"}},{"name":"x-commit-message","in":"header","required":false,"schema":{"anyOf":[{"type":"string","minLength":1},{"type":"null"}],"title":"X-Commit-Message"}},{"name":"x-confirmation-id","in":"header","required":false,"schema":{"anyOf":[{"type":"string","maxLength":36},{"type":"null"}],"title":"X-Confirmation-Id"}},{"name":"x-chat-id","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"X-Chat-Id"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"title":"Response List Test Cases For Tool Module Evals Tool Modules  Tool Module Id  Test Cases Get"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/evals/agents/{agent_id}/eval-preview":{"get":{"tags":["authenticated","evals"],"summary":"Agent Eval Preview","operationId":"agent_eval_preview_evals_agents__agent_id__eval_preview_get","security":[{"APIKeyHeader":[]},{"HTTPBearer":[]}],"parameters":[{"name":"agent_id","in":"path","required":true,"schema":{"type":"string","title":"Agent Id"}},{"name":"organization-id","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Organization-Id"}},{"name":"x-user-id","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"X-User-Id"}},{"name":"timezone","in":"header","required":false,"schema":{"type":"string","default":"UTC","title":"Timezone"}},{"name":"x-actor-email","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"X-Actor-Email"}},{"name":"x-request-source","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"X-Request-Source"}},{"name":"x-operation-id","in":"header","required":false,"schema":{"anyOf":[{"type":"string","maxLength":36},{"type":"null"}],"title":"X-Operation-Id"}},{"name":"x-commit-message","in":"header","required":false,"schema":{"anyOf":[{"type":"string","minLength":1},{"type":"null"}],"title":"X-Commit-Message"}},{"name":"x-confirmation-id","in":"header","required":false,"schema":{"anyOf":[{"type":"string","maxLength":36},{"type":"null"}],"title":"X-Confirmation-Id"}},{"name":"x-chat-id","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"X-Chat-Id"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"title":"Response Agent Eval Preview Evals Agents  Agent Id  Eval Preview Get"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/evals/tool-return-examples":{"get":{"tags":["authenticated","evals"],"summary":"Tool Return Examples","description":"Extract example tool return values from real engagement events for an agent.\n\nScans recent engagement LLM response events that contain tool-return parts\nand returns one example per tool name.","operationId":"tool_return_examples_evals_tool_return_examples_get","security":[{"APIKeyHeader":[]},{"HTTPBearer":[]}],"parameters":[{"name":"agent_id","in":"query","required":true,"schema":{"type":"string","title":"Agent Id"}},{"name":"organization-id","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Organization-Id"}},{"name":"x-user-id","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"X-User-Id"}},{"name":"timezone","in":"header","required":false,"schema":{"type":"string","default":"UTC","title":"Timezone"}},{"name":"x-actor-email","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"X-Actor-Email"}},{"name":"x-request-source","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"X-Request-Source"}},{"name":"x-operation-id","in":"header","required":false,"schema":{"anyOf":[{"type":"string","maxLength":36},{"type":"null"}],"title":"X-Operation-Id"}},{"name":"x-commit-message","in":"header","required":false,"schema":{"anyOf":[{"type":"string","minLength":1},{"type":"null"}],"title":"X-Commit-Message"}},{"name":"x-confirmation-id","in":"header","required":false,"schema":{"anyOf":[{"type":"string","maxLength":36},{"type":"null"}],"title":"X-Confirmation-Id"}},{"name":"x-chat-id","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"X-Chat-Id"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"title":"Response Tool Return Examples Evals Tool Return Examples Get"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/evals/prompt-sweep":{"post":{"tags":["authenticated","evals"],"summary":"Create Prompt Sweep Proxy","operationId":"create_prompt_sweep_proxy_evals_prompt_sweep_post","security":[{"APIKeyHeader":[]},{"HTTPBearer":[]}],"parameters":[{"name":"organization-id","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Organization-Id"}},{"name":"x-user-id","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"X-User-Id"}},{"name":"timezone","in":"header","required":false,"schema":{"type":"string","default":"UTC","title":"Timezone"}},{"name":"x-actor-email","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"X-Actor-Email"}},{"name":"x-request-source","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"X-Request-Source"}},{"name":"x-operation-id","in":"header","required":false,"schema":{"anyOf":[{"type":"string","maxLength":36},{"type":"null"}],"title":"X-Operation-Id"}},{"name":"x-commit-message","in":"header","required":false,"schema":{"anyOf":[{"type":"string","minLength":1},{"type":"null"}],"title":"X-Commit-Message"}},{"name":"x-confirmation-id","in":"header","required":false,"schema":{"anyOf":[{"type":"string","maxLength":36},{"type":"null"}],"title":"X-Confirmation-Id"}},{"name":"x-chat-id","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"X-Chat-Id"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"type":"object","additionalProperties":true,"title":"Body"}}}},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"title":"Response Create Prompt Sweep Proxy Evals Prompt Sweep Post"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}},"get":{"tags":["authenticated","evals"],"summary":"List Prompt Sweeps Proxy","operationId":"list_prompt_sweeps_proxy_evals_prompt_sweep_get","security":[{"APIKeyHeader":[]},{"HTTPBearer":[]}],"parameters":[{"name":"organization_id","in":"query","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Organization Id"}},{"name":"limit","in":"query","required":false,"schema":{"type":"integer","default":50,"title":"Limit"}},{"name":"organization-id","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Organization-Id"}},{"name":"x-user-id","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"X-User-Id"}},{"name":"timezone","in":"header","required":false,"schema":{"type":"string","default":"UTC","title":"Timezone"}},{"name":"x-actor-email","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"X-Actor-Email"}},{"name":"x-request-source","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"X-Request-Source"}},{"name":"x-operation-id","in":"header","required":false,"schema":{"anyOf":[{"type":"string","maxLength":36},{"type":"null"}],"title":"X-Operation-Id"}},{"name":"x-commit-message","in":"header","required":false,"schema":{"anyOf":[{"type":"string","minLength":1},{"type":"null"}],"title":"X-Commit-Message"}},{"name":"x-confirmation-id","in":"header","required":false,"schema":{"anyOf":[{"type":"string","maxLength":36},{"type":"null"}],"title":"X-Confirmation-Id"}},{"name":"x-chat-id","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"X-Chat-Id"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"title":"Response List Prompt Sweeps Proxy Evals Prompt Sweep Get"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/evals/prompt-sweep/{group_id}":{"get":{"tags":["authenticated","evals"],"summary":"Get Prompt Sweep Proxy","operationId":"get_prompt_sweep_proxy_evals_prompt_sweep__group_id__get","security":[{"APIKeyHeader":[]},{"HTTPBearer":[]}],"parameters":[{"name":"group_id","in":"path","required":true,"schema":{"type":"string","title":"Group Id"}},{"name":"organization_id","in":"query","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Organization Id"}},{"name":"organization-id","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Organization-Id"}},{"name":"x-user-id","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"X-User-Id"}},{"name":"timezone","in":"header","required":false,"schema":{"type":"string","default":"UTC","title":"Timezone"}},{"name":"x-actor-email","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"X-Actor-Email"}},{"name":"x-request-source","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"X-Request-Source"}},{"name":"x-operation-id","in":"header","required":false,"schema":{"anyOf":[{"type":"string","maxLength":36},{"type":"null"}],"title":"X-Operation-Id"}},{"name":"x-commit-message","in":"header","required":false,"schema":{"anyOf":[{"type":"string","minLength":1},{"type":"null"}],"title":"X-Commit-Message"}},{"name":"x-confirmation-id","in":"header","required":false,"schema":{"anyOf":[{"type":"string","maxLength":36},{"type":"null"}],"title":"X-Confirmation-Id"}},{"name":"x-chat-id","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"X-Chat-Id"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"title":"Response Get Prompt Sweep Proxy Evals Prompt Sweep  Group Id  Get"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/gateway/{service_name}/{sub_path}":{"get":{"tags":["authenticated","gateway"],"summary":"Get Gateway","operationId":"get_gateway_gateway__service_name___sub_path__get","security":[{"APIKeyHeader":[]},{"HTTPBearer":[]}],"parameters":[{"name":"service_name","in":"path","required":true,"schema":{"type":"string","title":"Service Name"}},{"name":"sub_path","in":"path","required":true,"schema":{"type":"string","title":"Sub Path"}},{"name":"organization-id","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Organization-Id"}},{"name":"x-user-id","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"X-User-Id"}},{"name":"timezone","in":"header","required":false,"schema":{"type":"string","default":"UTC","title":"Timezone"}},{"name":"x-actor-email","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"X-Actor-Email"}},{"name":"x-request-source","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"X-Request-Source"}},{"name":"x-operation-id","in":"header","required":false,"schema":{"anyOf":[{"type":"string","maxLength":36},{"type":"null"}],"title":"X-Operation-Id"}},{"name":"x-commit-message","in":"header","required":false,"schema":{"anyOf":[{"type":"string","minLength":1},{"type":"null"}],"title":"X-Commit-Message"}},{"name":"x-confirmation-id","in":"header","required":false,"schema":{"anyOf":[{"type":"string","maxLength":36},{"type":"null"}],"title":"X-Confirmation-Id"}},{"name":"x-chat-id","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"X-Chat-Id"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}},"post":{"tags":["authenticated","gateway"],"summary":"Post Gateway","operationId":"post_gateway_gateway__service_name___sub_path__post","security":[{"APIKeyHeader":[]},{"HTTPBearer":[]}],"parameters":[{"name":"service_name","in":"path","required":true,"schema":{"type":"string","title":"Service Name"}},{"name":"sub_path","in":"path","required":true,"schema":{"type":"string","title":"Sub Path"}},{"name":"organization-id","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Organization-Id"}},{"name":"x-user-id","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"X-User-Id"}},{"name":"timezone","in":"header","required":false,"schema":{"type":"string","default":"UTC","title":"Timezone"}},{"name":"x-actor-email","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"X-Actor-Email"}},{"name":"x-request-source","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"X-Request-Source"}},{"name":"x-operation-id","in":"header","required":false,"schema":{"anyOf":[{"type":"string","maxLength":36},{"type":"null"}],"title":"X-Operation-Id"}},{"name":"x-commit-message","in":"header","required":false,"schema":{"anyOf":[{"type":"string","minLength":1},{"type":"null"}],"title":"X-Commit-Message"}},{"name":"x-confirmation-id","in":"header","required":false,"schema":{"anyOf":[{"type":"string","maxLength":36},{"type":"null"}],"title":"X-Confirmation-Id"}},{"name":"x-chat-id","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"X-Chat-Id"}}],"requestBody":{"content":{"application/json":{"schema":{"anyOf":[{"type":"object","additionalProperties":true},{"type":"null"}],"title":"Body"}}}},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}},"put":{"tags":["authenticated","gateway"],"summary":"Put Gateway","operationId":"put_gateway_gateway__service_name___sub_path__put","security":[{"APIKeyHeader":[]},{"HTTPBearer":[]}],"parameters":[{"name":"service_name","in":"path","required":true,"schema":{"type":"string","title":"Service Name"}},{"name":"sub_path","in":"path","required":true,"schema":{"type":"string","title":"Sub Path"}},{"name":"organization-id","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Organization-Id"}},{"name":"x-user-id","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"X-User-Id"}},{"name":"timezone","in":"header","required":false,"schema":{"type":"string","default":"UTC","title":"Timezone"}},{"name":"x-actor-email","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"X-Actor-Email"}},{"name":"x-request-source","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"X-Request-Source"}},{"name":"x-operation-id","in":"header","required":false,"schema":{"anyOf":[{"type":"string","maxLength":36},{"type":"null"}],"title":"X-Operation-Id"}},{"name":"x-commit-message","in":"header","required":false,"schema":{"anyOf":[{"type":"string","minLength":1},{"type":"null"}],"title":"X-Commit-Message"}},{"name":"x-confirmation-id","in":"header","required":false,"schema":{"anyOf":[{"type":"string","maxLength":36},{"type":"null"}],"title":"X-Confirmation-Id"}},{"name":"x-chat-id","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"X-Chat-Id"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"type":"object","additionalProperties":true,"title":"Body"}}}},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}},"patch":{"tags":["authenticated","gateway"],"summary":"Patch Gateway","operationId":"patch_gateway_gateway__service_name___sub_path__patch","security":[{"APIKeyHeader":[]},{"HTTPBearer":[]}],"parameters":[{"name":"service_name","in":"path","required":true,"schema":{"type":"string","title":"Service Name"}},{"name":"sub_path","in":"path","required":true,"schema":{"type":"string","title":"Sub Path"}},{"name":"organization-id","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Organization-Id"}},{"name":"x-user-id","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"X-User-Id"}},{"name":"timezone","in":"header","required":false,"schema":{"type":"string","default":"UTC","title":"Timezone"}},{"name":"x-actor-email","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"X-Actor-Email"}},{"name":"x-request-source","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"X-Request-Source"}},{"name":"x-operation-id","in":"header","required":false,"schema":{"anyOf":[{"type":"string","maxLength":36},{"type":"null"}],"title":"X-Operation-Id"}},{"name":"x-commit-message","in":"header","required":false,"schema":{"anyOf":[{"type":"string","minLength":1},{"type":"null"}],"title":"X-Commit-Message"}},{"name":"x-confirmation-id","in":"header","required":false,"schema":{"anyOf":[{"type":"string","maxLength":36},{"type":"null"}],"title":"X-Confirmation-Id"}},{"name":"x-chat-id","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"X-Chat-Id"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"type":"object","additionalProperties":true,"title":"Body"}}}},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}},"delete":{"tags":["authenticated","gateway"],"summary":"Delete Gateway","operationId":"delete_gateway_gateway__service_name___sub_path__delete","security":[{"APIKeyHeader":[]},{"HTTPBearer":[]}],"parameters":[{"name":"service_name","in":"path","required":true,"schema":{"type":"string","title":"Service Name"}},{"name":"sub_path","in":"path","required":true,"schema":{"type":"string","title":"Sub Path"}},{"name":"organization-id","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Organization-Id"}},{"name":"x-user-id","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"X-User-Id"}},{"name":"timezone","in":"header","required":false,"schema":{"type":"string","default":"UTC","title":"Timezone"}},{"name":"x-actor-email","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"X-Actor-Email"}},{"name":"x-request-source","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"X-Request-Source"}},{"name":"x-operation-id","in":"header","required":false,"schema":{"anyOf":[{"type":"string","maxLength":36},{"type":"null"}],"title":"X-Operation-Id"}},{"name":"x-commit-message","in":"header","required":false,"schema":{"anyOf":[{"type":"string","minLength":1},{"type":"null"}],"title":"X-Commit-Message"}},{"name":"x-confirmation-id","in":"header","required":false,"schema":{"anyOf":[{"type":"string","maxLength":36},{"type":"null"}],"title":"X-Confirmation-Id"}},{"name":"x-chat-id","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"X-Chat-Id"}}],"requestBody":{"content":{"application/json":{"schema":{"anyOf":[{"type":"object","additionalProperties":true},{"type":"null"}],"title":"Body"}}}},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/organizations/{organization_id}":{"get":{"tags":["authenticated","organizations"],"summary":"Read Organization","operationId":"read_organization_organizations__organization_id__get","security":[{"APIKeyHeader":[]},{"HTTPBearer":[]}],"parameters":[{"name":"organization_id","in":"path","required":true,"schema":{"type":"string","title":"Organization Id"}},{"name":"organization-id","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Organization-Id"}},{"name":"x-user-id","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"X-User-Id"}},{"name":"timezone","in":"header","required":false,"schema":{"type":"string","default":"UTC","title":"Timezone"}},{"name":"x-actor-email","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"X-Actor-Email"}},{"name":"x-request-source","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"X-Request-Source"}},{"name":"x-operation-id","in":"header","required":false,"schema":{"anyOf":[{"type":"string","maxLength":36},{"type":"null"}],"title":"X-Operation-Id"}},{"name":"x-commit-message","in":"header","required":false,"schema":{"anyOf":[{"type":"string","minLength":1},{"type":"null"}],"title":"X-Commit-Message"}},{"name":"x-confirmation-id","in":"header","required":false,"schema":{"anyOf":[{"type":"string","maxLength":36},{"type":"null"}],"title":"X-Confirmation-Id"}},{"name":"x-chat-id","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"X-Chat-Id"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/OrganizationRead"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}},"put":{"tags":["authenticated","organizations"],"summary":"Update Organization","operationId":"update_organization_organizations__organization_id__put","security":[{"APIKeyHeader":[]},{"HTTPBearer":[]}],"parameters":[{"name":"organization_id","in":"path","required":true,"schema":{"type":"string","title":"Organization Id"}},{"name":"organization-id","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Organization-Id"}},{"name":"x-user-id","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"X-User-Id"}},{"name":"timezone","in":"header","required":false,"schema":{"type":"string","default":"UTC","title":"Timezone"}},{"name":"x-actor-email","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"X-Actor-Email"}},{"name":"x-request-source","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"X-Request-Source"}},{"name":"x-operation-id","in":"header","required":false,"schema":{"anyOf":[{"type":"string","maxLength":36},{"type":"null"}],"title":"X-Operation-Id"}},{"name":"x-commit-message","in":"header","required":false,"schema":{"anyOf":[{"type":"string","minLength":1},{"type":"null"}],"title":"X-Commit-Message"}},{"name":"x-confirmation-id","in":"header","required":false,"schema":{"anyOf":[{"type":"string","maxLength":36},{"type":"null"}],"title":"X-Confirmation-Id"}},{"name":"x-chat-id","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"X-Chat-Id"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/UpdateOrganizationRequest"}}}},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/OrganizationRead"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/organizations/{organization_id}/service-titan-booking-sources":{"get":{"tags":["authenticated","organizations"],"summary":"List Service Titan Booking Sources","description":"Distinct `booking.source` values seen on this org's ServiceTitan mirror.\n\nPowers the form-fill source picker on `/admin/general` so operators can\nselect real values rather than guess at strings. Excludes soft-deleted\nand inactive bookings, and rows with `source IS NULL`. Aggregated over\nthe trailing `days` window (default 90) and capped at `limit` rows\n(default 25, ordered by count desc).","operationId":"list_service_titan_booking_sources_organizations__organization_id__service_titan_booking_sources_get","security":[{"APIKeyHeader":[]},{"HTTPBearer":[]}],"parameters":[{"name":"organization_id","in":"path","required":true,"schema":{"type":"string","title":"Organization Id"}},{"name":"days","in":"query","required":false,"schema":{"type":"integer","maximum":365,"minimum":1,"default":90,"title":"Days"}},{"name":"limit","in":"query","required":false,"schema":{"type":"integer","maximum":100,"minimum":1,"default":25,"title":"Limit"}},{"name":"organization-id","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Organization-Id"}},{"name":"x-user-id","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"X-User-Id"}},{"name":"timezone","in":"header","required":false,"schema":{"type":"string","default":"UTC","title":"Timezone"}},{"name":"x-actor-email","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"X-Actor-Email"}},{"name":"x-request-source","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"X-Request-Source"}},{"name":"x-operation-id","in":"header","required":false,"schema":{"anyOf":[{"type":"string","maxLength":36},{"type":"null"}],"title":"X-Operation-Id"}},{"name":"x-commit-message","in":"header","required":false,"schema":{"anyOf":[{"type":"string","minLength":1},{"type":"null"}],"title":"X-Commit-Message"}},{"name":"x-confirmation-id","in":"header","required":false,"schema":{"anyOf":[{"type":"string","maxLength":36},{"type":"null"}],"title":"X-Confirmation-Id"}},{"name":"x-chat-id","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"X-Chat-Id"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"type":"array","items":{"$ref":"#/components/schemas/ServiceTitanBookingSourceCount"},"title":"Response List Service Titan Booking Sources Organizations  Organization Id  Service Titan Booking Sources Get"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/provision/agent-for-campaign":{"post":{"tags":["authenticated","provision"],"summary":"Provision Agent For Campaign","description":"Create + bind a paused roster agent to an existing campaign (idempotent).","operationId":"provision_agent_for_campaign_provision_agent_for_campaign_post","security":[{"APIKeyHeader":[]},{"HTTPBearer":[]}],"parameters":[{"name":"organization-id","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Organization-Id"}},{"name":"x-user-id","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"X-User-Id"}},{"name":"timezone","in":"header","required":false,"schema":{"type":"string","default":"UTC","title":"Timezone"}},{"name":"x-actor-email","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"X-Actor-Email"}},{"name":"x-request-source","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"X-Request-Source"}},{"name":"x-operation-id","in":"header","required":false,"schema":{"anyOf":[{"type":"string","maxLength":36},{"type":"null"}],"title":"X-Operation-Id"}},{"name":"x-commit-message","in":"header","required":false,"schema":{"anyOf":[{"type":"string","minLength":1},{"type":"null"}],"title":"X-Commit-Message"}},{"name":"x-confirmation-id","in":"header","required":false,"schema":{"anyOf":[{"type":"string","maxLength":36},{"type":"null"}],"title":"X-Confirmation-Id"}},{"name":"x-chat-id","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"X-Chat-Id"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/AgentForCampaignRequest"}}}},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"type":"object","additionalProperties":true,"title":"Response Provision Agent For Campaign Provision Agent For Campaign Post"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/provision/{campaign_type}":{"post":{"tags":["authenticated","provision"],"summary":"Provision Campaign","description":"Ensure this org's campaign-gated path for campaign_type exists (idempotent).","operationId":"provision_campaign_provision__campaign_type__post","security":[{"APIKeyHeader":[]},{"HTTPBearer":[]}],"parameters":[{"name":"campaign_type","in":"path","required":true,"schema":{"type":"string","title":"Campaign Type"}},{"name":"organization-id","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Organization-Id"}},{"name":"x-user-id","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"X-User-Id"}},{"name":"timezone","in":"header","required":false,"schema":{"type":"string","default":"UTC","title":"Timezone"}},{"name":"x-actor-email","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"X-Actor-Email"}},{"name":"x-request-source","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"X-Request-Source"}},{"name":"x-operation-id","in":"header","required":false,"schema":{"anyOf":[{"type":"string","maxLength":36},{"type":"null"}],"title":"X-Operation-Id"}},{"name":"x-commit-message","in":"header","required":false,"schema":{"anyOf":[{"type":"string","minLength":1},{"type":"null"}],"title":"X-Commit-Message"}},{"name":"x-confirmation-id","in":"header","required":false,"schema":{"anyOf":[{"type":"string","maxLength":36},{"type":"null"}],"title":"X-Confirmation-Id"}},{"name":"x-chat-id","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"X-Chat-Id"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/api__routers__authenticated__provision__ProvisionRequest"}}}},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"type":"object","additionalProperties":true,"title":"Response Provision Campaign Provision  Campaign Type  Post"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/provision/preview/{campaign_type}":{"post":{"tags":["authenticated","provision"],"summary":"Preview Provision","description":"Preview what provisioning campaign_type for this org WOULD produce, without writing anything.","operationId":"preview_provision_provision_preview__campaign_type__post","security":[{"APIKeyHeader":[]},{"HTTPBearer":[]}],"parameters":[{"name":"campaign_type","in":"path","required":true,"schema":{"type":"string","title":"Campaign Type"}},{"name":"organization-id","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Organization-Id"}},{"name":"x-user-id","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"X-User-Id"}},{"name":"timezone","in":"header","required":false,"schema":{"type":"string","default":"UTC","title":"Timezone"}},{"name":"x-actor-email","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"X-Actor-Email"}},{"name":"x-request-source","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"X-Request-Source"}},{"name":"x-operation-id","in":"header","required":false,"schema":{"anyOf":[{"type":"string","maxLength":36},{"type":"null"}],"title":"X-Operation-Id"}},{"name":"x-commit-message","in":"header","required":false,"schema":{"anyOf":[{"type":"string","minLength":1},{"type":"null"}],"title":"X-Commit-Message"}},{"name":"x-confirmation-id","in":"header","required":false,"schema":{"anyOf":[{"type":"string","maxLength":36},{"type":"null"}],"title":"X-Confirmation-Id"}},{"name":"x-chat-id","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"X-Chat-Id"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/api__routers__authenticated__provision__ProvisionRequest"}}}},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"type":"object","additionalProperties":true,"title":"Response Preview Provision Provision Preview  Campaign Type  Post"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/users/me/bootstrap":{"get":{"tags":["authenticated","users"],"summary":"Read Me Bootstrap","description":"App-bootstrap payload — user identity + the slim list of orgs the\nuser has access to. Per-org chrome (role, features, ServiceTitan\nstatus, subscription, etc.) is fetched lazily via\n`GET /organizations/{id}` once the active org is known.","operationId":"read_me_bootstrap_users_me_bootstrap_get","security":[{"APIKeyHeader":[]},{"HTTPBearer":[]}],"parameters":[{"name":"organization-id","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Organization-Id"}},{"name":"x-user-id","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"X-User-Id"}},{"name":"timezone","in":"header","required":false,"schema":{"type":"string","default":"UTC","title":"Timezone"}},{"name":"x-actor-email","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"X-Actor-Email"}},{"name":"x-request-source","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"X-Request-Source"}},{"name":"x-operation-id","in":"header","required":false,"schema":{"anyOf":[{"type":"string","maxLength":36},{"type":"null"}],"title":"X-Operation-Id"}},{"name":"x-commit-message","in":"header","required":false,"schema":{"anyOf":[{"type":"string","minLength":1},{"type":"null"}],"title":"X-Commit-Message"}},{"name":"x-confirmation-id","in":"header","required":false,"schema":{"anyOf":[{"type":"string","maxLength":36},{"type":"null"}],"title":"X-Confirmation-Id"}},{"name":"x-chat-id","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"X-Chat-Id"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/UserBootstrap"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/users/me/sms-consent":{"put":{"tags":["authenticated","users"],"summary":"Update My Sms Consent","operationId":"update_my_sms_consent_users_me_sms_consent_put","security":[{"APIKeyHeader":[]},{"HTTPBearer":[]}],"parameters":[{"name":"organization-id","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Organization-Id"}},{"name":"x-user-id","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"X-User-Id"}},{"name":"timezone","in":"header","required":false,"schema":{"type":"string","default":"UTC","title":"Timezone"}},{"name":"x-actor-email","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"X-Actor-Email"}},{"name":"x-request-source","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"X-Request-Source"}},{"name":"x-operation-id","in":"header","required":false,"schema":{"anyOf":[{"type":"string","maxLength":36},{"type":"null"}],"title":"X-Operation-Id"}},{"name":"x-commit-message","in":"header","required":false,"schema":{"anyOf":[{"type":"string","minLength":1},{"type":"null"}],"title":"X-Commit-Message"}},{"name":"x-confirmation-id","in":"header","required":false,"schema":{"anyOf":[{"type":"string","maxLength":36},{"type":"null"}],"title":"X-Confirmation-Id"}},{"name":"x-chat-id","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"X-Chat-Id"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/UpdateSmsConsentRequest"}}}},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/UserRead"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/users/":{"get":{"tags":["authenticated","users"],"summary":"List Users","operationId":"list_users_users__get","security":[{"APIKeyHeader":[]},{"HTTPBearer":[]}],"parameters":[{"name":"limit","in":"query","required":false,"schema":{"anyOf":[{"type":"integer"},{"type":"null"}],"title":"Limit"}},{"name":"page","in":"query","required":false,"schema":{"anyOf":[{"type":"integer"},{"type":"null"}],"title":"Page"}},{"name":"search","in":"query","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Search"}},{"name":"organization-id","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Organization-Id"}},{"name":"x-user-id","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"X-User-Id"}},{"name":"timezone","in":"header","required":false,"schema":{"type":"string","default":"UTC","title":"Timezone"}},{"name":"x-actor-email","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"X-Actor-Email"}},{"name":"x-request-source","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"X-Request-Source"}},{"name":"x-operation-id","in":"header","required":false,"schema":{"anyOf":[{"type":"string","maxLength":36},{"type":"null"}],"title":"X-Operation-Id"}},{"name":"x-commit-message","in":"header","required":false,"schema":{"anyOf":[{"type":"string","minLength":1},{"type":"null"}],"title":"X-Commit-Message"}},{"name":"x-confirmation-id","in":"header","required":false,"schema":{"anyOf":[{"type":"string","maxLength":36},{"type":"null"}],"title":"X-Confirmation-Id"}},{"name":"x-chat-id","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"X-Chat-Id"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/UserPage"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}},"post":{"tags":["authenticated","users"],"summary":"Create User","operationId":"create_user_users__post","security":[{"APIKeyHeader":[]},{"HTTPBearer":[]}],"parameters":[{"name":"organization-id","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Organization-Id"}},{"name":"x-user-id","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"X-User-Id"}},{"name":"timezone","in":"header","required":false,"schema":{"type":"string","default":"UTC","title":"Timezone"}},{"name":"x-actor-email","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"X-Actor-Email"}},{"name":"x-request-source","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"X-Request-Source"}},{"name":"x-operation-id","in":"header","required":false,"schema":{"anyOf":[{"type":"string","maxLength":36},{"type":"null"}],"title":"X-Operation-Id"}},{"name":"x-commit-message","in":"header","required":false,"schema":{"anyOf":[{"type":"string","minLength":1},{"type":"null"}],"title":"X-Commit-Message"}},{"name":"x-confirmation-id","in":"header","required":false,"schema":{"anyOf":[{"type":"string","maxLength":36},{"type":"null"}],"title":"X-Confirmation-Id"}},{"name":"x-chat-id","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"X-Chat-Id"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/CreateUserRequest"}}}},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/UserRead"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/users/{user_id}":{"get":{"tags":["authenticated","users"],"summary":"Read User","operationId":"read_user_users__user_id__get","security":[{"APIKeyHeader":[]},{"HTTPBearer":[]}],"parameters":[{"name":"user_id","in":"path","required":true,"schema":{"type":"string","title":"User Id"}},{"name":"organization-id","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Organization-Id"}},{"name":"x-user-id","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"X-User-Id"}},{"name":"timezone","in":"header","required":false,"schema":{"type":"string","default":"UTC","title":"Timezone"}},{"name":"x-actor-email","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"X-Actor-Email"}},{"name":"x-request-source","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"X-Request-Source"}},{"name":"x-operation-id","in":"header","required":false,"schema":{"anyOf":[{"type":"string","maxLength":36},{"type":"null"}],"title":"X-Operation-Id"}},{"name":"x-commit-message","in":"header","required":false,"schema":{"anyOf":[{"type":"string","minLength":1},{"type":"null"}],"title":"X-Commit-Message"}},{"name":"x-confirmation-id","in":"header","required":false,"schema":{"anyOf":[{"type":"string","maxLength":36},{"type":"null"}],"title":"X-Confirmation-Id"}},{"name":"x-chat-id","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"X-Chat-Id"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/UserRead"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}},"put":{"tags":["authenticated","users"],"summary":"Update User","operationId":"update_user_users__user_id__put","security":[{"APIKeyHeader":[]},{"HTTPBearer":[]}],"parameters":[{"name":"user_id","in":"path","required":true,"schema":{"type":"string","title":"User Id"}},{"name":"include_organizations","in":"query","required":false,"schema":{"type":"boolean","default":true,"title":"Include Organizations"}},{"name":"organization-id","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Organization-Id"}},{"name":"x-user-id","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"X-User-Id"}},{"name":"timezone","in":"header","required":false,"schema":{"type":"string","default":"UTC","title":"Timezone"}},{"name":"x-actor-email","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"X-Actor-Email"}},{"name":"x-request-source","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"X-Request-Source"}},{"name":"x-operation-id","in":"header","required":false,"schema":{"anyOf":[{"type":"string","maxLength":36},{"type":"null"}],"title":"X-Operation-Id"}},{"name":"x-commit-message","in":"header","required":false,"schema":{"anyOf":[{"type":"string","minLength":1},{"type":"null"}],"title":"X-Commit-Message"}},{"name":"x-confirmation-id","in":"header","required":false,"schema":{"anyOf":[{"type":"string","maxLength":36},{"type":"null"}],"title":"X-Confirmation-Id"}},{"name":"x-chat-id","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"X-Chat-Id"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/UpdateUserRequest"}}}},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/UserRead"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/users/{user_id}/name":{"put":{"tags":["authenticated","users"],"summary":"Update User Name","operationId":"update_user_name_users__user_id__name_put","security":[{"APIKeyHeader":[]},{"HTTPBearer":[]}],"parameters":[{"name":"user_id","in":"path","required":true,"schema":{"type":"string","title":"User Id"}},{"name":"organization-id","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Organization-Id"}},{"name":"x-user-id","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"X-User-Id"}},{"name":"timezone","in":"header","required":false,"schema":{"type":"string","default":"UTC","title":"Timezone"}},{"name":"x-actor-email","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"X-Actor-Email"}},{"name":"x-request-source","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"X-Request-Source"}},{"name":"x-operation-id","in":"header","required":false,"schema":{"anyOf":[{"type":"string","maxLength":36},{"type":"null"}],"title":"X-Operation-Id"}},{"name":"x-commit-message","in":"header","required":false,"schema":{"anyOf":[{"type":"string","minLength":1},{"type":"null"}],"title":"X-Commit-Message"}},{"name":"x-confirmation-id","in":"header","required":false,"schema":{"anyOf":[{"type":"string","maxLength":36},{"type":"null"}],"title":"X-Confirmation-Id"}},{"name":"x-chat-id","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"X-Chat-Id"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/UpdateUserNameRequest"}}}},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/UserRead"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/users/{user_id}/phone-number":{"put":{"tags":["authenticated","users"],"summary":"Update User Phone Number","operationId":"update_user_phone_number_users__user_id__phone_number_put","security":[{"APIKeyHeader":[]},{"HTTPBearer":[]}],"parameters":[{"name":"user_id","in":"path","required":true,"schema":{"type":"string","title":"User Id"}},{"name":"organization-id","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Organization-Id"}},{"name":"x-user-id","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"X-User-Id"}},{"name":"timezone","in":"header","required":false,"schema":{"type":"string","default":"UTC","title":"Timezone"}},{"name":"x-actor-email","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"X-Actor-Email"}},{"name":"x-request-source","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"X-Request-Source"}},{"name":"x-operation-id","in":"header","required":false,"schema":{"anyOf":[{"type":"string","maxLength":36},{"type":"null"}],"title":"X-Operation-Id"}},{"name":"x-commit-message","in":"header","required":false,"schema":{"anyOf":[{"type":"string","minLength":1},{"type":"null"}],"title":"X-Commit-Message"}},{"name":"x-confirmation-id","in":"header","required":false,"schema":{"anyOf":[{"type":"string","maxLength":36},{"type":"null"}],"title":"X-Confirmation-Id"}},{"name":"x-chat-id","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"X-Chat-Id"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/UpdateUserPhoneNumberRequest"}}}},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/UserRead"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/users/{user_id}/organizations":{"post":{"tags":["authenticated","users"],"summary":"Add User To Organization","operationId":"add_user_to_organization_users__user_id__organizations_post","security":[{"APIKeyHeader":[]},{"HTTPBearer":[]}],"parameters":[{"name":"user_id","in":"path","required":true,"schema":{"type":"string","title":"User Id"}},{"name":"organization-id","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Organization-Id"}},{"name":"x-user-id","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"X-User-Id"}},{"name":"timezone","in":"header","required":false,"schema":{"type":"string","default":"UTC","title":"Timezone"}},{"name":"x-actor-email","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"X-Actor-Email"}},{"name":"x-request-source","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"X-Request-Source"}},{"name":"x-operation-id","in":"header","required":false,"schema":{"anyOf":[{"type":"string","maxLength":36},{"type":"null"}],"title":"X-Operation-Id"}},{"name":"x-commit-message","in":"header","required":false,"schema":{"anyOf":[{"type":"string","minLength":1},{"type":"null"}],"title":"X-Commit-Message"}},{"name":"x-confirmation-id","in":"header","required":false,"schema":{"anyOf":[{"type":"string","maxLength":36},{"type":"null"}],"title":"X-Confirmation-Id"}},{"name":"x-chat-id","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"X-Chat-Id"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/AddUserToOrganizationRequest"}}}},"responses":{"204":{"description":"Successful Response"},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/users/{user_id}/organizations/{organization_id}/roles/{role_id}":{"delete":{"tags":["authenticated","users"],"summary":"Remove User From Organization","operationId":"remove_user_from_organization_users__user_id__organizations__organization_id__roles__role_id__delete","security":[{"APIKeyHeader":[]},{"HTTPBearer":[]}],"parameters":[{"name":"user_id","in":"path","required":true,"schema":{"type":"string","title":"User Id"}},{"name":"organization_id","in":"path","required":true,"schema":{"type":"string","title":"Organization Id"}},{"name":"role_id","in":"path","required":true,"schema":{"type":"string","title":"Role Id"}},{"name":"organization-id","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Organization-Id"}},{"name":"x-user-id","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"X-User-Id"}},{"name":"timezone","in":"header","required":false,"schema":{"type":"string","default":"UTC","title":"Timezone"}},{"name":"x-actor-email","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"X-Actor-Email"}},{"name":"x-request-source","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"X-Request-Source"}},{"name":"x-operation-id","in":"header","required":false,"schema":{"anyOf":[{"type":"string","maxLength":36},{"type":"null"}],"title":"X-Operation-Id"}},{"name":"x-commit-message","in":"header","required":false,"schema":{"anyOf":[{"type":"string","minLength":1},{"type":"null"}],"title":"X-Commit-Message"}},{"name":"x-confirmation-id","in":"header","required":false,"schema":{"anyOf":[{"type":"string","maxLength":36},{"type":"null"}],"title":"X-Confirmation-Id"}},{"name":"x-chat-id","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"X-Chat-Id"}}],"responses":{"204":{"description":"Successful Response"},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/users/{user_id}/feature-roles":{"post":{"tags":["authenticated","users"],"summary":"Toggle Feature Role","operationId":"toggle_feature_role_users__user_id__feature_roles_post","security":[{"APIKeyHeader":[]},{"HTTPBearer":[]}],"parameters":[{"name":"user_id","in":"path","required":true,"schema":{"type":"string","title":"User Id"}},{"name":"organization-id","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Organization-Id"}},{"name":"x-user-id","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"X-User-Id"}},{"name":"timezone","in":"header","required":false,"schema":{"type":"string","default":"UTC","title":"Timezone"}},{"name":"x-actor-email","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"X-Actor-Email"}},{"name":"x-request-source","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"X-Request-Source"}},{"name":"x-operation-id","in":"header","required":false,"schema":{"anyOf":[{"type":"string","maxLength":36},{"type":"null"}],"title":"X-Operation-Id"}},{"name":"x-commit-message","in":"header","required":false,"schema":{"anyOf":[{"type":"string","minLength":1},{"type":"null"}],"title":"X-Commit-Message"}},{"name":"x-confirmation-id","in":"header","required":false,"schema":{"anyOf":[{"type":"string","maxLength":36},{"type":"null"}],"title":"X-Confirmation-Id"}},{"name":"x-chat-id","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"X-Chat-Id"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ToggleFeatureRoleRequest"}}}},"responses":{"204":{"description":"Successful Response"},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/users/{user_id}/organization-roles":{"post":{"tags":["authenticated","users"],"summary":"Toggle Organization Role","operationId":"toggle_organization_role_users__user_id__organization_roles_post","security":[{"APIKeyHeader":[]},{"HTTPBearer":[]}],"parameters":[{"name":"user_id","in":"path","required":true,"schema":{"type":"string","title":"User Id"}},{"name":"organization-id","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Organization-Id"}},{"name":"x-user-id","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"X-User-Id"}},{"name":"timezone","in":"header","required":false,"schema":{"type":"string","default":"UTC","title":"Timezone"}},{"name":"x-actor-email","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"X-Actor-Email"}},{"name":"x-request-source","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"X-Request-Source"}},{"name":"x-operation-id","in":"header","required":false,"schema":{"anyOf":[{"type":"string","maxLength":36},{"type":"null"}],"title":"X-Operation-Id"}},{"name":"x-commit-message","in":"header","required":false,"schema":{"anyOf":[{"type":"string","minLength":1},{"type":"null"}],"title":"X-Commit-Message"}},{"name":"x-confirmation-id","in":"header","required":false,"schema":{"anyOf":[{"type":"string","maxLength":36},{"type":"null"}],"title":"X-Confirmation-Id"}},{"name":"x-chat-id","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"X-Chat-Id"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ToggleOrganizationRoleRequest"}}}},"responses":{"204":{"description":"Successful Response"},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/users/{user_id}/magic-link":{"post":{"tags":["authenticated","users"],"summary":"Send User Magic Link","description":"Email a one-time login link to a member of an org the caller administers.\n\nStaff accounts are excluded: they sit in customer orgs for support, and an\norg admin must not be able to trigger auth mail to one.","operationId":"send_user_magic_link_users__user_id__magic_link_post","security":[{"APIKeyHeader":[]},{"HTTPBearer":[]}],"parameters":[{"name":"user_id","in":"path","required":true,"schema":{"type":"string","title":"User Id"}},{"name":"organization-id","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Organization-Id"}},{"name":"x-user-id","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"X-User-Id"}},{"name":"timezone","in":"header","required":false,"schema":{"type":"string","default":"UTC","title":"Timezone"}},{"name":"x-actor-email","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"X-Actor-Email"}},{"name":"x-request-source","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"X-Request-Source"}},{"name":"x-operation-id","in":"header","required":false,"schema":{"anyOf":[{"type":"string","maxLength":36},{"type":"null"}],"title":"X-Operation-Id"}},{"name":"x-commit-message","in":"header","required":false,"schema":{"anyOf":[{"type":"string","minLength":1},{"type":"null"}],"title":"X-Commit-Message"}},{"name":"x-confirmation-id","in":"header","required":false,"schema":{"anyOf":[{"type":"string","maxLength":36},{"type":"null"}],"title":"X-Confirmation-Id"}},{"name":"x-chat-id","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"X-Chat-Id"}}],"responses":{"204":{"description":"Successful Response"},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/user-preferences":{"get":{"tags":["authenticated","user-preferences"],"summary":"Read User Preferences","description":"Every preference resolved for the caller, definition defaults included.\n\nReturns defaults for keys the person has never set, so the client renders\nfrom one payload instead of duplicating the default table.","operationId":"read_user_preferences_user_preferences_get","security":[{"APIKeyHeader":[]},{"HTTPBearer":[]}],"parameters":[{"name":"category","in":"query","required":false,"schema":{"anyOf":[{"$ref":"#/components/schemas/PreferenceCategory"},{"type":"null"}],"title":"Category"}},{"name":"organization-id","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Organization-Id"}},{"name":"x-user-id","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"X-User-Id"}},{"name":"timezone","in":"header","required":false,"schema":{"type":"string","default":"UTC","title":"Timezone"}},{"name":"x-actor-email","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"X-Actor-Email"}},{"name":"x-request-source","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"X-Request-Source"}},{"name":"x-operation-id","in":"header","required":false,"schema":{"anyOf":[{"type":"string","maxLength":36},{"type":"null"}],"title":"X-Operation-Id"}},{"name":"x-commit-message","in":"header","required":false,"schema":{"anyOf":[{"type":"string","minLength":1},{"type":"null"}],"title":"X-Commit-Message"}},{"name":"x-confirmation-id","in":"header","required":false,"schema":{"anyOf":[{"type":"string","maxLength":36},{"type":"null"}],"title":"X-Confirmation-Id"}},{"name":"x-chat-id","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"X-Chat-Id"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"type":"object","additionalProperties":{"anyOf":[{"type":"string"},{"type":"integer"},{"type":"number"},{"type":"boolean"},{"type":"array","items":{"type":"string"}},{"type":"array","items":{"type":"integer"}},{"type":"object","additionalProperties":true},{"type":"array","items":{}},{"type":"null"}]},"title":"Response Read User Preferences User Preferences Get"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}},"put":{"tags":["authenticated","user-preferences"],"summary":"Upsert User Preferences","description":"Write one or more of the caller's preferences, then return the resolved set.","operationId":"upsert_user_preferences_user_preferences_put","security":[{"APIKeyHeader":[]},{"HTTPBearer":[]}],"parameters":[{"name":"organization-id","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Organization-Id"}},{"name":"x-user-id","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"X-User-Id"}},{"name":"timezone","in":"header","required":false,"schema":{"type":"string","default":"UTC","title":"Timezone"}},{"name":"x-actor-email","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"X-Actor-Email"}},{"name":"x-request-source","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"X-Request-Source"}},{"name":"x-operation-id","in":"header","required":false,"schema":{"anyOf":[{"type":"string","maxLength":36},{"type":"null"}],"title":"X-Operation-Id"}},{"name":"x-commit-message","in":"header","required":false,"schema":{"anyOf":[{"type":"string","minLength":1},{"type":"null"}],"title":"X-Commit-Message"}},{"name":"x-confirmation-id","in":"header","required":false,"schema":{"anyOf":[{"type":"string","maxLength":36},{"type":"null"}],"title":"X-Confirmation-Id"}},{"name":"x-chat-id","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"X-Chat-Id"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/UserPreferenceBulkUpsertRequest"}}}},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"type":"object","additionalProperties":{"anyOf":[{"type":"string"},{"type":"integer"},{"type":"number"},{"type":"boolean"},{"type":"array","items":{"type":"string"}},{"type":"array","items":{"type":"integer"}},{"type":"object","additionalProperties":true},{"type":"array","items":{}},{"type":"null"}]},"title":"Response Upsert User Preferences User Preferences Put"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/user-preferences/{key}":{"delete":{"tags":["authenticated","user-preferences"],"summary":"Delete User Preference","description":"Drop the caller's override so the key falls back to its default.","operationId":"delete_user_preference_user_preferences__key__delete","security":[{"APIKeyHeader":[]},{"HTTPBearer":[]}],"parameters":[{"name":"key","in":"path","required":true,"schema":{"type":"string","title":"Key"}},{"name":"organization-id","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Organization-Id"}},{"name":"x-user-id","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"X-User-Id"}},{"name":"timezone","in":"header","required":false,"schema":{"type":"string","default":"UTC","title":"Timezone"}},{"name":"x-actor-email","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"X-Actor-Email"}},{"name":"x-request-source","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"X-Request-Source"}},{"name":"x-operation-id","in":"header","required":false,"schema":{"anyOf":[{"type":"string","maxLength":36},{"type":"null"}],"title":"X-Operation-Id"}},{"name":"x-commit-message","in":"header","required":false,"schema":{"anyOf":[{"type":"string","minLength":1},{"type":"null"}],"title":"X-Commit-Message"}},{"name":"x-confirmation-id","in":"header","required":false,"schema":{"anyOf":[{"type":"string","maxLength":36},{"type":"null"}],"title":"X-Confirmation-Id"}},{"name":"x-chat-id","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"X-Chat-Id"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"type":"object","additionalProperties":{"anyOf":[{"type":"string"},{"type":"integer"},{"type":"number"},{"type":"boolean"},{"type":"array","items":{"type":"string"}},{"type":"array","items":{"type":"integer"}},{"type":"object","additionalProperties":true},{"type":"array","items":{}},{"type":"null"}]},"title":"Response Delete User Preference User Preferences  Key  Delete"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/integrations/web-widget/config":{"get":{"tags":["authenticated","integrations"],"summary":"Get Web Widget Config","operationId":"get_web_widget_config_integrations_web_widget_config_get","security":[{"APIKeyHeader":[]},{"HTTPBearer":[]}],"parameters":[{"name":"organization-id","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Organization-Id"}},{"name":"x-user-id","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"X-User-Id"}},{"name":"timezone","in":"header","required":false,"schema":{"type":"string","default":"UTC","title":"Timezone"}},{"name":"x-actor-email","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"X-Actor-Email"}},{"name":"x-request-source","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"X-Request-Source"}},{"name":"x-operation-id","in":"header","required":false,"schema":{"anyOf":[{"type":"string","maxLength":36},{"type":"null"}],"title":"X-Operation-Id"}},{"name":"x-commit-message","in":"header","required":false,"schema":{"anyOf":[{"type":"string","minLength":1},{"type":"null"}],"title":"X-Commit-Message"}},{"name":"x-confirmation-id","in":"header","required":false,"schema":{"anyOf":[{"type":"string","maxLength":36},{"type":"null"}],"title":"X-Confirmation-Id"}},{"name":"x-chat-id","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"X-Chat-Id"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/WidgetConfigAdminResponse"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}},"put":{"tags":["authenticated","integrations"],"summary":"Upsert Web Widget Config","operationId":"upsert_web_widget_config_integrations_web_widget_config_put","security":[{"APIKeyHeader":[]},{"HTTPBearer":[]}],"parameters":[{"name":"organization-id","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Organization-Id"}},{"name":"x-user-id","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"X-User-Id"}},{"name":"timezone","in":"header","required":false,"schema":{"type":"string","default":"UTC","title":"Timezone"}},{"name":"x-actor-email","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"X-Actor-Email"}},{"name":"x-request-source","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"X-Request-Source"}},{"name":"x-operation-id","in":"header","required":false,"schema":{"anyOf":[{"type":"string","maxLength":36},{"type":"null"}],"title":"X-Operation-Id"}},{"name":"x-commit-message","in":"header","required":false,"schema":{"anyOf":[{"type":"string","minLength":1},{"type":"null"}],"title":"X-Commit-Message"}},{"name":"x-confirmation-id","in":"header","required":false,"schema":{"anyOf":[{"type":"string","maxLength":36},{"type":"null"}],"title":"X-Confirmation-Id"}},{"name":"x-chat-id","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"X-Chat-Id"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/WidgetConfigUpsertRequest"}}}},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/WidgetConfigAdminResponse"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/integrations/web-widget/regions/organizations":{"get":{"tags":["authenticated","integrations"],"summary":"List Web Widget Region Organizations","operationId":"list_web_widget_region_organizations_integrations_web_widget_regions_organizations_get","security":[{"APIKeyHeader":[]},{"HTTPBearer":[]}],"parameters":[{"name":"organization-id","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Organization-Id"}},{"name":"x-user-id","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"X-User-Id"}},{"name":"timezone","in":"header","required":false,"schema":{"type":"string","default":"UTC","title":"Timezone"}},{"name":"x-actor-email","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"X-Actor-Email"}},{"name":"x-request-source","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"X-Request-Source"}},{"name":"x-operation-id","in":"header","required":false,"schema":{"anyOf":[{"type":"string","maxLength":36},{"type":"null"}],"title":"X-Operation-Id"}},{"name":"x-commit-message","in":"header","required":false,"schema":{"anyOf":[{"type":"string","minLength":1},{"type":"null"}],"title":"X-Commit-Message"}},{"name":"x-confirmation-id","in":"header","required":false,"schema":{"anyOf":[{"type":"string","maxLength":36},{"type":"null"}],"title":"X-Confirmation-Id"}},{"name":"x-chat-id","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"X-Chat-Id"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"type":"array","items":{"$ref":"#/components/schemas/AvailableOrganization"},"title":"Response List Web Widget Region Organizations Integrations Web Widget Regions Organizations Get"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/integrations/web-widget/parent-routing":{"get":{"tags":["authenticated","integrations"],"summary":"Get Web Widget Parent Routing","operationId":"get_web_widget_parent_routing_integrations_web_widget_parent_routing_get","security":[{"APIKeyHeader":[]},{"HTTPBearer":[]}],"parameters":[{"name":"organization-id","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Organization-Id"}},{"name":"x-user-id","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"X-User-Id"}},{"name":"timezone","in":"header","required":false,"schema":{"type":"string","default":"UTC","title":"Timezone"}},{"name":"x-actor-email","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"X-Actor-Email"}},{"name":"x-request-source","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"X-Request-Source"}},{"name":"x-operation-id","in":"header","required":false,"schema":{"anyOf":[{"type":"string","maxLength":36},{"type":"null"}],"title":"X-Operation-Id"}},{"name":"x-commit-message","in":"header","required":false,"schema":{"anyOf":[{"type":"string","minLength":1},{"type":"null"}],"title":"X-Commit-Message"}},{"name":"x-confirmation-id","in":"header","required":false,"schema":{"anyOf":[{"type":"string","maxLength":36},{"type":"null"}],"title":"X-Confirmation-Id"}},{"name":"x-chat-id","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"X-Chat-Id"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ParentRoutingStatus"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/integrations/web-widget/regions/available":{"get":{"tags":["authenticated","integrations"],"summary":"List Web Widget Available Regions","operationId":"list_web_widget_available_regions_integrations_web_widget_regions_available_get","security":[{"APIKeyHeader":[]},{"HTTPBearer":[]}],"parameters":[{"name":"organization-id","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Organization-Id"}},{"name":"x-user-id","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"X-User-Id"}},{"name":"timezone","in":"header","required":false,"schema":{"type":"string","default":"UTC","title":"Timezone"}},{"name":"x-actor-email","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"X-Actor-Email"}},{"name":"x-request-source","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"X-Request-Source"}},{"name":"x-operation-id","in":"header","required":false,"schema":{"anyOf":[{"type":"string","maxLength":36},{"type":"null"}],"title":"X-Operation-Id"}},{"name":"x-commit-message","in":"header","required":false,"schema":{"anyOf":[{"type":"string","minLength":1},{"type":"null"}],"title":"X-Commit-Message"}},{"name":"x-confirmation-id","in":"header","required":false,"schema":{"anyOf":[{"type":"string","maxLength":36},{"type":"null"}],"title":"X-Confirmation-Id"}},{"name":"x-chat-id","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"X-Chat-Id"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"type":"array","items":{"$ref":"#/components/schemas/AvailableRegion"},"title":"Response List Web Widget Available Regions Integrations Web Widget Regions Available Get"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/integrations/web-widget/regions":{"get":{"tags":["authenticated","integrations"],"summary":"List Web Widget Regions","operationId":"list_web_widget_regions_integrations_web_widget_regions_get","security":[{"APIKeyHeader":[]},{"HTTPBearer":[]}],"parameters":[{"name":"organization-id","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Organization-Id"}},{"name":"x-user-id","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"X-User-Id"}},{"name":"timezone","in":"header","required":false,"schema":{"type":"string","default":"UTC","title":"Timezone"}},{"name":"x-actor-email","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"X-Actor-Email"}},{"name":"x-request-source","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"X-Request-Source"}},{"name":"x-operation-id","in":"header","required":false,"schema":{"anyOf":[{"type":"string","maxLength":36},{"type":"null"}],"title":"X-Operation-Id"}},{"name":"x-commit-message","in":"header","required":false,"schema":{"anyOf":[{"type":"string","minLength":1},{"type":"null"}],"title":"X-Commit-Message"}},{"name":"x-confirmation-id","in":"header","required":false,"schema":{"anyOf":[{"type":"string","maxLength":36},{"type":"null"}],"title":"X-Confirmation-Id"}},{"name":"x-chat-id","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"X-Chat-Id"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"type":"array","items":{"$ref":"#/components/schemas/WidgetRegionLink"},"title":"Response List Web Widget Regions Integrations Web Widget Regions Get"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}},"put":{"tags":["authenticated","integrations"],"summary":"Set Web Widget Regions","operationId":"set_web_widget_regions_integrations_web_widget_regions_put","security":[{"APIKeyHeader":[]},{"HTTPBearer":[]}],"parameters":[{"name":"organization-id","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Organization-Id"}},{"name":"x-user-id","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"X-User-Id"}},{"name":"timezone","in":"header","required":false,"schema":{"type":"string","default":"UTC","title":"Timezone"}},{"name":"x-actor-email","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"X-Actor-Email"}},{"name":"x-request-source","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"X-Request-Source"}},{"name":"x-operation-id","in":"header","required":false,"schema":{"anyOf":[{"type":"string","maxLength":36},{"type":"null"}],"title":"X-Operation-Id"}},{"name":"x-commit-message","in":"header","required":false,"schema":{"anyOf":[{"type":"string","minLength":1},{"type":"null"}],"title":"X-Commit-Message"}},{"name":"x-confirmation-id","in":"header","required":false,"schema":{"anyOf":[{"type":"string","maxLength":36},{"type":"null"}],"title":"X-Confirmation-Id"}},{"name":"x-chat-id","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"X-Chat-Id"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/SetRegionLinksRequest"}}}},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"type":"array","items":{"$ref":"#/components/schemas/WidgetRegionLink"},"title":"Response Set Web Widget Regions Integrations Web Widget Regions Put"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}},"post":{"tags":["authenticated","integrations"],"summary":"Create Web Widget Region","operationId":"create_web_widget_region_integrations_web_widget_regions_post","security":[{"APIKeyHeader":[]},{"HTTPBearer":[]}],"parameters":[{"name":"organization-id","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Organization-Id"}},{"name":"x-user-id","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"X-User-Id"}},{"name":"timezone","in":"header","required":false,"schema":{"type":"string","default":"UTC","title":"Timezone"}},{"name":"x-actor-email","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"X-Actor-Email"}},{"name":"x-request-source","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"X-Request-Source"}},{"name":"x-operation-id","in":"header","required":false,"schema":{"anyOf":[{"type":"string","maxLength":36},{"type":"null"}],"title":"X-Operation-Id"}},{"name":"x-commit-message","in":"header","required":false,"schema":{"anyOf":[{"type":"string","minLength":1},{"type":"null"}],"title":"X-Commit-Message"}},{"name":"x-confirmation-id","in":"header","required":false,"schema":{"anyOf":[{"type":"string","maxLength":36},{"type":"null"}],"title":"X-Confirmation-Id"}},{"name":"x-chat-id","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"X-Chat-Id"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/CreateRegionRequest"}}}},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/WidgetRegionLink"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/customers/{customer_id}/synchronized-context":{"get":{"tags":["customers"],"summary":"Read Synchronized Customer Context","operationId":"read_synchronized_customer_context_customers__customer_id__synchronized_context_get","security":[{"APIKeyHeader":[]},{"HTTPBearer":[]}],"parameters":[{"name":"customer_id","in":"path","required":true,"schema":{"type":"integer","maximum":9223372036854775807,"exclusiveMinimum":0,"title":"Customer Id"}},{"name":"organization-id","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Organization-Id"}},{"name":"x-user-id","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"X-User-Id"}},{"name":"timezone","in":"header","required":false,"schema":{"type":"string","default":"UTC","title":"Timezone"}},{"name":"x-actor-email","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"X-Actor-Email"}},{"name":"x-request-source","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"X-Request-Source"}},{"name":"x-operation-id","in":"header","required":false,"schema":{"anyOf":[{"type":"string","maxLength":36},{"type":"null"}],"title":"X-Operation-Id"}},{"name":"x-commit-message","in":"header","required":false,"schema":{"anyOf":[{"type":"string","minLength":1},{"type":"null"}],"title":"X-Commit-Message"}},{"name":"x-confirmation-id","in":"header","required":false,"schema":{"anyOf":[{"type":"string","maxLength":36},{"type":"null"}],"title":"X-Confirmation-Id"}},{"name":"x-chat-id","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"X-Chat-Id"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/CustomerContextResponse"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/crm/contacts/{contact_id}/synchronized-context":{"get":{"tags":["crm"],"summary":"Read Contact Synchronized Context","operationId":"read_contact_synchronized_context_crm_contacts__contact_id__synchronized_context_get","security":[{"APIKeyHeader":[]},{"HTTPBearer":[]}],"parameters":[{"name":"contact_id","in":"path","required":true,"schema":{"type":"string","minLength":1,"maxLength":255,"title":"Contact Id"}},{"name":"organization-id","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Organization-Id"}},{"name":"x-user-id","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"X-User-Id"}},{"name":"timezone","in":"header","required":false,"schema":{"type":"string","default":"UTC","title":"Timezone"}},{"name":"x-actor-email","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"X-Actor-Email"}},{"name":"x-request-source","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"X-Request-Source"}},{"name":"x-operation-id","in":"header","required":false,"schema":{"anyOf":[{"type":"string","maxLength":36},{"type":"null"}],"title":"X-Operation-Id"}},{"name":"x-commit-message","in":"header","required":false,"schema":{"anyOf":[{"type":"string","minLength":1},{"type":"null"}],"title":"X-Commit-Message"}},{"name":"x-confirmation-id","in":"header","required":false,"schema":{"anyOf":[{"type":"string","maxLength":36},{"type":"null"}],"title":"X-Confirmation-Id"}},{"name":"x-chat-id","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"X-Chat-Id"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/CustomerContextResponse"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/crm/contacts/{contact_id}/calls/{call_id}/review":{"get":{"tags":["crm"],"summary":"Read Customer Call Review","operationId":"read_customer_call_review_crm_contacts__contact_id__calls__call_id__review_get","security":[{"APIKeyHeader":[]},{"HTTPBearer":[]}],"parameters":[{"name":"contact_id","in":"path","required":true,"schema":{"type":"string","minLength":1,"maxLength":255,"title":"Contact Id"}},{"name":"call_id","in":"path","required":true,"schema":{"type":"integer","maximum":9223372036854775807,"exclusiveMinimum":0,"title":"Call Id"}},{"name":"organization-id","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Organization-Id"}},{"name":"x-user-id","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"X-User-Id"}},{"name":"timezone","in":"header","required":false,"schema":{"type":"string","default":"UTC","title":"Timezone"}},{"name":"x-actor-email","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"X-Actor-Email"}},{"name":"x-request-source","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"X-Request-Source"}},{"name":"x-operation-id","in":"header","required":false,"schema":{"anyOf":[{"type":"string","maxLength":36},{"type":"null"}],"title":"X-Operation-Id"}},{"name":"x-commit-message","in":"header","required":false,"schema":{"anyOf":[{"type":"string","minLength":1},{"type":"null"}],"title":"X-Commit-Message"}},{"name":"x-confirmation-id","in":"header","required":false,"schema":{"anyOf":[{"type":"string","maxLength":36},{"type":"null"}],"title":"X-Confirmation-Id"}},{"name":"x-chat-id","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"X-Chat-Id"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/CustomerCallReviewPublic"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/crm/contacts/{contact_id}/calls/{call_id}/media/{kind}/recover":{"post":{"tags":["crm"],"summary":"Recover Customer Call Media","operationId":"recover_customer_call_media_crm_contacts__contact_id__calls__call_id__media__kind__recover_post","security":[{"APIKeyHeader":[]},{"HTTPBearer":[]}],"parameters":[{"name":"contact_id","in":"path","required":true,"schema":{"type":"string","minLength":1,"maxLength":255,"title":"Contact Id"}},{"name":"call_id","in":"path","required":true,"schema":{"type":"integer","maximum":9223372036854775807,"exclusiveMinimum":0,"title":"Call Id"}},{"name":"kind","in":"path","required":true,"schema":{"$ref":"#/components/schemas/CallMediaKind"}},{"name":"organization-id","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Organization-Id"}},{"name":"x-user-id","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"X-User-Id"}},{"name":"timezone","in":"header","required":false,"schema":{"type":"string","default":"UTC","title":"Timezone"}},{"name":"x-actor-email","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"X-Actor-Email"}},{"name":"x-request-source","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"X-Request-Source"}},{"name":"x-operation-id","in":"header","required":false,"schema":{"anyOf":[{"type":"string","maxLength":36},{"type":"null"}],"title":"X-Operation-Id"}},{"name":"x-commit-message","in":"header","required":false,"schema":{"anyOf":[{"type":"string","minLength":1},{"type":"null"}],"title":"X-Commit-Message"}},{"name":"x-confirmation-id","in":"header","required":false,"schema":{"anyOf":[{"type":"string","maxLength":36},{"type":"null"}],"title":"X-Confirmation-Id"}},{"name":"x-chat-id","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"X-Chat-Id"}}],"responses":{"202":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/CustomerCallMediaRecoveryPublic"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/crm/contacts/{contact_id}/calls/{call_id}/audio-url":{"get":{"tags":["crm"],"summary":"Read Customer Call Audio Url","operationId":"read_customer_call_audio_url_crm_contacts__contact_id__calls__call_id__audio_url_get","security":[{"APIKeyHeader":[]},{"HTTPBearer":[]}],"parameters":[{"name":"contact_id","in":"path","required":true,"schema":{"type":"string","minLength":1,"maxLength":255,"title":"Contact Id"}},{"name":"call_id","in":"path","required":true,"schema":{"type":"integer","maximum":9223372036854775807,"exclusiveMinimum":0,"title":"Call Id"}},{"name":"kind","in":"query","required":false,"schema":{"$ref":"#/components/schemas/CallMediaKind","default":"recording"}},{"name":"organization-id","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Organization-Id"}},{"name":"x-user-id","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"X-User-Id"}},{"name":"timezone","in":"header","required":false,"schema":{"type":"string","default":"UTC","title":"Timezone"}},{"name":"x-actor-email","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"X-Actor-Email"}},{"name":"x-request-source","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"X-Request-Source"}},{"name":"x-operation-id","in":"header","required":false,"schema":{"anyOf":[{"type":"string","maxLength":36},{"type":"null"}],"title":"X-Operation-Id"}},{"name":"x-commit-message","in":"header","required":false,"schema":{"anyOf":[{"type":"string","minLength":1},{"type":"null"}],"title":"X-Commit-Message"}},{"name":"x-confirmation-id","in":"header","required":false,"schema":{"anyOf":[{"type":"string","maxLength":36},{"type":"null"}],"title":"X-Confirmation-Id"}},{"name":"x-chat-id","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"X-Chat-Id"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/CustomerCallAudioAccessPublic"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/equipment-classifications/locations/{location_id}":{"get":{"tags":["equipment-classifications"],"summary":"Read Location","operationId":"read_location_equipment_classifications_locations__location_id__get","security":[{"APIKeyHeader":[]},{"HTTPBearer":[]}],"parameters":[{"name":"location_id","in":"path","required":true,"schema":{"type":"integer","exclusiveMinimum":0,"title":"Location Id"}},{"name":"classification_id","in":"query","required":false,"schema":{"anyOf":[{"type":"string","minLength":1,"maxLength":100},{"type":"null"}],"title":"Classification Id"}},{"name":"timezone","in":"header","required":false,"schema":{"type":"string","default":"UTC","title":"Timezone"}},{"name":"x-user-id","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"X-User-Id"}},{"name":"x-actor-email","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"X-Actor-Email"}},{"name":"x-request-source","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"X-Request-Source"}},{"name":"x-operation-id","in":"header","required":false,"schema":{"anyOf":[{"type":"string","maxLength":36},{"type":"null"}],"title":"X-Operation-Id"}},{"name":"x-commit-message","in":"header","required":false,"schema":{"anyOf":[{"type":"string","minLength":1},{"type":"null"}],"title":"X-Commit-Message"}},{"name":"x-confirmation-id","in":"header","required":false,"schema":{"anyOf":[{"type":"string","maxLength":36},{"type":"null"}],"title":"X-Confirmation-Id"}},{"name":"x-chat-id","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"X-Chat-Id"}},{"name":"organization-id","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Organization-Id"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/EquipmentClassificationResponse"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/knowledge/query":{"post":{"tags":["knowledge"],"summary":"Query Knowledge","operationId":"query_knowledge_knowledge_query_post","security":[{"APIKeyHeader":[]},{"HTTPBearer":[]}],"parameters":[{"name":"timezone","in":"header","required":false,"schema":{"type":"string","default":"UTC","title":"Timezone"}},{"name":"x-user-id","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"X-User-Id"}},{"name":"x-actor-email","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"X-Actor-Email"}},{"name":"x-request-source","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"X-Request-Source"}},{"name":"x-operation-id","in":"header","required":false,"schema":{"anyOf":[{"type":"string","maxLength":36},{"type":"null"}],"title":"X-Operation-Id"}},{"name":"x-commit-message","in":"header","required":false,"schema":{"anyOf":[{"type":"string","minLength":1},{"type":"null"}],"title":"X-Commit-Message"}},{"name":"x-confirmation-id","in":"header","required":false,"schema":{"anyOf":[{"type":"string","maxLength":36},{"type":"null"}],"title":"X-Confirmation-Id"}},{"name":"x-chat-id","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"X-Chat-Id"}},{"name":"organization-id","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Organization-Id"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/PropertyQuery"}}}},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/PropertyQueryResponse"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/knowledge/runs/{run_id}":{"get":{"tags":["knowledge"],"summary":"Read Run Provenance","operationId":"read_run_provenance_knowledge_runs__run_id__get","security":[{"APIKeyHeader":[]},{"HTTPBearer":[]}],"parameters":[{"name":"run_id","in":"path","required":true,"schema":{"type":"string","minLength":1,"maxLength":255,"title":"Run Id"}},{"name":"timezone","in":"header","required":false,"schema":{"type":"string","default":"UTC","title":"Timezone"}},{"name":"x-user-id","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"X-User-Id"}},{"name":"x-actor-email","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"X-Actor-Email"}},{"name":"x-request-source","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"X-Request-Source"}},{"name":"x-operation-id","in":"header","required":false,"schema":{"anyOf":[{"type":"string","maxLength":36},{"type":"null"}],"title":"X-Operation-Id"}},{"name":"x-commit-message","in":"header","required":false,"schema":{"anyOf":[{"type":"string","minLength":1},{"type":"null"}],"title":"X-Commit-Message"}},{"name":"x-confirmation-id","in":"header","required":false,"schema":{"anyOf":[{"type":"string","maxLength":36},{"type":"null"}],"title":"X-Confirmation-Id"}},{"name":"x-chat-id","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"X-Chat-Id"}},{"name":"organization-id","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Organization-Id"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/RunProvenanceResponse"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/knowledge/entity-types":{"get":{"tags":["knowledge"],"summary":"List Entity Types","operationId":"list_entity_types_knowledge_entity_types_get","security":[{"APIKeyHeader":[]},{"HTTPBearer":[]}],"parameters":[{"name":"timezone","in":"header","required":false,"schema":{"type":"string","default":"UTC","title":"Timezone"}},{"name":"x-user-id","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"X-User-Id"}},{"name":"x-actor-email","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"X-Actor-Email"}},{"name":"x-request-source","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"X-Request-Source"}},{"name":"x-operation-id","in":"header","required":false,"schema":{"anyOf":[{"type":"string","maxLength":36},{"type":"null"}],"title":"X-Operation-Id"}},{"name":"x-commit-message","in":"header","required":false,"schema":{"anyOf":[{"type":"string","minLength":1},{"type":"null"}],"title":"X-Commit-Message"}},{"name":"x-confirmation-id","in":"header","required":false,"schema":{"anyOf":[{"type":"string","maxLength":36},{"type":"null"}],"title":"X-Confirmation-Id"}},{"name":"x-chat-id","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"X-Chat-Id"}},{"name":"organization-id","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Organization-Id"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/EntityTypesResponse"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/knowledge/entity-types/{entity_type_id}/entities":{"get":{"tags":["knowledge"],"summary":"List Entities","operationId":"list_entities_knowledge_entity_types__entity_type_id__entities_get","security":[{"APIKeyHeader":[]},{"HTTPBearer":[]}],"parameters":[{"name":"entity_type_id","in":"path","required":true,"schema":{"type":"string","minLength":1,"maxLength":255,"title":"Entity Type Id"}},{"name":"search","in":"query","required":false,"schema":{"anyOf":[{"type":"string","maxLength":255},{"type":"null"}],"title":"Search"}},{"name":"needs_attention","in":"query","required":false,"schema":{"type":"boolean","default":false,"title":"Needs Attention"}},{"name":"limit","in":"query","required":false,"schema":{"type":"integer","maximum":100,"minimum":1,"default":50,"title":"Limit"}},{"name":"offset","in":"query","required":false,"schema":{"type":"integer","minimum":0,"default":0,"title":"Offset"}},{"name":"timezone","in":"header","required":false,"schema":{"type":"string","default":"UTC","title":"Timezone"}},{"name":"x-user-id","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"X-User-Id"}},{"name":"x-actor-email","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"X-Actor-Email"}},{"name":"x-request-source","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"X-Request-Source"}},{"name":"x-operation-id","in":"header","required":false,"schema":{"anyOf":[{"type":"string","maxLength":36},{"type":"null"}],"title":"X-Operation-Id"}},{"name":"x-commit-message","in":"header","required":false,"schema":{"anyOf":[{"type":"string","minLength":1},{"type":"null"}],"title":"X-Commit-Message"}},{"name":"x-confirmation-id","in":"header","required":false,"schema":{"anyOf":[{"type":"string","maxLength":36},{"type":"null"}],"title":"X-Confirmation-Id"}},{"name":"x-chat-id","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"X-Chat-Id"}},{"name":"organization-id","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Organization-Id"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/EntityPageResponse"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/knowledge/entity-types/{entity_type_id}/coverage":{"get":{"tags":["knowledge"],"summary":"Read Coverage","operationId":"read_coverage_knowledge_entity_types__entity_type_id__coverage_get","security":[{"APIKeyHeader":[]},{"HTTPBearer":[]}],"parameters":[{"name":"entity_type_id","in":"path","required":true,"schema":{"type":"string","minLength":1,"maxLength":255,"title":"Entity Type Id"}},{"name":"timezone","in":"header","required":false,"schema":{"type":"string","default":"UTC","title":"Timezone"}},{"name":"x-user-id","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"X-User-Id"}},{"name":"x-actor-email","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"X-Actor-Email"}},{"name":"x-request-source","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"X-Request-Source"}},{"name":"x-operation-id","in":"header","required":false,"schema":{"anyOf":[{"type":"string","maxLength":36},{"type":"null"}],"title":"X-Operation-Id"}},{"name":"x-commit-message","in":"header","required":false,"schema":{"anyOf":[{"type":"string","minLength":1},{"type":"null"}],"title":"X-Commit-Message"}},{"name":"x-confirmation-id","in":"header","required":false,"schema":{"anyOf":[{"type":"string","maxLength":36},{"type":"null"}],"title":"X-Confirmation-Id"}},{"name":"x-chat-id","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"X-Chat-Id"}},{"name":"organization-id","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Organization-Id"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/EntityTypeCoverageResponse"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/knowledge/review":{"get":{"tags":["knowledge"],"summary":"Read Review Queue","operationId":"read_review_queue_knowledge_review_get","security":[{"APIKeyHeader":[]},{"HTTPBearer":[]}],"parameters":[{"name":"timezone","in":"header","required":false,"schema":{"type":"string","default":"UTC","title":"Timezone"}},{"name":"x-user-id","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"X-User-Id"}},{"name":"x-actor-email","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"X-Actor-Email"}},{"name":"x-request-source","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"X-Request-Source"}},{"name":"x-operation-id","in":"header","required":false,"schema":{"anyOf":[{"type":"string","maxLength":36},{"type":"null"}],"title":"X-Operation-Id"}},{"name":"x-commit-message","in":"header","required":false,"schema":{"anyOf":[{"type":"string","minLength":1},{"type":"null"}],"title":"X-Commit-Message"}},{"name":"x-confirmation-id","in":"header","required":false,"schema":{"anyOf":[{"type":"string","maxLength":36},{"type":"null"}],"title":"X-Confirmation-Id"}},{"name":"x-chat-id","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"X-Chat-Id"}},{"name":"organization-id","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Organization-Id"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ReviewQueueResponse"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/knowledge/policies":{"get":{"tags":["knowledge"],"summary":"List Policies","operationId":"list_policies_knowledge_policies_get","security":[{"APIKeyHeader":[]},{"HTTPBearer":[]}],"parameters":[{"name":"timezone","in":"header","required":false,"schema":{"type":"string","default":"UTC","title":"Timezone"}},{"name":"x-user-id","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"X-User-Id"}},{"name":"x-actor-email","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"X-Actor-Email"}},{"name":"x-request-source","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"X-Request-Source"}},{"name":"x-operation-id","in":"header","required":false,"schema":{"anyOf":[{"type":"string","maxLength":36},{"type":"null"}],"title":"X-Operation-Id"}},{"name":"x-commit-message","in":"header","required":false,"schema":{"anyOf":[{"type":"string","minLength":1},{"type":"null"}],"title":"X-Commit-Message"}},{"name":"x-confirmation-id","in":"header","required":false,"schema":{"anyOf":[{"type":"string","maxLength":36},{"type":"null"}],"title":"X-Confirmation-Id"}},{"name":"x-chat-id","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"X-Chat-Id"}},{"name":"organization-id","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Organization-Id"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/PoliciesResponse"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/knowledge/entities":{"get":{"tags":["knowledge"],"summary":"Find Entity","operationId":"find_entity_knowledge_entities_get","security":[{"APIKeyHeader":[]},{"HTTPBearer":[]}],"parameters":[{"name":"identifier","in":"query","required":true,"schema":{"type":"string","minLength":1,"maxLength":255,"title":"Identifier"}},{"name":"value","in":"query","required":true,"schema":{"type":"string","minLength":1,"maxLength":255,"title":"Value"}},{"name":"timezone","in":"header","required":false,"schema":{"type":"string","default":"UTC","title":"Timezone"}},{"name":"x-user-id","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"X-User-Id"}},{"name":"x-actor-email","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"X-Actor-Email"}},{"name":"x-request-source","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"X-Request-Source"}},{"name":"x-operation-id","in":"header","required":false,"schema":{"anyOf":[{"type":"string","maxLength":36},{"type":"null"}],"title":"X-Operation-Id"}},{"name":"x-commit-message","in":"header","required":false,"schema":{"anyOf":[{"type":"string","minLength":1},{"type":"null"}],"title":"X-Commit-Message"}},{"name":"x-confirmation-id","in":"header","required":false,"schema":{"anyOf":[{"type":"string","maxLength":36},{"type":"null"}],"title":"X-Confirmation-Id"}},{"name":"x-chat-id","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"X-Chat-Id"}},{"name":"organization-id","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Organization-Id"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/EntityViewResponse"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/knowledge/entities/{entity_id}":{"get":{"tags":["knowledge"],"summary":"Read Entity","operationId":"read_entity_knowledge_entities__entity_id__get","security":[{"APIKeyHeader":[]},{"HTTPBearer":[]}],"parameters":[{"name":"entity_id","in":"path","required":true,"schema":{"type":"string","minLength":1,"maxLength":255,"title":"Entity Id"}},{"name":"timezone","in":"header","required":false,"schema":{"type":"string","default":"UTC","title":"Timezone"}},{"name":"x-user-id","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"X-User-Id"}},{"name":"x-actor-email","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"X-Actor-Email"}},{"name":"x-request-source","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"X-Request-Source"}},{"name":"x-operation-id","in":"header","required":false,"schema":{"anyOf":[{"type":"string","maxLength":36},{"type":"null"}],"title":"X-Operation-Id"}},{"name":"x-commit-message","in":"header","required":false,"schema":{"anyOf":[{"type":"string","minLength":1},{"type":"null"}],"title":"X-Commit-Message"}},{"name":"x-confirmation-id","in":"header","required":false,"schema":{"anyOf":[{"type":"string","maxLength":36},{"type":"null"}],"title":"X-Confirmation-Id"}},{"name":"x-chat-id","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"X-Chat-Id"}},{"name":"organization-id","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Organization-Id"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/EntityViewResponse"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/knowledge/entities/{entity_id}/history":{"get":{"tags":["knowledge"],"summary":"Read History","operationId":"read_history_knowledge_entities__entity_id__history_get","security":[{"APIKeyHeader":[]},{"HTTPBearer":[]}],"parameters":[{"name":"entity_id","in":"path","required":true,"schema":{"type":"string","minLength":1,"maxLength":255,"title":"Entity Id"}},{"name":"property_id","in":"query","required":true,"schema":{"type":"string","minLength":1,"maxLength":255,"title":"Property Id"}},{"name":"timezone","in":"header","required":false,"schema":{"type":"string","default":"UTC","title":"Timezone"}},{"name":"x-user-id","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"X-User-Id"}},{"name":"x-actor-email","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"X-Actor-Email"}},{"name":"x-request-source","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"X-Request-Source"}},{"name":"x-operation-id","in":"header","required":false,"schema":{"anyOf":[{"type":"string","maxLength":36},{"type":"null"}],"title":"X-Operation-Id"}},{"name":"x-commit-message","in":"header","required":false,"schema":{"anyOf":[{"type":"string","minLength":1},{"type":"null"}],"title":"X-Commit-Message"}},{"name":"x-confirmation-id","in":"header","required":false,"schema":{"anyOf":[{"type":"string","maxLength":36},{"type":"null"}],"title":"X-Confirmation-Id"}},{"name":"x-chat-id","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"X-Chat-Id"}},{"name":"organization-id","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Organization-Id"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/FactHistoryResponse"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/knowledge/entities/{entity_id}/corrections":{"post":{"tags":["knowledge"],"summary":"Correct Fact","operationId":"correct_fact_knowledge_entities__entity_id__corrections_post","security":[{"APIKeyHeader":[]},{"HTTPBearer":[]}],"parameters":[{"name":"entity_id","in":"path","required":true,"schema":{"type":"string","minLength":1,"maxLength":255,"title":"Entity Id"}},{"name":"timezone","in":"header","required":false,"schema":{"type":"string","default":"UTC","title":"Timezone"}},{"name":"x-user-id","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"X-User-Id"}},{"name":"x-actor-email","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"X-Actor-Email"}},{"name":"x-request-source","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"X-Request-Source"}},{"name":"x-operation-id","in":"header","required":false,"schema":{"anyOf":[{"type":"string","maxLength":36},{"type":"null"}],"title":"X-Operation-Id"}},{"name":"x-commit-message","in":"header","required":false,"schema":{"anyOf":[{"type":"string","minLength":1},{"type":"null"}],"title":"X-Commit-Message"}},{"name":"x-confirmation-id","in":"header","required":false,"schema":{"anyOf":[{"type":"string","maxLength":36},{"type":"null"}],"title":"X-Confirmation-Id"}},{"name":"x-chat-id","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"X-Chat-Id"}},{"name":"organization-id","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Organization-Id"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/FactCorrection"}}}},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/EntityViewResponse"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/knowledge/entities/{entity_id}/parts":{"post":{"tags":["knowledge"],"summary":"Correct Part","operationId":"correct_part_knowledge_entities__entity_id__parts_post","security":[{"APIKeyHeader":[]},{"HTTPBearer":[]}],"parameters":[{"name":"entity_id","in":"path","required":true,"schema":{"type":"string","minLength":1,"maxLength":255,"title":"Entity Id"}},{"name":"timezone","in":"header","required":false,"schema":{"type":"string","default":"UTC","title":"Timezone"}},{"name":"x-user-id","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"X-User-Id"}},{"name":"x-actor-email","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"X-Actor-Email"}},{"name":"x-request-source","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"X-Request-Source"}},{"name":"x-operation-id","in":"header","required":false,"schema":{"anyOf":[{"type":"string","maxLength":36},{"type":"null"}],"title":"X-Operation-Id"}},{"name":"x-commit-message","in":"header","required":false,"schema":{"anyOf":[{"type":"string","minLength":1},{"type":"null"}],"title":"X-Commit-Message"}},{"name":"x-confirmation-id","in":"header","required":false,"schema":{"anyOf":[{"type":"string","maxLength":36},{"type":"null"}],"title":"X-Confirmation-Id"}},{"name":"x-chat-id","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"X-Chat-Id"}},{"name":"organization-id","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Organization-Id"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/PartCorrection"}}}},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/EntityViewResponse"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/knowledge/runs/{run_id}/revert":{"post":{"tags":["knowledge"],"summary":"Revert Run","operationId":"revert_run_knowledge_runs__run_id__revert_post","security":[{"APIKeyHeader":[]},{"HTTPBearer":[]}],"parameters":[{"name":"run_id","in":"path","required":true,"schema":{"type":"string","minLength":1,"maxLength":255,"title":"Run Id"}},{"name":"timezone","in":"header","required":false,"schema":{"type":"string","default":"UTC","title":"Timezone"}},{"name":"x-user-id","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"X-User-Id"}},{"name":"x-actor-email","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"X-Actor-Email"}},{"name":"x-request-source","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"X-Request-Source"}},{"name":"x-operation-id","in":"header","required":false,"schema":{"anyOf":[{"type":"string","maxLength":36},{"type":"null"}],"title":"X-Operation-Id"}},{"name":"x-commit-message","in":"header","required":false,"schema":{"anyOf":[{"type":"string","minLength":1},{"type":"null"}],"title":"X-Commit-Message"}},{"name":"x-confirmation-id","in":"header","required":false,"schema":{"anyOf":[{"type":"string","maxLength":36},{"type":"null"}],"title":"X-Confirmation-Id"}},{"name":"x-chat-id","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"X-Chat-Id"}},{"name":"organization-id","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Organization-Id"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/EntityViewResponse"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/knowledge/runs/{run_id}/renew":{"post":{"tags":["knowledge"],"summary":"Renew Run","operationId":"renew_run_knowledge_runs__run_id__renew_post","security":[{"APIKeyHeader":[]},{"HTTPBearer":[]}],"parameters":[{"name":"run_id","in":"path","required":true,"schema":{"type":"string","minLength":1,"maxLength":255,"title":"Run Id"}},{"name":"timezone","in":"header","required":false,"schema":{"type":"string","default":"UTC","title":"Timezone"}},{"name":"x-user-id","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"X-User-Id"}},{"name":"x-actor-email","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"X-Actor-Email"}},{"name":"x-request-source","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"X-Request-Source"}},{"name":"x-operation-id","in":"header","required":false,"schema":{"anyOf":[{"type":"string","maxLength":36},{"type":"null"}],"title":"X-Operation-Id"}},{"name":"x-commit-message","in":"header","required":false,"schema":{"anyOf":[{"type":"string","minLength":1},{"type":"null"}],"title":"X-Commit-Message"}},{"name":"x-confirmation-id","in":"header","required":false,"schema":{"anyOf":[{"type":"string","maxLength":36},{"type":"null"}],"title":"X-Confirmation-Id"}},{"name":"x-chat-id","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"X-Chat-Id"}},{"name":"organization-id","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Organization-Id"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/EntityViewResponse"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/knowledge/definitions/{kind}":{"get":{"tags":["knowledge"],"summary":"List Metadata","operationId":"list_metadata_knowledge_definitions__kind__get","security":[{"APIKeyHeader":[]},{"HTTPBearer":[]}],"parameters":[{"name":"kind","in":"path","required":true,"schema":{"enum":["entity_type","property_type","checkpoint"],"type":"string","title":"Kind"}},{"name":"limit","in":"query","required":false,"schema":{"type":"integer","maximum":100,"minimum":1,"default":50,"title":"Limit"}},{"name":"offset","in":"query","required":false,"schema":{"type":"integer","minimum":0,"default":0,"title":"Offset"}},{"name":"search","in":"query","required":false,"schema":{"type":"string","maxLength":200,"default":"","title":"Search"}},{"name":"timezone","in":"header","required":false,"schema":{"type":"string","default":"UTC","title":"Timezone"}},{"name":"x-user-id","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"X-User-Id"}},{"name":"x-actor-email","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"X-Actor-Email"}},{"name":"x-request-source","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"X-Request-Source"}},{"name":"x-operation-id","in":"header","required":false,"schema":{"anyOf":[{"type":"string","maxLength":36},{"type":"null"}],"title":"X-Operation-Id"}},{"name":"x-commit-message","in":"header","required":false,"schema":{"anyOf":[{"type":"string","minLength":1},{"type":"null"}],"title":"X-Commit-Message"}},{"name":"x-confirmation-id","in":"header","required":false,"schema":{"anyOf":[{"type":"string","maxLength":36},{"type":"null"}],"title":"X-Confirmation-Id"}},{"name":"x-chat-id","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"X-Chat-Id"}},{"name":"organization-id","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Organization-Id"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/DefinitionPageResponse"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/knowledge/definitions/{kind}/{definition_id}/metadata":{"get":{"tags":["knowledge"],"summary":"Read Metadata","operationId":"read_metadata_knowledge_definitions__kind___definition_id__metadata_get","security":[{"APIKeyHeader":[]},{"HTTPBearer":[]}],"parameters":[{"name":"kind","in":"path","required":true,"schema":{"enum":["entity_type","property_type","checkpoint"],"type":"string","title":"Kind"}},{"name":"definition_id","in":"path","required":true,"schema":{"type":"string","minLength":1,"maxLength":255,"title":"Definition Id"}},{"name":"timezone","in":"header","required":false,"schema":{"type":"string","default":"UTC","title":"Timezone"}},{"name":"x-user-id","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"X-User-Id"}},{"name":"x-actor-email","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"X-Actor-Email"}},{"name":"x-request-source","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"X-Request-Source"}},{"name":"x-operation-id","in":"header","required":false,"schema":{"anyOf":[{"type":"string","maxLength":36},{"type":"null"}],"title":"X-Operation-Id"}},{"name":"x-commit-message","in":"header","required":false,"schema":{"anyOf":[{"type":"string","minLength":1},{"type":"null"}],"title":"X-Commit-Message"}},{"name":"x-confirmation-id","in":"header","required":false,"schema":{"anyOf":[{"type":"string","maxLength":36},{"type":"null"}],"title":"X-Confirmation-Id"}},{"name":"x-chat-id","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"X-Chat-Id"}},{"name":"organization-id","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Organization-Id"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/DefinitionMetadataResponse"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}},"put":{"tags":["knowledge"],"summary":"Edit Metadata","operationId":"edit_metadata_knowledge_definitions__kind___definition_id__metadata_put","security":[{"APIKeyHeader":[]},{"HTTPBearer":[]}],"parameters":[{"name":"kind","in":"path","required":true,"schema":{"enum":["entity_type","property_type","checkpoint"],"type":"string","title":"Kind"}},{"name":"definition_id","in":"path","required":true,"schema":{"type":"string","minLength":1,"maxLength":255,"title":"Definition Id"}},{"name":"timezone","in":"header","required":false,"schema":{"type":"string","default":"UTC","title":"Timezone"}},{"name":"x-user-id","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"X-User-Id"}},{"name":"x-actor-email","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"X-Actor-Email"}},{"name":"x-request-source","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"X-Request-Source"}},{"name":"x-operation-id","in":"header","required":false,"schema":{"anyOf":[{"type":"string","maxLength":36},{"type":"null"}],"title":"X-Operation-Id"}},{"name":"x-commit-message","in":"header","required":false,"schema":{"anyOf":[{"type":"string","minLength":1},{"type":"null"}],"title":"X-Commit-Message"}},{"name":"x-confirmation-id","in":"header","required":false,"schema":{"anyOf":[{"type":"string","maxLength":36},{"type":"null"}],"title":"X-Confirmation-Id"}},{"name":"x-chat-id","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"X-Chat-Id"}},{"name":"organization-id","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Organization-Id"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/DefinitionMetadataUpdate"}}}},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/DefinitionMetadataResponse"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/knowledge/choice-lists/{reference}":{"get":{"tags":["knowledge"],"summary":"Read Choice Catalog","operationId":"read_choice_catalog_knowledge_choice_lists__reference__get","security":[{"APIKeyHeader":[]},{"HTTPBearer":[]}],"parameters":[{"name":"reference","in":"path","required":true,"schema":{"type":"string","minLength":1,"maxLength":128,"title":"Reference"}},{"name":"include_unavailable","in":"query","required":false,"schema":{"type":"boolean","default":false,"title":"Include Unavailable"}},{"name":"timezone","in":"header","required":false,"schema":{"type":"string","default":"UTC","title":"Timezone"}},{"name":"x-user-id","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"X-User-Id"}},{"name":"x-actor-email","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"X-Actor-Email"}},{"name":"x-request-source","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"X-Request-Source"}},{"name":"x-operation-id","in":"header","required":false,"schema":{"anyOf":[{"type":"string","maxLength":36},{"type":"null"}],"title":"X-Operation-Id"}},{"name":"x-commit-message","in":"header","required":false,"schema":{"anyOf":[{"type":"string","minLength":1},{"type":"null"}],"title":"X-Commit-Message"}},{"name":"x-confirmation-id","in":"header","required":false,"schema":{"anyOf":[{"type":"string","maxLength":36},{"type":"null"}],"title":"X-Confirmation-Id"}},{"name":"x-chat-id","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"X-Chat-Id"}},{"name":"organization-id","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Organization-Id"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ChoiceCatalogResponse"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}},"put":{"tags":["knowledge"],"summary":"Edit Choice Catalog","operationId":"edit_choice_catalog_knowledge_choice_lists__reference__put","security":[{"APIKeyHeader":[]},{"HTTPBearer":[]}],"parameters":[{"name":"reference","in":"path","required":true,"schema":{"type":"string","minLength":1,"maxLength":128,"title":"Reference"}},{"name":"timezone","in":"header","required":false,"schema":{"type":"string","default":"UTC","title":"Timezone"}},{"name":"x-user-id","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"X-User-Id"}},{"name":"x-actor-email","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"X-Actor-Email"}},{"name":"x-request-source","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"X-Request-Source"}},{"name":"x-operation-id","in":"header","required":false,"schema":{"anyOf":[{"type":"string","maxLength":36},{"type":"null"}],"title":"X-Operation-Id"}},{"name":"x-commit-message","in":"header","required":false,"schema":{"anyOf":[{"type":"string","minLength":1},{"type":"null"}],"title":"X-Commit-Message"}},{"name":"x-confirmation-id","in":"header","required":false,"schema":{"anyOf":[{"type":"string","maxLength":36},{"type":"null"}],"title":"X-Confirmation-Id"}},{"name":"x-chat-id","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"X-Chat-Id"}},{"name":"organization-id","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Organization-Id"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ApproveChoiceEdit"}}}},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ChoiceCatalogResponse"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/knowledge/choice-lists":{"post":{"tags":["knowledge"],"summary":"Create Choice Catalog","operationId":"create_choice_catalog_knowledge_choice_lists_post","security":[{"APIKeyHeader":[]},{"HTTPBearer":[]}],"parameters":[{"name":"timezone","in":"header","required":false,"schema":{"type":"string","default":"UTC","title":"Timezone"}},{"name":"x-user-id","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"X-User-Id"}},{"name":"x-actor-email","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"X-Actor-Email"}},{"name":"x-request-source","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"X-Request-Source"}},{"name":"x-operation-id","in":"header","required":false,"schema":{"anyOf":[{"type":"string","maxLength":36},{"type":"null"}],"title":"X-Operation-Id"}},{"name":"x-commit-message","in":"header","required":false,"schema":{"anyOf":[{"type":"string","minLength":1},{"type":"null"}],"title":"X-Commit-Message"}},{"name":"x-confirmation-id","in":"header","required":false,"schema":{"anyOf":[{"type":"string","maxLength":36},{"type":"null"}],"title":"X-Confirmation-Id"}},{"name":"x-chat-id","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"X-Chat-Id"}},{"name":"organization-id","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Organization-Id"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/CreateChoiceList"}}}},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ChoiceCatalogResponse"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/webhook/angi/{company_name}":{"post":{"tags":["webhook","angi"],"summary":"Receive Angi Webhook","operationId":"receive_angi_webhook_webhook_angi__company_name__post","parameters":[{"name":"company_name","in":"path","required":true,"schema":{"type":"string","title":"Company Name"}},{"name":"timezone","in":"header","required":false,"schema":{"type":"string","default":"UTC","title":"Timezone"}},{"name":"x-user-id","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"X-User-Id"}},{"name":"x-actor-email","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"X-Actor-Email"}},{"name":"x-request-source","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"X-Request-Source"}},{"name":"x-operation-id","in":"header","required":false,"schema":{"anyOf":[{"type":"string","maxLength":36},{"type":"null"}],"title":"X-Operation-Id"}},{"name":"x-commit-message","in":"header","required":false,"schema":{"anyOf":[{"type":"string","minLength":1},{"type":"null"}],"title":"X-Commit-Message"}},{"name":"x-confirmation-id","in":"header","required":false,"schema":{"anyOf":[{"type":"string","maxLength":36},{"type":"null"}],"title":"X-Confirmation-Id"}},{"name":"x-chat-id","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"X-Chat-Id"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"type":"object","additionalProperties":{"type":"string"},"title":"Response Receive Angi Webhook Webhook Angi  Company Name  Post"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/webhook/sendgrid/inbound":{"post":{"tags":["webhook","sendgrid"],"summary":"Receive Proposal Inbound","description":"Endpoint for receiving inbound emails from SendGrid.\n\nSendGrid Inbound Parse sends emails as form data with:\n- html: HTML content of the email\n- text: Plain text content\n- subject: Email subject\n- from: Sender email address\n- to: Recipient email address\n- envelope: JSON metadata\n\nDocuments: https://docs.sendgrid.com/for-developers/parsing-email/setting-up-the-inbound-parse-webhook","operationId":"receive_proposal_inbound_webhook_sendgrid_inbound_post","parameters":[{"name":"timezone","in":"header","required":false,"schema":{"type":"string","default":"UTC","title":"Timezone"}},{"name":"x-user-id","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"X-User-Id"}},{"name":"x-actor-email","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"X-Actor-Email"}},{"name":"x-request-source","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"X-Request-Source"}},{"name":"x-operation-id","in":"header","required":false,"schema":{"anyOf":[{"type":"string","maxLength":36},{"type":"null"}],"title":"X-Operation-Id"}},{"name":"x-commit-message","in":"header","required":false,"schema":{"anyOf":[{"type":"string","minLength":1},{"type":"null"}],"title":"X-Commit-Message"}},{"name":"x-confirmation-id","in":"header","required":false,"schema":{"anyOf":[{"type":"string","maxLength":36},{"type":"null"}],"title":"X-Confirmation-Id"}},{"name":"x-chat-id","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"X-Chat-Id"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/webhook/sendgrid/inbound-ask-jenny":{"post":{"tags":["webhook","sendgrid"],"summary":"Receive Ask Jenny Inbound","operationId":"receive_ask_jenny_inbound_webhook_sendgrid_inbound_ask_jenny_post","parameters":[{"name":"timezone","in":"header","required":false,"schema":{"type":"string","default":"UTC","title":"Timezone"}},{"name":"x-user-id","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"X-User-Id"}},{"name":"x-actor-email","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"X-Actor-Email"}},{"name":"x-request-source","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"X-Request-Source"}},{"name":"x-operation-id","in":"header","required":false,"schema":{"anyOf":[{"type":"string","maxLength":36},{"type":"null"}],"title":"X-Operation-Id"}},{"name":"x-commit-message","in":"header","required":false,"schema":{"anyOf":[{"type":"string","minLength":1},{"type":"null"}],"title":"X-Commit-Message"}},{"name":"x-confirmation-id","in":"header","required":false,"schema":{"anyOf":[{"type":"string","maxLength":36},{"type":"null"}],"title":"X-Confirmation-Id"}},{"name":"x-chat-id","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"X-Chat-Id"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/webhook/sendgrid/events":{"post":{"tags":["webhook","sendgrid"],"summary":"Receive Sendgrid Events","description":"Receive SendGrid Event Webhook deliveries and persist them in-process.\n\nUnauthenticated — SendGrid posts here directly (this is the public,\ninternet-facing surface). Signature verification + persistence live in the\nnotification domain; delegate to its handler, which reads the raw body\nbefore any re-serialization so the signature check stays valid. Returns 403\non a bad signature, which SendGrid retries with backoff.","operationId":"receive_sendgrid_events_webhook_sendgrid_events_post","parameters":[{"name":"timezone","in":"header","required":false,"schema":{"type":"string","default":"UTC","title":"Timezone"}},{"name":"x-user-id","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"X-User-Id"}},{"name":"x-actor-email","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"X-Actor-Email"}},{"name":"x-request-source","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"X-Request-Source"}},{"name":"x-operation-id","in":"header","required":false,"schema":{"anyOf":[{"type":"string","maxLength":36},{"type":"null"}],"title":"X-Operation-Id"}},{"name":"x-commit-message","in":"header","required":false,"schema":{"anyOf":[{"type":"string","minLength":1},{"type":"null"}],"title":"X-Commit-Message"}},{"name":"x-confirmation-id","in":"header","required":false,"schema":{"anyOf":[{"type":"string","maxLength":36},{"type":"null"}],"title":"X-Confirmation-Id"}},{"name":"x-chat-id","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"X-Chat-Id"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/webhook/twilio/":{"post":{"tags":["webhook","twilio"],"summary":"Handle Webhook","operationId":"handle_webhook_webhook_twilio__post","parameters":[{"name":"timezone","in":"header","required":false,"schema":{"type":"string","default":"UTC","title":"Timezone"}},{"name":"x-user-id","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"X-User-Id"}},{"name":"x-actor-email","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"X-Actor-Email"}},{"name":"x-request-source","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"X-Request-Source"}},{"name":"x-operation-id","in":"header","required":false,"schema":{"anyOf":[{"type":"string","maxLength":36},{"type":"null"}],"title":"X-Operation-Id"}},{"name":"x-commit-message","in":"header","required":false,"schema":{"anyOf":[{"type":"string","minLength":1},{"type":"null"}],"title":"X-Commit-Message"}},{"name":"x-confirmation-id","in":"header","required":false,"schema":{"anyOf":[{"type":"string","maxLength":36},{"type":"null"}],"title":"X-Confirmation-Id"}},{"name":"x-chat-id","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"X-Chat-Id"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}},"get":{"tags":["webhook","twilio"],"summary":"Handle Webhook Get","operationId":"handle_webhook_get_webhook_twilio__get","parameters":[{"name":"timezone","in":"header","required":false,"schema":{"type":"string","default":"UTC","title":"Timezone"}},{"name":"x-user-id","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"X-User-Id"}},{"name":"x-actor-email","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"X-Actor-Email"}},{"name":"x-request-source","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"X-Request-Source"}},{"name":"x-operation-id","in":"header","required":false,"schema":{"anyOf":[{"type":"string","maxLength":36},{"type":"null"}],"title":"X-Operation-Id"}},{"name":"x-commit-message","in":"header","required":false,"schema":{"anyOf":[{"type":"string","minLength":1},{"type":"null"}],"title":"X-Commit-Message"}},{"name":"x-confirmation-id","in":"header","required":false,"schema":{"anyOf":[{"type":"string","maxLength":36},{"type":"null"}],"title":"X-Confirmation-Id"}},{"name":"x-chat-id","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"X-Chat-Id"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/webhook/twilio/fallback":{"post":{"tags":["webhook","twilio"],"summary":"Handle Webhook Fallback","operationId":"handle_webhook_fallback_webhook_twilio_fallback_post","parameters":[{"name":"timezone","in":"header","required":false,"schema":{"type":"string","default":"UTC","title":"Timezone"}},{"name":"x-user-id","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"X-User-Id"}},{"name":"x-actor-email","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"X-Actor-Email"}},{"name":"x-request-source","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"X-Request-Source"}},{"name":"x-operation-id","in":"header","required":false,"schema":{"anyOf":[{"type":"string","maxLength":36},{"type":"null"}],"title":"X-Operation-Id"}},{"name":"x-commit-message","in":"header","required":false,"schema":{"anyOf":[{"type":"string","minLength":1},{"type":"null"}],"title":"X-Commit-Message"}},{"name":"x-confirmation-id","in":"header","required":false,"schema":{"anyOf":[{"type":"string","maxLength":36},{"type":"null"}],"title":"X-Confirmation-Id"}},{"name":"x-chat-id","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"X-Chat-Id"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}},"get":{"tags":["webhook","twilio"],"summary":"Handle Webhook Fallback Get","operationId":"handle_webhook_fallback_get_webhook_twilio_fallback_get","parameters":[{"name":"timezone","in":"header","required":false,"schema":{"type":"string","default":"UTC","title":"Timezone"}},{"name":"x-user-id","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"X-User-Id"}},{"name":"x-actor-email","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"X-Actor-Email"}},{"name":"x-request-source","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"X-Request-Source"}},{"name":"x-operation-id","in":"header","required":false,"schema":{"anyOf":[{"type":"string","maxLength":36},{"type":"null"}],"title":"X-Operation-Id"}},{"name":"x-commit-message","in":"header","required":false,"schema":{"anyOf":[{"type":"string","minLength":1},{"type":"null"}],"title":"X-Commit-Message"}},{"name":"x-confirmation-id","in":"header","required":false,"schema":{"anyOf":[{"type":"string","maxLength":36},{"type":"null"}],"title":"X-Confirmation-Id"}},{"name":"x-chat-id","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"X-Chat-Id"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/webhook/twilio/status":{"post":{"tags":["webhook","twilio"],"summary":"Handle Status Callback","operationId":"handle_status_callback_webhook_twilio_status_post","parameters":[{"name":"timezone","in":"header","required":false,"schema":{"type":"string","default":"UTC","title":"Timezone"}},{"name":"x-user-id","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"X-User-Id"}},{"name":"x-actor-email","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"X-Actor-Email"}},{"name":"x-request-source","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"X-Request-Source"}},{"name":"x-operation-id","in":"header","required":false,"schema":{"anyOf":[{"type":"string","maxLength":36},{"type":"null"}],"title":"X-Operation-Id"}},{"name":"x-commit-message","in":"header","required":false,"schema":{"anyOf":[{"type":"string","minLength":1},{"type":"null"}],"title":"X-Commit-Message"}},{"name":"x-confirmation-id","in":"header","required":false,"schema":{"anyOf":[{"type":"string","maxLength":36},{"type":"null"}],"title":"X-Confirmation-Id"}},{"name":"x-chat-id","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"X-Chat-Id"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/webhook/telnyx":{"post":{"tags":["webhook","telnyx"],"summary":"Handle Webhook","description":"Unified Telnyx webhook endpoint — dispatches by ``data.event_type``.\n\nTelnyx delivers ``message.received``, ``message.sent``, and ``message.finalized``\nto whichever single URL is configured on the messaging profile. Routing all three\nthrough one endpoint prevents the silent-drop class of bugs that arise when a\nstatus callback lands on an inbound-only handler (or vice versa).","operationId":"handle_webhook_webhook_telnyx_post","parameters":[{"name":"timezone","in":"header","required":false,"schema":{"type":"string","default":"UTC","title":"Timezone"}},{"name":"x-user-id","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"X-User-Id"}},{"name":"x-actor-email","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"X-Actor-Email"}},{"name":"x-request-source","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"X-Request-Source"}},{"name":"x-operation-id","in":"header","required":false,"schema":{"anyOf":[{"type":"string","maxLength":36},{"type":"null"}],"title":"X-Operation-Id"}},{"name":"x-commit-message","in":"header","required":false,"schema":{"anyOf":[{"type":"string","minLength":1},{"type":"null"}],"title":"X-Commit-Message"}},{"name":"x-confirmation-id","in":"header","required":false,"schema":{"anyOf":[{"type":"string","maxLength":36},{"type":"null"}],"title":"X-Confirmation-Id"}},{"name":"x-chat-id","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"X-Chat-Id"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/webhook/telnyx/status":{"post":{"tags":["webhook","telnyx"],"summary":"Handle Status Callback","description":"Handle legacy outbound callbacks that do not include an event ID.","operationId":"handle_status_callback_webhook_telnyx_status_post","parameters":[{"name":"timezone","in":"header","required":false,"schema":{"type":"string","default":"UTC","title":"Timezone"}},{"name":"x-user-id","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"X-User-Id"}},{"name":"x-actor-email","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"X-Actor-Email"}},{"name":"x-request-source","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"X-Request-Source"}},{"name":"x-operation-id","in":"header","required":false,"schema":{"anyOf":[{"type":"string","maxLength":36},{"type":"null"}],"title":"X-Operation-Id"}},{"name":"x-commit-message","in":"header","required":false,"schema":{"anyOf":[{"type":"string","minLength":1},{"type":"null"}],"title":"X-Commit-Message"}},{"name":"x-confirmation-id","in":"header","required":false,"schema":{"anyOf":[{"type":"string","maxLength":36},{"type":"null"}],"title":"X-Confirmation-Id"}},{"name":"x-chat-id","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"X-Chat-Id"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/webhook/telnyx/status/{event_id}":{"post":{"tags":["webhook","telnyx"],"summary":"Handle Event Status Callback","description":"Handle an outbound message callback correlated by its UpSmith event ID.","operationId":"handle_event_status_callback_webhook_telnyx_status__event_id__post","parameters":[{"name":"event_id","in":"path","required":true,"schema":{"type":"string","title":"Event Id"}},{"name":"timezone","in":"header","required":false,"schema":{"type":"string","default":"UTC","title":"Timezone"}},{"name":"x-user-id","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"X-User-Id"}},{"name":"x-actor-email","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"X-Actor-Email"}},{"name":"x-request-source","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"X-Request-Source"}},{"name":"x-operation-id","in":"header","required":false,"schema":{"anyOf":[{"type":"string","maxLength":36},{"type":"null"}],"title":"X-Operation-Id"}},{"name":"x-commit-message","in":"header","required":false,"schema":{"anyOf":[{"type":"string","minLength":1},{"type":"null"}],"title":"X-Commit-Message"}},{"name":"x-confirmation-id","in":"header","required":false,"schema":{"anyOf":[{"type":"string","maxLength":36},{"type":"null"}],"title":"X-Confirmation-Id"}},{"name":"x-chat-id","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"X-Chat-Id"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/webhook/stripe/":{"post":{"tags":["webhook","stripe"],"summary":"Stripe Webhook","description":"Stripe webhook endpoint. Verify signature and handle subscription events.\nRequires STRIPE_WEBHOOK_SECRET. Raw body is used for signature verification.","operationId":"stripe_webhook_webhook_stripe__post","parameters":[{"name":"timezone","in":"header","required":false,"schema":{"type":"string","default":"UTC","title":"Timezone"}},{"name":"x-user-id","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"X-User-Id"}},{"name":"x-actor-email","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"X-Actor-Email"}},{"name":"x-request-source","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"X-Request-Source"}},{"name":"x-operation-id","in":"header","required":false,"schema":{"anyOf":[{"type":"string","maxLength":36},{"type":"null"}],"title":"X-Operation-Id"}},{"name":"x-commit-message","in":"header","required":false,"schema":{"anyOf":[{"type":"string","minLength":1},{"type":"null"}],"title":"X-Commit-Message"}},{"name":"x-confirmation-id","in":"header","required":false,"schema":{"anyOf":[{"type":"string","maxLength":36},{"type":"null"}],"title":"X-Confirmation-Id"}},{"name":"x-chat-id","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"X-Chat-Id"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/webhook/stripe-connect/":{"post":{"tags":["webhook","stripe-connect"],"summary":"Stripe Connect Webhook","operationId":"stripe_connect_webhook_webhook_stripe_connect__post","parameters":[{"name":"timezone","in":"header","required":false,"schema":{"type":"string","default":"UTC","title":"Timezone"}},{"name":"x-user-id","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"X-User-Id"}},{"name":"x-actor-email","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"X-Actor-Email"}},{"name":"x-request-source","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"X-Request-Source"}},{"name":"x-operation-id","in":"header","required":false,"schema":{"anyOf":[{"type":"string","maxLength":36},{"type":"null"}],"title":"X-Operation-Id"}},{"name":"x-commit-message","in":"header","required":false,"schema":{"anyOf":[{"type":"string","minLength":1},{"type":"null"}],"title":"X-Commit-Message"}},{"name":"x-confirmation-id","in":"header","required":false,"schema":{"anyOf":[{"type":"string","maxLength":36},{"type":"null"}],"title":"X-Confirmation-Id"}},{"name":"x-chat-id","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"X-Chat-Id"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"type":"object","additionalProperties":{"type":"boolean"},"title":"Response Stripe Connect Webhook Webhook Stripe Connect  Post"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/webhook/stripe-connect":{"post":{"tags":["webhook","stripe-connect"],"summary":"Stripe Connect Webhook","operationId":"stripe_connect_webhook_webhook_stripe_connect_post","parameters":[{"name":"timezone","in":"header","required":false,"schema":{"type":"string","default":"UTC","title":"Timezone"}},{"name":"x-user-id","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"X-User-Id"}},{"name":"x-actor-email","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"X-Actor-Email"}},{"name":"x-request-source","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"X-Request-Source"}},{"name":"x-operation-id","in":"header","required":false,"schema":{"anyOf":[{"type":"string","maxLength":36},{"type":"null"}],"title":"X-Operation-Id"}},{"name":"x-commit-message","in":"header","required":false,"schema":{"anyOf":[{"type":"string","minLength":1},{"type":"null"}],"title":"X-Commit-Message"}},{"name":"x-confirmation-id","in":"header","required":false,"schema":{"anyOf":[{"type":"string","maxLength":36},{"type":"null"}],"title":"X-Confirmation-Id"}},{"name":"x-chat-id","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"X-Chat-Id"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"type":"object","additionalProperties":{"type":"boolean"},"title":"Response Stripe Connect Webhook Webhook Stripe Connect Post"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/webhook/propelauth/":{"post":{"tags":["webhook","propelauth"],"summary":"Propelauth Webhook","description":"Archive a PropelAuth webhook to the S3/Athena lane via EventBridge + Firehose.\n\nPublishes inline rather than in the background: Svix retries on 5xx, so\nfailing the request is the redelivery mechanism, and swallowing a publish\nfailure would lose the event outright.","operationId":"propelauth_webhook_webhook_propelauth__post","responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"additionalProperties":{"type":"boolean"},"type":"object","title":"Response Propelauth Webhook Webhook Propelauth  Post"}}}}}}},"/webhook/support-text/telnyx":{"post":{"tags":["webhook","support-text"],"summary":"Handle Telnyx Webhook","operationId":"handle_telnyx_webhook_webhook_support_text_telnyx_post","parameters":[{"name":"timezone","in":"header","required":false,"schema":{"type":"string","default":"UTC","title":"Timezone"}},{"name":"x-user-id","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"X-User-Id"}},{"name":"x-actor-email","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"X-Actor-Email"}},{"name":"x-request-source","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"X-Request-Source"}},{"name":"x-operation-id","in":"header","required":false,"schema":{"anyOf":[{"type":"string","maxLength":36},{"type":"null"}],"title":"X-Operation-Id"}},{"name":"x-commit-message","in":"header","required":false,"schema":{"anyOf":[{"type":"string","minLength":1},{"type":"null"}],"title":"X-Commit-Message"}},{"name":"x-confirmation-id","in":"header","required":false,"schema":{"anyOf":[{"type":"string","maxLength":36},{"type":"null"}],"title":"X-Confirmation-Id"}},{"name":"x-chat-id","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"X-Chat-Id"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/webhook/support-text/plain":{"post":{"tags":["webhook","support-text"],"summary":"Handle Plain Webhook","operationId":"handle_plain_webhook_webhook_support_text_plain_post","parameters":[{"name":"timezone","in":"header","required":false,"schema":{"type":"string","default":"UTC","title":"Timezone"}},{"name":"x-user-id","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"X-User-Id"}},{"name":"x-actor-email","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"X-Actor-Email"}},{"name":"x-request-source","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"X-Request-Source"}},{"name":"x-operation-id","in":"header","required":false,"schema":{"anyOf":[{"type":"string","maxLength":36},{"type":"null"}],"title":"X-Operation-Id"}},{"name":"x-commit-message","in":"header","required":false,"schema":{"anyOf":[{"type":"string","minLength":1},{"type":"null"}],"title":"X-Commit-Message"}},{"name":"x-confirmation-id","in":"header","required":false,"schema":{"anyOf":[{"type":"string","maxLength":36},{"type":"null"}],"title":"X-Confirmation-Id"}},{"name":"x-chat-id","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"X-Chat-Id"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/webhook/plain_support_triage":{"post":{"tags":["webhook","plain-support-triage"],"summary":"Handle Plain Support Triage Webhook","operationId":"handle_plain_support_triage_webhook_webhook_plain_support_triage_post","parameters":[{"name":"timezone","in":"header","required":false,"schema":{"type":"string","default":"UTC","title":"Timezone"}},{"name":"x-user-id","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"X-User-Id"}},{"name":"x-actor-email","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"X-Actor-Email"}},{"name":"x-request-source","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"X-Request-Source"}},{"name":"x-operation-id","in":"header","required":false,"schema":{"anyOf":[{"type":"string","maxLength":36},{"type":"null"}],"title":"X-Operation-Id"}},{"name":"x-commit-message","in":"header","required":false,"schema":{"anyOf":[{"type":"string","minLength":1},{"type":"null"}],"title":"X-Commit-Message"}},{"name":"x-confirmation-id","in":"header","required":false,"schema":{"anyOf":[{"type":"string","maxLength":36},{"type":"null"}],"title":"X-Confirmation-Id"}},{"name":"x-chat-id","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"X-Chat-Id"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/webhook/slack/events":{"post":{"tags":["webhook","slack"],"summary":"Handle Slack Event","description":"Handle Slack Events API callbacks.\n\nValidates the Slack signature, extracts the message payload, and publishes\nto EventBridge for async processing via SQS. Returns 500 on publish failure\nso Slack retries the event.","operationId":"handle_slack_event_webhook_slack_events_post","responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}}}}},"/webhook/slack/slop-police/events":{"post":{"tags":["webhook","slack"],"summary":"Receive Slop Police Event","operationId":"receive_slop_police_event_webhook_slack_slop_police_events_post","responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}}}}},"/webhook/slack/interactivity":{"post":{"tags":["webhook","slack"],"summary":"Handle Slack Interactivity","operationId":"handle_slack_interactivity_webhook_slack_interactivity_post","parameters":[{"name":"timezone","in":"header","required":false,"schema":{"type":"string","default":"UTC","title":"Timezone"}},{"name":"x-user-id","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"X-User-Id"}},{"name":"x-actor-email","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"X-Actor-Email"}},{"name":"x-request-source","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"X-Request-Source"}},{"name":"x-operation-id","in":"header","required":false,"schema":{"anyOf":[{"type":"string","maxLength":36},{"type":"null"}],"title":"X-Operation-Id"}},{"name":"x-commit-message","in":"header","required":false,"schema":{"anyOf":[{"type":"string","minLength":1},{"type":"null"}],"title":"X-Commit-Message"}},{"name":"x-confirmation-id","in":"header","required":false,"schema":{"anyOf":[{"type":"string","maxLength":36},{"type":"null"}],"title":"X-Confirmation-Id"}},{"name":"x-chat-id","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"X-Chat-Id"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/webhook/thumbtack/{business_id}":{"post":{"tags":["webhook","thumbtack"],"summary":"Receive Thumbtack Webhook","operationId":"receive_thumbtack_webhook_webhook_thumbtack__business_id__post","parameters":[{"name":"business_id","in":"path","required":true,"schema":{"type":"string","title":"Business Id"}},{"name":"timezone","in":"header","required":false,"schema":{"type":"string","default":"UTC","title":"Timezone"}},{"name":"x-user-id","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"X-User-Id"}},{"name":"x-actor-email","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"X-Actor-Email"}},{"name":"x-request-source","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"X-Request-Source"}},{"name":"x-operation-id","in":"header","required":false,"schema":{"anyOf":[{"type":"string","maxLength":36},{"type":"null"}],"title":"X-Operation-Id"}},{"name":"x-commit-message","in":"header","required":false,"schema":{"anyOf":[{"type":"string","minLength":1},{"type":"null"}],"title":"X-Commit-Message"}},{"name":"x-confirmation-id","in":"header","required":false,"schema":{"anyOf":[{"type":"string","maxLength":36},{"type":"null"}],"title":"X-Confirmation-Id"}},{"name":"x-chat-id","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"X-Chat-Id"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"type":"object","additionalProperties":{"type":"string"},"title":"Response Receive Thumbtack Webhook Webhook Thumbtack  Business Id  Post"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/webhook/zapier/{endpoint_key}":{"post":{"tags":["webhook","zapier"],"summary":"Receive Zapier Webhook","operationId":"receive_zapier_webhook_webhook_zapier__endpoint_key__post","parameters":[{"name":"endpoint_key","in":"path","required":true,"schema":{"type":"string","title":"Endpoint Key"}},{"name":"timezone","in":"header","required":false,"schema":{"type":"string","default":"UTC","title":"Timezone"}},{"name":"x-user-id","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"X-User-Id"}},{"name":"x-actor-email","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"X-Actor-Email"}},{"name":"x-request-source","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"X-Request-Source"}},{"name":"x-operation-id","in":"header","required":false,"schema":{"anyOf":[{"type":"string","maxLength":36},{"type":"null"}],"title":"X-Operation-Id"}},{"name":"x-commit-message","in":"header","required":false,"schema":{"anyOf":[{"type":"string","minLength":1},{"type":"null"}],"title":"X-Commit-Message"}},{"name":"x-confirmation-id","in":"header","required":false,"schema":{"anyOf":[{"type":"string","maxLength":36},{"type":"null"}],"title":"X-Confirmation-Id"}},{"name":"x-chat-id","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"X-Chat-Id"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"type":"object","additionalProperties":{"type":"string"},"title":"Response Receive Zapier Webhook Webhook Zapier  Endpoint Key  Post"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/webhook/modernize/{endpoint_key}":{"post":{"tags":["webhook","modernize"],"summary":"Receive Modernize Webhook","operationId":"receive_modernize_webhook_webhook_modernize__endpoint_key__post","parameters":[{"name":"endpoint_key","in":"path","required":true,"schema":{"type":"string","title":"Endpoint Key"}},{"name":"timezone","in":"header","required":false,"schema":{"type":"string","default":"UTC","title":"Timezone"}},{"name":"x-user-id","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"X-User-Id"}},{"name":"x-actor-email","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"X-Actor-Email"}},{"name":"x-request-source","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"X-Request-Source"}},{"name":"x-operation-id","in":"header","required":false,"schema":{"anyOf":[{"type":"string","maxLength":36},{"type":"null"}],"title":"X-Operation-Id"}},{"name":"x-commit-message","in":"header","required":false,"schema":{"anyOf":[{"type":"string","minLength":1},{"type":"null"}],"title":"X-Commit-Message"}},{"name":"x-confirmation-id","in":"header","required":false,"schema":{"anyOf":[{"type":"string","maxLength":36},{"type":"null"}],"title":"X-Confirmation-Id"}},{"name":"x-chat-id","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"X-Chat-Id"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"type":"object","additionalProperties":{"type":"string"},"title":"Response Receive Modernize Webhook Webhook Modernize  Endpoint Key  Post"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/webhook/yelp":{"get":{"tags":["webhook","yelp"],"summary":"Verify Yelp Webhook","operationId":"verify_yelp_webhook_webhook_yelp_get","parameters":[{"name":"verification","in":"query","required":true,"schema":{"type":"string","title":"Verification"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"type":"object","additionalProperties":{"type":"string"},"title":"Response Verify Yelp Webhook Webhook Yelp Get"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/webhook/yelp/{key}":{"get":{"tags":["webhook","yelp"],"summary":"Verify Yelp Webhook With Key","operationId":"verify_yelp_webhook_with_key_webhook_yelp__key__get","parameters":[{"name":"key","in":"path","required":true,"schema":{"type":"string","title":"Key"}},{"name":"verification","in":"query","required":true,"schema":{"type":"string","title":"Verification"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"type":"object","additionalProperties":{"type":"string"},"title":"Response Verify Yelp Webhook With Key Webhook Yelp  Key  Get"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}},"post":{"tags":["webhook","yelp"],"summary":"Receive Yelp Webhook","operationId":"receive_yelp_webhook_webhook_yelp__key__post","parameters":[{"name":"key","in":"path","required":true,"schema":{"type":"string","title":"Key"}},{"name":"timezone","in":"header","required":false,"schema":{"type":"string","default":"UTC","title":"Timezone"}},{"name":"x-user-id","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"X-User-Id"}},{"name":"x-actor-email","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"X-Actor-Email"}},{"name":"x-request-source","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"X-Request-Source"}},{"name":"x-operation-id","in":"header","required":false,"schema":{"anyOf":[{"type":"string","maxLength":36},{"type":"null"}],"title":"X-Operation-Id"}},{"name":"x-commit-message","in":"header","required":false,"schema":{"anyOf":[{"type":"string","minLength":1},{"type":"null"}],"title":"X-Commit-Message"}},{"name":"x-confirmation-id","in":"header","required":false,"schema":{"anyOf":[{"type":"string","maxLength":36},{"type":"null"}],"title":"X-Confirmation-Id"}},{"name":"x-chat-id","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"X-Chat-Id"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"type":"object","additionalProperties":{"type":"string"},"title":"Response Receive Yelp Webhook Webhook Yelp  Key  Post"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/webhook/notification-call/status":{"post":{"tags":["webhook","notification-call-webhook"],"summary":"Call Status","operationId":"call_status_webhook_notification_call_status_post","parameters":[{"name":"attempt","in":"query","required":true,"schema":{"type":"string","minLength":1,"title":"Attempt"}},{"name":"timezone","in":"header","required":false,"schema":{"type":"string","default":"UTC","title":"Timezone"}},{"name":"x-user-id","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"X-User-Id"}},{"name":"x-actor-email","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"X-Actor-Email"}},{"name":"x-request-source","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"X-Request-Source"}},{"name":"x-operation-id","in":"header","required":false,"schema":{"anyOf":[{"type":"string","maxLength":36},{"type":"null"}],"title":"X-Operation-Id"}},{"name":"x-commit-message","in":"header","required":false,"schema":{"anyOf":[{"type":"string","minLength":1},{"type":"null"}],"title":"X-Commit-Message"}},{"name":"x-confirmation-id","in":"header","required":false,"schema":{"anyOf":[{"type":"string","maxLength":36},{"type":"null"}],"title":"X-Confirmation-Id"}},{"name":"x-chat-id","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"X-Chat-Id"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/webhook/notification-call/amd":{"post":{"tags":["webhook","notification-call-webhook"],"summary":"Call Detection","operationId":"call_detection_webhook_notification_call_amd_post","parameters":[{"name":"attempt","in":"query","required":true,"schema":{"type":"string","minLength":1,"title":"Attempt"}},{"name":"timezone","in":"header","required":false,"schema":{"type":"string","default":"UTC","title":"Timezone"}},{"name":"x-user-id","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"X-User-Id"}},{"name":"x-actor-email","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"X-Actor-Email"}},{"name":"x-request-source","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"X-Request-Source"}},{"name":"x-operation-id","in":"header","required":false,"schema":{"anyOf":[{"type":"string","maxLength":36},{"type":"null"}],"title":"X-Operation-Id"}},{"name":"x-commit-message","in":"header","required":false,"schema":{"anyOf":[{"type":"string","minLength":1},{"type":"null"}],"title":"X-Commit-Message"}},{"name":"x-confirmation-id","in":"header","required":false,"schema":{"anyOf":[{"type":"string","maxLength":36},{"type":"null"}],"title":"X-Confirmation-Id"}},{"name":"x-chat-id","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"X-Chat-Id"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/webhook/notification-call/inbound":{"get":{"tags":["webhook","notification-call-webhook"],"summary":"Call Back To Alerts Number","operationId":"call_back_to_alerts_number_webhook_notification_call_inbound_get","responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}}}},"post":{"tags":["webhook","notification-call-webhook"],"summary":"Call Back To Alerts Number","operationId":"call_back_to_alerts_number_webhook_notification_call_inbound_get","responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}}}}},"/webhook/proposal/inbound":{"post":{"tags":["webhook","webhook"],"summary":"Receive Proposal Inbound","description":"Endpoint for receiving inbound emails from SendGrid.\n\nSendGrid Inbound Parse sends emails as form data with:\n- html: HTML content of the email\n- text: Plain text content\n- subject: Email subject\n- from: Sender email address\n- to: Recipient email address\n- envelope: JSON metadata\n\nDocuments: https://docs.sendgrid.com/for-developers/parsing-email/setting-up-the-inbound-parse-webhook","operationId":"receive_proposal_inbound_webhook_proposal_inbound_post","parameters":[{"name":"timezone","in":"header","required":false,"schema":{"type":"string","default":"UTC","title":"Timezone"}},{"name":"x-user-id","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"X-User-Id"}},{"name":"x-actor-email","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"X-Actor-Email"}},{"name":"x-request-source","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"X-Request-Source"}},{"name":"x-operation-id","in":"header","required":false,"schema":{"anyOf":[{"type":"string","maxLength":36},{"type":"null"}],"title":"X-Operation-Id"}},{"name":"x-commit-message","in":"header","required":false,"schema":{"anyOf":[{"type":"string","minLength":1},{"type":"null"}],"title":"X-Commit-Message"}},{"name":"x-confirmation-id","in":"header","required":false,"schema":{"anyOf":[{"type":"string","maxLength":36},{"type":"null"}],"title":"X-Confirmation-Id"}},{"name":"x-chat-id","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"X-Chat-Id"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/public/auth/login":{"post":{"tags":["public","auth"],"summary":"Login","operationId":"login_public_auth_login_post","parameters":[{"name":"timezone","in":"header","required":false,"schema":{"type":"string","default":"UTC","title":"Timezone"}},{"name":"x-user-id","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"X-User-Id"}},{"name":"x-actor-email","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"X-Actor-Email"}},{"name":"x-request-source","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"X-Request-Source"}},{"name":"x-operation-id","in":"header","required":false,"schema":{"anyOf":[{"type":"string","maxLength":36},{"type":"null"}],"title":"X-Operation-Id"}},{"name":"x-commit-message","in":"header","required":false,"schema":{"anyOf":[{"type":"string","minLength":1},{"type":"null"}],"title":"X-Commit-Message"}},{"name":"x-confirmation-id","in":"header","required":false,"schema":{"anyOf":[{"type":"string","maxLength":36},{"type":"null"}],"title":"X-Confirmation-Id"}},{"name":"x-chat-id","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"X-Chat-Id"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/LoginPayload"}}}},"responses":{"204":{"description":"Successful Response"},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/public/auth/signup":{"post":{"tags":["public","auth"],"summary":"Signup","operationId":"signup_public_auth_signup_post","parameters":[{"name":"timezone","in":"header","required":false,"schema":{"type":"string","default":"UTC","title":"Timezone"}},{"name":"x-user-id","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"X-User-Id"}},{"name":"x-actor-email","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"X-Actor-Email"}},{"name":"x-request-source","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"X-Request-Source"}},{"name":"x-operation-id","in":"header","required":false,"schema":{"anyOf":[{"type":"string","maxLength":36},{"type":"null"}],"title":"X-Operation-Id"}},{"name":"x-commit-message","in":"header","required":false,"schema":{"anyOf":[{"type":"string","minLength":1},{"type":"null"}],"title":"X-Commit-Message"}},{"name":"x-confirmation-id","in":"header","required":false,"schema":{"anyOf":[{"type":"string","maxLength":36},{"type":"null"}],"title":"X-Confirmation-Id"}},{"name":"x-chat-id","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"X-Chat-Id"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/SignupPayload"}}}},"responses":{"204":{"description":"Successful Response"},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/public/engagement/resolved":{"get":{"tags":["public","engagement"],"summary":"Cache Health","operationId":"cache_health_public_engagement_resolved_get","parameters":[{"name":"engagement_id","in":"query","required":true,"schema":{"type":"string","title":"Engagement Id"}},{"name":"timezone","in":"header","required":false,"schema":{"type":"string","default":"UTC","title":"Timezone"}},{"name":"x-user-id","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"X-User-Id"}},{"name":"x-actor-email","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"X-Actor-Email"}},{"name":"x-request-source","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"X-Request-Source"}},{"name":"x-operation-id","in":"header","required":false,"schema":{"anyOf":[{"type":"string","maxLength":36},{"type":"null"}],"title":"X-Operation-Id"}},{"name":"x-commit-message","in":"header","required":false,"schema":{"anyOf":[{"type":"string","minLength":1},{"type":"null"}],"title":"X-Commit-Message"}},{"name":"x-confirmation-id","in":"header","required":false,"schema":{"anyOf":[{"type":"string","maxLength":36},{"type":"null"}],"title":"X-Confirmation-Id"}},{"name":"x-chat-id","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"X-Chat-Id"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/public/lead":{"post":{"tags":["public","lead-public"],"summary":"Submit Lead","operationId":"submit_lead_public_lead_post","parameters":[{"name":"timezone","in":"header","required":false,"schema":{"type":"string","default":"UTC","title":"Timezone"}},{"name":"x-user-id","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"X-User-Id"}},{"name":"x-actor-email","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"X-Actor-Email"}},{"name":"x-request-source","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"X-Request-Source"}},{"name":"x-operation-id","in":"header","required":false,"schema":{"anyOf":[{"type":"string","maxLength":36},{"type":"null"}],"title":"X-Operation-Id"}},{"name":"x-commit-message","in":"header","required":false,"schema":{"anyOf":[{"type":"string","minLength":1},{"type":"null"}],"title":"X-Commit-Message"}},{"name":"x-confirmation-id","in":"header","required":false,"schema":{"anyOf":[{"type":"string","maxLength":36},{"type":"null"}],"title":"X-Confirmation-Id"}},{"name":"x-chat-id","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"X-Chat-Id"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/public/onboard-new-organization":{"post":{"tags":["public","service-titan-tenant-public"],"summary":"Onboard New Organization","description":"Onboard a new organization: create tenant, user, and assign admin permissions.","operationId":"onboard_new_organization_public_onboard_new_organization_post","parameters":[{"name":"timezone","in":"header","required":false,"schema":{"type":"string","default":"UTC","title":"Timezone"}},{"name":"x-user-id","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"X-User-Id"}},{"name":"x-actor-email","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"X-Actor-Email"}},{"name":"x-request-source","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"X-Request-Source"}},{"name":"x-operation-id","in":"header","required":false,"schema":{"anyOf":[{"type":"string","maxLength":36},{"type":"null"}],"title":"X-Operation-Id"}},{"name":"x-commit-message","in":"header","required":false,"schema":{"anyOf":[{"type":"string","minLength":1},{"type":"null"}],"title":"X-Commit-Message"}},{"name":"x-confirmation-id","in":"header","required":false,"schema":{"anyOf":[{"type":"string","maxLength":36},{"type":"null"}],"title":"X-Confirmation-Id"}},{"name":"x-chat-id","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"X-Chat-Id"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/OnboardNewOrganizationBody"}}}},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ServiceTitanSignupResponse"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/public/widget/config/{widget_key}":{"get":{"tags":["public","widget-public"],"summary":"Get Widget Config","operationId":"get_widget_config_public_widget_config__widget_key__get","parameters":[{"name":"widget_key","in":"path","required":true,"schema":{"type":"string","title":"Widget Key"}},{"name":"timezone","in":"header","required":false,"schema":{"type":"string","default":"UTC","title":"Timezone"}},{"name":"x-user-id","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"X-User-Id"}},{"name":"x-actor-email","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"X-Actor-Email"}},{"name":"x-request-source","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"X-Request-Source"}},{"name":"x-operation-id","in":"header","required":false,"schema":{"anyOf":[{"type":"string","maxLength":36},{"type":"null"}],"title":"X-Operation-Id"}},{"name":"x-commit-message","in":"header","required":false,"schema":{"anyOf":[{"type":"string","minLength":1},{"type":"null"}],"title":"X-Commit-Message"}},{"name":"x-confirmation-id","in":"header","required":false,"schema":{"anyOf":[{"type":"string","maxLength":36},{"type":"null"}],"title":"X-Confirmation-Id"}},{"name":"x-chat-id","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"X-Chat-Id"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/WidgetConfigPublic"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/public/setup":{"get":{"tags":["public","onboarding"],"summary":"Read Entry","operationId":"read_entry_public_setup_get","security":[{"HTTPBearer":[]}],"parameters":[{"name":"timezone","in":"header","required":false,"schema":{"type":"string","default":"UTC","title":"Timezone"}},{"name":"x-user-id","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"X-User-Id"}},{"name":"x-actor-email","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"X-Actor-Email"}},{"name":"x-request-source","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"X-Request-Source"}},{"name":"x-operation-id","in":"header","required":false,"schema":{"anyOf":[{"type":"string","maxLength":36},{"type":"null"}],"title":"X-Operation-Id"}},{"name":"x-commit-message","in":"header","required":false,"schema":{"anyOf":[{"type":"string","minLength":1},{"type":"null"}],"title":"X-Commit-Message"}},{"name":"x-confirmation-id","in":"header","required":false,"schema":{"anyOf":[{"type":"string","maxLength":36},{"type":"null"}],"title":"X-Confirmation-Id"}},{"name":"x-chat-id","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"X-Chat-Id"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"type":"array","items":{"$ref":"#/components/schemas/SetupEntryDestination"},"title":"Response Read Entry Public Setup Get"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}},"post":{"tags":["public","onboarding"],"summary":"Create Entry","operationId":"create_entry_public_setup_post","security":[{"HTTPBearer":[]}],"parameters":[{"name":"timezone","in":"header","required":false,"schema":{"type":"string","default":"UTC","title":"Timezone"}},{"name":"x-user-id","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"X-User-Id"}},{"name":"x-actor-email","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"X-Actor-Email"}},{"name":"x-request-source","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"X-Request-Source"}},{"name":"x-operation-id","in":"header","required":false,"schema":{"anyOf":[{"type":"string","maxLength":36},{"type":"null"}],"title":"X-Operation-Id"}},{"name":"x-commit-message","in":"header","required":false,"schema":{"anyOf":[{"type":"string","minLength":1},{"type":"null"}],"title":"X-Commit-Message"}},{"name":"x-confirmation-id","in":"header","required":false,"schema":{"anyOf":[{"type":"string","maxLength":36},{"type":"null"}],"title":"X-Confirmation-Id"}},{"name":"x-chat-id","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"X-Chat-Id"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/SetupEntryRequest"}}}},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/SetupEntryResponse"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/integrations/quickbooks/connect":{"post":{"tags":["integrations"],"summary":"Connect Quickbooks","operationId":"connect_quickbooks_integrations_quickbooks_connect_post","security":[{"APIKeyHeader":[]},{"HTTPBearer":[]}],"parameters":[{"name":"organization-id","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Organization-Id"}},{"name":"x-user-id","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"X-User-Id"}},{"name":"timezone","in":"header","required":false,"schema":{"type":"string","default":"UTC","title":"Timezone"}},{"name":"x-actor-email","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"X-Actor-Email"}},{"name":"x-request-source","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"X-Request-Source"}},{"name":"x-operation-id","in":"header","required":false,"schema":{"anyOf":[{"type":"string","maxLength":36},{"type":"null"}],"title":"X-Operation-Id"}},{"name":"x-commit-message","in":"header","required":false,"schema":{"anyOf":[{"type":"string","minLength":1},{"type":"null"}],"title":"X-Commit-Message"}},{"name":"x-confirmation-id","in":"header","required":false,"schema":{"anyOf":[{"type":"string","maxLength":36},{"type":"null"}],"title":"X-Confirmation-Id"}},{"name":"x-chat-id","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"X-Chat-Id"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/QuickBooksConnectResponse"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/integrations/quickbooks/status":{"get":{"tags":["integrations"],"summary":"Quickbooks Status","operationId":"quickbooks_status_integrations_quickbooks_status_get","security":[{"APIKeyHeader":[]},{"HTTPBearer":[]}],"parameters":[{"name":"organization-id","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Organization-Id"}},{"name":"x-user-id","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"X-User-Id"}},{"name":"timezone","in":"header","required":false,"schema":{"type":"string","default":"UTC","title":"Timezone"}},{"name":"x-actor-email","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"X-Actor-Email"}},{"name":"x-request-source","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"X-Request-Source"}},{"name":"x-operation-id","in":"header","required":false,"schema":{"anyOf":[{"type":"string","maxLength":36},{"type":"null"}],"title":"X-Operation-Id"}},{"name":"x-commit-message","in":"header","required":false,"schema":{"anyOf":[{"type":"string","minLength":1},{"type":"null"}],"title":"X-Commit-Message"}},{"name":"x-confirmation-id","in":"header","required":false,"schema":{"anyOf":[{"type":"string","maxLength":36},{"type":"null"}],"title":"X-Confirmation-Id"}},{"name":"x-chat-id","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"X-Chat-Id"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/QuickBooksConnectionStatusResponse"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/integrations/quickbooks/company-info":{"get":{"tags":["integrations"],"summary":"Quickbooks Company Info","operationId":"quickbooks_company_info_integrations_quickbooks_company_info_get","security":[{"APIKeyHeader":[]},{"HTTPBearer":[]}],"parameters":[{"name":"organization-id","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Organization-Id"}},{"name":"x-user-id","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"X-User-Id"}},{"name":"timezone","in":"header","required":false,"schema":{"type":"string","default":"UTC","title":"Timezone"}},{"name":"x-actor-email","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"X-Actor-Email"}},{"name":"x-request-source","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"X-Request-Source"}},{"name":"x-operation-id","in":"header","required":false,"schema":{"anyOf":[{"type":"string","maxLength":36},{"type":"null"}],"title":"X-Operation-Id"}},{"name":"x-commit-message","in":"header","required":false,"schema":{"anyOf":[{"type":"string","minLength":1},{"type":"null"}],"title":"X-Commit-Message"}},{"name":"x-confirmation-id","in":"header","required":false,"schema":{"anyOf":[{"type":"string","maxLength":36},{"type":"null"}],"title":"X-Confirmation-Id"}},{"name":"x-chat-id","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"X-Chat-Id"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/QuickBooksCompanyInfoResponse"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/integrations/quickbooks/disconnect":{"post":{"tags":["integrations"],"summary":"Disconnect Quickbooks","operationId":"disconnect_quickbooks_integrations_quickbooks_disconnect_post","security":[{"APIKeyHeader":[]},{"HTTPBearer":[]}],"parameters":[{"name":"organization-id","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Organization-Id"}},{"name":"x-user-id","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"X-User-Id"}},{"name":"timezone","in":"header","required":false,"schema":{"type":"string","default":"UTC","title":"Timezone"}},{"name":"x-actor-email","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"X-Actor-Email"}},{"name":"x-request-source","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"X-Request-Source"}},{"name":"x-operation-id","in":"header","required":false,"schema":{"anyOf":[{"type":"string","maxLength":36},{"type":"null"}],"title":"X-Operation-Id"}},{"name":"x-commit-message","in":"header","required":false,"schema":{"anyOf":[{"type":"string","minLength":1},{"type":"null"}],"title":"X-Commit-Message"}},{"name":"x-confirmation-id","in":"header","required":false,"schema":{"anyOf":[{"type":"string","maxLength":36},{"type":"null"}],"title":"X-Confirmation-Id"}},{"name":"x-chat-id","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"X-Chat-Id"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/QuickBooksDisconnectResponse"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/integrations/stripe/connect":{"post":{"tags":["integrations"],"summary":"Connect Stripe","operationId":"connect_stripe_integrations_stripe_connect_post","security":[{"APIKeyHeader":[]},{"HTTPBearer":[]}],"parameters":[{"name":"organization-id","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Organization-Id"}},{"name":"x-user-id","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"X-User-Id"}},{"name":"timezone","in":"header","required":false,"schema":{"type":"string","default":"UTC","title":"Timezone"}},{"name":"x-actor-email","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"X-Actor-Email"}},{"name":"x-request-source","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"X-Request-Source"}},{"name":"x-operation-id","in":"header","required":false,"schema":{"anyOf":[{"type":"string","maxLength":36},{"type":"null"}],"title":"X-Operation-Id"}},{"name":"x-commit-message","in":"header","required":false,"schema":{"anyOf":[{"type":"string","minLength":1},{"type":"null"}],"title":"X-Commit-Message"}},{"name":"x-confirmation-id","in":"header","required":false,"schema":{"anyOf":[{"type":"string","maxLength":36},{"type":"null"}],"title":"X-Confirmation-Id"}},{"name":"x-chat-id","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"X-Chat-Id"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/StripeConnectResponse"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/integrations/stripe/continue":{"post":{"tags":["integrations"],"summary":"Continue Stripe Onboarding","operationId":"continue_stripe_onboarding_integrations_stripe_continue_post","security":[{"APIKeyHeader":[]},{"HTTPBearer":[]}],"parameters":[{"name":"organization-id","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Organization-Id"}},{"name":"x-user-id","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"X-User-Id"}},{"name":"timezone","in":"header","required":false,"schema":{"type":"string","default":"UTC","title":"Timezone"}},{"name":"x-actor-email","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"X-Actor-Email"}},{"name":"x-request-source","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"X-Request-Source"}},{"name":"x-operation-id","in":"header","required":false,"schema":{"anyOf":[{"type":"string","maxLength":36},{"type":"null"}],"title":"X-Operation-Id"}},{"name":"x-commit-message","in":"header","required":false,"schema":{"anyOf":[{"type":"string","minLength":1},{"type":"null"}],"title":"X-Commit-Message"}},{"name":"x-confirmation-id","in":"header","required":false,"schema":{"anyOf":[{"type":"string","maxLength":36},{"type":"null"}],"title":"X-Confirmation-Id"}},{"name":"x-chat-id","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"X-Chat-Id"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/StripeConnectResponse"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/integrations/stripe/status":{"get":{"tags":["integrations"],"summary":"Stripe Status","operationId":"stripe_status_integrations_stripe_status_get","security":[{"APIKeyHeader":[]},{"HTTPBearer":[]}],"parameters":[{"name":"organization-id","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Organization-Id"}},{"name":"x-user-id","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"X-User-Id"}},{"name":"timezone","in":"header","required":false,"schema":{"type":"string","default":"UTC","title":"Timezone"}},{"name":"x-actor-email","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"X-Actor-Email"}},{"name":"x-request-source","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"X-Request-Source"}},{"name":"x-operation-id","in":"header","required":false,"schema":{"anyOf":[{"type":"string","maxLength":36},{"type":"null"}],"title":"X-Operation-Id"}},{"name":"x-commit-message","in":"header","required":false,"schema":{"anyOf":[{"type":"string","minLength":1},{"type":"null"}],"title":"X-Commit-Message"}},{"name":"x-confirmation-id","in":"header","required":false,"schema":{"anyOf":[{"type":"string","maxLength":36},{"type":"null"}],"title":"X-Confirmation-Id"}},{"name":"x-chat-id","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"X-Chat-Id"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/StripeConnectionStatusResponse"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/integrations/stripe/account-management":{"post":{"tags":["integrations"],"summary":"Stripe Account Management","operationId":"stripe_account_management_integrations_stripe_account_management_post","security":[{"APIKeyHeader":[]},{"HTTPBearer":[]}],"parameters":[{"name":"organization-id","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Organization-Id"}},{"name":"x-user-id","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"X-User-Id"}},{"name":"timezone","in":"header","required":false,"schema":{"type":"string","default":"UTC","title":"Timezone"}},{"name":"x-actor-email","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"X-Actor-Email"}},{"name":"x-request-source","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"X-Request-Source"}},{"name":"x-operation-id","in":"header","required":false,"schema":{"anyOf":[{"type":"string","maxLength":36},{"type":"null"}],"title":"X-Operation-Id"}},{"name":"x-commit-message","in":"header","required":false,"schema":{"anyOf":[{"type":"string","minLength":1},{"type":"null"}],"title":"X-Commit-Message"}},{"name":"x-confirmation-id","in":"header","required":false,"schema":{"anyOf":[{"type":"string","maxLength":36},{"type":"null"}],"title":"X-Confirmation-Id"}},{"name":"x-chat-id","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"X-Chat-Id"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/StripeAccountManagementResponse"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/integrations/stripe/disconnect":{"post":{"tags":["integrations"],"summary":"Disconnect Stripe","operationId":"disconnect_stripe_integrations_stripe_disconnect_post","security":[{"APIKeyHeader":[]},{"HTTPBearer":[]}],"parameters":[{"name":"organization-id","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Organization-Id"}},{"name":"x-user-id","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"X-User-Id"}},{"name":"timezone","in":"header","required":false,"schema":{"type":"string","default":"UTC","title":"Timezone"}},{"name":"x-actor-email","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"X-Actor-Email"}},{"name":"x-request-source","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"X-Request-Source"}},{"name":"x-operation-id","in":"header","required":false,"schema":{"anyOf":[{"type":"string","maxLength":36},{"type":"null"}],"title":"X-Operation-Id"}},{"name":"x-commit-message","in":"header","required":false,"schema":{"anyOf":[{"type":"string","minLength":1},{"type":"null"}],"title":"X-Commit-Message"}},{"name":"x-confirmation-id","in":"header","required":false,"schema":{"anyOf":[{"type":"string","maxLength":36},{"type":"null"}],"title":"X-Confirmation-Id"}},{"name":"x-chat-id","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"X-Chat-Id"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/StripeDisconnectResponse"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/integrations/geotab/connect":{"post":{"tags":["integrations"],"summary":"Connect","description":"Sign in to Geotab before storing the login, so a typo never reads as connected.","operationId":"connect_integrations_geotab_connect_post","security":[{"APIKeyHeader":[]},{"HTTPBearer":[]}],"parameters":[{"name":"timezone","in":"header","required":false,"schema":{"type":"string","default":"UTC","title":"Timezone"}},{"name":"x-user-id","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"X-User-Id"}},{"name":"x-actor-email","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"X-Actor-Email"}},{"name":"x-request-source","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"X-Request-Source"}},{"name":"x-operation-id","in":"header","required":false,"schema":{"anyOf":[{"type":"string","maxLength":36},{"type":"null"}],"title":"X-Operation-Id"}},{"name":"x-commit-message","in":"header","required":false,"schema":{"anyOf":[{"type":"string","minLength":1},{"type":"null"}],"title":"X-Commit-Message"}},{"name":"x-confirmation-id","in":"header","required":false,"schema":{"anyOf":[{"type":"string","maxLength":36},{"type":"null"}],"title":"X-Confirmation-Id"}},{"name":"x-chat-id","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"X-Chat-Id"}},{"name":"organization-id","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Organization-Id"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/GeotabConnectRequest"}}}},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/GeotabConnectionResponse"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/integrations/geotab/status":{"get":{"tags":["integrations"],"summary":"Get Status","description":"Database-only, so loading the Integrations page never signs in to Geotab or risks a lockout.","operationId":"get_status_integrations_geotab_status_get","security":[{"APIKeyHeader":[]},{"HTTPBearer":[]}],"parameters":[{"name":"timezone","in":"header","required":false,"schema":{"type":"string","default":"UTC","title":"Timezone"}},{"name":"x-user-id","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"X-User-Id"}},{"name":"x-actor-email","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"X-Actor-Email"}},{"name":"x-request-source","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"X-Request-Source"}},{"name":"x-operation-id","in":"header","required":false,"schema":{"anyOf":[{"type":"string","maxLength":36},{"type":"null"}],"title":"X-Operation-Id"}},{"name":"x-commit-message","in":"header","required":false,"schema":{"anyOf":[{"type":"string","minLength":1},{"type":"null"}],"title":"X-Commit-Message"}},{"name":"x-confirmation-id","in":"header","required":false,"schema":{"anyOf":[{"type":"string","maxLength":36},{"type":"null"}],"title":"X-Confirmation-Id"}},{"name":"x-chat-id","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"X-Chat-Id"}},{"name":"organization-id","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Organization-Id"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/PastedCredentialStatusResponse"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/integrations/geotab/disconnect":{"post":{"tags":["integrations"],"summary":"Disconnect","operationId":"disconnect_integrations_geotab_disconnect_post","security":[{"APIKeyHeader":[]},{"HTTPBearer":[]}],"parameters":[{"name":"timezone","in":"header","required":false,"schema":{"type":"string","default":"UTC","title":"Timezone"}},{"name":"x-user-id","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"X-User-Id"}},{"name":"x-actor-email","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"X-Actor-Email"}},{"name":"x-request-source","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"X-Request-Source"}},{"name":"x-operation-id","in":"header","required":false,"schema":{"anyOf":[{"type":"string","maxLength":36},{"type":"null"}],"title":"X-Operation-Id"}},{"name":"x-commit-message","in":"header","required":false,"schema":{"anyOf":[{"type":"string","minLength":1},{"type":"null"}],"title":"X-Commit-Message"}},{"name":"x-confirmation-id","in":"header","required":false,"schema":{"anyOf":[{"type":"string","maxLength":36},{"type":"null"}],"title":"X-Confirmation-Id"}},{"name":"x-chat-id","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"X-Chat-Id"}},{"name":"organization-id","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Organization-Id"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/PastedCredentialDisconnectResponse"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/integrations/intacct/connect":{"post":{"summary":"Connect","operationId":"connect_integrations_intacct_connect_post","security":[{"APIKeyHeader":[]},{"HTTPBearer":[]}],"parameters":[{"name":"profile","in":"query","required":false,"schema":{"$ref":"#/components/schemas/IntacctProfile","default":"rest"}},{"name":"organization-id","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Organization-Id"}},{"name":"x-user-id","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"X-User-Id"}},{"name":"timezone","in":"header","required":false,"schema":{"type":"string","default":"UTC","title":"Timezone"}},{"name":"x-actor-email","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"X-Actor-Email"}},{"name":"x-request-source","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"X-Request-Source"}},{"name":"x-operation-id","in":"header","required":false,"schema":{"anyOf":[{"type":"string","maxLength":36},{"type":"null"}],"title":"X-Operation-Id"}},{"name":"x-commit-message","in":"header","required":false,"schema":{"anyOf":[{"type":"string","minLength":1},{"type":"null"}],"title":"X-Commit-Message"}},{"name":"x-confirmation-id","in":"header","required":false,"schema":{"anyOf":[{"type":"string","maxLength":36},{"type":"null"}],"title":"X-Confirmation-Id"}},{"name":"x-chat-id","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"X-Chat-Id"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ConnectResponse"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/integrations/intacct/status":{"get":{"summary":"Status","operationId":"status_integrations_intacct_status_get","security":[{"APIKeyHeader":[]},{"HTTPBearer":[]}],"parameters":[{"name":"organization-id","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Organization-Id"}},{"name":"x-user-id","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"X-User-Id"}},{"name":"timezone","in":"header","required":false,"schema":{"type":"string","default":"UTC","title":"Timezone"}},{"name":"x-actor-email","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"X-Actor-Email"}},{"name":"x-request-source","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"X-Request-Source"}},{"name":"x-operation-id","in":"header","required":false,"schema":{"anyOf":[{"type":"string","maxLength":36},{"type":"null"}],"title":"X-Operation-Id"}},{"name":"x-commit-message","in":"header","required":false,"schema":{"anyOf":[{"type":"string","minLength":1},{"type":"null"}],"title":"X-Commit-Message"}},{"name":"x-confirmation-id","in":"header","required":false,"schema":{"anyOf":[{"type":"string","maxLength":36},{"type":"null"}],"title":"X-Confirmation-Id"}},{"name":"x-chat-id","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"X-Chat-Id"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/api__domains__integrations__schemas__intacct__StatusResponse"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/integrations/intacct/disconnect":{"post":{"summary":"Disconnect","operationId":"disconnect_integrations_intacct_disconnect_post","security":[{"APIKeyHeader":[]},{"HTTPBearer":[]}],"parameters":[{"name":"profile","in":"query","required":false,"schema":{"$ref":"#/components/schemas/IntacctProfile","default":"rest"}},{"name":"organization-id","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Organization-Id"}},{"name":"x-user-id","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"X-User-Id"}},{"name":"timezone","in":"header","required":false,"schema":{"type":"string","default":"UTC","title":"Timezone"}},{"name":"x-actor-email","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"X-Actor-Email"}},{"name":"x-request-source","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"X-Request-Source"}},{"name":"x-operation-id","in":"header","required":false,"schema":{"anyOf":[{"type":"string","maxLength":36},{"type":"null"}],"title":"X-Operation-Id"}},{"name":"x-commit-message","in":"header","required":false,"schema":{"anyOf":[{"type":"string","minLength":1},{"type":"null"}],"title":"X-Commit-Message"}},{"name":"x-confirmation-id","in":"header","required":false,"schema":{"anyOf":[{"type":"string","maxLength":36},{"type":"null"}],"title":"X-Confirmation-Id"}},{"name":"x-chat-id","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"X-Chat-Id"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/SuccessResponse"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/integrations/{source}/lead-responder":{"get":{"tags":["integrations"],"summary":"Get Lead Responder","operationId":"get_lead_responder_integrations__source__lead_responder_get","security":[{"APIKeyHeader":[]},{"HTTPBearer":[]}],"parameters":[{"name":"source","in":"path","required":true,"schema":{"$ref":"#/components/schemas/LeadResponderSource"}},{"name":"timezone","in":"header","required":false,"schema":{"type":"string","default":"UTC","title":"Timezone"}},{"name":"x-user-id","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"X-User-Id"}},{"name":"x-actor-email","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"X-Actor-Email"}},{"name":"x-request-source","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"X-Request-Source"}},{"name":"x-operation-id","in":"header","required":false,"schema":{"anyOf":[{"type":"string","maxLength":36},{"type":"null"}],"title":"X-Operation-Id"}},{"name":"x-commit-message","in":"header","required":false,"schema":{"anyOf":[{"type":"string","minLength":1},{"type":"null"}],"title":"X-Commit-Message"}},{"name":"x-confirmation-id","in":"header","required":false,"schema":{"anyOf":[{"type":"string","maxLength":36},{"type":"null"}],"title":"X-Confirmation-Id"}},{"name":"x-chat-id","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"X-Chat-Id"}},{"name":"organization-id","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Organization-Id"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/LeadResponderStatus"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}},"put":{"tags":["integrations"],"summary":"Put Lead Responder","description":"Turning on also answers the last 48 hours of unengaged leads. Turning off pauses the campaign:\nnew leads get no reply, and follow-ups that come due while it is paused are skipped.","operationId":"put_lead_responder_integrations__source__lead_responder_put","security":[{"APIKeyHeader":[]},{"HTTPBearer":[]}],"parameters":[{"name":"source","in":"path","required":true,"schema":{"$ref":"#/components/schemas/LeadResponderSource"}},{"name":"timezone","in":"header","required":false,"schema":{"type":"string","default":"UTC","title":"Timezone"}},{"name":"x-user-id","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"X-User-Id"}},{"name":"x-actor-email","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"X-Actor-Email"}},{"name":"x-request-source","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"X-Request-Source"}},{"name":"x-operation-id","in":"header","required":false,"schema":{"anyOf":[{"type":"string","maxLength":36},{"type":"null"}],"title":"X-Operation-Id"}},{"name":"x-commit-message","in":"header","required":false,"schema":{"anyOf":[{"type":"string","minLength":1},{"type":"null"}],"title":"X-Commit-Message"}},{"name":"x-confirmation-id","in":"header","required":false,"schema":{"anyOf":[{"type":"string","maxLength":36},{"type":"null"}],"title":"X-Confirmation-Id"}},{"name":"x-chat-id","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"X-Chat-Id"}},{"name":"organization-id","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Organization-Id"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/UpdateLeadResponderBody"}}}},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/LeadResponderStatus"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/integrations/quickbooks/callback":{"get":{"tags":["integrations"],"summary":"Quickbooks Callback","operationId":"quickbooks_callback_integrations_quickbooks_callback_get","parameters":[{"name":"code","in":"query","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Code"}},{"name":"state","in":"query","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"State"}},{"name":"realmId","in":"query","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Realmid"}},{"name":"error","in":"query","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Error"}},{"name":"timezone","in":"header","required":false,"schema":{"type":"string","default":"UTC","title":"Timezone"}},{"name":"x-user-id","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"X-User-Id"}},{"name":"x-actor-email","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"X-Actor-Email"}},{"name":"x-request-source","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"X-Request-Source"}},{"name":"x-operation-id","in":"header","required":false,"schema":{"anyOf":[{"type":"string","maxLength":36},{"type":"null"}],"title":"X-Operation-Id"}},{"name":"x-commit-message","in":"header","required":false,"schema":{"anyOf":[{"type":"string","minLength":1},{"type":"null"}],"title":"X-Commit-Message"}},{"name":"x-confirmation-id","in":"header","required":false,"schema":{"anyOf":[{"type":"string","maxLength":36},{"type":"null"}],"title":"X-Confirmation-Id"}},{"name":"x-chat-id","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"X-Chat-Id"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/integrations/stripe/refresh":{"get":{"tags":["integrations"],"summary":"Refresh Stripe Onboarding","operationId":"refresh_stripe_onboarding_integrations_stripe_refresh_get","parameters":[{"name":"state","in":"query","required":true,"schema":{"type":"string","title":"State"}},{"name":"timezone","in":"header","required":false,"schema":{"type":"string","default":"UTC","title":"Timezone"}},{"name":"x-user-id","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"X-User-Id"}},{"name":"x-actor-email","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"X-Actor-Email"}},{"name":"x-request-source","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"X-Request-Source"}},{"name":"x-operation-id","in":"header","required":false,"schema":{"anyOf":[{"type":"string","maxLength":36},{"type":"null"}],"title":"X-Operation-Id"}},{"name":"x-commit-message","in":"header","required":false,"schema":{"anyOf":[{"type":"string","minLength":1},{"type":"null"}],"title":"X-Commit-Message"}},{"name":"x-confirmation-id","in":"header","required":false,"schema":{"anyOf":[{"type":"string","maxLength":36},{"type":"null"}],"title":"X-Confirmation-Id"}},{"name":"x-chat-id","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"X-Chat-Id"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/integrations/intacct/callback":{"get":{"summary":"Callback","operationId":"callback_integrations_intacct_callback_get","parameters":[{"name":"code","in":"query","required":false,"schema":{"anyOf":[{"type":"string","maxLength":16384},{"type":"null"}],"title":"Code"}},{"name":"state","in":"query","required":false,"schema":{"anyOf":[{"type":"string","maxLength":256},{"type":"null"}],"title":"State"}},{"name":"error","in":"query","required":false,"schema":{"anyOf":[{"type":"string","maxLength":256},{"type":"null"}],"title":"Error"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/integrations/thumbtack/callback":{"get":{"tags":["integrations"],"summary":"Thumbtack Oauth Callback","description":"Exchange the authorization code for tokens and finalise the connection.\n\nAlways returns a 303 redirect back to the frontend integrations page — the\nfrontend reads `?thumbtack=connected` or `?thumbtack=error&reason=...` to\ndrive the post-OAuth UX.\n\nWhen the user denies consent, Thumbtack's Hydra omits `code`/`state` and\nsends `?error=access_denied` instead (per OAuth 2.0). Both `code` and\n`state` must therefore be optional so FastAPI doesn't 422 before we get a\nchance to redirect the browser back with a friendly message.","operationId":"thumbtack_oauth_callback_integrations_thumbtack_callback_get","parameters":[{"name":"code","in":"query","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"description":"Authorization code (absent when user denies consent)","title":"Code"},"description":"Authorization code (absent when user denies consent)"},{"name":"state","in":"query","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"description":"Signed state token originally issued by initiate_thumbtack_oauth","title":"State"},"description":"Signed state token originally issued by initiate_thumbtack_oauth"},{"name":"error","in":"query","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"description":"OAuth 2.0 error code (RFC 6749 §4.1.2.1)","title":"Error"},"description":"OAuth 2.0 error code (RFC 6749 §4.1.2.1)"},{"name":"error_description","in":"query","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"description":"Human-readable error description","title":"Error Description"},"description":"Human-readable error description"},{"name":"timezone","in":"header","required":false,"schema":{"type":"string","default":"UTC","title":"Timezone"}},{"name":"x-user-id","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"X-User-Id"}},{"name":"x-actor-email","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"X-Actor-Email"}},{"name":"x-request-source","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"X-Request-Source"}},{"name":"x-operation-id","in":"header","required":false,"schema":{"anyOf":[{"type":"string","maxLength":36},{"type":"null"}],"title":"X-Operation-Id"}},{"name":"x-commit-message","in":"header","required":false,"schema":{"anyOf":[{"type":"string","minLength":1},{"type":"null"}],"title":"X-Commit-Message"}},{"name":"x-confirmation-id","in":"header","required":false,"schema":{"anyOf":[{"type":"string","maxLength":36},{"type":"null"}],"title":"X-Confirmation-Id"}},{"name":"x-chat-id","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"X-Chat-Id"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/integrations/yelp/callback":{"get":{"tags":["integrations"],"summary":"Yelp Oauth Callback","operationId":"yelp_oauth_callback_integrations_yelp_callback_get","parameters":[{"name":"code","in":"query","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Code"}},{"name":"state","in":"query","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"State"}},{"name":"error","in":"query","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Error"}},{"name":"error_description","in":"query","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Error Description"}},{"name":"timezone","in":"header","required":false,"schema":{"type":"string","default":"UTC","title":"Timezone"}},{"name":"x-user-id","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"X-User-Id"}},{"name":"x-actor-email","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"X-Actor-Email"}},{"name":"x-request-source","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"X-Request-Source"}},{"name":"x-operation-id","in":"header","required":false,"schema":{"anyOf":[{"type":"string","maxLength":36},{"type":"null"}],"title":"X-Operation-Id"}},{"name":"x-commit-message","in":"header","required":false,"schema":{"anyOf":[{"type":"string","minLength":1},{"type":"null"}],"title":"X-Commit-Message"}},{"name":"x-confirmation-id","in":"header","required":false,"schema":{"anyOf":[{"type":"string","maxLength":36},{"type":"null"}],"title":"X-Confirmation-Id"}},{"name":"x-chat-id","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"X-Chat-Id"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/internal/notifications/escalation-reachability":{"post":{"summary":"Escalation Reachability","operationId":"escalation_reachability_internal_notifications_escalation_reachability_post","security":[{"APIKeyHeader":[]}],"parameters":[{"name":"organization-id","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Organization-Id"}},{"name":"timezone","in":"header","required":false,"schema":{"type":"string","default":"UTC","title":"Timezone"}},{"name":"x-user-id","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"X-User-Id"}},{"name":"x-actor-email","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"X-Actor-Email"}},{"name":"x-request-source","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"X-Request-Source"}},{"name":"x-operation-id","in":"header","required":false,"schema":{"anyOf":[{"type":"string","maxLength":36},{"type":"null"}],"title":"X-Operation-Id"}},{"name":"x-commit-message","in":"header","required":false,"schema":{"anyOf":[{"type":"string","minLength":1},{"type":"null"}],"title":"X-Commit-Message"}},{"name":"x-confirmation-id","in":"header","required":false,"schema":{"anyOf":[{"type":"string","maxLength":36},{"type":"null"}],"title":"X-Confirmation-Id"}},{"name":"x-chat-id","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"X-Chat-Id"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/EscalationReachabilityRequest"}}}},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/EscalationReachability"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/admin/notifications/notifications/init":{"post":{"tags":["admin","notifications"],"summary":"Init Notifications Route","operationId":"init_notifications_route_admin_notifications_notifications_init_post","security":[{"APIKeyHeader":[]},{"HTTPBearer":[]}],"parameters":[{"name":"organization_id","in":"query","required":true,"schema":{"type":"string","title":"Organization Id"}},{"name":"organization-id","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Organization-Id"}},{"name":"timezone","in":"header","required":false,"schema":{"type":"string","default":"UTC","title":"Timezone"}},{"name":"x-user-id","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"X-User-Id"}},{"name":"x-actor-email","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"X-Actor-Email"}},{"name":"x-request-source","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"X-Request-Source"}},{"name":"x-operation-id","in":"header","required":false,"schema":{"anyOf":[{"type":"string","maxLength":36},{"type":"null"}],"title":"X-Operation-Id"}},{"name":"x-commit-message","in":"header","required":false,"schema":{"anyOf":[{"type":"string","minLength":1},{"type":"null"}],"title":"X-Commit-Message"}},{"name":"x-confirmation-id","in":"header","required":false,"schema":{"anyOf":[{"type":"string","maxLength":36},{"type":"null"}],"title":"X-Confirmation-Id"}},{"name":"x-chat-id","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"X-Chat-Id"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"type":"array","items":{"$ref":"#/components/schemas/Notification-Output"},"title":"Response Init Notifications Route Admin Notifications Notifications Init Post"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/admin/notifications/notifications/modules":{"get":{"tags":["admin","notifications"],"summary":"Read Notification Modules Route","operationId":"read_notification_modules_route_admin_notifications_notifications_modules_get","security":[{"APIKeyHeader":[]},{"HTTPBearer":[]}],"parameters":[{"name":"organization-id","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Organization-Id"}},{"name":"timezone","in":"header","required":false,"schema":{"type":"string","default":"UTC","title":"Timezone"}},{"name":"x-user-id","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"X-User-Id"}},{"name":"x-actor-email","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"X-Actor-Email"}},{"name":"x-request-source","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"X-Request-Source"}},{"name":"x-operation-id","in":"header","required":false,"schema":{"anyOf":[{"type":"string","maxLength":36},{"type":"null"}],"title":"X-Operation-Id"}},{"name":"x-commit-message","in":"header","required":false,"schema":{"anyOf":[{"type":"string","minLength":1},{"type":"null"}],"title":"X-Commit-Message"}},{"name":"x-confirmation-id","in":"header","required":false,"schema":{"anyOf":[{"type":"string","maxLength":36},{"type":"null"}],"title":"X-Confirmation-Id"}},{"name":"x-chat-id","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"X-Chat-Id"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Page_NotificationModule_"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}},"post":{"tags":["admin","notifications"],"summary":"Create Notification Module Route","operationId":"create_notification_module_route_admin_notifications_notifications_modules_post","security":[{"APIKeyHeader":[]},{"HTTPBearer":[]}],"parameters":[{"name":"organization-id","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Organization-Id"}},{"name":"timezone","in":"header","required":false,"schema":{"type":"string","default":"UTC","title":"Timezone"}},{"name":"x-user-id","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"X-User-Id"}},{"name":"x-actor-email","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"X-Actor-Email"}},{"name":"x-request-source","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"X-Request-Source"}},{"name":"x-operation-id","in":"header","required":false,"schema":{"anyOf":[{"type":"string","maxLength":36},{"type":"null"}],"title":"X-Operation-Id"}},{"name":"x-commit-message","in":"header","required":false,"schema":{"anyOf":[{"type":"string","minLength":1},{"type":"null"}],"title":"X-Commit-Message"}},{"name":"x-confirmation-id","in":"header","required":false,"schema":{"anyOf":[{"type":"string","maxLength":36},{"type":"null"}],"title":"X-Confirmation-Id"}},{"name":"x-chat-id","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"X-Chat-Id"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/NotificationModule-Input"}}}},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/NotificationModule-Output"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/admin/notifications/notifications/modules/{module_id}":{"get":{"tags":["admin","notifications"],"summary":"Read Notification Module Route","operationId":"read_notification_module_route_admin_notifications_notifications_modules__module_id__get","security":[{"APIKeyHeader":[]},{"HTTPBearer":[]}],"parameters":[{"name":"module_id","in":"path","required":true,"schema":{"type":"string","title":"Module Id"}},{"name":"organization-id","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Organization-Id"}},{"name":"timezone","in":"header","required":false,"schema":{"type":"string","default":"UTC","title":"Timezone"}},{"name":"x-user-id","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"X-User-Id"}},{"name":"x-actor-email","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"X-Actor-Email"}},{"name":"x-request-source","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"X-Request-Source"}},{"name":"x-operation-id","in":"header","required":false,"schema":{"anyOf":[{"type":"string","maxLength":36},{"type":"null"}],"title":"X-Operation-Id"}},{"name":"x-commit-message","in":"header","required":false,"schema":{"anyOf":[{"type":"string","minLength":1},{"type":"null"}],"title":"X-Commit-Message"}},{"name":"x-confirmation-id","in":"header","required":false,"schema":{"anyOf":[{"type":"string","maxLength":36},{"type":"null"}],"title":"X-Confirmation-Id"}},{"name":"x-chat-id","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"X-Chat-Id"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/NotificationModule-Output"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}},"put":{"tags":["admin","notifications"],"summary":"Update Notification Module Route","operationId":"update_notification_module_route_admin_notifications_notifications_modules__module_id__put","security":[{"APIKeyHeader":[]},{"HTTPBearer":[]}],"parameters":[{"name":"module_id","in":"path","required":true,"schema":{"type":"string","title":"Module Id"}},{"name":"organization-id","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Organization-Id"}},{"name":"timezone","in":"header","required":false,"schema":{"type":"string","default":"UTC","title":"Timezone"}},{"name":"x-user-id","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"X-User-Id"}},{"name":"x-actor-email","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"X-Actor-Email"}},{"name":"x-request-source","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"X-Request-Source"}},{"name":"x-operation-id","in":"header","required":false,"schema":{"anyOf":[{"type":"string","maxLength":36},{"type":"null"}],"title":"X-Operation-Id"}},{"name":"x-commit-message","in":"header","required":false,"schema":{"anyOf":[{"type":"string","minLength":1},{"type":"null"}],"title":"X-Commit-Message"}},{"name":"x-confirmation-id","in":"header","required":false,"schema":{"anyOf":[{"type":"string","maxLength":36},{"type":"null"}],"title":"X-Confirmation-Id"}},{"name":"x-chat-id","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"X-Chat-Id"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/NotificationModule-Input"}}}},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/NotificationModule-Output"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}},"delete":{"tags":["admin","notifications"],"summary":"Delete Notification Module Route","operationId":"delete_notification_module_route_admin_notifications_notifications_modules__module_id__delete","security":[{"APIKeyHeader":[]},{"HTTPBearer":[]}],"parameters":[{"name":"module_id","in":"path","required":true,"schema":{"type":"string","title":"Module Id"}},{"name":"organization-id","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Organization-Id"}},{"name":"timezone","in":"header","required":false,"schema":{"type":"string","default":"UTC","title":"Timezone"}},{"name":"x-user-id","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"X-User-Id"}},{"name":"x-actor-email","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"X-Actor-Email"}},{"name":"x-request-source","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"X-Request-Source"}},{"name":"x-operation-id","in":"header","required":false,"schema":{"anyOf":[{"type":"string","maxLength":36},{"type":"null"}],"title":"X-Operation-Id"}},{"name":"x-commit-message","in":"header","required":false,"schema":{"anyOf":[{"type":"string","minLength":1},{"type":"null"}],"title":"X-Commit-Message"}},{"name":"x-confirmation-id","in":"header","required":false,"schema":{"anyOf":[{"type":"string","maxLength":36},{"type":"null"}],"title":"X-Confirmation-Id"}},{"name":"x-chat-id","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"X-Chat-Id"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/NotificationModule-Output"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/admin/notifications/notifications/{notification_id}":{"get":{"tags":["admin","notifications"],"summary":"Read Notification Route","operationId":"read_notification_route_admin_notifications_notifications__notification_id__get","security":[{"APIKeyHeader":[]},{"HTTPBearer":[]}],"parameters":[{"name":"notification_id","in":"path","required":true,"schema":{"type":"string","title":"Notification Id"}},{"name":"organization-id","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Organization-Id"}},{"name":"timezone","in":"header","required":false,"schema":{"type":"string","default":"UTC","title":"Timezone"}},{"name":"x-user-id","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"X-User-Id"}},{"name":"x-actor-email","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"X-Actor-Email"}},{"name":"x-request-source","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"X-Request-Source"}},{"name":"x-operation-id","in":"header","required":false,"schema":{"anyOf":[{"type":"string","maxLength":36},{"type":"null"}],"title":"X-Operation-Id"}},{"name":"x-commit-message","in":"header","required":false,"schema":{"anyOf":[{"type":"string","minLength":1},{"type":"null"}],"title":"X-Commit-Message"}},{"name":"x-confirmation-id","in":"header","required":false,"schema":{"anyOf":[{"type":"string","maxLength":36},{"type":"null"}],"title":"X-Confirmation-Id"}},{"name":"x-chat-id","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"X-Chat-Id"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Notification-Output"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}},"put":{"tags":["admin","notifications"],"summary":"Update Notification Route","operationId":"update_notification_route_admin_notifications_notifications__notification_id__put","security":[{"APIKeyHeader":[]},{"HTTPBearer":[]}],"parameters":[{"name":"notification_id","in":"path","required":true,"schema":{"type":"string","title":"Notification Id"}},{"name":"organization-id","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Organization-Id"}},{"name":"timezone","in":"header","required":false,"schema":{"type":"string","default":"UTC","title":"Timezone"}},{"name":"x-user-id","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"X-User-Id"}},{"name":"x-actor-email","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"X-Actor-Email"}},{"name":"x-request-source","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"X-Request-Source"}},{"name":"x-operation-id","in":"header","required":false,"schema":{"anyOf":[{"type":"string","maxLength":36},{"type":"null"}],"title":"X-Operation-Id"}},{"name":"x-commit-message","in":"header","required":false,"schema":{"anyOf":[{"type":"string","minLength":1},{"type":"null"}],"title":"X-Commit-Message"}},{"name":"x-confirmation-id","in":"header","required":false,"schema":{"anyOf":[{"type":"string","maxLength":36},{"type":"null"}],"title":"X-Confirmation-Id"}},{"name":"x-chat-id","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"X-Chat-Id"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/NotificationUpdateBody"}}}},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Notification-Output"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}},"delete":{"tags":["admin","notifications"],"summary":"Delete Notification Route","operationId":"delete_notification_route_admin_notifications_notifications__notification_id__delete","security":[{"APIKeyHeader":[]},{"HTTPBearer":[]}],"parameters":[{"name":"notification_id","in":"path","required":true,"schema":{"type":"string","title":"Notification Id"}},{"name":"organization-id","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Organization-Id"}},{"name":"timezone","in":"header","required":false,"schema":{"type":"string","default":"UTC","title":"Timezone"}},{"name":"x-user-id","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"X-User-Id"}},{"name":"x-actor-email","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"X-Actor-Email"}},{"name":"x-request-source","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"X-Request-Source"}},{"name":"x-operation-id","in":"header","required":false,"schema":{"anyOf":[{"type":"string","maxLength":36},{"type":"null"}],"title":"X-Operation-Id"}},{"name":"x-commit-message","in":"header","required":false,"schema":{"anyOf":[{"type":"string","minLength":1},{"type":"null"}],"title":"X-Commit-Message"}},{"name":"x-confirmation-id","in":"header","required":false,"schema":{"anyOf":[{"type":"string","maxLength":36},{"type":"null"}],"title":"X-Confirmation-Id"}},{"name":"x-chat-id","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"X-Chat-Id"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Notification-Output"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/admin/notifications/notifications/":{"get":{"tags":["admin","notifications"],"summary":"Read Notifications Route","operationId":"read_notifications_route_admin_notifications_notifications__get","security":[{"APIKeyHeader":[]},{"HTTPBearer":[]}],"parameters":[{"name":"organization-id","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Organization-Id"}},{"name":"timezone","in":"header","required":false,"schema":{"type":"string","default":"UTC","title":"Timezone"}},{"name":"x-user-id","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"X-User-Id"}},{"name":"x-actor-email","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"X-Actor-Email"}},{"name":"x-request-source","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"X-Request-Source"}},{"name":"x-operation-id","in":"header","required":false,"schema":{"anyOf":[{"type":"string","maxLength":36},{"type":"null"}],"title":"X-Operation-Id"}},{"name":"x-commit-message","in":"header","required":false,"schema":{"anyOf":[{"type":"string","minLength":1},{"type":"null"}],"title":"X-Commit-Message"}},{"name":"x-confirmation-id","in":"header","required":false,"schema":{"anyOf":[{"type":"string","maxLength":36},{"type":"null"}],"title":"X-Confirmation-Id"}},{"name":"x-chat-id","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"X-Chat-Id"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Page_Notification_"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}},"post":{"tags":["admin","notifications"],"summary":"Create Notification Route","operationId":"create_notification_route_admin_notifications_notifications__post","security":[{"APIKeyHeader":[]},{"HTTPBearer":[]}],"parameters":[{"name":"organization-id","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Organization-Id"}},{"name":"timezone","in":"header","required":false,"schema":{"type":"string","default":"UTC","title":"Timezone"}},{"name":"x-user-id","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"X-User-Id"}},{"name":"x-actor-email","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"X-Actor-Email"}},{"name":"x-request-source","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"X-Request-Source"}},{"name":"x-operation-id","in":"header","required":false,"schema":{"anyOf":[{"type":"string","maxLength":36},{"type":"null"}],"title":"X-Operation-Id"}},{"name":"x-commit-message","in":"header","required":false,"schema":{"anyOf":[{"type":"string","minLength":1},{"type":"null"}],"title":"X-Commit-Message"}},{"name":"x-confirmation-id","in":"header","required":false,"schema":{"anyOf":[{"type":"string","maxLength":36},{"type":"null"}],"title":"X-Confirmation-Id"}},{"name":"x-chat-id","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"X-Chat-Id"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/Notification-Input"}}}},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Notification-Output"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/admin/notifications/recipients/{recipient_id}":{"get":{"tags":["admin","recipients"],"summary":"Read Recipient Route","operationId":"read_recipient_route_admin_notifications_recipients__recipient_id__get","security":[{"APIKeyHeader":[]},{"HTTPBearer":[]}],"parameters":[{"name":"recipient_id","in":"path","required":true,"schema":{"type":"string","title":"Recipient Id"}},{"name":"organization-id","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Organization-Id"}},{"name":"timezone","in":"header","required":false,"schema":{"type":"string","default":"UTC","title":"Timezone"}},{"name":"x-user-id","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"X-User-Id"}},{"name":"x-actor-email","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"X-Actor-Email"}},{"name":"x-request-source","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"X-Request-Source"}},{"name":"x-operation-id","in":"header","required":false,"schema":{"anyOf":[{"type":"string","maxLength":36},{"type":"null"}],"title":"X-Operation-Id"}},{"name":"x-commit-message","in":"header","required":false,"schema":{"anyOf":[{"type":"string","minLength":1},{"type":"null"}],"title":"X-Commit-Message"}},{"name":"x-confirmation-id","in":"header","required":false,"schema":{"anyOf":[{"type":"string","maxLength":36},{"type":"null"}],"title":"X-Confirmation-Id"}},{"name":"x-chat-id","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"X-Chat-Id"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Recipient-Output"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}},"put":{"tags":["admin","recipients"],"summary":"Update Recipient Route","operationId":"update_recipient_route_admin_notifications_recipients__recipient_id__put","security":[{"APIKeyHeader":[]},{"HTTPBearer":[]}],"parameters":[{"name":"recipient_id","in":"path","required":true,"schema":{"type":"string","title":"Recipient Id"}},{"name":"organization-id","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Organization-Id"}},{"name":"timezone","in":"header","required":false,"schema":{"type":"string","default":"UTC","title":"Timezone"}},{"name":"x-user-id","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"X-User-Id"}},{"name":"x-actor-email","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"X-Actor-Email"}},{"name":"x-request-source","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"X-Request-Source"}},{"name":"x-operation-id","in":"header","required":false,"schema":{"anyOf":[{"type":"string","maxLength":36},{"type":"null"}],"title":"X-Operation-Id"}},{"name":"x-commit-message","in":"header","required":false,"schema":{"anyOf":[{"type":"string","minLength":1},{"type":"null"}],"title":"X-Commit-Message"}},{"name":"x-confirmation-id","in":"header","required":false,"schema":{"anyOf":[{"type":"string","maxLength":36},{"type":"null"}],"title":"X-Confirmation-Id"}},{"name":"x-chat-id","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"X-Chat-Id"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/Recipient-Input"}}}},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Recipient-Output"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}},"delete":{"tags":["admin","recipients"],"summary":"Delete Recipient Route","operationId":"delete_recipient_route_admin_notifications_recipients__recipient_id__delete","security":[{"APIKeyHeader":[]},{"HTTPBearer":[]}],"parameters":[{"name":"recipient_id","in":"path","required":true,"schema":{"type":"string","title":"Recipient Id"}},{"name":"organization-id","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Organization-Id"}},{"name":"timezone","in":"header","required":false,"schema":{"type":"string","default":"UTC","title":"Timezone"}},{"name":"x-user-id","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"X-User-Id"}},{"name":"x-actor-email","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"X-Actor-Email"}},{"name":"x-request-source","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"X-Request-Source"}},{"name":"x-operation-id","in":"header","required":false,"schema":{"anyOf":[{"type":"string","maxLength":36},{"type":"null"}],"title":"X-Operation-Id"}},{"name":"x-commit-message","in":"header","required":false,"schema":{"anyOf":[{"type":"string","minLength":1},{"type":"null"}],"title":"X-Commit-Message"}},{"name":"x-confirmation-id","in":"header","required":false,"schema":{"anyOf":[{"type":"string","maxLength":36},{"type":"null"}],"title":"X-Confirmation-Id"}},{"name":"x-chat-id","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"X-Chat-Id"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Recipient-Output"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/admin/notifications/recipients/":{"get":{"tags":["admin","recipients"],"summary":"Read Recipients Route","operationId":"read_recipients_route_admin_notifications_recipients__get","security":[{"APIKeyHeader":[]},{"HTTPBearer":[]}],"parameters":[{"name":"organization_id","in":"query","required":true,"schema":{"type":"string","title":"Organization Id"}},{"name":"organization-id","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Organization-Id"}},{"name":"timezone","in":"header","required":false,"schema":{"type":"string","default":"UTC","title":"Timezone"}},{"name":"x-user-id","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"X-User-Id"}},{"name":"x-actor-email","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"X-Actor-Email"}},{"name":"x-request-source","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"X-Request-Source"}},{"name":"x-operation-id","in":"header","required":false,"schema":{"anyOf":[{"type":"string","maxLength":36},{"type":"null"}],"title":"X-Operation-Id"}},{"name":"x-commit-message","in":"header","required":false,"schema":{"anyOf":[{"type":"string","minLength":1},{"type":"null"}],"title":"X-Commit-Message"}},{"name":"x-confirmation-id","in":"header","required":false,"schema":{"anyOf":[{"type":"string","maxLength":36},{"type":"null"}],"title":"X-Confirmation-Id"}},{"name":"x-chat-id","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"X-Chat-Id"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Page_Recipient_"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}},"post":{"tags":["admin","recipients"],"summary":"Create Recipient Route","operationId":"create_recipient_route_admin_notifications_recipients__post","security":[{"APIKeyHeader":[]},{"HTTPBearer":[]}],"parameters":[{"name":"organization-id","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Organization-Id"}},{"name":"timezone","in":"header","required":false,"schema":{"type":"string","default":"UTC","title":"Timezone"}},{"name":"x-user-id","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"X-User-Id"}},{"name":"x-actor-email","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"X-Actor-Email"}},{"name":"x-request-source","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"X-Request-Source"}},{"name":"x-operation-id","in":"header","required":false,"schema":{"anyOf":[{"type":"string","maxLength":36},{"type":"null"}],"title":"X-Operation-Id"}},{"name":"x-commit-message","in":"header","required":false,"schema":{"anyOf":[{"type":"string","minLength":1},{"type":"null"}],"title":"X-Commit-Message"}},{"name":"x-confirmation-id","in":"header","required":false,"schema":{"anyOf":[{"type":"string","maxLength":36},{"type":"null"}],"title":"X-Confirmation-Id"}},{"name":"x-chat-id","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"X-Chat-Id"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/Recipient-Input"}}}},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Recipient-Output"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/admin/notifications/rules/vocabulary":{"get":{"tags":["admin","notification-rules"],"summary":"Read Rule Vocabulary","operationId":"read_rule_vocabulary_admin_notifications_rules_vocabulary_get","security":[{"APIKeyHeader":[]},{"HTTPBearer":[]}],"parameters":[{"name":"organization-id","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Organization-Id"}},{"name":"timezone","in":"header","required":false,"schema":{"type":"string","default":"UTC","title":"Timezone"}},{"name":"x-user-id","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"X-User-Id"}},{"name":"x-actor-email","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"X-Actor-Email"}},{"name":"x-request-source","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"X-Request-Source"}},{"name":"x-operation-id","in":"header","required":false,"schema":{"anyOf":[{"type":"string","maxLength":36},{"type":"null"}],"title":"X-Operation-Id"}},{"name":"x-commit-message","in":"header","required":false,"schema":{"anyOf":[{"type":"string","minLength":1},{"type":"null"}],"title":"X-Commit-Message"}},{"name":"x-confirmation-id","in":"header","required":false,"schema":{"anyOf":[{"type":"string","maxLength":36},{"type":"null"}],"title":"X-Confirmation-Id"}},{"name":"x-chat-id","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"X-Chat-Id"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/RuleVocabularyResponse"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/admin/notifications/rules/validate":{"post":{"tags":["admin","notification-rules"],"summary":"Validate Rule","description":"Check a candidate document without storing it.\n\nA document that does not validate is a 422 naming the path in the document that is wrong,\nwhich is the same refusal a save gives — so an operator drafting a rule through the MCP\nfails here rather than discovering it at write time. A 200 with warnings means the document\nis well formed and still cannot notify anyone: savable, not activatable.\n\n``explanation`` names no recipients: this route names no organization to resolve them against.\nFor the same reason it can check neither that a named on-call list exists nor that a\nwebsite-lead rule names only people that notification may reach; a save does both.","operationId":"validate_rule_admin_notifications_rules_validate_post","security":[{"APIKeyHeader":[]},{"HTTPBearer":[]}],"parameters":[{"name":"organization-id","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Organization-Id"}},{"name":"timezone","in":"header","required":false,"schema":{"type":"string","default":"UTC","title":"Timezone"}},{"name":"x-user-id","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"X-User-Id"}},{"name":"x-actor-email","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"X-Actor-Email"}},{"name":"x-request-source","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"X-Request-Source"}},{"name":"x-operation-id","in":"header","required":false,"schema":{"anyOf":[{"type":"string","maxLength":36},{"type":"null"}],"title":"X-Operation-Id"}},{"name":"x-commit-message","in":"header","required":false,"schema":{"anyOf":[{"type":"string","minLength":1},{"type":"null"}],"title":"X-Commit-Message"}},{"name":"x-confirmation-id","in":"header","required":false,"schema":{"anyOf":[{"type":"string","maxLength":36},{"type":"null"}],"title":"X-Confirmation-Id"}},{"name":"x-chat-id","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"X-Chat-Id"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/RuleValidationRequest"}}}},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/RuleValidationResponse"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/admin/notifications/rules/preview":{"post":{"tags":["admin","notification-rules"],"summary":"Preview Rule","description":"The same preview, for a staff caller who has no organization of their own.\n\nSame handler as the authenticated tier, so an operator drafting through the MCP sees what the\neditor would have seen rather than a second implementation's answer.","operationId":"preview_rule_admin_notifications_rules_preview_post","security":[{"APIKeyHeader":[]},{"HTTPBearer":[]}],"parameters":[{"name":"organization_id","in":"query","required":true,"schema":{"type":"string","title":"Organization Id"}},{"name":"organization-id","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Organization-Id"}},{"name":"timezone","in":"header","required":false,"schema":{"type":"string","default":"UTC","title":"Timezone"}},{"name":"x-user-id","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"X-User-Id"}},{"name":"x-actor-email","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"X-Actor-Email"}},{"name":"x-request-source","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"X-Request-Source"}},{"name":"x-operation-id","in":"header","required":false,"schema":{"anyOf":[{"type":"string","maxLength":36},{"type":"null"}],"title":"X-Operation-Id"}},{"name":"x-commit-message","in":"header","required":false,"schema":{"anyOf":[{"type":"string","minLength":1},{"type":"null"}],"title":"X-Commit-Message"}},{"name":"x-confirmation-id","in":"header","required":false,"schema":{"anyOf":[{"type":"string","maxLength":36},{"type":"null"}],"title":"X-Confirmation-Id"}},{"name":"x-chat-id","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"X-Chat-Id"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/RulePreviewRequest"}}}},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/RulePreviewResponse"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/admin/notifications/rules/coverage":{"get":{"tags":["admin","notification-rules"],"summary":"Read Rule Coverage","description":"The same report, for a staff caller who has no organization of their own.","operationId":"read_rule_coverage_admin_notifications_rules_coverage_get","security":[{"APIKeyHeader":[]},{"HTTPBearer":[]}],"parameters":[{"name":"organization_id","in":"query","required":true,"schema":{"type":"string","title":"Organization Id"}},{"name":"organization-id","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Organization-Id"}},{"name":"timezone","in":"header","required":false,"schema":{"type":"string","default":"UTC","title":"Timezone"}},{"name":"x-user-id","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"X-User-Id"}},{"name":"x-actor-email","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"X-Actor-Email"}},{"name":"x-request-source","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"X-Request-Source"}},{"name":"x-operation-id","in":"header","required":false,"schema":{"anyOf":[{"type":"string","maxLength":36},{"type":"null"}],"title":"X-Operation-Id"}},{"name":"x-commit-message","in":"header","required":false,"schema":{"anyOf":[{"type":"string","minLength":1},{"type":"null"}],"title":"X-Commit-Message"}},{"name":"x-confirmation-id","in":"header","required":false,"schema":{"anyOf":[{"type":"string","maxLength":36},{"type":"null"}],"title":"X-Confirmation-Id"}},{"name":"x-chat-id","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"X-Chat-Id"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/RuleCoverageResponse"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/admin/notifications/rules":{"get":{"tags":["admin","notification-rules"],"summary":"List Rules","operationId":"list_rules_admin_notifications_rules_get","security":[{"APIKeyHeader":[]},{"HTTPBearer":[]}],"parameters":[{"name":"organization_id","in":"query","required":true,"schema":{"type":"string","title":"Organization Id"}},{"name":"event_type","in":"query","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Event Type"}},{"name":"active_only","in":"query","required":false,"schema":{"type":"boolean","default":false,"title":"Active Only"}},{"name":"include_decision","in":"query","required":false,"schema":{"type":"boolean","default":false,"title":"Include Decision"}},{"name":"organization-id","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Organization-Id"}},{"name":"timezone","in":"header","required":false,"schema":{"type":"string","default":"UTC","title":"Timezone"}},{"name":"x-user-id","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"X-User-Id"}},{"name":"x-actor-email","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"X-Actor-Email"}},{"name":"x-request-source","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"X-Request-Source"}},{"name":"x-operation-id","in":"header","required":false,"schema":{"anyOf":[{"type":"string","maxLength":36},{"type":"null"}],"title":"X-Operation-Id"}},{"name":"x-commit-message","in":"header","required":false,"schema":{"anyOf":[{"type":"string","minLength":1},{"type":"null"}],"title":"X-Commit-Message"}},{"name":"x-confirmation-id","in":"header","required":false,"schema":{"anyOf":[{"type":"string","maxLength":36},{"type":"null"}],"title":"X-Confirmation-Id"}},{"name":"x-chat-id","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"X-Chat-Id"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"type":"array","items":{"$ref":"#/components/schemas/RuleSummaryResponse"},"title":"Response List Rules Admin Notifications Rules Get"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}},"post":{"tags":["admin","notification-rules"],"summary":"Create Rule","description":"Store a new rule as a draft. It is not activated, by this or by any other client.","operationId":"create_rule_admin_notifications_rules_post","security":[{"APIKeyHeader":[]},{"HTTPBearer":[]}],"parameters":[{"name":"organization_id","in":"query","required":true,"schema":{"type":"string","title":"Organization Id"}},{"name":"organization-id","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Organization-Id"}},{"name":"timezone","in":"header","required":false,"schema":{"type":"string","default":"UTC","title":"Timezone"}},{"name":"x-user-id","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"X-User-Id"}},{"name":"x-actor-email","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"X-Actor-Email"}},{"name":"x-request-source","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"X-Request-Source"}},{"name":"x-operation-id","in":"header","required":false,"schema":{"anyOf":[{"type":"string","maxLength":36},{"type":"null"}],"title":"X-Operation-Id"}},{"name":"x-commit-message","in":"header","required":false,"schema":{"anyOf":[{"type":"string","minLength":1},{"type":"null"}],"title":"X-Commit-Message"}},{"name":"x-confirmation-id","in":"header","required":false,"schema":{"anyOf":[{"type":"string","maxLength":36},{"type":"null"}],"title":"X-Confirmation-Id"}},{"name":"x-chat-id","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"X-Chat-Id"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/RuleCreateRequest"}}}},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/RuleSaveResponse"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/admin/notifications/rules/{rule_key}":{"get":{"tags":["admin","notification-rules"],"summary":"Read Rule","description":"One rule, with the record of what UpSmith did to it on its own.","operationId":"read_rule_admin_notifications_rules__rule_key__get","security":[{"APIKeyHeader":[]},{"HTTPBearer":[]}],"parameters":[{"name":"rule_key","in":"path","required":true,"schema":{"type":"string","title":"Rule Key"}},{"name":"organization_id","in":"query","required":true,"schema":{"type":"string","title":"Organization Id"}},{"name":"organization-id","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Organization-Id"}},{"name":"timezone","in":"header","required":false,"schema":{"type":"string","default":"UTC","title":"Timezone"}},{"name":"x-user-id","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"X-User-Id"}},{"name":"x-actor-email","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"X-Actor-Email"}},{"name":"x-request-source","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"X-Request-Source"}},{"name":"x-operation-id","in":"header","required":false,"schema":{"anyOf":[{"type":"string","maxLength":36},{"type":"null"}],"title":"X-Operation-Id"}},{"name":"x-commit-message","in":"header","required":false,"schema":{"anyOf":[{"type":"string","minLength":1},{"type":"null"}],"title":"X-Commit-Message"}},{"name":"x-confirmation-id","in":"header","required":false,"schema":{"anyOf":[{"type":"string","maxLength":36},{"type":"null"}],"title":"X-Confirmation-Id"}},{"name":"x-chat-id","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"X-Chat-Id"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/RuleAdminResponse"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}},"put":{"tags":["admin","notification-rules"],"summary":"Update Rule","description":"Append a version. 409 when ``base_version`` is not the chain's current maximum.\n\nAn edit to a live rule stays live, so ``now_uncovered`` names any event type it dropped that\nno other active rule covers.","operationId":"update_rule_admin_notifications_rules__rule_key__put","security":[{"APIKeyHeader":[]},{"HTTPBearer":[]}],"parameters":[{"name":"rule_key","in":"path","required":true,"schema":{"type":"string","title":"Rule Key"}},{"name":"organization_id","in":"query","required":true,"schema":{"type":"string","title":"Organization Id"}},{"name":"organization-id","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Organization-Id"}},{"name":"timezone","in":"header","required":false,"schema":{"type":"string","default":"UTC","title":"Timezone"}},{"name":"x-user-id","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"X-User-Id"}},{"name":"x-actor-email","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"X-Actor-Email"}},{"name":"x-request-source","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"X-Request-Source"}},{"name":"x-operation-id","in":"header","required":false,"schema":{"anyOf":[{"type":"string","maxLength":36},{"type":"null"}],"title":"X-Operation-Id"}},{"name":"x-commit-message","in":"header","required":false,"schema":{"anyOf":[{"type":"string","minLength":1},{"type":"null"}],"title":"X-Commit-Message"}},{"name":"x-confirmation-id","in":"header","required":false,"schema":{"anyOf":[{"type":"string","maxLength":36},{"type":"null"}],"title":"X-Confirmation-Id"}},{"name":"x-chat-id","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"X-Chat-Id"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/RuleUpdateRequest"}}}},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/RuleSaveResponse"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/admin/notifications/rules/{rule_key}/versions":{"get":{"tags":["admin","notification-rules"],"summary":"Read Rule Versions","operationId":"read_rule_versions_admin_notifications_rules__rule_key__versions_get","security":[{"APIKeyHeader":[]},{"HTTPBearer":[]}],"parameters":[{"name":"rule_key","in":"path","required":true,"schema":{"type":"string","title":"Rule Key"}},{"name":"organization_id","in":"query","required":true,"schema":{"type":"string","title":"Organization Id"}},{"name":"organization-id","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Organization-Id"}},{"name":"timezone","in":"header","required":false,"schema":{"type":"string","default":"UTC","title":"Timezone"}},{"name":"x-user-id","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"X-User-Id"}},{"name":"x-actor-email","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"X-Actor-Email"}},{"name":"x-request-source","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"X-Request-Source"}},{"name":"x-operation-id","in":"header","required":false,"schema":{"anyOf":[{"type":"string","maxLength":36},{"type":"null"}],"title":"X-Operation-Id"}},{"name":"x-commit-message","in":"header","required":false,"schema":{"anyOf":[{"type":"string","minLength":1},{"type":"null"}],"title":"X-Commit-Message"}},{"name":"x-confirmation-id","in":"header","required":false,"schema":{"anyOf":[{"type":"string","maxLength":36},{"type":"null"}],"title":"X-Confirmation-Id"}},{"name":"x-chat-id","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"X-Chat-Id"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"type":"array","items":{"$ref":"#/components/schemas/RuleAdminVersionResponse"},"title":"Response Read Rule Versions Admin Notifications Rules  Rule Key  Versions Get"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/admin/notifications/rules/{rule_key}/activate":{"post":{"tags":["admin","notification-rules"],"summary":"Activate Rule","description":"Put the newest version into service, and say what that stops covering.\n\n422 when the stored document could never notify anyone, and also when it no longer\nvalidates. ``now_uncovered`` names what the version it replaced covered and this one does not.\n\nLogged rather than stamped: putting a rule into service writes no version, so the chain\ncannot name who did it and the log line is the only record there is.","operationId":"activate_rule_admin_notifications_rules__rule_key__activate_post","security":[{"APIKeyHeader":[]},{"HTTPBearer":[]}],"parameters":[{"name":"rule_key","in":"path","required":true,"schema":{"type":"string","title":"Rule Key"}},{"name":"organization_id","in":"query","required":true,"schema":{"type":"string","title":"Organization Id"}},{"name":"organization-id","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Organization-Id"}},{"name":"timezone","in":"header","required":false,"schema":{"type":"string","default":"UTC","title":"Timezone"}},{"name":"x-user-id","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"X-User-Id"}},{"name":"x-actor-email","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"X-Actor-Email"}},{"name":"x-request-source","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"X-Request-Source"}},{"name":"x-operation-id","in":"header","required":false,"schema":{"anyOf":[{"type":"string","maxLength":36},{"type":"null"}],"title":"X-Operation-Id"}},{"name":"x-commit-message","in":"header","required":false,"schema":{"anyOf":[{"type":"string","minLength":1},{"type":"null"}],"title":"X-Commit-Message"}},{"name":"x-confirmation-id","in":"header","required":false,"schema":{"anyOf":[{"type":"string","maxLength":36},{"type":"null"}],"title":"X-Confirmation-Id"}},{"name":"x-chat-id","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"X-Chat-Id"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/RuleAdminActivateResponse"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/admin/notifications/rules/{rule_key}/deactivate":{"post":{"tags":["admin","notification-rules"],"summary":"Deactivate Rule","description":"Take this rule out of service, even when it is the last one covering its event type.\n\nThe response says which event types that left uncovered rather than refusing the call, and\nthe same answer is logged with its author, since taking a rule out of service writes no\nversion either.","operationId":"deactivate_rule_admin_notifications_rules__rule_key__deactivate_post","security":[{"APIKeyHeader":[]},{"HTTPBearer":[]}],"parameters":[{"name":"rule_key","in":"path","required":true,"schema":{"type":"string","title":"Rule Key"}},{"name":"organization_id","in":"query","required":true,"schema":{"type":"string","title":"Organization Id"}},{"name":"organization-id","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Organization-Id"}},{"name":"timezone","in":"header","required":false,"schema":{"type":"string","default":"UTC","title":"Timezone"}},{"name":"x-user-id","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"X-User-Id"}},{"name":"x-actor-email","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"X-Actor-Email"}},{"name":"x-request-source","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"X-Request-Source"}},{"name":"x-operation-id","in":"header","required":false,"schema":{"anyOf":[{"type":"string","maxLength":36},{"type":"null"}],"title":"X-Operation-Id"}},{"name":"x-commit-message","in":"header","required":false,"schema":{"anyOf":[{"type":"string","minLength":1},{"type":"null"}],"title":"X-Commit-Message"}},{"name":"x-confirmation-id","in":"header","required":false,"schema":{"anyOf":[{"type":"string","maxLength":36},{"type":"null"}],"title":"X-Confirmation-Id"}},{"name":"x-chat-id","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"X-Chat-Id"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/RuleDeactivateResponse"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/admin/notifications/on-call/rotations":{"get":{"tags":["admin","notification-on-call"],"summary":"List On Call Lists","operationId":"list_on_call_lists_admin_notifications_on_call_rotations_get","security":[{"APIKeyHeader":[]},{"HTTPBearer":[]}],"parameters":[{"name":"organization_id","in":"query","required":true,"schema":{"type":"string","title":"Organization Id"}},{"name":"handoffs","in":"query","required":false,"schema":{"type":"integer","maximum":12,"minimum":0,"default":4,"title":"Handoffs"}},{"name":"organization-id","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Organization-Id"}},{"name":"timezone","in":"header","required":false,"schema":{"type":"string","default":"UTC","title":"Timezone"}},{"name":"x-user-id","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"X-User-Id"}},{"name":"x-actor-email","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"X-Actor-Email"}},{"name":"x-request-source","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"X-Request-Source"}},{"name":"x-operation-id","in":"header","required":false,"schema":{"anyOf":[{"type":"string","maxLength":36},{"type":"null"}],"title":"X-Operation-Id"}},{"name":"x-commit-message","in":"header","required":false,"schema":{"anyOf":[{"type":"string","minLength":1},{"type":"null"}],"title":"X-Commit-Message"}},{"name":"x-confirmation-id","in":"header","required":false,"schema":{"anyOf":[{"type":"string","maxLength":36},{"type":"null"}],"title":"X-Confirmation-Id"}},{"name":"x-chat-id","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"X-Chat-Id"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"type":"array","items":{"$ref":"#/components/schemas/OnCallListView"},"title":"Response List On Call Lists Admin Notifications On Call Rotations Get"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}},"post":{"tags":["admin","notification-on-call"],"summary":"Create On Call List","operationId":"create_on_call_list_admin_notifications_on_call_rotations_post","security":[{"APIKeyHeader":[]},{"HTTPBearer":[]}],"parameters":[{"name":"organization_id","in":"query","required":true,"schema":{"type":"string","title":"Organization Id"}},{"name":"organization-id","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Organization-Id"}},{"name":"timezone","in":"header","required":false,"schema":{"type":"string","default":"UTC","title":"Timezone"}},{"name":"x-user-id","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"X-User-Id"}},{"name":"x-actor-email","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"X-Actor-Email"}},{"name":"x-request-source","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"X-Request-Source"}},{"name":"x-operation-id","in":"header","required":false,"schema":{"anyOf":[{"type":"string","maxLength":36},{"type":"null"}],"title":"X-Operation-Id"}},{"name":"x-commit-message","in":"header","required":false,"schema":{"anyOf":[{"type":"string","minLength":1},{"type":"null"}],"title":"X-Commit-Message"}},{"name":"x-confirmation-id","in":"header","required":false,"schema":{"anyOf":[{"type":"string","maxLength":36},{"type":"null"}],"title":"X-Confirmation-Id"}},{"name":"x-chat-id","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"X-Chat-Id"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/OnCallListCreate"}}}},"responses":{"201":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/OnCallListView"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/admin/notifications/on-call/rotations/{list_id}":{"get":{"tags":["admin","notification-on-call"],"summary":"Read On Call List","description":"The list as it stands at ``at``, now by default. A time with no offset is read on the list's clock.","operationId":"read_on_call_list_admin_notifications_on_call_rotations__list_id__get","security":[{"APIKeyHeader":[]},{"HTTPBearer":[]}],"parameters":[{"name":"list_id","in":"path","required":true,"schema":{"type":"string","title":"List Id"}},{"name":"organization_id","in":"query","required":true,"schema":{"type":"string","title":"Organization Id"}},{"name":"at","in":"query","required":false,"schema":{"anyOf":[{"type":"string","format":"date-time"},{"type":"null"}],"title":"At"}},{"name":"handoffs","in":"query","required":false,"schema":{"type":"integer","maximum":12,"minimum":0,"default":4,"title":"Handoffs"}},{"name":"organization-id","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Organization-Id"}},{"name":"timezone","in":"header","required":false,"schema":{"type":"string","default":"UTC","title":"Timezone"}},{"name":"x-user-id","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"X-User-Id"}},{"name":"x-actor-email","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"X-Actor-Email"}},{"name":"x-request-source","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"X-Request-Source"}},{"name":"x-operation-id","in":"header","required":false,"schema":{"anyOf":[{"type":"string","maxLength":36},{"type":"null"}],"title":"X-Operation-Id"}},{"name":"x-commit-message","in":"header","required":false,"schema":{"anyOf":[{"type":"string","minLength":1},{"type":"null"}],"title":"X-Commit-Message"}},{"name":"x-confirmation-id","in":"header","required":false,"schema":{"anyOf":[{"type":"string","maxLength":36},{"type":"null"}],"title":"X-Confirmation-Id"}},{"name":"x-chat-id","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"X-Chat-Id"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/OnCallListView"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}},"patch":{"tags":["admin","notification-on-call"],"summary":"Update On Call List","description":"Change the fields given. Whoever is on call stays on call unless ``on_call_now_user_id`` names someone else.","operationId":"update_on_call_list_admin_notifications_on_call_rotations__list_id__patch","security":[{"APIKeyHeader":[]},{"HTTPBearer":[]}],"parameters":[{"name":"list_id","in":"path","required":true,"schema":{"type":"string","title":"List Id"}},{"name":"organization_id","in":"query","required":true,"schema":{"type":"string","title":"Organization Id"}},{"name":"organization-id","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Organization-Id"}},{"name":"timezone","in":"header","required":false,"schema":{"type":"string","default":"UTC","title":"Timezone"}},{"name":"x-user-id","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"X-User-Id"}},{"name":"x-actor-email","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"X-Actor-Email"}},{"name":"x-request-source","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"X-Request-Source"}},{"name":"x-operation-id","in":"header","required":false,"schema":{"anyOf":[{"type":"string","maxLength":36},{"type":"null"}],"title":"X-Operation-Id"}},{"name":"x-commit-message","in":"header","required":false,"schema":{"anyOf":[{"type":"string","minLength":1},{"type":"null"}],"title":"X-Commit-Message"}},{"name":"x-confirmation-id","in":"header","required":false,"schema":{"anyOf":[{"type":"string","maxLength":36},{"type":"null"}],"title":"X-Confirmation-Id"}},{"name":"x-chat-id","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"X-Chat-Id"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/OnCallListUpdate"}}}},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/OnCallListView"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}},"delete":{"tags":["admin","notification-on-call"],"summary":"Delete On Call List","description":"409 ``on_call_list_in_use`` with the rule keys while any rule's newest or active version names the list.","operationId":"delete_on_call_list_admin_notifications_on_call_rotations__list_id__delete","security":[{"APIKeyHeader":[]},{"HTTPBearer":[]}],"parameters":[{"name":"list_id","in":"path","required":true,"schema":{"type":"string","title":"List Id"}},{"name":"organization_id","in":"query","required":true,"schema":{"type":"string","title":"Organization Id"}},{"name":"organization-id","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Organization-Id"}},{"name":"timezone","in":"header","required":false,"schema":{"type":"string","default":"UTC","title":"Timezone"}},{"name":"x-user-id","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"X-User-Id"}},{"name":"x-actor-email","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"X-Actor-Email"}},{"name":"x-request-source","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"X-Request-Source"}},{"name":"x-operation-id","in":"header","required":false,"schema":{"anyOf":[{"type":"string","maxLength":36},{"type":"null"}],"title":"X-Operation-Id"}},{"name":"x-commit-message","in":"header","required":false,"schema":{"anyOf":[{"type":"string","minLength":1},{"type":"null"}],"title":"X-Commit-Message"}},{"name":"x-confirmation-id","in":"header","required":false,"schema":{"anyOf":[{"type":"string","maxLength":36},{"type":"null"}],"title":"X-Confirmation-Id"}},{"name":"x-chat-id","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"X-Chat-Id"}}],"responses":{"204":{"description":"Successful Response"},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/admin/notifications/on-call/rotations/{list_id}/swaps":{"post":{"tags":["admin","notification-on-call"],"summary":"Add On Call Swap","description":"409 ``swap_overlaps`` when another swap on the list covers part of the window.","operationId":"add_on_call_swap_admin_notifications_on_call_rotations__list_id__swaps_post","security":[{"APIKeyHeader":[]},{"HTTPBearer":[]}],"parameters":[{"name":"list_id","in":"path","required":true,"schema":{"type":"string","title":"List Id"}},{"name":"organization_id","in":"query","required":true,"schema":{"type":"string","title":"Organization Id"}},{"name":"organization-id","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Organization-Id"}},{"name":"timezone","in":"header","required":false,"schema":{"type":"string","default":"UTC","title":"Timezone"}},{"name":"x-user-id","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"X-User-Id"}},{"name":"x-actor-email","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"X-Actor-Email"}},{"name":"x-request-source","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"X-Request-Source"}},{"name":"x-operation-id","in":"header","required":false,"schema":{"anyOf":[{"type":"string","maxLength":36},{"type":"null"}],"title":"X-Operation-Id"}},{"name":"x-commit-message","in":"header","required":false,"schema":{"anyOf":[{"type":"string","minLength":1},{"type":"null"}],"title":"X-Commit-Message"}},{"name":"x-confirmation-id","in":"header","required":false,"schema":{"anyOf":[{"type":"string","maxLength":36},{"type":"null"}],"title":"X-Confirmation-Id"}},{"name":"x-chat-id","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"X-Chat-Id"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/OnCallSwapCreate"}}}},"responses":{"201":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/OnCallListView"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/admin/notifications/on-call/rotations/{list_id}/swaps/{swap_id}":{"delete":{"tags":["admin","notification-on-call"],"summary":"Remove On Call Swap","description":"404 ``swap_not_found`` for a swap that is over, deleted, or another list's.","operationId":"remove_on_call_swap_admin_notifications_on_call_rotations__list_id__swaps__swap_id__delete","security":[{"APIKeyHeader":[]},{"HTTPBearer":[]}],"parameters":[{"name":"list_id","in":"path","required":true,"schema":{"type":"string","title":"List Id"}},{"name":"swap_id","in":"path","required":true,"schema":{"type":"string","title":"Swap Id"}},{"name":"organization_id","in":"query","required":true,"schema":{"type":"string","title":"Organization Id"}},{"name":"organization-id","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Organization-Id"}},{"name":"timezone","in":"header","required":false,"schema":{"type":"string","default":"UTC","title":"Timezone"}},{"name":"x-user-id","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"X-User-Id"}},{"name":"x-actor-email","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"X-Actor-Email"}},{"name":"x-request-source","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"X-Request-Source"}},{"name":"x-operation-id","in":"header","required":false,"schema":{"anyOf":[{"type":"string","maxLength":36},{"type":"null"}],"title":"X-Operation-Id"}},{"name":"x-commit-message","in":"header","required":false,"schema":{"anyOf":[{"type":"string","minLength":1},{"type":"null"}],"title":"X-Commit-Message"}},{"name":"x-confirmation-id","in":"header","required":false,"schema":{"anyOf":[{"type":"string","maxLength":36},{"type":"null"}],"title":"X-Confirmation-Id"}},{"name":"x-chat-id","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"X-Chat-Id"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/OnCallListView"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/admin/notifications/escalation-assignment/":{"post":{"tags":["admin","escalation-assignment"],"summary":"Send Escalation Assignment Email","operationId":"send_escalation_assignment_email_admin_notifications_escalation_assignment__post","security":[{"APIKeyHeader":[]},{"HTTPBearer":[]}],"parameters":[{"name":"organization-id","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Organization-Id"}},{"name":"timezone","in":"header","required":false,"schema":{"type":"string","default":"UTC","title":"Timezone"}},{"name":"x-user-id","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"X-User-Id"}},{"name":"x-actor-email","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"X-Actor-Email"}},{"name":"x-request-source","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"X-Request-Source"}},{"name":"x-operation-id","in":"header","required":false,"schema":{"anyOf":[{"type":"string","maxLength":36},{"type":"null"}],"title":"X-Operation-Id"}},{"name":"x-commit-message","in":"header","required":false,"schema":{"anyOf":[{"type":"string","minLength":1},{"type":"null"}],"title":"X-Commit-Message"}},{"name":"x-confirmation-id","in":"header","required":false,"schema":{"anyOf":[{"type":"string","maxLength":36},{"type":"null"}],"title":"X-Confirmation-Id"}},{"name":"x-chat-id","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"X-Chat-Id"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/EscalationAssignmentRequest"}}}},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"type":"object","additionalProperties":true,"title":"Response Send Escalation Assignment Email Admin Notifications Escalation Assignment  Post"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/admin/notifications/report-issue/":{"post":{"tags":["admin","report-issue"],"summary":"Report Issue","description":"Create an issue report and send it via email to support@upsmith.com","operationId":"report_issue_admin_notifications_report_issue__post","security":[{"APIKeyHeader":[]},{"HTTPBearer":[]}],"parameters":[{"name":"organization-id","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Organization-Id"}},{"name":"timezone","in":"header","required":false,"schema":{"type":"string","default":"UTC","title":"Timezone"}},{"name":"x-user-id","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"X-User-Id"}},{"name":"x-actor-email","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"X-Actor-Email"}},{"name":"x-request-source","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"X-Request-Source"}},{"name":"x-operation-id","in":"header","required":false,"schema":{"anyOf":[{"type":"string","maxLength":36},{"type":"null"}],"title":"X-Operation-Id"}},{"name":"x-commit-message","in":"header","required":false,"schema":{"anyOf":[{"type":"string","minLength":1},{"type":"null"}],"title":"X-Commit-Message"}},{"name":"x-confirmation-id","in":"header","required":false,"schema":{"anyOf":[{"type":"string","maxLength":36},{"type":"null"}],"title":"X-Confirmation-Id"}},{"name":"x-chat-id","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"X-Chat-Id"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ReportIssueRequest"}}}},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"type":"object","additionalProperties":true,"title":"Response Report Issue Admin Notifications Report Issue  Post"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/admin/notifications/subscription-status/org-users":{"get":{"tags":["admin","admin-subscription-status"],"summary":"Get Org Users","description":"Return auth users belonging to an organization (admin only).","operationId":"get_org_users_admin_notifications_subscription_status_org_users_get","security":[{"APIKeyHeader":[]},{"HTTPBearer":[]}],"parameters":[{"name":"organization_id","in":"query","required":true,"schema":{"type":"string","title":"Organization Id"}},{"name":"organization-id","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Organization-Id"}},{"name":"timezone","in":"header","required":false,"schema":{"type":"string","default":"UTC","title":"Timezone"}},{"name":"x-user-id","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"X-User-Id"}},{"name":"x-actor-email","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"X-Actor-Email"}},{"name":"x-request-source","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"X-Request-Source"}},{"name":"x-operation-id","in":"header","required":false,"schema":{"anyOf":[{"type":"string","maxLength":36},{"type":"null"}],"title":"X-Operation-Id"}},{"name":"x-commit-message","in":"header","required":false,"schema":{"anyOf":[{"type":"string","minLength":1},{"type":"null"}],"title":"X-Commit-Message"}},{"name":"x-confirmation-id","in":"header","required":false,"schema":{"anyOf":[{"type":"string","maxLength":36},{"type":"null"}],"title":"X-Confirmation-Id"}},{"name":"x-chat-id","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"X-Chat-Id"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"type":"array","items":{"type":"object","additionalProperties":true},"title":"Response Get Org Users Admin Notifications Subscription Status Org Users Get"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/admin/notifications/email/templates":{"get":{"tags":["admin","email-preview"],"summary":"List Templates","operationId":"list_templates_admin_notifications_email_templates_get","security":[{"APIKeyHeader":[]},{"HTTPBearer":[]}],"parameters":[{"name":"organization-id","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Organization-Id"}},{"name":"timezone","in":"header","required":false,"schema":{"type":"string","default":"UTC","title":"Timezone"}},{"name":"x-user-id","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"X-User-Id"}},{"name":"x-actor-email","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"X-Actor-Email"}},{"name":"x-request-source","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"X-Request-Source"}},{"name":"x-operation-id","in":"header","required":false,"schema":{"anyOf":[{"type":"string","maxLength":36},{"type":"null"}],"title":"X-Operation-Id"}},{"name":"x-commit-message","in":"header","required":false,"schema":{"anyOf":[{"type":"string","minLength":1},{"type":"null"}],"title":"X-Commit-Message"}},{"name":"x-confirmation-id","in":"header","required":false,"schema":{"anyOf":[{"type":"string","maxLength":36},{"type":"null"}],"title":"X-Confirmation-Id"}},{"name":"x-chat-id","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"X-Chat-Id"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/TemplatesResponse"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/admin/notifications/email/preview":{"post":{"tags":["admin","email-preview"],"summary":"Preview","operationId":"preview_admin_notifications_email_preview_post","security":[{"APIKeyHeader":[]},{"HTTPBearer":[]}],"parameters":[{"name":"organization-id","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Organization-Id"}},{"name":"timezone","in":"header","required":false,"schema":{"type":"string","default":"UTC","title":"Timezone"}},{"name":"x-user-id","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"X-User-Id"}},{"name":"x-actor-email","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"X-Actor-Email"}},{"name":"x-request-source","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"X-Request-Source"}},{"name":"x-operation-id","in":"header","required":false,"schema":{"anyOf":[{"type":"string","maxLength":36},{"type":"null"}],"title":"X-Operation-Id"}},{"name":"x-commit-message","in":"header","required":false,"schema":{"anyOf":[{"type":"string","minLength":1},{"type":"null"}],"title":"X-Commit-Message"}},{"name":"x-confirmation-id","in":"header","required":false,"schema":{"anyOf":[{"type":"string","maxLength":36},{"type":"null"}],"title":"X-Confirmation-Id"}},{"name":"x-chat-id","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"X-Chat-Id"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/PreviewRequest"}}}},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/PreviewResponse"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/admin/notifications/email/send-test":{"post":{"tags":["admin","email-preview"],"summary":"Send Test","operationId":"send_test_admin_notifications_email_send_test_post","security":[{"APIKeyHeader":[]},{"HTTPBearer":[]}],"parameters":[{"name":"organization-id","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Organization-Id"}},{"name":"timezone","in":"header","required":false,"schema":{"type":"string","default":"UTC","title":"Timezone"}},{"name":"x-user-id","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"X-User-Id"}},{"name":"x-actor-email","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"X-Actor-Email"}},{"name":"x-request-source","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"X-Request-Source"}},{"name":"x-operation-id","in":"header","required":false,"schema":{"anyOf":[{"type":"string","maxLength":36},{"type":"null"}],"title":"X-Operation-Id"}},{"name":"x-commit-message","in":"header","required":false,"schema":{"anyOf":[{"type":"string","minLength":1},{"type":"null"}],"title":"X-Commit-Message"}},{"name":"x-confirmation-id","in":"header","required":false,"schema":{"anyOf":[{"type":"string","maxLength":36},{"type":"null"}],"title":"X-Confirmation-Id"}},{"name":"x-chat-id","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"X-Chat-Id"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/SendTestRequest"}}}},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/SendTestResponse"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/notifications/activity":{"get":{"tags":["notification-activity"],"summary":"List Activity","operationId":"list_activity_notifications_activity_get","security":[{"APIKeyHeader":[]},{"HTTPBearer":[]}],"parameters":[{"name":"cursor","in":"query","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"description":"next_cursor from the previous page.","title":"Cursor"},"description":"next_cursor from the previous page."},{"name":"limit","in":"query","required":false,"schema":{"type":"integer","maximum":100,"minimum":1,"default":50,"title":"Limit"}},{"name":"notification_type","in":"query","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Notification Type"}},{"name":"recipient_id","in":"query","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"description":"A recipient row, or a person's user id.","title":"Recipient Id"},"description":"A recipient row, or a person's user id."},{"name":"search","in":"query","required":false,"schema":{"anyOf":[{"type":"string","minLength":1,"maxLength":200},{"type":"null"}],"title":"Search"}},{"name":"reached_nobody","in":"query","required":false,"schema":{"type":"boolean","description":"Only events nothing was sent for.","default":false,"title":"Reached Nobody"},"description":"Only events nothing was sent for."},{"name":"organization-id","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Organization-Id"}},{"name":"x-user-id","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"X-User-Id"}},{"name":"timezone","in":"header","required":false,"schema":{"type":"string","default":"UTC","title":"Timezone"}},{"name":"x-actor-email","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"X-Actor-Email"}},{"name":"x-request-source","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"X-Request-Source"}},{"name":"x-operation-id","in":"header","required":false,"schema":{"anyOf":[{"type":"string","maxLength":36},{"type":"null"}],"title":"X-Operation-Id"}},{"name":"x-commit-message","in":"header","required":false,"schema":{"anyOf":[{"type":"string","minLength":1},{"type":"null"}],"title":"X-Commit-Message"}},{"name":"x-confirmation-id","in":"header","required":false,"schema":{"anyOf":[{"type":"string","maxLength":36},{"type":"null"}],"title":"X-Confirmation-Id"}},{"name":"x-chat-id","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"X-Chat-Id"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ActivityResponse"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/notifications/appointments/cancel":{"post":{"tags":["appointments"],"summary":"Cancel Appointment","operationId":"cancel_appointment_notifications_appointments_cancel_post","security":[{"APIKeyHeader":[]},{"HTTPBearer":[]}],"parameters":[{"name":"appointment_id","in":"query","required":true,"schema":{"type":"string","title":"Appointment Id"}},{"name":"engagement_id","in":"query","required":true,"schema":{"type":"string","title":"Engagement Id"}},{"name":"organization-id","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Organization-Id"}},{"name":"x-user-id","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"X-User-Id"}},{"name":"timezone","in":"header","required":false,"schema":{"type":"string","default":"UTC","title":"Timezone"}},{"name":"x-actor-email","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"X-Actor-Email"}},{"name":"x-request-source","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"X-Request-Source"}},{"name":"x-operation-id","in":"header","required":false,"schema":{"anyOf":[{"type":"string","maxLength":36},{"type":"null"}],"title":"X-Operation-Id"}},{"name":"x-commit-message","in":"header","required":false,"schema":{"anyOf":[{"type":"string","minLength":1},{"type":"null"}],"title":"X-Commit-Message"}},{"name":"x-confirmation-id","in":"header","required":false,"schema":{"anyOf":[{"type":"string","maxLength":36},{"type":"null"}],"title":"X-Confirmation-Id"}},{"name":"x-chat-id","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"X-Chat-Id"}}],"requestBody":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/NotificationFilters","default":{"agent_v2_ids":[],"roster_ids":[]}}}}},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/notifications/appointments/cancel/request":{"post":{"tags":["appointments"],"summary":"Cancel Appointment Request","operationId":"cancel_appointment_request_notifications_appointments_cancel_request_post","security":[{"APIKeyHeader":[]},{"HTTPBearer":[]}],"parameters":[{"name":"appointment_id","in":"query","required":true,"schema":{"type":"string","title":"Appointment Id"}},{"name":"engagement_id","in":"query","required":true,"schema":{"type":"string","title":"Engagement Id"}},{"name":"tool_call_id","in":"query","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Tool Call Id"}},{"name":"job_type_id","in":"query","required":false,"schema":{"anyOf":[{"type":"integer"},{"type":"null"}],"title":"Job Type Id"}},{"name":"business_unit_id","in":"query","required":false,"schema":{"anyOf":[{"type":"integer"},{"type":"null"}],"title":"Business Unit Id"}},{"name":"organization-id","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Organization-Id"}},{"name":"x-user-id","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"X-User-Id"}},{"name":"timezone","in":"header","required":false,"schema":{"type":"string","default":"UTC","title":"Timezone"}},{"name":"x-actor-email","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"X-Actor-Email"}},{"name":"x-request-source","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"X-Request-Source"}},{"name":"x-operation-id","in":"header","required":false,"schema":{"anyOf":[{"type":"string","maxLength":36},{"type":"null"}],"title":"X-Operation-Id"}},{"name":"x-commit-message","in":"header","required":false,"schema":{"anyOf":[{"type":"string","minLength":1},{"type":"null"}],"title":"X-Commit-Message"}},{"name":"x-confirmation-id","in":"header","required":false,"schema":{"anyOf":[{"type":"string","maxLength":36},{"type":"null"}],"title":"X-Confirmation-Id"}},{"name":"x-chat-id","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"X-Chat-Id"}}],"requestBody":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/NotificationFilters","default":{"agent_v2_ids":[],"roster_ids":[]}}}}},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/notifications/appointments/update":{"post":{"tags":["appointments"],"summary":"Update Appointment","operationId":"update_appointment_notifications_appointments_update_post","security":[{"APIKeyHeader":[]},{"HTTPBearer":[]}],"parameters":[{"name":"appointment_id","in":"query","required":true,"schema":{"type":"string","title":"Appointment Id"}},{"name":"engagement_id","in":"query","required":true,"schema":{"type":"string","title":"Engagement Id"}},{"name":"organization-id","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Organization-Id"}},{"name":"x-user-id","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"X-User-Id"}},{"name":"timezone","in":"header","required":false,"schema":{"type":"string","default":"UTC","title":"Timezone"}},{"name":"x-actor-email","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"X-Actor-Email"}},{"name":"x-request-source","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"X-Request-Source"}},{"name":"x-operation-id","in":"header","required":false,"schema":{"anyOf":[{"type":"string","maxLength":36},{"type":"null"}],"title":"X-Operation-Id"}},{"name":"x-commit-message","in":"header","required":false,"schema":{"anyOf":[{"type":"string","minLength":1},{"type":"null"}],"title":"X-Commit-Message"}},{"name":"x-confirmation-id","in":"header","required":false,"schema":{"anyOf":[{"type":"string","maxLength":36},{"type":"null"}],"title":"X-Confirmation-Id"}},{"name":"x-chat-id","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"X-Chat-Id"}}],"requestBody":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/NotificationFilters","default":{"agent_v2_ids":[],"roster_ids":[]}}}}},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/notifications/appointments/update/request":{"post":{"tags":["appointments"],"summary":"Update Appointment Request","operationId":"update_appointment_request_notifications_appointments_update_request_post","security":[{"APIKeyHeader":[]},{"HTTPBearer":[]}],"parameters":[{"name":"appointment_id","in":"query","required":true,"schema":{"type":"string","title":"Appointment Id"}},{"name":"engagement_id","in":"query","required":true,"schema":{"type":"string","title":"Engagement Id"}},{"name":"tool_call_id","in":"query","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Tool Call Id"}},{"name":"organization-id","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Organization-Id"}},{"name":"x-user-id","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"X-User-Id"}},{"name":"timezone","in":"header","required":false,"schema":{"type":"string","default":"UTC","title":"Timezone"}},{"name":"x-actor-email","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"X-Actor-Email"}},{"name":"x-request-source","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"X-Request-Source"}},{"name":"x-operation-id","in":"header","required":false,"schema":{"anyOf":[{"type":"string","maxLength":36},{"type":"null"}],"title":"X-Operation-Id"}},{"name":"x-commit-message","in":"header","required":false,"schema":{"anyOf":[{"type":"string","minLength":1},{"type":"null"}],"title":"X-Commit-Message"}},{"name":"x-confirmation-id","in":"header","required":false,"schema":{"anyOf":[{"type":"string","maxLength":36},{"type":"null"}],"title":"X-Confirmation-Id"}},{"name":"x-chat-id","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"X-Chat-Id"}}],"requestBody":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/NotificationFilters","default":{"agent_v2_ids":[],"roster_ids":[]}}}}},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/notifications/appointments/create":{"post":{"tags":["appointments"],"summary":"Create Appointment","operationId":"create_appointment_notifications_appointments_create_post","security":[{"APIKeyHeader":[]},{"HTTPBearer":[]}],"parameters":[{"name":"appointment_id","in":"query","required":true,"schema":{"type":"string","title":"Appointment Id"}},{"name":"engagement_id","in":"query","required":true,"schema":{"type":"string","title":"Engagement Id"}},{"name":"urgent_reason","in":"query","required":false,"schema":{"anyOf":[{"$ref":"#/components/schemas/UrgentBookingReason"},{"type":"null"}],"title":"Urgent Reason"}},{"name":"organization-id","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Organization-Id"}},{"name":"x-user-id","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"X-User-Id"}},{"name":"timezone","in":"header","required":false,"schema":{"type":"string","default":"UTC","title":"Timezone"}},{"name":"x-actor-email","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"X-Actor-Email"}},{"name":"x-request-source","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"X-Request-Source"}},{"name":"x-operation-id","in":"header","required":false,"schema":{"anyOf":[{"type":"string","maxLength":36},{"type":"null"}],"title":"X-Operation-Id"}},{"name":"x-commit-message","in":"header","required":false,"schema":{"anyOf":[{"type":"string","minLength":1},{"type":"null"}],"title":"X-Commit-Message"}},{"name":"x-confirmation-id","in":"header","required":false,"schema":{"anyOf":[{"type":"string","maxLength":36},{"type":"null"}],"title":"X-Confirmation-Id"}},{"name":"x-chat-id","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"X-Chat-Id"}}],"requestBody":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/NotificationFilters","default":{"agent_v2_ids":[],"roster_ids":[]}}}}},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/notifications/appointments/create/request":{"post":{"tags":["appointments"],"summary":"Create Appointment Request","operationId":"create_appointment_request_notifications_appointments_create_request_post","security":[{"APIKeyHeader":[]},{"HTTPBearer":[]}],"parameters":[{"name":"engagement_id","in":"query","required":true,"schema":{"type":"string","title":"Engagement Id"}},{"name":"organization-id","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Organization-Id"}},{"name":"x-user-id","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"X-User-Id"}},{"name":"timezone","in":"header","required":false,"schema":{"type":"string","default":"UTC","title":"Timezone"}},{"name":"x-actor-email","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"X-Actor-Email"}},{"name":"x-request-source","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"X-Request-Source"}},{"name":"x-operation-id","in":"header","required":false,"schema":{"anyOf":[{"type":"string","maxLength":36},{"type":"null"}],"title":"X-Operation-Id"}},{"name":"x-commit-message","in":"header","required":false,"schema":{"anyOf":[{"type":"string","minLength":1},{"type":"null"}],"title":"X-Commit-Message"}},{"name":"x-confirmation-id","in":"header","required":false,"schema":{"anyOf":[{"type":"string","maxLength":36},{"type":"null"}],"title":"X-Confirmation-Id"}},{"name":"x-chat-id","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"X-Chat-Id"}}],"requestBody":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/NotificationFilters","default":{"agent_v2_ids":[],"roster_ids":[]}}}}},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/notifications/appointments/create/on-call":{"post":{"tags":["appointments"],"summary":"Create On Call Appointment Notification","operationId":"create_on_call_appointment_notification_notifications_appointments_create_on_call_post","security":[{"APIKeyHeader":[]},{"HTTPBearer":[]}],"parameters":[{"name":"appointment_id","in":"query","required":true,"schema":{"type":"string","title":"Appointment Id"}},{"name":"engagement_id","in":"query","required":true,"schema":{"type":"string","title":"Engagement Id"}},{"name":"organization-id","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Organization-Id"}},{"name":"x-user-id","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"X-User-Id"}},{"name":"timezone","in":"header","required":false,"schema":{"type":"string","default":"UTC","title":"Timezone"}},{"name":"x-actor-email","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"X-Actor-Email"}},{"name":"x-request-source","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"X-Request-Source"}},{"name":"x-operation-id","in":"header","required":false,"schema":{"anyOf":[{"type":"string","maxLength":36},{"type":"null"}],"title":"X-Operation-Id"}},{"name":"x-commit-message","in":"header","required":false,"schema":{"anyOf":[{"type":"string","minLength":1},{"type":"null"}],"title":"X-Commit-Message"}},{"name":"x-confirmation-id","in":"header","required":false,"schema":{"anyOf":[{"type":"string","maxLength":36},{"type":"null"}],"title":"X-Confirmation-Id"}},{"name":"x-chat-id","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"X-Chat-Id"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/notifications/engagements/needs-support":{"post":{"tags":["engagements"],"summary":"Needs Support","operationId":"needs_support_notifications_engagements_needs_support_post","security":[{"APIKeyHeader":[]},{"HTTPBearer":[]}],"parameters":[{"name":"engagement_id","in":"query","required":true,"schema":{"type":"string","title":"Engagement Id"}},{"name":"summary","in":"query","required":true,"schema":{"type":"string","title":"Summary"}},{"name":"support_reason","in":"query","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Support Reason"}},{"name":"organization-id","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Organization-Id"}},{"name":"x-user-id","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"X-User-Id"}},{"name":"timezone","in":"header","required":false,"schema":{"type":"string","default":"UTC","title":"Timezone"}},{"name":"x-actor-email","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"X-Actor-Email"}},{"name":"x-request-source","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"X-Request-Source"}},{"name":"x-operation-id","in":"header","required":false,"schema":{"anyOf":[{"type":"string","maxLength":36},{"type":"null"}],"title":"X-Operation-Id"}},{"name":"x-commit-message","in":"header","required":false,"schema":{"anyOf":[{"type":"string","minLength":1},{"type":"null"}],"title":"X-Commit-Message"}},{"name":"x-confirmation-id","in":"header","required":false,"schema":{"anyOf":[{"type":"string","maxLength":36},{"type":"null"}],"title":"X-Confirmation-Id"}},{"name":"x-chat-id","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"X-Chat-Id"}}],"requestBody":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/NeedsSupportRequest","default":{"agent_v2_ids":[],"roster_ids":[],"transcript_summary_truncated":false}}}}},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/notifications/estimates/interest":{"post":{"tags":["estimates"],"summary":"Interest","operationId":"interest_notifications_estimates_interest_post","security":[{"APIKeyHeader":[]},{"HTTPBearer":[]}],"parameters":[{"name":"estimate_id","in":"query","required":true,"schema":{"type":"string","title":"Estimate Id"}},{"name":"engagement_id","in":"query","required":true,"schema":{"type":"string","title":"Engagement Id"}},{"name":"organization-id","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Organization-Id"}},{"name":"x-user-id","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"X-User-Id"}},{"name":"timezone","in":"header","required":false,"schema":{"type":"string","default":"UTC","title":"Timezone"}},{"name":"x-actor-email","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"X-Actor-Email"}},{"name":"x-request-source","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"X-Request-Source"}},{"name":"x-operation-id","in":"header","required":false,"schema":{"anyOf":[{"type":"string","maxLength":36},{"type":"null"}],"title":"X-Operation-Id"}},{"name":"x-commit-message","in":"header","required":false,"schema":{"anyOf":[{"type":"string","minLength":1},{"type":"null"}],"title":"X-Commit-Message"}},{"name":"x-confirmation-id","in":"header","required":false,"schema":{"anyOf":[{"type":"string","maxLength":36},{"type":"null"}],"title":"X-Confirmation-Id"}},{"name":"x-chat-id","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"X-Chat-Id"}}],"requestBody":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/NotificationFilters","default":{"agent_v2_ids":[],"roster_ids":[]}}}}},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/notifications/estimates/request":{"post":{"tags":["estimates"],"summary":"Request","operationId":"request_notifications_estimates_request_post","security":[{"APIKeyHeader":[]},{"HTTPBearer":[]}],"parameters":[{"name":"estimate_id","in":"query","required":true,"schema":{"type":"string","title":"Estimate Id"}},{"name":"engagement_id","in":"query","required":true,"schema":{"type":"string","title":"Engagement Id"}},{"name":"organization-id","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Organization-Id"}},{"name":"x-user-id","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"X-User-Id"}},{"name":"timezone","in":"header","required":false,"schema":{"type":"string","default":"UTC","title":"Timezone"}},{"name":"x-actor-email","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"X-Actor-Email"}},{"name":"x-request-source","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"X-Request-Source"}},{"name":"x-operation-id","in":"header","required":false,"schema":{"anyOf":[{"type":"string","maxLength":36},{"type":"null"}],"title":"X-Operation-Id"}},{"name":"x-commit-message","in":"header","required":false,"schema":{"anyOf":[{"type":"string","minLength":1},{"type":"null"}],"title":"X-Commit-Message"}},{"name":"x-confirmation-id","in":"header","required":false,"schema":{"anyOf":[{"type":"string","maxLength":36},{"type":"null"}],"title":"X-Confirmation-Id"}},{"name":"x-chat-id","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"X-Chat-Id"}}],"requestBody":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/NotificationFilters","default":{"agent_v2_ids":[],"roster_ids":[]}}}}},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/notifications/estimates/dismissed":{"post":{"tags":["estimates"],"summary":"Dismissed","operationId":"dismissed_notifications_estimates_dismissed_post","security":[{"APIKeyHeader":[]},{"HTTPBearer":[]}],"parameters":[{"name":"estimate_id","in":"query","required":true,"schema":{"type":"string","title":"Estimate Id"}},{"name":"engagement_id","in":"query","required":true,"schema":{"type":"string","title":"Engagement Id"}},{"name":"organization-id","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Organization-Id"}},{"name":"x-user-id","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"X-User-Id"}},{"name":"timezone","in":"header","required":false,"schema":{"type":"string","default":"UTC","title":"Timezone"}},{"name":"x-actor-email","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"X-Actor-Email"}},{"name":"x-request-source","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"X-Request-Source"}},{"name":"x-operation-id","in":"header","required":false,"schema":{"anyOf":[{"type":"string","maxLength":36},{"type":"null"}],"title":"X-Operation-Id"}},{"name":"x-commit-message","in":"header","required":false,"schema":{"anyOf":[{"type":"string","minLength":1},{"type":"null"}],"title":"X-Commit-Message"}},{"name":"x-confirmation-id","in":"header","required":false,"schema":{"anyOf":[{"type":"string","maxLength":36},{"type":"null"}],"title":"X-Confirmation-Id"}},{"name":"x-chat-id","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"X-Chat-Id"}}],"requestBody":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/NotificationFilters","default":{"agent_v2_ids":[],"roster_ids":[]}}}}},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/notifications/recipients":{"get":{"tags":["notifications"],"summary":"List Recipients","description":"List people for this org.\n\nReturns the union of existing `Recipient` rows and all\nactive `auth.user` rows linked to the org. A Recipient whose `user_id` no\nlonger holds a live role link is omitted, matching the membership test the\ndelivery path already applies. Users without a Recipient\nappear as synthesized entries; the surface `id` for USER recipients\nis always `user_id` (whether or not a Recipient row exists yet) so\nthe frontend's selection survives lazy materialization. Group\nsupport has been retired — `groups` is always `[]` for legacy\ncallers. Every member sees the whole org; UpSmith staff\nare hidden from non-UpSmith-admin callers. `can_edit` is whether the\ncaller administers this organization's notifications: the check every\nsettings write applies, though anyone may turn their own calls on or off.","operationId":"list_recipients_notifications_recipients_get","security":[{"APIKeyHeader":[]},{"HTTPBearer":[]}],"parameters":[{"name":"organization-id","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Organization-Id"}},{"name":"x-user-id","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"X-User-Id"}},{"name":"timezone","in":"header","required":false,"schema":{"type":"string","default":"UTC","title":"Timezone"}},{"name":"x-actor-email","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"X-Actor-Email"}},{"name":"x-request-source","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"X-Request-Source"}},{"name":"x-operation-id","in":"header","required":false,"schema":{"anyOf":[{"type":"string","maxLength":36},{"type":"null"}],"title":"X-Operation-Id"}},{"name":"x-commit-message","in":"header","required":false,"schema":{"anyOf":[{"type":"string","minLength":1},{"type":"null"}],"title":"X-Commit-Message"}},{"name":"x-confirmation-id","in":"header","required":false,"schema":{"anyOf":[{"type":"string","maxLength":36},{"type":"null"}],"title":"X-Confirmation-Id"}},{"name":"x-chat-id","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"X-Chat-Id"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/RecipientListResponse"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/notifications/feeds":{"get":{"tags":["notifications"],"summary":"List Feeds","description":"Event feeds (global) + roster agent feeds active in this org.\n\nRoster is a global reference table, so \"this org's feeds\" is the set of\npublic rosters that back the org's live v2 agents.","operationId":"list_feeds_notifications_feeds_get","security":[{"APIKeyHeader":[]},{"HTTPBearer":[]}],"parameters":[{"name":"organization-id","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Organization-Id"}},{"name":"x-user-id","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"X-User-Id"}},{"name":"timezone","in":"header","required":false,"schema":{"type":"string","default":"UTC","title":"Timezone"}},{"name":"x-actor-email","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"X-Actor-Email"}},{"name":"x-request-source","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"X-Request-Source"}},{"name":"x-operation-id","in":"header","required":false,"schema":{"anyOf":[{"type":"string","maxLength":36},{"type":"null"}],"title":"X-Operation-Id"}},{"name":"x-commit-message","in":"header","required":false,"schema":{"anyOf":[{"type":"string","minLength":1},{"type":"null"}],"title":"X-Commit-Message"}},{"name":"x-confirmation-id","in":"header","required":false,"schema":{"anyOf":[{"type":"string","maxLength":36},{"type":"null"}],"title":"X-Confirmation-Id"}},{"name":"x-chat-id","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"X-Chat-Id"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/FeedsResponse"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/notifications/escalation-emails":{"post":{"tags":["notifications"],"summary":"Set Escalation Emails","description":"Switch the organization's escalation emails on or off; off leaves escalations to the Escalated filter.","operationId":"set_escalation_emails_notifications_escalation_emails_post","security":[{"APIKeyHeader":[]},{"HTTPBearer":[]}],"parameters":[{"name":"organization-id","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Organization-Id"}},{"name":"x-user-id","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"X-User-Id"}},{"name":"timezone","in":"header","required":false,"schema":{"type":"string","default":"UTC","title":"Timezone"}},{"name":"x-actor-email","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"X-Actor-Email"}},{"name":"x-request-source","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"X-Request-Source"}},{"name":"x-operation-id","in":"header","required":false,"schema":{"anyOf":[{"type":"string","maxLength":36},{"type":"null"}],"title":"X-Operation-Id"}},{"name":"x-commit-message","in":"header","required":false,"schema":{"anyOf":[{"type":"string","minLength":1},{"type":"null"}],"title":"X-Commit-Message"}},{"name":"x-confirmation-id","in":"header","required":false,"schema":{"anyOf":[{"type":"string","maxLength":36},{"type":"null"}],"title":"X-Confirmation-Id"}},{"name":"x-chat-id","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"X-Chat-Id"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/EscalationEmailsBody"}}}},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/api__schemas__notification__notifications__StatusResponse"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/notifications/recipients/channel":{"post":{"tags":["notifications"],"summary":"Toggle Recipient Channel","description":"Flip one recipient channel.","operationId":"toggle_recipient_channel_notifications_recipients_channel_post","security":[{"APIKeyHeader":[]},{"HTTPBearer":[]}],"parameters":[{"name":"organization-id","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Organization-Id"}},{"name":"x-user-id","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"X-User-Id"}},{"name":"timezone","in":"header","required":false,"schema":{"type":"string","default":"UTC","title":"Timezone"}},{"name":"x-actor-email","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"X-Actor-Email"}},{"name":"x-request-source","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"X-Request-Source"}},{"name":"x-operation-id","in":"header","required":false,"schema":{"anyOf":[{"type":"string","maxLength":36},{"type":"null"}],"title":"X-Operation-Id"}},{"name":"x-commit-message","in":"header","required":false,"schema":{"anyOf":[{"type":"string","minLength":1},{"type":"null"}],"title":"X-Commit-Message"}},{"name":"x-confirmation-id","in":"header","required":false,"schema":{"anyOf":[{"type":"string","maxLength":36},{"type":"null"}],"title":"X-Confirmation-Id"}},{"name":"x-chat-id","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"X-Chat-Id"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ChannelToggleBody"}}}},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/api__schemas__notification__notifications__StatusResponse"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/notifications/recipients/invite":{"post":{"tags":["notifications"],"summary":"Invite Recipient","description":"Create a notification recipient from an existing org user.","operationId":"invite_recipient_notifications_recipients_invite_post","security":[{"APIKeyHeader":[]},{"HTTPBearer":[]}],"parameters":[{"name":"organization-id","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Organization-Id"}},{"name":"x-user-id","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"X-User-Id"}},{"name":"timezone","in":"header","required":false,"schema":{"type":"string","default":"UTC","title":"Timezone"}},{"name":"x-actor-email","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"X-Actor-Email"}},{"name":"x-request-source","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"X-Request-Source"}},{"name":"x-operation-id","in":"header","required":false,"schema":{"anyOf":[{"type":"string","maxLength":36},{"type":"null"}],"title":"X-Operation-Id"}},{"name":"x-commit-message","in":"header","required":false,"schema":{"anyOf":[{"type":"string","minLength":1},{"type":"null"}],"title":"X-Commit-Message"}},{"name":"x-confirmation-id","in":"header","required":false,"schema":{"anyOf":[{"type":"string","maxLength":36},{"type":"null"}],"title":"X-Confirmation-Id"}},{"name":"x-chat-id","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"X-Chat-Id"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/InviteBody"}}}},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/InviteRecipientResponse"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/notifications/history":{"get":{"tags":["notifications"],"summary":"List History","description":"Sent email and SMS notifications for this org, with optional filters.","operationId":"list_history_notifications_history_get","security":[{"APIKeyHeader":[]},{"HTTPBearer":[]}],"parameters":[{"name":"recipient_id","in":"query","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Recipient Id"}},{"name":"notification_type","in":"query","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Notification Type"}},{"name":"search","in":"query","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Search"}},{"name":"limit","in":"query","required":false,"schema":{"type":"integer","maximum":100,"default":50,"title":"Limit"}},{"name":"offset","in":"query","required":false,"schema":{"type":"integer","minimum":0,"default":0,"title":"Offset"}},{"name":"organization-id","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Organization-Id"}},{"name":"x-user-id","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"X-User-Id"}},{"name":"timezone","in":"header","required":false,"schema":{"type":"string","default":"UTC","title":"Timezone"}},{"name":"x-actor-email","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"X-Actor-Email"}},{"name":"x-request-source","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"X-Request-Source"}},{"name":"x-operation-id","in":"header","required":false,"schema":{"anyOf":[{"type":"string","maxLength":36},{"type":"null"}],"title":"X-Operation-Id"}},{"name":"x-commit-message","in":"header","required":false,"schema":{"anyOf":[{"type":"string","minLength":1},{"type":"null"}],"title":"X-Commit-Message"}},{"name":"x-confirmation-id","in":"header","required":false,"schema":{"anyOf":[{"type":"string","maxLength":36},{"type":"null"}],"title":"X-Confirmation-Id"}},{"name":"x-chat-id","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"X-Chat-Id"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HistoryListResponse"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/notifications/on-call/rotations":{"get":{"tags":["notification-on-call"],"summary":"List On Call Lists","operationId":"list_on_call_lists_notifications_on_call_rotations_get","security":[{"APIKeyHeader":[]},{"HTTPBearer":[]}],"parameters":[{"name":"handoffs","in":"query","required":false,"schema":{"type":"integer","maximum":12,"minimum":0,"default":4,"title":"Handoffs"}},{"name":"organization-id","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Organization-Id"}},{"name":"x-user-id","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"X-User-Id"}},{"name":"timezone","in":"header","required":false,"schema":{"type":"string","default":"UTC","title":"Timezone"}},{"name":"x-actor-email","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"X-Actor-Email"}},{"name":"x-request-source","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"X-Request-Source"}},{"name":"x-operation-id","in":"header","required":false,"schema":{"anyOf":[{"type":"string","maxLength":36},{"type":"null"}],"title":"X-Operation-Id"}},{"name":"x-commit-message","in":"header","required":false,"schema":{"anyOf":[{"type":"string","minLength":1},{"type":"null"}],"title":"X-Commit-Message"}},{"name":"x-confirmation-id","in":"header","required":false,"schema":{"anyOf":[{"type":"string","maxLength":36},{"type":"null"}],"title":"X-Confirmation-Id"}},{"name":"x-chat-id","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"X-Chat-Id"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"type":"array","items":{"$ref":"#/components/schemas/OnCallListView"},"title":"Response List On Call Lists Notifications On Call Rotations Get"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}},"post":{"tags":["notification-on-call"],"summary":"Create On Call List","operationId":"create_on_call_list_notifications_on_call_rotations_post","security":[{"APIKeyHeader":[]},{"HTTPBearer":[]}],"parameters":[{"name":"organization-id","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Organization-Id"}},{"name":"x-user-id","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"X-User-Id"}},{"name":"timezone","in":"header","required":false,"schema":{"type":"string","default":"UTC","title":"Timezone"}},{"name":"x-actor-email","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"X-Actor-Email"}},{"name":"x-request-source","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"X-Request-Source"}},{"name":"x-operation-id","in":"header","required":false,"schema":{"anyOf":[{"type":"string","maxLength":36},{"type":"null"}],"title":"X-Operation-Id"}},{"name":"x-commit-message","in":"header","required":false,"schema":{"anyOf":[{"type":"string","minLength":1},{"type":"null"}],"title":"X-Commit-Message"}},{"name":"x-confirmation-id","in":"header","required":false,"schema":{"anyOf":[{"type":"string","maxLength":36},{"type":"null"}],"title":"X-Confirmation-Id"}},{"name":"x-chat-id","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"X-Chat-Id"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/OnCallListCreate"}}}},"responses":{"201":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/OnCallListView"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/notifications/on-call/rotations/{list_id}":{"get":{"tags":["notification-on-call"],"summary":"Read On Call List","description":"The list as it stands at ``at``, now by default. A time with no offset is read on the list's clock.","operationId":"read_on_call_list_notifications_on_call_rotations__list_id__get","security":[{"APIKeyHeader":[]},{"HTTPBearer":[]}],"parameters":[{"name":"list_id","in":"path","required":true,"schema":{"type":"string","title":"List Id"}},{"name":"at","in":"query","required":false,"schema":{"anyOf":[{"type":"string","format":"date-time"},{"type":"null"}],"title":"At"}},{"name":"handoffs","in":"query","required":false,"schema":{"type":"integer","maximum":12,"minimum":0,"default":4,"title":"Handoffs"}},{"name":"organization-id","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Organization-Id"}},{"name":"x-user-id","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"X-User-Id"}},{"name":"timezone","in":"header","required":false,"schema":{"type":"string","default":"UTC","title":"Timezone"}},{"name":"x-actor-email","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"X-Actor-Email"}},{"name":"x-request-source","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"X-Request-Source"}},{"name":"x-operation-id","in":"header","required":false,"schema":{"anyOf":[{"type":"string","maxLength":36},{"type":"null"}],"title":"X-Operation-Id"}},{"name":"x-commit-message","in":"header","required":false,"schema":{"anyOf":[{"type":"string","minLength":1},{"type":"null"}],"title":"X-Commit-Message"}},{"name":"x-confirmation-id","in":"header","required":false,"schema":{"anyOf":[{"type":"string","maxLength":36},{"type":"null"}],"title":"X-Confirmation-Id"}},{"name":"x-chat-id","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"X-Chat-Id"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/OnCallListView"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}},"patch":{"tags":["notification-on-call"],"summary":"Update On Call List","description":"Change the fields given. Whoever is on call stays on call unless ``on_call_now_user_id`` names someone else.","operationId":"update_on_call_list_notifications_on_call_rotations__list_id__patch","security":[{"APIKeyHeader":[]},{"HTTPBearer":[]}],"parameters":[{"name":"list_id","in":"path","required":true,"schema":{"type":"string","title":"List Id"}},{"name":"organization-id","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Organization-Id"}},{"name":"x-user-id","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"X-User-Id"}},{"name":"timezone","in":"header","required":false,"schema":{"type":"string","default":"UTC","title":"Timezone"}},{"name":"x-actor-email","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"X-Actor-Email"}},{"name":"x-request-source","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"X-Request-Source"}},{"name":"x-operation-id","in":"header","required":false,"schema":{"anyOf":[{"type":"string","maxLength":36},{"type":"null"}],"title":"X-Operation-Id"}},{"name":"x-commit-message","in":"header","required":false,"schema":{"anyOf":[{"type":"string","minLength":1},{"type":"null"}],"title":"X-Commit-Message"}},{"name":"x-confirmation-id","in":"header","required":false,"schema":{"anyOf":[{"type":"string","maxLength":36},{"type":"null"}],"title":"X-Confirmation-Id"}},{"name":"x-chat-id","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"X-Chat-Id"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/OnCallListUpdate"}}}},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/OnCallListView"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}},"delete":{"tags":["notification-on-call"],"summary":"Delete On Call List","operationId":"delete_on_call_list_notifications_on_call_rotations__list_id__delete","security":[{"APIKeyHeader":[]},{"HTTPBearer":[]}],"parameters":[{"name":"list_id","in":"path","required":true,"schema":{"type":"string","title":"List Id"}},{"name":"organization-id","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Organization-Id"}},{"name":"x-user-id","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"X-User-Id"}},{"name":"timezone","in":"header","required":false,"schema":{"type":"string","default":"UTC","title":"Timezone"}},{"name":"x-actor-email","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"X-Actor-Email"}},{"name":"x-request-source","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"X-Request-Source"}},{"name":"x-operation-id","in":"header","required":false,"schema":{"anyOf":[{"type":"string","maxLength":36},{"type":"null"}],"title":"X-Operation-Id"}},{"name":"x-commit-message","in":"header","required":false,"schema":{"anyOf":[{"type":"string","minLength":1},{"type":"null"}],"title":"X-Commit-Message"}},{"name":"x-confirmation-id","in":"header","required":false,"schema":{"anyOf":[{"type":"string","maxLength":36},{"type":"null"}],"title":"X-Confirmation-Id"}},{"name":"x-chat-id","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"X-Chat-Id"}}],"responses":{"204":{"description":"Successful Response"},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/notifications/on-call/rotations/preview":{"post":{"tags":["notification-on-call"],"summary":"Preview On Call List","description":"A change to a list, or a new one, as it would stand, and the issues that would stop it. Saves nothing.","operationId":"preview_on_call_list_notifications_on_call_rotations_preview_post","security":[{"APIKeyHeader":[]},{"HTTPBearer":[]}],"parameters":[{"name":"organization-id","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Organization-Id"}},{"name":"x-user-id","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"X-User-Id"}},{"name":"timezone","in":"header","required":false,"schema":{"type":"string","default":"UTC","title":"Timezone"}},{"name":"x-actor-email","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"X-Actor-Email"}},{"name":"x-request-source","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"X-Request-Source"}},{"name":"x-operation-id","in":"header","required":false,"schema":{"anyOf":[{"type":"string","maxLength":36},{"type":"null"}],"title":"X-Operation-Id"}},{"name":"x-commit-message","in":"header","required":false,"schema":{"anyOf":[{"type":"string","minLength":1},{"type":"null"}],"title":"X-Commit-Message"}},{"name":"x-confirmation-id","in":"header","required":false,"schema":{"anyOf":[{"type":"string","maxLength":36},{"type":"null"}],"title":"X-Confirmation-Id"}},{"name":"x-chat-id","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"X-Chat-Id"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/OnCallListPreviewRequest"}}}},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/OnCallListPreview"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/notifications/on-call/rotations/{list_id}/swaps":{"post":{"tags":["notification-on-call"],"summary":"Add On Call Swap","operationId":"add_on_call_swap_notifications_on_call_rotations__list_id__swaps_post","security":[{"APIKeyHeader":[]},{"HTTPBearer":[]}],"parameters":[{"name":"list_id","in":"path","required":true,"schema":{"type":"string","title":"List Id"}},{"name":"organization-id","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Organization-Id"}},{"name":"x-user-id","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"X-User-Id"}},{"name":"timezone","in":"header","required":false,"schema":{"type":"string","default":"UTC","title":"Timezone"}},{"name":"x-actor-email","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"X-Actor-Email"}},{"name":"x-request-source","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"X-Request-Source"}},{"name":"x-operation-id","in":"header","required":false,"schema":{"anyOf":[{"type":"string","maxLength":36},{"type":"null"}],"title":"X-Operation-Id"}},{"name":"x-commit-message","in":"header","required":false,"schema":{"anyOf":[{"type":"string","minLength":1},{"type":"null"}],"title":"X-Commit-Message"}},{"name":"x-confirmation-id","in":"header","required":false,"schema":{"anyOf":[{"type":"string","maxLength":36},{"type":"null"}],"title":"X-Confirmation-Id"}},{"name":"x-chat-id","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"X-Chat-Id"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/OnCallSwapCreate"}}}},"responses":{"201":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/OnCallListView"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/notifications/on-call/rotations/{list_id}/swaps/{swap_id}":{"delete":{"tags":["notification-on-call"],"summary":"Remove On Call Swap","operationId":"remove_on_call_swap_notifications_on_call_rotations__list_id__swaps__swap_id__delete","security":[{"APIKeyHeader":[]},{"HTTPBearer":[]}],"parameters":[{"name":"list_id","in":"path","required":true,"schema":{"type":"string","title":"List Id"}},{"name":"swap_id","in":"path","required":true,"schema":{"type":"string","title":"Swap Id"}},{"name":"organization-id","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Organization-Id"}},{"name":"x-user-id","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"X-User-Id"}},{"name":"timezone","in":"header","required":false,"schema":{"type":"string","default":"UTC","title":"Timezone"}},{"name":"x-actor-email","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"X-Actor-Email"}},{"name":"x-request-source","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"X-Request-Source"}},{"name":"x-operation-id","in":"header","required":false,"schema":{"anyOf":[{"type":"string","maxLength":36},{"type":"null"}],"title":"X-Operation-Id"}},{"name":"x-commit-message","in":"header","required":false,"schema":{"anyOf":[{"type":"string","minLength":1},{"type":"null"}],"title":"X-Commit-Message"}},{"name":"x-confirmation-id","in":"header","required":false,"schema":{"anyOf":[{"type":"string","maxLength":36},{"type":"null"}],"title":"X-Confirmation-Id"}},{"name":"x-chat-id","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"X-Chat-Id"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/OnCallListView"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/notifications/receivers":{"get":{"tags":["notification-receivers"],"summary":"List Receivers","operationId":"list_receivers_notifications_receivers_get","security":[{"APIKeyHeader":[]},{"HTTPBearer":[]}],"parameters":[{"name":"organization-id","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Organization-Id"}},{"name":"x-user-id","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"X-User-Id"}},{"name":"timezone","in":"header","required":false,"schema":{"type":"string","default":"UTC","title":"Timezone"}},{"name":"x-actor-email","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"X-Actor-Email"}},{"name":"x-request-source","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"X-Request-Source"}},{"name":"x-operation-id","in":"header","required":false,"schema":{"anyOf":[{"type":"string","maxLength":36},{"type":"null"}],"title":"X-Operation-Id"}},{"name":"x-commit-message","in":"header","required":false,"schema":{"anyOf":[{"type":"string","minLength":1},{"type":"null"}],"title":"X-Commit-Message"}},{"name":"x-confirmation-id","in":"header","required":false,"schema":{"anyOf":[{"type":"string","maxLength":36},{"type":"null"}],"title":"X-Confirmation-Id"}},{"name":"x-chat-id","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"X-Chat-Id"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ReceiversResponse"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/notifications/receivers/on-call":{"get":{"tags":["notification-receivers"],"summary":"On Call Now","description":"Who each rotation reaches at ``at``, now by default. ``at`` needs its offset.","operationId":"on_call_now_notifications_receivers_on_call_get","security":[{"APIKeyHeader":[]},{"HTTPBearer":[]}],"parameters":[{"name":"at","in":"query","required":false,"schema":{"anyOf":[{"type":"string","format":"date-time"},{"type":"null"}],"title":"At"}},{"name":"organization-id","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Organization-Id"}},{"name":"x-user-id","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"X-User-Id"}},{"name":"timezone","in":"header","required":false,"schema":{"type":"string","default":"UTC","title":"Timezone"}},{"name":"x-actor-email","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"X-Actor-Email"}},{"name":"x-request-source","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"X-Request-Source"}},{"name":"x-operation-id","in":"header","required":false,"schema":{"anyOf":[{"type":"string","maxLength":36},{"type":"null"}],"title":"X-Operation-Id"}},{"name":"x-commit-message","in":"header","required":false,"schema":{"anyOf":[{"type":"string","minLength":1},{"type":"null"}],"title":"X-Commit-Message"}},{"name":"x-confirmation-id","in":"header","required":false,"schema":{"anyOf":[{"type":"string","maxLength":36},{"type":"null"}],"title":"X-Confirmation-Id"}},{"name":"x-chat-id","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"X-Chat-Id"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/OnCallResponse"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/notifications/receivers/mailboxes":{"post":{"tags":["notification-receivers"],"summary":"Create Mailbox","operationId":"create_mailbox_notifications_receivers_mailboxes_post","security":[{"APIKeyHeader":[]},{"HTTPBearer":[]}],"parameters":[{"name":"organization-id","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Organization-Id"}},{"name":"x-user-id","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"X-User-Id"}},{"name":"timezone","in":"header","required":false,"schema":{"type":"string","default":"UTC","title":"Timezone"}},{"name":"x-actor-email","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"X-Actor-Email"}},{"name":"x-request-source","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"X-Request-Source"}},{"name":"x-operation-id","in":"header","required":false,"schema":{"anyOf":[{"type":"string","maxLength":36},{"type":"null"}],"title":"X-Operation-Id"}},{"name":"x-commit-message","in":"header","required":false,"schema":{"anyOf":[{"type":"string","minLength":1},{"type":"null"}],"title":"X-Commit-Message"}},{"name":"x-confirmation-id","in":"header","required":false,"schema":{"anyOf":[{"type":"string","maxLength":36},{"type":"null"}],"title":"X-Confirmation-Id"}},{"name":"x-chat-id","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"X-Chat-Id"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/MailboxCreateRequest"}}}},"responses":{"201":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/MailboxResponse"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/notifications/receivers/mailboxes/{recipient_id}":{"patch":{"tags":["notification-receivers"],"summary":"Update Mailbox","operationId":"update_mailbox_notifications_receivers_mailboxes__recipient_id__patch","security":[{"APIKeyHeader":[]},{"HTTPBearer":[]}],"parameters":[{"name":"recipient_id","in":"path","required":true,"schema":{"type":"string","title":"Recipient Id"}},{"name":"organization-id","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Organization-Id"}},{"name":"x-user-id","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"X-User-Id"}},{"name":"timezone","in":"header","required":false,"schema":{"type":"string","default":"UTC","title":"Timezone"}},{"name":"x-actor-email","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"X-Actor-Email"}},{"name":"x-request-source","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"X-Request-Source"}},{"name":"x-operation-id","in":"header","required":false,"schema":{"anyOf":[{"type":"string","maxLength":36},{"type":"null"}],"title":"X-Operation-Id"}},{"name":"x-commit-message","in":"header","required":false,"schema":{"anyOf":[{"type":"string","minLength":1},{"type":"null"}],"title":"X-Commit-Message"}},{"name":"x-confirmation-id","in":"header","required":false,"schema":{"anyOf":[{"type":"string","maxLength":36},{"type":"null"}],"title":"X-Confirmation-Id"}},{"name":"x-chat-id","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"X-Chat-Id"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/MailboxUpdateRequest"}}}},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/MailboxResponse"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/notifications/rules/vocabulary":{"get":{"tags":["notification-rules"],"summary":"Read Rule Vocabulary","description":"What a rule may read and produce, derived from the registry.\n\nOrganization-independent: the vocabulary is the same everywhere, and what differs per\norganization is which recipients and campaigns its values can name.","operationId":"read_rule_vocabulary_notifications_rules_vocabulary_get","security":[{"APIKeyHeader":[]},{"HTTPBearer":[]}],"parameters":[{"name":"organization-id","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Organization-Id"}},{"name":"x-user-id","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"X-User-Id"}},{"name":"timezone","in":"header","required":false,"schema":{"type":"string","default":"UTC","title":"Timezone"}},{"name":"x-actor-email","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"X-Actor-Email"}},{"name":"x-request-source","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"X-Request-Source"}},{"name":"x-operation-id","in":"header","required":false,"schema":{"anyOf":[{"type":"string","maxLength":36},{"type":"null"}],"title":"X-Operation-Id"}},{"name":"x-commit-message","in":"header","required":false,"schema":{"anyOf":[{"type":"string","minLength":1},{"type":"null"}],"title":"X-Commit-Message"}},{"name":"x-confirmation-id","in":"header","required":false,"schema":{"anyOf":[{"type":"string","maxLength":36},{"type":"null"}],"title":"X-Confirmation-Id"}},{"name":"x-chat-id","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"X-Chat-Id"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/RuleVocabularyResponse"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/notifications/rules/validate":{"post":{"tags":["notification-rules"],"summary":"Validate Rule","description":"Check a candidate document, and read it back, without storing it.\n\nOpen to any member, unlike ``/preview``: it evaluates nothing and reads no event, so the answer\nis a property of the document the caller already holds -- plus the check every save makes, that\nan on-call list it names exists in this organization, and that a website-lead rule names only\npeople that notification may reach.","operationId":"validate_rule_notifications_rules_validate_post","security":[{"APIKeyHeader":[]},{"HTTPBearer":[]}],"parameters":[{"name":"organization-id","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Organization-Id"}},{"name":"x-user-id","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"X-User-Id"}},{"name":"timezone","in":"header","required":false,"schema":{"type":"string","default":"UTC","title":"Timezone"}},{"name":"x-actor-email","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"X-Actor-Email"}},{"name":"x-request-source","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"X-Request-Source"}},{"name":"x-operation-id","in":"header","required":false,"schema":{"anyOf":[{"type":"string","maxLength":36},{"type":"null"}],"title":"X-Operation-Id"}},{"name":"x-commit-message","in":"header","required":false,"schema":{"anyOf":[{"type":"string","minLength":1},{"type":"null"}],"title":"X-Commit-Message"}},{"name":"x-confirmation-id","in":"header","required":false,"schema":{"anyOf":[{"type":"string","maxLength":36},{"type":"null"}],"title":"X-Confirmation-Id"}},{"name":"x-chat-id","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"X-Chat-Id"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/RuleValidationRequest"}}}},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/RuleValidationResponse"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/notifications/rules/preview":{"post":{"tags":["notification-rules"],"summary":"Preview Rule","description":"Run a draft against real events without storing it.\n\nOrganization admin rather than member, although it stores nothing. It evaluates an arbitrary\ncaller-supplied document against this organization's real escalations and calls and reports\nwhat it read, which is an authoring capability; a member who may read the rules list has not\nthereby been given it.\n\nDeclared before ``/{rule_key}`` has no bearing -- there is no ``POST /{rule_key}`` -- but it\nstays with the other literal paths so the file reads in one order.","operationId":"preview_rule_notifications_rules_preview_post","security":[{"APIKeyHeader":[]},{"HTTPBearer":[]}],"parameters":[{"name":"organization-id","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Organization-Id"}},{"name":"x-user-id","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"X-User-Id"}},{"name":"timezone","in":"header","required":false,"schema":{"type":"string","default":"UTC","title":"Timezone"}},{"name":"x-actor-email","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"X-Actor-Email"}},{"name":"x-request-source","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"X-Request-Source"}},{"name":"x-operation-id","in":"header","required":false,"schema":{"anyOf":[{"type":"string","maxLength":36},{"type":"null"}],"title":"X-Operation-Id"}},{"name":"x-commit-message","in":"header","required":false,"schema":{"anyOf":[{"type":"string","minLength":1},{"type":"null"}],"title":"X-Commit-Message"}},{"name":"x-confirmation-id","in":"header","required":false,"schema":{"anyOf":[{"type":"string","maxLength":36},{"type":"null"}],"title":"X-Confirmation-Id"}},{"name":"x-chat-id","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"X-Chat-Id"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/RulePreviewRequest"}}}},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/RulePreviewResponse"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/notifications/rules/silence-check":{"post":{"tags":["notification-rules"],"summary":"Check Rule Silence","description":"What a proposed version of a rule would stop telling anybody about.\n\nOrganization admin for the same reason as ``/preview``, which it is built on: it runs a\ncaller-supplied document against this organization's real escalations and calls. It stores\nnothing and decides nothing -- a change it warns about is still the author's to make.","operationId":"check_rule_silence_notifications_rules_silence_check_post","security":[{"APIKeyHeader":[]},{"HTTPBearer":[]}],"parameters":[{"name":"organization-id","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Organization-Id"}},{"name":"x-user-id","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"X-User-Id"}},{"name":"timezone","in":"header","required":false,"schema":{"type":"string","default":"UTC","title":"Timezone"}},{"name":"x-actor-email","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"X-Actor-Email"}},{"name":"x-request-source","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"X-Request-Source"}},{"name":"x-operation-id","in":"header","required":false,"schema":{"anyOf":[{"type":"string","maxLength":36},{"type":"null"}],"title":"X-Operation-Id"}},{"name":"x-commit-message","in":"header","required":false,"schema":{"anyOf":[{"type":"string","minLength":1},{"type":"null"}],"title":"X-Commit-Message"}},{"name":"x-confirmation-id","in":"header","required":false,"schema":{"anyOf":[{"type":"string","maxLength":36},{"type":"null"}],"title":"X-Confirmation-Id"}},{"name":"x-chat-id","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"X-Chat-Id"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/RuleSilenceCheckRequest"}}}},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/RuleSilenceCheckResponse"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/notifications/rules/criteria":{"get":{"tags":["notification-rules"],"summary":"List Rule Criteria","description":"The criteria this organization's conversations are scored against.\n\nOrganization-scoped, unlike ``/vocabulary``: which criteria exist is the organization's own\ntag definitions, and a rule names one by id.","operationId":"list_rule_criteria_notifications_rules_criteria_get","security":[{"APIKeyHeader":[]},{"HTTPBearer":[]}],"parameters":[{"name":"organization-id","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Organization-Id"}},{"name":"x-user-id","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"X-User-Id"}},{"name":"timezone","in":"header","required":false,"schema":{"type":"string","default":"UTC","title":"Timezone"}},{"name":"x-actor-email","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"X-Actor-Email"}},{"name":"x-request-source","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"X-Request-Source"}},{"name":"x-operation-id","in":"header","required":false,"schema":{"anyOf":[{"type":"string","maxLength":36},{"type":"null"}],"title":"X-Operation-Id"}},{"name":"x-commit-message","in":"header","required":false,"schema":{"anyOf":[{"type":"string","minLength":1},{"type":"null"}],"title":"X-Commit-Message"}},{"name":"x-confirmation-id","in":"header","required":false,"schema":{"anyOf":[{"type":"string","maxLength":36},{"type":"null"}],"title":"X-Confirmation-Id"}},{"name":"x-chat-id","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"X-Chat-Id"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"type":"array","items":{"$ref":"#/components/schemas/RuleCriterion"},"title":"Response List Rule Criteria Notifications Rules Criteria Get"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/notifications/rules/coverage":{"get":{"tags":["notification-rules"],"summary":"Read Rule Coverage","description":"What this organization's live rules leave uncovered.\n\nA read, open to any member: it reports on the organization's own configuration and names no\ndocument. Changing routing is what needs an admin.","operationId":"read_rule_coverage_notifications_rules_coverage_get","security":[{"APIKeyHeader":[]},{"HTTPBearer":[]}],"parameters":[{"name":"organization-id","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Organization-Id"}},{"name":"x-user-id","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"X-User-Id"}},{"name":"timezone","in":"header","required":false,"schema":{"type":"string","default":"UTC","title":"Timezone"}},{"name":"x-actor-email","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"X-Actor-Email"}},{"name":"x-request-source","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"X-Request-Source"}},{"name":"x-operation-id","in":"header","required":false,"schema":{"anyOf":[{"type":"string","maxLength":36},{"type":"null"}],"title":"X-Operation-Id"}},{"name":"x-commit-message","in":"header","required":false,"schema":{"anyOf":[{"type":"string","minLength":1},{"type":"null"}],"title":"X-Commit-Message"}},{"name":"x-confirmation-id","in":"header","required":false,"schema":{"anyOf":[{"type":"string","maxLength":36},{"type":"null"}],"title":"X-Confirmation-Id"}},{"name":"x-chat-id","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"X-Chat-Id"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/RuleCoverageResponse"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/notifications/rules":{"get":{"tags":["notification-rules"],"summary":"List Rules","operationId":"list_rules_notifications_rules_get","security":[{"APIKeyHeader":[]},{"HTTPBearer":[]}],"parameters":[{"name":"event_type","in":"query","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Event Type"}},{"name":"active_only","in":"query","required":false,"schema":{"type":"boolean","default":false,"title":"Active Only"}},{"name":"include_decision","in":"query","required":false,"schema":{"type":"boolean","default":false,"title":"Include Decision"}},{"name":"organization-id","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Organization-Id"}},{"name":"x-user-id","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"X-User-Id"}},{"name":"timezone","in":"header","required":false,"schema":{"type":"string","default":"UTC","title":"Timezone"}},{"name":"x-actor-email","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"X-Actor-Email"}},{"name":"x-request-source","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"X-Request-Source"}},{"name":"x-operation-id","in":"header","required":false,"schema":{"anyOf":[{"type":"string","maxLength":36},{"type":"null"}],"title":"X-Operation-Id"}},{"name":"x-commit-message","in":"header","required":false,"schema":{"anyOf":[{"type":"string","minLength":1},{"type":"null"}],"title":"X-Commit-Message"}},{"name":"x-confirmation-id","in":"header","required":false,"schema":{"anyOf":[{"type":"string","maxLength":36},{"type":"null"}],"title":"X-Confirmation-Id"}},{"name":"x-chat-id","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"X-Chat-Id"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"type":"array","items":{"$ref":"#/components/schemas/RuleSummaryResponse"},"title":"Response List Rules Notifications Rules Get"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}},"post":{"tags":["notification-rules"],"summary":"Create Rule","description":"Store a new rule as a draft. It is not activated, by this or by any other client.","operationId":"create_rule_notifications_rules_post","security":[{"APIKeyHeader":[]},{"HTTPBearer":[]}],"parameters":[{"name":"organization-id","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Organization-Id"}},{"name":"x-user-id","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"X-User-Id"}},{"name":"timezone","in":"header","required":false,"schema":{"type":"string","default":"UTC","title":"Timezone"}},{"name":"x-actor-email","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"X-Actor-Email"}},{"name":"x-request-source","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"X-Request-Source"}},{"name":"x-operation-id","in":"header","required":false,"schema":{"anyOf":[{"type":"string","maxLength":36},{"type":"null"}],"title":"X-Operation-Id"}},{"name":"x-commit-message","in":"header","required":false,"schema":{"anyOf":[{"type":"string","minLength":1},{"type":"null"}],"title":"X-Commit-Message"}},{"name":"x-confirmation-id","in":"header","required":false,"schema":{"anyOf":[{"type":"string","maxLength":36},{"type":"null"}],"title":"X-Confirmation-Id"}},{"name":"x-chat-id","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"X-Chat-Id"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/RuleCreateRequest"}}}},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/RuleSaveResponse"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/notifications/rules/{rule_key}":{"get":{"tags":["notification-rules"],"summary":"Read Rule","operationId":"read_rule_notifications_rules__rule_key__get","security":[{"APIKeyHeader":[]},{"HTTPBearer":[]}],"parameters":[{"name":"rule_key","in":"path","required":true,"schema":{"type":"string","title":"Rule Key"}},{"name":"organization-id","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Organization-Id"}},{"name":"x-user-id","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"X-User-Id"}},{"name":"timezone","in":"header","required":false,"schema":{"type":"string","default":"UTC","title":"Timezone"}},{"name":"x-actor-email","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"X-Actor-Email"}},{"name":"x-request-source","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"X-Request-Source"}},{"name":"x-operation-id","in":"header","required":false,"schema":{"anyOf":[{"type":"string","maxLength":36},{"type":"null"}],"title":"X-Operation-Id"}},{"name":"x-commit-message","in":"header","required":false,"schema":{"anyOf":[{"type":"string","minLength":1},{"type":"null"}],"title":"X-Commit-Message"}},{"name":"x-confirmation-id","in":"header","required":false,"schema":{"anyOf":[{"type":"string","maxLength":36},{"type":"null"}],"title":"X-Confirmation-Id"}},{"name":"x-chat-id","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"X-Chat-Id"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/RuleResponse"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}},"put":{"tags":["notification-rules"],"summary":"Update Rule","description":"Append a version. 409 when ``base_version`` is not the chain's current maximum.\n\nAn edit to a live rule stays live, so ``now_uncovered`` names any event type it dropped that\nno other active rule covers.","operationId":"update_rule_notifications_rules__rule_key__put","security":[{"APIKeyHeader":[]},{"HTTPBearer":[]}],"parameters":[{"name":"rule_key","in":"path","required":true,"schema":{"type":"string","title":"Rule Key"}},{"name":"organization-id","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Organization-Id"}},{"name":"x-user-id","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"X-User-Id"}},{"name":"timezone","in":"header","required":false,"schema":{"type":"string","default":"UTC","title":"Timezone"}},{"name":"x-actor-email","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"X-Actor-Email"}},{"name":"x-request-source","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"X-Request-Source"}},{"name":"x-operation-id","in":"header","required":false,"schema":{"anyOf":[{"type":"string","maxLength":36},{"type":"null"}],"title":"X-Operation-Id"}},{"name":"x-commit-message","in":"header","required":false,"schema":{"anyOf":[{"type":"string","minLength":1},{"type":"null"}],"title":"X-Commit-Message"}},{"name":"x-confirmation-id","in":"header","required":false,"schema":{"anyOf":[{"type":"string","maxLength":36},{"type":"null"}],"title":"X-Confirmation-Id"}},{"name":"x-chat-id","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"X-Chat-Id"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/RuleUpdateRequest"}}}},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/RuleSaveResponse"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}},"delete":{"tags":["notification-rules"],"summary":"Delete Rule","description":"Soft-delete every version of the chain, freeing its key for reuse.\n\nLogged with its author, because deleting writes no version and leaves nothing on the chain to\nsay who did it.","operationId":"delete_rule_notifications_rules__rule_key__delete","security":[{"APIKeyHeader":[]},{"HTTPBearer":[]}],"parameters":[{"name":"rule_key","in":"path","required":true,"schema":{"type":"string","title":"Rule Key"}},{"name":"organization-id","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Organization-Id"}},{"name":"x-user-id","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"X-User-Id"}},{"name":"timezone","in":"header","required":false,"schema":{"type":"string","default":"UTC","title":"Timezone"}},{"name":"x-actor-email","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"X-Actor-Email"}},{"name":"x-request-source","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"X-Request-Source"}},{"name":"x-operation-id","in":"header","required":false,"schema":{"anyOf":[{"type":"string","maxLength":36},{"type":"null"}],"title":"X-Operation-Id"}},{"name":"x-commit-message","in":"header","required":false,"schema":{"anyOf":[{"type":"string","minLength":1},{"type":"null"}],"title":"X-Commit-Message"}},{"name":"x-confirmation-id","in":"header","required":false,"schema":{"anyOf":[{"type":"string","maxLength":36},{"type":"null"}],"title":"X-Confirmation-Id"}},{"name":"x-chat-id","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"X-Chat-Id"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/RuleDeleteResponse"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/notifications/rules/{rule_key}/versions":{"get":{"tags":["notification-rules"],"summary":"Read Rule Versions","description":"A rule's activity: every version, newest first, and who wrote it.\n\n404 rather than an empty list for a rule this organization does not have, so the route\ncannot be used to learn which rule keys exist elsewhere.","operationId":"read_rule_versions_notifications_rules__rule_key__versions_get","security":[{"APIKeyHeader":[]},{"HTTPBearer":[]}],"parameters":[{"name":"rule_key","in":"path","required":true,"schema":{"type":"string","title":"Rule Key"}},{"name":"organization-id","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Organization-Id"}},{"name":"x-user-id","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"X-User-Id"}},{"name":"timezone","in":"header","required":false,"schema":{"type":"string","default":"UTC","title":"Timezone"}},{"name":"x-actor-email","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"X-Actor-Email"}},{"name":"x-request-source","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"X-Request-Source"}},{"name":"x-operation-id","in":"header","required":false,"schema":{"anyOf":[{"type":"string","maxLength":36},{"type":"null"}],"title":"X-Operation-Id"}},{"name":"x-commit-message","in":"header","required":false,"schema":{"anyOf":[{"type":"string","minLength":1},{"type":"null"}],"title":"X-Commit-Message"}},{"name":"x-confirmation-id","in":"header","required":false,"schema":{"anyOf":[{"type":"string","maxLength":36},{"type":"null"}],"title":"X-Confirmation-Id"}},{"name":"x-chat-id","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"X-Chat-Id"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"type":"array","items":{"$ref":"#/components/schemas/RuleVersionResponse"},"title":"Response Read Rule Versions Notifications Rules  Rule Key  Versions Get"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/notifications/rules/{rule_key}/activate":{"post":{"tags":["notification-rules"],"summary":"Activate Rule","description":"Put the newest version into service.\n\n422 when the stored document could never notify anyone, and also when it no longer\nvalidates -- a rule stored before a vocabulary change can stop being activatable, which is\nthe honest answer rather than activating something the evaluator would refuse.\n``now_uncovered`` names what the version it replaced covered and this one does not.","operationId":"activate_rule_notifications_rules__rule_key__activate_post","security":[{"APIKeyHeader":[]},{"HTTPBearer":[]}],"parameters":[{"name":"rule_key","in":"path","required":true,"schema":{"type":"string","title":"Rule Key"}},{"name":"organization-id","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Organization-Id"}},{"name":"x-user-id","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"X-User-Id"}},{"name":"timezone","in":"header","required":false,"schema":{"type":"string","default":"UTC","title":"Timezone"}},{"name":"x-actor-email","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"X-Actor-Email"}},{"name":"x-request-source","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"X-Request-Source"}},{"name":"x-operation-id","in":"header","required":false,"schema":{"anyOf":[{"type":"string","maxLength":36},{"type":"null"}],"title":"X-Operation-Id"}},{"name":"x-commit-message","in":"header","required":false,"schema":{"anyOf":[{"type":"string","minLength":1},{"type":"null"}],"title":"X-Commit-Message"}},{"name":"x-confirmation-id","in":"header","required":false,"schema":{"anyOf":[{"type":"string","maxLength":36},{"type":"null"}],"title":"X-Confirmation-Id"}},{"name":"x-chat-id","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"X-Chat-Id"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/RuleActivateResponse"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/notifications/rules/{rule_key}/deactivate":{"post":{"tags":["notification-rules"],"summary":"Deactivate Rule","description":"Take this rule out of service, even when it is the last one covering its event type.\n\nThe response says which event types that left uncovered rather than refusing the call.","operationId":"deactivate_rule_notifications_rules__rule_key__deactivate_post","security":[{"APIKeyHeader":[]},{"HTTPBearer":[]}],"parameters":[{"name":"rule_key","in":"path","required":true,"schema":{"type":"string","title":"Rule Key"}},{"name":"organization-id","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Organization-Id"}},{"name":"x-user-id","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"X-User-Id"}},{"name":"timezone","in":"header","required":false,"schema":{"type":"string","default":"UTC","title":"Timezone"}},{"name":"x-actor-email","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"X-Actor-Email"}},{"name":"x-request-source","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"X-Request-Source"}},{"name":"x-operation-id","in":"header","required":false,"schema":{"anyOf":[{"type":"string","maxLength":36},{"type":"null"}],"title":"X-Operation-Id"}},{"name":"x-commit-message","in":"header","required":false,"schema":{"anyOf":[{"type":"string","minLength":1},{"type":"null"}],"title":"X-Commit-Message"}},{"name":"x-confirmation-id","in":"header","required":false,"schema":{"anyOf":[{"type":"string","maxLength":36},{"type":"null"}],"title":"X-Confirmation-Id"}},{"name":"x-chat-id","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"X-Chat-Id"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/RuleDeactivateResponse"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/notifications/subscriptions/renewal/request":{"post":{"tags":["subscriptions"],"summary":"Renewal Request","operationId":"renewal_request_notifications_subscriptions_renewal_request_post","security":[{"APIKeyHeader":[]},{"HTTPBearer":[]}],"parameters":[{"name":"subscription_id","in":"query","required":true,"schema":{"type":"string","title":"Subscription Id"}},{"name":"engagement_id","in":"query","required":true,"schema":{"type":"string","title":"Engagement Id"}},{"name":"organization-id","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Organization-Id"}},{"name":"x-user-id","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"X-User-Id"}},{"name":"timezone","in":"header","required":false,"schema":{"type":"string","default":"UTC","title":"Timezone"}},{"name":"x-actor-email","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"X-Actor-Email"}},{"name":"x-request-source","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"X-Request-Source"}},{"name":"x-operation-id","in":"header","required":false,"schema":{"anyOf":[{"type":"string","maxLength":36},{"type":"null"}],"title":"X-Operation-Id"}},{"name":"x-commit-message","in":"header","required":false,"schema":{"anyOf":[{"type":"string","minLength":1},{"type":"null"}],"title":"X-Commit-Message"}},{"name":"x-confirmation-id","in":"header","required":false,"schema":{"anyOf":[{"type":"string","maxLength":36},{"type":"null"}],"title":"X-Confirmation-Id"}},{"name":"x-chat-id","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"X-Chat-Id"}}],"requestBody":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/NotificationFilters","default":{"agent_v2_ids":[],"roster_ids":[]}}}}},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/notifications/subscriptions/cancellation/request":{"post":{"tags":["subscriptions"],"summary":"Cancellation Request","operationId":"cancellation_request_notifications_subscriptions_cancellation_request_post","security":[{"APIKeyHeader":[]},{"HTTPBearer":[]}],"parameters":[{"name":"subscription_id","in":"query","required":true,"schema":{"type":"string","title":"Subscription Id"}},{"name":"engagement_id","in":"query","required":true,"schema":{"type":"string","title":"Engagement Id"}},{"name":"organization-id","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Organization-Id"}},{"name":"x-user-id","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"X-User-Id"}},{"name":"timezone","in":"header","required":false,"schema":{"type":"string","default":"UTC","title":"Timezone"}},{"name":"x-actor-email","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"X-Actor-Email"}},{"name":"x-request-source","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"X-Request-Source"}},{"name":"x-operation-id","in":"header","required":false,"schema":{"anyOf":[{"type":"string","maxLength":36},{"type":"null"}],"title":"X-Operation-Id"}},{"name":"x-commit-message","in":"header","required":false,"schema":{"anyOf":[{"type":"string","minLength":1},{"type":"null"}],"title":"X-Commit-Message"}},{"name":"x-confirmation-id","in":"header","required":false,"schema":{"anyOf":[{"type":"string","maxLength":36},{"type":"null"}],"title":"X-Confirmation-Id"}},{"name":"x-chat-id","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"X-Chat-Id"}}],"requestBody":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/NotificationFilters","default":{"agent_v2_ids":[],"roster_ids":[]}}}}},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/notifications/subscriptions/creation/request":{"post":{"tags":["subscriptions"],"summary":"Creation Request","operationId":"creation_request_notifications_subscriptions_creation_request_post","security":[{"APIKeyHeader":[]},{"HTTPBearer":[]}],"parameters":[{"name":"engagement_id","in":"query","required":true,"schema":{"type":"string","title":"Engagement Id"}},{"name":"organization-id","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Organization-Id"}},{"name":"x-user-id","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"X-User-Id"}},{"name":"timezone","in":"header","required":false,"schema":{"type":"string","default":"UTC","title":"Timezone"}},{"name":"x-actor-email","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"X-Actor-Email"}},{"name":"x-request-source","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"X-Request-Source"}},{"name":"x-operation-id","in":"header","required":false,"schema":{"anyOf":[{"type":"string","maxLength":36},{"type":"null"}],"title":"X-Operation-Id"}},{"name":"x-commit-message","in":"header","required":false,"schema":{"anyOf":[{"type":"string","minLength":1},{"type":"null"}],"title":"X-Commit-Message"}},{"name":"x-confirmation-id","in":"header","required":false,"schema":{"anyOf":[{"type":"string","maxLength":36},{"type":"null"}],"title":"X-Confirmation-Id"}},{"name":"x-chat-id","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"X-Chat-Id"}}],"requestBody":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/NotificationFilters","default":{"agent_v2_ids":[],"roster_ids":[]}}}}},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/lsa/google-accounts":{"get":{"tags":["lsa"],"summary":"List Google Lsa Accounts","operationId":"list_google_lsa_accounts_lsa_google_accounts_get","security":[{"APIKeyHeader":[]},{"HTTPBearer":[]}],"parameters":[{"name":"force_refresh","in":"query","required":false,"schema":{"type":"boolean","default":false,"title":"Force Refresh"}},{"name":"organization-id","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Organization-Id"}},{"name":"x-user-id","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"X-User-Id"}},{"name":"timezone","in":"header","required":false,"schema":{"type":"string","default":"UTC","title":"Timezone"}},{"name":"x-actor-email","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"X-Actor-Email"}},{"name":"x-request-source","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"X-Request-Source"}},{"name":"x-operation-id","in":"header","required":false,"schema":{"anyOf":[{"type":"string","maxLength":36},{"type":"null"}],"title":"X-Operation-Id"}},{"name":"x-commit-message","in":"header","required":false,"schema":{"anyOf":[{"type":"string","minLength":1},{"type":"null"}],"title":"X-Commit-Message"}},{"name":"x-confirmation-id","in":"header","required":false,"schema":{"anyOf":[{"type":"string","maxLength":36},{"type":"null"}],"title":"X-Confirmation-Id"}},{"name":"x-chat-id","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"X-Chat-Id"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"type":"array","items":{"$ref":"#/components/schemas/GoogleAdAccountInfo"},"title":"Response List Google Lsa Accounts Lsa Google Accounts Get"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/lsa/top-level-customers":{"get":{"tags":["lsa"],"summary":"Lsa Top Level Customers","description":"Phase A of the progressive picker — directly-accessible customers,\nclassified as leaf advertisers (probed inline) or MCCs (expand via\n/lsa/under-manager).","operationId":"lsa_top_level_customers_lsa_top_level_customers_get","security":[{"APIKeyHeader":[]},{"HTTPBearer":[]}],"parameters":[{"name":"organization-id","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Organization-Id"}},{"name":"x-user-id","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"X-User-Id"}},{"name":"timezone","in":"header","required":false,"schema":{"type":"string","default":"UTC","title":"Timezone"}},{"name":"x-actor-email","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"X-Actor-Email"}},{"name":"x-request-source","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"X-Request-Source"}},{"name":"x-operation-id","in":"header","required":false,"schema":{"anyOf":[{"type":"string","maxLength":36},{"type":"null"}],"title":"X-Operation-Id"}},{"name":"x-commit-message","in":"header","required":false,"schema":{"anyOf":[{"type":"string","minLength":1},{"type":"null"}],"title":"X-Commit-Message"}},{"name":"x-confirmation-id","in":"header","required":false,"schema":{"anyOf":[{"type":"string","maxLength":36},{"type":"null"}],"title":"X-Confirmation-Id"}},{"name":"x-chat-id","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"X-Chat-Id"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"type":"array","items":{"$ref":"#/components/schemas/LsaTopLevelCustomer"},"title":"Response Lsa Top Level Customers Lsa Top Level Customers Get"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/lsa/under-manager":{"get":{"tags":["lsa"],"summary":"Lsa Under Manager","description":"Phase B of the progressive picker — one MCC's level-1 children, split\ninto LSA-capable advertisers and nested sub-managers.","operationId":"lsa_under_manager_lsa_under_manager_get","security":[{"APIKeyHeader":[]},{"HTTPBearer":[]}],"parameters":[{"name":"manager_id","in":"query","required":true,"schema":{"type":"string","title":"Manager Id"}},{"name":"organization-id","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Organization-Id"}},{"name":"x-user-id","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"X-User-Id"}},{"name":"timezone","in":"header","required":false,"schema":{"type":"string","default":"UTC","title":"Timezone"}},{"name":"x-actor-email","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"X-Actor-Email"}},{"name":"x-request-source","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"X-Request-Source"}},{"name":"x-operation-id","in":"header","required":false,"schema":{"anyOf":[{"type":"string","maxLength":36},{"type":"null"}],"title":"X-Operation-Id"}},{"name":"x-commit-message","in":"header","required":false,"schema":{"anyOf":[{"type":"string","minLength":1},{"type":"null"}],"title":"X-Commit-Message"}},{"name":"x-confirmation-id","in":"header","required":false,"schema":{"anyOf":[{"type":"string","maxLength":36},{"type":"null"}],"title":"X-Confirmation-Id"}},{"name":"x-chat-id","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"X-Chat-Id"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/LsaWalkResult"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/lsa/account-status":{"get":{"tags":["lsa"],"summary":"Lsa Account Status","operationId":"lsa_account_status_lsa_account_status_get","security":[{"APIKeyHeader":[]},{"HTTPBearer":[]}],"parameters":[{"name":"organization-id","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Organization-Id"}},{"name":"x-user-id","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"X-User-Id"}},{"name":"timezone","in":"header","required":false,"schema":{"type":"string","default":"UTC","title":"Timezone"}},{"name":"x-actor-email","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"X-Actor-Email"}},{"name":"x-request-source","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"X-Request-Source"}},{"name":"x-operation-id","in":"header","required":false,"schema":{"anyOf":[{"type":"string","maxLength":36},{"type":"null"}],"title":"X-Operation-Id"}},{"name":"x-commit-message","in":"header","required":false,"schema":{"anyOf":[{"type":"string","minLength":1},{"type":"null"}],"title":"X-Commit-Message"}},{"name":"x-confirmation-id","in":"header","required":false,"schema":{"anyOf":[{"type":"string","maxLength":36},{"type":"null"}],"title":"X-Confirmation-Id"}},{"name":"x-chat-id","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"X-Chat-Id"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"type":"array","items":{"$ref":"#/components/schemas/LSAAccountStatus"},"title":"Response Lsa Account Status Lsa Account Status Get"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/lsa/poll":{"post":{"tags":["lsa"],"summary":"Poll Google Lsa Leads","operationId":"poll_google_lsa_leads_lsa_poll_post","security":[{"APIKeyHeader":[]},{"HTTPBearer":[]}],"parameters":[{"name":"organization-id","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Organization-Id"}},{"name":"x-user-id","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"X-User-Id"}},{"name":"timezone","in":"header","required":false,"schema":{"type":"string","default":"UTC","title":"Timezone"}},{"name":"x-actor-email","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"X-Actor-Email"}},{"name":"x-request-source","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"X-Request-Source"}},{"name":"x-operation-id","in":"header","required":false,"schema":{"anyOf":[{"type":"string","maxLength":36},{"type":"null"}],"title":"X-Operation-Id"}},{"name":"x-commit-message","in":"header","required":false,"schema":{"anyOf":[{"type":"string","minLength":1},{"type":"null"}],"title":"X-Commit-Message"}},{"name":"x-confirmation-id","in":"header","required":false,"schema":{"anyOf":[{"type":"string","maxLength":36},{"type":"null"}],"title":"X-Confirmation-Id"}},{"name":"x-chat-id","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"X-Chat-Id"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/LsaPollResult"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/lsa/account":{"post":{"tags":["lsa"],"summary":"Select Lsa Account","operationId":"select_lsa_account_lsa_account_post","security":[{"APIKeyHeader":[]},{"HTTPBearer":[]}],"parameters":[{"name":"organization-id","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Organization-Id"}},{"name":"x-user-id","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"X-User-Id"}},{"name":"timezone","in":"header","required":false,"schema":{"type":"string","default":"UTC","title":"Timezone"}},{"name":"x-actor-email","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"X-Actor-Email"}},{"name":"x-request-source","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"X-Request-Source"}},{"name":"x-operation-id","in":"header","required":false,"schema":{"anyOf":[{"type":"string","maxLength":36},{"type":"null"}],"title":"X-Operation-Id"}},{"name":"x-commit-message","in":"header","required":false,"schema":{"anyOf":[{"type":"string","minLength":1},{"type":"null"}],"title":"X-Commit-Message"}},{"name":"x-confirmation-id","in":"header","required":false,"schema":{"anyOf":[{"type":"string","maxLength":36},{"type":"null"}],"title":"X-Confirmation-Id"}},{"name":"x-chat-id","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"X-Chat-Id"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/SelectLsaAccountBody"}}}},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/api__schemas__leads__lsa_account__GoogleLSAAccountResponse"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}},"delete":{"tags":["lsa"],"summary":"Deactivate Lsa Account","operationId":"deactivate_lsa_account_lsa_account_delete","security":[{"APIKeyHeader":[]},{"HTTPBearer":[]}],"parameters":[{"name":"account_id","in":"query","required":true,"schema":{"type":"string","title":"Account Id"}},{"name":"organization-id","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Organization-Id"}},{"name":"x-user-id","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"X-User-Id"}},{"name":"timezone","in":"header","required":false,"schema":{"type":"string","default":"UTC","title":"Timezone"}},{"name":"x-actor-email","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"X-Actor-Email"}},{"name":"x-request-source","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"X-Request-Source"}},{"name":"x-operation-id","in":"header","required":false,"schema":{"anyOf":[{"type":"string","maxLength":36},{"type":"null"}],"title":"X-Operation-Id"}},{"name":"x-commit-message","in":"header","required":false,"schema":{"anyOf":[{"type":"string","minLength":1},{"type":"null"}],"title":"X-Commit-Message"}},{"name":"x-confirmation-id","in":"header","required":false,"schema":{"anyOf":[{"type":"string","maxLength":36},{"type":"null"}],"title":"X-Confirmation-Id"}},{"name":"x-chat-id","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"X-Chat-Id"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/DeactivateResponse"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/lsa/account/auto-reply":{"patch":{"tags":["lsa"],"summary":"Update Lsa Auto Reply","operationId":"update_lsa_auto_reply_lsa_account_auto_reply_patch","security":[{"APIKeyHeader":[]},{"HTTPBearer":[]}],"parameters":[{"name":"organization-id","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Organization-Id"}},{"name":"x-user-id","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"X-User-Id"}},{"name":"timezone","in":"header","required":false,"schema":{"type":"string","default":"UTC","title":"Timezone"}},{"name":"x-actor-email","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"X-Actor-Email"}},{"name":"x-request-source","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"X-Request-Source"}},{"name":"x-operation-id","in":"header","required":false,"schema":{"anyOf":[{"type":"string","maxLength":36},{"type":"null"}],"title":"X-Operation-Id"}},{"name":"x-commit-message","in":"header","required":false,"schema":{"anyOf":[{"type":"string","minLength":1},{"type":"null"}],"title":"X-Commit-Message"}},{"name":"x-confirmation-id","in":"header","required":false,"schema":{"anyOf":[{"type":"string","maxLength":36},{"type":"null"}],"title":"X-Confirmation-Id"}},{"name":"x-chat-id","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"X-Chat-Id"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/UpdateLsaAutoReplyBody"}}}},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/api__schemas__leads__lsa_account__GoogleLSAAccountResponse"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/lsa/account/brand":{"patch":{"tags":["lsa"],"summary":"Update Lsa Brand","operationId":"update_lsa_brand_lsa_account_brand_patch","security":[{"APIKeyHeader":[]},{"HTTPBearer":[]}],"parameters":[{"name":"organization-id","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Organization-Id"}},{"name":"x-user-id","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"X-User-Id"}},{"name":"timezone","in":"header","required":false,"schema":{"type":"string","default":"UTC","title":"Timezone"}},{"name":"x-actor-email","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"X-Actor-Email"}},{"name":"x-request-source","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"X-Request-Source"}},{"name":"x-operation-id","in":"header","required":false,"schema":{"anyOf":[{"type":"string","maxLength":36},{"type":"null"}],"title":"X-Operation-Id"}},{"name":"x-commit-message","in":"header","required":false,"schema":{"anyOf":[{"type":"string","minLength":1},{"type":"null"}],"title":"X-Commit-Message"}},{"name":"x-confirmation-id","in":"header","required":false,"schema":{"anyOf":[{"type":"string","maxLength":36},{"type":"null"}],"title":"X-Confirmation-Id"}},{"name":"x-chat-id","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"X-Chat-Id"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/UpdateLsaBrandBody"}}}},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/api__schemas__leads__lsa_account__GoogleLSAAccountResponse"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/lsa/account/business-units":{"get":{"tags":["lsa"],"summary":"List Lsa Account Business Units","description":"The ServiceTitan business units mapped to one of the org's LSA accounts — the multi-select's\ncurrent value, pre-seeded by the heuristic backfill.","operationId":"list_lsa_account_business_units_lsa_account_business_units_get","security":[{"APIKeyHeader":[]},{"HTTPBearer":[]}],"parameters":[{"name":"account_id","in":"query","required":true,"schema":{"type":"string","format":"uuid","title":"Account Id"}},{"name":"organization-id","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Organization-Id"}},{"name":"x-user-id","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"X-User-Id"}},{"name":"timezone","in":"header","required":false,"schema":{"type":"string","default":"UTC","title":"Timezone"}},{"name":"x-actor-email","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"X-Actor-Email"}},{"name":"x-request-source","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"X-Request-Source"}},{"name":"x-operation-id","in":"header","required":false,"schema":{"anyOf":[{"type":"string","maxLength":36},{"type":"null"}],"title":"X-Operation-Id"}},{"name":"x-commit-message","in":"header","required":false,"schema":{"anyOf":[{"type":"string","minLength":1},{"type":"null"}],"title":"X-Commit-Message"}},{"name":"x-confirmation-id","in":"header","required":false,"schema":{"anyOf":[{"type":"string","maxLength":36},{"type":"null"}],"title":"X-Confirmation-Id"}},{"name":"x-chat-id","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"X-Chat-Id"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"type":"array","items":{"$ref":"#/components/schemas/GoogleLSAAccountBusinessUnitResponse"},"title":"Response List Lsa Account Business Units Lsa Account Business Units Get"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}},"put":{"tags":["lsa"],"summary":"Set Lsa Account Business Units","description":"Reconcile an LSA account's mapped business-unit set to the posted ids (adds new, soft-deletes\nremoved), scoped to the caller's org.","operationId":"set_lsa_account_business_units_lsa_account_business_units_put","security":[{"APIKeyHeader":[]},{"HTTPBearer":[]}],"parameters":[{"name":"organization-id","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Organization-Id"}},{"name":"x-user-id","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"X-User-Id"}},{"name":"timezone","in":"header","required":false,"schema":{"type":"string","default":"UTC","title":"Timezone"}},{"name":"x-actor-email","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"X-Actor-Email"}},{"name":"x-request-source","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"X-Request-Source"}},{"name":"x-operation-id","in":"header","required":false,"schema":{"anyOf":[{"type":"string","maxLength":36},{"type":"null"}],"title":"X-Operation-Id"}},{"name":"x-commit-message","in":"header","required":false,"schema":{"anyOf":[{"type":"string","minLength":1},{"type":"null"}],"title":"X-Commit-Message"}},{"name":"x-confirmation-id","in":"header","required":false,"schema":{"anyOf":[{"type":"string","maxLength":36},{"type":"null"}],"title":"X-Confirmation-Id"}},{"name":"x-chat-id","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"X-Chat-Id"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/SetLsaAccountBusinessUnitsBody"}}}},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"type":"array","items":{"$ref":"#/components/schemas/GoogleLSAAccountBusinessUnitResponse"},"title":"Response Set Lsa Account Business Units Lsa Account Business Units Put"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/lsa/campaign-settings":{"get":{"tags":["lsa"],"summary":"Get Google Lsa Campaign Settings","description":"The org's Lenny LSA campaign settings (live state + lead-type gate), proxied from\ncampaign-service. 404 when the LSA campaign isn't provisioned yet.","operationId":"get_google_lsa_campaign_settings_lsa_campaign_settings_get","security":[{"APIKeyHeader":[]},{"HTTPBearer":[]}],"parameters":[{"name":"organization-id","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Organization-Id"}},{"name":"x-user-id","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"X-User-Id"}},{"name":"timezone","in":"header","required":false,"schema":{"type":"string","default":"UTC","title":"Timezone"}},{"name":"x-actor-email","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"X-Actor-Email"}},{"name":"x-request-source","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"X-Request-Source"}},{"name":"x-operation-id","in":"header","required":false,"schema":{"anyOf":[{"type":"string","maxLength":36},{"type":"null"}],"title":"X-Operation-Id"}},{"name":"x-commit-message","in":"header","required":false,"schema":{"anyOf":[{"type":"string","minLength":1},{"type":"null"}],"title":"X-Commit-Message"}},{"name":"x-confirmation-id","in":"header","required":false,"schema":{"anyOf":[{"type":"string","maxLength":36},{"type":"null"}],"title":"X-Confirmation-Id"}},{"name":"x-chat-id","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"X-Chat-Id"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/GoogleLsaCampaignSettings"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}},"patch":{"tags":["lsa"],"summary":"Update Google Lsa Campaign Settings","description":"Update the org's Lenny LSA settings (only the provided fields), proxied to campaign-service.\n\nChoosing an agent for an org that has no campaign provisions one first: the agent is\nstored on the campaign, so there would otherwise be nowhere to put the selection and\nthe request would 404. Same orchestrator LSA connect uses, and idempotent.","operationId":"update_google_lsa_campaign_settings_lsa_campaign_settings_patch","security":[{"APIKeyHeader":[]},{"HTTPBearer":[]}],"parameters":[{"name":"organization-id","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Organization-Id"}},{"name":"x-user-id","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"X-User-Id"}},{"name":"timezone","in":"header","required":false,"schema":{"type":"string","default":"UTC","title":"Timezone"}},{"name":"x-actor-email","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"X-Actor-Email"}},{"name":"x-request-source","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"X-Request-Source"}},{"name":"x-operation-id","in":"header","required":false,"schema":{"anyOf":[{"type":"string","maxLength":36},{"type":"null"}],"title":"X-Operation-Id"}},{"name":"x-commit-message","in":"header","required":false,"schema":{"anyOf":[{"type":"string","minLength":1},{"type":"null"}],"title":"X-Commit-Message"}},{"name":"x-confirmation-id","in":"header","required":false,"schema":{"anyOf":[{"type":"string","maxLength":36},{"type":"null"}],"title":"X-Confirmation-Id"}},{"name":"x-chat-id","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"X-Chat-Id"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/UpdateGoogleLsaCampaignSettingsBody"}}}},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/GoogleLsaCampaignSettings"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/lsa/sync-pending":{"post":{"tags":["lsa"],"summary":"Sync Pending Lsa Leads","operationId":"sync_pending_lsa_leads_lsa_sync_pending_post","security":[{"APIKeyHeader":[]},{"HTTPBearer":[]}],"parameters":[{"name":"organization-id","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Organization-Id"}},{"name":"x-user-id","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"X-User-Id"}},{"name":"timezone","in":"header","required":false,"schema":{"type":"string","default":"UTC","title":"Timezone"}},{"name":"x-actor-email","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"X-Actor-Email"}},{"name":"x-request-source","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"X-Request-Source"}},{"name":"x-operation-id","in":"header","required":false,"schema":{"anyOf":[{"type":"string","maxLength":36},{"type":"null"}],"title":"X-Operation-Id"}},{"name":"x-commit-message","in":"header","required":false,"schema":{"anyOf":[{"type":"string","minLength":1},{"type":"null"}],"title":"X-Commit-Message"}},{"name":"x-confirmation-id","in":"header","required":false,"schema":{"anyOf":[{"type":"string","maxLength":36},{"type":"null"}],"title":"X-Confirmation-Id"}},{"name":"x-chat-id","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"X-Chat-Id"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/SyncPendingLsaLeadsBody"}}}},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/LsaSyncPendingResult"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/integrations/google-analytics/callback":{"post":{"tags":["integrations"],"summary":"Oauth Callback","operationId":"oauth_callback_integrations_google_analytics_callback_post","security":[{"APIKeyHeader":[]},{"HTTPBearer":[]}],"parameters":[{"name":"timezone","in":"header","required":false,"schema":{"type":"string","default":"UTC","title":"Timezone"}},{"name":"x-user-id","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"X-User-Id"}},{"name":"x-actor-email","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"X-Actor-Email"}},{"name":"x-request-source","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"X-Request-Source"}},{"name":"x-operation-id","in":"header","required":false,"schema":{"anyOf":[{"type":"string","maxLength":36},{"type":"null"}],"title":"X-Operation-Id"}},{"name":"x-commit-message","in":"header","required":false,"schema":{"anyOf":[{"type":"string","minLength":1},{"type":"null"}],"title":"X-Commit-Message"}},{"name":"x-confirmation-id","in":"header","required":false,"schema":{"anyOf":[{"type":"string","maxLength":36},{"type":"null"}],"title":"X-Confirmation-Id"}},{"name":"x-chat-id","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"X-Chat-Id"}},{"name":"organization-id","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Organization-Id"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/GoogleAnalyticsCallbackRequest"}}}},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/GoogleAnalyticsConnectionResponse"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/integrations/google-analytics/status":{"get":{"tags":["integrations"],"summary":"Get Status","description":"Database-only, so the Integrations page can read it on every load without calling Google.","operationId":"get_status_integrations_google_analytics_status_get","security":[{"APIKeyHeader":[]},{"HTTPBearer":[]}],"parameters":[{"name":"timezone","in":"header","required":false,"schema":{"type":"string","default":"UTC","title":"Timezone"}},{"name":"x-user-id","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"X-User-Id"}},{"name":"x-actor-email","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"X-Actor-Email"}},{"name":"x-request-source","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"X-Request-Source"}},{"name":"x-operation-id","in":"header","required":false,"schema":{"anyOf":[{"type":"string","maxLength":36},{"type":"null"}],"title":"X-Operation-Id"}},{"name":"x-commit-message","in":"header","required":false,"schema":{"anyOf":[{"type":"string","minLength":1},{"type":"null"}],"title":"X-Commit-Message"}},{"name":"x-confirmation-id","in":"header","required":false,"schema":{"anyOf":[{"type":"string","maxLength":36},{"type":"null"}],"title":"X-Confirmation-Id"}},{"name":"x-chat-id","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"X-Chat-Id"}},{"name":"organization-id","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Organization-Id"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/GoogleAnalyticsStatusResponse"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/integrations/google-analytics/properties":{"get":{"tags":["integrations"],"summary":"Get Properties","operationId":"get_properties_integrations_google_analytics_properties_get","security":[{"APIKeyHeader":[]},{"HTTPBearer":[]}],"parameters":[{"name":"timezone","in":"header","required":false,"schema":{"type":"string","default":"UTC","title":"Timezone"}},{"name":"x-user-id","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"X-User-Id"}},{"name":"x-actor-email","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"X-Actor-Email"}},{"name":"x-request-source","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"X-Request-Source"}},{"name":"x-operation-id","in":"header","required":false,"schema":{"anyOf":[{"type":"string","maxLength":36},{"type":"null"}],"title":"X-Operation-Id"}},{"name":"x-commit-message","in":"header","required":false,"schema":{"anyOf":[{"type":"string","minLength":1},{"type":"null"}],"title":"X-Commit-Message"}},{"name":"x-confirmation-id","in":"header","required":false,"schema":{"anyOf":[{"type":"string","maxLength":36},{"type":"null"}],"title":"X-Confirmation-Id"}},{"name":"x-chat-id","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"X-Chat-Id"}},{"name":"organization-id","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Organization-Id"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"type":"array","items":{"$ref":"#/components/schemas/GoogleAnalyticsPropertyResponse"},"title":"Response Get Properties Integrations Google Analytics Properties Get"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/integrations/google-analytics/property":{"put":{"tags":["integrations"],"summary":"Select Property","operationId":"select_property_integrations_google_analytics_property_put","security":[{"APIKeyHeader":[]},{"HTTPBearer":[]}],"parameters":[{"name":"timezone","in":"header","required":false,"schema":{"type":"string","default":"UTC","title":"Timezone"}},{"name":"x-user-id","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"X-User-Id"}},{"name":"x-actor-email","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"X-Actor-Email"}},{"name":"x-request-source","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"X-Request-Source"}},{"name":"x-operation-id","in":"header","required":false,"schema":{"anyOf":[{"type":"string","maxLength":36},{"type":"null"}],"title":"X-Operation-Id"}},{"name":"x-commit-message","in":"header","required":false,"schema":{"anyOf":[{"type":"string","minLength":1},{"type":"null"}],"title":"X-Commit-Message"}},{"name":"x-confirmation-id","in":"header","required":false,"schema":{"anyOf":[{"type":"string","maxLength":36},{"type":"null"}],"title":"X-Confirmation-Id"}},{"name":"x-chat-id","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"X-Chat-Id"}},{"name":"organization-id","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Organization-Id"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/GoogleAnalyticsSelectPropertyRequest"}}}},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/GoogleAnalyticsPropertyResponse"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/integrations/google-analytics/summary":{"get":{"tags":["integrations"],"summary":"Get Summary","operationId":"get_summary_integrations_google_analytics_summary_get","security":[{"APIKeyHeader":[]},{"HTTPBearer":[]}],"parameters":[{"name":"timezone","in":"header","required":false,"schema":{"type":"string","default":"UTC","title":"Timezone"}},{"name":"x-user-id","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"X-User-Id"}},{"name":"x-actor-email","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"X-Actor-Email"}},{"name":"x-request-source","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"X-Request-Source"}},{"name":"x-operation-id","in":"header","required":false,"schema":{"anyOf":[{"type":"string","maxLength":36},{"type":"null"}],"title":"X-Operation-Id"}},{"name":"x-commit-message","in":"header","required":false,"schema":{"anyOf":[{"type":"string","minLength":1},{"type":"null"}],"title":"X-Commit-Message"}},{"name":"x-confirmation-id","in":"header","required":false,"schema":{"anyOf":[{"type":"string","maxLength":36},{"type":"null"}],"title":"X-Confirmation-Id"}},{"name":"x-chat-id","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"X-Chat-Id"}},{"name":"organization-id","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Organization-Id"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/GoogleAnalyticsSummaryResponse"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/integrations/google-analytics/disconnect":{"post":{"tags":["integrations"],"summary":"Disconnect","operationId":"disconnect_integrations_google_analytics_disconnect_post","security":[{"APIKeyHeader":[]},{"HTTPBearer":[]}],"parameters":[{"name":"timezone","in":"header","required":false,"schema":{"type":"string","default":"UTC","title":"Timezone"}},{"name":"x-user-id","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"X-User-Id"}},{"name":"x-actor-email","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"X-Actor-Email"}},{"name":"x-request-source","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"X-Request-Source"}},{"name":"x-operation-id","in":"header","required":false,"schema":{"anyOf":[{"type":"string","maxLength":36},{"type":"null"}],"title":"X-Operation-Id"}},{"name":"x-commit-message","in":"header","required":false,"schema":{"anyOf":[{"type":"string","minLength":1},{"type":"null"}],"title":"X-Commit-Message"}},{"name":"x-confirmation-id","in":"header","required":false,"schema":{"anyOf":[{"type":"string","maxLength":36},{"type":"null"}],"title":"X-Confirmation-Id"}},{"name":"x-chat-id","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"X-Chat-Id"}},{"name":"organization-id","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Organization-Id"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/GoogleAnalyticsDisconnectResponse"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/integrations/google-business-profile/callback":{"post":{"tags":["integrations"],"summary":"Oauth Callback","operationId":"oauth_callback_integrations_google_business_profile_callback_post","security":[{"APIKeyHeader":[]},{"HTTPBearer":[]}],"parameters":[{"name":"timezone","in":"header","required":false,"schema":{"type":"string","default":"UTC","title":"Timezone"}},{"name":"x-user-id","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"X-User-Id"}},{"name":"x-actor-email","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"X-Actor-Email"}},{"name":"x-request-source","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"X-Request-Source"}},{"name":"x-operation-id","in":"header","required":false,"schema":{"anyOf":[{"type":"string","maxLength":36},{"type":"null"}],"title":"X-Operation-Id"}},{"name":"x-commit-message","in":"header","required":false,"schema":{"anyOf":[{"type":"string","minLength":1},{"type":"null"}],"title":"X-Commit-Message"}},{"name":"x-confirmation-id","in":"header","required":false,"schema":{"anyOf":[{"type":"string","maxLength":36},{"type":"null"}],"title":"X-Confirmation-Id"}},{"name":"x-chat-id","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"X-Chat-Id"}},{"name":"organization-id","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Organization-Id"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/GoogleBusinessProfileCallbackRequest"}}}},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/GoogleBusinessProfileConnectionResponse"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/integrations/google-business-profile/status":{"get":{"tags":["integrations"],"summary":"Get Status","description":"Database-only, so the Integrations page can read it on every load without calling Google.","operationId":"get_status_integrations_google_business_profile_status_get","security":[{"APIKeyHeader":[]},{"HTTPBearer":[]}],"parameters":[{"name":"timezone","in":"header","required":false,"schema":{"type":"string","default":"UTC","title":"Timezone"}},{"name":"x-user-id","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"X-User-Id"}},{"name":"x-actor-email","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"X-Actor-Email"}},{"name":"x-request-source","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"X-Request-Source"}},{"name":"x-operation-id","in":"header","required":false,"schema":{"anyOf":[{"type":"string","maxLength":36},{"type":"null"}],"title":"X-Operation-Id"}},{"name":"x-commit-message","in":"header","required":false,"schema":{"anyOf":[{"type":"string","minLength":1},{"type":"null"}],"title":"X-Commit-Message"}},{"name":"x-confirmation-id","in":"header","required":false,"schema":{"anyOf":[{"type":"string","maxLength":36},{"type":"null"}],"title":"X-Confirmation-Id"}},{"name":"x-chat-id","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"X-Chat-Id"}},{"name":"organization-id","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Organization-Id"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/GoogleBusinessProfileStatusResponse"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/integrations/google-business-profile/locations":{"get":{"tags":["integrations"],"summary":"Get Accessible Locations","operationId":"get_accessible_locations_integrations_google_business_profile_locations_get","security":[{"APIKeyHeader":[]},{"HTTPBearer":[]}],"parameters":[{"name":"timezone","in":"header","required":false,"schema":{"type":"string","default":"UTC","title":"Timezone"}},{"name":"x-user-id","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"X-User-Id"}},{"name":"x-actor-email","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"X-Actor-Email"}},{"name":"x-request-source","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"X-Request-Source"}},{"name":"x-operation-id","in":"header","required":false,"schema":{"anyOf":[{"type":"string","maxLength":36},{"type":"null"}],"title":"X-Operation-Id"}},{"name":"x-commit-message","in":"header","required":false,"schema":{"anyOf":[{"type":"string","minLength":1},{"type":"null"}],"title":"X-Commit-Message"}},{"name":"x-confirmation-id","in":"header","required":false,"schema":{"anyOf":[{"type":"string","maxLength":36},{"type":"null"}],"title":"X-Confirmation-Id"}},{"name":"x-chat-id","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"X-Chat-Id"}},{"name":"organization-id","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Organization-Id"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"type":"array","items":{"$ref":"#/components/schemas/GoogleBusinessProfileLocationResponse"},"title":"Response Get Accessible Locations Integrations Google Business Profile Locations Get"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}},"put":{"tags":["integrations"],"summary":"Select Locations","operationId":"select_locations_integrations_google_business_profile_locations_put","security":[{"APIKeyHeader":[]},{"HTTPBearer":[]}],"parameters":[{"name":"timezone","in":"header","required":false,"schema":{"type":"string","default":"UTC","title":"Timezone"}},{"name":"x-user-id","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"X-User-Id"}},{"name":"x-actor-email","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"X-Actor-Email"}},{"name":"x-request-source","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"X-Request-Source"}},{"name":"x-operation-id","in":"header","required":false,"schema":{"anyOf":[{"type":"string","maxLength":36},{"type":"null"}],"title":"X-Operation-Id"}},{"name":"x-commit-message","in":"header","required":false,"schema":{"anyOf":[{"type":"string","minLength":1},{"type":"null"}],"title":"X-Commit-Message"}},{"name":"x-confirmation-id","in":"header","required":false,"schema":{"anyOf":[{"type":"string","maxLength":36},{"type":"null"}],"title":"X-Confirmation-Id"}},{"name":"x-chat-id","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"X-Chat-Id"}},{"name":"organization-id","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Organization-Id"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/GoogleBusinessProfileSelectLocationsRequest"}}}},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"type":"array","items":{"$ref":"#/components/schemas/GoogleBusinessProfileLocationResponse"},"title":"Response Select Locations Integrations Google Business Profile Locations Put"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/integrations/google-business-profile/summary":{"get":{"tags":["integrations"],"summary":"Get Summary","operationId":"get_summary_integrations_google_business_profile_summary_get","security":[{"APIKeyHeader":[]},{"HTTPBearer":[]}],"parameters":[{"name":"timezone","in":"header","required":false,"schema":{"type":"string","default":"UTC","title":"Timezone"}},{"name":"x-user-id","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"X-User-Id"}},{"name":"x-actor-email","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"X-Actor-Email"}},{"name":"x-request-source","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"X-Request-Source"}},{"name":"x-operation-id","in":"header","required":false,"schema":{"anyOf":[{"type":"string","maxLength":36},{"type":"null"}],"title":"X-Operation-Id"}},{"name":"x-commit-message","in":"header","required":false,"schema":{"anyOf":[{"type":"string","minLength":1},{"type":"null"}],"title":"X-Commit-Message"}},{"name":"x-confirmation-id","in":"header","required":false,"schema":{"anyOf":[{"type":"string","maxLength":36},{"type":"null"}],"title":"X-Confirmation-Id"}},{"name":"x-chat-id","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"X-Chat-Id"}},{"name":"organization-id","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Organization-Id"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/GoogleBusinessProfileSummaryResponse"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/integrations/google-business-profile/disconnect":{"post":{"tags":["integrations"],"summary":"Disconnect","operationId":"disconnect_integrations_google_business_profile_disconnect_post","security":[{"APIKeyHeader":[]},{"HTTPBearer":[]}],"parameters":[{"name":"timezone","in":"header","required":false,"schema":{"type":"string","default":"UTC","title":"Timezone"}},{"name":"x-user-id","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"X-User-Id"}},{"name":"x-actor-email","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"X-Actor-Email"}},{"name":"x-request-source","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"X-Request-Source"}},{"name":"x-operation-id","in":"header","required":false,"schema":{"anyOf":[{"type":"string","maxLength":36},{"type":"null"}],"title":"X-Operation-Id"}},{"name":"x-commit-message","in":"header","required":false,"schema":{"anyOf":[{"type":"string","minLength":1},{"type":"null"}],"title":"X-Commit-Message"}},{"name":"x-confirmation-id","in":"header","required":false,"schema":{"anyOf":[{"type":"string","maxLength":36},{"type":"null"}],"title":"X-Confirmation-Id"}},{"name":"x-chat-id","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"X-Chat-Id"}},{"name":"organization-id","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Organization-Id"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/GoogleBusinessProfileDisconnectResponse"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/integrations/microsoft-ads/callback":{"post":{"tags":["integrations"],"summary":"Oauth Callback","operationId":"oauth_callback_integrations_microsoft_ads_callback_post","security":[{"APIKeyHeader":[]},{"HTTPBearer":[]}],"parameters":[{"name":"timezone","in":"header","required":false,"schema":{"type":"string","default":"UTC","title":"Timezone"}},{"name":"x-user-id","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"X-User-Id"}},{"name":"x-actor-email","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"X-Actor-Email"}},{"name":"x-request-source","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"X-Request-Source"}},{"name":"x-operation-id","in":"header","required":false,"schema":{"anyOf":[{"type":"string","maxLength":36},{"type":"null"}],"title":"X-Operation-Id"}},{"name":"x-commit-message","in":"header","required":false,"schema":{"anyOf":[{"type":"string","minLength":1},{"type":"null"}],"title":"X-Commit-Message"}},{"name":"x-confirmation-id","in":"header","required":false,"schema":{"anyOf":[{"type":"string","maxLength":36},{"type":"null"}],"title":"X-Confirmation-Id"}},{"name":"x-chat-id","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"X-Chat-Id"}},{"name":"organization-id","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Organization-Id"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/MicrosoftAdsCallbackRequest"}}}},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/MicrosoftAdsConnectionResponse"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/integrations/microsoft-ads/status":{"get":{"tags":["integrations"],"summary":"Get Status","description":"Database-only, so the Integrations page can read it on every load without calling Microsoft.","operationId":"get_status_integrations_microsoft_ads_status_get","security":[{"APIKeyHeader":[]},{"HTTPBearer":[]}],"parameters":[{"name":"timezone","in":"header","required":false,"schema":{"type":"string","default":"UTC","title":"Timezone"}},{"name":"x-user-id","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"X-User-Id"}},{"name":"x-actor-email","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"X-Actor-Email"}},{"name":"x-request-source","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"X-Request-Source"}},{"name":"x-operation-id","in":"header","required":false,"schema":{"anyOf":[{"type":"string","maxLength":36},{"type":"null"}],"title":"X-Operation-Id"}},{"name":"x-commit-message","in":"header","required":false,"schema":{"anyOf":[{"type":"string","minLength":1},{"type":"null"}],"title":"X-Commit-Message"}},{"name":"x-confirmation-id","in":"header","required":false,"schema":{"anyOf":[{"type":"string","maxLength":36},{"type":"null"}],"title":"X-Confirmation-Id"}},{"name":"x-chat-id","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"X-Chat-Id"}},{"name":"organization-id","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Organization-Id"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/MicrosoftAdsStatusResponse"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/integrations/microsoft-ads/accounts":{"get":{"tags":["integrations"],"summary":"List Accounts","operationId":"list_accounts_integrations_microsoft_ads_accounts_get","security":[{"APIKeyHeader":[]},{"HTTPBearer":[]}],"parameters":[{"name":"timezone","in":"header","required":false,"schema":{"type":"string","default":"UTC","title":"Timezone"}},{"name":"x-user-id","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"X-User-Id"}},{"name":"x-actor-email","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"X-Actor-Email"}},{"name":"x-request-source","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"X-Request-Source"}},{"name":"x-operation-id","in":"header","required":false,"schema":{"anyOf":[{"type":"string","maxLength":36},{"type":"null"}],"title":"X-Operation-Id"}},{"name":"x-commit-message","in":"header","required":false,"schema":{"anyOf":[{"type":"string","minLength":1},{"type":"null"}],"title":"X-Commit-Message"}},{"name":"x-confirmation-id","in":"header","required":false,"schema":{"anyOf":[{"type":"string","maxLength":36},{"type":"null"}],"title":"X-Confirmation-Id"}},{"name":"x-chat-id","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"X-Chat-Id"}},{"name":"organization-id","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Organization-Id"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"type":"array","items":{"$ref":"#/components/schemas/MicrosoftAdsAccountResponse"},"title":"Response List Accounts Integrations Microsoft Ads Accounts Get"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/integrations/microsoft-ads/disconnect":{"post":{"tags":["integrations"],"summary":"Disconnect","operationId":"disconnect_integrations_microsoft_ads_disconnect_post","security":[{"APIKeyHeader":[]},{"HTTPBearer":[]}],"parameters":[{"name":"timezone","in":"header","required":false,"schema":{"type":"string","default":"UTC","title":"Timezone"}},{"name":"x-user-id","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"X-User-Id"}},{"name":"x-actor-email","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"X-Actor-Email"}},{"name":"x-request-source","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"X-Request-Source"}},{"name":"x-operation-id","in":"header","required":false,"schema":{"anyOf":[{"type":"string","maxLength":36},{"type":"null"}],"title":"X-Operation-Id"}},{"name":"x-commit-message","in":"header","required":false,"schema":{"anyOf":[{"type":"string","minLength":1},{"type":"null"}],"title":"X-Commit-Message"}},{"name":"x-confirmation-id","in":"header","required":false,"schema":{"anyOf":[{"type":"string","maxLength":36},{"type":"null"}],"title":"X-Confirmation-Id"}},{"name":"x-chat-id","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"X-Chat-Id"}},{"name":"organization-id","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Organization-Id"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/MicrosoftAdsDisconnectResponse"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/integrations/semrush/connect":{"post":{"tags":["integrations"],"summary":"Connect","description":"Validate the key against Semrush before storing it, so a typo never reads as connected.","operationId":"connect_integrations_semrush_connect_post","security":[{"APIKeyHeader":[]},{"HTTPBearer":[]}],"parameters":[{"name":"timezone","in":"header","required":false,"schema":{"type":"string","default":"UTC","title":"Timezone"}},{"name":"x-user-id","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"X-User-Id"}},{"name":"x-actor-email","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"X-Actor-Email"}},{"name":"x-request-source","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"X-Request-Source"}},{"name":"x-operation-id","in":"header","required":false,"schema":{"anyOf":[{"type":"string","maxLength":36},{"type":"null"}],"title":"X-Operation-Id"}},{"name":"x-commit-message","in":"header","required":false,"schema":{"anyOf":[{"type":"string","minLength":1},{"type":"null"}],"title":"X-Commit-Message"}},{"name":"x-confirmation-id","in":"header","required":false,"schema":{"anyOf":[{"type":"string","maxLength":36},{"type":"null"}],"title":"X-Confirmation-Id"}},{"name":"x-chat-id","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"X-Chat-Id"}},{"name":"organization-id","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Organization-Id"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/SemrushConnectRequest"}}}},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/SemrushConnectionResponse"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/integrations/semrush/status":{"get":{"tags":["integrations"],"summary":"Get Status","description":"Database-only, so the Integrations page can read it on every load without spending Semrush API units.","operationId":"get_status_integrations_semrush_status_get","security":[{"APIKeyHeader":[]},{"HTTPBearer":[]}],"parameters":[{"name":"timezone","in":"header","required":false,"schema":{"type":"string","default":"UTC","title":"Timezone"}},{"name":"x-user-id","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"X-User-Id"}},{"name":"x-actor-email","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"X-Actor-Email"}},{"name":"x-request-source","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"X-Request-Source"}},{"name":"x-operation-id","in":"header","required":false,"schema":{"anyOf":[{"type":"string","maxLength":36},{"type":"null"}],"title":"X-Operation-Id"}},{"name":"x-commit-message","in":"header","required":false,"schema":{"anyOf":[{"type":"string","minLength":1},{"type":"null"}],"title":"X-Commit-Message"}},{"name":"x-confirmation-id","in":"header","required":false,"schema":{"anyOf":[{"type":"string","maxLength":36},{"type":"null"}],"title":"X-Confirmation-Id"}},{"name":"x-chat-id","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"X-Chat-Id"}},{"name":"organization-id","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Organization-Id"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/SemrushStatusResponse"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/integrations/semrush/disconnect":{"post":{"tags":["integrations"],"summary":"Disconnect","operationId":"disconnect_integrations_semrush_disconnect_post","security":[{"APIKeyHeader":[]},{"HTTPBearer":[]}],"parameters":[{"name":"timezone","in":"header","required":false,"schema":{"type":"string","default":"UTC","title":"Timezone"}},{"name":"x-user-id","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"X-User-Id"}},{"name":"x-actor-email","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"X-Actor-Email"}},{"name":"x-request-source","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"X-Request-Source"}},{"name":"x-operation-id","in":"header","required":false,"schema":{"anyOf":[{"type":"string","maxLength":36},{"type":"null"}],"title":"X-Operation-Id"}},{"name":"x-commit-message","in":"header","required":false,"schema":{"anyOf":[{"type":"string","minLength":1},{"type":"null"}],"title":"X-Commit-Message"}},{"name":"x-confirmation-id","in":"header","required":false,"schema":{"anyOf":[{"type":"string","maxLength":36},{"type":"null"}],"title":"X-Confirmation-Id"}},{"name":"x-chat-id","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"X-Chat-Id"}},{"name":"organization-id","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Organization-Id"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/PastedCredentialDisconnectResponse"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/leads/ingest/dialpad-call":{"post":{"summary":"Ingest Dialpad Call Lead","operationId":"ingest_dialpad_call_lead_leads_ingest_dialpad_call_post","security":[{"APIKeyHeader":[]},{"HTTPBearer":[]}],"parameters":[{"name":"organization-id","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Organization-Id"}},{"name":"timezone","in":"header","required":false,"schema":{"type":"string","default":"UTC","title":"Timezone"}},{"name":"x-user-id","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"X-User-Id"}},{"name":"x-actor-email","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"X-Actor-Email"}},{"name":"x-request-source","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"X-Request-Source"}},{"name":"x-operation-id","in":"header","required":false,"schema":{"anyOf":[{"type":"string","maxLength":36},{"type":"null"}],"title":"X-Operation-Id"}},{"name":"x-commit-message","in":"header","required":false,"schema":{"anyOf":[{"type":"string","minLength":1},{"type":"null"}],"title":"X-Commit-Message"}},{"name":"x-confirmation-id","in":"header","required":false,"schema":{"anyOf":[{"type":"string","maxLength":36},{"type":"null"}],"title":"X-Confirmation-Id"}},{"name":"x-chat-id","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"X-Chat-Id"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/DialpadCallIngestRequest"}}}},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/DialpadCallIngestResponse"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/webhook/meta":{"get":{"tags":["webhook","webhook"],"summary":"Verify Meta Webhook","operationId":"verify_meta_webhook_webhook_meta_get","parameters":[{"name":"hub.mode","in":"query","required":true,"schema":{"type":"string","title":"Hub.Mode"}},{"name":"hub.verify_token","in":"query","required":true,"schema":{"type":"string","title":"Hub.Verify Token"}},{"name":"hub.challenge","in":"query","required":true,"schema":{"type":"string","title":"Hub.Challenge"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}},"post":{"tags":["webhook","webhook"],"summary":"Receive Meta Webhook","operationId":"receive_meta_webhook_webhook_meta_post","parameters":[{"name":"timezone","in":"header","required":false,"schema":{"type":"string","default":"UTC","title":"Timezone"}},{"name":"x-user-id","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"X-User-Id"}},{"name":"x-actor-email","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"X-Actor-Email"}},{"name":"x-request-source","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"X-Request-Source"}},{"name":"x-operation-id","in":"header","required":false,"schema":{"anyOf":[{"type":"string","maxLength":36},{"type":"null"}],"title":"X-Operation-Id"}},{"name":"x-commit-message","in":"header","required":false,"schema":{"anyOf":[{"type":"string","minLength":1},{"type":"null"}],"title":"X-Commit-Message"}},{"name":"x-confirmation-id","in":"header","required":false,"schema":{"anyOf":[{"type":"string","maxLength":36},{"type":"null"}],"title":"X-Confirmation-Id"}},{"name":"x-chat-id","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"X-Chat-Id"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/setup/demo":{"get":{"tags":["setup"],"summary":"Read Demo","operationId":"read_demo_setup_demo_get","security":[{"APIKeyHeader":[]},{"HTTPBearer":[]}],"parameters":[{"name":"organization-id","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Organization-Id"}},{"name":"x-user-id","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"X-User-Id"}},{"name":"timezone","in":"header","required":false,"schema":{"type":"string","default":"UTC","title":"Timezone"}},{"name":"x-actor-email","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"X-Actor-Email"}},{"name":"x-request-source","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"X-Request-Source"}},{"name":"x-operation-id","in":"header","required":false,"schema":{"anyOf":[{"type":"string","maxLength":36},{"type":"null"}],"title":"X-Operation-Id"}},{"name":"x-commit-message","in":"header","required":false,"schema":{"anyOf":[{"type":"string","minLength":1},{"type":"null"}],"title":"X-Commit-Message"}},{"name":"x-confirmation-id","in":"header","required":false,"schema":{"anyOf":[{"type":"string","maxLength":36},{"type":"null"}],"title":"X-Confirmation-Id"}},{"name":"x-chat-id","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"X-Chat-Id"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"anyOf":[{"$ref":"#/components/schemas/DemoPublic"},{"type":"null"}],"title":"Response Read Demo Setup Demo Get"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/setup/demo/scenario":{"post":{"tags":["setup"],"summary":"Change Demo Scenario","operationId":"change_demo_scenario_setup_demo_scenario_post","security":[{"APIKeyHeader":[]},{"HTTPBearer":[]}],"parameters":[{"name":"organization-id","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Organization-Id"}},{"name":"x-user-id","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"X-User-Id"}},{"name":"timezone","in":"header","required":false,"schema":{"type":"string","default":"UTC","title":"Timezone"}},{"name":"x-actor-email","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"X-Actor-Email"}},{"name":"x-request-source","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"X-Request-Source"}},{"name":"x-operation-id","in":"header","required":false,"schema":{"anyOf":[{"type":"string","maxLength":36},{"type":"null"}],"title":"X-Operation-Id"}},{"name":"x-commit-message","in":"header","required":false,"schema":{"anyOf":[{"type":"string","minLength":1},{"type":"null"}],"title":"X-Commit-Message"}},{"name":"x-confirmation-id","in":"header","required":false,"schema":{"anyOf":[{"type":"string","maxLength":36},{"type":"null"}],"title":"X-Confirmation-Id"}},{"name":"x-chat-id","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"X-Chat-Id"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/DemoScenario"}}}},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/DemoPublic"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/setup/demo/reset":{"post":{"tags":["setup"],"summary":"Reset Demo","operationId":"reset_demo_setup_demo_reset_post","security":[{"APIKeyHeader":[]},{"HTTPBearer":[]}],"parameters":[{"name":"organization-id","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Organization-Id"}},{"name":"x-user-id","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"X-User-Id"}},{"name":"timezone","in":"header","required":false,"schema":{"type":"string","default":"UTC","title":"Timezone"}},{"name":"x-actor-email","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"X-Actor-Email"}},{"name":"x-request-source","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"X-Request-Source"}},{"name":"x-operation-id","in":"header","required":false,"schema":{"anyOf":[{"type":"string","maxLength":36},{"type":"null"}],"title":"X-Operation-Id"}},{"name":"x-commit-message","in":"header","required":false,"schema":{"anyOf":[{"type":"string","minLength":1},{"type":"null"}],"title":"X-Commit-Message"}},{"name":"x-confirmation-id","in":"header","required":false,"schema":{"anyOf":[{"type":"string","maxLength":36},{"type":"null"}],"title":"X-Confirmation-Id"}},{"name":"x-chat-id","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"X-Chat-Id"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/DemoPublic"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/setup/demo/twilio/submit":{"post":{"tags":["setup"],"summary":"Submit Demo To Twilio","operationId":"submit_demo_to_twilio_setup_demo_twilio_submit_post","security":[{"APIKeyHeader":[]},{"HTTPBearer":[]}],"parameters":[{"name":"organization-id","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Organization-Id"}},{"name":"x-user-id","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"X-User-Id"}},{"name":"timezone","in":"header","required":false,"schema":{"type":"string","default":"UTC","title":"Timezone"}},{"name":"x-actor-email","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"X-Actor-Email"}},{"name":"x-request-source","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"X-Request-Source"}},{"name":"x-operation-id","in":"header","required":false,"schema":{"anyOf":[{"type":"string","maxLength":36},{"type":"null"}],"title":"X-Operation-Id"}},{"name":"x-commit-message","in":"header","required":false,"schema":{"anyOf":[{"type":"string","minLength":1},{"type":"null"}],"title":"X-Commit-Message"}},{"name":"x-confirmation-id","in":"header","required":false,"schema":{"anyOf":[{"type":"string","maxLength":36},{"type":"null"}],"title":"X-Confirmation-Id"}},{"name":"x-chat-id","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"X-Chat-Id"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/DemoPublic"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/setup/demo/company-example":{"get":{"tags":["setup"],"summary":"Read Demo Company Example","operationId":"read_demo_company_example_setup_demo_company_example_get","security":[{"APIKeyHeader":[]},{"HTTPBearer":[]}],"parameters":[{"name":"organization-id","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Organization-Id"}},{"name":"x-user-id","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"X-User-Id"}},{"name":"timezone","in":"header","required":false,"schema":{"type":"string","default":"UTC","title":"Timezone"}},{"name":"x-actor-email","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"X-Actor-Email"}},{"name":"x-request-source","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"X-Request-Source"}},{"name":"x-operation-id","in":"header","required":false,"schema":{"anyOf":[{"type":"string","maxLength":36},{"type":"null"}],"title":"X-Operation-Id"}},{"name":"x-commit-message","in":"header","required":false,"schema":{"anyOf":[{"type":"string","minLength":1},{"type":"null"}],"title":"X-Commit-Message"}},{"name":"x-confirmation-id","in":"header","required":false,"schema":{"anyOf":[{"type":"string","maxLength":36},{"type":"null"}],"title":"X-Confirmation-Id"}},{"name":"x-chat-id","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"X-Chat-Id"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/CompanyProfileConfirmRequest"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/setup/demo/twilio/rotate":{"post":{"tags":["setup"],"summary":"Rotate Demo Twilio","operationId":"rotate_demo_twilio_setup_demo_twilio_rotate_post","security":[{"APIKeyHeader":[]},{"HTTPBearer":[]}],"parameters":[{"name":"organization-id","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Organization-Id"}},{"name":"x-user-id","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"X-User-Id"}},{"name":"timezone","in":"header","required":false,"schema":{"type":"string","default":"UTC","title":"Timezone"}},{"name":"x-actor-email","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"X-Actor-Email"}},{"name":"x-request-source","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"X-Request-Source"}},{"name":"x-operation-id","in":"header","required":false,"schema":{"anyOf":[{"type":"string","maxLength":36},{"type":"null"}],"title":"X-Operation-Id"}},{"name":"x-commit-message","in":"header","required":false,"schema":{"anyOf":[{"type":"string","minLength":1},{"type":"null"}],"title":"X-Commit-Message"}},{"name":"x-confirmation-id","in":"header","required":false,"schema":{"anyOf":[{"type":"string","maxLength":36},{"type":"null"}],"title":"X-Confirmation-Id"}},{"name":"x-chat-id","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"X-Chat-Id"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/DemoPublic"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/setup/draft":{"get":{"tags":["setup"],"summary":"Read Setup Draft","operationId":"read_setup_draft_setup_draft_get","security":[{"APIKeyHeader":[]},{"HTTPBearer":[]}],"parameters":[{"name":"organization-id","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Organization-Id"}},{"name":"x-user-id","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"X-User-Id"}},{"name":"timezone","in":"header","required":false,"schema":{"type":"string","default":"UTC","title":"Timezone"}},{"name":"x-actor-email","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"X-Actor-Email"}},{"name":"x-request-source","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"X-Request-Source"}},{"name":"x-operation-id","in":"header","required":false,"schema":{"anyOf":[{"type":"string","maxLength":36},{"type":"null"}],"title":"X-Operation-Id"}},{"name":"x-commit-message","in":"header","required":false,"schema":{"anyOf":[{"type":"string","minLength":1},{"type":"null"}],"title":"X-Commit-Message"}},{"name":"x-confirmation-id","in":"header","required":false,"schema":{"anyOf":[{"type":"string","maxLength":36},{"type":"null"}],"title":"X-Confirmation-Id"}},{"name":"x-chat-id","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"X-Chat-Id"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/OnboardingDraftPublic"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}},"post":{"tags":["setup"],"summary":"Enroll Setup Draft","operationId":"enroll_setup_draft_setup_draft_post","security":[{"APIKeyHeader":[]},{"HTTPBearer":[]}],"parameters":[{"name":"organization-id","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Organization-Id"}},{"name":"x-user-id","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"X-User-Id"}},{"name":"timezone","in":"header","required":false,"schema":{"type":"string","default":"UTC","title":"Timezone"}},{"name":"x-actor-email","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"X-Actor-Email"}},{"name":"x-request-source","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"X-Request-Source"}},{"name":"x-operation-id","in":"header","required":false,"schema":{"anyOf":[{"type":"string","maxLength":36},{"type":"null"}],"title":"X-Operation-Id"}},{"name":"x-commit-message","in":"header","required":false,"schema":{"anyOf":[{"type":"string","minLength":1},{"type":"null"}],"title":"X-Commit-Message"}},{"name":"x-confirmation-id","in":"header","required":false,"schema":{"anyOf":[{"type":"string","maxLength":36},{"type":"null"}],"title":"X-Confirmation-Id"}},{"name":"x-chat-id","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"X-Chat-Id"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/OnboardingDraftPublic"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/setup/draft/steps/{step_id}":{"put":{"tags":["setup"],"summary":"Autosave Setup Draft Step","operationId":"autosave_setup_draft_step_setup_draft_steps__step_id__put","security":[{"APIKeyHeader":[]},{"HTTPBearer":[]}],"parameters":[{"name":"step_id","in":"path","required":true,"schema":{"type":"string","title":"Step Id"}},{"name":"organization-id","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Organization-Id"}},{"name":"x-user-id","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"X-User-Id"}},{"name":"timezone","in":"header","required":false,"schema":{"type":"string","default":"UTC","title":"Timezone"}},{"name":"x-actor-email","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"X-Actor-Email"}},{"name":"x-request-source","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"X-Request-Source"}},{"name":"x-operation-id","in":"header","required":false,"schema":{"anyOf":[{"type":"string","maxLength":36},{"type":"null"}],"title":"X-Operation-Id"}},{"name":"x-commit-message","in":"header","required":false,"schema":{"anyOf":[{"type":"string","minLength":1},{"type":"null"}],"title":"X-Commit-Message"}},{"name":"x-confirmation-id","in":"header","required":false,"schema":{"anyOf":[{"type":"string","maxLength":36},{"type":"null"}],"title":"X-Confirmation-Id"}},{"name":"x-chat-id","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"X-Chat-Id"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/SetupDraftStepAutosaveRequest"}}}},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/OnboardingDraftPublic"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/setup/draft/steps/{step_id}/complete":{"post":{"tags":["setup"],"summary":"Complete Setup Draft Step","operationId":"complete_setup_draft_step_setup_draft_steps__step_id__complete_post","security":[{"APIKeyHeader":[]},{"HTTPBearer":[]}],"parameters":[{"name":"step_id","in":"path","required":true,"schema":{"type":"string","title":"Step Id"}},{"name":"organization-id","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Organization-Id"}},{"name":"x-user-id","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"X-User-Id"}},{"name":"timezone","in":"header","required":false,"schema":{"type":"string","default":"UTC","title":"Timezone"}},{"name":"x-actor-email","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"X-Actor-Email"}},{"name":"x-request-source","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"X-Request-Source"}},{"name":"x-operation-id","in":"header","required":false,"schema":{"anyOf":[{"type":"string","maxLength":36},{"type":"null"}],"title":"X-Operation-Id"}},{"name":"x-commit-message","in":"header","required":false,"schema":{"anyOf":[{"type":"string","minLength":1},{"type":"null"}],"title":"X-Commit-Message"}},{"name":"x-confirmation-id","in":"header","required":false,"schema":{"anyOf":[{"type":"string","maxLength":36},{"type":"null"}],"title":"X-Confirmation-Id"}},{"name":"x-chat-id","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"X-Chat-Id"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/OnboardingDraftPublic"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/setup/draft/steps/{step_id}/save-and-exit":{"post":{"tags":["setup"],"summary":"Save And Exit Setup Draft","operationId":"save_and_exit_setup_draft_setup_draft_steps__step_id__save_and_exit_post","security":[{"APIKeyHeader":[]},{"HTTPBearer":[]}],"parameters":[{"name":"step_id","in":"path","required":true,"schema":{"type":"string","title":"Step Id"}},{"name":"organization-id","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Organization-Id"}},{"name":"x-user-id","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"X-User-Id"}},{"name":"timezone","in":"header","required":false,"schema":{"type":"string","default":"UTC","title":"Timezone"}},{"name":"x-actor-email","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"X-Actor-Email"}},{"name":"x-request-source","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"X-Request-Source"}},{"name":"x-operation-id","in":"header","required":false,"schema":{"anyOf":[{"type":"string","maxLength":36},{"type":"null"}],"title":"X-Operation-Id"}},{"name":"x-commit-message","in":"header","required":false,"schema":{"anyOf":[{"type":"string","minLength":1},{"type":"null"}],"title":"X-Commit-Message"}},{"name":"x-confirmation-id","in":"header","required":false,"schema":{"anyOf":[{"type":"string","maxLength":36},{"type":"null"}],"title":"X-Confirmation-Id"}},{"name":"x-chat-id","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"X-Chat-Id"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/OnboardingSaveExitPublic"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/setup/business-campaign":{"get":{"tags":["setup"],"summary":"Read Business Campaign","operationId":"read_business_campaign_setup_business_campaign_get","security":[{"APIKeyHeader":[]},{"HTTPBearer":[]}],"parameters":[{"name":"organization-id","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Organization-Id"}},{"name":"x-user-id","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"X-User-Id"}},{"name":"timezone","in":"header","required":false,"schema":{"type":"string","default":"UTC","title":"Timezone"}},{"name":"x-actor-email","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"X-Actor-Email"}},{"name":"x-request-source","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"X-Request-Source"}},{"name":"x-operation-id","in":"header","required":false,"schema":{"anyOf":[{"type":"string","maxLength":36},{"type":"null"}],"title":"X-Operation-Id"}},{"name":"x-commit-message","in":"header","required":false,"schema":{"anyOf":[{"type":"string","minLength":1},{"type":"null"}],"title":"X-Commit-Message"}},{"name":"x-confirmation-id","in":"header","required":false,"schema":{"anyOf":[{"type":"string","maxLength":36},{"type":"null"}],"title":"X-Confirmation-Id"}},{"name":"x-chat-id","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"X-Chat-Id"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/BusinessCampaignStatePublic"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}},"put":{"tags":["setup"],"summary":"Save Business Campaign","operationId":"save_business_campaign_setup_business_campaign_put","security":[{"APIKeyHeader":[]},{"HTTPBearer":[]}],"parameters":[{"name":"organization-id","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Organization-Id"}},{"name":"x-user-id","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"X-User-Id"}},{"name":"timezone","in":"header","required":false,"schema":{"type":"string","default":"UTC","title":"Timezone"}},{"name":"x-actor-email","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"X-Actor-Email"}},{"name":"x-request-source","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"X-Request-Source"}},{"name":"x-operation-id","in":"header","required":false,"schema":{"anyOf":[{"type":"string","maxLength":36},{"type":"null"}],"title":"X-Operation-Id"}},{"name":"x-commit-message","in":"header","required":false,"schema":{"anyOf":[{"type":"string","minLength":1},{"type":"null"}],"title":"X-Commit-Message"}},{"name":"x-confirmation-id","in":"header","required":false,"schema":{"anyOf":[{"type":"string","maxLength":36},{"type":"null"}],"title":"X-Confirmation-Id"}},{"name":"x-chat-id","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"X-Chat-Id"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/BusinessCampaignUpsert"}}}},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/BusinessCampaignStatePublic"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/setup/company-profile/correction":{"get":{"tags":["setup"],"summary":"Read","operationId":"read_setup_company_profile_correction_get","security":[{"APIKeyHeader":[]},{"HTTPBearer":[]}],"parameters":[{"name":"provider","in":"query","required":false,"schema":{"anyOf":[{"$ref":"#/components/schemas/MessagingProvider"},{"type":"null"}],"title":"Provider"}},{"name":"organization-id","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Organization-Id"}},{"name":"x-user-id","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"X-User-Id"}},{"name":"timezone","in":"header","required":false,"schema":{"type":"string","default":"UTC","title":"Timezone"}},{"name":"x-actor-email","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"X-Actor-Email"}},{"name":"x-request-source","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"X-Request-Source"}},{"name":"x-operation-id","in":"header","required":false,"schema":{"anyOf":[{"type":"string","maxLength":36},{"type":"null"}],"title":"X-Operation-Id"}},{"name":"x-commit-message","in":"header","required":false,"schema":{"anyOf":[{"type":"string","minLength":1},{"type":"null"}],"title":"X-Commit-Message"}},{"name":"x-confirmation-id","in":"header","required":false,"schema":{"anyOf":[{"type":"string","maxLength":36},{"type":"null"}],"title":"X-Confirmation-Id"}},{"name":"x-chat-id","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"X-Chat-Id"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/CorrectionStatePublic"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/setup/company-profile/correction/draft":{"put":{"tags":["setup"],"summary":"Save Draft","operationId":"save_draft_setup_company_profile_correction_draft_put","security":[{"APIKeyHeader":[]},{"HTTPBearer":[]}],"parameters":[{"name":"provider","in":"query","required":false,"schema":{"anyOf":[{"$ref":"#/components/schemas/MessagingProvider"},{"type":"null"}],"title":"Provider"}},{"name":"organization-id","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Organization-Id"}},{"name":"x-user-id","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"X-User-Id"}},{"name":"timezone","in":"header","required":false,"schema":{"type":"string","default":"UTC","title":"Timezone"}},{"name":"x-actor-email","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"X-Actor-Email"}},{"name":"x-request-source","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"X-Request-Source"}},{"name":"x-operation-id","in":"header","required":false,"schema":{"anyOf":[{"type":"string","maxLength":36},{"type":"null"}],"title":"X-Operation-Id"}},{"name":"x-commit-message","in":"header","required":false,"schema":{"anyOf":[{"type":"string","minLength":1},{"type":"null"}],"title":"X-Commit-Message"}},{"name":"x-confirmation-id","in":"header","required":false,"schema":{"anyOf":[{"type":"string","maxLength":36},{"type":"null"}],"title":"X-Confirmation-Id"}},{"name":"x-chat-id","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"X-Chat-Id"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/CorrectionDraftSaveRequest"}}}},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/CorrectionStatePublic"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/setup/company-profile/correction/cancel":{"post":{"tags":["setup"],"summary":"Cancel","operationId":"cancel_setup_company_profile_correction_cancel_post","security":[{"APIKeyHeader":[]},{"HTTPBearer":[]}],"parameters":[{"name":"provider","in":"query","required":false,"schema":{"anyOf":[{"$ref":"#/components/schemas/MessagingProvider"},{"type":"null"}],"title":"Provider"}},{"name":"organization-id","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Organization-Id"}},{"name":"x-user-id","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"X-User-Id"}},{"name":"timezone","in":"header","required":false,"schema":{"type":"string","default":"UTC","title":"Timezone"}},{"name":"x-actor-email","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"X-Actor-Email"}},{"name":"x-request-source","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"X-Request-Source"}},{"name":"x-operation-id","in":"header","required":false,"schema":{"anyOf":[{"type":"string","maxLength":36},{"type":"null"}],"title":"X-Operation-Id"}},{"name":"x-commit-message","in":"header","required":false,"schema":{"anyOf":[{"type":"string","minLength":1},{"type":"null"}],"title":"X-Commit-Message"}},{"name":"x-confirmation-id","in":"header","required":false,"schema":{"anyOf":[{"type":"string","maxLength":36},{"type":"null"}],"title":"X-Confirmation-Id"}},{"name":"x-chat-id","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"X-Chat-Id"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/CorrectionVersionRequest"}}}},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/CorrectionStatePublic"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/setup/company-profile/correction/review":{"post":{"tags":["setup"],"summary":"Review","operationId":"review_setup_company_profile_correction_review_post","security":[{"APIKeyHeader":[]},{"HTTPBearer":[]}],"parameters":[{"name":"provider","in":"query","required":false,"schema":{"anyOf":[{"$ref":"#/components/schemas/MessagingProvider"},{"type":"null"}],"title":"Provider"}},{"name":"organization-id","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Organization-Id"}},{"name":"x-user-id","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"X-User-Id"}},{"name":"timezone","in":"header","required":false,"schema":{"type":"string","default":"UTC","title":"Timezone"}},{"name":"x-actor-email","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"X-Actor-Email"}},{"name":"x-request-source","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"X-Request-Source"}},{"name":"x-operation-id","in":"header","required":false,"schema":{"anyOf":[{"type":"string","maxLength":36},{"type":"null"}],"title":"X-Operation-Id"}},{"name":"x-commit-message","in":"header","required":false,"schema":{"anyOf":[{"type":"string","minLength":1},{"type":"null"}],"title":"X-Commit-Message"}},{"name":"x-confirmation-id","in":"header","required":false,"schema":{"anyOf":[{"type":"string","maxLength":36},{"type":"null"}],"title":"X-Confirmation-Id"}},{"name":"x-chat-id","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"X-Chat-Id"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/CorrectionReviewRequest"}}}},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/CorrectionReviewPublic"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/setup/company-profile/correction/confirm":{"post":{"tags":["setup"],"summary":"Confirm","operationId":"confirm_setup_company_profile_correction_confirm_post","security":[{"APIKeyHeader":[]},{"HTTPBearer":[]}],"parameters":[{"name":"provider","in":"query","required":false,"schema":{"anyOf":[{"$ref":"#/components/schemas/MessagingProvider"},{"type":"null"}],"title":"Provider"}},{"name":"organization-id","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Organization-Id"}},{"name":"x-user-id","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"X-User-Id"}},{"name":"timezone","in":"header","required":false,"schema":{"type":"string","default":"UTC","title":"Timezone"}},{"name":"x-actor-email","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"X-Actor-Email"}},{"name":"x-request-source","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"X-Request-Source"}},{"name":"x-operation-id","in":"header","required":false,"schema":{"anyOf":[{"type":"string","maxLength":36},{"type":"null"}],"title":"X-Operation-Id"}},{"name":"x-commit-message","in":"header","required":false,"schema":{"anyOf":[{"type":"string","minLength":1},{"type":"null"}],"title":"X-Commit-Message"}},{"name":"x-confirmation-id","in":"header","required":false,"schema":{"anyOf":[{"type":"string","maxLength":36},{"type":"null"}],"title":"X-Confirmation-Id"}},{"name":"x-chat-id","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"X-Chat-Id"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/CorrectionConfirmRequest"}}}},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/CorrectionStatePublic"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/setup/company-profile":{"get":{"tags":["setup"],"summary":"Read Company Profile","operationId":"read_company_profile_setup_company_profile_get","security":[{"APIKeyHeader":[]},{"HTTPBearer":[]}],"parameters":[{"name":"organization-id","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Organization-Id"}},{"name":"x-user-id","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"X-User-Id"}},{"name":"timezone","in":"header","required":false,"schema":{"type":"string","default":"UTC","title":"Timezone"}},{"name":"x-actor-email","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"X-Actor-Email"}},{"name":"x-request-source","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"X-Request-Source"}},{"name":"x-operation-id","in":"header","required":false,"schema":{"anyOf":[{"type":"string","maxLength":36},{"type":"null"}],"title":"X-Operation-Id"}},{"name":"x-commit-message","in":"header","required":false,"schema":{"anyOf":[{"type":"string","minLength":1},{"type":"null"}],"title":"X-Commit-Message"}},{"name":"x-confirmation-id","in":"header","required":false,"schema":{"anyOf":[{"type":"string","maxLength":36},{"type":"null"}],"title":"X-Confirmation-Id"}},{"name":"x-chat-id","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"X-Chat-Id"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/CompanyProfileStatePublic"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}},"put":{"tags":["setup"],"summary":"Autosave Company Profile","operationId":"autosave_company_profile_setup_company_profile_put","security":[{"APIKeyHeader":[]},{"HTTPBearer":[]}],"parameters":[{"name":"organization-id","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Organization-Id"}},{"name":"x-user-id","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"X-User-Id"}},{"name":"timezone","in":"header","required":false,"schema":{"type":"string","default":"UTC","title":"Timezone"}},{"name":"x-actor-email","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"X-Actor-Email"}},{"name":"x-request-source","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"X-Request-Source"}},{"name":"x-operation-id","in":"header","required":false,"schema":{"anyOf":[{"type":"string","maxLength":36},{"type":"null"}],"title":"X-Operation-Id"}},{"name":"x-commit-message","in":"header","required":false,"schema":{"anyOf":[{"type":"string","minLength":1},{"type":"null"}],"title":"X-Commit-Message"}},{"name":"x-confirmation-id","in":"header","required":false,"schema":{"anyOf":[{"type":"string","maxLength":36},{"type":"null"}],"title":"X-Confirmation-Id"}},{"name":"x-chat-id","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"X-Chat-Id"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/CompanyProfileAutosaveRequest"}}}},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/CompanyProfileStatePublic"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/setup/company-profile/confirm":{"post":{"tags":["setup"],"summary":"Confirm Company Profile","operationId":"confirm_company_profile_setup_company_profile_confirm_post","security":[{"APIKeyHeader":[]},{"HTTPBearer":[]}],"parameters":[{"name":"organization-id","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Organization-Id"}},{"name":"x-user-id","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"X-User-Id"}},{"name":"timezone","in":"header","required":false,"schema":{"type":"string","default":"UTC","title":"Timezone"}},{"name":"x-actor-email","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"X-Actor-Email"}},{"name":"x-request-source","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"X-Request-Source"}},{"name":"x-operation-id","in":"header","required":false,"schema":{"anyOf":[{"type":"string","maxLength":36},{"type":"null"}],"title":"X-Operation-Id"}},{"name":"x-commit-message","in":"header","required":false,"schema":{"anyOf":[{"type":"string","minLength":1},{"type":"null"}],"title":"X-Commit-Message"}},{"name":"x-confirmation-id","in":"header","required":false,"schema":{"anyOf":[{"type":"string","maxLength":36},{"type":"null"}],"title":"X-Confirmation-Id"}},{"name":"x-chat-id","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"X-Chat-Id"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/CompanyProfileVersionedConfirmRequest"}}}},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/CompanyProfileStatePublic"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/setup/company-profile/w9/extract":{"post":{"tags":["setup"],"summary":"Extract Company Profile W9","operationId":"extract_company_profile_w9_setup_company_profile_w9_extract_post","security":[{"APIKeyHeader":[]},{"HTTPBearer":[]}],"parameters":[{"name":"organization-id","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Organization-Id"}},{"name":"x-user-id","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"X-User-Id"}},{"name":"timezone","in":"header","required":false,"schema":{"type":"string","default":"UTC","title":"Timezone"}},{"name":"x-actor-email","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"X-Actor-Email"}},{"name":"x-request-source","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"X-Request-Source"}},{"name":"x-operation-id","in":"header","required":false,"schema":{"anyOf":[{"type":"string","maxLength":36},{"type":"null"}],"title":"X-Operation-Id"}},{"name":"x-commit-message","in":"header","required":false,"schema":{"anyOf":[{"type":"string","minLength":1},{"type":"null"}],"title":"X-Commit-Message"}},{"name":"x-confirmation-id","in":"header","required":false,"schema":{"anyOf":[{"type":"string","maxLength":36},{"type":"null"}],"title":"X-Confirmation-Id"}},{"name":"x-chat-id","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"X-Chat-Id"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/W9ExtractionPublic"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/setup/registration":{"get":{"tags":["setup"],"summary":"Read Registration Request","operationId":"read_registration_request_setup_registration_get","security":[{"APIKeyHeader":[]},{"HTTPBearer":[]}],"parameters":[{"name":"organization-id","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Organization-Id"}},{"name":"x-user-id","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"X-User-Id"}},{"name":"timezone","in":"header","required":false,"schema":{"type":"string","default":"UTC","title":"Timezone"}},{"name":"x-actor-email","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"X-Actor-Email"}},{"name":"x-request-source","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"X-Request-Source"}},{"name":"x-operation-id","in":"header","required":false,"schema":{"anyOf":[{"type":"string","maxLength":36},{"type":"null"}],"title":"X-Operation-Id"}},{"name":"x-commit-message","in":"header","required":false,"schema":{"anyOf":[{"type":"string","minLength":1},{"type":"null"}],"title":"X-Commit-Message"}},{"name":"x-confirmation-id","in":"header","required":false,"schema":{"anyOf":[{"type":"string","maxLength":36},{"type":"null"}],"title":"X-Confirmation-Id"}},{"name":"x-chat-id","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"X-Chat-Id"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"anyOf":[{"$ref":"#/components/schemas/RegistrationRequestPublic"},{"type":"null"}],"title":"Response Read Registration Request Setup Registration Get"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}},"post":{"tags":["setup"],"summary":"Accept Registration Request","operationId":"accept_registration_request_setup_registration_post","security":[{"APIKeyHeader":[]},{"HTTPBearer":[]}],"parameters":[{"name":"organization-id","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Organization-Id"}},{"name":"x-user-id","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"X-User-Id"}},{"name":"timezone","in":"header","required":false,"schema":{"type":"string","default":"UTC","title":"Timezone"}},{"name":"x-actor-email","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"X-Actor-Email"}},{"name":"x-request-source","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"X-Request-Source"}},{"name":"x-operation-id","in":"header","required":false,"schema":{"anyOf":[{"type":"string","maxLength":36},{"type":"null"}],"title":"X-Operation-Id"}},{"name":"x-commit-message","in":"header","required":false,"schema":{"anyOf":[{"type":"string","minLength":1},{"type":"null"}],"title":"X-Commit-Message"}},{"name":"x-confirmation-id","in":"header","required":false,"schema":{"anyOf":[{"type":"string","maxLength":36},{"type":"null"}],"title":"X-Confirmation-Id"}},{"name":"x-chat-id","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"X-Chat-Id"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/RegistrationRequestAccept"}}}},"responses":{"202":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/RegistrationRequestPublic"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/setup/registration/review":{"get":{"tags":["setup"],"summary":"Review Registration","operationId":"review_registration_setup_registration_review_get","security":[{"APIKeyHeader":[]},{"HTTPBearer":[]}],"parameters":[{"name":"selected_number","in":"query","required":true,"schema":{"type":"string","pattern":"^\\+1[2-9][0-9]{2}[2-9][0-9]{6}$","title":"Selected Number"}},{"name":"approval_gated","in":"query","required":false,"schema":{"type":"boolean","default":false,"title":"Approval Gated"}},{"name":"organization-id","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Organization-Id"}},{"name":"x-user-id","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"X-User-Id"}},{"name":"timezone","in":"header","required":false,"schema":{"type":"string","default":"UTC","title":"Timezone"}},{"name":"x-actor-email","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"X-Actor-Email"}},{"name":"x-request-source","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"X-Request-Source"}},{"name":"x-operation-id","in":"header","required":false,"schema":{"anyOf":[{"type":"string","maxLength":36},{"type":"null"}],"title":"X-Operation-Id"}},{"name":"x-commit-message","in":"header","required":false,"schema":{"anyOf":[{"type":"string","minLength":1},{"type":"null"}],"title":"X-Commit-Message"}},{"name":"x-confirmation-id","in":"header","required":false,"schema":{"anyOf":[{"type":"string","maxLength":36},{"type":"null"}],"title":"X-Confirmation-Id"}},{"name":"x-chat-id","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"X-Chat-Id"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/RegistrationReviewPublic"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/setup/registration/{request_id}/evidence/review":{"post":{"tags":["setup"],"summary":"Review Registration Evidence","operationId":"review_registration_evidence_setup_registration__request_id__evidence_review_post","security":[{"APIKeyHeader":[]},{"HTTPBearer":[]}],"parameters":[{"name":"request_id","in":"path","required":true,"schema":{"type":"string","title":"Request Id"}},{"name":"organization-id","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Organization-Id"}},{"name":"x-user-id","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"X-User-Id"}},{"name":"timezone","in":"header","required":false,"schema":{"type":"string","default":"UTC","title":"Timezone"}},{"name":"x-actor-email","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"X-Actor-Email"}},{"name":"x-request-source","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"X-Request-Source"}},{"name":"x-operation-id","in":"header","required":false,"schema":{"anyOf":[{"type":"string","maxLength":36},{"type":"null"}],"title":"X-Operation-Id"}},{"name":"x-commit-message","in":"header","required":false,"schema":{"anyOf":[{"type":"string","minLength":1},{"type":"null"}],"title":"X-Commit-Message"}},{"name":"x-confirmation-id","in":"header","required":false,"schema":{"anyOf":[{"type":"string","maxLength":36},{"type":"null"}],"title":"X-Confirmation-Id"}},{"name":"x-chat-id","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"X-Chat-Id"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/RegistrationEvidenceReview"}}}},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/RegistrationReviewPublic"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/setup/registration/{request_id}/evidence":{"post":{"tags":["setup"],"summary":"Accept Registration Evidence","operationId":"accept_registration_evidence_setup_registration__request_id__evidence_post","security":[{"APIKeyHeader":[]},{"HTTPBearer":[]}],"parameters":[{"name":"request_id","in":"path","required":true,"schema":{"type":"string","title":"Request Id"}},{"name":"organization-id","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Organization-Id"}},{"name":"x-user-id","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"X-User-Id"}},{"name":"timezone","in":"header","required":false,"schema":{"type":"string","default":"UTC","title":"Timezone"}},{"name":"x-actor-email","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"X-Actor-Email"}},{"name":"x-request-source","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"X-Request-Source"}},{"name":"x-operation-id","in":"header","required":false,"schema":{"anyOf":[{"type":"string","maxLength":36},{"type":"null"}],"title":"X-Operation-Id"}},{"name":"x-commit-message","in":"header","required":false,"schema":{"anyOf":[{"type":"string","minLength":1},{"type":"null"}],"title":"X-Commit-Message"}},{"name":"x-confirmation-id","in":"header","required":false,"schema":{"anyOf":[{"type":"string","maxLength":36},{"type":"null"}],"title":"X-Confirmation-Id"}},{"name":"x-chat-id","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"X-Chat-Id"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/RegistrationEvidenceAccept"}}}},"responses":{"202":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/RegistrationRequestPublic"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/setup/registration/status":{"get":{"tags":["setup"],"summary":"Read Registration Status","operationId":"read_registration_status_setup_registration_status_get","security":[{"APIKeyHeader":[]},{"HTTPBearer":[]}],"parameters":[{"name":"approval_gated","in":"query","required":false,"schema":{"type":"boolean","default":false,"title":"Approval Gated"}},{"name":"organization-id","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Organization-Id"}},{"name":"x-user-id","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"X-User-Id"}},{"name":"timezone","in":"header","required":false,"schema":{"type":"string","default":"UTC","title":"Timezone"}},{"name":"x-actor-email","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"X-Actor-Email"}},{"name":"x-request-source","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"X-Request-Source"}},{"name":"x-operation-id","in":"header","required":false,"schema":{"anyOf":[{"type":"string","maxLength":36},{"type":"null"}],"title":"X-Operation-Id"}},{"name":"x-commit-message","in":"header","required":false,"schema":{"anyOf":[{"type":"string","minLength":1},{"type":"null"}],"title":"X-Commit-Message"}},{"name":"x-confirmation-id","in":"header","required":false,"schema":{"anyOf":[{"type":"string","maxLength":36},{"type":"null"}],"title":"X-Confirmation-Id"}},{"name":"x-chat-id","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"X-Chat-Id"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"anyOf":[{"$ref":"#/components/schemas/RegistrationCompletionPublic"},{"type":"null"}],"title":"Response Read Registration Status Setup Registration Status Get"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/setup/registration/history":{"get":{"tags":["setup"],"summary":"Read Registration History Page","operationId":"read_registration_history_page_setup_registration_history_get","security":[{"APIKeyHeader":[]},{"HTTPBearer":[]}],"parameters":[{"name":"provider","in":"query","required":true,"schema":{"$ref":"#/components/schemas/MessagingProvider"}},{"name":"cursor","in":"query","required":false,"schema":{"anyOf":[{"type":"string","maxLength":512},{"type":"null"}],"title":"Cursor"}},{"name":"limit","in":"query","required":false,"schema":{"type":"integer","maximum":100,"minimum":1,"default":20,"title":"Limit"}},{"name":"organization-id","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Organization-Id"}},{"name":"x-user-id","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"X-User-Id"}},{"name":"timezone","in":"header","required":false,"schema":{"type":"string","default":"UTC","title":"Timezone"}},{"name":"x-actor-email","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"X-Actor-Email"}},{"name":"x-request-source","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"X-Request-Source"}},{"name":"x-operation-id","in":"header","required":false,"schema":{"anyOf":[{"type":"string","maxLength":36},{"type":"null"}],"title":"X-Operation-Id"}},{"name":"x-commit-message","in":"header","required":false,"schema":{"anyOf":[{"type":"string","minLength":1},{"type":"null"}],"title":"X-Commit-Message"}},{"name":"x-confirmation-id","in":"header","required":false,"schema":{"anyOf":[{"type":"string","maxLength":36},{"type":"null"}],"title":"X-Confirmation-Id"}},{"name":"x-chat-id","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"X-Chat-Id"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/RegistrationHistoryPage"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/setup/registration/{request_id}/numbers":{"get":{"tags":["setup"],"summary":"Search Replacement Numbers","operationId":"search_replacement_numbers_setup_registration__request_id__numbers_get","security":[{"APIKeyHeader":[]},{"HTTPBearer":[]}],"parameters":[{"name":"request_id","in":"path","required":true,"schema":{"type":"string","title":"Request Id"}},{"name":"area_code","in":"query","required":true,"schema":{"type":"string","pattern":"^[2-9][0-9]{2}$","title":"Area Code"}},{"name":"organization-id","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Organization-Id"}},{"name":"x-user-id","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"X-User-Id"}},{"name":"timezone","in":"header","required":false,"schema":{"type":"string","default":"UTC","title":"Timezone"}},{"name":"x-actor-email","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"X-Actor-Email"}},{"name":"x-request-source","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"X-Request-Source"}},{"name":"x-operation-id","in":"header","required":false,"schema":{"anyOf":[{"type":"string","maxLength":36},{"type":"null"}],"title":"X-Operation-Id"}},{"name":"x-commit-message","in":"header","required":false,"schema":{"anyOf":[{"type":"string","minLength":1},{"type":"null"}],"title":"X-Commit-Message"}},{"name":"x-confirmation-id","in":"header","required":false,"schema":{"anyOf":[{"type":"string","maxLength":36},{"type":"null"}],"title":"X-Confirmation-Id"}},{"name":"x-chat-id","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"X-Chat-Id"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/NumberInventoryPublic"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/setup/registration/{request_id}/resume":{"post":{"tags":["setup"],"summary":"Resume Registration","operationId":"resume_registration_setup_registration__request_id__resume_post","security":[{"APIKeyHeader":[]},{"HTTPBearer":[]}],"parameters":[{"name":"request_id","in":"path","required":true,"schema":{"type":"string","title":"Request Id"}},{"name":"organization-id","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Organization-Id"}},{"name":"x-user-id","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"X-User-Id"}},{"name":"timezone","in":"header","required":false,"schema":{"type":"string","default":"UTC","title":"Timezone"}},{"name":"x-actor-email","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"X-Actor-Email"}},{"name":"x-request-source","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"X-Request-Source"}},{"name":"x-operation-id","in":"header","required":false,"schema":{"anyOf":[{"type":"string","maxLength":36},{"type":"null"}],"title":"X-Operation-Id"}},{"name":"x-commit-message","in":"header","required":false,"schema":{"anyOf":[{"type":"string","minLength":1},{"type":"null"}],"title":"X-Commit-Message"}},{"name":"x-confirmation-id","in":"header","required":false,"schema":{"anyOf":[{"type":"string","maxLength":36},{"type":"null"}],"title":"X-Confirmation-Id"}},{"name":"x-chat-id","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"X-Chat-Id"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/RegistrationResumeRequest"}}}},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/RegistrationResumePublic"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/setup/registration/{request_id}/number/review":{"post":{"tags":["setup"],"summary":"Review Replacement Number","operationId":"review_replacement_number_setup_registration__request_id__number_review_post","security":[{"APIKeyHeader":[]},{"HTTPBearer":[]}],"parameters":[{"name":"request_id","in":"path","required":true,"schema":{"type":"string","title":"Request Id"}},{"name":"organization-id","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Organization-Id"}},{"name":"x-user-id","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"X-User-Id"}},{"name":"timezone","in":"header","required":false,"schema":{"type":"string","default":"UTC","title":"Timezone"}},{"name":"x-actor-email","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"X-Actor-Email"}},{"name":"x-request-source","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"X-Request-Source"}},{"name":"x-operation-id","in":"header","required":false,"schema":{"anyOf":[{"type":"string","maxLength":36},{"type":"null"}],"title":"X-Operation-Id"}},{"name":"x-commit-message","in":"header","required":false,"schema":{"anyOf":[{"type":"string","minLength":1},{"type":"null"}],"title":"X-Commit-Message"}},{"name":"x-confirmation-id","in":"header","required":false,"schema":{"anyOf":[{"type":"string","maxLength":36},{"type":"null"}],"title":"X-Confirmation-Id"}},{"name":"x-chat-id","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"X-Chat-Id"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/RegistrationNumberReview"}}}},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/RegistrationReviewPublic"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/setup/registration/{request_id}/number":{"post":{"tags":["setup"],"summary":"Accept Replacement Number","operationId":"accept_replacement_number_setup_registration__request_id__number_post","security":[{"APIKeyHeader":[]},{"HTTPBearer":[]}],"parameters":[{"name":"request_id","in":"path","required":true,"schema":{"type":"string","title":"Request Id"}},{"name":"organization-id","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Organization-Id"}},{"name":"x-user-id","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"X-User-Id"}},{"name":"timezone","in":"header","required":false,"schema":{"type":"string","default":"UTC","title":"Timezone"}},{"name":"x-actor-email","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"X-Actor-Email"}},{"name":"x-request-source","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"X-Request-Source"}},{"name":"x-operation-id","in":"header","required":false,"schema":{"anyOf":[{"type":"string","maxLength":36},{"type":"null"}],"title":"X-Operation-Id"}},{"name":"x-commit-message","in":"header","required":false,"schema":{"anyOf":[{"type":"string","minLength":1},{"type":"null"}],"title":"X-Commit-Message"}},{"name":"x-confirmation-id","in":"header","required":false,"schema":{"anyOf":[{"type":"string","maxLength":36},{"type":"null"}],"title":"X-Confirmation-Id"}},{"name":"x-chat-id","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"X-Chat-Id"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/RegistrationNumberAccept"}}}},"responses":{"202":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/RegistrationRequestPublic"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/setup/registration/campaign-correction":{"get":{"tags":["setup"],"summary":"Read Campaign Correction","operationId":"read_campaign_correction_setup_registration_campaign_correction_get","security":[{"APIKeyHeader":[]},{"HTTPBearer":[]}],"parameters":[{"name":"provider","in":"query","required":true,"schema":{"$ref":"#/components/schemas/MessagingProvider"}},{"name":"organization-id","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Organization-Id"}},{"name":"x-user-id","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"X-User-Id"}},{"name":"timezone","in":"header","required":false,"schema":{"type":"string","default":"UTC","title":"Timezone"}},{"name":"x-actor-email","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"X-Actor-Email"}},{"name":"x-request-source","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"X-Request-Source"}},{"name":"x-operation-id","in":"header","required":false,"schema":{"anyOf":[{"type":"string","maxLength":36},{"type":"null"}],"title":"X-Operation-Id"}},{"name":"x-commit-message","in":"header","required":false,"schema":{"anyOf":[{"type":"string","minLength":1},{"type":"null"}],"title":"X-Commit-Message"}},{"name":"x-confirmation-id","in":"header","required":false,"schema":{"anyOf":[{"type":"string","maxLength":36},{"type":"null"}],"title":"X-Confirmation-Id"}},{"name":"x-chat-id","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"X-Chat-Id"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/CampaignCorrectionState"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/setup/registration/campaign-correction/review":{"post":{"tags":["setup"],"summary":"Review Campaign Correction","operationId":"review_campaign_correction_setup_registration_campaign_correction_review_post","security":[{"APIKeyHeader":[]},{"HTTPBearer":[]}],"parameters":[{"name":"organization-id","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Organization-Id"}},{"name":"x-user-id","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"X-User-Id"}},{"name":"timezone","in":"header","required":false,"schema":{"type":"string","default":"UTC","title":"Timezone"}},{"name":"x-actor-email","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"X-Actor-Email"}},{"name":"x-request-source","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"X-Request-Source"}},{"name":"x-operation-id","in":"header","required":false,"schema":{"anyOf":[{"type":"string","maxLength":36},{"type":"null"}],"title":"X-Operation-Id"}},{"name":"x-commit-message","in":"header","required":false,"schema":{"anyOf":[{"type":"string","minLength":1},{"type":"null"}],"title":"X-Commit-Message"}},{"name":"x-confirmation-id","in":"header","required":false,"schema":{"anyOf":[{"type":"string","maxLength":36},{"type":"null"}],"title":"X-Confirmation-Id"}},{"name":"x-chat-id","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"X-Chat-Id"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/CampaignCorrectionReviewRequest"}}}},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/CampaignCorrectionReview"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/setup/registration/campaign-correction/confirm":{"post":{"tags":["setup"],"summary":"Confirm Campaign Correction","operationId":"confirm_campaign_correction_setup_registration_campaign_correction_confirm_post","security":[{"APIKeyHeader":[]},{"HTTPBearer":[]}],"parameters":[{"name":"organization-id","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Organization-Id"}},{"name":"x-user-id","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"X-User-Id"}},{"name":"timezone","in":"header","required":false,"schema":{"type":"string","default":"UTC","title":"Timezone"}},{"name":"x-actor-email","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"X-Actor-Email"}},{"name":"x-request-source","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"X-Request-Source"}},{"name":"x-operation-id","in":"header","required":false,"schema":{"anyOf":[{"type":"string","maxLength":36},{"type":"null"}],"title":"X-Operation-Id"}},{"name":"x-commit-message","in":"header","required":false,"schema":{"anyOf":[{"type":"string","minLength":1},{"type":"null"}],"title":"X-Commit-Message"}},{"name":"x-confirmation-id","in":"header","required":false,"schema":{"anyOf":[{"type":"string","maxLength":36},{"type":"null"}],"title":"X-Confirmation-Id"}},{"name":"x-chat-id","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"X-Chat-Id"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/CampaignCorrectionConfirm"}}}},"responses":{"202":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/CampaignCorrectionAccepted"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/setup/setup-call":{"get":{"tags":["setup"],"summary":"Read Setup Call","operationId":"read_setup_call_setup_setup_call_get","security":[{"APIKeyHeader":[]},{"HTTPBearer":[]}],"parameters":[{"name":"organization-id","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Organization-Id"}},{"name":"x-user-id","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"X-User-Id"}},{"name":"timezone","in":"header","required":false,"schema":{"type":"string","default":"UTC","title":"Timezone"}},{"name":"x-actor-email","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"X-Actor-Email"}},{"name":"x-request-source","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"X-Request-Source"}},{"name":"x-operation-id","in":"header","required":false,"schema":{"anyOf":[{"type":"string","maxLength":36},{"type":"null"}],"title":"X-Operation-Id"}},{"name":"x-commit-message","in":"header","required":false,"schema":{"anyOf":[{"type":"string","minLength":1},{"type":"null"}],"title":"X-Commit-Message"}},{"name":"x-confirmation-id","in":"header","required":false,"schema":{"anyOf":[{"type":"string","maxLength":36},{"type":"null"}],"title":"X-Confirmation-Id"}},{"name":"x-chat-id","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"X-Chat-Id"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"anyOf":[{"$ref":"#/components/schemas/SetupCallRequestPublic"},{"type":"null"}],"title":"Response Read Setup Call Setup Setup Call Get"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}},"post":{"tags":["setup"],"summary":"Request Setup Call","operationId":"request_setup_call_setup_setup_call_post","security":[{"APIKeyHeader":[]},{"HTTPBearer":[]}],"parameters":[{"name":"organization-id","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Organization-Id"}},{"name":"x-user-id","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"X-User-Id"}},{"name":"timezone","in":"header","required":false,"schema":{"type":"string","default":"UTC","title":"Timezone"}},{"name":"x-actor-email","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"X-Actor-Email"}},{"name":"x-request-source","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"X-Request-Source"}},{"name":"x-operation-id","in":"header","required":false,"schema":{"anyOf":[{"type":"string","maxLength":36},{"type":"null"}],"title":"X-Operation-Id"}},{"name":"x-commit-message","in":"header","required":false,"schema":{"anyOf":[{"type":"string","minLength":1},{"type":"null"}],"title":"X-Commit-Message"}},{"name":"x-confirmation-id","in":"header","required":false,"schema":{"anyOf":[{"type":"string","maxLength":36},{"type":"null"}],"title":"X-Confirmation-Id"}},{"name":"x-chat-id","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"X-Chat-Id"}}],"responses":{"202":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/SetupCallRequestPublic"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/setup/company-profile/review":{"get":{"tags":["setup"],"summary":"Read Identity Review","operationId":"read_identity_review_setup_company_profile_review_get","security":[{"APIKeyHeader":[]},{"HTTPBearer":[]}],"parameters":[{"name":"organization-id","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Organization-Id"}},{"name":"x-user-id","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"X-User-Id"}},{"name":"timezone","in":"header","required":false,"schema":{"type":"string","default":"UTC","title":"Timezone"}},{"name":"x-actor-email","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"X-Actor-Email"}},{"name":"x-request-source","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"X-Request-Source"}},{"name":"x-operation-id","in":"header","required":false,"schema":{"anyOf":[{"type":"string","maxLength":36},{"type":"null"}],"title":"X-Operation-Id"}},{"name":"x-commit-message","in":"header","required":false,"schema":{"anyOf":[{"type":"string","minLength":1},{"type":"null"}],"title":"X-Commit-Message"}},{"name":"x-confirmation-id","in":"header","required":false,"schema":{"anyOf":[{"type":"string","maxLength":36},{"type":"null"}],"title":"X-Confirmation-Id"}},{"name":"x-chat-id","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"X-Chat-Id"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/IdentityReviewPublic"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/setup/numbers":{"get":{"tags":["setup"],"summary":"Read Number Selection","operationId":"read_number_selection_setup_numbers_get","security":[{"APIKeyHeader":[]},{"HTTPBearer":[]}],"parameters":[{"name":"approval_gated","in":"query","required":false,"schema":{"type":"boolean","default":false,"title":"Approval Gated"}},{"name":"organization-id","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Organization-Id"}},{"name":"x-user-id","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"X-User-Id"}},{"name":"timezone","in":"header","required":false,"schema":{"type":"string","default":"UTC","title":"Timezone"}},{"name":"x-actor-email","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"X-Actor-Email"}},{"name":"x-request-source","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"X-Request-Source"}},{"name":"x-operation-id","in":"header","required":false,"schema":{"anyOf":[{"type":"string","maxLength":36},{"type":"null"}],"title":"X-Operation-Id"}},{"name":"x-commit-message","in":"header","required":false,"schema":{"anyOf":[{"type":"string","minLength":1},{"type":"null"}],"title":"X-Commit-Message"}},{"name":"x-confirmation-id","in":"header","required":false,"schema":{"anyOf":[{"type":"string","maxLength":36},{"type":"null"}],"title":"X-Confirmation-Id"}},{"name":"x-chat-id","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"X-Chat-Id"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/NumberSelectionStatePublic"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/setup/numbers/available":{"get":{"tags":["setup"],"summary":"Search Available Numbers","operationId":"search_available_numbers_setup_numbers_available_get","security":[{"APIKeyHeader":[]},{"HTTPBearer":[]}],"parameters":[{"name":"area_code","in":"query","required":true,"schema":{"type":"string","pattern":"^[2-9][0-9]{2}$","title":"Area Code"}},{"name":"approval_gated","in":"query","required":false,"schema":{"type":"boolean","default":false,"title":"Approval Gated"}},{"name":"organization-id","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Organization-Id"}},{"name":"x-user-id","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"X-User-Id"}},{"name":"timezone","in":"header","required":false,"schema":{"type":"string","default":"UTC","title":"Timezone"}},{"name":"x-actor-email","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"X-Actor-Email"}},{"name":"x-request-source","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"X-Request-Source"}},{"name":"x-operation-id","in":"header","required":false,"schema":{"anyOf":[{"type":"string","maxLength":36},{"type":"null"}],"title":"X-Operation-Id"}},{"name":"x-commit-message","in":"header","required":false,"schema":{"anyOf":[{"type":"string","minLength":1},{"type":"null"}],"title":"X-Commit-Message"}},{"name":"x-confirmation-id","in":"header","required":false,"schema":{"anyOf":[{"type":"string","maxLength":36},{"type":"null"}],"title":"X-Confirmation-Id"}},{"name":"x-chat-id","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"X-Chat-Id"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/NumberInventoryPublic"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/settings/service-area":{"get":{"tags":["service-area"],"summary":"Read Service Area Policy","operationId":"read_service_area_policy_settings_service_area_get","security":[{"APIKeyHeader":[]},{"HTTPBearer":[]}],"parameters":[{"name":"organization-id","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Organization-Id"}},{"name":"x-user-id","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"X-User-Id"}},{"name":"timezone","in":"header","required":false,"schema":{"type":"string","default":"UTC","title":"Timezone"}},{"name":"x-actor-email","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"X-Actor-Email"}},{"name":"x-request-source","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"X-Request-Source"}},{"name":"x-operation-id","in":"header","required":false,"schema":{"anyOf":[{"type":"string","maxLength":36},{"type":"null"}],"title":"X-Operation-Id"}},{"name":"x-commit-message","in":"header","required":false,"schema":{"anyOf":[{"type":"string","minLength":1},{"type":"null"}],"title":"X-Commit-Message"}},{"name":"x-confirmation-id","in":"header","required":false,"schema":{"anyOf":[{"type":"string","maxLength":36},{"type":"null"}],"title":"X-Confirmation-Id"}},{"name":"x-chat-id","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"X-Chat-Id"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ServiceAreaPolicyPublic"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}},"put":{"tags":["service-area"],"summary":"Update Service Area Policy","operationId":"update_service_area_policy_settings_service_area_put","security":[{"APIKeyHeader":[]},{"HTTPBearer":[]}],"parameters":[{"name":"organization-id","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Organization-Id"}},{"name":"x-user-id","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"X-User-Id"}},{"name":"timezone","in":"header","required":false,"schema":{"type":"string","default":"UTC","title":"Timezone"}},{"name":"x-actor-email","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"X-Actor-Email"}},{"name":"x-request-source","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"X-Request-Source"}},{"name":"x-operation-id","in":"header","required":false,"schema":{"anyOf":[{"type":"string","maxLength":36},{"type":"null"}],"title":"X-Operation-Id"}},{"name":"x-commit-message","in":"header","required":false,"schema":{"anyOf":[{"type":"string","minLength":1},{"type":"null"}],"title":"X-Commit-Message"}},{"name":"x-confirmation-id","in":"header","required":false,"schema":{"anyOf":[{"type":"string","maxLength":36},{"type":"null"}],"title":"X-Confirmation-Id"}},{"name":"x-chat-id","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"X-Chat-Id"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/UpdateServiceAreaPolicyRequest"}}}},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ServiceAreaPolicyUpdatePublic"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/settings/service-area/regions":{"get":{"tags":["service-area"],"summary":"List Service Area Regions","operationId":"list_service_area_regions_settings_service_area_regions_get","security":[{"APIKeyHeader":[]},{"HTTPBearer":[]}],"parameters":[{"name":"organization-id","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Organization-Id"}},{"name":"x-user-id","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"X-User-Id"}},{"name":"timezone","in":"header","required":false,"schema":{"type":"string","default":"UTC","title":"Timezone"}},{"name":"x-actor-email","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"X-Actor-Email"}},{"name":"x-request-source","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"X-Request-Source"}},{"name":"x-operation-id","in":"header","required":false,"schema":{"anyOf":[{"type":"string","maxLength":36},{"type":"null"}],"title":"X-Operation-Id"}},{"name":"x-commit-message","in":"header","required":false,"schema":{"anyOf":[{"type":"string","minLength":1},{"type":"null"}],"title":"X-Commit-Message"}},{"name":"x-confirmation-id","in":"header","required":false,"schema":{"anyOf":[{"type":"string","maxLength":36},{"type":"null"}],"title":"X-Confirmation-Id"}},{"name":"x-chat-id","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"X-Chat-Id"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"type":"array","items":{"$ref":"#/components/schemas/ServiceAreaRegionOption"},"title":"Response List Service Area Regions Settings Service Area Regions Get"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}},"post":{"tags":["service-area"],"summary":"Create Service Area Region","operationId":"create_service_area_region_settings_service_area_regions_post","security":[{"APIKeyHeader":[]},{"HTTPBearer":[]}],"parameters":[{"name":"organization-id","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Organization-Id"}},{"name":"x-user-id","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"X-User-Id"}},{"name":"timezone","in":"header","required":false,"schema":{"type":"string","default":"UTC","title":"Timezone"}},{"name":"x-actor-email","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"X-Actor-Email"}},{"name":"x-request-source","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"X-Request-Source"}},{"name":"x-operation-id","in":"header","required":false,"schema":{"anyOf":[{"type":"string","maxLength":36},{"type":"null"}],"title":"X-Operation-Id"}},{"name":"x-commit-message","in":"header","required":false,"schema":{"anyOf":[{"type":"string","minLength":1},{"type":"null"}],"title":"X-Commit-Message"}},{"name":"x-confirmation-id","in":"header","required":false,"schema":{"anyOf":[{"type":"string","maxLength":36},{"type":"null"}],"title":"X-Confirmation-Id"}},{"name":"x-chat-id","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"X-Chat-Id"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ServiceAreaRegionWriteRequest"}}}},"responses":{"201":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ServiceAreaManagedRegion"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/settings/service-area/regions/zones":{"get":{"tags":["service-area"],"summary":"List Service Area Zones","operationId":"list_service_area_zones_settings_service_area_regions_zones_get","security":[{"APIKeyHeader":[]},{"HTTPBearer":[]}],"parameters":[{"name":"organization-id","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Organization-Id"}},{"name":"x-user-id","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"X-User-Id"}},{"name":"timezone","in":"header","required":false,"schema":{"type":"string","default":"UTC","title":"Timezone"}},{"name":"x-actor-email","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"X-Actor-Email"}},{"name":"x-request-source","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"X-Request-Source"}},{"name":"x-operation-id","in":"header","required":false,"schema":{"anyOf":[{"type":"string","maxLength":36},{"type":"null"}],"title":"X-Operation-Id"}},{"name":"x-commit-message","in":"header","required":false,"schema":{"anyOf":[{"type":"string","minLength":1},{"type":"null"}],"title":"X-Commit-Message"}},{"name":"x-confirmation-id","in":"header","required":false,"schema":{"anyOf":[{"type":"string","maxLength":36},{"type":"null"}],"title":"X-Confirmation-Id"}},{"name":"x-chat-id","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"X-Chat-Id"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"type":"array","items":{"$ref":"#/components/schemas/ServiceAreaZoneOption"},"title":"Response List Service Area Zones Settings Service Area Regions Zones Get"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/settings/service-area/regions/{region_id}":{"patch":{"tags":["service-area"],"summary":"Update Service Area Region","operationId":"update_service_area_region_settings_service_area_regions__region_id__patch","security":[{"APIKeyHeader":[]},{"HTTPBearer":[]}],"parameters":[{"name":"region_id","in":"path","required":true,"schema":{"type":"string","title":"Region Id"}},{"name":"organization-id","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Organization-Id"}},{"name":"x-user-id","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"X-User-Id"}},{"name":"timezone","in":"header","required":false,"schema":{"type":"string","default":"UTC","title":"Timezone"}},{"name":"x-actor-email","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"X-Actor-Email"}},{"name":"x-request-source","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"X-Request-Source"}},{"name":"x-operation-id","in":"header","required":false,"schema":{"anyOf":[{"type":"string","maxLength":36},{"type":"null"}],"title":"X-Operation-Id"}},{"name":"x-commit-message","in":"header","required":false,"schema":{"anyOf":[{"type":"string","minLength":1},{"type":"null"}],"title":"X-Commit-Message"}},{"name":"x-confirmation-id","in":"header","required":false,"schema":{"anyOf":[{"type":"string","maxLength":36},{"type":"null"}],"title":"X-Confirmation-Id"}},{"name":"x-chat-id","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"X-Chat-Id"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ServiceAreaRegionWriteRequest"}}}},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ServiceAreaManagedRegion"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/settings/service-area/preview":{"get":{"tags":["service-area"],"summary":"Preview Service Area Zip","operationId":"preview_service_area_zip_settings_service_area_preview_get","security":[{"APIKeyHeader":[]},{"HTTPBearer":[]}],"parameters":[{"name":"zip_code","in":"query","required":true,"schema":{"type":"string","title":"Zip Code"}},{"name":"organization-id","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Organization-Id"}},{"name":"x-user-id","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"X-User-Id"}},{"name":"timezone","in":"header","required":false,"schema":{"type":"string","default":"UTC","title":"Timezone"}},{"name":"x-actor-email","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"X-Actor-Email"}},{"name":"x-request-source","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"X-Request-Source"}},{"name":"x-operation-id","in":"header","required":false,"schema":{"anyOf":[{"type":"string","maxLength":36},{"type":"null"}],"title":"X-Operation-Id"}},{"name":"x-commit-message","in":"header","required":false,"schema":{"anyOf":[{"type":"string","minLength":1},{"type":"null"}],"title":"X-Commit-Message"}},{"name":"x-confirmation-id","in":"header","required":false,"schema":{"anyOf":[{"type":"string","maxLength":36},{"type":"null"}],"title":"X-Confirmation-Id"}},{"name":"x-chat-id","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"X-Chat-Id"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ServiceAreaZipPreview"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/settings/job-limits":{"get":{"tags":["job-limits"],"summary":"List Job Limits","operationId":"list_job_limits_settings_job_limits_get","security":[{"APIKeyHeader":[]},{"HTTPBearer":[]}],"parameters":[{"name":"organization-id","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Organization-Id"}},{"name":"x-user-id","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"X-User-Id"}},{"name":"timezone","in":"header","required":false,"schema":{"type":"string","default":"UTC","title":"Timezone"}},{"name":"x-actor-email","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"X-Actor-Email"}},{"name":"x-request-source","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"X-Request-Source"}},{"name":"x-operation-id","in":"header","required":false,"schema":{"anyOf":[{"type":"string","maxLength":36},{"type":"null"}],"title":"X-Operation-Id"}},{"name":"x-commit-message","in":"header","required":false,"schema":{"anyOf":[{"type":"string","minLength":1},{"type":"null"}],"title":"X-Commit-Message"}},{"name":"x-confirmation-id","in":"header","required":false,"schema":{"anyOf":[{"type":"string","maxLength":36},{"type":"null"}],"title":"X-Confirmation-Id"}},{"name":"x-chat-id","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"X-Chat-Id"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/JobLimitsResponse"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/settings/job-limits/preview":{"post":{"tags":["job-limits"],"summary":"Preview Job Limits","description":"Whether the day would be offered under the saved limits, or under `policies` when given. Saves nothing.","operationId":"preview_job_limits_settings_job_limits_preview_post","security":[{"APIKeyHeader":[]},{"HTTPBearer":[]}],"parameters":[{"name":"organization-id","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Organization-Id"}},{"name":"x-user-id","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"X-User-Id"}},{"name":"timezone","in":"header","required":false,"schema":{"type":"string","default":"UTC","title":"Timezone"}},{"name":"x-actor-email","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"X-Actor-Email"}},{"name":"x-request-source","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"X-Request-Source"}},{"name":"x-operation-id","in":"header","required":false,"schema":{"anyOf":[{"type":"string","maxLength":36},{"type":"null"}],"title":"X-Operation-Id"}},{"name":"x-commit-message","in":"header","required":false,"schema":{"anyOf":[{"type":"string","minLength":1},{"type":"null"}],"title":"X-Commit-Message"}},{"name":"x-confirmation-id","in":"header","required":false,"schema":{"anyOf":[{"type":"string","maxLength":36},{"type":"null"}],"title":"X-Confirmation-Id"}},{"name":"x-chat-id","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"X-Chat-Id"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/JobLimitPreviewRequest"}}}},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"title":"Response Preview Job Limits Settings Job Limits Preview Post"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/settings/job-summary":{"get":{"tags":["job-summary"],"summary":"Read Job Summary","operationId":"read_job_summary_settings_job_summary_get","security":[{"APIKeyHeader":[]},{"HTTPBearer":[]}],"parameters":[{"name":"organization-id","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Organization-Id"}},{"name":"x-user-id","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"X-User-Id"}},{"name":"timezone","in":"header","required":false,"schema":{"type":"string","default":"UTC","title":"Timezone"}},{"name":"x-actor-email","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"X-Actor-Email"}},{"name":"x-request-source","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"X-Request-Source"}},{"name":"x-operation-id","in":"header","required":false,"schema":{"anyOf":[{"type":"string","maxLength":36},{"type":"null"}],"title":"X-Operation-Id"}},{"name":"x-commit-message","in":"header","required":false,"schema":{"anyOf":[{"type":"string","minLength":1},{"type":"null"}],"title":"X-Commit-Message"}},{"name":"x-confirmation-id","in":"header","required":false,"schema":{"anyOf":[{"type":"string","maxLength":36},{"type":"null"}],"title":"X-Confirmation-Id"}},{"name":"x-chat-id","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"X-Chat-Id"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/JobSummaryResponse"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/settings/holidays":{"get":{"tags":["holidays"],"summary":"Read Holiday Settings","operationId":"read_holiday_settings_settings_holidays_get","security":[{"APIKeyHeader":[]},{"HTTPBearer":[]}],"parameters":[{"name":"organization-id","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Organization-Id"}},{"name":"x-user-id","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"X-User-Id"}},{"name":"timezone","in":"header","required":false,"schema":{"type":"string","default":"UTC","title":"Timezone"}},{"name":"x-actor-email","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"X-Actor-Email"}},{"name":"x-request-source","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"X-Request-Source"}},{"name":"x-operation-id","in":"header","required":false,"schema":{"anyOf":[{"type":"string","maxLength":36},{"type":"null"}],"title":"X-Operation-Id"}},{"name":"x-commit-message","in":"header","required":false,"schema":{"anyOf":[{"type":"string","minLength":1},{"type":"null"}],"title":"X-Commit-Message"}},{"name":"x-confirmation-id","in":"header","required":false,"schema":{"anyOf":[{"type":"string","maxLength":36},{"type":"null"}],"title":"X-Confirmation-Id"}},{"name":"x-chat-id","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"X-Chat-Id"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HolidaySettingsResponse"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}},"put":{"tags":["holidays"],"summary":"Update Holiday Settings","operationId":"update_holiday_settings_settings_holidays_put","security":[{"APIKeyHeader":[]},{"HTTPBearer":[]}],"parameters":[{"name":"organization-id","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Organization-Id"}},{"name":"x-user-id","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"X-User-Id"}},{"name":"timezone","in":"header","required":false,"schema":{"type":"string","default":"UTC","title":"Timezone"}},{"name":"x-actor-email","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"X-Actor-Email"}},{"name":"x-request-source","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"X-Request-Source"}},{"name":"x-operation-id","in":"header","required":false,"schema":{"anyOf":[{"type":"string","maxLength":36},{"type":"null"}],"title":"X-Operation-Id"}},{"name":"x-commit-message","in":"header","required":false,"schema":{"anyOf":[{"type":"string","minLength":1},{"type":"null"}],"title":"X-Commit-Message"}},{"name":"x-confirmation-id","in":"header","required":false,"schema":{"anyOf":[{"type":"string","maxLength":36},{"type":"null"}],"title":"X-Confirmation-Id"}},{"name":"x-chat-id","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"X-Chat-Id"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/HolidaySettingsUpdate"}}}},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HolidaySettingsResponse"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/settings/office-hours":{"get":{"tags":["office-hours"],"summary":"Read Office Hours","operationId":"read_office_hours_settings_office_hours_get","security":[{"APIKeyHeader":[]},{"HTTPBearer":[]}],"parameters":[{"name":"organization-id","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Organization-Id"}},{"name":"x-user-id","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"X-User-Id"}},{"name":"timezone","in":"header","required":false,"schema":{"type":"string","default":"UTC","title":"Timezone"}},{"name":"x-actor-email","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"X-Actor-Email"}},{"name":"x-request-source","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"X-Request-Source"}},{"name":"x-operation-id","in":"header","required":false,"schema":{"anyOf":[{"type":"string","maxLength":36},{"type":"null"}],"title":"X-Operation-Id"}},{"name":"x-commit-message","in":"header","required":false,"schema":{"anyOf":[{"type":"string","minLength":1},{"type":"null"}],"title":"X-Commit-Message"}},{"name":"x-confirmation-id","in":"header","required":false,"schema":{"anyOf":[{"type":"string","maxLength":36},{"type":"null"}],"title":"X-Confirmation-Id"}},{"name":"x-chat-id","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"X-Chat-Id"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/OfficeHoursResponse"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}},"put":{"tags":["office-hours"],"summary":"Update Office Hours","operationId":"update_office_hours_settings_office_hours_put","security":[{"APIKeyHeader":[]},{"HTTPBearer":[]}],"parameters":[{"name":"organization-id","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Organization-Id"}},{"name":"x-user-id","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"X-User-Id"}},{"name":"timezone","in":"header","required":false,"schema":{"type":"string","default":"UTC","title":"Timezone"}},{"name":"x-actor-email","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"X-Actor-Email"}},{"name":"x-request-source","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"X-Request-Source"}},{"name":"x-operation-id","in":"header","required":false,"schema":{"anyOf":[{"type":"string","maxLength":36},{"type":"null"}],"title":"X-Operation-Id"}},{"name":"x-commit-message","in":"header","required":false,"schema":{"anyOf":[{"type":"string","minLength":1},{"type":"null"}],"title":"X-Commit-Message"}},{"name":"x-confirmation-id","in":"header","required":false,"schema":{"anyOf":[{"type":"string","maxLength":36},{"type":"null"}],"title":"X-Confirmation-Id"}},{"name":"x-chat-id","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"X-Chat-Id"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/OfficeHoursUpdate"}}}},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/OfficeHoursResponse"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/settings/aged-pace":{"get":{"tags":["aged-pace"],"summary":"Read Aged Pace","operationId":"read_aged_pace_settings_aged_pace_get","security":[{"APIKeyHeader":[]},{"HTTPBearer":[]}],"parameters":[{"name":"organization-id","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Organization-Id"}},{"name":"x-user-id","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"X-User-Id"}},{"name":"timezone","in":"header","required":false,"schema":{"type":"string","default":"UTC","title":"Timezone"}},{"name":"x-actor-email","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"X-Actor-Email"}},{"name":"x-request-source","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"X-Request-Source"}},{"name":"x-operation-id","in":"header","required":false,"schema":{"anyOf":[{"type":"string","maxLength":36},{"type":"null"}],"title":"X-Operation-Id"}},{"name":"x-commit-message","in":"header","required":false,"schema":{"anyOf":[{"type":"string","minLength":1},{"type":"null"}],"title":"X-Commit-Message"}},{"name":"x-confirmation-id","in":"header","required":false,"schema":{"anyOf":[{"type":"string","maxLength":36},{"type":"null"}],"title":"X-Confirmation-Id"}},{"name":"x-chat-id","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"X-Chat-Id"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/CampaignAgedPace"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}},"put":{"tags":["aged-pace"],"summary":"Update Aged Pace","operationId":"update_aged_pace_settings_aged_pace_put","security":[{"APIKeyHeader":[]},{"HTTPBearer":[]}],"parameters":[{"name":"organization-id","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Organization-Id"}},{"name":"x-user-id","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"X-User-Id"}},{"name":"timezone","in":"header","required":false,"schema":{"type":"string","default":"UTC","title":"Timezone"}},{"name":"x-actor-email","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"X-Actor-Email"}},{"name":"x-request-source","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"X-Request-Source"}},{"name":"x-operation-id","in":"header","required":false,"schema":{"anyOf":[{"type":"string","maxLength":36},{"type":"null"}],"title":"X-Operation-Id"}},{"name":"x-commit-message","in":"header","required":false,"schema":{"anyOf":[{"type":"string","minLength":1},{"type":"null"}],"title":"X-Commit-Message"}},{"name":"x-confirmation-id","in":"header","required":false,"schema":{"anyOf":[{"type":"string","maxLength":36},{"type":"null"}],"title":"X-Confirmation-Id"}},{"name":"x-chat-id","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"X-Chat-Id"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/CampaignAgedPace"}}}},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/CampaignAgedPace"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/call-analysis/overview":{"get":{"tags":["call-analysis"],"summary":"Get Call Analysis Overview","operationId":"get_call_analysis_overview_call_analysis_overview_get","security":[{"APIKeyHeader":[]},{"HTTPBearer":[]}],"parameters":[{"name":"days","in":"query","required":false,"schema":{"type":"integer","maximum":90,"minimum":1,"default":14,"title":"Days"}},{"name":"direction","in":"query","required":false,"schema":{"$ref":"#/components/schemas/CallAnalysisDirection","default":"inbound"}},{"name":"started_at","in":"query","required":false,"schema":{"anyOf":[{"type":"string","format":"date-time"},{"type":"null"}],"title":"Started At"}},{"name":"ended_at","in":"query","required":false,"schema":{"anyOf":[{"type":"string","format":"date-time"},{"type":"null"}],"title":"Ended At"}},{"name":"organization-id","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Organization-Id"}},{"name":"x-user-id","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"X-User-Id"}},{"name":"timezone","in":"header","required":false,"schema":{"type":"string","default":"UTC","title":"Timezone"}},{"name":"x-actor-email","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"X-Actor-Email"}},{"name":"x-request-source","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"X-Request-Source"}},{"name":"x-operation-id","in":"header","required":false,"schema":{"anyOf":[{"type":"string","maxLength":36},{"type":"null"}],"title":"X-Operation-Id"}},{"name":"x-commit-message","in":"header","required":false,"schema":{"anyOf":[{"type":"string","minLength":1},{"type":"null"}],"title":"X-Commit-Message"}},{"name":"x-confirmation-id","in":"header","required":false,"schema":{"anyOf":[{"type":"string","maxLength":36},{"type":"null"}],"title":"X-Confirmation-Id"}},{"name":"x-chat-id","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"X-Chat-Id"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/CallAnalysisOverviewPublic"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/call-analysis/calls":{"get":{"tags":["call-analysis"],"summary":"Get Call Analysis Calls","operationId":"get_call_analysis_calls_call_analysis_calls_get","security":[{"APIKeyHeader":[]},{"HTTPBearer":[]}],"parameters":[{"name":"started_at","in":"query","required":true,"schema":{"type":"string","format":"date-time","description":"Inclusive timestamp from overview.period.started_at","title":"Started At"},"description":"Inclusive timestamp from overview.period.started_at"},{"name":"ended_at","in":"query","required":true,"schema":{"type":"string","format":"date-time","description":"Exclusive timestamp from overview.period.ended_at","title":"Ended At"},"description":"Exclusive timestamp from overview.period.ended_at"},{"name":"sort_by","in":"query","required":false,"schema":{"anyOf":[{"$ref":"#/components/schemas/CallAnalysisSort"},{"type":"null"}],"title":"Sort By"}},{"name":"sort_direction","in":"query","required":false,"schema":{"$ref":"#/components/schemas/CallAnalysisSortDirection","default":"desc"}},{"name":"prioritize_booking_intent","in":"query","required":false,"schema":{"type":"boolean","default":false,"title":"Prioritize Booking Intent"}},{"name":"exclude_booked_since","in":"query","required":false,"schema":{"type":"boolean","default":false,"title":"Exclude Booked Since"}},{"name":"exclude_internal","in":"query","required":false,"schema":{"type":"boolean","default":false,"title":"Exclude Internal"}},{"name":"bucket","in":"query","required":false,"schema":{"$ref":"#/components/schemas/CallAnalysisBucket","default":"all"}},{"name":"classification","in":"query","required":false,"schema":{"anyOf":[{"$ref":"#/components/schemas/CallAnalysisClassification"},{"type":"null"}],"title":"Classification"}},{"name":"evaluation_status","in":"query","required":false,"schema":{"anyOf":[{"$ref":"#/components/schemas/CallAnalysisEvaluationStatus"},{"type":"null"}],"title":"Evaluation Status"}},{"name":"processing_status","in":"query","required":false,"schema":{"anyOf":[{"$ref":"#/components/schemas/CallAnalysisProcessingStatus"},{"type":"null"}],"title":"Processing Status"}},{"name":"limit","in":"query","required":false,"schema":{"type":"integer","maximum":100,"minimum":1,"default":50,"title":"Limit"}},{"name":"offset","in":"query","required":false,"schema":{"type":"integer","maximum":100000,"minimum":0,"default":0,"title":"Offset"}},{"name":"csr_id","in":"query","required":false,"schema":{"anyOf":[{"type":"string","maxLength":30,"pattern":"^(unassigned|[0-9]+)$"},{"type":"null"}],"title":"Csr Id"}},{"name":"reason","in":"query","required":false,"schema":{"anyOf":[{"type":"string","minLength":1},{"type":"null"}],"description":"Exact saved ServiceTitan call reason name","title":"Reason"},"description":"Exact saved ServiceTitan call reason name"},{"name":"reason_missing","in":"query","required":false,"schema":{"type":"boolean","description":"Only calls without a saved ServiceTitan reason name; cannot be combined with reason","default":false,"title":"Reason Missing"},"description":"Only calls without a saved ServiceTitan reason name; cannot be combined with reason"},{"name":"direction","in":"query","required":false,"schema":{"$ref":"#/components/schemas/CallAnalysisDirection","default":"inbound"}},{"name":"organization-id","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Organization-Id"}},{"name":"x-user-id","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"X-User-Id"}},{"name":"timezone","in":"header","required":false,"schema":{"type":"string","default":"UTC","title":"Timezone"}},{"name":"x-actor-email","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"X-Actor-Email"}},{"name":"x-request-source","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"X-Request-Source"}},{"name":"x-operation-id","in":"header","required":false,"schema":{"anyOf":[{"type":"string","maxLength":36},{"type":"null"}],"title":"X-Operation-Id"}},{"name":"x-commit-message","in":"header","required":false,"schema":{"anyOf":[{"type":"string","minLength":1},{"type":"null"}],"title":"X-Commit-Message"}},{"name":"x-confirmation-id","in":"header","required":false,"schema":{"anyOf":[{"type":"string","maxLength":36},{"type":"null"}],"title":"X-Confirmation-Id"}},{"name":"x-chat-id","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"X-Chat-Id"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/CallAnalysisCallsPublic"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/call-analysis/csrs":{"get":{"tags":["call-analysis"],"summary":"Get Call Analysis Csrs","operationId":"get_call_analysis_csrs_call_analysis_csrs_get","security":[{"APIKeyHeader":[]},{"HTTPBearer":[]}],"parameters":[{"name":"started_at","in":"query","required":true,"schema":{"type":"string","format":"date-time","title":"Started At"}},{"name":"ended_at","in":"query","required":true,"schema":{"type":"string","format":"date-time","title":"Ended At"}},{"name":"direction","in":"query","required":false,"schema":{"$ref":"#/components/schemas/CallAnalysisDirection","default":"inbound"}},{"name":"organization-id","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Organization-Id"}},{"name":"x-user-id","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"X-User-Id"}},{"name":"timezone","in":"header","required":false,"schema":{"type":"string","default":"UTC","title":"Timezone"}},{"name":"x-actor-email","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"X-Actor-Email"}},{"name":"x-request-source","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"X-Request-Source"}},{"name":"x-operation-id","in":"header","required":false,"schema":{"anyOf":[{"type":"string","maxLength":36},{"type":"null"}],"title":"X-Operation-Id"}},{"name":"x-commit-message","in":"header","required":false,"schema":{"anyOf":[{"type":"string","minLength":1},{"type":"null"}],"title":"X-Commit-Message"}},{"name":"x-confirmation-id","in":"header","required":false,"schema":{"anyOf":[{"type":"string","maxLength":36},{"type":"null"}],"title":"X-Confirmation-Id"}},{"name":"x-chat-id","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"X-Chat-Id"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/CallAnalysisCsrsPublic"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/call-analysis/evaluations/overview":{"get":{"tags":["call-analysis"],"summary":"Get Call Evaluation Overviews","operationId":"get_call_evaluation_overviews_call_analysis_evaluations_overview_get","security":[{"APIKeyHeader":[]},{"HTTPBearer":[]}],"parameters":[{"name":"definition_ids","in":"query","required":true,"schema":{"type":"array","items":{"type":"string"},"minItems":1,"maxItems":100,"title":"Definition Ids"}},{"name":"started_at","in":"query","required":true,"schema":{"type":"string","format":"date-time","title":"Started At"}},{"name":"ended_at","in":"query","required":true,"schema":{"type":"string","format":"date-time","title":"Ended At"}},{"name":"organization-id","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Organization-Id"}},{"name":"x-user-id","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"X-User-Id"}},{"name":"timezone","in":"header","required":false,"schema":{"type":"string","default":"UTC","title":"Timezone"}},{"name":"x-actor-email","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"X-Actor-Email"}},{"name":"x-request-source","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"X-Request-Source"}},{"name":"x-operation-id","in":"header","required":false,"schema":{"anyOf":[{"type":"string","maxLength":36},{"type":"null"}],"title":"X-Operation-Id"}},{"name":"x-commit-message","in":"header","required":false,"schema":{"anyOf":[{"type":"string","minLength":1},{"type":"null"}],"title":"X-Commit-Message"}},{"name":"x-confirmation-id","in":"header","required":false,"schema":{"anyOf":[{"type":"string","maxLength":36},{"type":"null"}],"title":"X-Confirmation-Id"}},{"name":"x-chat-id","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"X-Chat-Id"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/CallEvaluationOverviewsPublic"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/call-analysis/evaluations/{definition_id}/overview":{"get":{"tags":["call-analysis"],"summary":"Get Call Evaluation Overview","operationId":"get_call_evaluation_overview_call_analysis_evaluations__definition_id__overview_get","security":[{"APIKeyHeader":[]},{"HTTPBearer":[]}],"parameters":[{"name":"definition_id","in":"path","required":true,"schema":{"type":"string","minLength":1,"maxLength":255,"title":"Definition Id"}},{"name":"started_at","in":"query","required":true,"schema":{"type":"string","format":"date-time","title":"Started At"}},{"name":"ended_at","in":"query","required":true,"schema":{"type":"string","format":"date-time","title":"Ended At"}},{"name":"organization-id","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Organization-Id"}},{"name":"x-user-id","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"X-User-Id"}},{"name":"timezone","in":"header","required":false,"schema":{"type":"string","default":"UTC","title":"Timezone"}},{"name":"x-actor-email","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"X-Actor-Email"}},{"name":"x-request-source","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"X-Request-Source"}},{"name":"x-operation-id","in":"header","required":false,"schema":{"anyOf":[{"type":"string","maxLength":36},{"type":"null"}],"title":"X-Operation-Id"}},{"name":"x-commit-message","in":"header","required":false,"schema":{"anyOf":[{"type":"string","minLength":1},{"type":"null"}],"title":"X-Commit-Message"}},{"name":"x-confirmation-id","in":"header","required":false,"schema":{"anyOf":[{"type":"string","maxLength":36},{"type":"null"}],"title":"X-Confirmation-Id"}},{"name":"x-chat-id","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"X-Chat-Id"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/CallEvaluationOverviewPublic"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/call-analysis/evaluations/{definition_id}/calls":{"get":{"tags":["call-analysis"],"summary":"Get Call Evaluation Calls","operationId":"get_call_evaluation_calls_call_analysis_evaluations__definition_id__calls_get","security":[{"APIKeyHeader":[]},{"HTTPBearer":[]}],"parameters":[{"name":"definition_id","in":"path","required":true,"schema":{"type":"string","minLength":1,"maxLength":255,"title":"Definition Id"}},{"name":"started_at","in":"query","required":true,"schema":{"type":"string","format":"date-time","title":"Started At"}},{"name":"ended_at","in":"query","required":true,"schema":{"type":"string","format":"date-time","title":"Ended At"}},{"name":"value_json","in":"query","required":false,"schema":{"anyOf":[{"type":"string","maxLength":10000},{"type":"null"}],"description":"Exact effective value as JSON","title":"Value Json"},"description":"Exact effective value as JSON"},{"name":"limit","in":"query","required":false,"schema":{"type":"integer","maximum":100,"minimum":1,"default":50,"title":"Limit"}},{"name":"offset","in":"query","required":false,"schema":{"type":"integer","maximum":100000,"minimum":0,"default":0,"title":"Offset"}},{"name":"organization-id","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Organization-Id"}},{"name":"x-user-id","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"X-User-Id"}},{"name":"timezone","in":"header","required":false,"schema":{"type":"string","default":"UTC","title":"Timezone"}},{"name":"x-actor-email","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"X-Actor-Email"}},{"name":"x-request-source","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"X-Request-Source"}},{"name":"x-operation-id","in":"header","required":false,"schema":{"anyOf":[{"type":"string","maxLength":36},{"type":"null"}],"title":"X-Operation-Id"}},{"name":"x-commit-message","in":"header","required":false,"schema":{"anyOf":[{"type":"string","minLength":1},{"type":"null"}],"title":"X-Commit-Message"}},{"name":"x-confirmation-id","in":"header","required":false,"schema":{"anyOf":[{"type":"string","maxLength":36},{"type":"null"}],"title":"X-Confirmation-Id"}},{"name":"x-chat-id","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"X-Chat-Id"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/CallEvaluationCallsPublic"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/call-analysis/csr-evaluations":{"get":{"tags":["call-analysis"],"summary":"Get Csr Evaluations","operationId":"get_csr_evaluations_call_analysis_csr_evaluations_get","security":[{"APIKeyHeader":[]},{"HTTPBearer":[]}],"parameters":[{"name":"started_at","in":"query","required":true,"schema":{"type":"string","format":"date-time","title":"Started At"}},{"name":"ended_at","in":"query","required":true,"schema":{"type":"string","format":"date-time","title":"Ended At"}},{"name":"direction","in":"query","required":false,"schema":{"$ref":"#/components/schemas/CallAnalysisDirection","default":"inbound"}},{"name":"organization-id","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Organization-Id"}},{"name":"x-user-id","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"X-User-Id"}},{"name":"timezone","in":"header","required":false,"schema":{"type":"string","default":"UTC","title":"Timezone"}},{"name":"x-actor-email","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"X-Actor-Email"}},{"name":"x-request-source","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"X-Request-Source"}},{"name":"x-operation-id","in":"header","required":false,"schema":{"anyOf":[{"type":"string","maxLength":36},{"type":"null"}],"title":"X-Operation-Id"}},{"name":"x-commit-message","in":"header","required":false,"schema":{"anyOf":[{"type":"string","minLength":1},{"type":"null"}],"title":"X-Commit-Message"}},{"name":"x-confirmation-id","in":"header","required":false,"schema":{"anyOf":[{"type":"string","maxLength":36},{"type":"null"}],"title":"X-Confirmation-Id"}},{"name":"x-chat-id","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"X-Chat-Id"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/CsrEvaluationsResponse"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/call-tag-backfills/preview":{"post":{"tags":["call-tag-backfills"],"summary":"Preview Call Tag Backfill","operationId":"preview_call_tag_backfill_call_tag_backfills_preview_post","security":[{"APIKeyHeader":[]},{"HTTPBearer":[]}],"parameters":[{"name":"organization-id","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Organization-Id"}},{"name":"x-user-id","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"X-User-Id"}},{"name":"timezone","in":"header","required":false,"schema":{"type":"string","default":"UTC","title":"Timezone"}},{"name":"x-actor-email","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"X-Actor-Email"}},{"name":"x-request-source","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"X-Request-Source"}},{"name":"x-operation-id","in":"header","required":false,"schema":{"anyOf":[{"type":"string","maxLength":36},{"type":"null"}],"title":"X-Operation-Id"}},{"name":"x-commit-message","in":"header","required":false,"schema":{"anyOf":[{"type":"string","minLength":1},{"type":"null"}],"title":"X-Commit-Message"}},{"name":"x-confirmation-id","in":"header","required":false,"schema":{"anyOf":[{"type":"string","maxLength":36},{"type":"null"}],"title":"X-Confirmation-Id"}},{"name":"x-chat-id","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"X-Chat-Id"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/CallTagBackfillPreviewRequest"}}}},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/CallTagBackfillPreviewResponse"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/call-tag-backfills":{"post":{"tags":["call-tag-backfills"],"summary":"Start Call Tag Backfill","operationId":"start_call_tag_backfill_call_tag_backfills_post","security":[{"APIKeyHeader":[]},{"HTTPBearer":[]}],"parameters":[{"name":"organization-id","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Organization-Id"}},{"name":"x-user-id","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"X-User-Id"}},{"name":"timezone","in":"header","required":false,"schema":{"type":"string","default":"UTC","title":"Timezone"}},{"name":"x-actor-email","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"X-Actor-Email"}},{"name":"x-request-source","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"X-Request-Source"}},{"name":"x-operation-id","in":"header","required":false,"schema":{"anyOf":[{"type":"string","maxLength":36},{"type":"null"}],"title":"X-Operation-Id"}},{"name":"x-commit-message","in":"header","required":false,"schema":{"anyOf":[{"type":"string","minLength":1},{"type":"null"}],"title":"X-Commit-Message"}},{"name":"x-confirmation-id","in":"header","required":false,"schema":{"anyOf":[{"type":"string","maxLength":36},{"type":"null"}],"title":"X-Confirmation-Id"}},{"name":"x-chat-id","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"X-Chat-Id"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/StartCallTagBackfillRequest"}}}},"responses":{"201":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/CallTagBackfillRunPublic"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}},"get":{"tags":["call-tag-backfills"],"summary":"List Call Tag Backfills","operationId":"list_call_tag_backfills_call_tag_backfills_get","security":[{"APIKeyHeader":[]},{"HTTPBearer":[]}],"parameters":[{"name":"limit","in":"query","required":false,"schema":{"type":"integer","maximum":100,"minimum":1,"default":20,"title":"Limit"}},{"name":"organization-id","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Organization-Id"}},{"name":"x-user-id","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"X-User-Id"}},{"name":"timezone","in":"header","required":false,"schema":{"type":"string","default":"UTC","title":"Timezone"}},{"name":"x-actor-email","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"X-Actor-Email"}},{"name":"x-request-source","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"X-Request-Source"}},{"name":"x-operation-id","in":"header","required":false,"schema":{"anyOf":[{"type":"string","maxLength":36},{"type":"null"}],"title":"X-Operation-Id"}},{"name":"x-commit-message","in":"header","required":false,"schema":{"anyOf":[{"type":"string","minLength":1},{"type":"null"}],"title":"X-Commit-Message"}},{"name":"x-confirmation-id","in":"header","required":false,"schema":{"anyOf":[{"type":"string","maxLength":36},{"type":"null"}],"title":"X-Confirmation-Id"}},{"name":"x-chat-id","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"X-Chat-Id"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"type":"array","items":{"$ref":"#/components/schemas/CallTagBackfillRunPublic"},"title":"Response List Call Tag Backfills Call Tag Backfills Get"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/call-tag-backfills/allowance/credits":{"post":{"tags":["call-tag-backfills"],"summary":"Add Call Tag Backfill Credits","operationId":"add_call_tag_backfill_credits_call_tag_backfills_allowance_credits_post","security":[{"APIKeyHeader":[]},{"HTTPBearer":[]}],"parameters":[{"name":"organization-id","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Organization-Id"}},{"name":"x-user-id","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"X-User-Id"}},{"name":"timezone","in":"header","required":false,"schema":{"type":"string","default":"UTC","title":"Timezone"}},{"name":"x-actor-email","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"X-Actor-Email"}},{"name":"x-request-source","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"X-Request-Source"}},{"name":"x-operation-id","in":"header","required":false,"schema":{"anyOf":[{"type":"string","maxLength":36},{"type":"null"}],"title":"X-Operation-Id"}},{"name":"x-commit-message","in":"header","required":false,"schema":{"anyOf":[{"type":"string","minLength":1},{"type":"null"}],"title":"X-Commit-Message"}},{"name":"x-confirmation-id","in":"header","required":false,"schema":{"anyOf":[{"type":"string","maxLength":36},{"type":"null"}],"title":"X-Confirmation-Id"}},{"name":"x-chat-id","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"X-Chat-Id"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/AddCallTagBackfillCreditsRequest"}}}},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/CallTagBackfillAllowanceCreditAdjustment"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/call-tag-backfills/{run_id}":{"get":{"tags":["call-tag-backfills"],"summary":"Read Call Tag Backfill","operationId":"read_call_tag_backfill_call_tag_backfills__run_id__get","security":[{"APIKeyHeader":[]},{"HTTPBearer":[]}],"parameters":[{"name":"run_id","in":"path","required":true,"schema":{"type":"string","title":"Run Id"}},{"name":"organization-id","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Organization-Id"}},{"name":"x-user-id","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"X-User-Id"}},{"name":"timezone","in":"header","required":false,"schema":{"type":"string","default":"UTC","title":"Timezone"}},{"name":"x-actor-email","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"X-Actor-Email"}},{"name":"x-request-source","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"X-Request-Source"}},{"name":"x-operation-id","in":"header","required":false,"schema":{"anyOf":[{"type":"string","maxLength":36},{"type":"null"}],"title":"X-Operation-Id"}},{"name":"x-commit-message","in":"header","required":false,"schema":{"anyOf":[{"type":"string","minLength":1},{"type":"null"}],"title":"X-Commit-Message"}},{"name":"x-confirmation-id","in":"header","required":false,"schema":{"anyOf":[{"type":"string","maxLength":36},{"type":"null"}],"title":"X-Confirmation-Id"}},{"name":"x-chat-id","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"X-Chat-Id"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/CallTagBackfillRunPublic"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/call-tag-backfills/{run_id}/cancel":{"post":{"tags":["call-tag-backfills"],"summary":"Cancel Call Tag Backfill","operationId":"cancel_call_tag_backfill_call_tag_backfills__run_id__cancel_post","security":[{"APIKeyHeader":[]},{"HTTPBearer":[]}],"parameters":[{"name":"run_id","in":"path","required":true,"schema":{"type":"string","title":"Run Id"}},{"name":"organization-id","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Organization-Id"}},{"name":"x-user-id","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"X-User-Id"}},{"name":"timezone","in":"header","required":false,"schema":{"type":"string","default":"UTC","title":"Timezone"}},{"name":"x-actor-email","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"X-Actor-Email"}},{"name":"x-request-source","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"X-Request-Source"}},{"name":"x-operation-id","in":"header","required":false,"schema":{"anyOf":[{"type":"string","maxLength":36},{"type":"null"}],"title":"X-Operation-Id"}},{"name":"x-commit-message","in":"header","required":false,"schema":{"anyOf":[{"type":"string","minLength":1},{"type":"null"}],"title":"X-Commit-Message"}},{"name":"x-confirmation-id","in":"header","required":false,"schema":{"anyOf":[{"type":"string","maxLength":36},{"type":"null"}],"title":"X-Confirmation-Id"}},{"name":"x-chat-id","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"X-Chat-Id"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/CallTagBackfillRunPublic"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/call-tag-results":{"get":{"tags":["tag-results"],"summary":"List Tag Results","operationId":"list_tag_results_call_tag_results_get","security":[{"APIKeyHeader":[]},{"HTTPBearer":[]}],"parameters":[{"name":"tag_definition_id","in":"query","required":true,"schema":{"type":"string","minLength":1,"maxLength":255,"title":"Tag Definition Id"}},{"name":"tag_definition_revision_id","in":"query","required":false,"schema":{"anyOf":[{"type":"string","maxLength":255},{"type":"null"}],"title":"Tag Definition Revision Id"}},{"name":"value_json","in":"query","required":false,"schema":{"anyOf":[{"type":"string","maxLength":10000},{"type":"null"}],"description":"Exact effective value as JSON","title":"Value Json"},"description":"Exact effective value as JSON"},{"name":"minimum","in":"query","required":false,"schema":{"anyOf":[{"type":"number"},{"type":"string","pattern":"^(?!^[-+.]*$)[+-]?0*\\d*\\.?\\d*$"},{"type":"null"}],"title":"Minimum"}},{"name":"maximum","in":"query","required":false,"schema":{"anyOf":[{"type":"number"},{"type":"string","pattern":"^(?!^[-+.]*$)[+-]?0*\\d*\\.?\\d*$"},{"type":"null"}],"title":"Maximum"}},{"name":"contains_json","in":"query","required":false,"schema":{"anyOf":[{"type":"string","maxLength":10000},{"type":"null"}],"description":"Contained list element or JSON document as JSON","title":"Contains Json"},"description":"Contained list element or JSON document as JSON"},{"name":"is_null","in":"query","required":false,"schema":{"anyOf":[{"type":"boolean"},{"type":"null"}],"title":"Is Null"}},{"name":"overridden","in":"query","required":false,"schema":{"anyOf":[{"type":"boolean"},{"type":"null"}],"title":"Overridden"}},{"name":"tagged_after","in":"query","required":false,"schema":{"anyOf":[{"type":"string","format":"date-time"},{"type":"null"}],"title":"Tagged After"}},{"name":"tagged_before","in":"query","required":false,"schema":{"anyOf":[{"type":"string","format":"date-time"},{"type":"null"}],"title":"Tagged Before"}},{"name":"cursor","in":"query","required":false,"schema":{"anyOf":[{"type":"string","maxLength":512},{"type":"null"}],"title":"Cursor"}},{"name":"limit","in":"query","required":false,"schema":{"type":"integer","maximum":100,"minimum":1,"default":50,"title":"Limit"}},{"name":"organization-id","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Organization-Id"}},{"name":"x-user-id","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"X-User-Id"}},{"name":"timezone","in":"header","required":false,"schema":{"type":"string","default":"UTC","title":"Timezone"}},{"name":"x-actor-email","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"X-Actor-Email"}},{"name":"x-request-source","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"X-Request-Source"}},{"name":"x-operation-id","in":"header","required":false,"schema":{"anyOf":[{"type":"string","maxLength":36},{"type":"null"}],"title":"X-Operation-Id"}},{"name":"x-commit-message","in":"header","required":false,"schema":{"anyOf":[{"type":"string","minLength":1},{"type":"null"}],"title":"X-Commit-Message"}},{"name":"x-confirmation-id","in":"header","required":false,"schema":{"anyOf":[{"type":"string","maxLength":36},{"type":"null"}],"title":"X-Confirmation-Id"}},{"name":"x-chat-id","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"X-Chat-Id"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Page_CallTagResultPublic_"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/calls/{call_id}/tag-results":{"get":{"tags":["tag-results"],"summary":"List Call Tag Results","operationId":"list_call_tag_results_calls__call_id__tag_results_get","security":[{"APIKeyHeader":[]},{"HTTPBearer":[]}],"parameters":[{"name":"call_id","in":"path","required":true,"schema":{"type":"integer","maximum":9223372036854775807,"exclusiveMinimum":0,"title":"Call Id"}},{"name":"organization-id","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Organization-Id"}},{"name":"x-user-id","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"X-User-Id"}},{"name":"timezone","in":"header","required":false,"schema":{"type":"string","default":"UTC","title":"Timezone"}},{"name":"x-actor-email","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"X-Actor-Email"}},{"name":"x-request-source","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"X-Request-Source"}},{"name":"x-operation-id","in":"header","required":false,"schema":{"anyOf":[{"type":"string","maxLength":36},{"type":"null"}],"title":"X-Operation-Id"}},{"name":"x-commit-message","in":"header","required":false,"schema":{"anyOf":[{"type":"string","minLength":1},{"type":"null"}],"title":"X-Commit-Message"}},{"name":"x-confirmation-id","in":"header","required":false,"schema":{"anyOf":[{"type":"string","maxLength":36},{"type":"null"}],"title":"X-Confirmation-Id"}},{"name":"x-chat-id","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"X-Chat-Id"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"type":"array","items":{"$ref":"#/components/schemas/CallTagResultPublic"},"title":"Response List Call Tag Results Calls  Call Id  Tag Results Get"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/calls/{call_id}/tag-results/{result_id}/override":{"put":{"tags":["tag-results"],"summary":"Put Call Tag Result Override","operationId":"put_call_tag_result_override_calls__call_id__tag_results__result_id__override_put","security":[{"APIKeyHeader":[]},{"HTTPBearer":[]}],"parameters":[{"name":"call_id","in":"path","required":true,"schema":{"type":"integer","maximum":9223372036854775807,"exclusiveMinimum":0,"title":"Call Id"}},{"name":"result_id","in":"path","required":true,"schema":{"type":"string","title":"Result Id"}},{"name":"organization-id","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Organization-Id"}},{"name":"x-user-id","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"X-User-Id"}},{"name":"timezone","in":"header","required":false,"schema":{"type":"string","default":"UTC","title":"Timezone"}},{"name":"x-actor-email","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"X-Actor-Email"}},{"name":"x-request-source","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"X-Request-Source"}},{"name":"x-operation-id","in":"header","required":false,"schema":{"anyOf":[{"type":"string","maxLength":36},{"type":"null"}],"title":"X-Operation-Id"}},{"name":"x-commit-message","in":"header","required":false,"schema":{"anyOf":[{"type":"string","minLength":1},{"type":"null"}],"title":"X-Commit-Message"}},{"name":"x-confirmation-id","in":"header","required":false,"schema":{"anyOf":[{"type":"string","maxLength":36},{"type":"null"}],"title":"X-Confirmation-Id"}},{"name":"x-chat-id","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"X-Chat-Id"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/PutTagResultOverrideRequest"}}}},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/CallTagResultPublic"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}},"delete":{"tags":["tag-results"],"summary":"Delete Call Tag Result Override","operationId":"delete_call_tag_result_override_calls__call_id__tag_results__result_id__override_delete","security":[{"APIKeyHeader":[]},{"HTTPBearer":[]}],"parameters":[{"name":"call_id","in":"path","required":true,"schema":{"type":"integer","maximum":9223372036854775807,"exclusiveMinimum":0,"title":"Call Id"}},{"name":"result_id","in":"path","required":true,"schema":{"type":"string","title":"Result Id"}},{"name":"organization-id","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Organization-Id"}},{"name":"x-user-id","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"X-User-Id"}},{"name":"timezone","in":"header","required":false,"schema":{"type":"string","default":"UTC","title":"Timezone"}},{"name":"x-actor-email","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"X-Actor-Email"}},{"name":"x-request-source","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"X-Request-Source"}},{"name":"x-operation-id","in":"header","required":false,"schema":{"anyOf":[{"type":"string","maxLength":36},{"type":"null"}],"title":"X-Operation-Id"}},{"name":"x-commit-message","in":"header","required":false,"schema":{"anyOf":[{"type":"string","minLength":1},{"type":"null"}],"title":"X-Commit-Message"}},{"name":"x-confirmation-id","in":"header","required":false,"schema":{"anyOf":[{"type":"string","maxLength":36},{"type":"null"}],"title":"X-Confirmation-Id"}},{"name":"x-chat-id","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"X-Chat-Id"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/CallTagResultPublic"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/engagements/{engagement_id}/voice-tag-results":{"get":{"tags":["tag-results"],"summary":"Read Voice Results","operationId":"read_voice_results_engagements__engagement_id__voice_tag_results_get","security":[{"APIKeyHeader":[]},{"HTTPBearer":[]}],"parameters":[{"name":"engagement_id","in":"path","required":true,"schema":{"type":"string","title":"Engagement Id"}},{"name":"organization-id","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Organization-Id"}},{"name":"x-user-id","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"X-User-Id"}},{"name":"timezone","in":"header","required":false,"schema":{"type":"string","default":"UTC","title":"Timezone"}},{"name":"x-actor-email","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"X-Actor-Email"}},{"name":"x-request-source","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"X-Request-Source"}},{"name":"x-operation-id","in":"header","required":false,"schema":{"anyOf":[{"type":"string","maxLength":36},{"type":"null"}],"title":"X-Operation-Id"}},{"name":"x-commit-message","in":"header","required":false,"schema":{"anyOf":[{"type":"string","minLength":1},{"type":"null"}],"title":"X-Commit-Message"}},{"name":"x-confirmation-id","in":"header","required":false,"schema":{"anyOf":[{"type":"string","maxLength":36},{"type":"null"}],"title":"X-Confirmation-Id"}},{"name":"x-chat-id","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"X-Chat-Id"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/VoiceTagResultsPublic"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/engagements/{engagement_id}/voice-tag-results/{result_id}/override":{"put":{"tags":["tag-results"],"summary":"Correct Voice Result","operationId":"correct_voice_result_engagements__engagement_id__voice_tag_results__result_id__override_put","security":[{"APIKeyHeader":[]},{"HTTPBearer":[]}],"parameters":[{"name":"result_id","in":"path","required":true,"schema":{"type":"string","title":"Result Id"}},{"name":"engagement_id","in":"path","required":true,"schema":{"type":"string","title":"Engagement Id"}},{"name":"organization-id","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Organization-Id"}},{"name":"x-user-id","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"X-User-Id"}},{"name":"timezone","in":"header","required":false,"schema":{"type":"string","default":"UTC","title":"Timezone"}},{"name":"x-actor-email","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"X-Actor-Email"}},{"name":"x-request-source","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"X-Request-Source"}},{"name":"x-operation-id","in":"header","required":false,"schema":{"anyOf":[{"type":"string","maxLength":36},{"type":"null"}],"title":"X-Operation-Id"}},{"name":"x-commit-message","in":"header","required":false,"schema":{"anyOf":[{"type":"string","minLength":1},{"type":"null"}],"title":"X-Commit-Message"}},{"name":"x-confirmation-id","in":"header","required":false,"schema":{"anyOf":[{"type":"string","maxLength":36},{"type":"null"}],"title":"X-Confirmation-Id"}},{"name":"x-chat-id","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"X-Chat-Id"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/PutTagResultOverrideRequest"}}}},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/TagResultPublic"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}},"delete":{"tags":["tag-results"],"summary":"Clear Voice Correction","operationId":"clear_voice_correction_engagements__engagement_id__voice_tag_results__result_id__override_delete","security":[{"APIKeyHeader":[]},{"HTTPBearer":[]}],"parameters":[{"name":"result_id","in":"path","required":true,"schema":{"type":"string","title":"Result Id"}},{"name":"engagement_id","in":"path","required":true,"schema":{"type":"string","title":"Engagement Id"}},{"name":"organization-id","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Organization-Id"}},{"name":"x-user-id","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"X-User-Id"}},{"name":"timezone","in":"header","required":false,"schema":{"type":"string","default":"UTC","title":"Timezone"}},{"name":"x-actor-email","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"X-Actor-Email"}},{"name":"x-request-source","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"X-Request-Source"}},{"name":"x-operation-id","in":"header","required":false,"schema":{"anyOf":[{"type":"string","maxLength":36},{"type":"null"}],"title":"X-Operation-Id"}},{"name":"x-commit-message","in":"header","required":false,"schema":{"anyOf":[{"type":"string","minLength":1},{"type":"null"}],"title":"X-Commit-Message"}},{"name":"x-confirmation-id","in":"header","required":false,"schema":{"anyOf":[{"type":"string","maxLength":36},{"type":"null"}],"title":"X-Confirmation-Id"}},{"name":"x-chat-id","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"X-Chat-Id"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/TagResultPublic"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/engagements/{engagement_id}/voice-tag-results/rerun":{"post":{"tags":["tag-results"],"summary":"Rerun Voice Results","operationId":"rerun_voice_results_engagements__engagement_id__voice_tag_results_rerun_post","security":[{"APIKeyHeader":[]},{"HTTPBearer":[]}],"parameters":[{"name":"engagement_id","in":"path","required":true,"schema":{"type":"string","title":"Engagement Id"}},{"name":"organization-id","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Organization-Id"}},{"name":"x-user-id","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"X-User-Id"}},{"name":"timezone","in":"header","required":false,"schema":{"type":"string","default":"UTC","title":"Timezone"}},{"name":"x-actor-email","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"X-Actor-Email"}},{"name":"x-request-source","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"X-Request-Source"}},{"name":"x-operation-id","in":"header","required":false,"schema":{"anyOf":[{"type":"string","maxLength":36},{"type":"null"}],"title":"X-Operation-Id"}},{"name":"x-commit-message","in":"header","required":false,"schema":{"anyOf":[{"type":"string","minLength":1},{"type":"null"}],"title":"X-Commit-Message"}},{"name":"x-confirmation-id","in":"header","required":false,"schema":{"anyOf":[{"type":"string","maxLength":36},{"type":"null"}],"title":"X-Confirmation-Id"}},{"name":"x-chat-id","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"X-Chat-Id"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/VoiceTagRerunPublic"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/{short_code}":{"get":{"summary":"Redirect Short Code","operationId":"redirect_short_code__short_code__get","parameters":[{"name":"short_code","in":"path","required":true,"schema":{"type":"string","minLength":1,"maxLength":16,"pattern":"^[a-zA-Z0-9]+$","description":"The short code to redirect","title":"Short Code"},"description":"The short code to redirect"},{"name":"timezone","in":"header","required":false,"schema":{"type":"string","default":"UTC","title":"Timezone"}},{"name":"x-user-id","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"X-User-Id"}},{"name":"x-actor-email","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"X-Actor-Email"}},{"name":"x-request-source","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"X-Request-Source"}},{"name":"x-operation-id","in":"header","required":false,"schema":{"anyOf":[{"type":"string","maxLength":36},{"type":"null"}],"title":"X-Operation-Id"}},{"name":"x-commit-message","in":"header","required":false,"schema":{"anyOf":[{"type":"string","minLength":1},{"type":"null"}],"title":"X-Commit-Message"}},{"name":"x-confirmation-id","in":"header","required":false,"schema":{"anyOf":[{"type":"string","maxLength":36},{"type":"null"}],"title":"X-Confirmation-Id"}},{"name":"x-chat-id","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"X-Chat-Id"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/internal/channels/{channel_id}/routing":{"get":{"summary":"Get Channel Routing","operationId":"get_channel_routing_internal_channels__channel_id__routing_get","security":[{"APIKeyHeader":[]}],"parameters":[{"name":"channel_id","in":"path","required":true,"schema":{"type":"string","title":"Channel Id"}},{"name":"organization-id","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Organization-Id"}},{"name":"timezone","in":"header","required":false,"schema":{"type":"string","default":"UTC","title":"Timezone"}},{"name":"x-user-id","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"X-User-Id"}},{"name":"x-actor-email","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"X-Actor-Email"}},{"name":"x-request-source","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"X-Request-Source"}},{"name":"x-operation-id","in":"header","required":false,"schema":{"anyOf":[{"type":"string","maxLength":36},{"type":"null"}],"title":"X-Operation-Id"}},{"name":"x-commit-message","in":"header","required":false,"schema":{"anyOf":[{"type":"string","minLength":1},{"type":"null"}],"title":"X-Commit-Message"}},{"name":"x-confirmation-id","in":"header","required":false,"schema":{"anyOf":[{"type":"string","maxLength":36},{"type":"null"}],"title":"X-Confirmation-Id"}},{"name":"x-chat-id","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"X-Chat-Id"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ChannelRouting"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}}},"components":{"schemas":{"AccessLevel":{"type":"string","enum":["none","ask_jenny","platform"],"title":"AccessLevel","description":"Organization access level for paywall: None, Ask Jenny (Compass only), or Platform (full)."},"ActivityEscalation":{"properties":{"id":{"type":"string","title":"Id"},"status":{"$ref":"#/components/schemas/EscalationStatus"},"first_claimed_at":{"anyOf":[{"type":"string","format":"date-time"},{"type":"null"}],"title":"First Claimed At"},"minutes_to_claim":{"anyOf":[{"type":"integer"},{"type":"null"}],"title":"Minutes To Claim"},"assignee":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Assignee"},"steps":{"items":{"$ref":"#/components/schemas/ActivityStep"},"type":"array","title":"Steps"}},"type":"object","required":["id","status","first_claimed_at","minutes_to_claim","assignee"],"title":"ActivityEscalation","description":"``first_claimed_at`` never moves; ``assignee`` is whoever holds the escalation now, who may\nnot be the person who first claimed it."},"ActivityEvent":{"properties":{"id":{"type":"string","title":"Id"},"occurred_at":{"type":"string","format":"date-time","title":"Occurred At"},"notification_type":{"type":"string","title":"Notification Type"},"event_type":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Event Type"},"subject":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Subject"},"source":{"$ref":"#/components/schemas/DispatchSource"},"routed_by":{"anyOf":[{"$ref":"#/components/schemas/DispatchRoute"},{"type":"null"}]},"outcome":{"$ref":"#/components/schemas/DispatchOutcome"},"reason":{"anyOf":[{"$ref":"#/components/schemas/DispatchReason"},{"type":"null"}]},"turned_off_rule_count":{"anyOf":[{"type":"integer"},{"type":"null"}],"title":"Turned Off Rule Count"},"test":{"type":"boolean","title":"Test"},"rules":{"items":{"$ref":"#/components/schemas/ActivityRule"},"type":"array","title":"Rules"},"people":{"items":{"$ref":"#/components/schemas/ActivityPerson"},"type":"array","title":"People"},"unreached":{"items":{"$ref":"#/components/schemas/ActivityUnreached"},"type":"array","title":"Unreached"},"escalation":{"anyOf":[{"$ref":"#/components/schemas/ActivityEscalation"},{"type":"null"}]}},"type":"object","required":["id","occurred_at","notification_type","event_type","subject","source","routed_by","outcome","reason","turned_off_rule_count","test"],"title":"ActivityEvent"},"ActivityLeg":{"properties":{"channel":{"type":"string","title":"Channel"},"timing":{"$ref":"#/components/schemas/LegTiming"},"sent_at":{"anyOf":[{"type":"string","format":"date-time"},{"type":"null"}],"title":"Sent At"},"error":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Error"},"delivery_outcome":{"anyOf":[{"$ref":"#/components/schemas/DeliveryOutcome"},{"type":"null"}]},"provider_status":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Provider Status"},"next_digest_at":{"anyOf":[{"type":"string","format":"date-time"},{"type":"null"}],"title":"Next Digest At"}},"type":"object","required":["channel","timing"],"title":"ActivityLeg","description":"One channel to one person, and what became of it.\n\n``sent_at`` is null for a leg not sent yet: a digest leg then carries ``next_digest_at``."},"ActivityPerson":{"properties":{"id":{"type":"string","title":"Id"},"name":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Name"},"kind":{"anyOf":[{"$ref":"#/components/schemas/RecipientKind"},{"type":"null"}]},"rule_key":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Rule Key"},"legs":{"items":{"$ref":"#/components/schemas/ActivityLeg"},"type":"array","title":"Legs"}},"type":"object","required":["id","name","kind","rule_key"],"title":"ActivityPerson","description":"Someone routing chose, with the rule that named them and every channel that went to them.\n\n``id`` and ``kind`` are how a rule names them: a person's user id, a mailbox's or technician's own\nid. ``kind`` is null for a row no rule could name."},"ActivityResponse":{"properties":{"events":{"items":{"$ref":"#/components/schemas/ActivityEvent"},"type":"array","title":"Events"},"next_cursor":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Next Cursor"}},"type":"object","required":["events","next_cursor"],"title":"ActivityResponse"},"ActivityRule":{"properties":{"rule_key":{"type":"string","title":"Rule Key"},"name":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Name"},"result":{"$ref":"#/components/schemas/RuleResult"},"reason":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Reason"}},"type":"object","required":["rule_key","name","result","reason"],"title":"ActivityRule"},"ActivityStep":{"properties":{"delay_minutes":{"anyOf":[{"type":"integer"},{"type":"null"}],"title":"Delay Minutes"},"sent_at":{"anyOf":[{"type":"string","format":"date-time"},{"type":"null"}],"title":"Sent At"},"people":{"items":{"$ref":"#/components/schemas/ActivityPerson"},"type":"array","title":"People"},"unreached":{"items":{"$ref":"#/components/schemas/ActivityUnreached"},"type":"array","title":"Unreached"}},"type":"object","required":["delay_minutes","sent_at"],"title":"ActivityStep","description":"A follow-up the ladder sent because nobody had claimed the escalation yet."},"ActivityUnreached":{"properties":{"kind":{"type":"string","enum":["reference","rotation","channel"],"title":"Kind"},"id":{"type":"string","title":"Id"},"reason":{"type":"string","title":"Reason"},"rule_key":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Rule Key"},"reference_kind":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Reference Kind"}},"type":"object","required":["kind","id","reason"],"title":"ActivityUnreached","description":"Something a rule asked for that reached nobody: a reference that resolved to no one, a\nrotation with nobody on call, or a channel nobody in the event was sent."},"AddCallTagBackfillCreditsRequest":{"properties":{"additional_credits":{"type":"integer","maximum":1000000.0,"exclusiveMinimum":0.0,"title":"Additional Credits"}},"type":"object","required":["additional_credits"],"title":"AddCallTagBackfillCreditsRequest"},"AddServiceTitanOrgResponse":{"properties":{"status":{"$ref":"#/components/schemas/IntegrationStatus"},"success":{"type":"boolean","title":"Success"},"message":{"type":"string","title":"Message"}},"type":"object","required":["status","success","message"],"title":"AddServiceTitanOrgResponse","description":"Response from ``POST /tenants`` — newly initialized tenant integration."},"AddTenantRequest":{"properties":{"tenant_id":{"type":"string","title":"Tenant Id"},"environment":{"anyOf":[{"$ref":"#/components/schemas/ServiceTitanEnvironment"},{"type":"null"}]},"replace":{"type":"boolean","title":"Replace","default":false}},"type":"object","required":["tenant_id"],"title":"AddTenantRequest"},"AddUserToOrganizationRequest":{"properties":{"organization_id":{"type":"string","title":"Organization Id"},"role_id":{"type":"string","title":"Role Id"},"skip_seat_check":{"type":"boolean","title":"Skip Seat Check","default":false}},"type":"object","required":["organization_id","role_id"],"title":"AddUserToOrganizationRequest"},"AdminDemoPublic":{"properties":{"organization_id":{"type":"string","title":"Organization Id"},"slug":{"type":"string","title":"Slug"},"demo":{"$ref":"#/components/schemas/DemoPublic"}},"type":"object","required":["organization_id","slug","demo"],"title":"AdminDemoPublic"},"AdminUpdateOrganizationRequest":{"properties":{"name":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Name"},"alias":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Alias"},"timezone":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Timezone"},"parent_organization_id":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Parent Organization Id"},"is_active_agent_platform":{"anyOf":[{"type":"boolean"},{"type":"null"}],"title":"Is Active Agent Platform"},"is_active_ask_jenny":{"anyOf":[{"type":"boolean"},{"type":"null"}],"title":"Is Active Ask Jenny"},"parent_link_reason":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Parent Link Reason"}},"type":"object","title":"AdminUpdateOrganizationRequest"},"AdvisoryFindings":{"properties":{"status":{"type":"string","const":"advisory","title":"Status","default":"advisory"},"impact_card":{"$ref":"#/components/schemas/ImpactCard"},"instructions":{"type":"string","title":"Instructions"}},"type":"object","required":["impact_card","instructions"],"title":"AdvisoryFindings","description":"Findings on a change that already happened, carried by the same card.\n\nNeither confirm outcome fits: nothing is waiting on an answer and nothing\nwas refused. Org settings have no draft and no pause to grade a proposal\nagainst, so the write lands and the findings describe what the operator now\nhas — which makes rendering this as ``confirmation_blocked`` a false claim\nabout whether the change went through."},"AgeRange":{"properties":{"min_years":{"type":"integer","minimum":0.0,"title":"Min Years"},"max_years":{"anyOf":[{"type":"integer","minimum":0.0},{"type":"null"}],"title":"Max Years"}},"additionalProperties":false,"type":"object","required":["min_years","max_years"],"title":"AgeRange"},"AgedPaceMode":{"type":"string","enum":["less","auto","more"],"title":"AgedPaceMode"},"AgentEnableRequest":{"properties":{"agent_name":{"type":"string","title":"Agent Name"},"agent_title":{"type":"string","title":"Agent Title"},"conversation_url":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Conversation Url"}},"type":"object","required":["agent_name","agent_title"],"title":"AgentEnableRequest"},"AgentForCampaignRequest":{"properties":{"campaign_id":{"type":"string","title":"Campaign Id"},"roster_key":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Roster Key"},"agent_name":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Agent Name"},"dedicated":{"type":"boolean","title":"Dedicated","default":false},"custom":{"anyOf":[{"$ref":"#/components/schemas/CustomAgentSpec"},{"type":"null"}]}},"type":"object","required":["campaign_id"],"title":"AgentForCampaignRequest"},"AgentVariantRefPublic":{"properties":{"id":{"type":"string","title":"Id"},"name":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Name"},"is_production":{"type":"boolean","title":"Is Production","default":false},"description":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Description"}},"type":"object","required":["id"],"title":"AgentVariantRefPublic","description":"A variant that produced at least one event on the engagement.\n\nAn engagement carries several when the live variant was promoted\nmid-conversation, and none when the agent never spoke."},"AgentVariantVoiceSettings":{"properties":{"v3_csr_canonical":{"anyOf":[{"$ref":"#/components/schemas/VoiceV3CsrCanonicalSettings"},{"type":"null"}]},"live":{"anyOf":[{"$ref":"#/components/schemas/VoiceLiveSettings"},{"type":"null"}]}},"additionalProperties":false,"type":"object","title":"AgentVariantVoiceSettings"},"AiResponseChangeTimelinePublic":{"properties":{"kind":{"type":"string","const":"ai_response_change","title":"Kind","default":"ai_response_change"},"id":{"type":"string","title":"Id"},"engagement_id":{"type":"string","title":"Engagement Id"},"occurred_at":{"type":"string","format":"date-time","title":"Occurred At"},"is_ai_allowed_to_respond":{"type":"boolean","title":"Is Ai Allowed To Respond"},"source":{"type":"string","title":"Source"},"reason":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Reason"},"operator_name":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Operator Name"}},"type":"object","required":["id","engagement_id","occurred_at","is_ai_allowed_to_respond","source"],"title":"AiResponseChangeTimelinePublic"},"AiResponseEnabledChangeSource":{"type":"string","enum":["operator","escalation_auto_mute","hook","google_lsa_csr_takeover","provider_takeover"],"title":"AiResponseEnabledChangeSource"},"AiResponsePausePublic":{"properties":{"source":{"$ref":"#/components/schemas/AiResponseEnabledChangeSource"},"reason":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Reason"},"changed_at":{"type":"string","format":"date-time","title":"Changed At"},"operator_name":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Operator Name"}},"type":"object","required":["source","changed_at"],"title":"AiResponsePausePublic"},"AngiConnectionCreateRequest":{"properties":{"organization_id":{"type":"string","title":"Organization Id"},"company_name":{"type":"string","minLength":1,"title":"Company Name"},"brand_name":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Brand Name"},"spids":{"items":{"type":"string"},"type":"array","title":"Spids"},"contact_email":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Contact Email"},"crm_key":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Crm Key"},"require_api_key":{"type":"boolean","title":"Require Api Key","default":false},"status":{"$ref":"#/components/schemas/AngiConnectionStatus","default":"pending"},"environment":{"$ref":"#/components/schemas/AngiEnvironment","default":"production"},"api_key":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Api Key"}},"type":"object","required":["organization_id","company_name"],"title":"AngiConnectionCreateRequest"},"AngiConnectionResponse":{"properties":{"id":{"type":"string","title":"Id"},"organization_id":{"type":"string","title":"Organization Id"},"organization_name":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Organization Name"},"company_name":{"type":"string","title":"Company Name"},"brand_name":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Brand Name"},"spids":{"items":{"type":"string"},"type":"array","title":"Spids"},"contact_email":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Contact Email"},"crm_key":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Crm Key"},"api_key_last4":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Api Key Last4"},"require_api_key":{"type":"boolean","title":"Require Api Key"},"status":{"$ref":"#/components/schemas/AngiConnectionStatus"},"environment":{"$ref":"#/components/schemas/AngiEnvironment"},"last_webhook_received_at":{"anyOf":[{"type":"string","format":"date-time"},{"type":"null"}],"title":"Last Webhook Received At"},"last_error_at":{"anyOf":[{"type":"string","format":"date-time"},{"type":"null"}],"title":"Last Error At"},"last_error_summary":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Last Error Summary"},"lead_trigger_configured":{"anyOf":[{"type":"boolean"},{"type":"null"}],"title":"Lead Trigger Configured"},"can_activate":{"anyOf":[{"type":"boolean"},{"type":"null"}],"title":"Can Activate"},"activation_blockers":{"anyOf":[{"items":{"type":"string"},"type":"array"},{"type":"null"}],"title":"Activation Blockers"},"created_at":{"anyOf":[{"type":"string","format":"date-time"},{"type":"null"}],"title":"Created At"},"updated_at":{"anyOf":[{"type":"string","format":"date-time"},{"type":"null"}],"title":"Updated At"},"deleted_at":{"anyOf":[{"type":"string","format":"date-time"},{"type":"null"}],"title":"Deleted At"}},"type":"object","required":["id","organization_id","company_name","require_api_key","status","environment"],"title":"AngiConnectionResponse"},"AngiConnectionStatus":{"type":"string","enum":["pending","active","disabled","error"],"title":"AngiConnectionStatus"},"AngiConnectionUpdateRequest":{"properties":{"company_name":{"anyOf":[{"type":"string","minLength":1},{"type":"null"}],"title":"Company Name"},"brand_name":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Brand Name"},"spids":{"anyOf":[{"items":{"type":"string"},"type":"array"},{"type":"null"}],"title":"Spids"},"contact_email":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Contact Email"},"crm_key":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Crm Key"},"require_api_key":{"anyOf":[{"type":"boolean"},{"type":"null"}],"title":"Require Api Key"},"status":{"anyOf":[{"$ref":"#/components/schemas/AngiConnectionStatus"},{"type":"null"}]},"environment":{"anyOf":[{"$ref":"#/components/schemas/AngiEnvironment"},{"type":"null"}]}},"type":"object","title":"AngiConnectionUpdateRequest"},"AngiConnectionWithApiKeyResponse":{"properties":{"connection":{"$ref":"#/components/schemas/AngiConnectionResponse"},"api_key":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Api Key"}},"type":"object","required":["connection"],"title":"AngiConnectionWithApiKeyResponse"},"AngiCustomerConnectionCreateRequest":{"properties":{"brand_name":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Brand Name"},"spids":{"items":{"type":"string"},"type":"array","title":"Spids"},"contact_email":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Contact Email"},"crm_key":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Crm Key"},"environment":{"$ref":"#/components/schemas/AngiEnvironment","default":"production"}},"type":"object","title":"AngiCustomerConnectionCreateRequest"},"AngiCustomerConnectionOnlyResponse":{"properties":{"connection":{"$ref":"#/components/schemas/AngiCustomerConnectionResponse"}},"type":"object","required":["connection"],"title":"AngiCustomerConnectionOnlyResponse"},"AngiCustomerConnectionResponse":{"properties":{"id":{"type":"string","title":"Id"},"organization_id":{"type":"string","title":"Organization Id"},"endpoint_key":{"type":"string","title":"Endpoint Key"},"brand_name":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Brand Name"},"spids":{"items":{"type":"string"},"type":"array","title":"Spids"},"contact_email":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Contact Email"},"crm_key":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Crm Key"},"api_key_last4":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Api Key Last4"},"require_api_key":{"type":"boolean","title":"Require Api Key"},"status":{"$ref":"#/components/schemas/AngiConnectionStatus"},"environment":{"$ref":"#/components/schemas/AngiEnvironment"},"last_webhook_received_at":{"anyOf":[{"type":"string","format":"date-time"},{"type":"null"}],"title":"Last Webhook Received At"},"last_error_at":{"anyOf":[{"type":"string","format":"date-time"},{"type":"null"}],"title":"Last Error At"},"last_error_summary":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Last Error Summary"},"lead_trigger_configured":{"type":"boolean","title":"Lead Trigger Configured"},"can_activate":{"type":"boolean","title":"Can Activate"},"activation_blockers":{"items":{"type":"string"},"type":"array","title":"Activation Blockers"},"created_at":{"anyOf":[{"type":"string","format":"date-time"},{"type":"null"}],"title":"Created At"},"updated_at":{"anyOf":[{"type":"string","format":"date-time"},{"type":"null"}],"title":"Updated At"},"deleted_at":{"anyOf":[{"type":"string","format":"date-time"},{"type":"null"}],"title":"Deleted At"}},"type":"object","required":["id","organization_id","endpoint_key","require_api_key","status","environment","lead_trigger_configured","can_activate","activation_blockers"],"title":"AngiCustomerConnectionResponse"},"AngiCustomerConnectionStateResponse":{"properties":{"connection":{"anyOf":[{"$ref":"#/components/schemas/AngiCustomerConnectionResponse"},{"type":"null"}]},"endpoint_key":{"type":"string","title":"Endpoint Key"},"endpoint_url":{"type":"string","title":"Endpoint Url"},"lead_trigger_configured":{"type":"boolean","title":"Lead Trigger Configured"},"can_activate":{"type":"boolean","title":"Can Activate"},"activation_blockers":{"items":{"type":"string"},"type":"array","title":"Activation Blockers"}},"type":"object","required":["connection","endpoint_key","endpoint_url","lead_trigger_configured","can_activate","activation_blockers"],"title":"AngiCustomerConnectionStateResponse"},"AngiCustomerConnectionUpdateRequest":{"properties":{"brand_name":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Brand Name"},"spids":{"anyOf":[{"items":{"type":"string"},"type":"array"},{"type":"null"}],"title":"Spids"},"contact_email":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Contact Email"},"crm_key":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Crm Key"},"environment":{"anyOf":[{"$ref":"#/components/schemas/AngiEnvironment"},{"type":"null"}]},"status":{"anyOf":[{"$ref":"#/components/schemas/AngiConnectionStatus"},{"type":"null"}]}},"type":"object","title":"AngiCustomerConnectionUpdateRequest"},"AngiCustomerConnectionWithApiKeyResponse":{"properties":{"connection":{"$ref":"#/components/schemas/AngiCustomerConnectionResponse"},"endpoint_key":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Endpoint Key"},"endpoint_url":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Endpoint Url"},"api_key":{"type":"string","title":"Api Key"}},"type":"object","required":["connection","api_key"],"title":"AngiCustomerConnectionWithApiKeyResponse"},"AngiCustomerEventListResponse":{"properties":{"items":{"items":{"$ref":"#/components/schemas/AngiCustomerEventResponse"},"type":"array","title":"Items"},"next_cursor":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Next Cursor"}},"type":"object","required":["items"],"title":"AngiCustomerEventListResponse"},"AngiCustomerEventResponse":{"properties":{"id":{"type":"string","title":"Id"},"organization_id":{"type":"string","title":"Organization Id"},"connection_id":{"type":"string","title":"Connection Id"},"company_name":{"type":"string","title":"Company Name"},"status":{"$ref":"#/components/schemas/AngiWebhookEventStatus"},"provider_lead_id":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Provider Lead Id"},"service_request_id":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Service Request Id"},"attempt_count":{"type":"integer","title":"Attempt Count"},"last_attempt_at":{"anyOf":[{"type":"string","format":"date-time"},{"type":"null"}],"title":"Last Attempt At"},"processed_at":{"anyOf":[{"type":"string","format":"date-time"},{"type":"null"}],"title":"Processed At"},"error":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Error"},"created_at":{"anyOf":[{"type":"string","format":"date-time"},{"type":"null"}],"title":"Created At"}},"type":"object","required":["id","organization_id","connection_id","company_name","status","attempt_count"],"title":"AngiCustomerEventResponse"},"AngiCustomerReplayResponse":{"properties":{"event_id":{"type":"string","title":"Event Id"},"queued":{"type":"boolean","title":"Queued"},"deduped":{"anyOf":[{"type":"boolean"},{"type":"null"}],"title":"Deduped"}},"type":"object","required":["event_id","queued"],"title":"AngiCustomerReplayResponse"},"AngiEnvironment":{"type":"string","enum":["test","production"],"title":"AngiEnvironment"},"AngiEventListResponse":{"properties":{"items":{"items":{"$ref":"#/components/schemas/AngiEventResponse"},"type":"array","title":"Items"},"next_cursor":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Next Cursor"}},"type":"object","required":["items"],"title":"AngiEventListResponse"},"AngiEventResponse":{"properties":{"id":{"type":"string","title":"Id"},"organization_id":{"type":"string","title":"Organization Id"},"connection_id":{"type":"string","title":"Connection Id"},"company_name":{"type":"string","title":"Company Name"},"status":{"$ref":"#/components/schemas/AngiWebhookEventStatus"},"payload_hash":{"type":"string","title":"Payload Hash"},"provider_lead_id":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Provider Lead Id"},"service_request_id":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Service Request Id"},"attempt_count":{"type":"integer","title":"Attempt Count"},"last_attempt_at":{"anyOf":[{"type":"string","format":"date-time"},{"type":"null"}],"title":"Last Attempt At"},"processed_at":{"anyOf":[{"type":"string","format":"date-time"},{"type":"null"}],"title":"Processed At"},"error":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Error"},"created_at":{"anyOf":[{"type":"string","format":"date-time"},{"type":"null"}],"title":"Created At"},"updated_at":{"anyOf":[{"type":"string","format":"date-time"},{"type":"null"}],"title":"Updated At"},"payload":{"anyOf":[{"additionalProperties":true,"type":"object"},{"type":"null"}],"title":"Payload"}},"type":"object","required":["id","organization_id","connection_id","company_name","status","payload_hash","attempt_count"],"title":"AngiEventResponse"},"AngiReplayResponse":{"properties":{"event_id":{"type":"string","title":"Event Id"},"queued":{"type":"boolean","title":"Queued"},"deduped":{"anyOf":[{"type":"boolean"},{"type":"null"}],"title":"Deduped"}},"type":"object","required":["event_id","queued"],"title":"AngiReplayResponse"},"AngiRotateApiKeyRequest":{"properties":{"api_key":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Api Key"},"require_api_key":{"anyOf":[{"type":"boolean"},{"type":"null"}],"title":"Require Api Key"}},"type":"object","title":"AngiRotateApiKeyRequest"},"AngiWebhookEventStatus":{"type":"string","enum":["received","queued","processed","deduped","failed"],"title":"AngiWebhookEventStatus"},"AnnouncementMutationResult":{"properties":{"success":{"type":"boolean","title":"Success"},"announcement":{"anyOf":[{"$ref":"#/components/schemas/AnnouncementResponse"},{"type":"null"}]},"message":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Message"}},"type":"object","required":["success"],"title":"AnnouncementMutationResult"},"AnnouncementResponse":{"properties":{"id":{"type":"string","title":"Id"},"summary":{"type":"string","title":"Summary"},"full_content":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Full Content"},"type":{"$ref":"#/components/schemas/AnnouncementType"},"is_active":{"type":"boolean","title":"Is Active"},"is_dismissible":{"type":"boolean","title":"Is Dismissible"},"expires_at":{"anyOf":[{"type":"string","format":"date-time"},{"type":"null"}],"title":"Expires At"},"created_at":{"type":"string","format":"date-time","title":"Created At"},"updated_at":{"type":"string","format":"date-time","title":"Updated At"},"created_by":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Created By"}},"type":"object","required":["id","summary","full_content","type","is_active","is_dismissible","expires_at","created_at","updated_at","created_by"],"title":"AnnouncementResponse"},"AnnouncementType":{"type":"string","enum":["info","warning","critical"],"title":"AnnouncementType"},"AppliedMaintenanceOptoutMigration":{"properties":{"organization_id":{"type":"string","title":"Organization Id"},"review_sha256":{"type":"string","title":"Review Sha256"},"already_applied":{"type":"boolean","title":"Already Applied"},"items":{"items":{"$ref":"#/components/schemas/MaintenanceOptoutMigrationResult"},"type":"array","title":"Items"}},"type":"object","required":["organization_id","review_sha256","already_applied","items"],"title":"AppliedMaintenanceOptoutMigration"},"ApplyCancellationRequest":{"properties":{"organization_id":{"type":"string","maxLength":64,"minLength":1,"title":"Organization Id"},"contact_id":{"type":"string","maxLength":64,"minLength":1,"title":"Contact Id"},"engagement_id":{"type":"string","maxLength":64,"minLength":1,"title":"Engagement Id"},"trigger_ids":{"items":{"type":"string","maxLength":64,"minLength":1},"type":"array","maxItems":20,"minItems":1,"title":"Trigger Ids"},"reason":{"type":"string","maxLength":1000,"minLength":10,"title":"Reason"},"review_sha256":{"type":"string","pattern":"^[0-9a-f]{64}$","title":"Review Sha256"}},"additionalProperties":false,"type":"object","required":["organization_id","contact_id","engagement_id","trigger_ids","reason","review_sha256"],"title":"ApplyCancellationRequest"},"ApplyMaintenanceOptoutMigrationRequest":{"properties":{"organization_id":{"type":"string","minLength":1,"title":"Organization Id"},"entries":{"items":{"$ref":"#/components/schemas/MaintenanceOptoutMigrationEntry"},"type":"array","maxItems":20,"minItems":1,"title":"Entries"},"review_sha256":{"type":"string","pattern":"^[0-9a-f]{64}$","title":"Review Sha256"}},"additionalProperties":false,"type":"object","required":["organization_id","entries","review_sha256"],"title":"ApplyMaintenanceOptoutMigrationRequest"},"ApplyOrganizationOptoutsRequest":{"properties":{"organization_id":{"type":"string","minLength":1,"title":"Organization Id"},"mappings":{"items":{"$ref":"#/components/schemas/CampaignMaintenanceMapping"},"type":"array","maxItems":50,"minItems":1,"title":"Mappings"},"source_request_ids":{"items":{"type":"string"},"type":"array","maxItems":20,"minItems":1,"title":"Source Request Ids"},"review_sha256":{"type":"string","pattern":"^[0-9a-f]{64}$","title":"Review Sha256"}},"additionalProperties":false,"type":"object","required":["organization_id","mappings","source_request_ids","review_sha256"],"title":"ApplyOrganizationOptoutsRequest"},"ApproveChoiceEdit":{"properties":{"expected_revision":{"type":"string","pattern":"^[0-9a-f]{64}$","title":"Expected Revision"},"scope":{"type":"string","enum":["core","shop"],"title":"Scope"},"change":{"oneOf":[{"$ref":"#/components/schemas/UpdateChoiceList"},{"$ref":"#/components/schemas/PutChoiceItem"},{"$ref":"#/components/schemas/PutChoiceOverride"}],"title":"Change","discriminator":{"propertyName":"kind","mapping":{"item":"#/components/schemas/PutChoiceItem","list":"#/components/schemas/UpdateChoiceList","override":"#/components/schemas/PutChoiceOverride"}}}},"additionalProperties":false,"type":"object","required":["expected_revision","scope","change"],"title":"ApproveChoiceEdit"},"ArchiveResolvedResponse":{"properties":{"archived_count":{"type":"integer","title":"Archived Count"}},"type":"object","required":["archived_count"],"title":"ArchiveResolvedResponse"},"AskJennyChatReference":{"properties":{"id":{"type":"string","title":"Id"},"title":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Title"},"organization_id":{"type":"string","title":"Organization Id"}},"type":"object","required":["id","organization_id"],"title":"AskJennyChatReference"},"AskJennyResolvedAgentResponse":{"properties":{"organization_id":{"type":"string","title":"Organization Id"},"agent_v2_id":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Agent V2 Id"},"roster_id":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Roster Id"}},"type":"object","required":["organization_id"],"title":"AskJennyResolvedAgentResponse"},"AskJennyScenarioRequest":{"properties":{"scenario":{"type":"string","title":"Scenario"},"user_id":{"type":"string","title":"User Id"},"organization_id":{"type":"string","title":"Organization Id"},"agent_v2_id":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Agent V2 Id"},"max_turns":{"type":"integer","title":"Max Turns","default":8},"model":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Model"},"per_turn_timeout_seconds":{"type":"number","title":"Per Turn Timeout Seconds","default":240.0},"poll_interval_seconds":{"type":"number","title":"Poll Interval Seconds","default":10.0}},"type":"object","required":["scenario","user_id","organization_id"],"title":"AskJennyScenarioRequest"},"AttemptResponse":{"properties":{"id":{"type":"string","title":"Id"},"st_customer_id":{"anyOf":[{"type":"integer"},{"type":"null"}],"title":"St Customer Id"},"contact_id":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Contact Id"},"contact_method_id":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Contact Method Id"},"engagement_id":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Engagement Id"},"did_not_start_reason":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Did Not Start Reason"},"retry_count":{"type":"integer","title":"Retry Count"},"last_error":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Last Error"},"created_at":{"type":"string","format":"date-time","title":"Created At"},"updated_at":{"type":"string","format":"date-time","title":"Updated At"}},"type":"object","required":["id","retry_count","created_at","updated_at"],"title":"AttemptResponse"},"AuthorizedRepresentative":{"properties":{"first_name":{"type":"string","maxLength":255,"minLength":1,"title":"First Name"},"last_name":{"type":"string","maxLength":255,"minLength":1,"title":"Last Name"},"email":{"type":"string","format":"email","title":"Email"},"phone":{"type":"string","maxLength":255,"minLength":1,"title":"Phone"},"business_title":{"type":"string","maxLength":255,"minLength":1,"title":"Business Title"},"job_position":{"type":"string","maxLength":255,"minLength":1,"title":"Job Position"}},"additionalProperties":false,"type":"object","required":["first_name","last_name","email","phone","business_title","job_position"],"title":"AuthorizedRepresentative"},"AvailabilityProviderType":{"type":"string","enum":["acp","calendar","capacity","adcap","manual_capacity"],"title":"AvailabilityProviderType"},"AvailableOrganization":{"properties":{"organization_id":{"type":"string","title":"Organization Id"},"organization_name":{"type":"string","title":"Organization Name"}},"type":"object","required":["organization_id","organization_name"],"title":"AvailableOrganization"},"AvailablePhoneNumberPublic":{"properties":{"phone_number":{"type":"string","title":"Phone Number"},"number_type":{"$ref":"#/components/schemas/MessagingNumberType"},"locality":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Locality"},"region":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Region"}},"type":"object","required":["phone_number","number_type"],"title":"AvailablePhoneNumberPublic"},"AvailableRegion":{"properties":{"region_id":{"type":"string","title":"Region Id"},"region_name":{"type":"string","title":"Region Name"},"target_organization_id":{"type":"string","title":"Target Organization Id"},"target_organization_name":{"type":"string","title":"Target Organization Name"},"region_type":{"type":"string","title":"Region Type"},"zip_count":{"type":"integer","title":"Zip Count"},"already_linked":{"type":"boolean","title":"Already Linked"}},"type":"object","required":["region_id","region_name","target_organization_id","target_organization_name","region_type","zip_count","already_linked"],"title":"AvailableRegion"},"Backend":{"type":"string","enum":["python","sql"],"title":"Backend","description":"How a decision gets evaluated. PYTHON runs it for one record at a time, fetching values through\nreader functions. SQL turns it into a database query that selects many records at once."},"BatchAgentResponse":{"properties":{"id":{"type":"string","title":"Id"},"title":{"type":"string","title":"Title"}},"type":"object","required":["id","title"],"title":"BatchAgentResponse"},"BatchAttemptPageResponse":{"properties":{"items":{"items":{"$ref":"#/components/schemas/AttemptResponse"},"type":"array","title":"Items"},"cursor":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Cursor"}},"type":"object","required":["items"],"title":"BatchAttemptPageResponse"},"BatchDetailResponse":{"properties":{"id":{"type":"string","title":"Id"},"status":{"type":"string","title":"Status"},"expected_attempts":{"type":"integer","title":"Expected Attempts"},"runner_version":{"type":"string","title":"Runner Version"},"created_at":{"type":"string","format":"date-time","title":"Created At"},"updated_at":{"type":"string","format":"date-time","title":"Updated At"},"agent":{"anyOf":[{"$ref":"#/components/schemas/BatchAgentResponse"},{"type":"null"}]},"organization":{"anyOf":[{"$ref":"#/components/schemas/BatchOrgResponse"},{"type":"null"}]},"campaign_send_id":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Campaign Send Id"},"stats":{"$ref":"#/components/schemas/BatchStatsResponse"},"attempts":{"$ref":"#/components/schemas/BatchAttemptPageResponse"}},"type":"object","required":["id","status","expected_attempts","runner_version","created_at","updated_at","stats","attempts"],"title":"BatchDetailResponse"},"BatchListItemResponse":{"properties":{"id":{"type":"string","title":"Id"},"status":{"type":"string","title":"Status"},"expected_attempts":{"type":"integer","title":"Expected Attempts"},"created_at":{"type":"string","format":"date-time","title":"Created At"},"updated_at":{"type":"string","format":"date-time","title":"Updated At"},"agent":{"anyOf":[{"$ref":"#/components/schemas/BatchAgentResponse"},{"type":"null"}]},"organization":{"anyOf":[{"$ref":"#/components/schemas/BatchOrgResponse"},{"type":"null"}]},"campaign_send_id":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Campaign Send Id"}},"type":"object","required":["id","status","expected_attempts","created_at","updated_at"],"title":"BatchListItemResponse"},"BatchListPageResponse":{"properties":{"items":{"items":{"$ref":"#/components/schemas/BatchListItemResponse"},"type":"array","title":"Items"},"cursor":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Cursor"}},"type":"object","required":["items"],"title":"BatchListPageResponse"},"BatchOrgResponse":{"properties":{"id":{"type":"string","title":"Id"},"name":{"type":"string","title":"Name"}},"type":"object","required":["id","name"],"title":"BatchOrgResponse"},"BatchStatsResponse":{"properties":{"total":{"type":"integer","title":"Total"},"sent":{"type":"integer","title":"Sent"},"blocked":{"type":"integer","title":"Blocked"},"in_flight":{"type":"integer","title":"In Flight"},"by_reason":{"additionalProperties":{"type":"integer"},"type":"object","title":"By Reason"}},"type":"object","required":["total","sent","blocked","in_flight","by_reason"],"title":"BatchStatsResponse"},"BillingAccountPublic":{"properties":{"id":{"type":"string","title":"Id"},"name":{"type":"string","title":"Name"}},"type":"object","required":["id","name"],"title":"BillingAccountPublic"},"Body_deprovision_organization_channels_admin_organizations__organization_id__deprovision_channels_post":{"properties":{"dry_run":{"type":"boolean","title":"Dry Run","default":true}},"type":"object","title":"Body_deprovision_organization_channels_admin_organizations__organization_id__deprovision_channels_post"},"Body_invite_user_to_organization_admin_onboarding_invite_user_post":{"properties":{"organization_id":{"type":"string","title":"Organization Id"},"email":{"type":"string","title":"Email"},"first_name":{"type":"string","title":"First Name"},"last_name":{"type":"string","title":"Last Name"},"is_admin":{"type":"boolean","title":"Is Admin","default":true},"phone_number":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Phone Number"}},"type":"object","required":["organization_id","email","first_name","last_name"],"title":"Body_invite_user_to_organization_admin_onboarding_invite_user_post"},"Body_resolve_incident_admin_incidents__incident_id__resolve_post":{"properties":{"reopen_aborted":{"type":"boolean","title":"Reopen Aborted","default":false}},"type":"object","title":"Body_resolve_incident_admin_incidents__incident_id__resolve_post"},"Body_retry_single_engagement_admin_incidents__incident_id__retry_engagement__engagement_id__post":{"properties":{"reopen_aborted":{"type":"boolean","title":"Reopen Aborted","default":false}},"type":"object","title":"Body_retry_single_engagement_admin_incidents__incident_id__retry_engagement__engagement_id__post"},"Body_setup_organization_admin_onboarding_organization_post":{"properties":{"name":{"type":"string","title":"Name"},"alias":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Alias"},"parent_id":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Parent Id"},"organization_id":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Organization Id"},"parent_link_reason":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Parent Link Reason"}},"type":"object","required":["name"],"title":"Body_setup_organization_admin_onboarding_organization_post"},"BookingOutcomeCondition":{"properties":{"kind":{"type":"string","const":"booking_outcome","title":"Kind"},"one_of":{"items":{"type":"string","enum":["scheduled","queued","rejected","acceptance_unknown","none"]},"type":"array","maxItems":20,"minItems":1,"title":"One Of"}},"additionalProperties":false,"type":"object","required":["kind","one_of"],"title":"BookingOutcomeCondition"},"BrandImpact":{"properties":{"organization_id":{"type":"string","title":"Organization Id"},"brand":{"type":"string","title":"Brand"},"card":{"$ref":"#/components/schemas/ImpactCard"},"blocking":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Blocking"}},"type":"object","required":["organization_id","brand","card"],"title":"BrandImpact"},"BusinessCampaignPublic":{"properties":{"program_name":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Program Name"},"program_description":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Program Description"},"use_case_categories":{"anyOf":[{"items":{"type":"string"},"type":"array"},{"type":"null"}],"title":"Use Case Categories"},"use_case_subcategories":{"anyOf":[{"items":{"type":"string"},"type":"array"},{"type":"null"}],"title":"Use Case Subcategories"},"sample_messages":{"anyOf":[{"items":{"type":"string"},"type":"array"},{"type":"null"}],"title":"Sample Messages"},"expected_message_volume":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Expected Message Volume"}},"type":"object","title":"BusinessCampaignPublic"},"BusinessCampaignStatePublic":{"properties":{"provider":{"$ref":"#/components/schemas/MessagingProvider"},"identity":{"$ref":"#/components/schemas/BusinessIdentitySummaryPublic"},"campaign":{"$ref":"#/components/schemas/BusinessCampaignPublic"},"generated":{"additionalProperties":{"type":"boolean"},"type":"object","title":"Generated"},"blockers":{"items":{"type":"string"},"type":"array","title":"Blockers"},"can_edit_use_cases":{"type":"boolean","title":"Can Edit Use Cases","default":false},"use_case_options":{"additionalProperties":{"type":"string"},"type":"object","title":"Use Case Options","default":{}},"subcategory_options":{"additionalProperties":{"type":"string"},"type":"object","title":"Subcategory Options","default":{}}},"type":"object","required":["provider","identity","campaign","generated","blockers"],"title":"BusinessCampaignStatePublic"},"BusinessCampaignUpsert":{"properties":{"program_name":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Program Name"},"program_description":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Program Description"},"use_case_categories":{"anyOf":[{"items":{"type":"string"},"type":"array"},{"type":"null"}],"title":"Use Case Categories"},"use_case_subcategories":{"anyOf":[{"items":{"type":"string"},"type":"array"},{"type":"null"}],"title":"Use Case Subcategories"},"sample_messages":{"anyOf":[{"items":{"type":"string"},"type":"array"},{"type":"null"}],"title":"Sample Messages"},"expected_message_volume":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Expected Message Volume"}},"additionalProperties":false,"type":"object","title":"BusinessCampaignUpsert"},"BusinessIdentitySummaryPublic":{"properties":{"legal_name":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Legal Name"},"dba_name":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Dba Name"},"ein_last_four":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Ein Last Four"},"entity_type":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Entity Type"},"company_type":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Company Type"},"vertical":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Vertical"},"trades":{"anyOf":[{"items":{"type":"string"},"type":"array"},{"type":"null"}],"title":"Trades"},"phone":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Phone"},"street":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Street"},"city":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"City"},"state":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"State"},"postal_code":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Postal Code"},"country":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Country"},"website_url":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Website Url"},"complete":{"type":"boolean","title":"Complete","default":false}},"type":"object","title":"BusinessIdentitySummaryPublic","description":"The confirmed company profile as Step 4 presents it: read-only, no representatives."},"BusinessUrgencyCondition":{"properties":{"kind":{"type":"string","const":"business_urgency","title":"Kind"},"one_of":{"items":{"type":"string","enum":["routine","urgent","unknown"]},"type":"array","maxItems":20,"minItems":1,"title":"One Of"}},"additionalProperties":false,"type":"object","required":["kind","one_of"],"title":"BusinessUrgencyCondition"},"CallAnalysisBucket":{"type":"string","enum":["all","bookable","booked","not_booked","booking_unknown","no_intent","handled","not_handled","irrelevant","handling_unclear","intent_unclear","not_evaluated"],"title":"CallAnalysisBucket"},"CallAnalysisCallPublic":{"additionalProperties":true,"type":"object"},"CallAnalysisCallsPublic":{"properties":{"sort_by":{"anyOf":[{"$ref":"#/components/schemas/CallAnalysisSort"},{"type":"null"}]},"sort_direction":{"$ref":"#/components/schemas/CallAnalysisSortDirection","default":"desc"},"prioritize_booking_intent":{"type":"boolean","title":"Prioritize Booking Intent","default":false},"exclude_booked_since":{"type":"boolean","title":"Exclude Booked Since","default":false},"exclude_internal":{"type":"boolean","title":"Exclude Internal","default":false},"reason":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Reason"},"reason_missing":{"type":"boolean","title":"Reason Missing","default":false},"csr_id":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Csr Id"},"started_at":{"type":"string","format":"date-time","title":"Started At"},"ended_at":{"type":"string","format":"date-time","title":"Ended At"},"bucket":{"$ref":"#/components/schemas/CallAnalysisBucket"},"classification":{"anyOf":[{"$ref":"#/components/schemas/CallAnalysisClassification"},{"type":"null"}]},"evaluation_status":{"anyOf":[{"$ref":"#/components/schemas/CallAnalysisEvaluationStatus"},{"type":"null"}]},"processing_status":{"anyOf":[{"$ref":"#/components/schemas/CallAnalysisProcessingStatus"},{"type":"null"}]},"items":{"items":{"$ref":"#/components/schemas/CallAnalysisCallPublic"},"type":"array","title":"Items"},"total":{"type":"integer","title":"Total"},"limit":{"type":"integer","title":"Limit"},"offset":{"type":"integer","title":"Offset"},"has_more":{"type":"boolean","title":"Has More"}},"type":"object","required":["started_at","ended_at","bucket","classification","items","total","limit","offset","has_more"],"title":"CallAnalysisCallsPublic"},"CallAnalysisClassification":{"type":"string","enum":["booked","unbooked","abandoned","excused","not_lead","other","missing"],"title":"CallAnalysisClassification"},"CallAnalysisCoveragePublic":{"properties":{"booking_intent_evaluated_calls":{"type":"integer","title":"Booking Intent Evaluated Calls"},"call_handling_evaluated_calls":{"type":"integer","title":"Call Handling Evaluated Calls"}},"type":"object","required":["booking_intent_evaluated_calls","call_handling_evaluated_calls"],"title":"CallAnalysisCoveragePublic"},"CallAnalysisCsrMetricsPublic":{"properties":{"classification_counts":{"anyOf":[{"additionalProperties":{"type":"integer"},"propertyNames":{"$ref":"#/components/schemas/CallAnalysisClassification"},"type":"object"},{"type":"null"}],"title":"Classification Counts"},"total_calls":{"type":"integer","title":"Total Calls"},"total_inbound_calls":{"type":"integer","title":"Total Inbound Calls"},"booking_intent_evaluated_calls":{"type":"integer","title":"Booking Intent Evaluated Calls"},"call_handling_evaluated_calls":{"type":"integer","title":"Call Handling Evaluated Calls"},"high_or_low_intent_calls":{"type":"integer","title":"High Or Low Intent Calls"},"high_or_low_intent_booked_calls":{"type":"integer","title":"High Or Low Intent Booked Calls"},"no_intent_calls":{"type":"integer","title":"No Intent Calls"},"no_intent_handled_calls":{"type":"integer","title":"No Intent Handled Calls"},"no_intent_irrelevant_calls":{"type":"integer","title":"No Intent Irrelevant Calls"}},"type":"object","required":["total_calls","total_inbound_calls","booking_intent_evaluated_calls","call_handling_evaluated_calls","high_or_low_intent_calls","high_or_low_intent_booked_calls","no_intent_calls","no_intent_handled_calls","no_intent_irrelevant_calls"],"title":"CallAnalysisCsrMetricsPublic"},"CallAnalysisCsrPublic":{"properties":{"csr_id":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Csr Id"},"csr_name":{"type":"string","title":"Csr Name"},"metrics":{"$ref":"#/components/schemas/CallAnalysisCsrMetricsPublic"}},"type":"object","required":["csr_id","csr_name","metrics"],"title":"CallAnalysisCsrPublic"},"CallAnalysisCsrsPublic":{"properties":{"started_at":{"type":"string","format":"date-time","title":"Started At"},"ended_at":{"type":"string","format":"date-time","title":"Ended At"},"items":{"items":{"$ref":"#/components/schemas/CallAnalysisCsrPublic"},"type":"array","title":"Items"},"average":{"$ref":"#/components/schemas/CallAnalysisCsrMetricsPublic"}},"type":"object","required":["started_at","ended_at","items","average"],"title":"CallAnalysisCsrsPublic"},"CallAnalysisDirection":{"type":"string","enum":["inbound","outbound"],"title":"CallAnalysisDirection","description":"Which calls the tab reads. Its own enum rather than the ServiceTitan model's, so\nthe public query vocabulary does not move when that mirror does."},"CallAnalysisEvaluationStatus":{"type":"string","enum":["no_recording","pending"],"title":"CallAnalysisEvaluationStatus"},"CallAnalysisOverviewPublic":{"properties":{"classification_reasons":{"anyOf":[{"items":{"$ref":"#/components/schemas/CallAnalysisReasonCountPublic"},"type":"array"},{"type":"null"}],"title":"Classification Reasons"},"period":{"$ref":"#/components/schemas/CallAnalysisPeriodPublic"},"total_calls":{"type":"integer","title":"Total Calls"},"total_inbound_calls":{"type":"integer","title":"Total Inbound Calls"},"coverage":{"$ref":"#/components/schemas/CallAnalysisCoveragePublic"},"high_or_low_intent":{"$ref":"#/components/schemas/IntentBookingOutcomesPublic"},"no_intent":{"$ref":"#/components/schemas/NoIntentHandlingOutcomesPublic"},"unclear_or_not_evaluated":{"$ref":"#/components/schemas/UnclearIntentOutcomesPublic"},"not_evaluated":{"$ref":"#/components/schemas/NotEvaluatedOutcomesPublic"}},"type":"object","required":["period","total_calls","total_inbound_calls","coverage","high_or_low_intent","no_intent","unclear_or_not_evaluated","not_evaluated"],"title":"CallAnalysisOverviewPublic"},"CallAnalysisPeriodPublic":{"properties":{"days":{"type":"integer","title":"Days"},"started_at":{"type":"string","format":"date-time","title":"Started At"},"ended_at":{"type":"string","format":"date-time","title":"Ended At"}},"type":"object","required":["days","started_at","ended_at"],"title":"CallAnalysisPeriodPublic"},"CallAnalysisProcessingStatus":{"type":"string","enum":["no_recording","not_transcribed","not_evaluated","pending"],"title":"CallAnalysisProcessingStatus"},"CallAnalysisReasonCountPublic":{"properties":{"classification":{"$ref":"#/components/schemas/CallAnalysisClassification"},"reason":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Reason"},"count":{"type":"integer","title":"Count"}},"type":"object","required":["classification","reason","count"],"title":"CallAnalysisReasonCountPublic"},"CallAnalysisSort":{"type":"string","enum":["time","agent","classification","booking_intent","handling"],"title":"CallAnalysisSort"},"CallAnalysisSortDirection":{"type":"string","enum":["asc","desc"],"title":"CallAnalysisSortDirection"},"CallDayCondition":{"properties":{"kind":{"type":"string","const":"call_day","title":"Kind"},"one_of":{"items":{"type":"string","enum":["mon","tue","wed","thu","fri","sat","sun"]},"type":"array","maxItems":20,"minItems":1,"title":"One Of"}},"additionalProperties":false,"type":"object","required":["kind","one_of"],"title":"CallDayCondition"},"CallEvaluationCallPublic":{"properties":{"result_id":{"type":"string","title":"Result Id"},"upsmith_call_id":{"type":"string","title":"Upsmith Call Id"},"service_titan_call_id":{"anyOf":[{"type":"integer"},{"type":"null"}],"title":"Service Titan Call Id"},"call_started_at":{"type":"string","format":"date-time","title":"Call Started At"},"direction":{"type":"string","title":"Direction"},"call_type":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Call Type"},"effective_value":{"title":"Effective Value"},"effective_value_json":{"type":"string","title":"Effective Value Json"},"tagged_at":{"anyOf":[{"type":"string","format":"date-time"},{"type":"null"}],"title":"Tagged At"},"overridden_at":{"anyOf":[{"type":"string","format":"date-time"},{"type":"null"}],"title":"Overridden At"}},"type":"object","required":["result_id","upsmith_call_id","call_started_at","direction","effective_value","effective_value_json"],"title":"CallEvaluationCallPublic"},"CallEvaluationCallsPublic":{"properties":{"definition_id":{"type":"string","title":"Definition Id"},"started_at":{"type":"string","format":"date-time","title":"Started At"},"ended_at":{"type":"string","format":"date-time","title":"Ended At"},"value_json":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Value Json"},"items":{"items":{"$ref":"#/components/schemas/CallEvaluationCallPublic"},"type":"array","title":"Items"},"total":{"type":"integer","title":"Total"},"limit":{"type":"integer","title":"Limit"},"offset":{"type":"integer","title":"Offset"},"has_more":{"type":"boolean","title":"Has More"}},"type":"object","required":["definition_id","started_at","ended_at","items","total","limit","offset","has_more"],"title":"CallEvaluationCallsPublic"},"CallEvaluationNumericSummaryPublic":{"properties":{"value_count":{"type":"integer","title":"Value Count"},"minimum":{"anyOf":[{"type":"string","pattern":"^(?!^[-+.]*$)[+-]?0*\\d*\\.?\\d*$"},{"type":"null"}],"title":"Minimum"},"maximum":{"anyOf":[{"type":"string","pattern":"^(?!^[-+.]*$)[+-]?0*\\d*\\.?\\d*$"},{"type":"null"}],"title":"Maximum"},"average":{"anyOf":[{"type":"string","pattern":"^(?!^[-+.]*$)[+-]?0*\\d*\\.?\\d*$"},{"type":"null"}],"title":"Average"},"median":{"anyOf":[{"type":"string","pattern":"^(?!^[-+.]*$)[+-]?0*\\d*\\.?\\d*$"},{"type":"null"}],"title":"Median"}},"type":"object","required":["value_count"],"title":"CallEvaluationNumericSummaryPublic"},"CallEvaluationOverviewPublic":{"properties":{"definition_id":{"type":"string","title":"Definition Id"},"label":{"type":"string","title":"Label"},"value_type":{"$ref":"#/components/schemas/ValueType"},"started_at":{"type":"string","format":"date-time","title":"Started At"},"ended_at":{"type":"string","format":"date-time","title":"Ended At"},"evaluated_calls":{"type":"integer","title":"Evaluated Calls"},"overridden_calls":{"type":"integer","title":"Overridden Calls"},"success_calls":{"anyOf":[{"type":"integer"},{"type":"null"}],"title":"Success Calls"},"allowed_values":{"anyOf":[{"items":{},"type":"array"},{"type":"null"}],"title":"Allowed Values"},"value_counts":{"anyOf":[{"items":{"$ref":"#/components/schemas/CallEvaluationValueCountPublic"},"type":"array"},{"type":"null"}],"title":"Value Counts"},"numeric_summary":{"anyOf":[{"$ref":"#/components/schemas/CallEvaluationNumericSummaryPublic"},{"type":"null"}]}},"type":"object","required":["definition_id","label","value_type","started_at","ended_at","evaluated_calls","overridden_calls"],"title":"CallEvaluationOverviewPublic"},"CallEvaluationOverviewsPublic":{"properties":{"items":{"items":{"$ref":"#/components/schemas/CallEvaluationOverviewPublic"},"type":"array","title":"Items"}},"type":"object","required":["items"],"title":"CallEvaluationOverviewsPublic"},"CallEvaluationValueCountPublic":{"properties":{"value":{"title":"Value"},"count":{"type":"integer","title":"Count"}},"type":"object","required":["value","count"],"title":"CallEvaluationValueCountPublic"},"CallMediaKind":{"type":"string","enum":["recording","voicemail"],"title":"CallMediaKind"},"CallTagBackfillAllowanceCreditAdjustment":{"properties":{"organization_id":{"type":"string","title":"Organization Id"},"added_credits":{"type":"integer","exclusiveMinimum":0.0,"title":"Added Credits"},"previous_credits":{"type":"integer","minimum":0.0,"title":"Previous Credits"},"credits":{"type":"integer","minimum":0.0,"title":"Credits"},"period":{"type":"string","title":"Period"}},"type":"object","required":["organization_id","added_credits","previous_credits","credits","period"],"title":"CallTagBackfillAllowanceCreditAdjustment"},"CallTagBackfillDefinitionPreview":{"properties":{"definition_id":{"type":"string","title":"Definition Id"},"revision_id":{"type":"string","title":"Revision Id"},"label":{"type":"string","title":"Label"},"funnel":{"items":{"$ref":"#/components/schemas/CallTagBackfillFunnelStage"},"type":"array","title":"Funnel"},"eligible_calls":{"type":"integer","minimum":0.0,"title":"Eligible Calls"}},"type":"object","required":["definition_id","revision_id","label","funnel","eligible_calls"],"title":"CallTagBackfillDefinitionPreview"},"CallTagBackfillFunnelStage":{"properties":{"stage":{"type":"string","title":"Stage"},"remaining_calls":{"type":"integer","minimum":0.0,"title":"Remaining Calls"},"field":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Field"},"values":{"items":{"type":"string"},"type":"array","title":"Values"}},"type":"object","required":["stage","remaining_calls"],"title":"CallTagBackfillFunnelStage"},"CallTagBackfillPreviewBlockReason":{"type":"string","enum":["allowance_not_configured","no_eligible_calls","insufficient_credits"],"title":"CallTagBackfillPreviewBlockReason"},"CallTagBackfillPreviewRequest":{"properties":{"definition_ids":{"items":{"type":"string"},"type":"array","maxItems":10,"minItems":1,"title":"Definition Ids"},"lookback_days":{"type":"integer","enum":[1,3,7,14,30,60,90],"title":"Lookback Days","default":14},"selection_filters":{"items":{"$ref":"#/components/schemas/CallTagBackfillSelectionFilter"},"type":"array","title":"Selection Filters"}},"additionalProperties":false,"type":"object","required":["definition_ids"],"title":"CallTagBackfillPreviewRequest"},"CallTagBackfillPreviewResponse":{"properties":{"definitions":{"items":{"$ref":"#/components/schemas/CallTagBackfillDefinitionPreview"},"type":"array","title":"Definitions"},"window_start":{"type":"string","format":"date-time","title":"Window Start"},"window_end":{"type":"string","format":"date-time","title":"Window End"},"lookback_days":{"type":"integer","enum":[1,3,7,14,30,60,90],"title":"Lookback Days","default":14},"selection_filters":{"items":{"$ref":"#/components/schemas/CallTagBackfillSelectionFilter"},"type":"array","title":"Selection Filters"},"run_funnel":{"items":{"$ref":"#/components/schemas/CallTagBackfillFunnelStage"},"type":"array","title":"Run Funnel"},"estimated_credits":{"type":"integer","minimum":0.0,"title":"Estimated Credits"},"allowance_limit":{"anyOf":[{"type":"integer","minimum":0.0},{"type":"null"}],"title":"Allowance Limit"},"allowance_period_start":{"anyOf":[{"type":"string","format":"date-time"},{"type":"null"}],"title":"Allowance Period Start"},"allowance_period_end":{"anyOf":[{"type":"string","format":"date-time"},{"type":"null"}],"title":"Allowance Period End"},"consumed_credits":{"type":"integer","minimum":0.0,"title":"Consumed Credits"},"actively_reserved_credits":{"type":"integer","minimum":0.0,"title":"Actively Reserved Credits"},"remaining_before":{"anyOf":[{"type":"integer","minimum":0.0},{"type":"null"}],"title":"Remaining Before"},"remaining_after":{"anyOf":[{"type":"integer","minimum":0.0},{"type":"null"}],"title":"Remaining After"},"bypasses_allowance":{"type":"boolean","title":"Bypasses Allowance","default":false},"can_start":{"type":"boolean","title":"Can Start"},"blocked_reason":{"anyOf":[{"$ref":"#/components/schemas/CallTagBackfillPreviewBlockReason"},{"type":"null"}]},"fingerprint":{"type":"string","title":"Fingerprint"}},"type":"object","required":["definitions","window_start","window_end","estimated_credits","consumed_credits","actively_reserved_credits","can_start","fingerprint"],"title":"CallTagBackfillPreviewResponse"},"CallTagBackfillRunPublic":{"properties":{"id":{"type":"string","title":"Id"},"requested_by_user_id":{"type":"string","title":"Requested By User Id"},"idempotency_key":{"type":"string","title":"Idempotency Key"},"definition_revision_ids":{"items":{"type":"string"},"type":"array","title":"Definition Revision Ids"},"lookback_days":{"type":"integer","enum":[1,3,7,14,30,60,90],"title":"Lookback Days","default":14},"selection_filters":{"items":{"$ref":"#/components/schemas/CallTagBackfillSelectionFilter"},"type":"array","title":"Selection Filters"},"window_start":{"type":"string","format":"date-time","title":"Window Start"},"window_end":{"type":"string","format":"date-time","title":"Window End"},"allowance_period_start":{"type":"string","format":"date-time","title":"Allowance Period Start"},"allowance_period_end":{"type":"string","format":"date-time","title":"Allowance Period End"},"allowance_limit_credits":{"type":"integer","minimum":0.0,"title":"Allowance Limit Credits"},"estimated_credits":{"type":"integer","minimum":0.0,"title":"Estimated Credits"},"reserved_credits":{"type":"integer","minimum":0.0,"title":"Reserved Credits"},"consumed_credits":{"type":"integer","minimum":0.0,"title":"Consumed Credits"},"bypasses_allowance":{"type":"boolean","title":"Bypasses Allowance","default":false},"state":{"$ref":"#/components/schemas/CallTagBackfillState"},"candidate_call_count":{"type":"integer","minimum":0.0,"title":"Candidate Call Count"},"claimed_call_count":{"type":"integer","minimum":0.0,"title":"Claimed Call Count"},"completed_call_count":{"type":"integer","minimum":0.0,"title":"Completed Call Count"},"failed_call_count":{"type":"integer","minimum":0.0,"title":"Failed Call Count"},"terminal_failure_detail":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Terminal Failure Detail"},"queued_at":{"type":"string","format":"date-time","title":"Queued At"},"started_at":{"anyOf":[{"type":"string","format":"date-time"},{"type":"null"}],"title":"Started At"},"completed_at":{"anyOf":[{"type":"string","format":"date-time"},{"type":"null"}],"title":"Completed At"},"canceled_at":{"anyOf":[{"type":"string","format":"date-time"},{"type":"null"}],"title":"Canceled At"},"created_at":{"type":"string","format":"date-time","title":"Created At"},"updated_at":{"type":"string","format":"date-time","title":"Updated At"}},"type":"object","required":["id","requested_by_user_id","idempotency_key","definition_revision_ids","window_start","window_end","allowance_period_start","allowance_period_end","allowance_limit_credits","estimated_credits","reserved_credits","consumed_credits","state","candidate_call_count","claimed_call_count","completed_call_count","failed_call_count","queued_at","created_at","updated_at"],"title":"CallTagBackfillRunPublic"},"CallTagBackfillSelectionFilter":{"properties":{"field":{"type":"string","enum":["direction","media_kind","conversation_type","handled_by_voice_agent"],"title":"Field"},"in":{"items":{"type":"string"},"type":"array","minItems":1,"title":"In"}},"additionalProperties":false,"type":"object","required":["field","in"],"title":"CallTagBackfillSelectionFilter"},"CallTagBackfillState":{"type":"string","enum":["queued","running","processing","completed","partial_failed","failed","canceled"],"title":"CallTagBackfillState"},"CallTagResultPublic":{"properties":{"id":{"type":"string","title":"Id"},"subject_type":{"$ref":"#/components/schemas/TagSubjectType"},"subject_id":{"type":"string","title":"Subject Id"},"tag_definition_id":{"type":"string","title":"Tag Definition Id"},"tag_definition_revision":{"anyOf":[{"$ref":"#/components/schemas/TagResultDefinitionRevisionPublic"},{"type":"null"}]},"tag_evaluation_run_id":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Tag Evaluation Run Id"},"model_value":{"anyOf":[{},{"type":"null"}],"title":"Model Value"},"user_override_value":{"anyOf":[{},{"type":"null"}],"title":"User Override Value"},"effective_value":{"anyOf":[{},{"type":"null"}],"title":"Effective Value"},"override_tag_definition_revision_id":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Override Tag Definition Revision Id"},"override_tag_evaluation_run_id":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Override Tag Evaluation Run Id"},"override_provenance_state":{"$ref":"#/components/schemas/OverrideProvenanceState","default":"not_overridden"},"override_provenance_stale_reasons":{"items":{"$ref":"#/components/schemas/OverrideProvenanceStaleReason"},"type":"array","title":"Override Provenance Stale Reasons"},"override_reason":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Override Reason"},"reasoning":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Reasoning"},"tagged_by":{"$ref":"#/components/schemas/TaggedBy"},"tagged_at":{"anyOf":[{"type":"string","format":"date-time"},{"type":"null"}],"title":"Tagged At"},"overridden_by_user_id":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Overridden By User Id"},"overridden_at":{"anyOf":[{"type":"string","format":"date-time"},{"type":"null"}],"title":"Overridden At"},"evidence":{"items":{"$ref":"#/components/schemas/TagEvidencePublic"},"type":"array","title":"Evidence"},"upsmith_call_id":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Upsmith Call Id"},"service_titan_call_id":{"anyOf":[{"type":"integer","exclusiveMinimum":0.0},{"type":"null"}],"title":"Service Titan Call Id"}},"type":"object","required":["id","subject_type","subject_id","tag_definition_id","tagged_by"],"title":"CallTagResultPublic"},"CampaignAgedPace":{"properties":{"mode":{"$ref":"#/components/schemas/AgedPaceMode","default":"auto"}},"additionalProperties":false,"type":"object","title":"CampaignAgedPace"},"CampaignAttributionRequest":{"properties":{"default_campaign_id":{"anyOf":[{"type":"integer"},{"type":"null"}],"title":"Default Campaign Id"},"source_campaign_ids":{"additionalProperties":{"type":"integer"},"type":"object","title":"Source Campaign Ids","default":{}}},"type":"object","title":"CampaignAttributionRequest","description":"The whole of what the attribution editor controls, as one write."},"CampaignCorrectionAccepted":{"properties":{"correction_id":{"type":"string","title":"Correction Id"},"provider":{"$ref":"#/components/schemas/MessagingProvider"},"state":{"type":"string","enum":["queued","reconciling","complete","needs_support"],"title":"State"}},"type":"object","required":["correction_id","provider","state"],"title":"CampaignCorrectionAccepted"},"CampaignCorrectionConfirm":{"properties":{"provider":{"$ref":"#/components/schemas/MessagingProvider"},"campaign_registration_id":{"type":"string","title":"Campaign Registration Id"},"version":{"type":"string","title":"Version"},"review_token":{"type":"string","title":"Review Token"},"idempotency_key":{"type":"string","maxLength":128,"minLength":1,"title":"Idempotency Key"}},"additionalProperties":false,"type":"object","required":["provider","campaign_registration_id","version","review_token","idempotency_key"],"title":"CampaignCorrectionConfirm"},"CampaignCorrectionReview":{"properties":{"provider":{"$ref":"#/components/schemas/MessagingProvider"},"campaign_registration_id":{"type":"string","title":"Campaign Registration Id"},"before":{"additionalProperties":true,"type":"object","title":"Before"},"after":{"$ref":"#/components/schemas/CampaignCorrectionValues"},"review_token":{"type":"string","title":"Review Token"},"expires_at":{"type":"string","format":"date-time","title":"Expires At"},"submit_label":{"type":"string","title":"Submit Label","default":"Resubmit registration"}},"type":"object","required":["provider","campaign_registration_id","before","after","review_token","expires_at"],"title":"CampaignCorrectionReview"},"CampaignCorrectionReviewRequest":{"properties":{"provider":{"$ref":"#/components/schemas/MessagingProvider"},"campaign_registration_id":{"type":"string","title":"Campaign Registration Id"},"version":{"type":"string","title":"Version"},"values":{"$ref":"#/components/schemas/CampaignCorrectionValues"}},"additionalProperties":false,"type":"object","required":["provider","campaign_registration_id","version","values"],"title":"CampaignCorrectionReviewRequest"},"CampaignCorrectionState":{"properties":{"provider":{"$ref":"#/components/schemas/MessagingProvider"},"request_id":{"type":"string","title":"Request Id"},"campaign_registration_id":{"type":"string","title":"Campaign Registration Id"},"values":{"additionalProperties":true,"type":"object","title":"Values"},"version":{"type":"string","title":"Version"},"active":{"type":"boolean","title":"Active","default":false},"blocker":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Blocker"},"rejection_reason":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Rejection Reason"},"use_case_options":{"additionalProperties":{"type":"string"},"type":"object","title":"Use Case Options"},"subcategory_options":{"additionalProperties":{"type":"string"},"type":"object","title":"Subcategory Options"}},"type":"object","required":["provider","request_id","campaign_registration_id","values","version"],"title":"CampaignCorrectionState"},"CampaignCorrectionValues":{"properties":{"program_name":{"type":"string","maxLength":255,"minLength":1,"title":"Program Name"},"program_description":{"type":"string","maxLength":2048,"minLength":1,"title":"Program Description"},"use_case_categories":{"items":{"type":"string"},"type":"array","maxItems":1,"minItems":1,"title":"Use Case Categories"},"use_case_subcategories":{"items":{"type":"string"},"type":"array","title":"Use Case Subcategories"},"sample_messages":{"items":{"type":"string"},"type":"array","maxItems":5,"minItems":1,"title":"Sample Messages"},"opt_in_description":{"type":"string","maxLength":2048,"minLength":1,"title":"Opt In Description"},"opt_in_evidence_urls":{"items":{"type":"string"},"type":"array","maxItems":10,"minItems":1,"title":"Opt In Evidence Urls"},"message_frequency":{"type":"string","maxLength":255,"minLength":1,"title":"Message Frequency"},"help_message":{"type":"string","maxLength":1024,"minLength":1,"title":"Help Message"},"stop_message":{"type":"string","maxLength":1024,"minLength":1,"title":"Stop Message"},"terms_url":{"type":"string","title":"Terms Url"},"privacy_url":{"type":"string","title":"Privacy Url"}},"additionalProperties":false,"type":"object","required":["program_name","program_description","use_case_categories","sample_messages","opt_in_description","opt_in_evidence_urls","message_frequency","help_message","stop_message","terms_url","privacy_url"],"title":"CampaignCorrectionValues"},"CampaignMaintenanceMapping":{"properties":{"campaign_id":{"type":"string","minLength":1,"title":"Campaign Id"},"maintenance_type_id":{"type":"string","minLength":1,"title":"Maintenance Type Id"}},"additionalProperties":false,"type":"object","required":["campaign_id","maintenance_type_id"],"title":"CampaignMaintenanceMapping"},"CampaignOptoutMappingItem":{"properties":{"source_request_id":{"type":"string","title":"Source Request Id"},"contact_id":{"type":"string","title":"Contact Id"},"customer_id":{"anyOf":[{"type":"integer"},{"type":"null"}],"title":"Customer Id"},"campaign_id":{"type":"string","title":"Campaign Id"},"maintenance_type_id":{"type":"string","title":"Maintenance Type Id"},"maintenance_name":{"type":"string","title":"Maintenance Name"},"expires_at":{"anyOf":[{"type":"string","format":"date-time"},{"type":"null"}],"title":"Expires At"},"status":{"type":"string","enum":["ready","already_mapped","blocked"],"title":"Status"},"blocker":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Blocker"},"replacement_request_id":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Replacement Request Id"},"replacement_expires_at":{"anyOf":[{"type":"string","format":"date-time"},{"type":"null"}],"title":"Replacement Expires At"},"replacement_is_active":{"anyOf":[{"type":"boolean"},{"type":"null"}],"title":"Replacement Is Active"}},"type":"object","required":["source_request_id","contact_id","customer_id","campaign_id","maintenance_type_id","maintenance_name","expires_at","status"],"title":"CampaignOptoutMappingItem"},"CampaignScheduleGapRow":{"properties":{"day":{"type":"string","format":"date","title":"Day"},"organization_id":{"type":"string","title":"Organization Id"},"organization_name":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Organization Name"},"campaign_id":{"type":"string","title":"Campaign Id"},"campaign_slug":{"type":"string","title":"Campaign Slug"},"cron_schedule":{"type":"string","title":"Cron Schedule"}},"type":"object","required":["day","organization_id","campaign_id","campaign_slug","cron_schedule"],"title":"CampaignScheduleGapRow"},"CampaignSendDayDetail":{"properties":{"queued_at":{"anyOf":[{"type":"string","format":"date-time"},{"type":"null"}],"title":"Queued At"},"sent_at":{"anyOf":[{"type":"string","format":"date-time"},{"type":"null"}],"title":"Sent At"},"aborted_at":{"anyOf":[{"type":"string","format":"date-time"},{"type":"null"}],"title":"Aborted At"},"aborted_total":{"type":"integer","title":"Aborted Total","default":0},"aborted_contacts":{"items":{"$ref":"#/components/schemas/ContactOutcome"},"type":"array","title":"Aborted Contacts"},"success_total":{"type":"integer","title":"Success Total","default":0},"success_contacts":{"items":{"$ref":"#/components/schemas/ContactOutcome"},"type":"array","title":"Success Contacts"}},"type":"object","title":"CampaignSendDayDetail","description":"Per-(campaign, scheduled_dt, org) drill-down for the Outbound drawer.\n\nTimeline timestamps are the real first-occurrence marks (queued/sent/aborted); the drawer\ncomposes the timeline text from these plus the counts it already holds in the sends row.\nContact lists are per-engagement and capped at ``limit`` (``*_total`` is the uncapped count)."},"CampaignSendDayRow":{"properties":{"scheduled_dt":{"type":"string","format":"date","title":"Scheduled Dt"},"organization_id":{"type":"string","title":"Organization Id"},"organization_name":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Organization Name"},"organization_slug":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Organization Slug"},"campaign_id":{"type":"string","title":"Campaign Id"},"campaign_slug":{"type":"string","title":"Campaign Slug"},"agent_module_id":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Agent Module Id"},"outcome_label":{"type":"string","title":"Outcome Label"},"audience_targeted":{"type":"integer","title":"Audience Targeted"},"audience_total":{"type":"integer","title":"Audience Total"},"send_statuses":{"items":{"type":"string"},"type":"array","title":"Send Statuses"},"pause_reasons":{"items":{"additionalProperties":true,"type":"object"},"type":"array","title":"Pause Reasons","default":[]},"scheduled_at":{"anyOf":[{"type":"string","format":"date-time"},{"type":"null"}],"title":"Scheduled At"},"active":{"type":"integer","title":"Active"},"sent":{"type":"integer","title":"Sent"},"aborted":{"type":"integer","title":"Aborted"},"replied":{"type":"integer","title":"Replied","default":0},"outcome_count":{"anyOf":[{"type":"integer"},{"type":"null"}],"title":"Outcome Count"}},"type":"object","required":["scheduled_dt","organization_id","campaign_id","campaign_slug","outcome_label","audience_targeted","audience_total","send_statuses","active","sent","aborted"],"title":"CampaignSendDayRow"},"CampaignSubmissionPreviewPublic":{"properties":{"provider":{"type":"string","title":"Provider"},"state_fingerprint":{"type":"string","title":"State Fingerprint"},"content":{"additionalProperties":true,"type":"object","title":"Content"},"context":{"additionalProperties":true,"type":"object","title":"Context"}},"type":"object","required":["provider","state_fingerprint","content","context"],"title":"CampaignSubmissionPreviewPublic"},"CampaignTargetingPreviewBody":{"properties":{"rules":{"anyOf":[{"items":{"additionalProperties":true,"type":"object"},"type":"array"},{"type":"null"}],"title":"Rules"}},"type":"object","title":"CampaignTargetingPreviewBody","description":"Optional body. Omit ``rules`` to evaluate the campaign's persisted state."},"CampaignTriggerPublic":{"properties":{"id":{"type":"string","title":"Id"},"campaign_id":{"type":"string","title":"Campaign Id"},"organization_id":{"type":"string","title":"Organization Id"},"event_type":{"type":"string","title":"Event Type"},"enabled":{"type":"boolean","title":"Enabled","default":true},"delay_origin":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Delay Origin"},"re_entry_cooldown_minutes":{"anyOf":[{"type":"integer"},{"type":"null"}],"title":"Re Entry Cooldown Minutes"},"send_delay_seconds":{"anyOf":[{"type":"integer"},{"type":"null"}],"title":"Send Delay Seconds"},"created_at":{"anyOf":[{"type":"string","format":"date-time"},{"type":"null"}],"title":"Created At"},"updated_at":{"anyOf":[{"type":"string","format":"date-time"},{"type":"null"}],"title":"Updated At"}},"type":"object","required":["id","campaign_id","organization_id","event_type"],"title":"CampaignTriggerPublic"},"CancellationPreview":{"properties":{"review_sha256":{"type":"string","title":"Review Sha256"},"snapshot":{"additionalProperties":true,"type":"object","title":"Snapshot"}},"type":"object","required":["review_sha256","snapshot"],"title":"CancellationPreview"},"CancellationRequest":{"properties":{"organization_id":{"type":"string","maxLength":64,"minLength":1,"title":"Organization Id"},"contact_id":{"type":"string","maxLength":64,"minLength":1,"title":"Contact Id"},"engagement_id":{"type":"string","maxLength":64,"minLength":1,"title":"Engagement Id"},"trigger_ids":{"items":{"type":"string","maxLength":64,"minLength":1},"type":"array","maxItems":20,"minItems":1,"title":"Trigger Ids"},"reason":{"type":"string","maxLength":1000,"minLength":10,"title":"Reason"}},"additionalProperties":false,"type":"object","required":["organization_id","contact_id","engagement_id","trigger_ids","reason"],"title":"CancellationRequest"},"CancellationResult":{"properties":{"audit_id":{"type":"string","title":"Audit Id"},"already_applied":{"type":"boolean","title":"Already Applied"},"cancelled_trigger_ids":{"items":{"type":"string"},"type":"array","title":"Cancelled Trigger Ids"},"schedule_cleanup_pending":{"items":{"type":"string"},"type":"array","title":"Schedule Cleanup Pending"}},"type":"object","required":["audit_id","already_applied","cancelled_trigger_ids","schedule_cleanup_pending"],"title":"CancellationResult"},"CandidateInput":{"properties":{"requested_system_count":{"anyOf":[{"type":"integer","minimum":1.0},{"type":"null"}],"title":"Requested System Count","description":"Complete systems requested for this visit; null when unknown, never inferred from equipment components."},"agent_scope_known":{"type":"boolean","title":"Agent Scope Known","description":"Whether the caller's agent and roster are known, including no agent","default":false},"agent_id":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Agent Id","description":"Running agent ID from trusted request context"},"roster_id":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Roster Id","description":"Running roster ID; null for a known caller without a roster"},"job_type_id":{"type":"integer","title":"Job Type Id"},"business_unit_ids":{"items":{"type":"integer"},"type":"array","title":"Business Unit Ids"},"kind":{"type":"string","enum":["date","window"],"title":"Kind"},"local_date":{"type":"string","title":"Local Date","description":"Organization-local YYYY-MM-DD being offered, not the evaluation date"},"timezone":{"type":"string","title":"Timezone"},"window_start":{"anyOf":[{"type":"string","format":"date-time"},{"type":"null"}],"title":"Window Start"},"window_end":{"anyOf":[{"type":"string","format":"date-time"},{"type":"null"}],"title":"Window End"},"arrival_window_start":{"anyOf":[{"type":"string","format":"date-time"},{"type":"null"}],"title":"Arrival Window Start","description":"Start of the customer-facing arrival window"},"arrival_window_end":{"anyOf":[{"type":"string","format":"date-time"},{"type":"null"}],"title":"Arrival Window End","description":"End of the customer-facing arrival window"},"exclude_appointment_id":{"anyOf":[{"type":"integer"},{"type":"null"}],"title":"Exclude Appointment Id"},"arrival_window_id":{"anyOf":[{"type":"integer"},{"type":"null"}],"title":"Arrival Window Id","description":"ServiceTitan arrival window the candidate offers"},"business_unit_group_ids":{"anyOf":[{"items":{"type":"string"},"type":"array"},{"type":"null"}],"title":"Business Unit Group Ids","description":"Business unit groups the business units belong to; null when the caller did not resolve them"},"zone_id":{"anyOf":[{"type":"integer"},{"type":"null"}],"title":"Zone Id","description":"Zone of the service location; null when the caller did not resolve it"}},"additionalProperties":false,"type":"object","required":["job_type_id","business_unit_ids","kind","local_date","timezone"],"title":"CandidateInput","description":"A day or window to evaluate, before the request's current time and job-type groups are attached."},"CaptureLsaRecordingRequest":{"properties":{"organization_id":{"type":"string","title":"Organization Id"},"google_lead_id":{"type":"string","title":"Google Lead Id"}},"type":"object","required":["organization_id","google_lead_id"],"title":"CaptureLsaRecordingRequest"},"CaptureLsaRecordingResponse":{"properties":{"organization_id":{"type":"string","title":"Organization Id"},"google_lead_id":{"type":"string","title":"Google Lead Id"},"status":{"type":"string","title":"Status"}},"type":"object","required":["organization_id","google_lead_id","status"],"title":"CaptureLsaRecordingResponse"},"CarrierRegistrationProgress":{"properties":{"provider":{"$ref":"#/components/schemas/MessagingProvider"},"identity_status":{"anyOf":[{"$ref":"#/components/schemas/MessagingRegistrationStatus"},{"type":"null"}]},"campaign_status":{"anyOf":[{"$ref":"#/components/schemas/MessagingRegistrationStatus"},{"type":"null"}]},"identity_registration_id":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Identity Registration Id"},"campaign_registration_id":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Campaign Registration Id"},"service_profile_id":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Service Profile Id"},"action":{"type":"string","enum":["none","resume","correct_details","contact_support"],"title":"Action","default":"none"},"correction_target":{"anyOf":[{"type":"string","enum":["business","campaign"]},{"type":"null"}],"title":"Correction Target"},"blocker_code":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Blocker Code"},"last_observed_at":{"anyOf":[{"type":"string","format":"date-time"},{"type":"null"}],"title":"Last Observed At"},"history":{"items":{"$ref":"#/components/schemas/RegistrationHistoryItem"},"type":"array","title":"History"},"history_has_more":{"type":"boolean","title":"History Has More","default":false},"history_next_cursor":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"History Next Cursor"}},"type":"object","required":["provider"],"title":"CarrierRegistrationProgress"},"CatalogCategory":{"type":"string","enum":["Lead Sources","Advertising","Automation","Website","CRM","Accounting","Calling","Fleet"],"title":"CatalogCategory"},"CatalogEntry":{"properties":{"key":{"type":"string","title":"Key"},"source":{"type":"string","title":"Source"},"type":{"type":"string","title":"Type"},"label":{"type":"string","title":"Label"},"enum_values":{"anyOf":[{"items":{"type":"string"},"type":"array"},{"type":"null"}],"title":"Enum Values"},"open_names":{"type":"boolean","title":"Open Names","default":false},"operators":{"items":{"type":"string"},"type":"array","title":"Operators","default":[]}},"additionalProperties":false,"type":"object","required":["key","source","type","label"],"title":"CatalogEntry"},"CategoryLabelTarget":{"properties":{"kind":{"type":"string","const":"category_label","title":"Kind","default":"category_label"},"category_key":{"type":"string","pattern":"^[a-z][a-z0-9_]{0,63}$","title":"Category Key"}},"additionalProperties":false,"type":"object","required":["category_key"],"title":"CategoryLabelTarget"},"ChangeAction":{"properties":{"kind":{"type":"string","const":"inspect_entity","title":"Kind"},"entity_id":{"type":"string","title":"Entity Id"}},"additionalProperties":false,"type":"object","required":["kind","entity_id"],"title":"ChangeAction"},"ChangeCursor":{"properties":{"kind":{"type":"string","enum":["run","merge","merge_undo"],"title":"Kind"},"id":{"type":"string","maxLength":255,"minLength":1,"pattern":"^\\S(?:.*\\S)?$","title":"Id"},"happened_at":{"type":"string","format":"date-time","title":"Happened At"}},"additionalProperties":false,"type":"object","required":["kind","id","happened_at"],"title":"ChangeCursor"},"ChangeDetailResponse":{"properties":{"change":{"$ref":"#/components/schemas/ChangeRecord"},"provenance":{"additionalProperties":true,"type":"object","title":"Provenance"},"evidence":{"items":{"$ref":"#/components/schemas/HistoricalEvidence"},"type":"array","title":"Evidence"},"next_evidence_id":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Next Evidence Id"}},"additionalProperties":false,"type":"object","required":["change","provenance","evidence","next_evidence_id"],"title":"ChangeDetailResponse"},"ChangePageResponse":{"properties":{"items":{"items":{"$ref":"#/components/schemas/ChangeRecord"},"type":"array","title":"Items"},"next_cursor":{"anyOf":[{"$ref":"#/components/schemas/ChangeCursor"},{"type":"null"}]}},"additionalProperties":false,"type":"object","required":["items","next_cursor"],"title":"ChangePageResponse"},"ChangeRecord":{"properties":{"reference":{"$ref":"#/components/schemas/ChangeReference"},"about_entity_id":{"type":"string","title":"About Entity Id"},"happened_at":{"type":"string","format":"date-time","title":"Happened At"},"actor_ref":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Actor Ref"},"is_automatic":{"type":"boolean","title":"Is Automatic"},"estimated_impact":{"anyOf":[{"additionalProperties":true,"type":"object"},{"type":"null"}],"title":"Estimated Impact"},"reverted_at":{"anyOf":[{"type":"string","format":"date-time"},{"type":"null"}],"title":"Reverted At"},"reverted_by":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Reverted By"},"reverses":{"anyOf":[{"$ref":"#/components/schemas/ChangeReference"},{"type":"null"}]},"reversed_by":{"anyOf":[{"$ref":"#/components/schemas/ChangeReference"},{"type":"null"}]},"supported_actions":{"items":{"$ref":"#/components/schemas/ChangeAction"},"type":"array","title":"Supported Actions","default":[]}},"additionalProperties":false,"type":"object","required":["reference","about_entity_id","happened_at","actor_ref","is_automatic","estimated_impact","reverted_at","reverted_by","reverses","reversed_by"],"title":"ChangeRecord"},"ChangeReference":{"properties":{"kind":{"type":"string","enum":["run","merge","merge_undo"],"title":"Kind"},"id":{"type":"string","maxLength":255,"minLength":1,"pattern":"^\\S(?:.*\\S)?$","title":"Id"}},"additionalProperties":false,"type":"object","required":["kind","id"],"title":"ChangeReference"},"ChangeSpecHookLink":{"properties":{"group_id":{"type":"string","minLength":1,"title":"Group Id"},"hook_id":{"type":"string","minLength":1,"title":"Hook Id"}},"type":"object","required":["group_id","hook_id"],"title":"ChangeSpecHookLink"},"ChangeSpecObjectiveLink":{"properties":{"group_id":{"type":"string","minLength":1,"title":"Group Id"},"objective_id":{"type":"string","minLength":1,"title":"Objective Id"}},"type":"object","required":["group_id","objective_id"],"title":"ChangeSpecObjectiveLink"},"ChannelConflict":{"properties":{"channel_id":{"type":"string","title":"Channel Id"},"organization_id":{"type":"string","title":"Organization Id"},"organization_name":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Organization Name"},"organization_deleted_at":{"anyOf":[{"type":"string","format":"date-time"},{"type":"null"}],"title":"Organization Deleted At"}},"type":"object","required":["channel_id","organization_id","organization_name","organization_deleted_at"],"title":"ChannelConflict"},"ChannelHealthCheckPublic":{"properties":{"name":{"type":"string","title":"Name"},"status":{"$ref":"#/components/schemas/ChannelHealthCheckStatus"},"reason":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Reason"},"provider_error_code":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Provider Error Code"}},"type":"object","required":["name","status"],"title":"ChannelHealthCheckPublic"},"ChannelHealthCheckStatus":{"type":"string","enum":["pass","fail","unknown"],"title":"ChannelHealthCheckStatus"},"ChannelHealthPage":{"properties":{"items":{"items":{"$ref":"#/components/schemas/ChannelHealthPublic"},"type":"array","title":"Items"}},"type":"object","required":["items"],"title":"ChannelHealthPage"},"ChannelHealthPublic":{"properties":{"channel_id":{"type":"string","title":"Channel Id"},"status":{"$ref":"#/components/schemas/ChannelHealthStatus"},"checks":{"items":{"$ref":"#/components/schemas/ChannelHealthCheckPublic"},"type":"array","title":"Checks"},"reason":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Reason"},"provider_error_code":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Provider Error Code"},"checked_at":{"type":"string","format":"date-time","title":"Checked At"},"cached":{"type":"boolean","title":"Cached","default":false}},"type":"object","required":["channel_id","status","checks","checked_at"],"title":"ChannelHealthPublic"},"ChannelHealthStatus":{"type":"string","enum":["healthy","unhealthy","unknown"],"title":"ChannelHealthStatus"},"ChannelMessagingProfilePublic":{"properties":{"channel_id":{"type":"string","title":"Channel Id"},"channel_type":{"type":"string","title":"Channel Type"},"phone_number":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Phone Number"},"messaging_profile_id":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Messaging Profile Id"},"name":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Name"},"enabled":{"anyOf":[{"type":"boolean"},{"type":"null"}],"title":"Enabled"},"alphanumeric_sender_id":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Alphanumeric Sender Id"},"webhook_url":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Webhook Url"},"webhook_api_version":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Webhook Api Version"},"findings":{"items":{"type":"string"},"type":"array","title":"Findings","default":[]}},"type":"object","required":["channel_id","channel_type"],"title":"ChannelMessagingProfilePublic"},"ChannelModulePublic":{"properties":{"id":{"type":"string","title":"Id"},"created_at":{"anyOf":[{"type":"string","format":"date-time"},{"type":"null"}],"title":"Created At"},"updated_at":{"anyOf":[{"type":"string","format":"date-time"},{"type":"null"}],"title":"Updated At"},"deleted_at":{"anyOf":[{"type":"string","format":"date-time"},{"type":"null"}],"title":"Deleted At"},"title":{"type":"string","title":"Title"},"description":{"type":"string","title":"Description"},"type":{"$ref":"#/components/schemas/ChannelType"},"disabled_reason":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Disabled Reason"}},"type":"object","required":["id","title","description","type"],"title":"ChannelModulePublic"},"ChannelPublicWithChildren":{"properties":{"id":{"type":"string","title":"Id"},"organization_id":{"type":"string","title":"Organization Id"},"reference_id":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Reference Id"},"created_at":{"anyOf":[{"type":"string","format":"date-time"},{"type":"null"}],"title":"Created At"},"updated_at":{"anyOf":[{"type":"string","format":"date-time"},{"type":"null"}],"title":"Updated At"},"deleted_at":{"anyOf":[{"type":"string","format":"date-time"},{"type":"null"}],"title":"Deleted At"},"module_id":{"type":"string","title":"Module Id"},"title":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Title"},"phone_number":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Phone Number"},"transfer_to_number":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Transfer To Number"},"voice_id":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Voice Id"},"slack_team_id":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Slack Team Id"},"module":{"anyOf":[{"$ref":"#/components/schemas/ChannelModulePublic"},{"type":"null"}]}},"type":"object","required":["id","organization_id","module_id"],"title":"ChannelPublicWithChildren","description":"Adds the eager-loaded module. ``Channel.module`` is ``lazy=\"joined\"``\nso the handler always loads it, and pre-ENG-4300 ``BaseMixin.serialize``\nwalked it into the wire shape — callers do ``channel.module.type``\n(see ``twilio.py``, ``deliver_core.py``, ``foundations/metrics/sms.py``)."},"ChannelRouting":{"properties":{"inbound_responder_agent_id":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Inbound Responder Agent Id"},"conflicts":{"items":{"$ref":"#/components/schemas/ChannelConflict"},"type":"array","title":"Conflicts"}},"type":"object","required":["inbound_responder_agent_id","conflicts"],"title":"ChannelRouting"},"ChannelToggleBody":{"properties":{"recipient_id":{"type":"string","title":"Recipient Id"},"channel":{"$ref":"#/components/schemas/NotificationChannel"},"enabled":{"type":"boolean","title":"Enabled"}},"type":"object","required":["recipient_id","channel","enabled"],"title":"ChannelToggleBody"},"ChannelType":{"type":"string","enum":["sms","sendblue","sms_telnyx","voice","slack","meta_messenger","google_lsa","instagram","yelp","thumbtack","simulation"],"title":"ChannelType"},"CheckAppInstallationResponse":{"properties":{"success":{"type":"boolean","title":"Success"},"processed_count":{"type":"integer","title":"Processed Count"},"service_titan_ids":{"items":{"type":"string"},"type":"array","title":"Service Titan Ids"}},"type":"object","required":["success","processed_count","service_titan_ids"],"title":"CheckAppInstallationResponse","description":"Response from ``POST /check-app-installation``."},"ChoiceCatalogResponse":{"properties":{"id":{"type":"string","title":"Id"},"key":{"type":"string","title":"Key"},"label":{"type":"string","title":"Label"},"organization_id":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Organization Id"},"shop_permissions":{"$ref":"#/components/schemas/ShopChoicePermissions"},"revision":{"type":"string","pattern":"^[0-9a-f]{64}$","title":"Revision"},"items":{"items":{"$ref":"#/components/schemas/ChoiceOption"},"type":"array","title":"Items"}},"additionalProperties":false,"type":"object","required":["id","key","label","organization_id","shop_permissions","revision","items"],"title":"ChoiceCatalogResponse"},"ChoiceOption":{"properties":{"id":{"type":"string","title":"Id"},"key":{"type":"string","title":"Key"},"label":{"type":"string","title":"Label"},"synonyms":{"items":{"type":"string","maxLength":200,"minLength":1,"pattern":"^\\S(?:.*\\S)?$"},"type":"array","maxItems":100,"title":"Synonyms","default":[]},"parent_key":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Parent Key"},"ancestor_keys":{"items":{"type":"string"},"type":"array","title":"Ancestor Keys","default":[]},"hidden":{"type":"boolean","title":"Hidden","default":false},"retired":{"type":"boolean","title":"Retired","default":false},"organization_id":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Organization Id"}},"additionalProperties":false,"type":"object","required":["id","key","label"],"title":"ChoiceOption"},"ClassifiedValue_AgeRange_":{"properties":{"value":{"anyOf":[{"$ref":"#/components/schemas/AgeRange"},{"type":"null"}]},"status":{"type":"string","enum":["known","unknown","disputed"],"title":"Status"},"freshness":{"type":"string","enum":["current","stale"],"title":"Freshness"},"evidence_ids":{"items":{"type":"string","minLength":1,"pattern":"\\S"},"type":"array","title":"Evidence Ids"},"derivation_run_id":{"type":"string","minLength":1,"pattern":"\\S","title":"Derivation Run Id"},"rule_version":{"type":"string","minLength":1,"pattern":"\\S","title":"Rule Version"},"reason":{"anyOf":[{"type":"string","minLength":1,"pattern":"\\S"},{"type":"null"}],"title":"Reason"}},"additionalProperties":false,"type":"object","required":["value","status","freshness","evidence_ids","derivation_run_id","rule_version"],"title":"ClassifiedValue[AgeRange]"},"ClassifiedValue_Annotated_bool__Strict_strict_True___":{"properties":{"value":{"anyOf":[{"type":"boolean"},{"type":"null"}],"title":"Value"},"status":{"type":"string","enum":["known","unknown","disputed"],"title":"Status"},"freshness":{"type":"string","enum":["current","stale"],"title":"Freshness"},"evidence_ids":{"items":{"type":"string","minLength":1,"pattern":"\\S"},"type":"array","title":"Evidence Ids"},"derivation_run_id":{"type":"string","minLength":1,"pattern":"\\S","title":"Derivation Run Id"},"rule_version":{"type":"string","minLength":1,"pattern":"\\S","title":"Rule Version"},"reason":{"anyOf":[{"type":"string","minLength":1,"pattern":"\\S"},{"type":"null"}],"title":"Reason"}},"additionalProperties":false,"type":"object","required":["value","status","freshness","evidence_ids","derivation_run_id","rule_version"],"title":"ClassifiedValue[Annotated[bool, Strict(strict=True)]]"},"ClassifiedValue_Annotated_int__FieldInfo_annotation_NoneType__required_True__metadata__Strict_strict_True___Ge_ge_0_____":{"properties":{"value":{"anyOf":[{"type":"integer","minimum":0.0},{"type":"null"}],"title":"Value"},"status":{"type":"string","enum":["known","unknown","disputed"],"title":"Status"},"freshness":{"type":"string","enum":["current","stale"],"title":"Freshness"},"evidence_ids":{"items":{"type":"string","minLength":1,"pattern":"\\S"},"type":"array","title":"Evidence Ids"},"derivation_run_id":{"type":"string","minLength":1,"pattern":"\\S","title":"Derivation Run Id"},"rule_version":{"type":"string","minLength":1,"pattern":"\\S","title":"Rule Version"},"reason":{"anyOf":[{"type":"string","minLength":1,"pattern":"\\S"},{"type":"null"}],"title":"Reason"}},"additionalProperties":false,"type":"object","required":["value","status","freshness","evidence_ids","derivation_run_id","rule_version"],"title":"ClassifiedValue[Annotated[int, FieldInfo(annotation=NoneType, required=True, metadata=[Strict(strict=True), Ge(ge=0)])]]"},"CompanyProfileAutosaveRequest":{"properties":{"revision":{"type":"string","maxLength":255,"minLength":1,"title":"Revision"},"generation":{"type":"string","maxLength":255,"minLength":1,"title":"Generation"},"fields":{"additionalProperties":true,"type":"object","title":"Fields"}},"additionalProperties":false,"type":"object","required":["revision","generation","fields"],"title":"CompanyProfileAutosaveRequest"},"CompanyProfileConfirmRequest":{"properties":{"legal_name":{"type":"string","maxLength":255,"minLength":1,"title":"Legal Name"},"dba_name":{"anyOf":[{"type":"string","maxLength":255,"minLength":1},{"type":"null"}],"title":"Dba Name"},"country":{"type":"string","maxLength":255,"minLength":1,"title":"Country"},"entity_type":{"type":"string","maxLength":255,"minLength":1,"title":"Entity Type"},"website_url":{"type":"string","maxLength":2048,"minLength":1,"title":"Website Url"},"phone":{"type":"string","maxLength":255,"minLength":1,"title":"Phone"},"street":{"type":"string","maxLength":255,"minLength":1,"title":"Street"},"city":{"type":"string","maxLength":255,"minLength":1,"title":"City"},"state":{"type":"string","maxLength":255,"minLength":1,"title":"State"},"postal_code":{"type":"string","maxLength":255,"minLength":1,"title":"Postal Code"},"trades":{"items":{"type":"string","maxLength":255,"minLength":1},"type":"array","maxItems":50,"minItems":1,"title":"Trades"},"authorized_representative_1":{"$ref":"#/components/schemas/AuthorizedRepresentative"},"authorized_representative_2":{"$ref":"#/components/schemas/AuthorizedRepresentative"},"customer_care_contact_name":{"type":"string","maxLength":255,"minLength":1,"title":"Customer Care Contact Name"},"customer_care_email":{"type":"string","format":"email","title":"Customer Care Email"},"customer_care_phone":{"type":"string","maxLength":255,"minLength":1,"title":"Customer Care Phone"},"ein":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Ein"}},"additionalProperties":false,"type":"object","required":["legal_name","country","entity_type","website_url","phone","street","city","state","postal_code","trades","authorized_representative_1","authorized_representative_2","customer_care_contact_name","customer_care_email","customer_care_phone"],"title":"CompanyProfileConfirmRequest"},"CompanyProfileStatePublic":{"properties":{"provider":{"$ref":"#/components/schemas/MessagingProvider"},"profile":{"additionalProperties":true,"type":"object","title":"Profile"},"prefilled":{"items":{"type":"string"},"type":"array","title":"Prefilled"},"ein_last_four":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Ein Last Four"},"revision":{"type":"string","title":"Revision"},"generation":{"type":"string","title":"Generation"},"confirmed":{"type":"boolean","title":"Confirmed"},"correction_mode":{"type":"string","title":"Correction Mode","default":"legacy"},"submitted_at":{"anyOf":[{"type":"string","format":"date-time"},{"type":"null"}],"title":"Submitted At"}},"type":"object","required":["provider","profile","revision","generation","confirmed"],"title":"CompanyProfileStatePublic"},"CompanyProfileVersionedConfirmRequest":{"properties":{"legal_name":{"type":"string","maxLength":255,"minLength":1,"title":"Legal Name"},"dba_name":{"anyOf":[{"type":"string","maxLength":255,"minLength":1},{"type":"null"}],"title":"Dba Name"},"country":{"type":"string","maxLength":255,"minLength":1,"title":"Country"},"entity_type":{"type":"string","maxLength":255,"minLength":1,"title":"Entity Type"},"website_url":{"type":"string","maxLength":2048,"minLength":1,"title":"Website Url"},"phone":{"type":"string","maxLength":255,"minLength":1,"title":"Phone"},"street":{"type":"string","maxLength":255,"minLength":1,"title":"Street"},"city":{"type":"string","maxLength":255,"minLength":1,"title":"City"},"state":{"type":"string","maxLength":255,"minLength":1,"title":"State"},"postal_code":{"type":"string","maxLength":255,"minLength":1,"title":"Postal Code"},"trades":{"items":{"type":"string","maxLength":255,"minLength":1},"type":"array","maxItems":50,"minItems":1,"title":"Trades"},"authorized_representative_1":{"$ref":"#/components/schemas/AuthorizedRepresentative"},"authorized_representative_2":{"$ref":"#/components/schemas/AuthorizedRepresentative"},"customer_care_contact_name":{"type":"string","maxLength":255,"minLength":1,"title":"Customer Care Contact Name"},"customer_care_email":{"type":"string","format":"email","title":"Customer Care Email"},"customer_care_phone":{"type":"string","maxLength":255,"minLength":1,"title":"Customer Care Phone"},"ein":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Ein"},"revision":{"type":"string","maxLength":255,"minLength":1,"title":"Revision"},"generation":{"type":"string","maxLength":255,"minLength":1,"title":"Generation"}},"additionalProperties":false,"type":"object","required":["legal_name","country","entity_type","website_url","phone","street","city","state","postal_code","trades","authorized_representative_1","authorized_representative_2","customer_care_contact_name","customer_care_email","customer_care_phone","revision","generation"],"title":"CompanyProfileVersionedConfirmRequest"},"ConfiguredTransferDestination":{"properties":{"name":{"type":"string","minLength":1,"title":"Name"},"phone_number":{"type":"string","minLength":1,"title":"Phone Number"},"reason":{"type":"string","minLength":1,"title":"Reason"},"schedule":{"anyOf":[{"$ref":"#/components/schemas/CsrOfficeSchedule"},{"type":"null"}]}},"additionalProperties":false,"type":"object","required":["name","phone_number","reason"],"title":"ConfiguredTransferDestination"},"ConfirmOwnInstallationResponse":{"properties":{"status":{"$ref":"#/components/schemas/ServiceTitanInstallationStatus"},"confirmed_count":{"type":"integer","title":"Confirmed Count"},"count":{"type":"integer","title":"Count"}},"type":"object","required":["status","confirmed_count","count"],"title":"ConfirmOwnInstallationResponse","description":"Response from customer-facing ``POST /tenants/confirm-installation``.\n\n``status`` is the org's ServiceTitan installation status recomputed after the\nconfirm attempt, so the client knows whether to render the app or keep showing\nthe install prompt. ``confirmed_count`` is how many of the org's ``count``\ntenants confirm_installation succeeded for this request."},"ConnectResponse":{"properties":{"authorization_url":{"type":"string","title":"Authorization Url"}},"type":"object","required":["authorization_url"],"title":"ConnectResponse"},"ContactBasicPublic":{"properties":{"contact_id":{"type":"string","title":"Contact Id"},"first_name":{"type":"string","title":"First Name"},"last_name":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Last Name"},"last_contacted":{"anyOf":[{"type":"string","format":"date-time"},{"type":"null"}],"title":"Last Contacted"},"href":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Href"},"do_not_contact":{"type":"boolean","title":"Do Not Contact"}},"type":"object","required":["contact_id","first_name","do_not_contact"],"title":"ContactBasicPublic","description":"Mirrors the ``ContactData`` GraphQL fragment (contact_id-keyed).\n\nCOMMERCIAL name handling, the computed ``do_not_contact`` and ``href`` are\nproduced by the router serializer, not read straight off the model."},"ContactMethodPublic":{"properties":{"id":{"type":"string","title":"Id"},"type":{"$ref":"#/components/schemas/ContactMethodType"},"social_platform":{"anyOf":[{"$ref":"#/components/schemas/SocialPlatform"},{"type":"null"}]},"phone_number":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Phone Number"},"email":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Email"},"person_name":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Person Name"},"person_role":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Person Role"}},"type":"object","required":["id","type"],"title":"ContactMethodPublic"},"ContactMethodRank":{"properties":{"contact_method_id":{"type":"string","title":"Contact Method Id"},"rank":{"type":"integer","title":"Rank"}},"type":"object","required":["contact_method_id","rank"],"title":"ContactMethodRank"},"ContactMethodRankingResponse":{"properties":{"enabled":{"type":"boolean","title":"Enabled"},"rankings":{"items":{"$ref":"#/components/schemas/ContactMethodRank"},"type":"array","title":"Rankings"}},"type":"object","required":["enabled","rankings"],"title":"ContactMethodRankingResponse"},"ContactMethodResponse":{"properties":{"id":{"type":"string","title":"Id"},"type":{"$ref":"#/components/schemas/ContactMethodType"},"phone_number":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Phone Number"},"email":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Email"},"do_not_text_upsmith":{"type":"boolean","title":"Do Not Text Upsmith"},"person_name":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Person Name"},"person_role":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Person Role"}},"type":"object","required":["id","type","phone_number","email","do_not_text_upsmith"],"title":"ContactMethodResponse"},"ContactMethodType":{"type":"string","enum":["phone","email","fax","social"],"title":"ContactMethodType"},"ContactOutcome":{"properties":{"name":{"type":"string","title":"Name"},"reason":{"type":"string","title":"Reason"},"engagement_id":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Engagement Id"}},"type":"object","required":["name","reason"],"title":"ContactOutcome"},"ContactPage":{"properties":{"items":{"items":{"$ref":"#/components/schemas/ContactPublic"},"type":"array","title":"Items"},"total":{"type":"integer","title":"Total"},"cursor":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Cursor"}},"type":"object","required":["items","total"],"title":"ContactPage"},"ContactPublic":{"properties":{"id":{"type":"string","title":"Id"},"first_name":{"type":"string","title":"First Name"},"last_name":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Last Name"},"last_contacted":{"anyOf":[{"type":"string","format":"date-time"},{"type":"null"}],"title":"Last Contacted"},"href":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Href"},"do_not_contact":{"type":"boolean","title":"Do Not Contact"},"stop_reason":{"anyOf":[{"$ref":"#/components/schemas/StopRequestReason"},{"type":"null"}]},"stop_origin":{"anyOf":[{"$ref":"#/components/schemas/StopRequestOrigin"},{"type":"null"}]},"stopped_at":{"anyOf":[{"type":"string","format":"date-time"},{"type":"null"}],"title":"Stopped At"},"stopped_by_name":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Stopped By Name"},"stop_revocable":{"type":"boolean","title":"Stop Revocable","default":false}},"type":"object","required":["id","first_name","do_not_contact"],"title":"ContactPublic"},"ContactStopPolicyPublic":{"properties":{"do_not_contact":{"type":"boolean","title":"Do Not Contact"},"requests":{"items":{"$ref":"#/components/schemas/StopRequestPublic"},"type":"array","title":"Requests"},"external_block":{"anyOf":[{"$ref":"#/components/schemas/ExternalBlockPublic"},{"type":"null"}]}},"type":"object","required":["do_not_contact","requests","external_block"],"title":"ContactStopPolicyPublic"},"ConversationAgentV1Response":{"properties":{"id":{"type":"string","title":"Id"},"title":{"type":"string","title":"Title"},"roster_name":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Roster Name"}},"type":"object","required":["id","title"],"title":"ConversationAgentV1Response"},"ConversationAgentV2Response":{"properties":{"id":{"type":"string","title":"Id"},"name":{"type":"string","title":"Name"},"roster_name":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Roster Name"}},"type":"object","required":["id","name"],"title":"ConversationAgentV2Response"},"ConversationDetailPublic":{"properties":{"engagement_id":{"type":"string","title":"Engagement Id"},"created_at":{"type":"string","format":"date-time","title":"Created At"},"status":{"$ref":"#/components/schemas/EngagementStatus"},"type":{"$ref":"#/components/schemas/EngagementType"},"is_ai_allowed_to_respond":{"type":"boolean","title":"Is Ai Allowed To Respond"},"organization_id":{"type":"string","title":"Organization Id"},"source":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Source"},"manually_booked_at":{"anyOf":[{"type":"string","format":"date-time"},{"type":"null"}],"title":"Manually Booked At"},"manually_booked_by_user_id":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Manually Booked By User Id"},"hidden_at":{"anyOf":[{"type":"string","format":"date-time"},{"type":"null"}],"title":"Hidden At"},"hidden_by_user_id":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Hidden By User Id"},"has_agent_booking":{"type":"boolean","title":"Has Agent Booking","default":false},"booking_status":{"$ref":"#/components/schemas/EngagementBookingStatus","default":"none"},"agent_v2_id":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Agent V2 Id"},"agent_v2_name":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Agent V2 Name"},"agent_v2_voice_enabled":{"anyOf":[{"type":"boolean"},{"type":"null"}],"title":"Agent V2 Voice Enabled"},"agent_roster_key":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Agent Roster Key"},"agent_variants":{"items":{"$ref":"#/components/schemas/AgentVariantRefPublic"},"type":"array","title":"Agent Variants","default":[]},"objective_state":{"anyOf":[{"additionalProperties":true,"type":"object"},{"type":"null"}],"title":"Objective State"},"override_agent_paused":{"type":"boolean","title":"Override Agent Paused","default":false},"turn_number":{"anyOf":[{"type":"integer"},{"type":"null"}],"title":"Turn Number"},"metadata":{"anyOf":[{"additionalProperties":true,"type":"object"},{"type":"null"}],"title":"Metadata"},"contact":{"anyOf":[{"$ref":"#/components/schemas/ContactBasicPublic"},{"type":"null"}]},"last_event":{"anyOf":[{"$ref":"#/components/schemas/TimelineEventPublic"},{"type":"null"}]},"escalation_status":{"$ref":"#/components/schemas/EngagementEscalationStatus"},"waiting_since":{"anyOf":[{"type":"string","format":"date-time"},{"type":"null"}],"title":"Waiting Since"},"escalation_reason":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Escalation Reason"},"escalation_summary":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Escalation Summary"},"escalation_id":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Escalation Id"},"escalations":{"items":{"$ref":"#/components/schemas/EscalationBasicPublic"},"type":"array","title":"Escalations","default":[]},"pending_customer_message_count":{"type":"integer","title":"Pending Customer Message Count","default":0},"ai_pause":{"anyOf":[{"$ref":"#/components/schemas/AiResponsePausePublic"},{"type":"null"}]},"contact_method":{"anyOf":[{"$ref":"#/components/schemas/ContactMethodPublic"},{"type":"null"}]},"call_duration_seconds":{"anyOf":[{"type":"integer"},{"type":"null"}],"title":"Call Duration Seconds"},"lsa_account_name":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Lsa Account Name"},"ask_jenny_chat":{"anyOf":[{"$ref":"#/components/schemas/AskJennyChatReference"},{"type":"null"}]}},"type":"object","required":["engagement_id","created_at","status","type","is_ai_allowed_to_respond","organization_id","escalation_status"],"title":"ConversationDetailPublic"},"ConversationListItemPublic":{"properties":{"engagement_id":{"type":"string","title":"Engagement Id"},"created_at":{"type":"string","format":"date-time","title":"Created At"},"status":{"$ref":"#/components/schemas/EngagementStatus"},"type":{"$ref":"#/components/schemas/EngagementType"},"is_ai_allowed_to_respond":{"type":"boolean","title":"Is Ai Allowed To Respond"},"organization_id":{"type":"string","title":"Organization Id"},"source":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Source"},"manually_booked_at":{"anyOf":[{"type":"string","format":"date-time"},{"type":"null"}],"title":"Manually Booked At"},"manually_booked_by_user_id":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Manually Booked By User Id"},"hidden_at":{"anyOf":[{"type":"string","format":"date-time"},{"type":"null"}],"title":"Hidden At"},"hidden_by_user_id":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Hidden By User Id"},"has_agent_booking":{"type":"boolean","title":"Has Agent Booking","default":false},"booking_status":{"$ref":"#/components/schemas/EngagementBookingStatus","default":"none"},"agent_v2_id":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Agent V2 Id"},"agent_v2_name":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Agent V2 Name"},"agent_v2_voice_enabled":{"anyOf":[{"type":"boolean"},{"type":"null"}],"title":"Agent V2 Voice Enabled"},"agent_roster_key":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Agent Roster Key"},"agent_variants":{"items":{"$ref":"#/components/schemas/AgentVariantRefPublic"},"type":"array","title":"Agent Variants","default":[]},"objective_state":{"anyOf":[{"additionalProperties":true,"type":"object"},{"type":"null"}],"title":"Objective State"},"override_agent_paused":{"type":"boolean","title":"Override Agent Paused","default":false},"turn_number":{"anyOf":[{"type":"integer"},{"type":"null"}],"title":"Turn Number"},"metadata":{"anyOf":[{"additionalProperties":true,"type":"object"},{"type":"null"}],"title":"Metadata"},"contact":{"anyOf":[{"$ref":"#/components/schemas/ContactBasicPublic"},{"type":"null"}]},"last_event":{"anyOf":[{"$ref":"#/components/schemas/TimelineEventPublic"},{"type":"null"}]},"escalation_status":{"$ref":"#/components/schemas/EngagementEscalationStatus"},"waiting_since":{"anyOf":[{"type":"string","format":"date-time"},{"type":"null"}],"title":"Waiting Since"},"escalation_reason":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Escalation Reason"},"escalation_summary":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Escalation Summary"},"escalation_id":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Escalation Id"},"ask_jenny_chat":{"anyOf":[{"$ref":"#/components/schemas/AskJennyChatReference"},{"type":"null"}]}},"type":"object","required":["engagement_id","created_at","status","type","is_ai_allowed_to_respond","organization_id","escalation_status"],"title":"ConversationListItemPublic"},"ConversationReviewPublic":{"properties":{"transcript":{"items":{"$ref":"#/components/schemas/TranscriptTurnPublic"},"type":"array","title":"Transcript","default":[]},"audio_url":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Audio Url"}},"type":"object","title":"ConversationReviewPublic"},"ConversationSearchPage":{"properties":{"items":{"items":{"$ref":"#/components/schemas/ConversationListItemPublic"},"type":"array","title":"Items"},"search_snippets":{"additionalProperties":{"$ref":"#/components/schemas/SearchSnippet"},"type":"object","title":"Search Snippets"},"search_match_kinds":{"additionalProperties":{"type":"string","enum":["identity","literal","semantic"]},"type":"object","title":"Search Match Kinds"},"total":{"anyOf":[{"type":"integer"},{"type":"null"}],"title":"Total"},"cursor":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Cursor"},"search_mode":{"type":"string","enum":["identity","hybrid"],"title":"Search Mode","default":"identity"},"semantic_available":{"type":"boolean","title":"Semantic Available","default":true},"limit_reached":{"type":"boolean","title":"Limit Reached","default":false}},"type":"object","required":["items"],"title":"ConversationSearchPage"},"CorrectionConfirmRequest":{"properties":{"revision":{"type":"string","minLength":1,"title":"Revision"},"generation":{"type":"string","minLength":1,"title":"Generation"},"correction_version":{"type":"integer","minimum":0.0,"title":"Correction Version"},"action":{"type":"string","enum":["correction","review_only"],"title":"Action"},"review_token":{"type":"string","maxLength":200,"minLength":20,"title":"Review Token"},"idempotency_key":{"type":"string","maxLength":128,"minLength":1,"title":"Idempotency Key"}},"additionalProperties":false,"type":"object","required":["revision","generation","correction_version","action","review_token","idempotency_key"],"title":"CorrectionConfirmRequest"},"CorrectionDraftSaveRequest":{"properties":{"revision":{"type":"string","minLength":1,"title":"Revision"},"generation":{"type":"string","minLength":1,"title":"Generation"},"correction_version":{"type":"integer","minimum":0.0,"title":"Correction Version"},"fields":{"$ref":"#/components/schemas/CorrectionPatch"}},"additionalProperties":false,"type":"object","required":["revision","generation","correction_version","fields"],"title":"CorrectionDraftSaveRequest"},"CorrectionPatch":{"properties":{"customer_care_email":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Customer Care Email"},"business_phone":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Business Phone"},"website":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Website"},"street":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Street"},"city":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"City"},"state":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"State"},"postal_code":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Postal Code"}},"additionalProperties":false,"type":"object","title":"CorrectionPatch"},"CorrectionProviderPublic":{"properties":{"provider":{"type":"string","title":"Provider"},"status":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Status"},"action":{"type":"string","title":"Action"},"capabilities":{"additionalProperties":{"type":"string"},"type":"object","title":"Capabilities"},"reasons":{"additionalProperties":{"type":"string"},"type":"object","title":"Reasons"},"carrier_values":{"anyOf":[{"$ref":"#/components/schemas/CorrectionValues"},{"type":"null"}]},"operations":{"items":{"type":"string"},"type":"array","title":"Operations"},"fee":{"type":"string","title":"Fee","default":"Unknown"}},"type":"object","required":["provider","action"],"title":"CorrectionProviderPublic"},"CorrectionReviewPublic":{"properties":{"revision":{"type":"string","minLength":1,"title":"Revision"},"generation":{"type":"string","minLength":1,"title":"Generation"},"correction_version":{"type":"integer","minimum":0.0,"title":"Correction Version"},"submit_label":{"type":"string","title":"Submit Label","default":"Resubmit registration"},"review_token":{"type":"string","title":"Review Token"},"expires_at":{"type":"string","format":"date-time","title":"Expires At"},"action":{"type":"string","enum":["correction","review_only"],"title":"Action"},"before":{"$ref":"#/components/schemas/CorrectionValues"},"after":{"$ref":"#/components/schemas/CorrectionValues"},"selected_number":{"type":"string","title":"Selected Number"},"selected_provider":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Selected Provider"},"providers":{"items":{"$ref":"#/components/schemas/CorrectionProviderPublic"},"type":"array","title":"Providers"}},"additionalProperties":false,"type":"object","required":["revision","generation","correction_version","review_token","expires_at","action","before","after","selected_number","providers"],"title":"CorrectionReviewPublic"},"CorrectionReviewRequest":{"properties":{"revision":{"type":"string","minLength":1,"title":"Revision"},"generation":{"type":"string","minLength":1,"title":"Generation"},"correction_version":{"type":"integer","minimum":0.0,"title":"Correction Version"},"action":{"type":"string","enum":["correction","review_only"],"title":"Action","default":"correction"},"drift_choices":{"additionalProperties":{"type":"string","enum":["carrier","proposed"]},"type":"object","title":"Drift Choices"}},"additionalProperties":false,"type":"object","required":["revision","generation","correction_version"],"title":"CorrectionReviewRequest"},"CorrectionStatePublic":{"properties":{"revision":{"type":"string","minLength":1,"title":"Revision"},"generation":{"type":"string","minLength":1,"title":"Generation"},"correction_version":{"type":"integer","minimum":0.0,"title":"Correction Version"},"submitted_at":{"anyOf":[{"type":"string","format":"date-time"},{"type":"null"}],"title":"Submitted At"},"allowed_fields":{"items":{"type":"string"},"type":"array","title":"Allowed Fields"},"can_review_only":{"type":"boolean","title":"Can Review Only","default":false},"intake_enabled":{"type":"boolean","title":"Intake Enabled","default":false},"reason":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Reason"},"accepted":{"$ref":"#/components/schemas/CorrectionValues"},"draft":{"anyOf":[{"$ref":"#/components/schemas/CorrectionValues"},{"type":"null"}]},"selected_number":{"type":"string","title":"Selected Number"},"selected_provider":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Selected Provider"},"active":{"type":"boolean","title":"Active","default":false},"confirmation_id":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Confirmation Id"},"providers":{"items":{"$ref":"#/components/schemas/CorrectionProviderPublic"},"type":"array","title":"Providers"}},"additionalProperties":false,"type":"object","required":["revision","generation","correction_version","accepted","selected_number"],"title":"CorrectionStatePublic"},"CorrectionValues":{"additionalProperties":{"anyOf":[{"type":"string"},{"type":"null"}]},"type":"object"},"CorrectionVersionRequest":{"properties":{"revision":{"type":"string","minLength":1,"title":"Revision"},"generation":{"type":"string","minLength":1,"title":"Generation"},"correction_version":{"type":"integer","minimum":0.0,"title":"Correction Version"}},"additionalProperties":false,"type":"object","required":["revision","generation","correction_version"],"title":"CorrectionVersionRequest"},"CreateAgentVariantBody":{"properties":{"agent_v2_id":{"type":"string","title":"Agent V2 Id"},"mlflow_persona_prompt":{"type":"string","title":"Mlflow Persona Prompt"},"model":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Model"},"voice_settings":{"anyOf":[{"$ref":"#/components/schemas/AgentVariantVoiceSettings"},{"type":"null"}]},"composition_instructions":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Composition Instructions"},"prompt_variables":{"anyOf":[{"items":{"additionalProperties":true,"type":"object"},"type":"array"},{"type":"null"}],"title":"Prompt Variables"},"system_prompt_components":{"anyOf":[{"items":{"$ref":"#/components/schemas/SystemPromptComponentReference"},"type":"array"},{"type":"null"}],"title":"System Prompt Components"},"roster_id":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Roster Id"},"description":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Description"},"objectives":{"items":{"$ref":"#/components/schemas/VariantObjectiveInput"},"type":"array","title":"Objectives","default":[]},"hooks":{"items":{"$ref":"#/components/schemas/VariantHookInput"},"type":"array","title":"Hooks","default":[]}},"type":"object","required":["agent_v2_id","mlflow_persona_prompt"],"title":"CreateAgentVariantBody"},"CreateAnnouncementRequest":{"properties":{"type":{"$ref":"#/components/schemas/AnnouncementType","default":"info"},"summary":{"type":"string","maxLength":280,"minLength":1,"title":"Summary"},"full_content":{"anyOf":[{"type":"string","maxLength":5000},{"type":"null"}],"title":"Full Content"},"is_dismissible":{"type":"boolean","title":"Is Dismissible","default":true},"expires_at":{"anyOf":[{"type":"string","format":"date-time"},{"type":"null"}],"title":"Expires At"},"is_active":{"type":"boolean","title":"Is Active","default":true}},"type":"object","required":["summary"],"title":"CreateAnnouncementRequest"},"CreateBillingAccountBody":{"properties":{"name":{"type":"string","title":"Name"},"organization_id":{"type":"string","title":"Organization Id"}},"type":"object","required":["name","organization_id"],"title":"CreateBillingAccountBody"},"CreateCampaignEngagementAttemptBatchRequest":{"properties":{"organization_id":{"type":"string","title":"Organization Id"},"agent_v2_id":{"type":"string","title":"Agent V2 Id"},"st_customer_ids":{"anyOf":[{"items":{"type":"integer"},"type":"array"},{"type":"null"}],"title":"St Customer Ids"},"contact_ids":{"anyOf":[{"items":{"type":"string"},"type":"array"},{"type":"null"}],"title":"Contact Ids"},"variables":{"anyOf":[{"additionalProperties":true,"type":"object"},{"type":"null"}],"title":"Variables"},"variables_override_by_customer_id":{"anyOf":[{"additionalProperties":{"additionalProperties":true,"type":"object"},"type":"object"},{"type":"null"}],"title":"Variables Override By Customer Id"},"st_location_id_by_customer_id":{"anyOf":[{"additionalProperties":{"type":"integer"},"type":"object"},{"type":"null"}],"title":"St Location Id By Customer Id"},"admin_opener_instruction":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Admin Opener Instruction"},"lead_id":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Lead Id"},"source":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Source"},"utm":{"anyOf":[{"additionalProperties":true,"type":"object"},{"type":"null"}],"title":"Utm"},"override_channel_id":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Override Channel Id"},"recent_contact_window_days":{"anyOf":[{"type":"number"},{"type":"null"}],"title":"Recent Contact Window Days"},"idempotency_key":{"type":"string","title":"Idempotency Key"},"runner_version":{"type":"string","title":"Runner Version","default":"v1"},"is_simulated":{"type":"boolean","title":"Is Simulated","default":false},"defer_initial_turn":{"type":"boolean","title":"Defer Initial Turn","default":false},"customer_initiated":{"type":"boolean","title":"Customer Initiated","default":false},"campaign_send_attempt_id":{"type":"string","title":"Campaign Send Attempt Id"}},"type":"object","required":["organization_id","agent_v2_id","idempotency_key","campaign_send_attempt_id"],"title":"CreateCampaignEngagementAttemptBatchRequest"},"CreateChannelRequest":{"properties":{"organization_id":{"type":"string","title":"Organization Id"},"channel_type":{"$ref":"#/components/schemas/ChannelType"},"phone_number":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Phone Number","description":"Provisioned sending phone number in E.164 format, e.g. +14155551234. Not required for google_lsa channels (their identity is the org's LSA account)."},"reference_id":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Reference Id","description":"Provider reference. For Twilio this is the subaccount SID; Telnyx ignores it."},"messaging_phone_number_id":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Messaging Phone Number Id","description":"Persisted eligible registered number to bind to a Twilio or Telnyx SMS channel."},"title":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Title","description":"Optional operator-facing label for the channel."}},"type":"object","required":["organization_id","channel_type"],"title":"CreateChannelRequest"},"CreateCheckoutSessionBody":{"properties":{"price_id":{"type":"string","title":"Price Id"},"success_url":{"type":"string","title":"Success Url"},"cancel_url":{"type":"string","title":"Cancel Url"},"organization_id":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Organization Id"},"trial_days":{"anyOf":[{"type":"integer"},{"type":"null"}],"title":"Trial Days"}},"type":"object","required":["price_id","success_url","cancel_url"],"title":"CreateCheckoutSessionBody"},"CreateChoiceList":{"properties":{"scope":{"type":"string","enum":["core","shop"],"title":"Scope"},"key":{"type":"string","maxLength":128,"minLength":1,"pattern":"^[a-z][a-z0-9_]*$","title":"Key"},"label":{"type":"string","maxLength":200,"minLength":1,"pattern":"^\\S(?:.*\\S)?$","title":"Label"},"shop_permissions":{"$ref":"#/components/schemas/ShopChoicePermissions"},"shared_vocabulary":{"type":"boolean","title":"Shared Vocabulary","default":false}},"additionalProperties":false,"type":"object","required":["scope","key","label"],"title":"CreateChoiceList"},"CreateDirectEngagementRequest":{"properties":{"organization_id":{"type":"string","title":"Organization Id"},"agent_v2_id":{"type":"string","title":"Agent V2 Id"},"phone_number":{"type":"string","title":"Phone Number"},"selected_contact_method_id":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Selected Contact Method Id"},"is_simulated":{"type":"boolean","title":"Is Simulated","default":false},"variables":{"anyOf":[{"additionalProperties":true,"type":"object"},{"type":"null"}],"title":"Variables"},"admin_opener_instruction":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Admin Opener Instruction"},"source":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Source"},"utm":{"anyOf":[{"additionalProperties":true,"type":"object"},{"type":"null"}],"title":"Utm"},"recent_contact_window_days":{"anyOf":[{"type":"number"},{"type":"null"}],"title":"Recent Contact Window Days"},"idempotency_key":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Idempotency Key"}},"type":"object","required":["organization_id","agent_v2_id","phone_number"],"title":"CreateDirectEngagementRequest"},"CreateDirectEngagementResponse":{"properties":{"batch_id":{"type":"string","title":"Batch Id"},"idempotency_key":{"type":"string","title":"Idempotency Key"},"organization_id":{"type":"string","title":"Organization Id"},"agent_v2_id":{"type":"string","title":"Agent V2 Id"},"contact_id":{"type":"string","title":"Contact Id"},"contact_method_id":{"type":"string","title":"Contact Method Id"},"status":{"type":"string","title":"Status"}},"type":"object","required":["batch_id","idempotency_key","organization_id","agent_v2_id","contact_id","contact_method_id","status"],"title":"CreateDirectEngagementResponse"},"CreateDocumentBody":{"properties":{"type":{"$ref":"#/components/schemas/DocumentType"},"title":{"type":"string","title":"Title"},"content":{"type":"string","title":"Content"},"category":{"anyOf":[{"$ref":"#/components/schemas/DocumentCategory"},{"type":"null"}]}},"type":"object","required":["type","title","content"],"title":"CreateDocumentBody"},"CreateEngagementAttemptBatchRequest":{"properties":{"organization_id":{"type":"string","title":"Organization Id"},"agent_v2_id":{"type":"string","title":"Agent V2 Id"},"st_customer_ids":{"anyOf":[{"items":{"type":"integer"},"type":"array"},{"type":"null"}],"title":"St Customer Ids"},"contact_ids":{"anyOf":[{"items":{"type":"string"},"type":"array"},{"type":"null"}],"title":"Contact Ids"},"variables":{"anyOf":[{"additionalProperties":true,"type":"object"},{"type":"null"}],"title":"Variables"},"variables_override_by_customer_id":{"anyOf":[{"additionalProperties":{"additionalProperties":true,"type":"object"},"type":"object"},{"type":"null"}],"title":"Variables Override By Customer Id"},"st_location_id_by_customer_id":{"anyOf":[{"additionalProperties":{"type":"integer"},"type":"object"},{"type":"null"}],"title":"St Location Id By Customer Id"},"admin_opener_instruction":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Admin Opener Instruction"},"lead_id":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Lead Id"},"source":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Source"},"utm":{"anyOf":[{"additionalProperties":true,"type":"object"},{"type":"null"}],"title":"Utm"},"override_channel_id":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Override Channel Id"},"recent_contact_window_days":{"anyOf":[{"type":"number"},{"type":"null"}],"title":"Recent Contact Window Days"},"idempotency_key":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Idempotency Key"},"runner_version":{"type":"string","title":"Runner Version","default":"v1"},"is_simulated":{"type":"boolean","title":"Is Simulated","default":false},"defer_initial_turn":{"type":"boolean","title":"Defer Initial Turn","default":false},"customer_initiated":{"type":"boolean","title":"Customer Initiated","default":false}},"type":"object","required":["organization_id","agent_v2_id"],"title":"CreateEngagementAttemptBatchRequest"},"CreateEngagementAttemptBatchResponse":{"properties":{"id":{"type":"string","title":"Id"},"organization_id":{"type":"string","title":"Organization Id"},"agent_v2_id":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Agent V2 Id"},"status":{"type":"string","title":"Status"},"expected_attempts":{"type":"integer","title":"Expected Attempts"}},"type":"object","required":["id","organization_id","status","expected_attempts"],"title":"CreateEngagementAttemptBatchResponse"},"CreateEscalationBody":{"properties":{"engagement_id":{"type":"string","title":"Engagement Id"},"reason":{"$ref":"#/components/schemas/SupportReason"},"note":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Note"}},"type":"object","required":["engagement_id","reason"],"title":"CreateEscalationBody"},"CreateEscalationGroupBody":{"properties":{"name":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Name"}},"type":"object","title":"CreateEscalationGroupBody"},"CreateEventBody":{"properties":{"action":{"anyOf":[{"$ref":"#/components/schemas/EventActionInput"},{"type":"null"}]},"interaction":{"anyOf":[{"$ref":"#/components/schemas/EventInteractionInput"},{"type":"null"}]}},"type":"object","title":"CreateEventBody"},"CreateEventFilterBody":{"properties":{"filter_type":{"type":"string","title":"Filter Type"},"params":{"additionalProperties":true,"type":"object","title":"Params"},"enabled":{"type":"boolean","title":"Enabled","default":true},"sort_order":{"type":"integer","title":"Sort Order","default":0},"label":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Label"}},"type":"object","required":["filter_type","params"],"title":"CreateEventFilterBody"},"CreateIncidentRequest":{"properties":{"title":{"type":"string","title":"Title"},"started_at":{"type":"string","format":"date-time","title":"Started At"},"error_pattern":{"type":"string","title":"Error Pattern","default":""},"engagement_id_sql":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Engagement Id Sql"},"description":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Description"},"tool_functions":{"anyOf":[{"items":{"type":"string"},"type":"array"},{"type":"null"}],"title":"Tool Functions"},"ended_at":{"anyOf":[{"type":"string","format":"date-time"},{"type":"null"}],"title":"Ended At"},"organization_id":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Organization Id"},"user_prompt":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"User Prompt"},"include_replied":{"type":"boolean","title":"Include Replied","default":false}},"type":"object","required":["title","started_at"],"title":"CreateIncidentRequest"},"CreateMemoryRequest":{"properties":{"content":{"type":"string","title":"Content","description":"The memory content to store"},"category":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Category","description":"Category label (e.g. scheduling_preference, org_policy)"},"level":{"type":"string","title":"Level","description":"Memory level: ORGANIZATION, ORGANIZATION_ASK_JENNY, USER, or CUSTOMER","default":"ORGANIZATION"},"scope_id":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Scope Id","description":"Contact ID for CUSTOMER level, User ID for USER level, Organization ID for ORGANIZATION / ORGANIZATION_ASK_JENNY levels"},"organization_id":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Organization Id","description":"Organization ID for non-GLOBAL memories"}},"type":"object","required":["content"],"title":"CreateMemoryRequest"},"CreateOrganizationRequest":{"properties":{"name":{"type":"string","title":"Name"},"alias":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Alias"},"parent_organization_id":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Parent Organization Id"},"parent_link_reason":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Parent Link Reason"}},"type":"object","required":["name"],"title":"CreateOrganizationRequest"},"CreatePortalSessionBody":{"properties":{"return_url":{"type":"string","title":"Return Url"},"organization_id":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Organization Id"}},"type":"object","required":["return_url"],"title":"CreatePortalSessionBody"},"CreatePropertyRequest":{"properties":{"name":{"type":"string","minLength":1,"pattern":"^[a-z][a-z0-9_]*$","title":"Name"},"label":{"type":"string","minLength":1,"title":"Label"},"field_type":{"type":"string","title":"Field Type","default":"select"},"group_name":{"type":"string","title":"Group Name","default":"companyinformation"},"description":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Description"},"options":{"anyOf":[{"items":{"$ref":"#/components/schemas/PropertyOption"},"type":"array"},{"type":"null"}],"title":"Options"}},"type":"object","required":["name","label"],"title":"CreatePropertyRequest"},"CreateRegionRequest":{"properties":{"organization_id":{"type":"string","title":"Organization Id"},"name":{"type":"string","title":"Name"},"zip_codes":{"items":{"type":"string"},"type":"array","title":"Zip Codes","default":[]}},"type":"object","required":["organization_id","name"],"title":"CreateRegionRequest"},"CreateSessionBody":{"properties":{"agent_id":{"type":"string","title":"Agent Id"}},"type":"object","required":["agent_id"],"title":"CreateSessionBody"},"CreateShortLinkRequest":{"properties":{"destination_url":{"type":"string","title":"Destination Url","description":"The long URL to be shortened"},"short_code":{"anyOf":[{"type":"string","maxLength":16,"minLength":1,"pattern":"^[a-zA-Z0-9]+$"},{"type":"null"}],"title":"Short Code","description":"Optional custom short code"},"organization_id":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Organization Id","description":"Optional organization ID"},"engagement_id":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Engagement Id","description":"Optional engagement ID"},"metadata_json":{"anyOf":[{"additionalProperties":true,"type":"object"},{"type":"null"}],"title":"Metadata Json","description":"Optional metadata"}},"type":"object","required":["destination_url"],"title":"CreateShortLinkRequest"},"CreateSimulationBody":{"properties":{"agent_id":{"type":"string","title":"Agent Id"},"contact_id":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Contact Id"},"campaign_id":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Campaign Id"},"targeting_rules":{"anyOf":[{"items":{"additionalProperties":true,"type":"object"},"type":"array"},{"type":"null"}],"title":"Targeting Rules"},"synthetic_lead":{"type":"boolean","title":"Synthetic Lead","default":false},"lead_intake":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Lead Intake"},"lead_source":{"type":"string","title":"Lead Source","default":"web_form"},"lead_name":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Lead Name"},"model":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Model"},"variables":{"anyOf":[{"additionalProperties":true,"type":"object"},{"type":"null"}],"title":"Variables"},"version_overrides":{"anyOf":[{"additionalProperties":true,"type":"object"},{"type":"null"}],"title":"Version Overrides"},"include_engagement_history":{"type":"boolean","title":"Include Engagement History","default":true},"source_engagement_id":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Source Engagement Id"},"variant_id":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Variant Id"}},"type":"object","required":["agent_id"],"title":"CreateSimulationBody"},"CreateSimulationRequest":{"properties":{"organization_id":{"type":"string","title":"Organization Id"},"agent_id":{"type":"string","title":"Agent Id"},"contact_id":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Contact Id"},"campaign_id":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Campaign Id"},"targeting_rules":{"anyOf":[{"items":{"additionalProperties":true,"type":"object"},"type":"array"},{"type":"null"}],"title":"Targeting Rules"},"synthetic_lead":{"type":"boolean","title":"Synthetic Lead","default":false},"lead_intake":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Lead Intake"},"lead_source":{"type":"string","title":"Lead Source","default":"web_form"},"lead_name":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Lead Name"},"model":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Model"},"variables":{"anyOf":[{"additionalProperties":true,"type":"object"},{"type":"null"}],"title":"Variables"},"runner_version":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Runner Version"},"include_engagement_history":{"type":"boolean","title":"Include Engagement History","default":true},"variant_id":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Variant Id"},"opener":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Opener"},"contact_method_id":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Contact Method Id"}},"type":"object","required":["organization_id","agent_id"],"title":"CreateSimulationRequest"},"CreateStopRequestBody":{"properties":{"scope":{"$ref":"#/components/schemas/StopScope"},"contact_method_id":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Contact Method Id"},"campaign_id":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Campaign Id"},"maintenance_type_id":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Maintenance Type Id"},"reason":{"$ref":"#/components/schemas/StopRequestReason"},"customer_statement":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Customer Statement"},"expires_at":{"anyOf":[{"type":"string","format":"date-time"},{"type":"null"}],"title":"Expires At"},"source_engagement_id":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Source Engagement Id"}},"type":"object","required":["scope","reason"],"title":"CreateStopRequestBody"},"CreateToolModuleWithInterchangeBody":{"properties":{"title":{"type":"string","title":"Title"},"description":{"type":"string","title":"Description"},"function":{"type":"string","title":"Function"},"read_only":{"type":"boolean","title":"Read Only","default":false}},"type":"object","required":["title","description","function"],"title":"CreateToolModuleWithInterchangeBody"},"CreateUploadUrlRequest":{"properties":{"content_type":{"type":"string","title":"Content Type"}},"type":"object","required":["content_type"],"title":"CreateUploadUrlRequest"},"CreateUploadUrlResponse":{"properties":{"url":{"type":"string","title":"Url"}},"type":"object","required":["url"],"title":"CreateUploadUrlResponse"},"CreateUserRequest":{"properties":{"email":{"type":"string","title":"Email"},"first_name":{"type":"string","title":"First Name"},"last_name":{"type":"string","title":"Last Name"},"phone_number":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Phone Number"},"organization_id":{"type":"string","title":"Organization Id"},"role_id":{"type":"string","title":"Role Id"},"skip_seat_check":{"type":"boolean","title":"Skip Seat Check","default":false},"send_to_setup":{"type":"boolean","title":"Send To Setup","default":false},"send_to_opportunities":{"type":"boolean","title":"Send To Opportunities","default":false}},"type":"object","required":["email","first_name","last_name","organization_id","role_id"],"title":"CreateUserRequest"},"CsrAddressCollectionConfig":{"properties":{"question":{"type":"string","minLength":1,"title":"Question"},"known_location_question":{"anyOf":[{"type":"string","minLength":1},{"type":"null"}],"title":"Known Location Question"},"confirmation":{"type":"string","minLength":1,"title":"Confirmation"},"required_components":{"items":{"type":"string","enum":["street","unit","city","state","postal_code","country"]},"type":"array","title":"Required Components"}},"additionalProperties":false,"type":"object","required":["question","confirmation","required_components"],"title":"CsrAddressCollectionConfig"},"CsrCallbackConfig":{"properties":{"confirm_inbound_number":{"type":"boolean","title":"Confirm Inbound Number"},"allow_alternate":{"type":"boolean","title":"Allow Alternate"}},"additionalProperties":false,"type":"object","required":["confirm_inbound_number","allow_alternate"],"title":"CsrCallbackConfig"},"CsrClosingConfig":{"properties":{"additional_help_question":{"type":"string","minLength":1,"title":"Additional Help Question"},"farewell":{"type":"string","minLength":1,"title":"Farewell"},"spanish_farewell":{"anyOf":[{"type":"string","minLength":1},{"type":"null"}],"title":"Spanish Farewell"}},"additionalProperties":false,"type":"object","required":["additional_help_question","farewell"],"title":"CsrClosingConfig"},"CsrConcernPolicy":{"properties":{"intents":{"items":{"type":"string","enum":["complaint","billing","existing_status"]},"type":"array","maxItems":3,"minItems":1,"title":"Intents","default":["complaint"]},"opening":{"type":"string","const":"thank_empathize_then_question","title":"Opening","default":"thank_empathize_then_question"},"intake_rule_keys":{"items":{"type":"string","pattern":"^[a-z][a-z0-9_]{0,63}$"},"type":"array","maxItems":60,"minItems":1,"title":"Intake Rule Keys"},"summary_components":{"items":{"type":"string","enum":["issue","impact","invoice_reference","technician","disputed_pricing","prior_attempts","requested_resolution"]},"type":"array","maxItems":7,"minItems":1,"title":"Summary Components"},"owner_key":{"type":"string","pattern":"^[a-z][a-z0-9_]{0,63}$","title":"Owner Key"},"reflect_back":{"type":"boolean","title":"Reflect Back","default":true}},"additionalProperties":false,"type":"object","required":["intake_rule_keys","summary_components","owner_key"],"title":"CsrConcernPolicy"},"CsrContactTarget":{"properties":{"kind":{"type":"string","const":"contact","title":"Kind"},"key":{"type":"string","enum":["name","callback","email","service_address","service_address_unit"],"title":"Key"}},"additionalProperties":false,"type":"object","required":["kind","key"],"title":"CsrContactTarget"},"CsrContinueBookingAction":{"properties":{"kind":{"type":"string","const":"continue_booking","title":"Kind"}},"additionalProperties":false,"type":"object","required":["kind"],"title":"CsrContinueBookingAction"},"CsrConversationPolicy":{"properties":{"voice":{"type":"string","const":"first_party_team","title":"Voice","default":"first_party_team"},"empathy":{"type":"string","enum":["situational_once","brief_neutral"],"title":"Empathy","default":"situational_once"},"pronunciations":{"items":{"$ref":"#/components/schemas/CsrPronunciation"},"type":"array","maxItems":30,"title":"Pronunciations","default":[]},"localized_content":{"items":{"$ref":"#/components/schemas/CsrLocalizedOverride"},"type":"array","maxItems":300,"title":"Localized Content","default":[]}},"additionalProperties":false,"type":"object","title":"CsrConversationPolicy"},"CsrDisclosureConfig":{"properties":{"recording":{"anyOf":[{"type":"string","minLength":1},{"type":"null"}],"title":"Recording"}},"additionalProperties":false,"type":"object","title":"CsrDisclosureConfig"},"CsrDisclosureEntry":{"properties":{"key":{"type":"string","pattern":"^[a-z][a-z0-9_]{0,63}$","title":"Key"},"when":{"$ref":"#/components/schemas/CsrRuleMatch"},"phase":{"type":"string","enum":["after_request_update","after_intake","before_availability","after_booking","before_close"],"title":"Phase"},"statements":{"items":{"$ref":"#/components/schemas/LocalizedText"},"type":"array","maxItems":5,"minItems":1,"title":"Statements"},"delivery":{"type":"string","enum":["required","when_relevant"],"title":"Delivery","default":"required"},"acknowledgment":{"type":"string","enum":["none","ask_once"],"title":"Acknowledgment","default":"none"},"question":{"anyOf":[{"$ref":"#/components/schemas/LocalizedText"},{"type":"null"}]}},"additionalProperties":false,"type":"object","required":["key","when","phase","statements"],"title":"CsrDisclosureEntry"},"CsrDisclosurePlan":{"properties":{"entries":{"items":{"$ref":"#/components/schemas/CsrDisclosureEntry"},"type":"array","maxItems":30,"minItems":1,"title":"Entries"}},"additionalProperties":false,"type":"object","required":["entries"],"title":"CsrDisclosurePlan"},"CsrDocumentFeePolicy":{"properties":{"document_titles":{"items":{"type":"string"},"type":"array","maxItems":5,"minItems":1,"title":"Document Titles"},"disclosure_phase":{"type":"string","enum":["before_availability","before_booking","after_booking"],"title":"Disclosure Phase","default":"before_booking"},"requires_acceptance":{"type":"boolean","title":"Requires Acceptance","default":false},"membership_pricing":{"type":"boolean","title":"Membership Pricing","default":false},"unverified_membership":{"type":"string","enum":["staff_review","nonmember_fee"],"title":"Unverified Membership","default":"staff_review"},"record_unverified_membership_claim":{"type":"boolean","title":"Record Unverified Membership Claim","default":false}},"additionalProperties":false,"type":"object","required":["document_titles"],"title":"CsrDocumentFeePolicy"},"CsrEligibilityRule":{"properties":{"key":{"type":"string","pattern":"^[a-z][a-z0-9_]{0,63}$","title":"Key"},"when":{"$ref":"#/components/schemas/CsrRuleMatch"},"outcome":{"type":"string","enum":["not_eligible","staff_review"],"title":"Outcome"},"explanation":{"type":"string","maxLength":1000,"minLength":1,"title":"Explanation"}},"additionalProperties":false,"type":"object","required":["key","when","outcome","explanation"],"title":"CsrEligibilityRule"},"CsrEmailCollectionConfig":{"properties":{"action":{"type":"string","enum":["skip","collect_only","save_confirmed"],"title":"Action"},"question":{"type":"string","minLength":1,"title":"Question"},"known_email_question":{"anyOf":[{"type":"string","minLength":1},{"type":"null"}],"title":"Known Email Question"},"confirmation":{"type":"string","minLength":1,"title":"Confirmation"},"required_before_booking":{"anyOf":[{"type":"boolean"},{"type":"null"}],"title":"Required Before Booking"}},"additionalProperties":false,"type":"object","required":["action","question","confirmation"],"title":"CsrEmailCollectionConfig"},"CsrEmergencyBookingPolicy":{"properties":{"criteria":{"items":{"$ref":"#/components/schemas/CsrPriorityCriterion"},"type":"array","maxItems":100,"title":"Criteria"}},"additionalProperties":false,"type":"object","required":["criteria"],"title":"CsrEmergencyBookingPolicy"},"CsrEmergencyFollowUpFailurePolicy":{"properties":{"rejected":{"$ref":"#/components/schemas/LocalizedText"},"acceptance_unknown":{"$ref":"#/components/schemas/LocalizedText"},"immediate_danger_reminder":{"$ref":"#/components/schemas/LocalizedText"},"applies_when":{"items":{"$ref":"#/components/schemas/CsrRuleMatch"},"type":"array","maxItems":60,"title":"Applies When","default":[]}},"additionalProperties":false,"type":"object","required":["rejected","acceptance_unknown","immediate_danger_reminder"],"title":"CsrEmergencyFollowUpFailurePolicy"},"CsrEvaluationDefinition":{"properties":{"definition_id":{"type":"string","title":"Definition Id"},"key":{"type":"string","title":"Key"},"label":{"type":"string","title":"Label"},"value_type":{"type":"string","enum":["boolean","string","integer","float"],"title":"Value Type"},"allowed_values":{"anyOf":[{"items":{},"type":"array"},{"type":"null"}],"title":"Allowed Values"},"success_values":{"anyOf":[{"items":{},"type":"array"},{"type":"null"}],"title":"Success Values"},"items":{"items":{"$ref":"#/components/schemas/CsrEvaluationResult"},"type":"array","title":"Items"}},"type":"object","required":["definition_id","key","label","value_type","allowed_values","success_values","items"],"title":"CsrEvaluationDefinition"},"CsrEvaluationNumericSummary":{"properties":{"value_count":{"type":"integer","title":"Value Count"},"sum":{"anyOf":[{"type":"string","pattern":"^(?!^[-+.]*$)[+-]?0*\\d*\\.?\\d*$"},{"type":"null"}],"title":"Sum"},"minimum":{"anyOf":[{"type":"string","pattern":"^(?!^[-+.]*$)[+-]?0*\\d*\\.?\\d*$"},{"type":"null"}],"title":"Minimum"},"maximum":{"anyOf":[{"type":"string","pattern":"^(?!^[-+.]*$)[+-]?0*\\d*\\.?\\d*$"},{"type":"null"}],"title":"Maximum"}},"type":"object","required":["value_count","sum","minimum","maximum"],"title":"CsrEvaluationNumericSummary"},"CsrEvaluationResult":{"properties":{"csr_id":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Csr Id"},"evaluated_calls":{"type":"integer","title":"Evaluated Calls"},"overridden_calls":{"type":"integer","title":"Overridden Calls"},"success_calls":{"anyOf":[{"type":"integer"},{"type":"null"}],"title":"Success Calls"},"value_counts":{"anyOf":[{"items":{"$ref":"#/components/schemas/CsrEvaluationValueCount"},"type":"array"},{"type":"null"}],"title":"Value Counts"},"numeric_summary":{"anyOf":[{"$ref":"#/components/schemas/CsrEvaluationNumericSummary"},{"type":"null"}]}},"type":"object","required":["csr_id","evaluated_calls","overridden_calls","success_calls","value_counts","numeric_summary"],"title":"CsrEvaluationResult"},"CsrEvaluationValueCount":{"properties":{"value":{"title":"Value"},"count":{"type":"integer","title":"Count"}},"type":"object","required":["value","count"],"title":"CsrEvaluationValueCount"},"CsrEvaluationsResponse":{"properties":{"started_at":{"type":"string","format":"date-time","title":"Started At"},"ended_at":{"type":"string","format":"date-time","title":"Ended At"},"direction":{"$ref":"#/components/schemas/CallAnalysisDirection"},"definitions":{"items":{"$ref":"#/components/schemas/CsrEvaluationDefinition"},"type":"array","title":"Definitions"}},"type":"object","required":["started_at","ended_at","direction","definitions"],"title":"CsrEvaluationsResponse"},"CsrExistingAppointmentsConfig":{"properties":{"status_lookup":{"type":"boolean","title":"Status Lookup","default":false},"reschedule":{"type":"string","enum":["disabled","offer_staff_follow_up","enabled"],"title":"Reschedule","default":"disabled"},"reschedule_job_type_ids":{"anyOf":[{"items":{"type":"integer","exclusiveMinimum":0.0},"type":"array","maxItems":1000},{"type":"null"}],"title":"Reschedule Job Type Ids","description":"Only these job types may be rescheduled directly; other or unknown types require staff. Omit to allow all eligible types."},"cancel":{"type":"string","enum":["disabled","offer_staff_follow_up"],"title":"Cancel","default":"disabled"},"confirm":{"type":"string","enum":["disabled","offer_staff_follow_up","direct"],"title":"Confirm","default":"disabled"}},"additionalProperties":false,"type":"object","title":"CsrExistingAppointmentsConfig"},"CsrFeeConfig":{"properties":{"amount_minor":{"type":"integer","minimum":0.0,"title":"Amount Minor"},"currency":{"type":"string","enum":["USD","CAD"],"title":"Currency"},"taxable":{"type":"boolean","title":"Taxable"},"applicability":{"type":"string","enum":["all_calls","non_members","selected_services"],"title":"Applicability"},"disclosure":{"type":"string","minLength":1,"title":"Disclosure"},"requires_acceptance":{"type":"boolean","title":"Requires Acceptance","default":false},"disclosure_phase":{"anyOf":[{"type":"string","enum":["before_booking","after_booking"]},{"type":"null"}],"title":"Disclosure Phase"},"label":{"type":"string","maxLength":60,"minLength":1,"title":"Label","default":"visit fee"},"rationale":{"anyOf":[{"type":"string","maxLength":1000},{"type":"null"}],"title":"Rationale"}},"additionalProperties":false,"type":"object","required":["amount_minor","currency","taxable","applicability","disclosure"],"title":"CsrFeeConfig"},"CsrFeeCredit":{"properties":{"kind":{"type":"string","enum":["waived_if_work_proceeds","credited_toward_work"],"title":"Kind"},"component_keys":{"items":{"type":"string","pattern":"^[a-z][a-z0-9_]{0,63}$"},"type":"array","maxItems":5,"minItems":1,"title":"Component Keys"},"scope":{"type":"string","enum":["same_visit_approved_work","approved_work"],"title":"Scope"}},"additionalProperties":false,"type":"object","required":["kind","component_keys","scope"],"title":"CsrFeeCredit"},"CsrFieldTarget":{"properties":{"kind":{"type":"string","const":"field","title":"Kind"},"key":{"type":"string","pattern":"^[a-z][a-z0-9_]{0,63}$","title":"Key"}},"additionalProperties":false,"type":"object","required":["kind","key"],"title":"CsrFieldTarget"},"CsrFollowUpAction":{"properties":{"kind":{"type":"string","const":"follow_up","title":"Kind"},"owner_key":{"type":"string","pattern":"^[a-z][a-z0-9_]{0,63}$","title":"Owner Key"},"urgency":{"type":"string","enum":["routine","urgent","emergency"],"title":"Urgency"}},"additionalProperties":false,"type":"object","required":["kind","owner_key","urgency"],"title":"CsrFollowUpAction"},"CsrFollowUpExpectation":{"properties":{"kind":{"type":"string","enum":["within_business_days","next_business_day","as_available"],"title":"Kind"},"business_days":{"anyOf":[{"type":"integer","maximum":5.0,"minimum":1.0},{"type":"null"}],"title":"Business Days"},"commitment":{"type":"string","const":"approved_client_commitment","title":"Commitment"}},"additionalProperties":false,"type":"object","required":["kind","commitment"],"title":"CsrFollowUpExpectation"},"CsrFollowUpOwner":{"properties":{"key":{"type":"string","pattern":"^[a-z][a-z0-9_]{0,63}$","title":"Key"},"label":{"type":"string","maxLength":1000,"minLength":1,"title":"Label"},"expectation":{"anyOf":[{"$ref":"#/components/schemas/CsrFollowUpExpectation"},{"type":"null"}]}},"additionalProperties":false,"type":"object","required":["key","label"],"title":"CsrFollowUpOwner"},"CsrFollowUpSubmissionPolicy":{"properties":{"mode":{"type":"string","const":"exact_later_turn_v1","title":"Mode"},"include_emergency":{"type":"boolean","title":"Include Emergency","default":false},"emergency_failure":{"anyOf":[{"$ref":"#/components/schemas/CsrEmergencyFollowUpFailurePolicy"},{"type":"null"}]}},"additionalProperties":false,"type":"object","required":["mode"],"title":"CsrFollowUpSubmissionPolicy"},"CsrHighValueBookingPolicy":{"properties":{"demand_calls":{"type":"string","enum":["disabled","any_demand_call_v1"],"title":"Demand Calls","default":"disabled"},"criteria":{"items":{"$ref":"#/components/schemas/CsrPriorityCriterion"},"type":"array","maxItems":100,"title":"Criteria"}},"additionalProperties":false,"type":"object","required":["criteria"],"title":"CsrHighValueBookingPolicy","description":"How an entitled organization decides a job is worth overbooking a full day for.\n\nExactly one of the two routes qualifies a job. ``criteria`` narrows deterministically from\nrecorded intake answers, so the runtime decides and the model cannot widen it.\n``any_demand_call_v1`` hands that judgment to the model instead: every caller with a problem\nright now qualifies, which no condition over declared intake fields can express. Mixing them\nwould leave both the prompt and the booking evidence without a single rule to state."},"CsrHumanRequestPolicy":{"properties":{"intake":{"type":"string","enum":["bypass_nonessential","configured_required"],"title":"Intake"},"pushback_transfer_request":{"type":"boolean","title":"Pushback Transfer Request","description":"Offer to help with booking before routing the caller's first request for a person.","default":true},"routing_question_limit":{"type":"integer","maximum":1.0,"minimum":0.0,"title":"Routing Question Limit","default":0},"unknown_intent_destination":{"anyOf":[{"type":"string","maxLength":100,"minLength":1},{"type":"null"}],"title":"Unknown Intent Destination"},"unknown_intent_action":{"type":"string","enum":["transfer_when_open_else_follow_up","follow_up"],"title":"Unknown Intent Action"},"follow_up_owner":{"type":"string","pattern":"^[a-z][a-z0-9_]{0,63}$","title":"Follow Up Owner"},"transfer_follow_up_urgency":{"type":"string","enum":["routine","urgent","emergency"],"title":"Transfer Follow Up Urgency","default":"routine"}},"additionalProperties":false,"type":"object","required":["intake","unknown_intent_action","follow_up_owner"],"title":"CsrHumanRequestPolicy"},"CsrInformationPolicy":{"properties":{"topics":{"items":{"$ref":"#/components/schemas/CsrInformationTopic"},"type":"array","maxItems":50,"minItems":1,"title":"Topics"}},"additionalProperties":false,"type":"object","required":["topics"],"title":"CsrInformationPolicy"},"CsrInformationTopic":{"properties":{"key":{"type":"string","pattern":"^[a-z][a-z0-9_]{0,63}$","title":"Key"},"topic":{"type":"string","enum":["company","service_process","repair_pricing","financing_availability","payment_methods","legacy_brand","maintenance_guidance","membership_benefits","referral","other_approved_fact"],"title":"Topic"},"question_examples":{"items":{"type":"string","maxLength":300,"minLength":1},"type":"array","maxItems":5,"minItems":1,"title":"Question Examples"},"when":{"$ref":"#/components/schemas/CsrRuleMatch"},"answer":{"$ref":"#/components/schemas/LocalizedText"},"scope":{"type":"string","enum":["factual_only","observation_only"],"title":"Scope","default":"factual_only"},"on_unresolved":{"type":"string","enum":["offer_follow_up","explain_limit"],"title":"On Unresolved","default":"offer_follow_up"},"membership_lookup":{"anyOf":[{"type":"string","const":"before_answer"},{"type":"null"}],"title":"Membership Lookup"}},"additionalProperties":false,"type":"object","required":["key","topic","question_examples","when","answer"],"title":"CsrInformationTopic"},"CsrIntakeConfig":{"properties":{"warranty_source_scheduling":{"type":"boolean","title":"Warranty Source Scheduling","default":false},"request_intake":{"anyOf":[{"$ref":"#/components/schemas/CsrRequestIntakePolicy"},{"type":"null"}]},"ask_timing_preference":{"type":"boolean","title":"Ask Timing Preference"},"required_service_details":{"items":{"type":"string"},"type":"array","title":"Required Service Details","default":[]},"new_booking_qualification":{"anyOf":[{"$ref":"#/components/schemas/CsrNewBookingQualificationConfig"},{"type":"null"}]}},"additionalProperties":false,"type":"object","required":["ask_timing_preference"],"title":"CsrIntakeConfig"},"CsrIntakeFeeCategory":{"properties":{"category_key":{"type":"string","pattern":"^[a-z][a-z0-9_]{0,63}$","title":"Category Key"},"one_of":{"items":{"type":"string"},"type":"array","maxItems":20,"minItems":1,"title":"One Of"}},"additionalProperties":false,"type":"object","required":["category_key","one_of"],"title":"CsrIntakeFeeCategory"},"CsrIntakeFeePolicy":{"properties":{"field_key":{"type":"string","pattern":"^[a-z][a-z0-9_]{0,63}$","title":"Field Key"},"categories":{"items":{"$ref":"#/components/schemas/CsrIntakeFeeCategory"},"type":"array","maxItems":20,"minItems":1,"title":"Categories"},"rules":{"items":{"$ref":"#/components/schemas/CsrIntakeFeeRule"},"type":"array","maxItems":120,"minItems":1,"title":"Rules"},"unmatched":{"type":"string","const":"unresolved","title":"Unmatched","default":"unresolved"}},"additionalProperties":false,"type":"object","required":["field_key","categories","rules"],"title":"CsrIntakeFeePolicy"},"CsrIntakeFeeRule":{"properties":{"rule_key":{"type":"string","maxLength":80,"minLength":1,"pattern":"^[a-z][a-z0-9_]*$","title":"Rule Key"},"job_type_ids":{"items":{"type":"integer"},"type":"array","maxItems":100,"minItems":1,"title":"Job Type Ids"},"outcome":{"type":"string","enum":["fixed_fee","no_visit_fee"],"title":"Outcome"},"fee":{"anyOf":[{"$ref":"#/components/schemas/CsrFeeConfig"},{"type":"null"}]},"category_key":{"type":"string","pattern":"^[a-z][a-z0-9_]{0,63}$","title":"Category Key"}},"additionalProperties":false,"type":"object","required":["rule_key","job_type_ids","outcome","category_key"],"title":"CsrIntakeFeeRule"},"CsrIntakeField":{"properties":{"key":{"type":"string","pattern":"^[a-z][a-z0-9_]{0,63}$","title":"Key"},"kind":{"type":"string","enum":["enum","text","integer"],"title":"Kind"},"question":{"type":"string","maxLength":300,"minLength":1,"title":"Question"},"answer_source":{"anyOf":[{"type":"string","const":"caller_request_if_sufficient_v1"},{"type":"null"}],"title":"Answer Source"},"choices":{"items":{"type":"string"},"type":"array","maxItems":20,"title":"Choices","default":[]},"max_length":{"type":"integer","maximum":1000.0,"minimum":1.0,"title":"Max Length","default":500},"minimum":{"anyOf":[{"type":"integer"},{"type":"null"}],"title":"Minimum"},"maximum":{"anyOf":[{"type":"integer"},{"type":"null"}],"title":"Maximum"}},"additionalProperties":false,"type":"object","required":["key","kind","question"],"title":"CsrIntakeField"},"CsrIntakeItem":{"properties":{"target":{"oneOf":[{"$ref":"#/components/schemas/CsrFieldTarget"},{"$ref":"#/components/schemas/CsrContactTarget"}],"title":"Target","discriminator":{"propertyName":"kind","mapping":{"contact":"#/components/schemas/CsrContactTarget","field":"#/components/schemas/CsrFieldTarget"}}},"requirement":{"type":"string","enum":["required","optional"],"title":"Requirement"},"ask":{"type":"string","enum":["if_missing","once_even_if_volunteered"],"title":"Ask","default":"if_missing"},"confirmation":{"type":"string","enum":["reuse_existing","confirm_once"],"title":"Confirmation","default":"reuse_existing"}},"additionalProperties":false,"type":"object","required":["target","requirement"],"title":"CsrIntakeItem"},"CsrIntakeRule":{"properties":{"key":{"type":"string","pattern":"^[a-z][a-z0-9_]{0,63}$","title":"Key"},"when":{"$ref":"#/components/schemas/CsrRuleMatch"},"stage":{"type":"string","enum":["before_information","before_route","before_follow_up","before_availability","before_booking","after_booking"],"title":"Stage"},"information_topic_keys":{"items":{"type":"string","pattern":"^[a-z][a-z0-9_]{0,63}$"},"type":"array","maxItems":40,"title":"Information Topic Keys","default":[]},"quote_topics":{"items":{"type":"string","enum":["visit_fee","filter_change_fee","cancellation_fee"]},"type":"array","title":"Quote Topics","default":[]},"items":{"items":{"$ref":"#/components/schemas/CsrIntakeItem"},"type":"array","maxItems":20,"minItems":1,"title":"Items"},"optional_question_limit":{"type":"integer","maximum":10.0,"minimum":0.0,"title":"Optional Question Limit","default":4},"on_required_refusal":{"type":"string","enum":["stop_action_offer_staff","stop_action_explain"],"title":"On Required Refusal","default":"stop_action_offer_staff"}},"additionalProperties":false,"type":"object","required":["key","when","stage","items"],"title":"CsrIntakeRule"},"CsrLocalizedOverride":{"properties":{"target":{"oneOf":[{"$ref":"#/components/schemas/LegacyPhraseTarget"},{"$ref":"#/components/schemas/IntakeQuestionTarget"},{"$ref":"#/components/schemas/EnumChoiceTarget"},{"$ref":"#/components/schemas/CategoryLabelTarget"},{"$ref":"#/components/schemas/PriceComponentLabelTarget"},{"$ref":"#/components/schemas/EligibilityExplanationTarget"},{"$ref":"#/components/schemas/OwnerLabelTarget"},{"$ref":"#/components/schemas/TimingQuestionTarget"}],"title":"Target","discriminator":{"propertyName":"kind","mapping":{"category_label":"#/components/schemas/CategoryLabelTarget","eligibility_explanation":"#/components/schemas/EligibilityExplanationTarget","enum_choice":"#/components/schemas/EnumChoiceTarget","intake_question":"#/components/schemas/IntakeQuestionTarget","legacy_phrase":"#/components/schemas/LegacyPhraseTarget","owner_label":"#/components/schemas/OwnerLabelTarget","price_component_label":"#/components/schemas/PriceComponentLabelTarget","timing_question":"#/components/schemas/TimingQuestionTarget"}}},"text":{"$ref":"#/components/schemas/LocalizedText"}},"additionalProperties":false,"type":"object","required":["target","text"],"title":"CsrLocalizedOverride"},"CsrMembershipAuthority":{"properties":{"qualification":{"type":"string","const":"any_active_customer_membership","title":"Qualification"},"member_field":{"type":"string","pattern":"^[a-z][a-z0-9_]{0,63}$","title":"Member Field"},"member_value":{"type":"string","pattern":"^[a-z][a-z0-9_]{0,63}$","title":"Member Value"},"nonmember_value":{"type":"string","pattern":"^[a-z][a-z0-9_]{0,63}$","title":"Nonmember Value"},"unresolved_existing":{"type":"string","const":"ask_membership","title":"Unresolved Existing","default":"ask_membership"},"unknown_answer":{"type":"string","enum":["unresolved","nonmember_rate"],"title":"Unknown Answer","default":"unresolved"},"caller_member_overrides_nonmember":{"type":"boolean","title":"Caller Member Overrides Nonmember","default":false},"unsure_values":{"items":{"type":"string","pattern":"^[a-z][a-z0-9_]{0,63}$"},"type":"array","maxItems":10,"title":"Unsure Values","default":[]},"unresolved_lookup_without_claim":{"type":"string","enum":["unresolved","nonmember_rate"],"title":"Unresolved Lookup Without Claim","default":"unresolved"}},"additionalProperties":false,"type":"object","required":["qualification","member_field","member_value","nonmember_value"],"title":"CsrMembershipAuthority"},"CsrMembershipConfig":{"properties":{"lookup":{"type":"boolean","title":"Lookup"},"disclosure":{"anyOf":[{"type":"string","minLength":1},{"type":"null"}],"title":"Disclosure"},"offer":{"anyOf":[{"type":"string","minLength":1},{"type":"null"}],"title":"Offer"},"decline_limit":{"type":"integer","maximum":3.0,"minimum":1.0,"title":"Decline Limit","default":1}},"additionalProperties":false,"type":"object","required":["lookup"],"title":"CsrMembershipConfig"},"CsrMembershipFeePolicy":{"properties":{"rules":{"items":{"$ref":"#/components/schemas/CsrMembershipFeeRule"},"type":"array","maxItems":60,"minItems":1,"title":"Rules"},"source":{"type":"string","const":"scoped_service_titan_mirror","title":"Source"},"classification":{"type":"string","const":"active_at_booking_v1","title":"Classification"},"phase":{"type":"string","const":"before_booking","title":"Phase","default":"before_booking"},"unmatched":{"type":"string","const":"unresolved","title":"Unmatched","default":"unresolved"}},"additionalProperties":false,"type":"object","required":["rules","source","classification"],"title":"CsrMembershipFeePolicy"},"CsrMembershipFeeRule":{"properties":{"rule_key":{"type":"string","maxLength":80,"minLength":1,"pattern":"^[a-z][a-z0-9_]*$","title":"Rule Key"},"job_type_ids":{"items":{"type":"integer"},"type":"array","maxItems":100,"minItems":1,"title":"Job Type Ids"},"outcome":{"type":"string","enum":["fixed_fee","no_visit_fee"],"title":"Outcome"},"fee":{"anyOf":[{"$ref":"#/components/schemas/CsrFeeConfig"},{"type":"null"}]},"membership":{"type":"string","enum":["member","nonmember"],"title":"Membership"}},"additionalProperties":false,"type":"object","required":["rule_key","job_type_ids","outcome","membership"],"title":"CsrMembershipFeeRule"},"CsrNewBookingContract":{"properties":{"recap_policy":{"anyOf":[{"$ref":"#/components/schemas/CsrRecapPolicy"},{"type":"null"}]},"presentation":{"type":"string","enum":["date_only","returned_window","part_of_day"],"title":"Presentation"},"confirmation":{"type":"string","enum":["selection","recap_then_confirm"],"title":"Confirmation"},"result_presentation":{"type":"string","enum":["summary","service_date_window"],"title":"Result Presentation","default":"summary"}},"additionalProperties":false,"type":"object","required":["presentation","confirmation"],"title":"CsrNewBookingContract"},"CsrNewBookingQualificationConfig":{"properties":{"classification_source":{"type":"string","enum":["voice","job_type_agent_metadata"],"title":"Classification Source","default":"voice"},"eligibility_rules":{"items":{"$ref":"#/components/schemas/CsrEligibilityRule"},"type":"array","maxItems":60,"title":"Eligibility Rules","default":[]},"categories":{"items":{"$ref":"#/components/schemas/CsrRequestCategory"},"type":"array","maxItems":20,"minItems":1,"title":"Categories"},"non_bookable_handling":{"type":"string","enum":["explain_only","offer_staff_follow_up","explain_without_follow_up"],"title":"Non Bookable Handling","default":"explain_only"},"service_selection":{"anyOf":[{"$ref":"#/components/schemas/CsrServiceSelectionConfig"},{"type":"null"}]}},"additionalProperties":false,"type":"object","required":["categories"],"title":"CsrNewBookingQualificationConfig"},"CsrOfficeInterval":{"properties":{"start_minute":{"type":"integer","maximum":1439.0,"minimum":0.0,"title":"Start Minute"},"end_minute":{"type":"integer","maximum":1440.0,"minimum":1.0,"title":"End Minute"}},"additionalProperties":false,"type":"object","required":["start_minute","end_minute"],"title":"CsrOfficeInterval"},"CsrOfficeSchedule":{"properties":{"timezone":{"type":"string","maxLength":100,"minLength":1,"title":"Timezone"},"closed_dates":{"items":{"type":"string","format":"date"},"type":"array","maxItems":366,"title":"Closed Dates","default":[]},"mon":{"items":{"$ref":"#/components/schemas/CsrOfficeInterval"},"type":"array","maxItems":12,"title":"Mon"},"tue":{"items":{"$ref":"#/components/schemas/CsrOfficeInterval"},"type":"array","maxItems":12,"title":"Tue"},"wed":{"items":{"$ref":"#/components/schemas/CsrOfficeInterval"},"type":"array","maxItems":12,"title":"Wed"},"thu":{"items":{"$ref":"#/components/schemas/CsrOfficeInterval"},"type":"array","maxItems":12,"title":"Thu"},"fri":{"items":{"$ref":"#/components/schemas/CsrOfficeInterval"},"type":"array","maxItems":12,"title":"Fri"},"sat":{"items":{"$ref":"#/components/schemas/CsrOfficeInterval"},"type":"array","maxItems":12,"title":"Sat"},"sun":{"items":{"$ref":"#/components/schemas/CsrOfficeInterval"},"type":"array","maxItems":12,"title":"Sun"},"breaks_open":{"type":"boolean","title":"Breaks Open","default":false}},"additionalProperties":false,"type":"object","required":["timezone","mon","tue","wed","thu","fri","sat","sun"],"title":"CsrOfficeSchedule"},"CsrOpeningPolicy":{"properties":{"default":{"$ref":"#/components/schemas/CsrOpeningVariants"},"known_caller":{"anyOf":[{"$ref":"#/components/schemas/CsrOpeningVariants"},{"type":"null"}]},"recording":{"type":"string","enum":["in_greeting","not_required"],"title":"Recording"}},"additionalProperties":false,"type":"object","required":["default","recording"],"title":"CsrOpeningPolicy"},"CsrOpeningVariants":{"properties":{"open":{"$ref":"#/components/schemas/CsrPhrase"},"closed":{"$ref":"#/components/schemas/CsrPhrase"},"unknown":{"$ref":"#/components/schemas/CsrPhrase"}},"additionalProperties":false,"type":"object","required":["open","closed","unknown"],"title":"CsrOpeningVariants"},"CsrOrganizationGuidance":{"properties":{"after_hours_staff_managed_emergency_fee_minor":{"anyOf":[{"type":"integer","minimum":0.0},{"type":"null"}],"title":"After Hours Staff Managed Emergency Fee Minor"},"mention_possible_emergency_charge":{"type":"boolean","title":"Mention Possible Emergency Charge","default":false},"emergency_follow_up_only":{"type":"boolean","title":"Emergency Follow Up Only","default":false},"instructions":{"items":{"type":"string"},"type":"array","maxItems":12,"title":"Instructions","default":[]}},"additionalProperties":false,"type":"object","title":"CsrOrganizationGuidance"},"CsrPhrase":{"properties":{"parts":{"items":{"oneOf":[{"$ref":"#/components/schemas/TextPart"},{"$ref":"#/components/schemas/ValuePart"}],"discriminator":{"propertyName":"kind","mapping":{"text":"#/components/schemas/TextPart","value":"#/components/schemas/ValuePart"}}},"type":"array","maxItems":12,"minItems":1,"title":"Parts"}},"additionalProperties":false,"type":"object","required":["parts"],"title":"CsrPhrase"},"CsrPriceComponent":{"properties":{"key":{"type":"string","pattern":"^[a-z][a-z0-9_]{0,63}$","title":"Key"},"label":{"type":"string","maxLength":1000,"minLength":1,"title":"Label"},"amount_minor":{"type":"integer","maximum":10000000.0,"minimum":0.0,"title":"Amount Minor"},"currency":{"type":"string","enum":["USD","CAD"],"title":"Currency"},"tax":{"type":"string","enum":["included","additional","not_applicable","staff_confirms"],"title":"Tax"},"scope":{"type":"string","enum":["visit","trip_and_labor","filter_change","cancellation","diagnostic","after_hours_surcharge"],"title":"Scope"}},"additionalProperties":false,"type":"object","required":["key","label","amount_minor","currency","tax","scope"],"title":"CsrPriceComponent"},"CsrPriorityBookingPolicy":{"properties":{"emergency":{"$ref":"#/components/schemas/CsrEmergencyBookingPolicy"},"high_value":{"$ref":"#/components/schemas/CsrHighValueBookingPolicy"},"unavailable_action":{"type":"string","enum":["transfer","follow_up"],"title":"Unavailable Action"},"transfer_destination_name":{"anyOf":[{"type":"string","maxLength":100,"minLength":1},{"type":"null"}],"title":"Transfer Destination Name"},"transfer_failure_action":{"anyOf":[{"type":"string","enum":["report_failure","offer_follow_up"]},{"type":"null"}],"title":"Transfer Failure Action"}},"additionalProperties":false,"type":"object","required":["emergency","high_value","unavailable_action"],"title":"CsrPriorityBookingPolicy"},"CsrPriorityCriterion":{"properties":{"rule_key":{"type":"string","pattern":"^[a-z][a-z0-9_]{0,63}$","title":"Rule Key"},"service_selection_rule_keys":{"items":{"type":"string"},"type":"array","maxItems":100,"minItems":1,"title":"Service Selection Rule Keys"},"job_type_ids":{"items":{"type":"integer"},"type":"array","maxItems":100,"title":"Job Type Ids","default":[]},"conditions":{"items":{"oneOf":[{"$ref":"#/components/schemas/CsrPriorityEnumCondition"},{"$ref":"#/components/schemas/CsrPriorityIntegerCondition"}],"discriminator":{"propertyName":"kind","mapping":{"enum":"#/components/schemas/CsrPriorityEnumCondition","integer":"#/components/schemas/CsrPriorityIntegerCondition"}}},"type":"array","maxItems":20,"minItems":1,"title":"Conditions"}},"additionalProperties":false,"type":"object","required":["rule_key","service_selection_rule_keys","conditions"],"title":"CsrPriorityCriterion"},"CsrPriorityEnumCondition":{"properties":{"kind":{"type":"string","const":"enum","title":"Kind"},"field_key":{"type":"string","pattern":"^[a-z][a-z0-9_]{0,63}$","title":"Field Key"},"one_of":{"items":{"type":"string"},"type":"array","maxItems":20,"minItems":1,"title":"One Of"}},"additionalProperties":false,"type":"object","required":["kind","field_key","one_of"],"title":"CsrPriorityEnumCondition"},"CsrPriorityIntegerCondition":{"properties":{"kind":{"type":"string","const":"integer","title":"Kind"},"field_key":{"type":"string","pattern":"^[a-z][a-z0-9_]{0,63}$","title":"Field Key"},"minimum":{"anyOf":[{"type":"integer"},{"type":"null"}],"title":"Minimum"},"maximum":{"anyOf":[{"type":"integer"},{"type":"null"}],"title":"Maximum"}},"additionalProperties":false,"type":"object","required":["kind","field_key"],"title":"CsrPriorityIntegerCondition"},"CsrPromptConfig":{"properties":{"warranty_source_scheduling":{"type":"boolean","title":"Warranty Source Scheduling","default":false},"enabled_tools":{"anyOf":[{"items":{"type":"string","enum":["record_do_not_contact","resolve_customer_and_service_address","select_existing_service_location","find_new_appointment_availability","find_new_appointment_availability_for_preference","book_new_appointment","find_existing_appointments","find_reschedule_availability","reschedule_appointment","cancel_appointment","confirm_existing_appointment","save_confirmed_email","read_memberships","search_support_knowledge","request_human_follow_up","transfer_call"]},"type":"array"},{"type":"null"}],"title":"Enabled Tools"},"organization":{"anyOf":[{"$ref":"#/components/schemas/OrganizationPromptConfig"},{"type":"null"}]},"reschedule_policy":{"anyOf":[{"type":"string","const":"enabled"},{"type":"null"}],"title":"Reschedule Policy"},"reschedule_job_type_ids":{"anyOf":[{"items":{"type":"integer","exclusiveMinimum":0.0},"type":"array","maxItems":1000},{"type":"null"}],"title":"Reschedule Job Type Ids"},"timing_preference_policy":{"anyOf":[{"$ref":"#/components/schemas/CsrTimingPreferencePolicy"},{"type":"null"}]}},"additionalProperties":false,"type":"object","title":"CsrPromptConfig"},"CsrPronunciation":{"properties":{"text":{"type":"string","maxLength":100,"minLength":1,"title":"Text"},"spoken_hint":{"type":"string","maxLength":100,"minLength":1,"title":"Spoken Hint"},"locale":{"type":"string","enum":["en-US","es-US"],"title":"Locale"}},"additionalProperties":false,"type":"object","required":["text","spoken_hint","locale"],"title":"CsrPronunciation"},"CsrQuotePolicy":{"properties":{"membership_authority":{"anyOf":[{"$ref":"#/components/schemas/CsrMembershipAuthority"},{"type":"null"}]},"rules":{"items":{"$ref":"#/components/schemas/CsrQuoteRule"},"type":"array","maxItems":100,"minItems":1,"title":"Rules"},"unresolved":{"type":"string","const":"staff_confirms_no_quote","title":"Unresolved"}},"additionalProperties":false,"type":"object","required":["rules","unresolved"],"title":"CsrQuotePolicy"},"CsrQuoteRule":{"properties":{"key":{"type":"string","pattern":"^[a-z][a-z0-9_]{0,63}$","title":"Key"},"when":{"$ref":"#/components/schemas/CsrRuleMatch"},"purpose":{"type":"string","enum":["information","booking"],"title":"Purpose"},"phase":{"type":"string","enum":["on_question","before_availability","before_booking"],"title":"Phase"},"components":{"items":{"$ref":"#/components/schemas/CsrPriceComponent"},"type":"array","maxItems":5,"minItems":1,"title":"Components"},"consent":{"type":"string","enum":["none","explicit_after_disclosure"],"title":"Consent"},"qualifier":{"type":"string","enum":["listed_price_staff_confirms","fixed_visit_terms"],"title":"Qualifier"},"topic":{"anyOf":[{"type":"string","enum":["visit_fee","filter_change_fee","cancellation_fee"]},{"type":"null"}],"title":"Topic"},"credit":{"anyOf":[{"$ref":"#/components/schemas/CsrFeeCredit"},{"type":"null"}]},"on_decline":{"type":"string","enum":["explain_only","offer_follow_up","offer_standard_search"],"title":"On Decline","default":"offer_follow_up"}},"additionalProperties":false,"type":"object","required":["key","when","purpose","phase","components","consent","qualifier"],"title":"CsrQuoteRule"},"CsrRecapPolicy":{"properties":{"components":{"items":{"type":"string","enum":["name","callback","email","address","service","issue","appointment","fee_terms"]},"type":"array","maxItems":8,"minItems":1,"title":"Components"},"style":{"type":"string","enum":["natural","labeled"],"title":"Style","default":"natural"}},"additionalProperties":false,"type":"object","required":["components"],"title":"CsrRecapPolicy"},"CsrRecordThenTransferAction":{"properties":{"kind":{"type":"string","const":"record_then_transfer","title":"Kind"},"owner_key":{"type":"string","pattern":"^[a-z][a-z0-9_]{0,63}$","title":"Owner Key"},"destination_name":{"type":"string","maxLength":100,"minLength":1,"title":"Destination Name"},"urgency":{"type":"string","enum":["routine","urgent"],"title":"Urgency"},"on_record_failure":{"type":"string","enum":["offer_transfer","report_only"],"title":"On Record Failure"}},"additionalProperties":false,"type":"object","required":["kind","owner_key","destination_name","urgency","on_record_failure"],"title":"CsrRecordThenTransferAction"},"CsrRelatedBrand":{"properties":{"key":{"type":"string","pattern":"^[a-z][a-z0-9_]{0,63}$","title":"Key"},"name":{"type":"string","maxLength":1000,"minLength":1,"title":"Name"},"relationship":{"type":"string","enum":["partner","legacy","division"],"title":"Relationship"},"aliases":{"items":{"type":"string","maxLength":1000,"minLength":1},"type":"array","maxItems":10,"title":"Aliases","default":[]},"explanation":{"anyOf":[{"$ref":"#/components/schemas/LocalizedText"},{"type":"null"}]}},"additionalProperties":false,"type":"object","required":["key","name","relationship"],"title":"CsrRelatedBrand"},"CsrRelatedBrandsPolicy":{"properties":{"brands":{"items":{"$ref":"#/components/schemas/CsrRelatedBrand"},"type":"array","maxItems":20,"minItems":1,"title":"Brands"},"explanation":{"anyOf":[{"$ref":"#/components/schemas/LocalizedText"},{"type":"null"}]},"speak_when":{"type":"string","enum":["caller_names_brand","asked_about_company"],"title":"Speak When","default":"caller_names_brand"}},"additionalProperties":false,"type":"object","required":["brands"],"title":"CsrRelatedBrandsPolicy","description":"Display only: naming one of these brands selects no route and no pricing."},"CsrRequestCategory":{"properties":{"key":{"type":"string","pattern":"^[a-z][a-z0-9_]{0,63}$","title":"Key"},"label":{"type":"string","maxLength":100,"minLength":1,"title":"Label","default":""},"description":{"type":"string","maxLength":500,"minLength":1,"title":"Description","default":""},"bookable_job_type_ids":{"items":{"type":"integer"},"type":"array","maxItems":100,"title":"Bookable Job Type Ids"}},"additionalProperties":false,"type":"object","required":["key","bookable_job_type_ids"],"title":"CsrRequestCategory"},"CsrRequestIntakePolicy":{"properties":{"fields":{"items":{"$ref":"#/components/schemas/CsrIntakeField"},"type":"array","maxItems":40,"title":"Fields"},"rules":{"items":{"$ref":"#/components/schemas/CsrIntakeRule"},"type":"array","maxItems":60,"minItems":1,"title":"Rules"}},"additionalProperties":false,"type":"object","required":["fields","rules"],"title":"CsrRequestIntakePolicy"},"CsrRequestRoute":{"properties":{"key":{"type":"string","pattern":"^[a-z][a-z0-9_]{0,63}$","title":"Key"},"when":{"$ref":"#/components/schemas/CsrRuleMatch"},"action":{"oneOf":[{"$ref":"#/components/schemas/CsrContinueBookingAction"},{"$ref":"#/components/schemas/CsrTransferAction"},{"$ref":"#/components/schemas/CsrFollowUpAction"},{"$ref":"#/components/schemas/CsrRecordThenTransferAction"}],"title":"Action","discriminator":{"propertyName":"kind","mapping":{"continue_booking":"#/components/schemas/CsrContinueBookingAction","follow_up":"#/components/schemas/CsrFollowUpAction","record_then_transfer":"#/components/schemas/CsrRecordThenTransferAction","transfer":"#/components/schemas/CsrTransferAction"}}},"phase":{"type":"string","const":"request","title":"Phase","default":"request"}},"additionalProperties":false,"type":"object","required":["key","when","action"],"title":"CsrRequestRoute"},"CsrRequestRoutingPolicy":{"properties":{"rules":{"items":{"$ref":"#/components/schemas/CsrRequestRoute"},"type":"array","maxItems":60,"minItems":1,"title":"Rules"},"prerequisites":{"$ref":"#/components/schemas/CsrRoutingPrerequisites"},"unresolved":{"type":"string","enum":["clarify_once_then_offer_follow_up","offer_follow_up","explain_only"],"title":"Unresolved"},"human_request":{"$ref":"#/components/schemas/CsrHumanRequestPolicy"},"unresolved_follow_up_owner":{"anyOf":[{"type":"string","pattern":"^[a-z][a-z0-9_]{0,63}$"},{"type":"null"}],"title":"Unresolved Follow Up Owner"},"withheld_services":{"items":{"$ref":"#/components/schemas/CsrWithheldService"},"type":"array","maxItems":20,"title":"Withheld Services","default":[]}},"additionalProperties":false,"type":"object","required":["rules","prerequisites","unresolved","human_request"],"title":"CsrRequestRoutingPolicy"},"CsrRoutingConfig":{"properties":{"request_policy":{"anyOf":[{"$ref":"#/components/schemas/CsrRequestRoutingPolicy"},{"type":"null"}]},"follow_up_owners":{"items":{"$ref":"#/components/schemas/CsrFollowUpOwner"},"type":"array","maxItems":60,"title":"Follow Up Owners","default":[]},"office_open":{"$ref":"#/components/schemas/CsrRoutingDisposition"},"office_closed":{"$ref":"#/components/schemas/CsrRoutingDisposition"},"urgent":{"$ref":"#/components/schemas/CsrRoutingDisposition"},"emergency":{"$ref":"#/components/schemas/CsrRoutingDisposition"}},"additionalProperties":false,"type":"object","required":["office_open","office_closed","urgent","emergency"],"title":"CsrRoutingConfig"},"CsrRoutingDisposition":{"type":"string","enum":["transfer","follow_up","emergency_services","end_call"],"title":"CsrRoutingDisposition"},"CsrRoutingPrerequisites":{"properties":{"field_order":{"items":{"type":"string","pattern":"^[a-z][a-z0-9_]{0,63}$"},"type":"array","maxItems":20,"title":"Field Order","default":[]},"question_limit":{"type":"integer","maximum":5.0,"minimum":0.0,"title":"Question Limit","default":3},"on_unresolved":{"type":"string","const":"use_safe_fallback","title":"On Unresolved","default":"use_safe_fallback"}},"additionalProperties":false,"type":"object","title":"CsrRoutingPrerequisites"},"CsrRuleMatch":{"properties":{"intents":{"items":{"type":"string","enum":["new_service","maintenance","existing_status","reschedule","cancel","confirm","human","billing","employment","specific_person","complaint","membership","information","other"]},"type":"array","title":"Intents","default":[]},"category_keys":{"items":{"type":"string","pattern":"^[a-z][a-z0-9_]{0,63}$"},"type":"array","title":"Category Keys","default":[]},"service_rule_keys":{"items":{"type":"string","pattern":"^[a-z][a-z0-9_]{0,63}$"},"type":"array","title":"Service Rule Keys","default":[]},"facts":{"items":{"oneOf":[{"$ref":"#/components/schemas/CsrPriorityEnumCondition"},{"$ref":"#/components/schemas/CsrPriorityIntegerCondition"}],"discriminator":{"propertyName":"kind","mapping":{"enum":"#/components/schemas/CsrPriorityEnumCondition","integer":"#/components/schemas/CsrPriorityIntegerCondition"}}},"type":"array","maxItems":12,"title":"Facts","default":[]},"context":{"items":{"oneOf":[{"$ref":"#/components/schemas/OfficeStateCondition"},{"$ref":"#/components/schemas/BusinessUrgencyCondition"},{"$ref":"#/components/schemas/MembershipCondition"},{"$ref":"#/components/schemas/CallDayCondition"},{"$ref":"#/components/schemas/BookingOutcomeCondition"}],"discriminator":{"propertyName":"kind","mapping":{"booking_outcome":"#/components/schemas/BookingOutcomeCondition","business_urgency":"#/components/schemas/BusinessUrgencyCondition","call_day":"#/components/schemas/CallDayCondition","membership":"#/components/schemas/MembershipCondition","office_state":"#/components/schemas/OfficeStateCondition"}}},"type":"array","maxItems":12,"title":"Context","default":[]}},"additionalProperties":false,"type":"object","title":"CsrRuleMatch"},"CsrSafetyPolicy":{"properties":{"direction":{"$ref":"#/components/schemas/LocalizedText"},"resume_assistance":{"type":"boolean","title":"Resume Assistance","default":false},"water_shutoff":{"anyOf":[{"$ref":"#/components/schemas/CsrWaterShutoffPolicy"},{"type":"null"}]},"emergency_transfer_destination":{"anyOf":[{"type":"string","maxLength":100,"minLength":1},{"type":"null"}],"title":"Emergency Transfer Destination"}},"additionalProperties":false,"type":"object","required":["direction"],"title":"CsrSafetyPolicy"},"CsrSafetyScreenPolicy":{"properties":{"mode":{"type":"string","enum":["reactive","before_booking_once"],"title":"Mode"},"question":{"anyOf":[{"$ref":"#/components/schemas/LocalizedText"},{"type":"null"}]}},"additionalProperties":false,"type":"object","required":["mode"],"title":"CsrSafetyScreenPolicy"},"CsrSchedulingConfig":{"properties":{"preferences":{"anyOf":[{"$ref":"#/components/schemas/CsrTimingPreferencePolicy"},{"type":"null"}]},"no_availability_action":{"type":"string","enum":["collect_preference","transfer","follow_up"],"title":"No Availability Action"},"new_booking_contract":{"anyOf":[{"$ref":"#/components/schemas/CsrNewBookingContract"},{"type":"null"}]}},"additionalProperties":false,"type":"object","required":["no_availability_action"],"title":"CsrSchedulingConfig"},"CsrSelectionCondition":{"properties":{"field_key":{"type":"string","maxLength":64,"minLength":1,"title":"Field Key"},"one_of":{"items":{"type":"string"},"type":"array","maxItems":20,"minItems":1,"title":"One Of"}},"additionalProperties":false,"type":"object","required":["field_key","one_of"],"title":"CsrSelectionCondition"},"CsrServiceSelectionConfig":{"properties":{"fields":{"items":{"$ref":"#/components/schemas/CsrIntakeField"},"type":"array","maxItems":20,"minItems":1,"title":"Fields"},"rules":{"items":{"$ref":"#/components/schemas/CsrServiceSelectionRule"},"type":"array","maxItems":100,"minItems":1,"title":"Rules"}},"additionalProperties":false,"type":"object","required":["fields","rules"],"title":"CsrServiceSelectionConfig"},"CsrServiceSelectionRule":{"properties":{"key":{"type":"string","pattern":"^[a-z][a-z0-9_]{0,63}$","title":"Key"},"category_key":{"type":"string","maxLength":64,"minLength":1,"title":"Category Key"},"conditions":{"items":{"$ref":"#/components/schemas/CsrSelectionCondition"},"type":"array","maxItems":20,"title":"Conditions","default":[]},"bookable_job_type_ids":{"items":{"type":"integer"},"type":"array","maxItems":100,"minItems":1,"title":"Bookable Job Type Ids"},"required_before_offer":{"items":{"type":"string"},"type":"array","maxItems":20,"title":"Required Before Offer","default":[]},"required_before_booking":{"items":{"type":"string"},"type":"array","maxItems":20,"title":"Required Before Booking","default":[]},"booking_summary":{"anyOf":[{"type":"string","maxLength":500,"minLength":1},{"type":"null"}],"title":"Booking Summary"}},"additionalProperties":false,"type":"object","required":["key","category_key","bookable_job_type_ids"],"title":"CsrServiceSelectionRule"},"CsrTimingPreferencePolicy":{"properties":{"mode":{"type":"string","enum":["volunteered_only","ask_day_or_soonest","ask_day_and_unavailable_times"],"title":"Mode"},"day_question":{"anyOf":[{"type":"string","maxLength":300,"minLength":1},{"type":"null"}],"title":"Day Question"},"unavailable_times_question":{"anyOf":[{"type":"string","maxLength":300,"minLength":1},{"type":"null"}],"title":"Unavailable Times Question"},"stage":{"type":"string","const":"before_availability","title":"Stage","default":"before_availability"}},"additionalProperties":false,"type":"object","required":["mode"],"title":"CsrTimingPreferencePolicy"},"CsrTransferAction":{"properties":{"kind":{"type":"string","const":"transfer","title":"Kind"},"destination_name":{"type":"string","maxLength":100,"minLength":1,"title":"Destination Name"},"on_rejected":{"type":"string","enum":["offer_follow_up","report_only"],"title":"On Rejected","default":"offer_follow_up"},"follow_up_owner":{"anyOf":[{"type":"string","pattern":"^[a-z][a-z0-9_]{0,63}$"},{"type":"null"}],"title":"Follow Up Owner"},"follow_up_urgency":{"type":"string","enum":["routine","urgent","emergency"],"title":"Follow Up Urgency","default":"routine"}},"additionalProperties":false,"type":"object","required":["kind","destination_name"],"title":"CsrTransferAction"},"CsrWaterShutoffPolicy":{"properties":{"permission":{"type":"string","const":"severe_flooding_or_major_leak_once","title":"Permission"},"wording":{"$ref":"#/components/schemas/LocalizedText"},"property_direction":{"anyOf":[{"$ref":"#/components/schemas/LocalizedText"},{"type":"null"}]},"urgent_follow_up":{"type":"boolean","title":"Urgent Follow Up","default":false}},"additionalProperties":false,"type":"object","required":["permission","wording"],"title":"CsrWaterShutoffPolicy"},"CsrWithheldService":{"properties":{"key":{"type":"string","pattern":"^[a-z][a-z0-9_]{0,63}$","title":"Key"},"follow_up_line":{"type":"string","maxLength":1000,"minLength":1,"title":"Follow Up Line"},"press_back_line":{"anyOf":[{"type":"string","maxLength":1000,"minLength":1},{"type":"null"}],"title":"Press Back Line"}},"additionalProperties":false,"type":"object","required":["key","follow_up_line"],"title":"CsrWithheldService","description":"Work the organization declines to schedule on the call, handing it to staff without giving a reason."},"CustomAgentSpec":{"properties":{"objective_name":{"type":"string","title":"Objective Name"},"objective_prompt_template":{"type":"string","title":"Objective Prompt Template"},"reuse_agent_v2_id":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Reuse Agent V2 Id"}},"type":"object","required":["objective_name","objective_prompt_template"],"title":"CustomAgentSpec"},"CustomerCallAudioAccessPublic":{"properties":{"call_id":{"type":"integer","title":"Call Id"},"kind":{"$ref":"#/components/schemas/CallMediaKind"},"url":{"type":"string","title":"Url"},"expires_in":{"type":"integer","title":"Expires In"}},"type":"object","required":["call_id","kind","url","expires_in"],"title":"CustomerCallAudioAccessPublic"},"CustomerCallMediaPublic":{"properties":{"kind":{"$ref":"#/components/schemas/CallMediaKind"},"audio_available":{"type":"boolean","title":"Audio Available"},"transcript":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Transcript"},"turns":{"items":{"$ref":"#/components/schemas/CustomerCallTranscriptTurnPublic"},"type":"array","title":"Turns"}},"type":"object","required":["kind","audio_available"],"title":"CustomerCallMediaPublic"},"CustomerCallMediaRecoveryPublic":{"properties":{"kind":{"$ref":"#/components/schemas/CallMediaKind"},"status":{"type":"string","enum":["missing","queued","processing","complete","retryable","unavailable"],"title":"Status"},"can_recover":{"type":"boolean","title":"Can Recover"},"will_transcribe":{"type":"boolean","title":"Will Transcribe"},"reason":{"anyOf":[{"type":"string","enum":["processing_disabled","recording_length","outbound_policy","covered_by_other_recording","not_found","download_failed"]},{"type":"null"}],"title":"Reason"}},"type":"object","required":["kind","status","can_recover","will_transcribe"],"title":"CustomerCallMediaRecoveryPublic"},"CustomerCallReviewPublic":{"properties":{"call_id":{"type":"integer","title":"Call Id"},"occurred_at":{"anyOf":[{"type":"string","format":"date-time"},{"type":"null"}],"title":"Occurred At"},"direction":{"type":"string","title":"Direction"},"status":{"type":"string","title":"Status"},"call_type":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Call Type"},"duration":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Duration"},"from_number":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"From Number"},"to_number":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"To Number"},"agent_name":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Agent Name"},"media":{"items":{"$ref":"#/components/schemas/CustomerCallMediaPublic"},"type":"array","title":"Media"},"recovery_options":{"items":{"$ref":"#/components/schemas/CustomerCallMediaRecoveryPublic"},"type":"array","title":"Recovery Options"},"tag_results_path":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Tag Results Path"}},"type":"object","required":["call_id","direction","status"],"title":"CustomerCallReviewPublic"},"CustomerCallTranscriptTurnPublic":{"properties":{"id":{"type":"string","title":"Id"},"sequence":{"type":"integer","title":"Sequence"},"speaker":{"type":"string","title":"Speaker"},"start_seconds":{"type":"number","title":"Start Seconds"},"end_seconds":{"type":"number","title":"End Seconds"},"text":{"type":"string","title":"Text"}},"type":"object","required":["id","sequence","speaker","start_seconds","end_seconds","text"],"title":"CustomerCallTranscriptTurnPublic"},"CustomerContextMembership":{"properties":{"membership_id":{"type":"integer","title":"Membership Id"},"membership_type_name":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Membership Type Name"},"status":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Status"},"starts_at":{"anyOf":[{"type":"string","format":"date-time"},{"type":"null"}],"title":"Starts At"},"ends_at":{"anyOf":[{"type":"string","format":"date-time"},{"type":"null"}],"title":"Ends At"},"next_scheduled_bill_at":{"anyOf":[{"type":"string","format":"date-time"},{"type":"null"}],"title":"Next Scheduled Bill At"},"payment_method_on_file":{"type":"boolean","title":"Payment Method On File"},"etl_synced_at":{"type":"string","format":"date-time","title":"Etl Synced At"}},"type":"object","required":["membership_id","payment_method_on_file","etl_synced_at"],"title":"CustomerContextMembership"},"CustomerContextOutstandingEstimate":{"properties":{"estimate_id":{"type":"integer","title":"Estimate Id"},"name":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Name"},"subtotal":{"type":"number","title":"Subtotal"},"created_at":{"anyOf":[{"type":"string","format":"date-time"},{"type":"null"}],"title":"Created At"},"modified_at":{"anyOf":[{"type":"string","format":"date-time"},{"type":"null"}],"title":"Modified At"},"etl_synced_at":{"type":"string","format":"date-time","title":"Etl Synced At"}},"type":"object","required":["estimate_id","subtotal","etl_synced_at"],"title":"CustomerContextOutstandingEstimate"},"CustomerContextResponse":{"properties":{"customer_id":{"type":"integer","title":"Customer Id"},"source":{"type":"string","const":"service_titan_etl","title":"Source","default":"service_titan_etl"},"generated_at":{"type":"string","format":"date-time","title":"Generated At"},"customer_etl_synced_at":{"type":"string","format":"date-time","title":"Customer Etl Synced At"},"upcoming_jobs":{"items":{"$ref":"#/components/schemas/CustomerContextUpcomingJob"},"type":"array","title":"Upcoming Jobs"},"active_memberships":{"items":{"$ref":"#/components/schemas/CustomerContextMembership"},"type":"array","title":"Active Memberships"},"outstanding_estimates":{"items":{"$ref":"#/components/schemas/CustomerContextOutstandingEstimate"},"type":"array","title":"Outstanding Estimates"}},"type":"object","required":["customer_id","generated_at","customer_etl_synced_at","upcoming_jobs","active_memberships","outstanding_estimates"],"title":"CustomerContextResponse"},"CustomerContextUpcomingJob":{"properties":{"appointment_id":{"type":"integer","title":"Appointment Id"},"job_id":{"type":"integer","title":"Job Id"},"job_number":{"type":"string","title":"Job Number"},"job_type_name":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Job Type Name"},"status":{"type":"string","title":"Status"},"starts_at":{"type":"string","format":"date-time","title":"Starts At"},"ends_at":{"anyOf":[{"type":"string","format":"date-time"},{"type":"null"}],"title":"Ends At"},"arrival_window_starts_at":{"type":"string","format":"date-time","title":"Arrival Window Starts At"},"arrival_window_ends_at":{"anyOf":[{"type":"string","format":"date-time"},{"type":"null"}],"title":"Arrival Window Ends At"},"assigned_technician_names":{"items":{"type":"string"},"type":"array","title":"Assigned Technician Names","default":[]},"technician_assigned":{"type":"boolean","title":"Technician Assigned"},"etl_synced_at":{"type":"string","format":"date-time","title":"Etl Synced At"}},"type":"object","required":["appointment_id","job_id","job_number","status","starts_at","arrival_window_starts_at","technician_assigned","etl_synced_at"],"title":"CustomerContextUpcomingJob"},"CustomerNoteCreate":{"properties":{"content":{"type":"string","maxLength":5000,"minLength":1,"title":"Content"}},"type":"object","required":["content"],"title":"CustomerNoteCreate"},"CustomerNoteUpdate":{"properties":{"content":{"type":"string","maxLength":5000,"minLength":1,"title":"Content"}},"type":"object","required":["content"],"title":"CustomerNoteUpdate"},"CustomerTimelineCallPublic":{"properties":{"kind":{"type":"string","const":"call","title":"Kind","default":"call"},"id":{"type":"string","title":"Id"},"occurred_at":{"type":"string","format":"date-time","title":"Occurred At"},"call_id":{"type":"integer","title":"Call Id"},"upsmith_call_id":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Upsmith Call Id"},"matched_engagement_ids":{"items":{"type":"string"},"type":"array","title":"Matched Engagement Ids"},"direction":{"type":"string","title":"Direction"},"status":{"type":"string","title":"Status"},"call_type":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Call Type"},"duration":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Duration"},"from_number":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"From Number"},"to_number":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"To Number"},"agent_name":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Agent Name"},"reason_name":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Reason Name"},"campaign_name":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Campaign Name"},"has_voicemail":{"type":"boolean","title":"Has Voicemail","default":false},"has_audio":{"type":"boolean","title":"Has Audio"},"has_transcript":{"type":"boolean","title":"Has Transcript"},"recovery_options":{"items":{"$ref":"#/components/schemas/CustomerCallMediaRecoveryPublic"},"type":"array","title":"Recovery Options"},"counterparty_type":{"type":"string","enum":["customer","technician","employee","unknown"],"title":"Counterparty Type","default":"unknown"},"counterparty_name":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Counterparty Name"},"tag_results":{"items":{"$ref":"#/components/schemas/CallTagResultPublic"},"type":"array","title":"Tag Results"}},"type":"object","required":["id","occurred_at","call_id","direction","status","has_audio","has_transcript"],"title":"CustomerTimelineCallPublic"},"CustomerTimelineEngagementPublic":{"properties":{"kind":{"type":"string","const":"engagement","title":"Kind","default":"engagement"},"id":{"type":"string","title":"Id"},"occurred_at":{"type":"string","format":"date-time","title":"Occurred At"},"status":{"type":"string","title":"Status"},"agent_id":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Agent Id"},"agent_name":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Agent Name"},"agent_roster_name":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Agent Roster Name"},"is_voice":{"type":"boolean","title":"Is Voice","default":false},"voice_abort_reason":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Voice Abort Reason"},"call_duration_seconds":{"anyOf":[{"type":"integer"},{"type":"null"}],"title":"Call Duration Seconds"},"call_transferred_at":{"anyOf":[{"type":"string","format":"date-time"},{"type":"null"}],"title":"Call Transferred At"},"messages":{"items":{"$ref":"#/components/schemas/CustomerTimelineMessagePublic"},"type":"array","title":"Messages"}},"type":"object","required":["id","occurred_at","status","messages"],"title":"CustomerTimelineEngagementPublic"},"CustomerTimelineEventPublic":{"properties":{"kind":{"type":"string","const":"event","title":"Kind","default":"event"},"id":{"type":"string","title":"Id"},"occurred_at":{"type":"string","format":"date-time","title":"Occurred At"},"engagement_id":{"type":"string","title":"Engagement Id"},"source":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Source"},"lsa_account_name":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Lsa Account Name"},"agent_id":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Agent Id"},"agent_name":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Agent Name"},"agent_roster_name":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Agent Roster Name"},"event":{"$ref":"#/components/schemas/TimelineEventPublic"}},"type":"object","required":["id","occurred_at","engagement_id","event"],"title":"CustomerTimelineEventPublic"},"CustomerTimelineMessageEventPublic":{"properties":{"id":{"type":"string","title":"Id"},"occurred_at":{"type":"string","format":"date-time","title":"Occurred At"},"role":{"type":"string","title":"Role"},"content":{"type":"string","title":"Content"},"status":{"type":"string","title":"Status"},"user_id":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"User Id"},"user_name":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"User Name"},"contact_method_id":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Contact Method Id"},"image_id":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Image Id"},"image":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Image"},"image_content_type":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Image Content Type"},"delivery_failure_reason":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Delivery Failure Reason"},"media_urls":{"items":{"type":"string"},"type":"array","title":"Media Urls"},"kind":{"type":"string","const":"message","title":"Kind","default":"message"},"engagement_id":{"type":"string","title":"Engagement Id"},"agent_id":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Agent Id"},"agent_name":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Agent Name"},"agent_roster_name":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Agent Roster Name"}},"type":"object","required":["id","occurred_at","role","content","status","engagement_id"],"title":"CustomerTimelineMessageEventPublic"},"CustomerTimelineMessagePublic":{"properties":{"id":{"type":"string","title":"Id"},"occurred_at":{"type":"string","format":"date-time","title":"Occurred At"},"role":{"type":"string","title":"Role"},"content":{"type":"string","title":"Content"},"status":{"type":"string","title":"Status"},"user_id":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"User Id"},"user_name":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"User Name"},"contact_method_id":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Contact Method Id"},"image_id":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Image Id"},"image":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Image"},"image_content_type":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Image Content Type"},"delivery_failure_reason":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Delivery Failure Reason"},"media_urls":{"items":{"type":"string"},"type":"array","title":"Media Urls"}},"type":"object","required":["id","occurred_at","role","content","status"],"title":"CustomerTimelineMessagePublic"},"CustomerTimelineNotePublic":{"properties":{"kind":{"type":"string","const":"note","title":"Kind","default":"note"},"id":{"type":"string","title":"Id"},"occurred_at":{"type":"string","format":"date-time","title":"Occurred At"},"updated_at":{"type":"string","format":"date-time","title":"Updated At"},"content":{"type":"string","title":"Content"},"created_by_user_id":{"type":"string","title":"Created By User Id"},"author_name":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Author Name"},"can_edit":{"type":"boolean","title":"Can Edit","default":false},"can_delete":{"type":"boolean","title":"Can Delete","default":false}},"type":"object","required":["id","occurred_at","updated_at","content","created_by_user_id"],"title":"CustomerTimelineNotePublic"},"CustomerTimelinePagePublic":{"properties":{"items":{"items":{"oneOf":[{"$ref":"#/components/schemas/CustomerTimelineEngagementPublic"},{"$ref":"#/components/schemas/CustomerTimelineMessageEventPublic"},{"$ref":"#/components/schemas/CustomerTimelineEventPublic"},{"$ref":"#/components/schemas/CustomerTimelineCallPublic"},{"$ref":"#/components/schemas/CustomerTimelineScheduledActionPublic"},{"$ref":"#/components/schemas/CustomerTimelineServiceTitanEventPublic"},{"$ref":"#/components/schemas/AiResponseChangeTimelinePublic"},{"$ref":"#/components/schemas/CustomerTimelineNotePublic"},{"$ref":"#/components/schemas/CustomerTimelineServiceTitanNotePublic"}],"discriminator":{"propertyName":"kind","mapping":{"ai_response_change":"#/components/schemas/AiResponseChangeTimelinePublic","call":"#/components/schemas/CustomerTimelineCallPublic","engagement":"#/components/schemas/CustomerTimelineEngagementPublic","event":"#/components/schemas/CustomerTimelineEventPublic","message":"#/components/schemas/CustomerTimelineMessageEventPublic","note":"#/components/schemas/CustomerTimelineNotePublic","scheduled_action":"#/components/schemas/CustomerTimelineScheduledActionPublic","service_titan_customer_note":"#/components/schemas/CustomerTimelineServiceTitanNotePublic","service_titan_event":"#/components/schemas/CustomerTimelineServiceTitanEventPublic","service_titan_location_note":"#/components/schemas/CustomerTimelineServiceTitanNotePublic"}}},"type":"array","title":"Items"},"cursor":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Cursor"},"has_service_titan_service_history":{"anyOf":[{"type":"boolean"},{"type":"null"}],"title":"Has Service Titan Service History"},"latest_engagement_id":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Latest Engagement Id"},"customer_is_booked":{"type":"boolean","title":"Customer Is Booked","default":false},"customer_can_unbook":{"type":"boolean","title":"Customer Can Unbook","default":false}},"type":"object","required":["items"],"title":"CustomerTimelinePagePublic"},"CustomerTimelineScheduledActionPromptPublic":{"properties":{"prompt":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Prompt"},"action":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Action"}},"type":"object","title":"CustomerTimelineScheduledActionPromptPublic"},"CustomerTimelineScheduledActionPublic":{"properties":{"kind":{"type":"string","const":"scheduled_action","title":"Kind","default":"scheduled_action"},"id":{"type":"string","title":"Id"},"occurred_at":{"type":"string","format":"date-time","title":"Occurred At"},"engagement_id":{"type":"string","title":"Engagement Id"},"source":{"type":"string","title":"Source"},"trigger_type":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Trigger Type"},"source_event_id":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Source Event Id"},"hook_config_id":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Hook Config Id"},"hook_name":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Hook Name"},"agent_id":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Agent Id"},"agent_name":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Agent Name"},"agent_roster_name":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Agent Roster Name"}},"type":"object","required":["id","occurred_at","engagement_id","source"],"title":"CustomerTimelineScheduledActionPublic"},"CustomerTimelineServiceTitanEventPublic":{"properties":{"kind":{"type":"string","const":"service_titan_event","title":"Kind","default":"service_titan_event"},"id":{"type":"string","title":"Id"},"occurred_at":{"type":"string","format":"date-time","title":"Occurred At"},"event_type":{"type":"string","title":"Event Type"},"title":{"type":"string","title":"Title"},"description":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Description"},"status":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Status"},"amount":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Amount"},"job_id":{"anyOf":[{"type":"integer"},{"type":"null"}],"title":"Job Id"},"appointment_id":{"anyOf":[{"type":"integer"},{"type":"null"}],"title":"Appointment Id"},"campaign_id":{"anyOf":[{"type":"integer"},{"type":"null"}],"title":"Campaign Id"},"scheduled_start":{"anyOf":[{"type":"string","format":"date-time"},{"type":"null"}],"title":"Scheduled Start"},"scheduled_end":{"anyOf":[{"type":"string","format":"date-time"},{"type":"null"}],"title":"Scheduled End"},"fidelity":{"type":"string","enum":["history","snapshot"],"title":"Fidelity"},"job_number":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Job Number"},"job_type_name":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Job Type Name"},"technician_names":{"items":{"type":"string"},"type":"array","title":"Technician Names"},"service_titan_url":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Service Titan Url"}},"type":"object","required":["id","occurred_at","event_type","title","fidelity"],"title":"CustomerTimelineServiceTitanEventPublic"},"CustomerTimelineServiceTitanNotePublic":{"properties":{"kind":{"type":"string","enum":["service_titan_customer_note","service_titan_location_note"],"title":"Kind"},"id":{"type":"string","title":"Id"},"occurred_at":{"type":"string","format":"date-time","title":"Occurred At"},"updated_at":{"anyOf":[{"type":"string","format":"date-time"},{"type":"null"}],"title":"Updated At"},"content":{"type":"string","title":"Content"},"created_by_id":{"anyOf":[{"type":"integer"},{"type":"null"}],"title":"Created By Id"},"author_name":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Author Name"},"is_pinned":{"type":"boolean","title":"Is Pinned","default":false},"location_id":{"anyOf":[{"type":"integer"},{"type":"null"}],"title":"Location Id"},"location_name":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Location Name"},"location_address":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Location Address"}},"type":"object","required":["kind","id","occurred_at","content"],"title":"CustomerTimelineServiceTitanNotePublic"},"DeactivateResponse":{"properties":{"message":{"type":"string","title":"Message"},"success":{"type":"boolean","title":"Success"}},"type":"object","required":["message","success"],"title":"DeactivateResponse"},"DecisionEdit":{"properties":{"op":{"type":"string","enum":["set","remove"],"title":"Op"},"path":{"items":{"anyOf":[{"type":"string"},{"type":"integer"}]},"type":"array","maxItems":32,"minItems":1,"title":"Path"},"value":{"title":"Value"}},"additionalProperties":false,"type":"object","required":["op","path"],"title":"DecisionEdit"},"DecisionPatchRequest":{"properties":{"expected_revision":{"type":"string","maxLength":64,"minLength":64,"title":"Expected Revision"},"edits":{"items":{"$ref":"#/components/schemas/DecisionEdit"},"type":"array","maxItems":100,"title":"Edits"},"dry_run":{"type":"boolean","title":"Dry Run","default":true},"valid_from":{"anyOf":[{"type":"string","format":"date-time"},{"type":"null"}],"title":"Valid From"},"valid_until":{"anyOf":[{"type":"string","format":"date-time"},{"type":"null"}],"title":"Valid Until"}},"additionalProperties":false,"type":"object","required":["expected_revision"],"title":"DecisionPatchRequest"},"DecisionPreviewRequest":{"properties":{"document":{"additionalProperties":true,"type":"object","title":"Document"},"engagement_ids":{"items":{"type":"string"},"type":"array","title":"Engagement Ids"}},"type":"object","required":["document","engagement_ids"],"title":"DecisionPreviewRequest","description":"A draft document and the engagements to try it against."},"DefinitionCandidate":{"properties":{"kind":{"type":"string","enum":["entity_type","property_type"],"title":"Kind"},"id":{"type":"string","title":"Id"},"key":{"type":"string","title":"Key"},"label":{"type":"string","title":"Label"},"description":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Description"},"synonyms":{"items":{"type":"string"},"type":"array","title":"Synonyms","default":[]},"revision":{"type":"string","pattern":"^[0-9a-f]{64}$","title":"Revision"},"score":{"type":"number","title":"Score"}},"additionalProperties":false,"type":"object","required":["kind","id","key","label","description","revision","score"],"title":"DefinitionCandidate"},"DefinitionCandidatesResponse":{"properties":{"items":{"items":{"$ref":"#/components/schemas/DefinitionCandidate"},"type":"array","title":"Items"}},"additionalProperties":false,"type":"object","required":["items"],"title":"DefinitionCandidatesResponse"},"DefinitionDecision":{"properties":{"expected_request_hash":{"type":"string","pattern":"^[0-9a-f]{64}$","title":"Expected Request Hash"},"decision":{"type":"string","enum":["accept","reject"],"title":"Decision"},"note":{"type":"string","maxLength":4000,"minLength":1,"title":"Note"}},"additionalProperties":false,"type":"object","required":["expected_request_hash","decision","note"],"title":"DefinitionDecision"},"DefinitionDocumentation":{"properties":{"schema_version":{"type":"integer","const":1,"title":"Schema Version","default":1},"label":{"anyOf":[{"type":"string","maxLength":200,"minLength":1,"pattern":"^\\S(?:.*\\S)?$"},{"type":"null"}],"title":"Label"},"description":{"anyOf":[{"type":"string","maxLength":8000,"minLength":1,"pattern":"\\S"},{"type":"null"}],"title":"Description"},"guidance":{"anyOf":[{"type":"string","maxLength":8000,"minLength":1,"pattern":"\\S"},{"type":"null"}],"title":"Guidance"}},"additionalProperties":false,"type":"object","title":"DefinitionDocumentation"},"DefinitionDraft-Input":{"properties":{"scope":{"type":"string","enum":["core","shop"],"title":"Scope"},"definition":{"oneOf":[{"$ref":"#/components/schemas/EntityDefinition"},{"$ref":"#/components/schemas/PropertyDefinition-Input"}],"title":"Definition","discriminator":{"propertyName":"kind","mapping":{"entity_type":"#/components/schemas/EntityDefinition","property_type":"#/components/schemas/PropertyDefinition-Input"}}},"expected_revision":{"anyOf":[{"type":"string","pattern":"^[0-9a-f]{64}$"},{"type":"null"}],"title":"Expected Revision"},"reuse_justification":{"type":"string","maxLength":8000,"minLength":1,"pattern":"\\S","title":"Reuse Justification"},"vocabulary_reference":{"type":"string","maxLength":1000,"minLength":1,"pattern":"^https://\\S+$","title":"Vocabulary Reference"},"vocabulary_rationale":{"type":"string","maxLength":8000,"minLength":1,"pattern":"\\S","title":"Vocabulary Rationale"},"synonyms":{"items":{"type":"string","maxLength":200,"minLength":1,"pattern":"^\\S(?:.*\\S)?$"},"type":"array","maxItems":30,"title":"Synonyms","default":[]}},"additionalProperties":false,"type":"object","required":["scope","definition","reuse_justification","vocabulary_reference","vocabulary_rationale"],"title":"DefinitionDraft"},"DefinitionDraft-Output":{"properties":{"scope":{"type":"string","enum":["core","shop"],"title":"Scope"},"definition":{"oneOf":[{"$ref":"#/components/schemas/EntityDefinition"},{"$ref":"#/components/schemas/upsmith_knowledge_contracts__definition_proposals__PropertyDefinition"}],"title":"Definition","discriminator":{"propertyName":"kind","mapping":{"entity_type":"#/components/schemas/EntityDefinition","property_type":"#/components/schemas/upsmith_knowledge_contracts__definition_proposals__PropertyDefinition"}}},"expected_revision":{"anyOf":[{"type":"string","pattern":"^[0-9a-f]{64}$"},{"type":"null"}],"title":"Expected Revision"},"reuse_justification":{"type":"string","maxLength":8000,"minLength":1,"pattern":"\\S","title":"Reuse Justification"},"vocabulary_reference":{"type":"string","maxLength":1000,"minLength":1,"pattern":"^https://\\S+$","title":"Vocabulary Reference"},"vocabulary_rationale":{"type":"string","maxLength":8000,"minLength":1,"pattern":"\\S","title":"Vocabulary Rationale"},"synonyms":{"items":{"type":"string","maxLength":200,"minLength":1,"pattern":"^\\S(?:.*\\S)?$"},"type":"array","maxItems":30,"title":"Synonyms","default":[]}},"additionalProperties":false,"type":"object","required":["scope","definition","reuse_justification","vocabulary_reference","vocabulary_rationale"],"title":"DefinitionDraft"},"DefinitionHistoryResponse":{"properties":{"items":{"items":{"$ref":"#/components/schemas/DefinitionProposal"},"type":"array","title":"Items"}},"additionalProperties":false,"type":"object","required":["items"],"title":"DefinitionHistoryResponse"},"DefinitionMetadataResponse":{"properties":{"kind":{"type":"string","enum":["entity_type","property_type","checkpoint"],"title":"Kind"},"definition_id":{"type":"string","title":"Definition Id"},"organization_id":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Organization Id"},"revision":{"type":"string","pattern":"^[0-9a-f]{64}$","title":"Revision"},"documentation":{"$ref":"#/components/schemas/DefinitionDocumentation"},"ui_config":{"$ref":"#/components/schemas/DefinitionUIConfig"}},"additionalProperties":false,"type":"object","required":["kind","definition_id","organization_id","revision","documentation","ui_config"],"title":"DefinitionMetadataResponse"},"DefinitionMetadataUpdate":{"properties":{"expected_revision":{"type":"string","pattern":"^[0-9a-f]{64}$","title":"Expected Revision"},"documentation":{"$ref":"#/components/schemas/DefinitionDocumentation"},"ui_config":{"$ref":"#/components/schemas/DefinitionUIConfig"}},"additionalProperties":false,"type":"object","required":["expected_revision","documentation","ui_config"],"title":"DefinitionMetadataUpdate"},"DefinitionPageResponse":{"properties":{"items":{"items":{"$ref":"#/components/schemas/DefinitionSummary"},"type":"array","title":"Items"},"has_more":{"type":"boolean","title":"Has More"}},"additionalProperties":false,"type":"object","required":["items","has_more"],"title":"DefinitionPageResponse"},"DefinitionProposal":{"properties":{"review":{"$ref":"#/components/schemas/ReviewRecord"},"draft":{"$ref":"#/components/schemas/DefinitionDraft-Output"},"closest":{"items":{"$ref":"#/components/schemas/DefinitionCandidate"},"type":"array","title":"Closest"}},"additionalProperties":false,"type":"object","required":["review","draft","closest"],"title":"DefinitionProposal"},"DefinitionProposalResponse":{"properties":{"review":{"$ref":"#/components/schemas/ReviewRecord"},"draft":{"$ref":"#/components/schemas/DefinitionDraft-Output"},"closest":{"items":{"$ref":"#/components/schemas/DefinitionCandidate"},"type":"array","title":"Closest"}},"additionalProperties":false,"type":"object","required":["review","draft","closest"],"title":"DefinitionProposalResponse"},"DefinitionSummary":{"properties":{"kind":{"type":"string","enum":["entity_type","property_type","checkpoint"],"title":"Kind"},"definition_id":{"type":"string","title":"Definition Id"},"organization_id":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Organization Id"},"revision":{"type":"string","pattern":"^[0-9a-f]{64}$","title":"Revision"},"documentation":{"$ref":"#/components/schemas/DefinitionDocumentation"},"ui_config":{"$ref":"#/components/schemas/DefinitionUIConfig"},"key":{"type":"string","title":"Key"},"default_label":{"type":"string","title":"Default Label"}},"additionalProperties":false,"type":"object","required":["kind","definition_id","organization_id","revision","documentation","ui_config","key","default_label"],"title":"DefinitionSummary"},"DefinitionUIConfig":{"properties":{"schema_version":{"type":"integer","const":1,"title":"Schema Version","default":1},"section":{"anyOf":[{"type":"string","maxLength":200,"minLength":1,"pattern":"^\\S(?:.*\\S)?$"},{"type":"null"}],"title":"Section"},"order":{"anyOf":[{"type":"integer","maximum":10000.0,"minimum":0.0},{"type":"null"}],"title":"Order"},"hidden":{"type":"boolean","title":"Hidden","default":false}},"additionalProperties":false,"type":"object","title":"DefinitionUIConfig"},"DeletedResponse":{"properties":{"id":{"type":"string","title":"Id"},"deleted":{"type":"boolean","title":"Deleted","default":true}},"type":"object","required":["id"],"title":"DeletedResponse","description":"Response for soft-delete endpoints that report ``{id, deleted}``."},"DeliveryOutcome":{"type":"string","enum":["delivered","failed","unconfirmed"],"title":"DeliveryOutcome","description":"What the carrier finally said about a send, in words that hold for every channel."},"DemoPublic":{"properties":{"run_id":{"type":"string","title":"Run Id"},"can_control":{"type":"boolean","title":"Can Control"},"service_titan_phase":{"type":"string","enum":["disconnected","waiting","running","done"],"title":"Service Titan Phase"},"registration_state":{"type":"string","enum":["received","waiting_identity","processing","carrier_review","approved","needs_attention"],"title":"Registration State"},"twilio":{"additionalProperties":true,"type":"object","title":"Twilio"},"correction_state":{"anyOf":[{"type":"string","enum":["waiting","rejected","approved"]},{"type":"null"}],"title":"Correction State"},"twilio_configured":{"type":"boolean","title":"Twilio Configured"}},"type":"object","required":["run_id","can_control","service_titan_phase","registration_state","twilio","twilio_configured"],"title":"DemoPublic"},"DemoScenario":{"properties":{"service_titan_phase":{"anyOf":[{"type":"string","enum":["disconnected","waiting","running","done"]},{"type":"null"}],"title":"Service Titan Phase"},"registration_state":{"anyOf":[{"type":"string","enum":["received","waiting_identity","processing","carrier_review","approved","needs_attention"]},{"type":"null"}],"title":"Registration State"},"correction_state":{"anyOf":[{"type":"string","enum":["waiting","rejected","approved"]},{"type":"null"}],"title":"Correction State"}},"additionalProperties":false,"type":"object","title":"DemoScenario"},"DeprovisionedChannel":{"properties":{"id":{"type":"string","title":"Id"},"provider":{"type":"string","title":"Provider"},"phone_number":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Phone Number"},"reference_id":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Reference Id"},"agent_ids":{"items":{"type":"string"},"type":"array","title":"Agent Ids","default":[]},"has_messaging_number":{"type":"boolean","title":"Has Messaging Number"}},"type":"object","required":["id","provider","has_messaging_number"],"title":"DeprovisionedChannel","description":"One channel the action removed (or would remove); doubles as the number-release worklist."},"DialpadCallIngestRequest":{"properties":{"organization_id":{"type":"string","title":"Organization Id"},"payload":{"additionalProperties":true,"type":"object","title":"Payload"}},"type":"object","required":["organization_id","payload"],"title":"DialpadCallIngestRequest"},"DialpadCallIngestResponse":{"properties":{"lead_id":{"type":"string","title":"Lead Id"},"created":{"type":"boolean","title":"Created"}},"type":"object","required":["lead_id","created"],"title":"DialpadCallIngestResponse"},"DirectEngagementCapabilityCheck":{"properties":{"key":{"type":"string","title":"Key"},"label":{"type":"string","title":"Label"},"available":{"type":"boolean","title":"Available"},"blocking":{"type":"boolean","title":"Blocking","default":true},"tool_functions":{"items":{"type":"string"},"type":"array","title":"Tool Functions"},"detail":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Detail"}},"type":"object","required":["key","label","available"],"title":"DirectEngagementCapabilityCheck"},"DirectEngagementContactMatch":{"properties":{"contact_id":{"type":"string","title":"Contact Id"},"contact_method_id":{"type":"string","title":"Contact Method Id"},"phone_number":{"type":"string","title":"Phone Number"},"name":{"type":"string","title":"Name"},"company_name":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Company Name"},"st_customer_id":{"anyOf":[{"type":"integer"},{"type":"null"}],"title":"St Customer Id"},"sendable":{"type":"boolean","title":"Sendable"}},"type":"object","required":["contact_id","contact_method_id","phone_number","name","sendable"],"title":"DirectEngagementContactMatch"},"DirectEngagementMatchStatus":{"type":"string","enum":["none","unique","ambiguous","selected"],"title":"DirectEngagementMatchStatus"},"DirectEngagementOrganizationMatch":{"properties":{"id":{"type":"string","title":"Id"},"name":{"type":"string","title":"Name"}},"type":"object","required":["id","name"],"title":"DirectEngagementOrganizationMatch"},"DirectEngagementPreflightRequest":{"properties":{"organization_id":{"type":"string","title":"Organization Id"},"agent_v2_id":{"type":"string","title":"Agent V2 Id"},"phone_number":{"type":"string","title":"Phone Number"},"selected_contact_method_id":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Selected Contact Method Id"},"is_simulated":{"type":"boolean","title":"Is Simulated","default":false}},"type":"object","required":["organization_id","agent_v2_id","phone_number"],"title":"DirectEngagementPreflightRequest"},"DirectEngagementPreflightResponse":{"properties":{"normalized_phone":{"type":"string","title":"Normalized Phone"},"match_status":{"$ref":"#/components/schemas/DirectEngagementMatchStatus"},"matches":{"items":{"$ref":"#/components/schemas/DirectEngagementContactMatch"},"type":"array","title":"Matches"},"selected_match":{"anyOf":[{"$ref":"#/components/schemas/DirectEngagementContactMatch"},{"type":"null"}]},"matched_user":{"anyOf":[{"$ref":"#/components/schemas/DirectEngagementUserMatch"},{"type":"null"}]},"data_organization":{"anyOf":[{"$ref":"#/components/schemas/DirectEngagementOrganizationMatch"},{"type":"null"}]},"tool_functions":{"items":{"type":"string"},"type":"array","title":"Tool Functions"},"checks":{"items":{"$ref":"#/components/schemas/DirectEngagementCapabilityCheck"},"type":"array","title":"Checks"},"warnings":{"items":{"type":"string"},"type":"array","title":"Warnings"},"blockers":{"items":{"type":"string"},"type":"array","title":"Blockers"},"can_start":{"type":"boolean","title":"Can Start"}},"type":"object","required":["normalized_phone","match_status","can_start"],"title":"DirectEngagementPreflightResponse"},"DirectEngagementUserMatch":{"properties":{"id":{"type":"string","title":"Id"},"name":{"type":"string","title":"Name"},"email":{"type":"string","title":"Email"},"phone_number":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Phone Number"}},"type":"object","required":["id","name","email"],"title":"DirectEngagementUserMatch"},"DiscoverGoogleAdsAccountsBody":{"properties":{"organization_id":{"type":"string","title":"Organization Id","description":"organization.id (UUID) to discover standard Google Ads accounts for."}},"type":"object","required":["organization_id"],"title":"DiscoverGoogleAdsAccountsBody"},"DismissAnnouncementResponse":{"properties":{"success":{"type":"boolean","title":"Success"},"announcement_id":{"type":"string","title":"Announcement Id"},"dismissed_at":{"type":"string","format":"date-time","title":"Dismissed At"}},"type":"object","required":["success","announcement_id","dismissed_at"],"title":"DismissAnnouncementResponse"},"DispatchOutcome":{"type":"string","enum":["sent","scheduled","not_sent","held"],"title":"DispatchOutcome"},"DispatchReason":{"type":"string","enum":["nobody_subscribed","no_live_rule","rules_declined","rotation_reached_nobody","nobody_eligible","type_turned_off","no_module","notification_not_found","type_retired"],"title":"DispatchReason"},"DispatchRoute":{"type":"string","enum":["rules","subscriptions","subscriptions_fallback"],"title":"DispatchRoute"},"DispatchSource":{"type":"string","enum":["dispatch","backfill"],"title":"DispatchSource"},"DoNotContactSource":{"type":"string","enum":["service_titan_flags","pinned_customer_note","pinned_location_note","pinned_job_note","upsmith_flag","stop_request","all_phones_opted_out"],"title":"DoNotContactSource","description":"Which check made a contact do-not-contact, in the order they are evaluated."},"DocumentCategory":{"type":"string","enum":["pricing","promotional_pricing","membership_details","maintenance_scope","about_us","outreach_script","other"],"title":"DocumentCategory","description":"What a document is about, as opposed to ``DocumentType``'s modality.\n\nMirrors the frontend template picker (``document-templates.ts``), which is\nalready the set of documents we coach orgs to create. One category per\ndocument: the templates partition the content, so base and non-member rates\nlive in ``pricing`` while member-only rates live in ``membership_details``,\nand a consumer requires each category it needs rather than a fuzzy set.\n\n``maintenance_scope`` rather than \"maintenance\" — maintenance already means\nrecurring service events elsewhere in this schema."},"DocumentPage":{"properties":{"items":{"items":{"$ref":"#/components/schemas/DocumentPublic"},"type":"array","title":"Items"},"total":{"type":"integer","title":"Total"},"cursor":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Cursor"}},"type":"object","required":["items","total"],"title":"DocumentPage"},"DocumentPublic":{"properties":{"id":{"type":"string","title":"Id"},"organization_id":{"type":"string","title":"Organization Id"},"created_at":{"anyOf":[{"type":"string","format":"date-time"},{"type":"null"}],"title":"Created At"},"updated_at":{"anyOf":[{"type":"string","format":"date-time"},{"type":"null"}],"title":"Updated At"},"deleted_at":{"anyOf":[{"type":"string","format":"date-time"},{"type":"null"}],"title":"Deleted At"},"vectorized_at":{"anyOf":[{"type":"string","format":"date-time"},{"type":"null"}],"title":"Vectorized At"},"title":{"type":"string","title":"Title"},"gist":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Gist"},"url":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Url"},"status":{"$ref":"#/components/schemas/DocumentStatus"},"type":{"$ref":"#/components/schemas/DocumentType"},"category":{"anyOf":[{"$ref":"#/components/schemas/DocumentCategory"},{"type":"null"}]},"created_by_user_id":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Created By User Id"},"updated_by_user_id":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Updated By User Id"},"preflight":{"anyOf":[{"$ref":"#/components/schemas/AdvisoryFindings"},{"type":"null"}]},"prompt_eval_group_ids":{"items":{"type":"string"},"type":"array","title":"Prompt Eval Group Ids","default":[]},"prompt_quality":{"anyOf":[{"$ref":"#/components/schemas/PromptQualityOffer"},{"type":"null"}]}},"type":"object","required":["id","organization_id","title","status","type"],"title":"DocumentPublic"},"DocumentStatus":{"type":"string","enum":["queued","processing","ready","error"],"title":"DocumentStatus"},"DocumentTargetInput":{"properties":{"surface":{"anyOf":[{"$ref":"#/components/schemas/DocumentTargetSurface"},{"type":"null"}]},"roster_id":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Roster Id"},"agent_v2_id":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Agent V2 Id"}},"type":"object","title":"DocumentTargetInput"},"DocumentTargetPublic":{"properties":{"surface":{"anyOf":[{"$ref":"#/components/schemas/DocumentTargetSurface"},{"type":"null"}]},"roster_id":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Roster Id"},"agent_v2_id":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Agent V2 Id"},"id":{"type":"string","title":"Id"},"organization_id":{"type":"string","title":"Organization Id"},"document_id":{"type":"string","title":"Document Id"},"created_at":{"type":"string","format":"date-time","title":"Created At"},"updated_at":{"type":"string","format":"date-time","title":"Updated At"},"deleted_at":{"anyOf":[{"type":"string","format":"date-time"},{"type":"null"}],"title":"Deleted At"}},"type":"object","required":["id","organization_id","document_id","created_at","updated_at"],"title":"DocumentTargetPublic"},"DocumentTargetSurface":{"type":"string","enum":["agents","ask_jenny"],"title":"DocumentTargetSurface"},"DocumentTargetsReplace":{"properties":{"targets":{"items":{"$ref":"#/components/schemas/DocumentTargetInput"},"type":"array","maxItems":100,"title":"Targets"}},"type":"object","required":["targets"],"title":"DocumentTargetsReplace"},"DocumentTargetsResponse":{"properties":{"items":{"items":{"$ref":"#/components/schemas/DocumentTargetPublic"},"type":"array","title":"Items"}},"type":"object","required":["items"],"title":"DocumentTargetsResponse"},"DocumentType":{"type":"string","enum":["text","file","link"],"title":"DocumentType"},"DuplicateOutreachAlertPublic":{"properties":{"id":{"type":"string","title":"Id"},"organization_id":{"type":"string","title":"Organization Id"},"alert_date":{"type":"string","format":"date","title":"Alert Date"},"person_identity_hash":{"type":"string","title":"Person Identity Hash"},"send_count":{"type":"integer","title":"Send Count"},"data":{"anyOf":[{"additionalProperties":true,"type":"object"},{"type":"null"}],"title":"Data"},"customer_name":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Customer Name"},"campaign_slugs":{"items":{"type":"string"},"type":"array","title":"Campaign Slugs"},"engagement_ids":{"items":{"type":"string"},"type":"array","title":"Engagement Ids"}},"type":"object","required":["id","organization_id","alert_date","person_identity_hash","send_count"],"title":"DuplicateOutreachAlertPublic"},"EditLogPageResponse":{"properties":{"items":{"items":{"$ref":"#/components/schemas/EditLogResponse"},"type":"array","title":"Items"},"total":{"anyOf":[{"type":"integer"},{"type":"null"}],"title":"Total"},"cursor":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Cursor"}},"type":"object","required":["items"],"title":"EditLogPageResponse"},"EditLogResponse":{"properties":{"edit_log_id":{"type":"string","title":"Edit Log Id"},"entity_type":{"type":"string","title":"Entity Type"},"entity_id":{"type":"string","title":"Entity Id"},"parent_entity_id":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Parent Entity Id"},"action":{"type":"string","title":"Action"},"user_id":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"User Id"},"user_email":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"User Email"},"organization_id":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Organization Id"},"current_state":{"anyOf":[{"additionalProperties":true,"type":"object"},{"type":"null"}],"title":"Current State"},"changes":{"anyOf":[{"additionalProperties":true,"type":"object"},{"type":"null"}],"title":"Changes"},"commit_message":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Commit Message"},"operation_id":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Operation Id"},"is_admin":{"type":"boolean","title":"Is Admin"},"source":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Source"},"created_at":{"type":"string","format":"date-time","title":"Created At"}},"type":"object","required":["edit_log_id","entity_type","entity_id","action","is_admin","created_at"],"title":"EditLogResponse"},"EligibilityExplanationTarget":{"properties":{"kind":{"type":"string","const":"eligibility_explanation","title":"Kind","default":"eligibility_explanation"},"rule_key":{"type":"string","pattern":"^[a-z][a-z0-9_]{0,63}$","title":"Rule Key"}},"additionalProperties":false,"type":"object","required":["rule_key"],"title":"EligibilityExplanationTarget"},"EligibleChannelNumberPublic":{"properties":{"messaging_phone_number_id":{"type":"string","title":"Messaging Phone Number Id"},"phone_number":{"type":"string","title":"Phone Number"},"provider":{"$ref":"#/components/schemas/MessagingProvider"},"registration_type":{"$ref":"#/components/schemas/MessagingIntendedRegistrationType"},"registration_id":{"type":"string","title":"Registration Id"},"campaign_id":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Campaign Id"},"reference_id":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Reference Id"},"channel_id":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Channel Id"}},"type":"object","required":["messaging_phone_number_id","phone_number","provider","registration_type","registration_id"],"title":"EligibleChannelNumberPublic"},"EmployeeIdentityPage":{"properties":{"items":{"items":{"$ref":"#/components/schemas/EmployeeIdentityState"},"type":"array","title":"Items","default":[]},"total":{"type":"integer","title":"Total","default":0},"counts":{"additionalProperties":{"type":"integer"},"type":"object","title":"Counts","default":{}}},"type":"object","title":"EmployeeIdentityPage"},"EmployeeIdentityState":{"properties":{"user_id":{"type":"string","title":"User Id"},"email":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Email"},"name":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Name"},"status":{"$ref":"#/components/schemas/IdentityStatus"},"identity_locked_sources":{"items":{"type":"string"},"type":"array","title":"Identity Locked Sources","default":[]},"identities":{"additionalProperties":{"$ref":"#/components/schemas/ResolvedIdentity"},"type":"object","title":"Identities","default":{}},"departed":{"type":"boolean","title":"Departed","default":false}},"type":"object","required":["user_id","status"],"title":"EmployeeIdentityState"},"EndExperimentRequest":{"properties":{"conclusion":{"anyOf":[{"$ref":"#/components/schemas/ExperimentConclusion"},{"type":"null"}]},"conclusion_comment":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Conclusion Comment"},"promote_arm_id":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Promote Arm Id"}},"type":"object","title":"EndExperimentRequest"},"Engagement":{"properties":{"organization_id":{"type":"string","title":"Organization Id"},"created_at":{"type":"string","format":"date-time","title":"Created At"},"updated_at":{"type":"string","format":"date-time","title":"Updated At"},"deleted_at":{"anyOf":[{"type":"string","format":"date-time"},{"type":"null"}],"title":"Deleted At"},"id":{"type":"string","title":"Id"},"agent_v2_id":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Agent V2 Id"},"contact_id":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Contact Id"},"contact_method_id":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Contact Method Id"},"send_attempt_id":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Send Attempt Id"},"override_channel_id":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Override Channel Id"},"latest_event_id":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Latest Event Id"},"latest_event_at":{"anyOf":[{"type":"string","format":"date-time"},{"type":"null"}],"title":"Latest Event At"},"type":{"$ref":"#/components/schemas/EngagementType"},"status":{"$ref":"#/components/schemas/EngagementStatus"},"is_ai_allowed_to_respond":{"type":"boolean","title":"Is Ai Allowed To Respond","default":true},"is_simulated":{"type":"boolean","title":"Is Simulated","default":false},"source":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Source"},"metadata_json":{"anyOf":[{"additionalProperties":true,"type":"object"},{"type":"null"}],"title":"Metadata Json"},"tools_to_preload":{"anyOf":[{"items":{"additionalProperties":true,"type":"object"},"type":"array"},{"type":"null"}],"title":"Tools To Preload"},"compacted_history":{"anyOf":[{"additionalProperties":true,"type":"object"},{"type":"null"}],"title":"Compacted History"},"last_compacted_event_id":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Last Compacted Event Id"},"manually_booked_at":{"anyOf":[{"type":"string","format":"date-time"},{"type":"null"}],"title":"Manually Booked At"},"manually_booked_by_user_id":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Manually Booked By User Id"},"hidden_at":{"anyOf":[{"type":"string","format":"date-time"},{"type":"null"}],"title":"Hidden At"},"hidden_by_user_id":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Hidden By User Id"}},"type":"object","required":["organization_id","contact_id","latest_event_id","latest_event_at","type","status"],"title":"Engagement"},"EngagementAiResponseState":{"properties":{"engagement_id":{"type":"string","title":"Engagement Id"},"organization_id":{"type":"string","title":"Organization Id"},"is_ai_allowed_to_respond":{"type":"boolean","title":"Is Ai Allowed To Respond"},"status":{"type":"string","title":"Status"},"pause_event_id":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Pause Event Id"},"source":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Source"},"reason":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Reason"},"paused_at":{"anyOf":[{"type":"string","format":"date-time"},{"type":"null"}],"title":"Paused At"},"changed_by":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Changed By"},"gap_seconds":{"anyOf":[{"type":"number"},{"type":"null"}],"title":"Gap Seconds"},"pending_messages":{"type":"integer","title":"Pending Messages","default":0},"oldest_pending_at":{"anyOf":[{"type":"string","format":"date-time"},{"type":"null"}],"title":"Oldest Pending At"},"later_business_reply":{"type":"boolean","title":"Later Business Reply","default":false},"looks_like_our_echo":{"type":"boolean","title":"Looks Like Our Echo","default":false}},"type":"object","required":["engagement_id","organization_id","is_ai_allowed_to_respond","status"],"title":"EngagementAiResponseState","description":"What an operator needs to judge a pause before undoing it."},"EngagementBookingStatus":{"type":"string","enum":["booked","requested","none"],"title":"EngagementBookingStatus","description":"The engagement's booking outcome. ``requested`` is an agent booking\nrequest the office has not turned into a booking — an outcome of its own,\nnot a booking."},"EngagementCadenceGates":{"properties":{"engagement":{"$ref":"#/components/schemas/EngagementPublic"},"has_inbound_customer_message":{"type":"boolean","title":"Has Inbound Customer Message"},"has_outbound_message":{"type":"boolean","title":"Has Outbound Message"},"is_engagement_booked":{"type":"boolean","title":"Is Engagement Booked"},"opener_held":{"type":"boolean","title":"Opener Held","default":false},"opener_sent_at":{"anyOf":[{"type":"string","format":"date-time"},{"type":"null"}],"title":"Opener Sent At"},"opener_failed":{"type":"boolean","title":"Opener Failed","default":false}},"type":"object","required":["engagement","has_inbound_customer_message","has_outbound_message","is_engagement_booked"],"title":"EngagementCadenceGates"},"EngagementChannelOption":{"properties":{"id":{"type":"string","title":"Id"},"phone_number":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Phone Number"},"module_type":{"type":"string","title":"Module Type"},"module_title":{"type":"string","title":"Module Title"}},"type":"object","required":["id","phone_number","module_type","module_title"],"title":"EngagementChannelOption"},"EngagementChannelOptionsResponse":{"properties":{"override_channel_id":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Override Channel Id"},"channels":{"items":{"$ref":"#/components/schemas/EngagementChannelOption"},"type":"array","title":"Channels"}},"type":"object","required":["override_channel_id","channels"],"title":"EngagementChannelOptionsResponse"},"EngagementCountPublic":{"properties":{"total":{"type":"integer","title":"Total"}},"type":"object","required":["total"],"title":"EngagementCountPublic"},"EngagementDetailPublic":{"properties":{"engagement_id":{"type":"string","title":"Engagement Id"},"created_at":{"type":"string","format":"date-time","title":"Created At"},"status":{"$ref":"#/components/schemas/EngagementStatus"},"type":{"$ref":"#/components/schemas/EngagementType"},"is_ai_allowed_to_respond":{"type":"boolean","title":"Is Ai Allowed To Respond"},"organization_id":{"type":"string","title":"Organization Id"},"source":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Source"},"manually_booked_at":{"anyOf":[{"type":"string","format":"date-time"},{"type":"null"}],"title":"Manually Booked At"},"manually_booked_by_user_id":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Manually Booked By User Id"},"hidden_at":{"anyOf":[{"type":"string","format":"date-time"},{"type":"null"}],"title":"Hidden At"},"hidden_by_user_id":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Hidden By User Id"},"has_agent_booking":{"type":"boolean","title":"Has Agent Booking","default":false},"booking_status":{"$ref":"#/components/schemas/EngagementBookingStatus","default":"none"},"agent_v2_id":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Agent V2 Id"},"agent_v2_name":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Agent V2 Name"},"agent_v2_voice_enabled":{"anyOf":[{"type":"boolean"},{"type":"null"}],"title":"Agent V2 Voice Enabled"},"agent_roster_key":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Agent Roster Key"},"agent_variants":{"items":{"$ref":"#/components/schemas/AgentVariantRefPublic"},"type":"array","title":"Agent Variants","default":[]},"objective_state":{"anyOf":[{"additionalProperties":true,"type":"object"},{"type":"null"}],"title":"Objective State"},"override_agent_paused":{"type":"boolean","title":"Override Agent Paused","default":false},"turn_number":{"anyOf":[{"type":"integer"},{"type":"null"}],"title":"Turn Number"},"metadata":{"anyOf":[{"additionalProperties":true,"type":"object"},{"type":"null"}],"title":"Metadata"},"contact":{"anyOf":[{"$ref":"#/components/schemas/ContactBasicPublic"},{"type":"null"}]},"last_event":{"anyOf":[{"$ref":"#/components/schemas/TimelineEventPublic"},{"type":"null"}]},"escalation_status":{"$ref":"#/components/schemas/EngagementEscalationStatus"},"waiting_since":{"anyOf":[{"type":"string","format":"date-time"},{"type":"null"}],"title":"Waiting Since"},"escalation_reason":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Escalation Reason"},"escalation_summary":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Escalation Summary"},"escalation_id":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Escalation Id"},"escalations":{"items":{"$ref":"#/components/schemas/EscalationBasicPublic"},"type":"array","title":"Escalations","default":[]},"pending_customer_message_count":{"type":"integer","title":"Pending Customer Message Count","default":0},"ai_pause":{"anyOf":[{"$ref":"#/components/schemas/AiResponsePausePublic"},{"type":"null"}]},"contact_method":{"anyOf":[{"$ref":"#/components/schemas/ContactMethodPublic"},{"type":"null"}]},"call_duration_seconds":{"anyOf":[{"type":"integer"},{"type":"null"}],"title":"Call Duration Seconds"},"lsa_account_name":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Lsa Account Name"}},"type":"object","required":["engagement_id","created_at","status","type","is_ai_allowed_to_respond","organization_id","escalation_status"],"title":"EngagementDetailPublic"},"EngagementEscalationStatus":{"type":"string","enum":["open","claimed","resolved","under_control"],"title":"EngagementEscalationStatus","description":"Rollup of an engagement's escalations. Adds ``under_control`` (no\nescalations) on top of the per-escalation open/claimed/resolved states."},"EngagementPreviewItem":{"properties":{"engagement_id":{"type":"string","title":"Engagement Id"},"contact_name":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Contact Name"},"contact_phone":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Contact Phone"},"status":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Status"},"organization_id":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Organization Id"},"organization_slug":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Organization Slug"}},"type":"object","required":["engagement_id"],"title":"EngagementPreviewItem"},"EngagementPreviewPageResponse":{"properties":{"items":{"items":{"$ref":"#/components/schemas/EngagementPreviewItem"},"type":"array","title":"Items"},"total":{"type":"integer","title":"Total"},"cursor":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Cursor"}},"type":"object","required":["items","total"],"title":"EngagementPreviewPageResponse"},"EngagementPublic":{"properties":{"id":{"type":"string","title":"Id"},"organization_id":{"type":"string","title":"Organization Id"},"created_at":{"anyOf":[{"type":"string","format":"date-time"},{"type":"null"}],"title":"Created At"},"updated_at":{"anyOf":[{"type":"string","format":"date-time"},{"type":"null"}],"title":"Updated At"},"deleted_at":{"anyOf":[{"type":"string","format":"date-time"},{"type":"null"}],"title":"Deleted At"},"agent_v2_id":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Agent V2 Id"},"contact_id":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Contact Id"},"contact_method_id":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Contact Method Id"},"send_attempt_id":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Send Attempt Id"},"override_channel_id":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Override Channel Id"},"latest_event_id":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Latest Event Id"},"latest_event_at":{"anyOf":[{"type":"string","format":"date-time"},{"type":"null"}],"title":"Latest Event At"},"type":{"$ref":"#/components/schemas/EngagementType"},"status":{"$ref":"#/components/schemas/EngagementStatus"},"is_ai_allowed_to_respond":{"type":"boolean","title":"Is Ai Allowed To Respond"},"is_simulated":{"type":"boolean","title":"Is Simulated"},"source":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Source"},"metadata_json":{"anyOf":[{"additionalProperties":true,"type":"object"},{"type":"null"}],"title":"Metadata Json"},"tools_to_preload":{"anyOf":[{"items":{"additionalProperties":true,"type":"object"},"type":"array"},{"type":"null"}],"title":"Tools To Preload"},"compacted_history":{"anyOf":[{"additionalProperties":true,"type":"object"},{"type":"null"}],"title":"Compacted History"},"last_compacted_event_id":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Last Compacted Event Id"},"manually_booked_at":{"anyOf":[{"type":"string","format":"date-time"},{"type":"null"}],"title":"Manually Booked At"},"manually_booked_by_user_id":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Manually Booked By User Id"}},"type":"object","required":["id","organization_id","type","status","is_ai_allowed_to_respond","is_simulated"],"title":"EngagementPublic"},"EngagementStatus":{"type":"string","enum":["active","inactive","sent","paused","aborted","never_replied"],"title":"EngagementStatus"},"EngagementTurnStatusPublic":{"properties":{"active":{"type":"boolean","title":"Active"},"revision":{"type":"string","title":"Revision"}},"type":"object","required":["active","revision"],"title":"EngagementTurnStatusPublic"},"EngagementType":{"type":"string","enum":["contact","training","ask_jenny","slack"],"title":"EngagementType"},"EnrollGoogleAdsAccountBody":{"properties":{"organization_id":{"type":"string","title":"Organization Id","description":"organization.id (UUID) that must own the account being enrolled."},"is_active":{"type":"boolean","title":"Is Active","description":"Enroll (True) or deactivate (False) the account for the standard-Ads spend sync."}},"type":"object","required":["organization_id","is_active"],"title":"EnrollGoogleAdsAccountBody"},"EntityCardDetailResponse":{"properties":{"kind":{"type":"string","maxLength":64,"minLength":1,"pattern":"^[a-z][a-z_]*$","title":"Kind"},"id":{"type":"string","title":"Id"},"detail":{"additionalProperties":true,"type":"object","title":"Detail"}},"type":"object","required":["kind","id","detail"],"title":"EntityCardDetailResponse","description":"What expanding one card adds to it; only what the batch read omitted."},"EntityCardsRequest":{"properties":{"kind":{"type":"string","maxLength":64,"minLength":1,"pattern":"^[a-z][a-z_]*$","title":"Kind"},"ids":{"items":{"type":"string"},"type":"array","maxItems":100,"minItems":1,"title":"Ids"}},"additionalProperties":false,"type":"object","required":["kind","ids"],"title":"EntityCardsRequest"},"EntityCardsResponse":{"properties":{"kind":{"type":"string","maxLength":64,"minLength":1,"pattern":"^[a-z][a-z_]*$","title":"Kind"},"cards":{"items":{"additionalProperties":true,"type":"object"},"type":"array","title":"Cards"}},"type":"object","required":["kind"],"title":"EntityCardsResponse","description":"The cards, in the shape the requested kind's renderer reads; ``kind`` says which."},"EntityDefinition":{"properties":{"kind":{"type":"string","const":"entity_type","title":"Kind"},"id":{"type":"string","maxLength":255,"minLength":1,"pattern":"^\\S(?:.*\\S)?$","title":"Id"},"key":{"type":"string","maxLength":64,"minLength":1,"pattern":"^[a-z][a-z0-9_]*(?:\\.[a-z][a-z0-9_]*)*$","title":"Key"},"label":{"type":"string","maxLength":200,"minLength":1,"pattern":"^\\S(?:.*\\S)?$","title":"Label"},"identity_rule":{"type":"string","maxLength":8000,"minLength":1,"pattern":"\\S","title":"Identity Rule"},"match_facts":{"items":{"type":"string","maxLength":128,"minLength":1,"pattern":"^[a-z][a-z0-9_]*(?:\\.[a-z][a-z0-9_]*)*$"},"type":"array","maxItems":20,"title":"Match Facts","default":[]},"documentation":{"$ref":"#/components/schemas/DefinitionDocumentation"}},"additionalProperties":false,"type":"object","required":["kind","id","key","label","identity_rule","documentation"],"title":"EntityDefinition"},"EntityLink":{"properties":{"link_id":{"type":"string","title":"Link Id"},"entity_id":{"type":"string","title":"Entity Id"},"property_type_id":{"type":"string","title":"Property Type Id"},"target_entity_id":{"type":"string","title":"Target Entity Id"},"run_id":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Run Id"},"as_of":{"type":"string","format":"date-time","title":"As Of"},"status":{"type":"string","enum":["known","disputed"],"title":"Status"},"freshness":{"type":"string","enum":["current","stale"],"title":"Freshness"},"written_by":{"type":"string","title":"Written By"},"evidence_ids":{"items":{"type":"string"},"type":"array","title":"Evidence Ids"}},"additionalProperties":false,"type":"object","required":["link_id","entity_id","property_type_id","target_entity_id","run_id","as_of","status","freshness","written_by","evidence_ids"],"title":"EntityLink"},"EntityPageResponse":{"properties":{"evaluated_at":{"type":"string","format":"date-time","title":"Evaluated At"},"properties":{"items":{"$ref":"#/components/schemas/upsmith_knowledge_contracts__properties__PropertyDefinition"},"type":"array","title":"Properties"},"facts":{"items":{"$ref":"#/components/schemas/PropertyValue"},"type":"array","title":"Facts"},"evidence":{"items":{"$ref":"#/components/schemas/upsmith_knowledge_contracts__properties__EvidenceReference"},"type":"array","title":"Evidence","default":[]},"entity_type_id":{"type":"string","title":"Entity Type Id"},"total":{"type":"integer","title":"Total"},"entity_ids":{"items":{"type":"string"},"type":"array","title":"Entity Ids"},"records":{"additionalProperties":{"$ref":"#/components/schemas/RecordLabel"},"type":"object","title":"Records"}},"additionalProperties":false,"type":"object","required":["evaluated_at","properties","facts","entity_type_id","total","entity_ids"],"title":"EntityPageResponse"},"EntityReference":{"properties":{"id":{"type":"string","title":"Id"},"entity_type_id":{"type":"string","title":"Entity Type Id"}},"additionalProperties":false,"type":"object","required":["id","entity_type_id"],"title":"EntityReference"},"EntityTypeCoverageResponse":{"properties":{"evaluated_at":{"type":"string","format":"date-time","title":"Evaluated At"},"entity_type_id":{"type":"string","title":"Entity Type Id"},"total":{"type":"integer","title":"Total"},"needs_attention":{"type":"integer","title":"Needs Attention"},"properties":{"items":{"$ref":"#/components/schemas/upsmith_knowledge_contracts__properties__PropertyDefinition"},"type":"array","title":"Properties"},"coverage":{"items":{"$ref":"#/components/schemas/PropertyCoverage"},"type":"array","title":"Coverage"}},"additionalProperties":false,"type":"object","required":["evaluated_at","entity_type_id","total","needs_attention","properties","coverage"],"title":"EntityTypeCoverageResponse"},"EntityTypeDefinition":{"properties":{"id":{"type":"string","title":"Id"},"key":{"type":"string","title":"Key"},"label":{"type":"string","title":"Label"},"match_facts":{"items":{"type":"string"},"type":"array","title":"Match Facts"}},"additionalProperties":false,"type":"object","required":["id","key","label","match_facts"],"title":"EntityTypeDefinition"},"EntityTypesResponse":{"properties":{"entity_types":{"items":{"$ref":"#/components/schemas/EntityTypeDefinition"},"type":"array","title":"Entity Types"}},"additionalProperties":false,"type":"object","required":["entity_types"],"title":"EntityTypesResponse"},"EntityViewResponse":{"properties":{"evaluated_at":{"type":"string","format":"date-time","title":"Evaluated At"},"properties":{"items":{"$ref":"#/components/schemas/upsmith_knowledge_contracts__properties__PropertyDefinition"},"type":"array","title":"Properties"},"facts":{"items":{"$ref":"#/components/schemas/PropertyValue"},"type":"array","title":"Facts"},"evidence":{"items":{"$ref":"#/components/schemas/upsmith_knowledge_contracts__properties__EvidenceReference"},"type":"array","title":"Evidence","default":[]},"entity_id":{"type":"string","title":"Entity Id"},"entity_types":{"items":{"$ref":"#/components/schemas/EntityTypeDefinition"},"type":"array","title":"Entity Types"},"entities":{"items":{"$ref":"#/components/schemas/EntityReference"},"type":"array","title":"Entities"},"links":{"items":{"$ref":"#/components/schemas/EntityLink"},"type":"array","title":"Links"},"correction_run_ids":{"items":{"type":"string"},"type":"array","title":"Correction Run Ids","default":[]},"correctable_property_ids":{"items":{"type":"string"},"type":"array","title":"Correctable Property Ids","default":[]},"part_actions":{"items":{"$ref":"#/components/schemas/PartAction"},"type":"array","title":"Part Actions","default":[]},"check_by":{"additionalProperties":{"type":"string","format":"date-time"},"type":"object","title":"Check By"},"revert_to":{"additionalProperties":{"$ref":"#/components/schemas/RevertTarget"},"type":"object","title":"Revert To"},"records":{"additionalProperties":{"$ref":"#/components/schemas/RecordLabel"},"type":"object","title":"Records"}},"additionalProperties":false,"type":"object","required":["evaluated_at","properties","facts","entity_id","entity_types","entities","links"],"title":"EntityViewResponse"},"EntryPreflightRequest":{"properties":{"value":{"anyOf":[{"type":"string"},{"type":"integer"},{"type":"number"},{"type":"boolean"},{"items":{"type":"string"},"type":"array"},{"items":{"type":"integer"},"type":"array"},{"additionalProperties":true,"type":"object"},{"items":{},"type":"array"},{"type":"null"}],"title":"Value"}},"type":"object","title":"EntryPreflightRequest"},"EnumChoiceTarget":{"properties":{"kind":{"type":"string","const":"enum_choice","title":"Kind","default":"enum_choice"},"field_key":{"type":"string","pattern":"^[a-z][a-z0-9_]{0,63}$","title":"Field Key"},"choice":{"type":"string","maxLength":1000,"minLength":1,"title":"Choice"}},"additionalProperties":false,"type":"object","required":["field_key","choice"],"title":"EnumChoiceTarget"},"EquipmentClassificationResponse":{"properties":{"schema_version":{"type":"integer","const":1,"title":"Schema Version","default":1},"classification_id":{"type":"string","minLength":1,"pattern":"\\S","title":"Classification Id"},"organization_id":{"type":"string","minLength":1,"pattern":"\\S","title":"Organization Id"},"st_customer_id":{"type":"integer","exclusiveMinimum":0.0,"title":"St Customer Id"},"canonical_st_customer_id":{"type":"integer","exclusiveMinimum":0.0,"title":"Canonical St Customer Id"},"st_location_id":{"type":"integer","exclusiveMinimum":0.0,"title":"St Location Id"},"as_of":{"type":"string","format":"date-time","title":"As Of"},"systems":{"items":{"$ref":"#/components/schemas/SystemClassification"},"type":"array","title":"Systems"},"system_count":{"$ref":"#/components/schemas/ClassifiedValue_Annotated_int__FieldInfo_annotation_NoneType__required_True__metadata__Strict_strict_True___Ge_ge_0_____"},"has_10_plus_system":{"$ref":"#/components/schemas/ClassifiedValue_Annotated_bool__Strict_strict_True___"},"evidence":{"items":{"$ref":"#/components/schemas/upsmith_equipment_contracts__classification__EvidenceReference"},"type":"array","title":"Evidence"}},"additionalProperties":false,"type":"object","required":["classification_id","organization_id","st_customer_id","canonical_st_customer_id","st_location_id","as_of","systems","system_count","has_10_plus_system","evidence"],"title":"EquipmentClassificationResponse"},"EscalationActionResponse":{"properties":{"organization_id":{"type":"string","title":"Organization Id"},"escalation_ids":{"items":{"type":"string"},"type":"array","title":"Escalation Ids"},"action":{"type":"string","enum":["resolved","archived"],"title":"Action"},"action_at":{"type":"string","format":"date-time","title":"Action At"}},"type":"object","required":["organization_id","action","action_at"],"title":"EscalationActionResponse"},"EscalationAssignmentRequest":{"properties":{"escalation_id":{"type":"string","title":"Escalation Id"},"assignee_user_id":{"type":"string","title":"Assignee User Id"},"assigned_by_user_id":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Assigned By User Id"}},"type":"object","required":["escalation_id","assignee_user_id"],"title":"EscalationAssignmentRequest"},"EscalationBasicPublic":{"properties":{"escalation_id":{"type":"string","title":"Escalation Id"},"escalation_group_id":{"type":"string","title":"Escalation Group Id"},"engagement_id":{"type":"string","title":"Engagement Id"},"customer":{"anyOf":[{"$ref":"#/components/schemas/EscalationCustomerPublic"},{"type":"null"}]},"position":{"type":"number","title":"Position"},"reason":{"$ref":"#/components/schemas/SupportReason"},"summary":{"type":"string","title":"Summary"},"note":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Note"},"status":{"$ref":"#/components/schemas/EscalationStatus"},"assigned_to":{"anyOf":[{"$ref":"#/components/schemas/UserBasicPublic"},{"type":"null"}]},"resolved_at":{"anyOf":[{"type":"string","format":"date-time"},{"type":"null"}],"title":"Resolved At"},"archived_at":{"anyOf":[{"type":"string","format":"date-time"},{"type":"null"}],"title":"Archived At"},"created_at":{"type":"string","format":"date-time","title":"Created At"},"updated_at":{"type":"string","format":"date-time","title":"Updated At"},"note_events":{"items":{"$ref":"#/components/schemas/EscalationNoteEventPublic"},"type":"array","title":"Note Events","default":[]},"resolution":{"anyOf":[{"$ref":"#/components/schemas/EscalationResolutionPublic"},{"type":"null"}]}},"type":"object","required":["escalation_id","escalation_group_id","engagement_id","position","reason","summary","status","created_at","updated_at"],"title":"EscalationBasicPublic"},"EscalationCustomerPublic":{"properties":{"contact_id":{"type":"string","title":"Contact Id"},"name":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Name"},"st_customer_id":{"anyOf":[{"type":"integer"},{"type":"null"}],"title":"St Customer Id"},"service_address":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Service Address"},"phone":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Phone"},"href":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Href"}},"type":"object","required":["contact_id"],"title":"EscalationCustomerPublic","description":"Who an escalation is about.\n\n``service_address`` is carried alongside ``name`` rather than as a fallback:\nServiceTitan names are frequently placeholders (\"current resident\"), so the\naddress is often the only field that identifies the record.\n\n``phone`` is the number the escalation can be followed up on. A lead that\nnever gave a name and was never matched to a ServiceTitan customer has\nneither ``name`` nor ``service_address``, so it is often the only thing on\nthe card that makes the customer reachable."},"EscalationEmailsBody":{"properties":{"enabled":{"type":"boolean","title":"Enabled"}},"type":"object","required":["enabled"],"title":"EscalationEmailsBody"},"EscalationGroupViewPublic":{"properties":{"escalation_group_id":{"type":"string","title":"Escalation Group Id"},"name":{"type":"string","title":"Name"},"position":{"type":"number","title":"Position"},"is_default":{"type":"boolean","title":"Is Default"},"created_at":{"type":"string","format":"date-time","title":"Created At"},"updated_at":{"type":"string","format":"date-time","title":"Updated At"},"escalations":{"items":{"$ref":"#/components/schemas/EscalationBasicPublic"},"type":"array","title":"Escalations","default":[]}},"type":"object","required":["escalation_group_id","name","position","is_default","created_at","updated_at"],"title":"EscalationGroupViewPublic"},"EscalationIdsRequest":{"properties":{"organization_id":{"type":"string","title":"Organization Id"},"escalation_ids":{"items":{"type":"string"},"type":"array","maxItems":50,"minItems":1,"title":"Escalation Ids"}},"type":"object","required":["organization_id","escalation_ids"],"title":"EscalationIdsRequest"},"EscalationInspectionResponse":{"properties":{"organization_id":{"type":"string","title":"Organization Id"},"escalations":{"items":{"$ref":"#/components/schemas/EscalationPublic"},"type":"array","title":"Escalations"},"missing_escalation_ids":{"items":{"type":"string"},"type":"array","title":"Missing Escalation Ids"}},"type":"object","required":["organization_id"],"title":"EscalationInspectionResponse"},"EscalationNoteEventPublic":{"properties":{"id":{"type":"string","title":"Id"},"event_type":{"type":"string","title":"Event Type"},"note_text":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Note Text"},"created_at":{"type":"string","format":"date-time","title":"Created At"},"saved_by":{"anyOf":[{"$ref":"#/components/schemas/UserBasicPublic"},{"type":"null"}]}},"type":"object","required":["id","event_type","created_at"],"title":"EscalationNoteEventPublic"},"EscalationPublic":{"properties":{"id":{"type":"string","title":"Id"},"organization_id":{"type":"string","title":"Organization Id"},"created_at":{"anyOf":[{"type":"string","format":"date-time"},{"type":"null"}],"title":"Created At"},"updated_at":{"anyOf":[{"type":"string","format":"date-time"},{"type":"null"}],"title":"Updated At"},"deleted_at":{"anyOf":[{"type":"string","format":"date-time"},{"type":"null"}],"title":"Deleted At"},"engagement_id":{"type":"string","title":"Engagement Id"},"escalation_group_id":{"type":"string","title":"Escalation Group Id"},"reason":{"$ref":"#/components/schemas/SupportReason"},"summary":{"type":"string","title":"Summary"},"note":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Note"},"position":{"type":"number","title":"Position"},"assigned_at":{"anyOf":[{"type":"string","format":"date-time"},{"type":"null"}],"title":"Assigned At"},"assigned_to":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Assigned To"},"resolved_at":{"anyOf":[{"type":"string","format":"date-time"},{"type":"null"}],"title":"Resolved At"},"archived_at":{"anyOf":[{"type":"string","format":"date-time"},{"type":"null"}],"title":"Archived At"}},"type":"object","required":["id","organization_id","engagement_id","escalation_group_id","reason","summary","position"],"title":"EscalationPublic"},"EscalationReachability":{"properties":{"module_active":{"type":"boolean","title":"Module Active"},"subscribed_count":{"type":"integer","minimum":0.0,"title":"Subscribed Count","default":0},"reachable_count":{"type":"integer","minimum":0.0,"title":"Reachable Count","default":0},"reason_counts":{"additionalProperties":{"type":"integer"},"type":"object","title":"Reason Counts"},"source":{"$ref":"#/components/schemas/ReachabilitySource","default":"rules"},"rule_count":{"type":"integer","minimum":0.0,"title":"Rule Count","default":0},"invalid_rule_count":{"type":"integer","minimum":0.0,"title":"Invalid Rule Count","default":0},"rotation_count":{"type":"integer","minimum":0.0,"title":"Rotation Count","default":0},"empty_rotation_ids":{"items":{"type":"string"},"type":"array","title":"Empty Rotation Ids"}},"type":"object","required":["module_active"],"title":"EscalationReachability"},"EscalationReachabilityRequest":{"properties":{"organization_id":{"type":"string","title":"Organization Id"},"agent_v2_ids":{"items":{"type":"string"},"type":"array","maxItems":100,"title":"Agent V2 Ids"},"roster_ids":{"items":{"type":"string"},"type":"array","maxItems":100,"title":"Roster Ids"},"check_recipients":{"type":"boolean","title":"Check Recipients","default":true}},"type":"object","required":["organization_id"],"title":"EscalationReachabilityRequest"},"EscalationReasonChangeEventPublic":{"properties":{"id":{"type":"string","title":"Id"},"from_reason":{"type":"string","title":"From Reason"},"to_reason":{"type":"string","title":"To Reason"},"event_type":{"type":"string","title":"Event Type"},"saved_by":{"anyOf":[{"$ref":"#/components/schemas/UserBasicPublic"},{"type":"null"}]},"created_at":{"type":"string","format":"date-time","title":"Created At"}},"type":"object","required":["id","from_reason","to_reason","event_type","created_at"],"title":"EscalationReasonChangeEventPublic"},"EscalationResolutionPublic":{"properties":{"id":{"type":"string","title":"Id"},"event_type":{"type":"string","title":"Event Type"},"source":{"type":"string","title":"Source"},"created_at":{"type":"string","format":"date-time","title":"Created At"},"saved_by":{"anyOf":[{"$ref":"#/components/schemas/UserBasicPublic"},{"type":"null"}]}},"type":"object","required":["id","event_type","source","created_at"],"title":"EscalationResolutionPublic","description":"The transition that put the escalation in its current resolved state.\n\n``saved_by`` is null whenever ``source`` is not ``user`` — an automatic\nresolve has no person behind it — so clients must branch on ``source``\nrather than treating a missing user as unknown attribution."},"EscalationStatus":{"type":"string","enum":["open","claimed","resolved"],"title":"EscalationStatus"},"EscalationStep":{"properties":{"delay_minutes":{"type":"integer","maximum":10080.0,"minimum":0.0,"title":"Delay Minutes"},"recipients":{"items":{"$ref":"#/components/schemas/RecipientRef"},"type":"array","minItems":1,"title":"Recipients"}},"additionalProperties":false,"type":"object","required":["delay_minutes","recipients"],"title":"EscalationStep","description":"One rung: how long to wait, and who to tell.\n\nThe delay counts from the first message sent, not from the previous step, so a step that\nfires late does not push the later ones later."},"EvaluateFlagContext":{"properties":{"context_kind":{"type":"string","enum":["server","organization","user","contact","engagement","agent_v2"],"title":"Context Kind"},"context_key":{"type":"string","title":"Context Key"},"context_name":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Context Name"},"attributes":{"additionalProperties":{"anyOf":[{"type":"boolean"},{"type":"integer"},{"type":"number"},{"type":"string"}]},"type":"object","title":"Attributes"}},"type":"object","required":["context_kind","context_key"],"title":"EvaluateFlagContext"},"EvaluateFlagRequest":{"properties":{"key":{"type":"string","title":"Key"},"context_kind":{"type":"string","enum":["server","organization","user","contact","engagement","agent_v2"],"title":"Context Kind"},"context_key":{"type":"string","title":"Context Key"},"default":{"anyOf":[{"type":"boolean"},{"type":"integer"},{"type":"number"},{"type":"string"}],"title":"Default"},"context_name":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Context Name"},"additional_contexts":{"items":{"$ref":"#/components/schemas/EvaluateFlagContext"},"type":"array","maxItems":4,"title":"Additional Contexts"}},"type":"object","required":["key","context_kind","context_key","default"],"title":"EvaluateFlagRequest","description":"Request body for POST /admin/ld-flags/evaluate.\n\n`context_kind` is \"server\" (global kill-switches), \"organization\"\n(org-scoped targeting), \"agent_v2\" (per-AgentV2 targeting),\n\"user\" (per-user targeting), \"contact\"\n(per-contact rollouts — percentage rollouts bucket by the contact key), or\n\"engagement\" (per-engagement rollouts — percentage rollouts bucket by the\nengagement key, so each engagement is bucketed independently).\n`context_key` is \"server\" for server context, the organization id for\norganization context, the AgentV2 id for AgentV2 context, the user's email\nfor user context, the contact id for contact context, or the engagement id\nfor engagement context.\n`context_name`, when set, is applied\nas the LD context's built-in `name` attribute so targeting rules that match\non `name` (e.g. an org-name allowlist) fire for backend evaluations."},"EvaluateFlagResponse":{"properties":{"value":{"anyOf":[{"type":"boolean"},{"type":"integer"},{"type":"number"},{"type":"string"}],"title":"Value"}},"type":"object","required":["value"],"title":"EvaluateFlagResponse","description":"Response body for POST /admin/ld-flags/evaluate."},"Event":{"properties":{"organization_id":{"type":"string","title":"Organization Id"},"created_at":{"type":"string","format":"date-time","title":"Created At"},"updated_at":{"type":"string","format":"date-time","title":"Updated At"},"deleted_at":{"anyOf":[{"type":"string","format":"date-time"},{"type":"null"}],"title":"Deleted At"},"id":{"type":"string","title":"Id"},"engagement_id":{"type":"string","title":"Engagement Id"},"origin":{"$ref":"#/components/schemas/EventOrigin"},"role":{"$ref":"#/components/schemas/EventRole"},"type":{"$ref":"#/components/schemas/EventType"},"user_id":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"User Id"},"agent_variant_id":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Agent Variant Id"},"version_hash":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Version Hash"}},"type":"object","required":["organization_id","engagement_id","origin","role","type"],"title":"Event"},"EventActionInput":{"properties":{"engagement_id":{"type":"string","title":"Engagement Id"},"tool_id":{"type":"string","title":"Tool Id"},"input":{"additionalProperties":true,"type":"object","title":"Input"}},"type":"object","required":["engagement_id","tool_id","input"],"title":"EventActionInput"},"EventActionPublic":{"properties":{"id":{"type":"string","title":"Id"},"tool_module_id":{"type":"string","title":"Tool Module Id"},"success":{"anyOf":[{"type":"boolean"},{"type":"null"}],"title":"Success"},"type":{"anyOf":[{"$ref":"#/components/schemas/EventActionType"},{"type":"null"}]},"invocation_source":{"anyOf":[{"$ref":"#/components/schemas/InvocationSource"},{"type":"null"}]},"input":{"type":"string","title":"Input"},"output":{"type":"string","title":"Output"}},"type":"object","required":["id","tool_module_id","input","output"],"title":"EventActionPublic"},"EventActionType":{"type":"string","enum":["booking","booking_request"],"title":"EventActionType"},"EventFilterPublic":{"properties":{"id":{"type":"string","title":"Id"},"organization_id":{"type":"string","title":"Organization Id"},"trigger_id":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Trigger Id"},"campaign_id":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Campaign Id"},"filter_type":{"type":"string","title":"Filter Type"},"params":{"additionalProperties":true,"type":"object","title":"Params"},"enabled":{"type":"boolean","title":"Enabled","default":true},"sort_order":{"type":"integer","title":"Sort Order","default":0},"label":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Label"},"created_at":{"anyOf":[{"type":"string","format":"date-time"},{"type":"null"}],"title":"Created At"},"updated_at":{"anyOf":[{"type":"string","format":"date-time"},{"type":"null"}],"title":"Updated At"}},"type":"object","required":["id","organization_id","filter_type","params"],"title":"EventFilterPublic"},"EventFilterTypePublic":{"properties":{"id":{"type":"string","title":"Id"},"key":{"type":"string","title":"Key"},"label":{"type":"string","title":"Label"},"schema_":{"additionalProperties":true,"type":"object","title":"Schema"},"input_hints":{"anyOf":[{"additionalProperties":true,"type":"object"},{"type":"null"}],"title":"Input Hints"},"applies_to":{"anyOf":[{"items":{},"type":"array"},{"type":"null"}],"title":"Applies To"},"sort_order":{"type":"integer","title":"Sort Order","default":0},"created_at":{"anyOf":[{"type":"string","format":"date-time"},{"type":"null"}],"title":"Created At"},"updated_at":{"anyOf":[{"type":"string","format":"date-time"},{"type":"null"}],"title":"Updated At"}},"type":"object","required":["id","key","label","schema_"],"title":"EventFilterTypePublic"},"EventInteractionInput":{"properties":{"engagement_id":{"type":"string","title":"Engagement Id"},"content":{"type":"string","title":"Content"},"origin":{"anyOf":[{"$ref":"#/components/schemas/EventOrigin"},{"type":"null"}]},"image_id":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Image Id"}},"type":"object","required":["engagement_id","content"],"title":"EventInteractionInput"},"EventInteractionPublic":{"properties":{"id":{"type":"string","title":"Id"},"channel_id":{"type":"string","title":"Channel Id"},"contact_method_id":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Contact Method Id"},"image_id":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Image Id"},"external_id":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"External Id"},"twilio_message_status":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Twilio Message Status"},"twilio_error_code":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Twilio Error Code"},"telnyx_message_status":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Telnyx Message Status"},"telnyx_error_code":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Telnyx Error Code"},"metadata_json":{"anyOf":[{"additionalProperties":true,"type":"object"},{"type":"null"}],"title":"Metadata Json"},"status":{"$ref":"#/components/schemas/EventInteractionStatus"},"content":{"type":"string","title":"Content"},"translated_content":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Translated Content"},"deliver_after":{"anyOf":[{"type":"string","format":"date-time"},{"type":"null"}],"title":"Deliver After"}},"type":"object","required":["id","channel_id","status","content"],"title":"EventInteractionPublic"},"EventInteractionStatus":{"type":"string","enum":["pending","delivered","received","failed"],"title":"EventInteractionStatus"},"EventLLMResponsePublic":{"properties":{"id":{"type":"string","title":"Id"},"phase":{"$ref":"#/components/schemas/LLMPhase"},"model":{"type":"string","title":"Model"},"content":{"anyOf":[{"additionalProperties":true,"type":"object"},{"items":{},"type":"array"},{"type":"string"},{"type":"null"}],"title":"Content"},"duration_ms":{"anyOf":[{"type":"integer"},{"type":"null"}],"title":"Duration Ms"}},"type":"object","required":["id","phase","model"],"title":"EventLLMResponsePublic"},"EventOrigin":{"type":"string","enum":["internal","external"],"title":"EventOrigin"},"EventPublicWithChildren":{"properties":{"id":{"type":"string","title":"Id"},"organization_id":{"type":"string","title":"Organization Id"},"engagement_id":{"type":"string","title":"Engagement Id"},"origin":{"$ref":"#/components/schemas/EventOrigin"},"role":{"$ref":"#/components/schemas/EventRole"},"type":{"$ref":"#/components/schemas/EventType"},"user_id":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"User Id"},"created_at":{"type":"string","format":"date-time","title":"Created At"},"updated_at":{"type":"string","format":"date-time","title":"Updated At"},"deleted_at":{"anyOf":[{"type":"string","format":"date-time"},{"type":"null"}],"title":"Deleted At"},"interaction":{"anyOf":[{"$ref":"#/components/schemas/EventInteractionPublic"},{"type":"null"}]},"action":{"anyOf":[{"$ref":"#/components/schemas/EventActionPublic"},{"type":"null"}]},"llm_response":{"anyOf":[{"$ref":"#/components/schemas/EventLLMResponsePublic"},{"type":"null"}]}},"type":"object","required":["id","organization_id","engagement_id","origin","role","type","created_at","updated_at"],"title":"EventPublicWithChildren","description":"Adds the polymorphic children so the response carries whichever child\n(interaction / action / llm_response) matches the event type. The source\nORM eager-loads all three (``lazy=\"selectin\"`` on the relationships), so\nreading them during from_attributes serialization doesn't trip a lazy-load."},"EventRole":{"type":"string","enum":["user","agent","contact","provider"],"title":"EventRole"},"EventType":{"type":"string","enum":["action","interaction","llm_response"],"title":"EventType"},"ExistingSetupNumber":{"properties":{"phone_number":{"type":"string","title":"Phone Number"},"provider":{"$ref":"#/components/schemas/MessagingProvider"},"ready":{"type":"boolean","title":"Ready"}},"type":"object","required":["phone_number","provider","ready"],"title":"ExistingSetupNumber"},"ExperimentArmInput":{"properties":{"key":{"type":"string","maxLength":64,"minLength":1,"pattern":"^[A-Za-z0-9_-]+$","title":"Key"},"name":{"type":"string","maxLength":400,"minLength":1,"title":"Name"},"role":{"$ref":"#/components/schemas/ExperimentArmRole"},"allocation_percentage":{"anyOf":[{"type":"number","maximum":100.0,"exclusiveMinimum":0.0},{"type":"string","pattern":"^(?!^[-+.]*$)[+-]?0*\\d*\\.?\\d{0,2}0*$"}],"title":"Allocation Percentage"},"target":{"anyOf":[{"$ref":"#/components/schemas/ExperimentTypedReference"},{"type":"null"}]},"change_spec":{"anyOf":[{"$ref":"#/components/schemas/ExperimentChangeSpec"},{"type":"null"}]}},"type":"object","required":["key","name","role","allocation_percentage"],"title":"ExperimentArmInput"},"ExperimentArmPublic":{"properties":{"id":{"type":"string","title":"Id"},"key":{"type":"string","title":"Key"},"name":{"type":"string","title":"Name"},"role":{"$ref":"#/components/schemas/ExperimentArmRole"},"allocation_percentage":{"type":"string","pattern":"^(?!^[-+.]*$)[+-]?0*\\d*\\.?\\d*$","title":"Allocation Percentage"},"target":{"anyOf":[{"$ref":"#/components/schemas/ExperimentTypedReference"},{"type":"null"}]},"change_spec":{"anyOf":[{"$ref":"#/components/schemas/ExperimentChangeSpec"},{"type":"null"}]}},"type":"object","required":["id","key","name","role","allocation_percentage"],"title":"ExperimentArmPublic"},"ExperimentArmRole":{"type":"string","enum":["control","candidate"],"title":"ExperimentArmRole"},"ExperimentAudiencePreview":{"properties":{"participants":{"items":{"$ref":"#/components/schemas/ExperimentParticipantPreview"},"type":"array","title":"Participants"}},"type":"object","title":"ExperimentAudiencePreview"},"ExperimentChangeSpec":{"properties":{"objective_links":{"items":{"$ref":"#/components/schemas/ChangeSpecObjectiveLink"},"type":"array","title":"Objective Links"},"hook_links":{"items":{"$ref":"#/components/schemas/ChangeSpecHookLink"},"type":"array","title":"Hook Links"},"model":{"anyOf":[{"type":"string","maxLength":128,"minLength":1},{"type":"null"}],"title":"Model"},"system_prompt_components":{"anyOf":[{"items":{"$ref":"#/components/schemas/SystemPromptComponentReference"},"type":"array"},{"type":"null"}],"title":"System Prompt Components"}},"type":"object","title":"ExperimentChangeSpec","description":"The delta a multi-participant candidate arm applies per participant — either an\nobjective/hook link repoint to a global version, or a model override (the all-agents\nfleet scope). An arm carries link repoints or a model, never both."},"ExperimentConclusion":{"type":"string","enum":["won","lost","inconclusive","stopped_early","invalid"],"title":"ExperimentConclusion"},"ExperimentCreate":{"properties":{"name":{"type":"string","maxLength":400,"minLength":1,"title":"Name"},"hypothesis":{"type":"string","maxLength":3000,"minLength":1,"title":"Hypothesis"},"scope":{"$ref":"#/components/schemas/ExperimentTypedReference"},"assignment_unit_type":{"type":"string","maxLength":64,"minLength":1,"title":"Assignment Unit Type"},"enrollment_percentage":{"anyOf":[{"type":"number","maximum":100.0,"exclusiveMinimum":0.0},{"type":"string","pattern":"^(?!^[-+.]*$)[+-]?0*\\d*\\.?\\d{0,2}0*$"}],"title":"Enrollment Percentage"},"arms":{"items":{"$ref":"#/components/schemas/ExperimentArmInput"},"type":"array","maxItems":20,"minItems":2,"title":"Arms"},"primary_metric_key":{"type":"string","title":"Primary Metric Key"},"guardrail_metric_keys":{"items":{"type":"string"},"type":"array","title":"Guardrail Metric Keys"},"relative_mde":{"anyOf":[{"type":"number","maximum":5.0,"exclusiveMinimum":0.0},{"type":"string","pattern":"^(?!^[-+.]*$)[+-]?0*\\d*\\.?\\d{0,4}0*$"}],"title":"Relative Mde","default":"0.20"},"participants":{"items":{"$ref":"#/components/schemas/ExperimentParticipantInput"},"type":"array","title":"Participants"}},"type":"object","required":["name","hypothesis","scope","assignment_unit_type","enrollment_percentage","arms","primary_metric_key"],"title":"ExperimentCreate"},"ExperimentMetricDefinitionPublic":{"properties":{"key":{"type":"string","title":"Key"},"name":{"type":"string","title":"Name"},"description":{"type":"string","title":"Description"},"available":{"type":"boolean","title":"Available"},"unavailable_reason":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Unavailable Reason"},"allowed_as_guardrail":{"type":"boolean","title":"Allowed As Guardrail","default":true},"scope_types":{"items":{"type":"string"},"type":"array","title":"Scope Types"}},"type":"object","required":["key","name","description","available","scope_types"],"title":"ExperimentMetricDefinitionPublic"},"ExperimentPagePublic":{"properties":{"items":{"items":{"$ref":"#/components/schemas/ExperimentPublic"},"type":"array","title":"Items"},"total":{"type":"integer","title":"Total"}},"type":"object","required":["items","total"],"title":"ExperimentPagePublic"},"ExperimentParticipantInput":{"properties":{"organization_id":{"type":"string","minLength":1,"title":"Organization Id"},"agent_v2_id":{"type":"string","minLength":1,"title":"Agent V2 Id"}},"type":"object","required":["organization_id","agent_v2_id"],"title":"ExperimentParticipantInput"},"ExperimentParticipantPreview":{"properties":{"organization_id":{"type":"string","title":"Organization Id"},"agent_v2_id":{"type":"string","title":"Agent V2 Id"},"organization_name":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Organization Name"},"agent_name":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Agent Name"},"current_id":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Current Id"},"no_op":{"type":"boolean","title":"No Op","default":false},"linked_objective_group_ids":{"items":{"type":"string"},"type":"array","title":"Linked Objective Group Ids"}},"type":"object","required":["organization_id","agent_v2_id"],"title":"ExperimentParticipantPreview","description":"One derived-audience row for the create form: an eligible (org, agent), the id its\nproduction variant currently pins for the scoped group, and whether that already equals\na candidate id (a no-op arm for this participant → zero signal, suggest excluding)."},"ExperimentParticipantPublic":{"properties":{"id":{"type":"string","title":"Id"},"organization_id":{"type":"string","title":"Organization Id"},"agent_v2_id":{"type":"string","title":"Agent V2 Id"}},"type":"object","required":["id","organization_id","agent_v2_id"],"title":"ExperimentParticipantPublic"},"ExperimentProgress":{"properties":{"target_exposures":{"anyOf":[{"type":"integer"},{"type":"null"}],"title":"Target Exposures"},"accrued_exposures":{"type":"integer","title":"Accrued Exposures"},"fraction":{"anyOf":[{"type":"number"},{"type":"null"}],"title":"Fraction"},"per_variation":{"additionalProperties":{"type":"integer"},"type":"object","title":"Per Variation"},"observed_daily_rate":{"type":"number","title":"Observed Daily Rate"},"estimated_days_remaining":{"anyOf":[{"type":"integer"},{"type":"null"}],"title":"Estimated Days Remaining"},"target_reached":{"type":"boolean","title":"Target Reached"}},"type":"object","required":["target_exposures","accrued_exposures","fraction","per_variation","observed_daily_rate","estimated_days_remaining","target_reached"],"title":"ExperimentProgress"},"ExperimentPublic":{"properties":{"id":{"type":"string","title":"Id"},"organization_id":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Organization Id"},"name":{"type":"string","title":"Name"},"hypothesis":{"type":"string","title":"Hypothesis"},"scope":{"$ref":"#/components/schemas/ExperimentTypedReference"},"assignment_unit_type":{"type":"string","title":"Assignment Unit Type"},"enrollment_percentage":{"type":"string","pattern":"^(?!^[-+.]*$)[+-]?0*\\d*\\.?\\d*$","title":"Enrollment Percentage"},"primary_metric_key":{"type":"string","title":"Primary Metric Key"},"guardrail_metric_keys":{"items":{"type":"string"},"type":"array","title":"Guardrail Metric Keys"},"relative_mde":{"anyOf":[{"type":"string","pattern":"^(?!^[-+.]*$)[+-]?0*\\d*\\.?\\d*$"},{"type":"null"}],"title":"Relative Mde"},"status":{"$ref":"#/components/schemas/ExperimentStatus"},"posthog_experiment_id":{"anyOf":[{"type":"integer"},{"type":"null"}],"title":"Posthog Experiment Id"},"posthog_feature_flag_id":{"anyOf":[{"type":"integer"},{"type":"null"}],"title":"Posthog Feature Flag Id"},"posthog_dashboard_id":{"anyOf":[{"type":"integer"},{"type":"null"}],"title":"Posthog Dashboard Id"},"posthog_feature_flag_key":{"type":"string","title":"Posthog Feature Flag Key"},"created_at":{"type":"string","format":"date-time","title":"Created At"},"updated_at":{"type":"string","format":"date-time","title":"Updated At"},"arms":{"items":{"$ref":"#/components/schemas/ExperimentArmPublic"},"type":"array","title":"Arms"},"participants":{"items":{"$ref":"#/components/schemas/ExperimentParticipantPublic"},"type":"array","title":"Participants"},"runs":{"items":{"$ref":"#/components/schemas/ExperimentRunPublic"},"type":"array","title":"Runs"},"progress":{"anyOf":[{"$ref":"#/components/schemas/ExperimentProgress"},{"type":"null"}]},"results":{"anyOf":[{"$ref":"#/components/schemas/ExperimentResults"},{"type":"null"}]}},"type":"object","required":["id","organization_id","name","hypothesis","scope","assignment_unit_type","enrollment_percentage","primary_metric_key","guardrail_metric_keys","relative_mde","status","posthog_experiment_id","posthog_feature_flag_id","posthog_dashboard_id","posthog_feature_flag_key","created_at","updated_at","arms","runs"],"title":"ExperimentPublic"},"ExperimentResults":{"properties":{"verdict":{"type":"string","title":"Verdict"},"primary":{"$ref":"#/components/schemas/MetricVerdictPublic"},"guardrails":{"items":{"$ref":"#/components/schemas/MetricVerdictPublic"},"type":"array","title":"Guardrails"},"fetched_at":{"type":"string","format":"date-time","title":"Fetched At"},"stale":{"type":"boolean","title":"Stale"}},"type":"object","required":["verdict","primary","guardrails","fetched_at","stale"],"title":"ExperimentResults"},"ExperimentRunArmPublic":{"properties":{"id":{"type":"string","title":"Id"},"key":{"type":"string","title":"Key"},"name":{"type":"string","title":"Name"},"role":{"$ref":"#/components/schemas/ExperimentArmRole"},"allocation_percentage":{"type":"string","pattern":"^(?!^[-+.]*$)[+-]?0*\\d*\\.?\\d*$","title":"Allocation Percentage"},"target":{"anyOf":[{"$ref":"#/components/schemas/ExperimentTypedReference"},{"type":"null"}]}},"type":"object","required":["id","key","name","role","allocation_percentage"],"title":"ExperimentRunArmPublic"},"ExperimentRunPublic":{"properties":{"id":{"type":"string","title":"Id"},"run_number":{"type":"integer","title":"Run Number"},"status":{"$ref":"#/components/schemas/ExperimentRunStatus"},"started_at":{"anyOf":[{"type":"string","format":"date-time"},{"type":"null"}],"title":"Started At"},"ended_at":{"anyOf":[{"type":"string","format":"date-time"},{"type":"null"}],"title":"Ended At"},"config_hash":{"type":"string","title":"Config Hash"},"arms":{"items":{"$ref":"#/components/schemas/ExperimentRunArmPublic"},"type":"array","title":"Arms"}},"type":"object","required":["id","run_number","status","started_at","ended_at","config_hash","arms"],"title":"ExperimentRunPublic"},"ExperimentRunStatus":{"type":"string","enum":["pending","running","paused","ended"],"title":"ExperimentRunStatus"},"ExperimentStatus":{"type":"string","enum":["draft","running","paused","ended"],"title":"ExperimentStatus"},"ExperimentTypedReference":{"properties":{"type":{"type":"string","maxLength":64,"minLength":1,"title":"Type"},"id":{"type":"string","minLength":1,"title":"Id"}},"type":"object","required":["type","id"],"title":"ExperimentTypedReference"},"ExperimentUpdate":{"properties":{"name":{"anyOf":[{"type":"string","maxLength":400,"minLength":1},{"type":"null"}],"title":"Name"},"hypothesis":{"anyOf":[{"type":"string","maxLength":3000,"minLength":1},{"type":"null"}],"title":"Hypothesis"},"scope":{"anyOf":[{"$ref":"#/components/schemas/ExperimentTypedReference"},{"type":"null"}]},"assignment_unit_type":{"anyOf":[{"type":"string","maxLength":64,"minLength":1},{"type":"null"}],"title":"Assignment Unit Type"},"enrollment_percentage":{"anyOf":[{"type":"number","maximum":100.0,"exclusiveMinimum":0.0},{"type":"string","pattern":"^(?!^[-+.]*$)[+-]?0*\\d*\\.?\\d{0,2}0*$"},{"type":"null"}],"title":"Enrollment Percentage"},"arms":{"anyOf":[{"items":{"$ref":"#/components/schemas/ExperimentArmInput"},"type":"array","maxItems":20,"minItems":2},{"type":"null"}],"title":"Arms"},"primary_metric_key":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Primary Metric Key"},"guardrail_metric_keys":{"anyOf":[{"items":{"type":"string"},"type":"array"},{"type":"null"}],"title":"Guardrail Metric Keys"},"relative_mde":{"anyOf":[{"type":"number","maximum":5.0,"exclusiveMinimum":0.0},{"type":"string","pattern":"^(?!^[-+.]*$)[+-]?0*\\d*\\.?\\d{0,4}0*$"},{"type":"null"}],"title":"Relative Mde"},"participants":{"anyOf":[{"items":{"$ref":"#/components/schemas/ExperimentParticipantInput"},"type":"array"},{"type":"null"}],"title":"Participants"}},"type":"object","title":"ExperimentUpdate"},"ExternalBlockPublic":{"properties":{"source":{"$ref":"#/components/schemas/DoNotContactSource"},"label":{"type":"string","title":"Label"}},"type":"object","required":["source","label"],"title":"ExternalBlockPublic","description":"A block we did not record and cannot lift: the shop's own ServiceTitan state.\n\nA pinned note becomes a stop request only when an engagement start reads it,\nso a contact can be blocked by one before any row exists. Either way the\noffice cannot clear it from here — it is theirs, in their system."},"FactCorrection":{"properties":{"property_id":{"type":"string","maxLength":255,"minLength":1,"pattern":"^\\S(?:.*\\S)?$","title":"Property Id"},"status":{"type":"string","enum":["known","unknown","disputed"],"title":"Status"},"value":{"title":"Value"},"note":{"type":"string","maxLength":500,"minLength":1,"pattern":"^\\S(?:.*\\S)?$","title":"Note"},"expected_run_id":{"type":"string","maxLength":255,"minLength":1,"pattern":"^\\S(?:.*\\S)?$","title":"Expected Run Id"}},"additionalProperties":false,"type":"object","required":["property_id","status","note","expected_run_id"],"title":"FactCorrection"},"FactHistoryResponse":{"properties":{"versions":{"items":{"$ref":"#/components/schemas/FactVersion"},"type":"array","title":"Versions"},"evidence":{"items":{"$ref":"#/components/schemas/upsmith_knowledge_contracts__properties__EvidenceReference"},"type":"array","title":"Evidence"},"records":{"additionalProperties":{"$ref":"#/components/schemas/RecordLabel"},"type":"object","title":"Records"}},"additionalProperties":false,"type":"object","required":["versions","evidence"],"title":"FactHistoryResponse"},"FactVersion":{"properties":{"fact_id":{"type":"string","title":"Fact Id"},"entity_id":{"type":"string","title":"Entity Id"},"property_type_id":{"type":"string","title":"Property Type Id"},"value":{"title":"Value"},"status":{"type":"string","enum":["known","unknown","disputed"],"title":"Status"},"run_id":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Run Id"},"reverts_id":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Reverts Id"},"written_by":{"type":"string","title":"Written By"},"as_of":{"type":"string","format":"date-time","title":"As Of"},"superseded_at":{"anyOf":[{"type":"string","format":"date-time"},{"type":"null"}],"title":"Superseded At"},"evidence_ids":{"items":{"type":"string"},"type":"array","title":"Evidence Ids"}},"additionalProperties":false,"type":"object","required":["fact_id","entity_id","property_type_id","value","status","run_id","reverts_id","written_by","as_of","superseded_at","evidence_ids"],"title":"FactVersion"},"FeatureRead":{"properties":{"id":{"type":"string","title":"Id"},"title":{"type":"string","title":"Title"},"description":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Description"},"href":{"type":"string","title":"Href"},"role":{"anyOf":[{"$ref":"#/components/schemas/FeatureRoleRead"},{"type":"null"}]},"roles":{"items":{"$ref":"#/components/schemas/FeatureRoleRead"},"type":"array","title":"Roles","default":[]}},"type":"object","required":["id","title","href"],"title":"FeatureRead"},"FeatureRoleRead":{"properties":{"id":{"type":"string","title":"Id"},"title":{"type":"string","title":"Title"},"is_inherited":{"type":"boolean","title":"Is Inherited"},"has_access":{"type":"boolean","title":"Has Access"},"can_mutate_documents":{"type":"boolean","title":"Can Mutate Documents"},"can_mutate_sessions":{"type":"boolean","title":"Can Mutate Sessions"},"can_toggle_agents":{"type":"boolean","title":"Can Toggle Agents"},"can_toggle_engagements":{"type":"boolean","title":"Can Toggle Engagements"}},"type":"object","required":["id","title","is_inherited","has_access","can_mutate_documents","can_mutate_sessions","can_toggle_agents","can_toggle_engagements"],"title":"FeatureRoleRead"},"FeedEventFeed":{"properties":{"id":{"type":"string","title":"Id"},"type":{"$ref":"#/components/schemas/NotificationType"},"title":{"type":"string","title":"Title"},"description":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Description"},"batchable":{"type":"boolean","title":"Batchable"},"retired":{"type":"boolean","title":"Retired","default":false}},"type":"object","required":["id","type","title","batchable"],"title":"FeedEventFeed"},"FeedRoster":{"properties":{"id":{"type":"string","title":"Id"},"title":{"type":"string","title":"Title"},"description":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Description"}},"type":"object","required":["id","title"],"title":"FeedRoster"},"FeedsResponse":{"properties":{"event_feeds":{"items":{"$ref":"#/components/schemas/FeedEventFeed"},"type":"array","title":"Event Feeds"},"rosters":{"items":{"$ref":"#/components/schemas/FeedRoster"},"type":"array","title":"Rosters"}},"type":"object","required":["event_feeds","rosters"],"title":"FeedsResponse"},"FireScheduledHookRequest":{"properties":{"trigger_id":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Trigger Id"}},"type":"object","title":"FireScheduledHookRequest"},"FirstSyncStatePublic":{"properties":{"status":{"$ref":"#/components/schemas/FirstSyncStatus"},"stale":{"type":"boolean","title":"Stale"},"installed_at":{"anyOf":[{"type":"string","format":"date-time"},{"type":"null"}],"title":"Installed At"},"started_at":{"anyOf":[{"type":"string","format":"date-time"},{"type":"null"}],"title":"Started At"},"last_activity_at":{"anyOf":[{"type":"string","format":"date-time"},{"type":"null"}],"title":"Last Activity At"},"full_history_in_progress":{"type":"boolean","title":"Full History In Progress"},"tables":{"items":{"$ref":"#/components/schemas/FirstSyncTablePublic"},"type":"array","title":"Tables"}},"type":"object","required":["status","stale","installed_at","started_at","last_activity_at","full_history_in_progress","tables"],"title":"FirstSyncStatePublic"},"FirstSyncStatus":{"type":"string","enum":["pending","running","done","failed"],"title":"FirstSyncStatus"},"FirstSyncTablePublic":{"properties":{"table_name":{"type":"string","title":"Table Name"},"label":{"type":"string","title":"Label"},"synced_at":{"anyOf":[{"type":"string","format":"date-time"},{"type":"null"}],"title":"Synced At"},"count":{"anyOf":[{"type":"integer"},{"type":"null"}],"title":"Count"},"disabled_reason":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Disabled Reason"},"failure":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Failure"}},"type":"object","required":["table_name","label","synced_at","count","disabled_reason","failure"],"title":"FirstSyncTablePublic"},"FollowupCadenceAnchor":{"type":"string","enum":["engagement_start","targeted_appointment"],"title":"FollowupCadenceAnchor","description":"What a sequence's touches are timed against.\n\n``ENGAGEMENT_START``: each touch's ``wait`` runs from the touch before it, the first\nfrom when the conversation opened. ``TARGETED_APPOINTMENT``: each touch's ``window``\nis a point in the arrival window of the appointment the engagement is about."},"FollowupCadenceAttachmentPublic":{"properties":{"campaign_id":{"type":"string","title":"Campaign Id"},"followup_cadence_id":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Followup Cadence Id"}},"type":"object","required":["campaign_id"],"title":"FollowupCadenceAttachmentPublic"},"FollowupCadenceDefinition":{"properties":{"anchor":{"$ref":"#/components/schemas/FollowupCadenceAnchor","default":"engagement_start"},"restart_after_reply":{"type":"boolean","title":"Restart After Reply","description":"Start a new sequence after the first delivered business reply in each customer reply cycle","default":false},"stop_when":{"items":{"$ref":"#/components/schemas/FollowupCadenceStopCondition"},"type":"array","title":"Stop When"},"touches":{"items":{"$ref":"#/components/schemas/FollowupCadenceTouch"},"type":"array","title":"Touches"},"weekdays_only":{"type":"boolean","title":"Weekdays Only","description":"Hold touches that come due on a weekend until Monday, in the org's timezone","default":false},"send_hours":{"anyOf":[{"$ref":"#/components/schemas/FollowupSendHours"},{"type":"null"}],"description":"Narrow the hours touches may fire, in the org's timezone; unset sends 8:00 AM to 9:00 PM"},"min_gap":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Min Gap","description":"Appointment anchor: the least time between two touches, e.g. '30m'; a touch closer than this to the one before it is dropped"}},"type":"object","title":"FollowupCadenceDefinition"},"FollowupCadencePublic":{"properties":{"id":{"type":"string","title":"Id"},"organization_id":{"type":"string","title":"Organization Id"},"name":{"type":"string","title":"Name"},"description":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Description"},"enabled":{"type":"boolean","title":"Enabled","default":false},"definition":{"$ref":"#/components/schemas/FollowupCadenceDefinition"},"definition_sha256":{"type":"string","title":"Definition Sha256"},"created_at":{"anyOf":[{"type":"string","format":"date-time"},{"type":"null"}],"title":"Created At"},"updated_at":{"anyOf":[{"type":"string","format":"date-time"},{"type":"null"}],"title":"Updated At"}},"type":"object","required":["id","organization_id","name","definition","definition_sha256"],"title":"FollowupCadencePublic"},"FollowupCadenceStopCondition":{"type":"string","enum":["customer_replied","appointment_booked","opted_out","missed_call_customer_handled","appointment_no_longer_scheduled","estimate_no_longer_open","invoice_no_longer_open","membership_no_longer_needed"],"title":"FollowupCadenceStopCondition","description":"Configurable reasons a run stops early.\n\nNarrower than ``FollowupCadenceStoppedReason`` on the run row: exhausting\nthe touch list and disabling the cadence also stop a run, but neither is\nsomething an author selects."},"FollowupCadenceTouch":{"properties":{"wait":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Wait","description":"Engagement-start anchor: delay from the previous touch, or from the anchor for the first, e.g. '7m' or '3d'"},"window":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Window","description":"Appointment anchor: a point in the arrival window — 'start', 'end', a percentage like '50%', optionally offset by a duration: 'start+30m', 'end-10m'"},"if_past":{"$ref":"#/components/schemas/TouchIfPast","description":"Appointment anchor: whether a touch whose moment has already passed when the sequence is scheduled fires at once or is dropped","default":"skip"},"action":{"$ref":"#/components/schemas/TouchAction"},"instructions":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Instructions","description":"Guidance to the agent for this touch, not literal send text"},"at":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"At","description":"Local time of day this touch fires, HH:MM in the org's timezone, e.g. '09:45'"}},"type":"object","required":["action"],"title":"FollowupCadenceTouch"},"FollowupSendHours":{"properties":{"start_hour":{"type":"integer","maximum":20.0,"minimum":8.0,"title":"Start Hour","description":"First local hour a touch may fire, e.g. 9 for 9:00 AM"},"end_hour":{"type":"integer","maximum":21.0,"minimum":9.0,"title":"End Hour","description":"Local hour sending stops, exclusive, e.g. 19 to send nothing from 7:00 PM"}},"type":"object","required":["start_hour","end_hour"],"title":"FollowupSendHours","description":"A cadence's own sending hours, inside the platform's follow-up window; it can only narrow it."},"FunctionEntry":{"properties":{"function_name":{"type":"string","title":"Function Name"},"args_schema":{"additionalProperties":true,"type":"object","title":"Args Schema"},"backends":{"items":{"$ref":"#/components/schemas/Backend"},"type":"array","title":"Backends"}},"additionalProperties":false,"type":"object","required":["function_name","args_schema","backends"],"title":"FunctionEntry"},"GaqlRequest":{"properties":{"organization_id":{"type":"string","title":"Organization Id","description":"organization.id (UUID) whose Google Ads credential authenticates the query."},"query":{"type":"string","title":"Query","description":"The GAQL SELECT to run, e.g. 'SELECT campaign.id, campaign.name FROM campaign'."},"customer_id":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Customer Id","description":"Google customer id to query (dashes optional). Omit to use the org's single active LSA account."},"login_customer_id":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Login Customer Id","description":"MCC id (dashes optional). When set + mapped to a shared manager credential, uses it; else per-org OAuth."},"max_rows":{"type":"integer","maximum":10000.0,"minimum":1.0,"title":"Max Rows","description":"Row cap; the result sets truncated=true if more were available.","default":200},"api_version":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Api Version","description":"Google Ads API version for this query alone, e.g. 'v25'. Omit to use the service default."}},"type":"object","required":["organization_id","query"],"title":"GaqlRequest"},"GaqlResult":{"properties":{"organization_id":{"type":"string","title":"Organization Id"},"customer_id":{"type":"string","title":"Customer Id","description":"Google customer id (no dashes) the GAQL ran against."},"login_customer_id":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Login Customer Id","description":"MCC set as the login-customer-id header, when the query ran under a manager."},"credential_source":{"type":"string","enum":["manager","per_org"],"title":"Credential Source","description":"Which credential authenticated: the MCC's shared manager credential or the org's own per-org OAuth."},"api_version":{"type":"string","title":"Api Version","description":"Google Ads API version the query actually ran on -- which fields exist depends on it."},"query":{"type":"string","title":"Query","description":"The GAQL query that was executed, verbatim."},"row_count":{"type":"integer","title":"Row Count","description":"Number of rows returned (after the max_rows cap)."},"truncated":{"type":"boolean","title":"Truncated","description":"True if the result was cut off at max_rows and more rows were available."},"rows":{"items":{"additionalProperties":true,"type":"object"},"type":"array","title":"Rows","description":"Each GoogleAdsRow as a dict; proto field names preserved."}},"type":"object","required":["organization_id","customer_id","credential_source","api_version","query","row_count","truncated"],"title":"GaqlResult","description":"Rows returned by running an arbitrary GAQL query against one Google Ads customer.\n\n``credential_source`` records which OAuth identity authenticated the query: the MCC's\nshared manager credential (reaches only accounts linked under that MCC) or the org's own\nper-org credential (reaches the customer's full Google Ads account -- Search / PMax /\nDisplay, not just Local Services). Each row is Google's ``GoogleAdsRow`` rendered to a\ndict with proto field names preserved (e.g. ``{\"campaign\": {\"id\": \"1\", ...}}``)."},"GeotabApiRequest":{"properties":{"organization_id":{"type":"string","format":"uuid","title":"Organization Id"},"api_method":{"type":"string","minLength":1,"title":"Api Method","description":"MyGeotab JSON-RPC method, e.g. Get or GetCountOf"},"params":{"additionalProperties":true,"type":"object","title":"Params"},"api":{"type":"string","const":"/apiv1","title":"Api","default":"/apiv1"}},"type":"object","required":["organization_id","api_method"],"title":"GeotabApiRequest"},"GeotabConnectRequest":{"properties":{"database":{"type":"string","title":"Database","description":"MyGeotab database name, as shown when signing in"},"username":{"type":"string","title":"Username","description":"Service account username, usually an email address"},"password":{"type":"string","format":"password","title":"Password","writeOnly":true}},"type":"object","required":["database","username","password"],"title":"GeotabConnectRequest"},"GeotabConnectionResponse":{"properties":{"integration_id":{"type":"string","title":"Integration Id"},"status":{"type":"string","title":"Status"},"database":{"type":"string","title":"Database"},"device_count":{"type":"integer","title":"Device Count"}},"type":"object","required":["integration_id","status","database","device_count"],"title":"GeotabConnectionResponse"},"GoogleAdAccountInfo":{"properties":{"resource_name":{"type":"string","title":"Resource Name"},"id":{"type":"string","title":"Id"},"descriptive_name":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Descriptive Name"},"login_customer_id":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Login Customer Id"},"linked_organization_id":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Linked Organization Id"},"linked_organization_name":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Linked Organization Name"}},"type":"object","required":["resource_name","id"],"title":"GoogleAdAccountInfo"},"GoogleAdsAccountBusinessUnitBody":{"properties":{"organization_id":{"type":"string","title":"Organization Id","description":"organization.id (UUID) that must own the account."},"google_ads_account_id":{"type":"string","title":"Google Ads Account Id","description":"leads.google_ads_account.id — the account to map."},"st_business_unit_id":{"type":"integer","title":"St Business Unit Id","description":"ServiceTitan business unit id (service_titan.service_titan_business_unit.id)."}},"type":"object","required":["organization_id","google_ads_account_id","st_business_unit_id"],"title":"GoogleAdsAccountBusinessUnitBody"},"GoogleAdsAccountBusinessUnitPublic":{"properties":{"id":{"type":"string","title":"Id"},"organization_id":{"type":"string","title":"Organization Id"},"google_ads_account_id":{"type":"string","title":"Google Ads Account Id"},"st_business_unit_id":{"type":"integer","title":"St Business Unit Id"},"created_at":{"anyOf":[{"type":"string","format":"date-time"},{"type":"null"}],"title":"Created At"},"updated_at":{"anyOf":[{"type":"string","format":"date-time"},{"type":"null"}],"title":"Updated At"}},"type":"object","required":["id","organization_id","google_ads_account_id","st_business_unit_id"],"title":"GoogleAdsAccountBusinessUnitPublic","description":"One standard Google Ads account -> ServiceTitan business-unit mapping."},"GoogleAdsAccountPublic":{"properties":{"id":{"type":"string","title":"Id"},"organization_id":{"type":"string","title":"Organization Id"},"google_customer_id":{"type":"string","title":"Google Customer Id"},"login_customer_id":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Login Customer Id"},"descriptive_name":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Descriptive Name"},"is_manager":{"type":"boolean","title":"Is Manager"},"is_active":{"type":"boolean","title":"Is Active"},"currency_code":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Currency Code"},"time_zone":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Time Zone"},"auto_tagging_enabled":{"anyOf":[{"type":"boolean"},{"type":"null"}],"title":"Auto Tagging Enabled"},"test_account":{"anyOf":[{"type":"boolean"},{"type":"null"}],"title":"Test Account"},"optimization_score":{"anyOf":[{"type":"number"},{"type":"null"}],"title":"Optimization Score"},"last_sync_at":{"anyOf":[{"type":"string","format":"date-time"},{"type":"null"}],"title":"Last Sync At"}},"type":"object","required":["id","organization_id","google_customer_id","is_manager","is_active"],"title":"GoogleAdsAccountPublic","description":"Enrollment view of a standard (non-LSA) Google Ads customer account."},"GoogleAdsEnrollAccountBody":{"properties":{"is_active":{"type":"boolean","title":"Is Active","description":"Enroll (True) or stop tracking (False) this account's spend."}},"type":"object","required":["is_active"],"title":"GoogleAdsEnrollAccountBody"},"GoogleAdsEnrollableAccount":{"properties":{"id":{"type":"string","title":"Id"},"google_customer_id":{"type":"string","title":"Google Customer Id"},"descriptive_name":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Descriptive Name"},"is_active":{"type":"boolean","title":"Is Active"},"claimed_by_another_organization":{"type":"boolean","title":"Claimed By Another Organization","description":"Another UpSmith organization also discovered this account or holds its LSA account, so only UpSmith staff can enroll it for this org."}},"type":"object","required":["id","google_customer_id","is_active","claimed_by_another_organization"],"title":"GoogleAdsEnrollableAccount","description":"A discovered Google Ads account the calling org can enroll for spend tracking."},"GoogleAdsEnrollableAccounts":{"properties":{"self_enrollment_available":{"type":"boolean","title":"Self Enrollment Available","description":"False when UpSmith's manager login serves every active LSA account, so staff choose the accounts."},"accounts":{"items":{"$ref":"#/components/schemas/GoogleAdsEnrollableAccount"},"type":"array","title":"Accounts"}},"type":"object","required":["self_enrollment_available"],"title":"GoogleAdsEnrollableAccounts"},"GoogleAdsEnrollmentHealthResponse":{"properties":{"status":{"type":"string","enum":["healthy","needs_attention","unknown","not_applicable"],"title":"Status"},"checked_at":{"anyOf":[{"type":"string","format":"date-time"},{"type":"null"}],"title":"Checked At","description":"When enrollment was last updated. Null when no accounts exist."},"affected_customer_ids":{"items":{"type":"string"},"type":"array","title":"Affected Customer Ids","description":"Google Ads customer ids in the reported state; empty when healthy."},"message":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Message","description":"What is wrong, in the customer's terms."},"fix_hint":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Fix Hint","description":"What they should do about it."}},"type":"object","required":["status"],"title":"GoogleAdsEnrollmentHealthResponse","description":"Whether this org's Google Ads accounts are enrolled for spend tracking."},"GoogleAdsTokenDetails":{"properties":{"connected":{"type":"boolean","title":"Connected","default":true},"needs_reconnect":{"type":"boolean","title":"Needs Reconnect"},"own_credential":{"type":"boolean","title":"Own Credential","default":true}},"type":"object","required":["needs_reconnect"],"title":"GoogleAdsTokenDetails"},"GoogleAnalyticsApiRequest":{"properties":{"organization_id":{"type":"string","format":"uuid","title":"Organization Id"},"api_method":{"type":"string","enum":["runReport","checkCompatibility","getMetadata"],"title":"Api Method","default":"runReport"},"params":{"additionalProperties":true,"type":"object","title":"Params","description":"GA4 JSON request body; empty for getMetadata"}},"type":"object","required":["organization_id"],"title":"GoogleAnalyticsApiRequest"},"GoogleAnalyticsCallbackRequest":{"properties":{"code":{"type":"string","format":"password","title":"Code","description":"Authorization code from Google's OAuth redirect","writeOnly":true},"redirect_uri":{"type":"string","maxLength":512,"title":"Redirect Uri"}},"type":"object","required":["code","redirect_uri"],"title":"GoogleAnalyticsCallbackRequest"},"GoogleAnalyticsChannelSummaryResponse":{"properties":{"channel":{"type":"string","title":"Channel"},"sessions":{"type":"integer","title":"Sessions"},"total_users":{"type":"integer","title":"Total Users"},"key_events":{"type":"number","title":"Key Events"}},"type":"object","required":["channel","sessions","total_users","key_events"],"title":"GoogleAnalyticsChannelSummaryResponse"},"GoogleAnalyticsConnectionResponse":{"properties":{"integration_id":{"type":"string","title":"Integration Id"},"status":{"type":"string","title":"Status"},"property_count":{"type":"integer","title":"Property Count"}},"type":"object","required":["integration_id","status","property_count"],"title":"GoogleAnalyticsConnectionResponse"},"GoogleAnalyticsDisconnectResponse":{"properties":{"success":{"type":"boolean","title":"Success"}},"type":"object","required":["success"],"title":"GoogleAnalyticsDisconnectResponse"},"GoogleAnalyticsPropertyResponse":{"properties":{"property_name":{"type":"string","title":"Property Name"},"display_name":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Display Name"},"account_display_name":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Account Display Name"}},"type":"object","required":["property_name"],"title":"GoogleAnalyticsPropertyResponse"},"GoogleAnalyticsSelectPropertyRequest":{"properties":{"property_name":{"type":"string","maxLength":64,"pattern":"^properties/\\d+$","title":"Property Name"}},"type":"object","required":["property_name"],"title":"GoogleAnalyticsSelectPropertyRequest"},"GoogleAnalyticsStatusResponse":{"properties":{"connected":{"type":"boolean","title":"Connected"},"needs_reconnect":{"type":"boolean","title":"Needs Reconnect"},"property":{"anyOf":[{"$ref":"#/components/schemas/GoogleAnalyticsPropertyResponse"},{"type":"null"}]}},"type":"object","required":["connected","needs_reconnect"],"title":"GoogleAnalyticsStatusResponse"},"GoogleAnalyticsSummaryResponse":{"properties":{"property":{"$ref":"#/components/schemas/GoogleAnalyticsPropertyResponse"},"start_date":{"type":"string","title":"Start Date"},"end_date":{"type":"string","title":"End Date"},"sessions":{"type":"integer","title":"Sessions"},"total_users":{"type":"integer","title":"Total Users"},"key_events":{"type":"number","title":"Key Events"},"channels":{"items":{"$ref":"#/components/schemas/GoogleAnalyticsChannelSummaryResponse"},"type":"array","title":"Channels"}},"type":"object","required":["property","start_date","end_date","sessions","total_users","key_events","channels"],"title":"GoogleAnalyticsSummaryResponse"},"GoogleBusinessProfileCallbackRequest":{"properties":{"code":{"type":"string","format":"password","title":"Code","description":"Authorization code from Google's OAuth redirect","writeOnly":true},"redirect_uri":{"type":"string","maxLength":512,"title":"Redirect Uri"}},"type":"object","required":["code","redirect_uri"],"title":"GoogleBusinessProfileCallbackRequest"},"GoogleBusinessProfileConnectionResponse":{"properties":{"integration_id":{"type":"string","title":"Integration Id"},"status":{"type":"string","title":"Status"},"location_count":{"type":"integer","title":"Location Count"}},"type":"object","required":["integration_id","status","location_count"],"title":"GoogleBusinessProfileConnectionResponse"},"GoogleBusinessProfileDisconnectResponse":{"properties":{"success":{"type":"boolean","title":"Success"}},"type":"object","required":["success"],"title":"GoogleBusinessProfileDisconnectResponse"},"GoogleBusinessProfileLocationResponse":{"properties":{"location_name":{"type":"string","title":"Location Name"},"account_name":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Account Name"},"title":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Title"},"address":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Address"}},"type":"object","required":["location_name"],"title":"GoogleBusinessProfileLocationResponse"},"GoogleBusinessProfileLocationSummaryResponse":{"properties":{"location":{"$ref":"#/components/schemas/GoogleBusinessProfileLocationResponse"},"calls":{"type":"integer","title":"Calls"},"website_clicks":{"type":"integer","title":"Website Clicks"},"direction_requests":{"type":"integer","title":"Direction Requests"},"impressions":{"type":"integer","title":"Impressions"}},"type":"object","required":["location","calls","website_clicks","direction_requests","impressions"],"title":"GoogleBusinessProfileLocationSummaryResponse"},"GoogleBusinessProfileSelectLocationsRequest":{"properties":{"location_names":{"items":{"type":"string","maxLength":64,"pattern":"^locations/\\d+$"},"type":"array","maxItems":50,"minItems":1,"title":"Location Names"}},"type":"object","required":["location_names"],"title":"GoogleBusinessProfileSelectLocationsRequest"},"GoogleBusinessProfileStatusResponse":{"properties":{"connected":{"type":"boolean","title":"Connected"},"needs_reconnect":{"type":"boolean","title":"Needs Reconnect"},"locations":{"items":{"$ref":"#/components/schemas/GoogleBusinessProfileLocationResponse"},"type":"array","title":"Locations"}},"type":"object","required":["connected","needs_reconnect"],"title":"GoogleBusinessProfileStatusResponse"},"GoogleBusinessProfileSummaryResponse":{"properties":{"start_date":{"type":"string","title":"Start Date"},"end_date":{"type":"string","title":"End Date"},"locations":{"items":{"$ref":"#/components/schemas/GoogleBusinessProfileLocationSummaryResponse"},"type":"array","title":"Locations"}},"type":"object","required":["start_date","end_date","locations"],"title":"GoogleBusinessProfileSummaryResponse"},"GoogleLSAAccountBusinessUnitBody":{"properties":{"organization_id":{"type":"string","format":"uuid","title":"Organization Id","description":"organization.id (UUID) that owns the LSA account."},"google_lsa_account_id":{"type":"string","format":"uuid","title":"Google Lsa Account Id","description":"leads.google_lsa_account.id — the LSA account to map."},"st_business_unit_id":{"type":"integer","title":"St Business Unit Id","description":"ServiceTitan business unit id (service_titan.service_titan_business_unit.id)."}},"type":"object","required":["organization_id","google_lsa_account_id","st_business_unit_id"],"title":"GoogleLSAAccountBusinessUnitBody"},"GoogleLSAAccountBusinessUnitResponse":{"properties":{"id":{"type":"string","format":"uuid","title":"Id"},"organization_id":{"type":"string","format":"uuid","title":"Organization Id"},"google_lsa_account_id":{"type":"string","format":"uuid","title":"Google Lsa Account Id"},"st_business_unit_id":{"type":"integer","title":"St Business Unit Id"},"created_at":{"anyOf":[{"type":"string","format":"date-time"},{"type":"null"}],"title":"Created At"},"updated_at":{"anyOf":[{"type":"string","format":"date-time"},{"type":"null"}],"title":"Updated At"}},"type":"object","required":["id","organization_id","google_lsa_account_id","st_business_unit_id"],"title":"GoogleLSAAccountBusinessUnitResponse"},"GoogleLsaAccountLeadsProbe":{"properties":{"google_customer_id":{"type":"string","title":"Google Customer Id"},"login_customer_id":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Login Customer Id"},"google_count":{"type":"integer","title":"Google Count","description":"Leads Google's API returned for the window."},"db_window_count":{"anyOf":[{"type":"integer"},{"type":"null"}],"title":"Db Window Count","description":"Total lsa leads already in leads.lead for this account in the window. None if reconcile skipped."},"present_in_db_count":{"anyOf":[{"type":"integer"},{"type":"null"}],"title":"Present In Db Count","description":"How many of Google's returned leads are already in leads.lead. None if reconcile skipped."},"missing_from_db_count":{"anyOf":[{"type":"integer"},{"type":"null"}],"title":"Missing From Db Count","description":"Google leads absent from leads.lead (the dropped set = google_count - present_in_db_count). None if skip."},"leads":{"items":{"$ref":"#/components/schemas/GoogleLsaProbedLead"},"type":"array","title":"Leads"}},"type":"object","required":["google_customer_id","google_count"],"title":"GoogleLsaAccountLeadsProbe","description":"Per-account result: what Google returned for the window, and how it reconciles\nagainst what we ingested into leads.lead."},"GoogleLsaAccountReportsResult":{"properties":{"organization_id":{"type":"string","title":"Organization Id"},"login_customer_id":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Login Customer Id","description":"MCC the accountReports was fetched under (manager-scoped report)."},"credential_source":{"type":"string","enum":["manager","per_org"],"title":"Credential Source","description":"Which credential authenticated: the MCC's shared manager credential or the org's own per-org OAuth."},"report_date":{"type":"string","format":"date","title":"Report Date","description":"The single day current_period_* metrics cover (defaults to yesterday)."},"account_count":{"type":"integer","title":"Account Count","description":"Number of the org's LSA accounts a report row was returned for."},"reports":{"items":{"additionalProperties":true,"type":"object"},"type":"array","title":"Reports","description":"One AccountReport per account (account_id + review/responsiveness/budget fields)."}},"type":"object","required":["organization_id","credential_source","report_date","account_count"],"title":"GoogleLsaAccountReportsResult","description":"Local Services Ads ``accountReports`` rows for one org's LSA accounts.\n\nFetched from the separate Local Services Ads Reporting API (not the Google Ads API /\nGAQL), which is the only source for LSA review rating + count, phone-lead responsiveness,\nand Google's weekly budget. The report is manager-scoped, so it's fetched once for the\nMCC and filtered to the requesting org's accounts. ``credential_source`` records which\nOAuth identity authenticated (the MCC's shared manager credential or the org's per-org\nOAuth). ``report_date`` is the single day the ``current_period_*`` metrics cover; the\nrating / review / responsiveness / weekly-budget fields are current-state as of the call."},"GoogleLsaAccountWriteAccess":{"properties":{"google_customer_id":{"type":"string","title":"Google Customer Id"},"ok":{"type":"boolean","title":"Ok"},"reason":{"type":"string","enum":["ok","manager_served","no_write_access","no_credential","permission_denied","account_not_found","rate_limited","provider_unavailable"],"title":"Reason"},"detail":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Detail","description":"Human-readable explanation, populated when ok is false."},"granted_emails":{"items":{"type":"string"},"type":"array","title":"Granted Emails","description":"Direct users holding ADMIN or STANDARD on the customer, when any do."}},"type":"object","required":["google_customer_id","ok","reason"],"title":"GoogleLsaAccountWriteAccess","description":"Whether one LSA account's credential can reply on its lead conversations."},"GoogleLsaCampaignSettings":{"properties":{"campaign_id":{"type":"string","title":"Campaign Id"},"agent_v2_id":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Agent V2 Id"},"is_paused":{"type":"boolean","title":"Is Paused"},"process_message":{"type":"boolean","title":"Process Message"},"process_phone_call":{"type":"boolean","title":"Process Phone Call"},"missed_phone_calls_only":{"type":"boolean","title":"Missed Phone Calls Only"},"preflight":{"anyOf":[{"additionalProperties":true,"type":"object"},{"type":"null"}],"title":"Preflight"}},"type":"object","required":["campaign_id","is_paused","process_message","process_phone_call","missed_phone_calls_only"],"title":"GoogleLsaCampaignSettings"},"GoogleLsaConversationsProbe":{"properties":{"organization_id":{"type":"string","title":"Organization Id"},"google_customer_id":{"type":"string","title":"Google Customer Id"},"lead_resource_name":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Lead Resource Name","description":"When set, results are scoped to this one Google LSA lead resource name."},"since":{"type":"string","format":"date-time","title":"Since","description":"Lower bound (UTC) on event_date_time that was queried."},"lookback_days":{"type":"integer","title":"Lookback Days"},"message_channel_only":{"type":"boolean","title":"Message Channel Only","description":"Whether the query was restricted to the MESSAGE channel (the poller's filter). False = every channel."},"reconciled":{"type":"boolean","title":"Reconciled","description":"Whether consumer messages were diffed against what we stored."},"google_count":{"type":"integer","title":"Google Count","description":"Conversation messages Google's API returned."},"consumer_count":{"type":"integer","title":"Consumer Count","description":"Of those, how many are CONSUMER (customer) rows, messages or not."},"consumer_message_count":{"type":"integer","title":"Consumer Message Count","description":"Of the consumer rows, how many are actual messages (text or attachments) — the ingest denominator."},"non_message_count":{"type":"integer","title":"Non Message Count","description":"Consumer rows that carry no message: PHONE_CALL and BOOKING events on the lead. Excluded from the ingest counts because they can never be an interaction."},"present_in_db_count":{"anyOf":[{"type":"integer"},{"type":"null"}],"title":"Present In Db Count","description":"Consumer messages we ingested (present in leads.google_lsa_conversation_message). None if skipped."},"missing_from_db_count":{"anyOf":[{"type":"integer"},{"type":"null"}],"title":"Missing From Db Count","description":"Consumer messages Google returned that we never stored — the genuinely dropped set, and the only count here that means message loss. None if reconcile skipped."},"missing_from_thread_count":{"anyOf":[{"type":"integer"},{"type":"null"}],"title":"Missing From Thread Count","description":"Ingested consumer messages with no conversation-id-keyed interaction. Expected and benign for lead intakes and revival openers (both persisted as synthetic intakes); investigate only alongside a customer reporting an unanswered reply. None if reconcile skipped."},"messages":{"items":{"$ref":"#/components/schemas/GoogleLsaProbedConversationMessage"},"type":"array","title":"Messages"}},"type":"object","required":["organization_id","google_customer_id","since","lookback_days","message_channel_only","reconciled","google_count","consumer_count","consumer_message_count","non_message_count"],"title":"GoogleLsaConversationsProbe","description":"Ground-truth read of an LSA account's conversation messages straight from Google — the\nread that tells \"Google never returned the reply\" apart from \"we dropped it\".\n\nIngest is reconciled against leads.google_lsa_conversation_message, the durable log the\npoller writes for every message it fetches. Thread presence is reported separately\n(``missing_from_thread_count``) because it is legitimately path-dependent and a miss\nthere does not mean the message was lost."},"GoogleLsaCustomerClientChild":{"properties":{"customer_id":{"type":"string","title":"Customer Id","description":"Google customer ID without dashes"},"descriptive_name":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Descriptive Name","description":"Friendly name Google returns for the account, if any."},"is_manager":{"type":"boolean","title":"Is Manager","description":"True if this child is itself a manager (sub-MCC)."},"level":{"type":"integer","title":"Level","description":"Depth below the queried MCC (1 = direct child)."}},"type":"object","required":["customer_id","is_manager","level"],"title":"GoogleLsaCustomerClientChild","description":"One ENABLED account Google reports under an MCC via ``customer_client``."},"GoogleLsaHealthResponse":{"properties":{"status":{"type":"string","enum":["healthy","needs_attention","unknown","not_applicable"],"title":"Status"},"checked_at":{"anyOf":[{"type":"string","format":"date-time"},{"type":"null"}],"title":"Checked At","description":"When the answer was obtained from Google. Null when it has never been obtained."},"affected_customer_ids":{"items":{"type":"string"},"type":"array","title":"Affected Customer Ids","description":"Google Ads customer ids in the reported state; empty when healthy."},"message":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Message","description":"What is wrong, in the customer's terms."},"fix_hint":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Fix Hint","description":"What they should do about it."}},"type":"object","required":["status"],"title":"GoogleLsaHealthResponse","description":"Whether this org's Google LSA replies are actually getting through, for its own eyes.\n\nThe same probe and the same wording the ops-facing preflight finding uses; the\ncustomer sees it because they are the only one who can fix a Google Ads role.\nDeliberately ignores preflight silences: an operator muting the ops digest says\nnothing about whether the person who owns the Google account should be told."},"GoogleLsaLeadsProbe":{"properties":{"organization_id":{"type":"string","title":"Organization Id"},"since":{"type":"string","format":"date-time","title":"Since","description":"Lower bound (UTC) on lead received_at that was queried."},"lookback_days":{"type":"integer","title":"Lookback Days"},"reconciled":{"type":"boolean","title":"Reconciled","description":"Whether results were diffed against leads.lead. False = raw Google fetch only."},"accounts":{"items":{"$ref":"#/components/schemas/GoogleLsaAccountLeadsProbe"},"type":"array","title":"Accounts"}},"type":"object","required":["organization_id","since","lookback_days","reconciled"],"title":"GoogleLsaLeadsProbe","description":"Ground-truth read of an org's LSA leads straight from Google, to tell\n\"Google had no leads\" apart from \"we dropped leads Google delivered\"."},"GoogleLsaMccMembership":{"properties":{"manager_customer_id":{"type":"string","title":"Manager Customer Id","description":"The MCC (login_customer_id) that was walked."},"credential_source":{"type":"string","enum":["manager","per_org"],"title":"Credential Source","description":"Which credential authenticated the walk: the MCC's shared manager credential or the org's own."},"manager_credential_id":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Manager Credential Id","description":"integration.credential id of the shared manager credential, when one is mapped to the MCC."},"target_customer_id":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Target Customer Id","description":"The customer id whose membership was checked, if provided."},"target_is_child":{"anyOf":[{"type":"boolean"},{"type":"null"}],"title":"Target Is Child","description":"True/False when target_customer_id was provided; None otherwise."},"child_count":{"type":"integer","title":"Child Count","description":"Number of ENABLED customer_client rows returned under the MCC."},"children":{"items":{"$ref":"#/components/schemas/GoogleLsaCustomerClientChild"},"type":"array","title":"Children","description":"Every ENABLED account under the MCC, at any depth."}},"type":"object","required":["manager_customer_id","credential_source","child_count"],"title":"GoogleLsaMccMembership","description":"Whether an MCC manages a target customer, plus the MCC's full ENABLED child set.\n\nAnswers \"does MCC X manage customer Y?\" for LSA credential/ingestion triage. It\nauthenticates with the MCC's shared manager credential when one is mapped, so it\nstill works when an org's own Google Ads credential is dead but the manager\ncredential is healthy — which is exactly the case a per-org OAuth-400 alert leaves\nbehind for an account whose ``login_customer_id`` was never populated."},"GoogleLsaProbedConversationMessage":{"properties":{"conversation_id":{"type":"string","title":"Conversation Id","description":"Google's per-message conversation event id."},"lead_resource_name":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Lead Resource Name"},"participant_type":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Participant Type","description":"\"CONSUMER\" (customer) or \"ADVERTISER\" (our/business sends)."},"conversation_channel":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Conversation Channel"},"event_date_time":{"type":"string","format":"date-time","title":"Event Date Time"},"text":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Text"},"is_message":{"type":"boolean","title":"Is Message","description":"Whether this row is an actual message (has text or attachments). False for PHONE_CALL / BOOKING rows, which are events on the lead, never something that could land in a thread."},"in_db":{"anyOf":[{"type":"boolean"},{"type":"null"}],"title":"In Db","description":"When reconciled: did we ingest this message? True = present in leads.google_lsa_conversation_message, the durable log the poller writes for every message it fetched. False here is the real 'we dropped it'. None if reconcile skipped."},"emitted":{"anyOf":[{"type":"boolean"},{"type":"null"}],"title":"Emitted","description":"When reconciled: did the poller emit a bus event for this message (emitted_event_id set)? Always false for PHONE_CALL rows and our own ADS_API sends, which are persistence-only. Also false on rows written by the historical backfill, which recorded no event id — read it as authoritative only for recently polled messages."},"in_thread":{"anyOf":[{"type":"boolean"},{"type":"null"}],"title":"In Thread","description":"When reconciled: is there an engagement.event_interaction keyed to this message (conversation_id, or adv:conversation_id for a CSR takeover)? False is NOT loss on its own — a lead's originating message and a revival's opener are both persisted as synthetic intakes with no external_id."}},"type":"object","required":["conversation_id","event_date_time","is_message"],"title":"GoogleLsaProbedConversationMessage","description":"One ``local_services_lead_conversation`` row as Google's API currently reports it,\noptionally annotated with how far it got: stored (``in_db``), emitted onto the bus\n(``emitted``), landed in the engagement thread (``in_thread``)."},"GoogleLsaProbedLead":{"properties":{"google_lead_id":{"type":"string","title":"Google Lead Id","description":"Google's LSA lead id; matches leads.lead.external_id."},"google_customer_id":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Google Customer Id"},"lead_type":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Lead Type","description":"\"MESSAGE\" or \"PHONE_CALL\"."},"lead_status":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Lead Status"},"credit_state":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Credit State"},"customer_name":{"type":"string","title":"Customer Name"},"phone_number":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Phone Number"},"message_text":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Message Text"},"received_at":{"type":"string","format":"date-time","title":"Received At"},"in_db":{"anyOf":[{"type":"boolean"},{"type":"null"}],"title":"In Db","description":"When reconciled: is this Google lead present in leads.lead (by external_id)? None if reconcile skipped."}},"type":"object","required":["google_lead_id","customer_name","received_at"],"title":"GoogleLsaProbedLead","description":"One lead as Google's LSA API currently reports it, optionally annotated with\nwhether we've ingested it (``in_db``)."},"GoogleLsaWriteAccessProbe":{"properties":{"organization_id":{"type":"string","title":"Organization Id"},"ok":{"type":"boolean","title":"Ok"},"reason":{"type":"string","enum":["ok","no_accounts","no_write_access","no_credential","permission_denied","account_not_found","rate_limited","provider_unavailable"],"title":"Reason"},"accounts":{"items":{"$ref":"#/components/schemas/GoogleLsaAccountWriteAccess"},"type":"array","title":"Accounts"},"checked_at":{"anyOf":[{"type":"string","format":"date-time"},{"type":"null"}],"title":"Checked At","description":"When this answer was actually obtained from Google (not when it was served)."}},"type":"object","required":["organization_id","ok","reason"],"title":"GoogleLsaWriteAccessProbe","description":"Can this org actually send LSA replies?\n\n``ok`` is true only when every active account is verified able to reply (or has none\nto verify). ``no_write_access`` / ``no_credential`` / ``permission_denied`` /\n``account_not_found`` are states a person must fix; ``rate_limited`` /\n``provider_unavailable`` mean Google couldn't be asked, so the answer is unknown.\nAccounts served by an MCC manager credential report ``manager_served`` without a\nGoogle call: they authenticate as the manager, whose grant is not in the customer's\nown ``customer_user_access`` rows, so the direct-user roles say nothing about their\nwrite path."},"HTTPValidationError":{"properties":{"detail":{"items":{"$ref":"#/components/schemas/ValidationError"},"type":"array","title":"Detail"}},"type":"object","title":"HTTPValidationError"},"HistoricalEvidence":{"properties":{"id":{"type":"string","title":"Id"},"source_kind":{"type":"string","title":"Source Kind"},"source_ref":{"type":"string","title":"Source Ref"},"observed_at":{"type":"string","format":"date-time","title":"Observed At"},"quote":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Quote"},"deleted_at":{"anyOf":[{"type":"string","format":"date-time"},{"type":"null"}],"title":"Deleted At"},"passage_id":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Passage Id"},"source_id":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Source Id"},"passage_deleted_at":{"anyOf":[{"type":"string","format":"date-time"},{"type":"null"}],"title":"Passage Deleted At"},"source_deleted_at":{"anyOf":[{"type":"string","format":"date-time"},{"type":"null"}],"title":"Source Deleted At"}},"additionalProperties":false,"type":"object","required":["id","source_kind","source_ref","observed_at","quote","deleted_at","passage_id","source_id","passage_deleted_at","source_deleted_at"],"title":"HistoricalEvidence"},"HistoryItemPublic":{"properties":{"id":{"type":"string","title":"Id"},"created_at":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Created At"},"notification_type":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Notification Type"},"subject":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Subject"},"recipient_id":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Recipient Id"},"recipient_name":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Recipient Name"},"recipient_email":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Recipient Email"},"error":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Error"},"channel":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Channel"},"delivery_outcome":{"anyOf":[{"$ref":"#/components/schemas/DeliveryOutcome"},{"type":"null"}]},"provider_status":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Provider Status"}},"type":"object","required":["id"],"title":"HistoryItemPublic"},"HistoryListResponse":{"properties":{"items":{"items":{"$ref":"#/components/schemas/HistoryItemPublic"},"type":"array","title":"Items"},"total":{"type":"integer","title":"Total"}},"type":"object","required":["items","total"],"title":"HistoryListResponse"},"HolidayClosure":{"properties":{"date":{"type":"string","format":"date","title":"Date"},"holiday":{"type":"string","title":"Holiday"},"reason":{"type":"string","title":"Reason"}},"type":"object","required":["date","holiday","reason"],"title":"HolidayClosure"},"HolidayRule":{"properties":{"name":{"type":"string","enum":["New Year's Day","Martin Luther King Jr. Day","Washington's Birthday","Memorial Day","Juneteenth National Independence Day","Independence Day","Labor Day","Columbus Day","Veterans Day","Thanksgiving Day","Christmas Day"],"title":"Name"},"blocked":{"type":"boolean","title":"Blocked"},"days_before":{"type":"integer","maximum":14.0,"minimum":0.0,"title":"Days Before","default":0},"days_after":{"type":"integer","maximum":14.0,"minimum":0.0,"title":"Days After","default":0}},"additionalProperties":false,"type":"object","required":["name","blocked"],"title":"HolidayRule"},"HolidaySettingsResponse":{"properties":{"holidays":{"items":{"$ref":"#/components/schemas/HolidayRule"},"type":"array","title":"Holidays"},"max_extra_days":{"type":"integer","title":"Max Extra Days"},"upcoming":{"items":{"$ref":"#/components/schemas/HolidayClosure"},"type":"array","title":"Upcoming"}},"type":"object","required":["holidays","max_extra_days","upcoming"],"title":"HolidaySettingsResponse","description":"Per-holiday settings; `upcoming` lists the days they block over the next year, in the org's timezone."},"HolidaySettingsUpdate":{"properties":{"holidays":{"items":{"$ref":"#/components/schemas/HolidayRule"},"type":"array","title":"Holidays"}},"type":"object","required":["holidays"],"title":"HolidaySettingsUpdate"},"HookDispatchPublic":{"properties":{"id":{"type":"string","title":"Id"},"created_at":{"anyOf":[{"type":"string","format":"date-time"},{"type":"null"}],"title":"Created At"},"trigger":{"type":"string","title":"Trigger"},"turn_number":{"anyOf":[{"type":"integer"},{"type":"null"}],"title":"Turn Number"},"matched":{"items":{},"type":"array","title":"Matched","default":[]},"skipped":{"items":{},"type":"array","title":"Skipped","default":[]},"errored":{"items":{},"type":"array","title":"Errored","default":[]}},"type":"object","required":["id","trigger"],"title":"HookDispatchPublic"},"HookEventResponse":{"properties":{"timestamp":{"type":"string","format":"date-time","title":"Timestamp"},"trace_id":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Trace Id"},"body":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Body"},"logger":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Logger"},"hook_id":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Hook Id"},"hook_name":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Hook Name"},"hook_trigger":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Hook Trigger"},"outcome":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Outcome"},"matched":{"anyOf":[{"type":"boolean"},{"type":"null"}],"title":"Matched"},"actions_planned":{"items":{"type":"string"},"type":"array","title":"Actions Planned","default":[]},"action_type":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Action Type"},"tool_name":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Tool Name"},"error_type":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Error Type"},"error_message":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Error Message"}},"type":"object","required":["timestamp"],"title":"HookEventResponse"},"IdentityOption":{"properties":{"source":{"type":"string","title":"Source"},"id":{"type":"string","title":"Id"},"label":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Label"},"detail":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Detail"},"active":{"anyOf":[{"type":"boolean"},{"type":"null"}],"title":"Active"}},"type":"object","required":["source","id"],"title":"IdentityOption","description":"A directory account an employee could be, read live from the provider.\n\nNo mirror exists for these — the ingest only stores identities it already resolved,\nwhich is precisely not what a picker needs to offer."},"IdentityOptions":{"properties":{"source":{"type":"string","title":"Source"},"options":{"items":{"$ref":"#/components/schemas/IdentityOption"},"type":"array","title":"Options","default":[]}},"type":"object","required":["source"],"title":"IdentityOptions"},"IdentityProvider":{"type":"string","enum":["microsoft","google"],"title":"IdentityProvider"},"IdentityReviewPublic":{"properties":{"is_mock":{"type":"boolean","title":"Is Mock","default":false},"state":{"type":"string","enum":["not_requested","queued","paused","reviewing","held","approved","rejected","needs_review"],"title":"State"},"reason_code":{"anyOf":[{"type":"string","enum":["account_setup_required","requester_required","staff_review_required","provider_setup_required","ambiguous_provider_operation","retry_exhausted"]},{"type":"string","const":"confirmation_required"},{"type":"null"}],"title":"Reason Code"},"observed_at":{"anyOf":[{"type":"string","format":"date-time"},{"type":"null"}],"title":"Observed At"}},"type":"object","required":["state"],"title":"IdentityReviewPublic"},"IdentityStatus":{"type":"string","enum":["unresolved","partial","resolved"],"title":"IdentityStatus","description":"Ordered by how much attention it wants."},"ImpactCard":{"properties":{"title":{"type":"string","title":"Title"},"summary":{"type":"string","title":"Summary"},"sections":{"items":{"$ref":"#/components/schemas/ImpactSection"},"type":"array","title":"Sections"},"warnings":{"items":{"type":"string"},"type":"array","title":"Warnings"},"metrics":{"additionalProperties":{"type":"string"},"type":"object","title":"Metrics"},"brands":{"items":{"$ref":"#/components/schemas/BrandImpact"},"type":"array","title":"Brands"}},"type":"object","required":["title","summary"],"title":"ImpactCard","description":"Renderer-agnostic impact description; each surface presents it its own way."},"ImpactSection":{"properties":{"label":{"type":"string","title":"Label"},"description":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Description"},"collapsed":{"type":"boolean","title":"Collapsed","default":false},"before":{"items":{"type":"string"},"type":"array","title":"Before"},"after":{"items":{"type":"string"},"type":"array","title":"After"},"detail":{"items":{"type":"string"},"type":"array","title":"Detail"},"before_rules":{"items":{"additionalProperties":true,"type":"object"},"type":"array","title":"Before Rules"},"after_rules":{"items":{"additionalProperties":true,"type":"object"},"type":"array","title":"After Rules"},"funnel":{"anyOf":[{"additionalProperties":true,"type":"object"},{"type":"null"}],"title":"Funnel"}},"type":"object","required":["label"],"title":"ImpactSection"},"InboundLiveOrg":{"properties":{"organization_id":{"type":"string","title":"Organization Id"},"organization_name":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Organization Name"}},"type":"object","required":["organization_id"],"title":"InboundLiveOrg","description":"An org with at least one active inbound lead source (Angi/Meta/Zapier/Thumbtack/LSA\nconnection or an active EVENT-mode campaign) — listed on the Inbound tab regardless of activity."},"IncidentPageResponse":{"properties":{"items":{"items":{"$ref":"#/components/schemas/IncidentResponse"},"type":"array","title":"Items"},"total":{"anyOf":[{"type":"integer"},{"type":"null"}],"title":"Total"},"cursor":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Cursor"}},"type":"object","required":["items"],"title":"IncidentPageResponse"},"IncidentResponse":{"properties":{"incident_id":{"type":"string","title":"Incident Id"},"title":{"type":"string","title":"Title"},"description":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Description"},"error_pattern":{"type":"string","title":"Error Pattern"},"engagement_id_sql":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Engagement Id Sql"},"tool_functions":{"anyOf":[{"items":{"type":"string"},"type":"array"},{"type":"null"}],"title":"Tool Functions"},"started_at":{"type":"string","format":"date-time","title":"Started At"},"ended_at":{"anyOf":[{"type":"string","format":"date-time"},{"type":"null"}],"title":"Ended At"},"resolved_at":{"anyOf":[{"type":"string","format":"date-time"},{"type":"null"}],"title":"Resolved At"},"resolved_by":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Resolved By"},"retry_status":{"type":"string","title":"Retry Status"},"retry_count":{"type":"integer","title":"Retry Count"},"user_prompt":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"User Prompt"},"include_replied":{"type":"boolean","title":"Include Replied"},"organization_id":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Organization Id"},"created_at":{"type":"string","format":"date-time","title":"Created At"},"updated_at":{"type":"string","format":"date-time","title":"Updated At"}},"type":"object","required":["incident_id","title","error_pattern","started_at","retry_status","retry_count","include_replied","created_at","updated_at"],"title":"IncidentResponse"},"IneligibilityReason":{"type":"string","enum":["recipient_not_found","wrong_organization","recipient_deleted","recipient_inactive","user_not_found","user_deleted","not_org_member","email_disabled","no_email_address","sms_disabled","call_disabled","no_phone_number"],"title":"IneligibilityReason","description":"Why a recipient cannot be notified. Declaration order is report order; values are wire-stable."},"IntacctProfile":{"type":"string","enum":["rest","mcp"],"title":"IntacctProfile"},"IntakeQuestionTarget":{"properties":{"kind":{"type":"string","const":"intake_question","title":"Kind","default":"intake_question"},"field_key":{"type":"string","pattern":"^[a-z][a-z0-9_]{0,63}$","title":"Field Key"}},"additionalProperties":false,"type":"object","required":["field_key"],"title":"IntakeQuestionTarget"},"Integration":{"additionalProperties":true,"type":"object"},"IntegrationCapabilities":{"additionalProperties":{"$ref":"#/components/schemas/IntegrationCapability"},"type":"object","title":"IntegrationCapabilities","default":{}},"IntegrationCapability":{"properties":{"ok":{"type":"boolean","title":"Ok"},"reason":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Reason"},"item_count":{"anyOf":[{"type":"integer"},{"type":"null"}],"title":"Item Count"},"checked_at":{"type":"string","format":"date-time","title":"Checked At"}},"type":"object","required":["ok","checked_at"],"title":"IntegrationCapability","description":"Whether the stored credential could reach one of the provider's APIs when last checked."},"IntegrationCatalogEntry":{"properties":{"key":{"type":"string","title":"Key"},"name":{"type":"string","title":"Name"},"category":{"$ref":"#/components/schemas/CatalogCategory"},"description":{"type":"string","title":"Description"},"coming_soon":{"type":"boolean","title":"Coming Soon","default":false},"feature_flag":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Feature Flag"},"requires_configuration":{"type":"boolean","title":"Requires Configuration","default":false},"logo":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Logo"},"logo_class_name":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Logo Class Name"},"href":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Href"},"connect_in_drawer":{"type":"boolean","title":"Connect In Drawer","default":false},"staff_setup_in_drawer":{"type":"boolean","title":"Staff Setup In Drawer","default":false}},"type":"object","required":["key","name","category","description"],"title":"IntegrationCatalogEntry"},"IntegrationRateLimit":{"properties":{"limit":{"type":"integer","title":"Limit"},"interval_sec":{"type":"integer","title":"Interval Sec"}},"type":"object","required":["limit","interval_sec"],"title":"IntegrationRateLimit"},"IntegrationSetupRequest":{"properties":{"integration":{"type":"string","enum":["google_lsa","meta_ads","google_analytics"],"title":"Integration"}},"type":"object","required":["integration"],"title":"IntegrationSetupRequest"},"IntegrationStatus":{"type":"string","enum":["enabled","pending","error","disabled"],"title":"IntegrationStatus"},"IntentBookingOutcomesPublic":{"properties":{"total_calls":{"type":"integer","title":"Total Calls"},"booked_calls":{"type":"integer","title":"Booked Calls"},"not_booked_calls":{"type":"integer","title":"Not Booked Calls"},"booking_unknown_calls":{"type":"integer","title":"Booking Unknown Calls"},"not_booked_classifications":{"additionalProperties":{"type":"integer"},"type":"object","title":"Not Booked Classifications"}},"type":"object","required":["total_calls","booked_calls","not_booked_calls","booking_unknown_calls"],"title":"IntentBookingOutcomesPublic"},"InviteBody":{"properties":{"user_id":{"type":"string","title":"User Id"}},"type":"object","required":["user_id"],"title":"InviteBody"},"InviteRecipientResponse":{"properties":{"id":{"type":"string","title":"Id"},"status":{"type":"string","title":"Status"}},"type":"object","required":["id","status"],"title":"InviteRecipientResponse"},"InvocationSource":{"type":"string","enum":["llm","precall"],"title":"InvocationSource","description":"Who invoked the tool that produced this action.\n\n``LLM`` — the agent's model chose to call the tool mid-conversation.\n``PRECALL`` — the system/operator ran the tool up front (before-turn\nhooks / pre-agent preload) and injected the result into the prompt; the\nmodel did not choose it.\n\n``NULL`` means **legacy / unknown** — the row predates reliable tagging\n(ENG-4234) and is NOT necessarily LLM-invoked. Precalled tools were saved\nas actions before #4213 (2026-04-04), then not saved at all until ENG-4234,\nso historical rows are a mix we deliberately don't reconstruct. Readers\nmust treat NULL as its own bucket, never fold it into ``LLM``. Only rows\nwritten after ENG-4234 shipped carry a trustworthy value."},"JobLimit":{"properties":{"entry_key":{"type":"string","title":"Entry Key"},"source":{"type":"string","title":"Source"},"status":{"type":"string","title":"Status","default":"in_effect"},"valid_from":{"anyOf":[{"type":"string","format":"date-time"},{"type":"null"}],"title":"Valid From"},"valid_until":{"anyOf":[{"type":"string","format":"date-time"},{"type":"null"}],"title":"Valid Until"},"summary":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Summary"},"summary_current":{"type":"boolean","title":"Summary Current","default":false},"document":{"additionalProperties":true,"type":"object","title":"Document"},"names":{"additionalProperties":{"additionalProperties":{"anyOf":[{"type":"string"},{"type":"null"}]},"type":"object"},"type":"object","title":"Names","default":{}}},"type":"object","required":["entry_key","source","document"],"title":"JobLimit"},"JobLimitPreviewRequest":{"properties":{"candidate":{"$ref":"#/components/schemas/CandidateInput"},"policies":{"anyOf":[{"additionalProperties":true,"type":"object"},{"type":"null"}],"title":"Policies"},"technician_ids":{"anyOf":[{"items":{"type":"integer"},"type":"array"},{"type":"null"}],"title":"Technician Ids"}},"additionalProperties":false,"type":"object","required":["candidate"],"title":"JobLimitPreviewRequest","description":"One day or arrival window to check; `policies` previews a draft set of limits instead of the saved ones."},"JobLimitsResponse":{"properties":{"limits":{"items":{"$ref":"#/components/schemas/JobLimit"},"type":"array","title":"Limits"}},"type":"object","required":["limits"],"title":"JobLimitsResponse"},"JobSummaryExample":{"properties":{"summary":{"type":"string","maxLength":8000,"minLength":1,"title":"Summary"},"engagement_id":{"type":"string","minLength":1,"title":"Engagement Id"},"generated_at":{"type":"string","format":"date-time","title":"Generated At"}},"additionalProperties":false,"type":"object","required":["summary","engagement_id","generated_at"],"title":"JobSummaryExample","description":"A summary Jenny generated under the rule when she saved it, for people reviewing the rule."},"JobSummaryResponse":{"properties":{"rules":{"items":{"$ref":"#/components/schemas/JobSummaryRuleResponse"},"type":"array","title":"Rules"},"detail":{"type":"string","enum":["CONVERSATION_SUMMARY","FULL_CONVERSATION","CONVERSATION_LINK"],"title":"Detail"},"baseline":{"type":"string","title":"Baseline"}},"type":"object","required":["rules","detail","baseline"],"title":"JobSummaryResponse","description":"Rules in stacking order, in-effect before scheduled; `detail` is what a job gets when no more specific rule sets one."},"JobSummaryRuleResponse":{"properties":{"entry_key":{"type":"string","title":"Entry Key"},"label":{"type":"string","title":"Label"},"job_types":{"items":{"$ref":"#/components/schemas/NamedEntity"},"type":"array","title":"Job Types"},"business_units":{"items":{"$ref":"#/components/schemas/NamedEntity"},"type":"array","title":"Business Units"},"sources":{"items":{"type":"string","enum":["appointment","booking_request"]},"type":"array","title":"Sources"},"instructions":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Instructions"},"detail":{"anyOf":[{"type":"string","enum":["CONVERSATION_SUMMARY","FULL_CONVERSATION","CONVERSATION_LINK"]},{"type":"null"}],"title":"Detail"},"example":{"anyOf":[{"$ref":"#/components/schemas/JobSummaryExample"},{"type":"null"}]},"status":{"type":"string","enum":["in_effect","scheduled"],"title":"Status"},"valid_from":{"anyOf":[{"type":"string","format":"date-time"},{"type":"null"}],"title":"Valid From"},"valid_until":{"anyOf":[{"type":"string","format":"date-time"},{"type":"null"}],"title":"Valid Until"}},"type":"object","required":["entry_key","label","job_types","business_units","sources","instructions","detail","example","status"],"title":"JobSummaryRuleResponse"},"JsonValue":{},"LLMPhase":{"type":"string","enum":["ModelRequest","ModelResponse"],"title":"LLMPhase","description":"Phase for persisted LLM transcript rows.\n\nLike other engagement ``StrEnum`` + ``sa.Enum(native_enum=False)`` columns,\nPostgreSQL stores the member **name** (``REQUEST`` / ``RESPONSE``) for\n``llmphase``. The **value** strings are pydantic-ai message kinds\n(``ModelRequest`` / ``ModelResponse``) and are not written to this column."},"LSAAccountStatus":{"properties":{"id":{"type":"string","format":"uuid","title":"Id"},"google_customer_id":{"type":"string","title":"Google Customer Id"},"descriptive_name":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Descriptive Name"},"brand_name":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Brand Name"},"is_active":{"type":"boolean","title":"Is Active"},"reporting_only":{"type":"boolean","title":"Reporting Only","default":false},"auto_reply_message":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Auto Reply Message"},"last_sync_at":{"anyOf":[{"type":"string","format":"date-time"},{"type":"null"}],"title":"Last Sync At"},"leads_total":{"type":"integer","title":"Leads Total","default":0},"leads_synced":{"type":"integer","title":"Leads Synced","default":0},"leads_pending":{"type":"integer","title":"Leads Pending","default":0},"leads_failed":{"type":"integer","title":"Leads Failed","default":0}},"type":"object","required":["id","google_customer_id","is_active"],"title":"LSAAccountStatus"},"LauncherPosition":{"type":"string","enum":["bottom-right","bottom-left"],"title":"LauncherPosition"},"LeadPage":{"properties":{"items":{"items":{"$ref":"#/components/schemas/LeadPublic"},"type":"array","title":"Items"},"total":{"type":"integer","title":"Total"}},"type":"object","required":["items","total"],"title":"LeadPage"},"LeadPublic":{"properties":{"id":{"type":"string","title":"Id"},"organization_id":{"type":"string","title":"Organization Id"},"source":{"type":"string","title":"Source"},"external_id":{"type":"string","title":"External Id"},"status":{"$ref":"#/components/schemas/LeadStatus"},"data":{"additionalProperties":true,"type":"object","title":"Data"},"lead_type":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Lead Type"},"raw_payload":{"anyOf":[{"additionalProperties":true,"type":"object"},{"type":"null"}],"title":"Raw Payload"},"received_at":{"anyOf":[{"type":"string","format":"date-time"},{"type":"null"}],"title":"Received At"},"synced_at":{"anyOf":[{"type":"string","format":"date-time"},{"type":"null"}],"title":"Synced At"},"crm_contact_id":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Crm Contact Id"},"sync_error":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Sync Error"},"retry_count":{"type":"integer","title":"Retry Count"}},"type":"object","required":["id","organization_id","source","external_id","status","data","retry_count"],"title":"LeadPublic"},"LeadResponderSource":{"type":"string","enum":["thumbtack","yelp","angi","meta"],"title":"LeadResponderSource"},"LeadResponderStatus":{"properties":{"source":{"$ref":"#/components/schemas/LeadResponderSource"},"connected":{"type":"boolean","title":"Connected"},"responder_agent_id":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Responder Agent Id"},"campaign_id":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Campaign Id"},"is_answering":{"type":"boolean","title":"Is Answering"},"preflight":{"anyOf":[{"additionalProperties":true,"type":"object"},{"type":"null"}],"title":"Preflight"}},"type":"object","required":["source","connected","is_answering"],"title":"LeadResponderStatus"},"LeadSourceBrandPublic":{"properties":{"source":{"$ref":"#/components/schemas/LeadSourceBrandSource"},"brand_target_id":{"type":"string","title":"Brand Target Id"},"source_identifier":{"type":"string","title":"Source Identifier"},"display_name":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Display Name"},"brand_name":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Brand Name"},"status":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Status"}},"type":"object","required":["source","brand_target_id","source_identifier"],"title":"LeadSourceBrandPublic"},"LeadSourceBrandSource":{"type":"string","enum":["google_lsa","meta","thumbtack","angi","yelp"],"title":"LeadSourceBrandSource"},"LeadSourceBrandUpdate":{"properties":{"brand_name":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Brand Name"}},"type":"object","required":["brand_name"],"title":"LeadSourceBrandUpdate"},"LeadSourceFacet":{"properties":{"source":{"type":"string","title":"Source"},"count":{"type":"integer","title":"Count"}},"type":"object","required":["source","count"],"title":"LeadSourceFacet"},"LeadStatus":{"type":"string","enum":["pending","synced","failed"],"title":"LeadStatus"},"LegTiming":{"type":"string","enum":["immediate","digest","deferred"],"title":"LegTiming"},"LegacyPhraseTarget":{"properties":{"kind":{"type":"string","const":"legacy_phrase","title":"Kind","default":"legacy_phrase"},"field":{"type":"string","enum":["recording","address_question","known_address_question","address_confirmation","email_question","known_email_question","email_confirmation","additional_help","farewell"],"title":"Field"}},"additionalProperties":false,"type":"object","required":["field"],"title":"LegacyPhraseTarget"},"LennyActivityDayRow":{"properties":{"day":{"type":"string","format":"date","title":"Day"},"organization_id":{"type":"string","title":"Organization Id"},"organization_name":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Organization Name"},"leads":{"type":"integer","title":"Leads","default":0},"leads_by_source":{"additionalProperties":{"type":"integer"},"type":"object","title":"Leads By Source"},"sends":{"type":"integer","title":"Sends"},"sends_by_source":{"additionalProperties":{"type":"integer"},"type":"object","title":"Sends By Source"},"replies":{"type":"integer","title":"Replies"},"replies_by_source":{"additionalProperties":{"type":"integer"},"type":"object","title":"Replies By Source"},"booked":{"type":"integer","title":"Booked"},"booked_by_source":{"additionalProperties":{"type":"integer"},"type":"object","title":"Booked By Source"}},"type":"object","required":["day","organization_id","sends","replies","booked"],"title":"LennyActivityDayRow"},"LennyDayDetail":{"properties":{"recent_leads":{"items":{"$ref":"#/components/schemas/LennyRecentLead"},"type":"array","title":"Recent Leads"}},"type":"object","title":"LennyDayDetail","description":"Per-(org, day) drill-down for the Inbound drawer: recent Lenny leads with reply/booked state."},"LennyRecentLead":{"properties":{"name":{"type":"string","title":"Name"},"source":{"type":"string","title":"Source"},"status":{"type":"string","title":"Status"}},"type":"object","required":["name","source","status"],"title":"LennyRecentLead"},"LinkCandidate":{"properties":{"source":{"type":"string","title":"Source"},"id":{"type":"string","title":"Id"},"label":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Label"},"detail":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Detail"},"matched_on":{"type":"string","title":"Matched On"}},"type":"object","required":["source","id","matched_on"],"title":"LinkCandidate","description":"A record this organization could be, and the reason it is a candidate."},"LinkOption":{"properties":{"source":{"type":"string","title":"Source"},"id":{"type":"string","title":"Id"},"label":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Label"},"detail":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Detail"}},"type":"object","required":["source","id"],"title":"LinkOption","description":"A record a person can pick, found by searching a mirror directly.\n\nDeliberately has no ``matched_on``: nothing matched it. This is the answer for the\norganizations the matcher found nothing for, which is every organization in the queue."},"LinkStatus":{"type":"string","enum":["conflicting","contested","unmatchable","unlinked","linked"],"title":"LinkStatus","description":"Why an organization is in the queue. Ordered by how actionable it is."},"LinkedRecord":{"properties":{"id":{"type":"string","title":"Id"},"label":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Label"},"detail":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Detail"},"locked":{"type":"boolean","title":"Locked","default":false}},"type":"object","required":["id"],"title":"LinkedRecord","description":"A link, resolved to something readable. The id alone is not reviewable."},"LocalizedText":{"properties":{"en_US":{"type":"string","maxLength":1000,"minLength":1,"title":"En Us"},"es_US":{"anyOf":[{"type":"string","maxLength":1000,"minLength":1},{"type":"null"}],"title":"Es Us"}},"additionalProperties":false,"type":"object","required":["en_US"],"title":"LocalizedText"},"LoginPayload":{"properties":{"email":{"type":"string","title":"Email"},"organization_id":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Organization Id"}},"type":"object","required":["email"],"title":"LoginPayload"},"LsaAccount":{"properties":{"account_id":{"type":"string","title":"Account Id"},"label":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Label"}},"type":"object","required":["account_id"],"title":"LsaAccount"},"LsaPollResult":{"properties":{"accounts_processed":{"type":"integer","title":"Accounts Processed","default":0},"new_leads":{"type":"integer","title":"New Leads","default":0},"duplicate_leads":{"type":"integer","title":"Duplicate Leads","default":0},"errors":{"items":{"additionalProperties":true,"type":"object"},"type":"array","title":"Errors","default":[]}},"type":"object","title":"LsaPollResult"},"LsaSetupRequest":{"properties":{"accounts":{"items":{"$ref":"#/components/schemas/LsaAccount"},"type":"array","title":"Accounts"}},"type":"object","required":["accounts"],"title":"LsaSetupRequest"},"LsaSyncPendingResult":{"properties":{"google_customer_id":{"type":"string","title":"Google Customer Id"},"pending_total":{"type":"integer","title":"Pending Total"},"queued":{"type":"integer","title":"Queued"}},"type":"object","required":["google_customer_id","pending_total","queued"],"title":"LsaSyncPendingResult"},"LsaTopLevelCustomer":{"properties":{"id":{"type":"string","title":"Id"},"resource_name":{"type":"string","title":"Resource Name"},"is_manager":{"type":"boolean","title":"Is Manager"},"descriptive_name":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Descriptive Name"},"login_customer_id":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Login Customer Id"},"has_lsa":{"anyOf":[{"type":"boolean"},{"type":"null"}],"title":"Has Lsa"},"linked_organization_id":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Linked Organization Id"},"linked_organization_name":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Linked Organization Name"}},"type":"object","required":["id","resource_name","is_manager"],"title":"LsaTopLevelCustomer","description":"Phase A row: a top-level Google Ads customer the OAuth user can act on\ndirectly, classified as either a leaf advertiser or an MCC. Leaf rows are\nprobed for LSA inline (``has_lsa`` populated). Manager rows leave\n``has_lsa=None`` — Phase B answers the children question."},"LsaWalkResult":{"properties":{"lsa_accounts":{"items":{"$ref":"#/components/schemas/GoogleAdAccountInfo"},"type":"array","title":"Lsa Accounts","default":[]},"nested_managers":{"items":{"$ref":"#/components/schemas/LsaTopLevelCustomer"},"type":"array","title":"Nested Managers","default":[]}},"type":"object","title":"LsaWalkResult","description":"Phase B response — one MCC's level-1 children, split by manager-vs-leaf.\n\nThe recursive picker uses ``nested_managers`` to render further-expandable\nsections; each one is itself a Phase B target via its ``id``.\n``lsa_accounts`` holds the LSA-capable advertisers at this level."},"MailboxCreateRequest":{"properties":{"name":{"type":"string","maxLength":120,"minLength":1,"title":"Name"},"email":{"type":"string","format":"email","title":"Email"}},"type":"object","required":["name","email"],"title":"MailboxCreateRequest"},"MailboxResponse":{"properties":{"id":{"type":"string","title":"Id"},"name":{"type":"string","title":"Name"},"email":{"type":"string","title":"Email"}},"type":"object","required":["id","name","email"],"title":"MailboxResponse"},"MailboxUpdateRequest":{"properties":{"name":{"anyOf":[{"type":"string","maxLength":120,"minLength":1},{"type":"null"}],"title":"Name"},"email":{"anyOf":[{"type":"string","format":"email"},{"type":"null"}],"title":"Email"}},"type":"object","title":"MailboxUpdateRequest","description":"What to change on a mailbox. A field left out is kept; neither can be cleared."},"MaintenanceOptoutMigrationEntry":{"properties":{"source_request_id":{"type":"string","minLength":1,"title":"Source Request Id"},"maintenance_type_id":{"anyOf":[{"type":"string","minLength":1},{"type":"null"}],"title":"Maintenance Type Id"},"maintenance_type_ids":{"items":{"type":"string"},"type":"array","maxItems":20,"title":"Maintenance Type Ids"},"evidence_event_ids":{"items":{"type":"string"},"type":"array","maxItems":20,"title":"Evidence Event Ids"},"evidence_notes":{"items":{"$ref":"#/components/schemas/MaintenanceOptoutNoteEvidence"},"type":"array","maxItems":20,"title":"Evidence Notes"},"expiry_mode":{"type":"string","enum":["preserve","until_lifted","until_date"],"title":"Expiry Mode","default":"preserve"},"expires_at":{"anyOf":[{"type":"string","format":"date-time"},{"type":"null"}],"title":"Expires At"},"review_reason":{"type":"string","maxLength":1000,"minLength":1,"title":"Review Reason"}},"additionalProperties":false,"type":"object","required":["source_request_id","review_reason"],"title":"MaintenanceOptoutMigrationEntry"},"MaintenanceOptoutMigrationItem":{"properties":{"source_request_id":{"type":"string","title":"Source Request Id"},"contact_id":{"type":"string","title":"Contact Id"},"customer_id":{"type":"integer","title":"Customer Id"},"source_campaign_id":{"type":"string","title":"Source Campaign Id"},"maintenance_type_id":{"type":"string","title":"Maintenance Type Id"},"maintenance_name":{"type":"string","title":"Maintenance Name"},"evidence_engagement_id":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Evidence Engagement Id"},"customer_statement":{"type":"string","title":"Customer Statement"},"expires_at":{"anyOf":[{"type":"string","format":"date-time"},{"type":"null"}],"title":"Expires At"},"source_expires_at":{"anyOf":[{"type":"string","format":"date-time"},{"type":"null"}],"title":"Source Expires At"},"expiry_mode":{"type":"string","enum":["preserve","until_lifted","until_date"],"title":"Expiry Mode","default":"preserve"},"evidence_kind":{"type":"string","enum":["customer_message","staff_note"],"title":"Evidence Kind","default":"customer_message"}},"type":"object","required":["source_request_id","contact_id","customer_id","source_campaign_id","maintenance_type_id","maintenance_name","evidence_engagement_id","customer_statement","expires_at"],"title":"MaintenanceOptoutMigrationItem"},"MaintenanceOptoutMigrationPreview":{"properties":{"organization_id":{"type":"string","title":"Organization Id"},"review_sha256":{"type":"string","title":"Review Sha256"},"items":{"items":{"$ref":"#/components/schemas/MaintenanceOptoutMigrationItem"},"type":"array","title":"Items"}},"type":"object","required":["organization_id","review_sha256","items"],"title":"MaintenanceOptoutMigrationPreview"},"MaintenanceOptoutMigrationRequest":{"properties":{"organization_id":{"type":"string","minLength":1,"title":"Organization Id"},"entries":{"items":{"$ref":"#/components/schemas/MaintenanceOptoutMigrationEntry"},"type":"array","maxItems":20,"minItems":1,"title":"Entries"}},"additionalProperties":false,"type":"object","required":["organization_id","entries"],"title":"MaintenanceOptoutMigrationRequest"},"MaintenanceOptoutMigrationResult":{"properties":{"source_request_id":{"type":"string","title":"Source Request Id"},"replacement_request_id":{"type":"string","title":"Replacement Request Id"}},"type":"object","required":["source_request_id","replacement_request_id"],"title":"MaintenanceOptoutMigrationResult"},"MaintenanceOptoutNoteEvidence":{"properties":{"kind":{"type":"string","enum":["customer_note","location_note"],"title":"Kind"},"id":{"type":"integer","exclusiveMinimum":0.0,"title":"Id"}},"additionalProperties":false,"type":"object","required":["kind","id"],"title":"MaintenanceOptoutNoteEvidence"},"MaintenanceTypeOptionPublic":{"properties":{"id":{"type":"string","title":"Id"},"name":{"type":"string","title":"Name"}},"type":"object","required":["id","name"],"title":"MaintenanceTypeOptionPublic","description":"One maintenance a stop request can name, for the panel's picker."},"MarkBookedBody":{"properties":{"booked":{"type":"boolean","title":"Booked"}},"type":"object","required":["booked"],"title":"MarkBookedBody"},"MembershipCondition":{"properties":{"kind":{"type":"string","const":"membership","title":"Kind"},"one_of":{"items":{"type":"string","enum":["member","nonmember","unknown"]},"type":"array","maxItems":20,"minItems":1,"title":"One Of"}},"additionalProperties":false,"type":"object","required":["kind","one_of"],"title":"MembershipCondition"},"MemoryResponse":{"properties":{"id":{"type":"string","title":"Id"},"level":{"type":"string","title":"Level"},"scope_id":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Scope Id"},"organization_id":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Organization Id"},"content":{"type":"string","title":"Content"},"category":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Category"},"valid_from":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Valid From"},"valid_until":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Valid Until"},"created_by":{"type":"string","title":"Created By"},"created_at":{"type":"string","title":"Created At"},"updated_at":{"type":"string","title":"Updated At"},"source_engagement_id":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Source Engagement Id"}},"type":"object","required":["id","level","scope_id","organization_id","content","category","valid_from","valid_until","created_by","created_at","updated_at","source_engagement_id"],"title":"MemoryResponse"},"MergePair":{"properties":{"merged_entity_id":{"type":"string","format":"uuid","title":"Merged Entity Id"},"into_entity_id":{"type":"string","format":"uuid","title":"Into Entity Id"},"evidence_id":{"anyOf":[{"type":"string","format":"uuid"},{"type":"null"}],"title":"Evidence Id"}},"additionalProperties":false,"type":"object","required":["merged_entity_id","into_entity_id"],"title":"MergePair"},"MergePreviewResponse":{"properties":{"operation":{"type":"string","enum":["merge","undo"],"title":"Operation"},"merged_entity_id":{"type":"string","title":"Merged Entity Id"},"into_entity_id":{"type":"string","title":"Into Entity Id"},"merge_id":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Merge Id"},"evidence_id":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Evidence Id"},"state_hash":{"type":"string","pattern":"^[0-9a-f]{64}$","title":"State Hash"},"snapshot":{"additionalProperties":true,"type":"object","title":"Snapshot"}},"additionalProperties":false,"type":"object","required":["operation","merged_entity_id","into_entity_id","merge_id","evidence_id","state_hash","snapshot"],"title":"MergePreviewResponse"},"MergeReceiptResponse":{"properties":{"merge_id":{"type":"string","title":"Merge Id"},"merged_entity_id":{"type":"string","title":"Merged Entity Id"},"into_entity_id":{"type":"string","title":"Into Entity Id"},"status":{"type":"string","enum":["accepted","undone"],"title":"Status"},"decided_by":{"type":"string","title":"Decided By"},"decided_at":{"type":"string","format":"date-time","title":"Decided At"},"undone_by":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Undone By"},"undone_at":{"anyOf":[{"type":"string","format":"date-time"},{"type":"null"}],"title":"Undone At"}},"additionalProperties":false,"type":"object","required":["merge_id","merged_entity_id","into_entity_id","status","decided_by","decided_at","undone_by","undone_at"],"title":"MergeReceiptResponse"},"MergeRequest":{"properties":{"merged_entity_id":{"type":"string","format":"uuid","title":"Merged Entity Id"},"into_entity_id":{"type":"string","format":"uuid","title":"Into Entity Id"},"evidence_id":{"anyOf":[{"type":"string","format":"uuid"},{"type":"null"}],"title":"Evidence Id"},"expected_state_hash":{"type":"string","pattern":"^[0-9a-f]{64}$","title":"Expected State Hash"}},"additionalProperties":false,"type":"object","required":["merged_entity_id","into_entity_id","expected_state_hash"],"title":"MergeRequest"},"MergeUndoRequest":{"properties":{"expected_state_hash":{"type":"string","pattern":"^[0-9a-f]{64}$","title":"Expected State Hash"}},"additionalProperties":false,"type":"object","required":["expected_state_hash"],"title":"MergeUndoRequest"},"MessagingBusinessIdentityPublic":{"properties":{"id":{"type":"string","title":"Id"},"organization_id":{"type":"string","title":"Organization Id"},"legal_name":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Legal Name"},"dba_name":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Dba Name"},"ein_last_four":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Ein Last Four"},"country":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Country"},"entity_type":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Entity Type"},"company_type":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Company Type"},"trades":{"anyOf":[{"items":{"type":"string"},"type":"array"},{"type":"null"}],"title":"Trades"},"vertical":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Vertical"},"website_url":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Website Url"}},"type":"object","required":["id","organization_id"],"title":"MessagingBusinessIdentityPublic"},"MessagingBusinessIdentityUpsert":{"properties":{"legal_name":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Legal Name"},"dba_name":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Dba Name"},"ein":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Ein"},"country":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Country"},"entity_type":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Entity Type"},"company_type":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Company Type"},"trades":{"anyOf":[{"items":{"type":"string"},"type":"array"},{"type":"null"}],"title":"Trades"},"vertical":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Vertical"},"phone":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Phone"},"street":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Street"},"city":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"City"},"state":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"State"},"postal_code":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Postal Code"},"website_url":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Website Url"},"authorized_representative_1_first_name":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Authorized Representative 1 First Name"},"authorized_representative_1_last_name":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Authorized Representative 1 Last Name"},"authorized_representative_1_email":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Authorized Representative 1 Email"},"authorized_representative_1_phone":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Authorized Representative 1 Phone"},"authorized_representative_1_business_title":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Authorized Representative 1 Business Title"},"authorized_representative_1_job_position":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Authorized Representative 1 Job Position"},"authorized_representative_2_first_name":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Authorized Representative 2 First Name"},"authorized_representative_2_last_name":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Authorized Representative 2 Last Name"},"authorized_representative_2_email":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Authorized Representative 2 Email"},"authorized_representative_2_phone":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Authorized Representative 2 Phone"},"authorized_representative_2_business_title":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Authorized Representative 2 Business Title"},"authorized_representative_2_job_position":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Authorized Representative 2 Job Position"}},"type":"object","title":"MessagingBusinessIdentityUpsert"},"MessagingComplianceConfigPublic":{"properties":{"id":{"type":"string","title":"Id"},"created_at":{"type":"string","format":"date-time","title":"Created At"},"updated_at":{"type":"string","format":"date-time","title":"Updated At"},"deleted_at":{"anyOf":[{"type":"string","format":"date-time"},{"type":"null"}],"title":"Deleted At"},"organization_id":{"type":"string","title":"Organization Id"},"provider":{"$ref":"#/components/schemas/MessagingProvider"},"business_legal_name":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Business Legal Name"},"website_url":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Website Url"},"program_name":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Program Name"},"program_description":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Program Description"},"use_case_categories":{"anyOf":[{"items":{"type":"string"},"type":"array"},{"type":"null"}],"title":"Use Case Categories"},"use_case_subcategories":{"anyOf":[{"items":{"type":"string"},"type":"array"},{"type":"null"}],"title":"Use Case Subcategories"},"sample_messages":{"anyOf":[{"items":{"type":"string"},"type":"array"},{"type":"null"}],"title":"Sample Messages"},"opt_in_type":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Opt In Type"},"opt_in_description":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Opt In Description"},"expected_message_volume":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Expected Message Volume"},"message_frequency":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Message Frequency"},"help_message":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Help Message"},"stop_message":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Stop Message"},"terms_url":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Terms Url"},"privacy_url":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Privacy Url"},"number_type":{"anyOf":[{"$ref":"#/components/schemas/MessagingNumberType"},{"type":"null"}]}},"type":"object","required":["id","created_at","updated_at","organization_id","provider"],"title":"MessagingComplianceConfigPublic"},"MessagingComplianceConfigUpsert":{"properties":{"provider_account_id":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Provider Account Id"},"customer_care_contact_name":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Customer Care Contact Name"},"customer_care_email":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Customer Care Email"},"customer_care_phone":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Customer Care Phone"},"program_name":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Program Name"},"program_description":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Program Description"},"use_case_categories":{"anyOf":[{"items":{"type":"string"},"type":"array"},{"type":"null"}],"title":"Use Case Categories"},"use_case_subcategories":{"anyOf":[{"items":{"type":"string"},"type":"array"},{"type":"null"}],"title":"Use Case Subcategories"},"sample_messages":{"anyOf":[{"items":{"type":"string"},"type":"array"},{"type":"null"}],"title":"Sample Messages"},"opt_in_type":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Opt In Type"},"opt_in_description":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Opt In Description"},"expected_message_volume":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Expected Message Volume"},"message_frequency":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Message Frequency"},"help_message":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Help Message"},"stop_message":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Stop Message"},"terms_url":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Terms Url"},"privacy_url":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Privacy Url"},"number_type":{"anyOf":[{"$ref":"#/components/schemas/MessagingNumberType"},{"type":"null"}]},"opt_in_evidence_urls":{"anyOf":[{"items":{"type":"string"},"type":"array"},{"type":"null"}],"title":"Opt In Evidence Urls"}},"type":"object","title":"MessagingComplianceConfigUpsert"},"MessagingIntendedRegistrationType":{"type":"string","enum":["toll_free_verification","10_dlc_phone_number"],"title":"MessagingIntendedRegistrationType"},"MessagingNumberType":{"type":"string","enum":["toll_free","local"],"title":"MessagingNumberType"},"MessagingPhoneNumberStatus":{"type":"string","enum":["pending","purchased","failed","released"],"title":"MessagingPhoneNumberStatus"},"MessagingPhoneNumberStatusPublic":{"properties":{"id":{"type":"string","title":"Id"},"phone_number_suffix":{"type":"string","title":"Phone Number Suffix"},"status":{"$ref":"#/components/schemas/MessagingPhoneNumberStatus"},"provider_status":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Provider Status"},"provider_order_id":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Provider Order Id"},"external_id":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"External Id"}},"type":"object","required":["id","phone_number_suffix","status"],"title":"MessagingPhoneNumberStatusPublic"},"MessagingProvider":{"type":"string","enum":["twilio","telnyx"],"title":"MessagingProvider"},"MessagingProvisioningOrchestrationPublic":{"properties":{"provider":{"$ref":"#/components/schemas/MessagingProvider"},"config_id":{"type":"string","title":"Config Id"},"phase":{"type":"string","title":"Phase"},"identity_registration_id":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Identity Registration Id"},"phone_number_id":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Phone Number Id"},"complete":{"type":"boolean","title":"Complete","default":false},"terminal":{"type":"boolean","title":"Terminal","default":false},"resumable":{"type":"boolean","title":"Resumable","default":false},"provider_status":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Provider Status"},"reason":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Reason"},"error_code":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Error Code"}},"type":"object","required":["provider","config_id","phase"],"title":"MessagingProvisioningOrchestrationPublic"},"MessagingProvisioningOrchestrationRequest":{"properties":{"phone_number":{"type":"string","title":"Phone Number"},"state_fingerprint":{"type":"string","maxLength":64,"minLength":64,"title":"State Fingerprint"},"confirmed_at":{"type":"string","format":"date-time","title":"Confirmed At"},"confirmation_reason":{"type":"string","maxLength":500,"minLength":1,"title":"Confirmation Reason"},"confirmation_reference":{"type":"string","maxLength":255,"minLength":1,"title":"Confirmation Reference"},"retry_pending_purchase":{"type":"boolean","title":"Retry Pending Purchase","default":false},"replace_rejected_campaign_id":{"anyOf":[{"type":"string","minLength":1},{"type":"null"}],"title":"Replace Rejected Campaign Id"}},"type":"object","required":["phone_number","state_fingerprint","confirmed_at","confirmation_reason","confirmation_reference"],"title":"MessagingProvisioningOrchestrationRequest"},"MessagingProvisioningStatusPublic":{"properties":{"provider":{"$ref":"#/components/schemas/MessagingProvider"},"config_id":{"type":"string","title":"Config Id"},"stages":{"items":{"$ref":"#/components/schemas/MessagingRegistrationStagePublic"},"type":"array","title":"Stages"},"history":{"items":{"$ref":"#/components/schemas/MessagingRegistrationHistoryPublic"},"type":"array","title":"History"},"phone_numbers":{"items":{"$ref":"#/components/schemas/MessagingPhoneNumberStatusPublic"},"type":"array","title":"Phone Numbers"},"service_profiles":{"items":{"$ref":"#/components/schemas/MessagingServiceProfileStatusPublic"},"type":"array","title":"Service Profiles"}},"type":"object","required":["provider","config_id","stages","history"],"title":"MessagingProvisioningStatusPublic"},"MessagingReadinessPublic":{"properties":{"provider":{"$ref":"#/components/schemas/MessagingProvider"},"config_id":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Config Id"},"ready":{"type":"boolean","title":"Ready"},"blockers":{"items":{"type":"string"},"type":"array","title":"Blockers"},"confirmation_required":{"type":"boolean","title":"Confirmation Required","default":true},"state_fingerprint":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"State Fingerprint"}},"type":"object","required":["provider","ready","blockers"],"title":"MessagingReadinessPublic"},"MessagingRegistrationEventSource":{"type":"string","enum":["webhook","poll","api"],"title":"MessagingRegistrationEventSource"},"MessagingRegistrationHistoryPublic":{"properties":{"id":{"type":"string","title":"Id"},"registration_id":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Registration Id"},"registration_type":{"$ref":"#/components/schemas/MessagingRegistrationType"},"status":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Status"},"provider_status":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Provider Status"},"reason":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Reason"},"error_code":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Error Code"},"source":{"$ref":"#/components/schemas/MessagingRegistrationEventSource"},"occurred_at":{"anyOf":[{"type":"string","format":"date-time"},{"type":"null"}],"title":"Occurred At"},"created_at":{"anyOf":[{"type":"string","format":"date-time"},{"type":"null"}],"title":"Created At"}},"type":"object","required":["id","registration_type","source"],"title":"MessagingRegistrationHistoryPublic"},"MessagingRegistrationStagePublic":{"properties":{"id":{"type":"string","title":"Id"},"registration_type":{"$ref":"#/components/schemas/MessagingRegistrationType"},"external_id":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"External Id"},"status":{"$ref":"#/components/schemas/MessagingRegistrationStatus"},"provider_status":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Provider Status"},"reason":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Reason"},"error_code":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Error Code"},"status_updated_at":{"anyOf":[{"type":"string","format":"date-time"},{"type":"null"}],"title":"Status Updated At"}},"type":"object","required":["id","registration_type","status"],"title":"MessagingRegistrationStagePublic"},"MessagingRegistrationStatus":{"type":"string","enum":["pending","in_review","approved","rejected","expired","suspended"],"title":"MessagingRegistrationStatus"},"MessagingRegistrationType":{"type":"string","enum":["toll_free_verification","10_dlc_brand","10_dlc_campaign","10_dlc_phone_number","customer_profile","trust_product"],"title":"MessagingRegistrationType"},"MessagingServiceProfileStatusPublic":{"properties":{"id":{"type":"string","title":"Id"},"external_id":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"External Id"},"campaign_registration_id":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Campaign Registration Id"}},"type":"object","required":["id"],"title":"MessagingServiceProfileStatusPublic"},"MetaAdAccountResponse":{"properties":{"account_id":{"type":"string","title":"Account Id"},"name":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Name"},"currency":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Currency"},"account_status":{"anyOf":[{"type":"integer"},{"type":"null"}],"title":"Account Status"},"reach":{"type":"integer","title":"Reach","default":0},"frequency":{"type":"number","title":"Frequency","default":0.0}},"type":"object","required":["account_id"],"title":"MetaAdAccountResponse"},"MetaAdsInsightsResponse":{"properties":{"ads_scope_granted":{"type":"boolean","title":"Ads Scope Granted","default":true},"unavailable_reason":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Unavailable Reason"},"accounts":{"items":{"$ref":"#/components/schemas/MetaAdAccountResponse"},"type":"array","title":"Accounts"},"campaigns":{"items":{"$ref":"#/components/schemas/MetaCampaignInsightResponse"},"type":"array","title":"Campaigns"}},"type":"object","title":"MetaAdsInsightsResponse"},"MetaCampaignInsightResponse":{"properties":{"account_id":{"type":"string","title":"Account Id"},"campaign_id":{"type":"string","title":"Campaign Id"},"campaign_name":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Campaign Name"},"date":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Date"},"spend":{"type":"string","title":"Spend","default":"0"},"impressions":{"type":"integer","title":"Impressions","default":0},"clicks":{"type":"integer","title":"Clicks","default":0},"reach":{"type":"integer","title":"Reach","default":0},"conversions":{"type":"integer","title":"Conversions","default":0}},"type":"object","required":["account_id","campaign_id"],"title":"MetaCampaignInsightResponse"},"MetaPageBrandUpdateRequest":{"properties":{"brand_name":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Brand Name"}},"type":"object","required":["brand_name"],"title":"MetaPageBrandUpdateRequest"},"MetaPageConnectResponse":{"properties":{"meta_page_connection_id":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Meta Page Connection Id"},"page_id":{"type":"string","title":"Page Id"},"page_name":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Page Name"},"is_connected":{"type":"boolean","title":"Is Connected"},"status":{"type":"string","title":"Status"},"messenger_channel_id":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Messenger Channel Id"},"subscribed_fields":{"items":{"type":"string"},"type":"array","title":"Subscribed Fields"},"messenger_ready":{"type":"boolean","title":"Messenger Ready","default":false},"readiness_status":{"type":"string","title":"Readiness Status","default":"unbound"},"readiness_checks":{"additionalProperties":{"type":"boolean"},"type":"object","title":"Readiness Checks"},"messaging_scope_granted":{"type":"boolean","title":"Messaging Scope Granted","default":false},"instagram_id":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Instagram Id"},"instagram_channel_id":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Instagram Channel Id"},"instagram_ready":{"type":"boolean","title":"Instagram Ready","default":false},"instagram_scope_granted":{"type":"boolean","title":"Instagram Scope Granted","default":false},"ads_scope_granted":{"type":"boolean","title":"Ads Scope Granted","default":false},"last_webhook_at":{"anyOf":[{"type":"string","format":"date-time"},{"type":"null"}],"title":"Last Webhook At"},"last_error":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Last Error"}},"type":"object","required":["page_id","is_connected","status"],"title":"MetaPageConnectResponse"},"MetaPageResponse":{"properties":{"meta_page_connection_id":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Meta Page Connection Id"},"page_id":{"type":"string","title":"Page Id"},"page_name":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Page Name"},"brand_name":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Brand Name"},"is_connected":{"type":"boolean","title":"Is Connected","default":false},"messenger_channel_id":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Messenger Channel Id"},"subscribed_fields":{"items":{"type":"string"},"type":"array","title":"Subscribed Fields"},"messenger_ready":{"type":"boolean","title":"Messenger Ready","default":false},"readiness_status":{"type":"string","title":"Readiness Status","default":"unbound"},"readiness_checks":{"additionalProperties":{"type":"boolean"},"type":"object","title":"Readiness Checks"},"messaging_scope_granted":{"type":"boolean","title":"Messaging Scope Granted","default":false},"instagram_id":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Instagram Id"},"instagram_channel_id":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Instagram Channel Id"},"instagram_ready":{"type":"boolean","title":"Instagram Ready","default":false},"instagram_scope_granted":{"type":"boolean","title":"Instagram Scope Granted","default":false},"ads_scope_granted":{"type":"boolean","title":"Ads Scope Granted","default":false},"last_webhook_at":{"anyOf":[{"type":"string","format":"date-time"},{"type":"null"}],"title":"Last Webhook At"},"last_error":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Last Error"}},"type":"object","required":["page_id"],"title":"MetaPageResponse"},"MetaTokenDetails":{"properties":{"token_expires_at":{"anyOf":[{"type":"string","format":"date-time"},{"type":"null"}],"title":"Token Expires At"},"needs_reconnect":{"type":"boolean","title":"Needs Reconnect"},"expires_soon":{"type":"boolean","title":"Expires Soon"}},"type":"object","required":["needs_reconnect","expires_soon"],"title":"MetaTokenDetails"},"MetricComparison":{"properties":{"fixture":{"type":"string","title":"Fixture"},"tenant_name":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Tenant Name"},"time_frame":{"type":"string","title":"Time Frame"},"from_date":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"From Date"},"to_date":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"To Date"},"status":{"type":"string","title":"Status"},"expected":{"anyOf":[{"type":"number"},{"type":"null"}],"title":"Expected"},"actual":{"anyOf":[{"type":"number"},{"type":"null"}],"title":"Actual"},"delta":{"anyOf":[{"type":"number"},{"type":"null"}],"title":"Delta"},"tolerance":{"anyOf":[{"type":"number"},{"type":"null"}],"title":"Tolerance"},"detail":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Detail"}},"type":"object","required":["fixture","time_frame","status"],"title":"MetricComparison"},"MetricVerdictPublic":{"properties":{"metric_key":{"type":"string","title":"Metric Key"},"is_primary":{"type":"boolean","title":"Is Primary"},"has_data":{"type":"boolean","title":"Has Data"},"is_significant":{"type":"boolean","title":"Is Significant"},"higher_is_better":{"type":"boolean","title":"Higher Is Better"},"baseline_variation":{"type":"string","title":"Baseline Variation"},"baseline_rate":{"anyOf":[{"type":"number"},{"type":"null"}],"title":"Baseline Rate"},"candidate_variation":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Candidate Variation"},"candidate_rate":{"anyOf":[{"type":"number"},{"type":"null"}],"title":"Candidate Rate"},"effect_relative":{"anyOf":[{"type":"number"},{"type":"null"}],"title":"Effect Relative"},"probability_best":{"anyOf":[{"type":"number"},{"type":"null"}],"title":"Probability Best"},"credible_interval":{"anyOf":[{"prefixItems":[{"type":"number"},{"type":"number"}],"type":"array","maxItems":2,"minItems":2},{"type":"null"}],"title":"Credible Interval"},"direction":{"type":"string","title":"Direction"},"winning_variation":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Winning Variation"}},"type":"object","required":["metric_key","is_primary","has_data","is_significant","higher_is_better","baseline_variation","baseline_rate","candidate_variation","candidate_rate","effect_relative","probability_best","credible_interval","direction","winning_variation"],"title":"MetricVerdictPublic"},"MicrosoftAdsAccountResponse":{"properties":{"customer_id":{"type":"string","title":"Customer Id"},"account_id":{"type":"string","title":"Account Id"},"name":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Name"},"number":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Number"},"status":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Status"}},"type":"object","required":["customer_id","account_id"],"title":"MicrosoftAdsAccountResponse"},"MicrosoftAdsCallbackRequest":{"properties":{"code":{"type":"string","format":"password","title":"Code","description":"Authorization code from the identity provider's redirect","writeOnly":true},"identity_provider":{"$ref":"#/components/schemas/IdentityProvider","default":"microsoft"}},"type":"object","required":["code"],"title":"MicrosoftAdsCallbackRequest"},"MicrosoftAdsConnectionResponse":{"properties":{"integration_id":{"type":"string","title":"Integration Id"},"status":{"type":"string","title":"Status"},"customer_count":{"type":"integer","title":"Customer Count"}},"type":"object","required":["integration_id","status","customer_count"],"title":"MicrosoftAdsConnectionResponse"},"MicrosoftAdsDisconnectResponse":{"properties":{"success":{"type":"boolean","title":"Success"}},"type":"object","required":["success"],"title":"MicrosoftAdsDisconnectResponse"},"MicrosoftAdsStatusResponse":{"properties":{"connected":{"type":"boolean","title":"Connected"},"needs_reconnect":{"type":"boolean","title":"Needs Reconnect"}},"type":"object","required":["connected","needs_reconnect"],"title":"MicrosoftAdsStatusResponse"},"NamedEntity":{"properties":{"id":{"type":"integer","title":"Id"},"name":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Name"}},"type":"object","required":["id","name"],"title":"NamedEntity"},"NeedsSupportRequest":{"properties":{"agent_v2_ids":{"items":{"type":"string"},"type":"array","title":"Agent V2 Ids","default":[]},"roster_ids":{"items":{"type":"string"},"type":"array","title":"Roster Ids","default":[]},"transcript_summary":{"anyOf":[{"items":{"$ref":"#/components/schemas/TranscriptSummaryTurn"},"type":"array"},{"type":"null"}],"title":"Transcript Summary"},"transcript_summary_truncated":{"type":"boolean","title":"Transcript Summary Truncated","default":false}},"type":"object","title":"NeedsSupportRequest","description":"Body of the needs-support notification call.\n\nSubclasses the filters rather than nesting them so the wire shape stays a flat\nobject: an old caller's filters-only body still validates, and a new caller's\nextra field is ignored by an older reader. That is what lets agent-service and\napi-service roll out in either order."},"NetworkConnectionRequest":{"properties":{"tenant_id":{"type":"string","title":"Tenant Id"},"network_id":{"type":"string","title":"Network Id"}},"additionalProperties":false,"type":"object","required":["tenant_id","network_id"],"title":"NetworkConnectionRequest"},"NoIntentHandlingOutcomesPublic":{"properties":{"total_calls":{"type":"integer","title":"Total Calls"},"handled_calls":{"type":"integer","title":"Handled Calls"},"not_handled_calls":{"type":"integer","title":"Not Handled Calls"},"irrelevant_calls":{"type":"integer","title":"Irrelevant Calls"},"unclear_or_not_evaluated_calls":{"type":"integer","title":"Unclear Or Not Evaluated Calls"}},"type":"object","required":["total_calls","handled_calls","not_handled_calls","irrelevant_calls","unclear_or_not_evaluated_calls"],"title":"NoIntentHandlingOutcomesPublic"},"NotEvaluatedOutcomesPublic":{"properties":{"total_calls":{"type":"integer","title":"Total Calls"},"no_recording_calls":{"type":"integer","title":"No Recording Calls"},"evaluation_pending_calls":{"type":"integer","title":"Evaluation Pending Calls"},"processing_status_counts":{"anyOf":[{"additionalProperties":{"type":"integer"},"propertyNames":{"$ref":"#/components/schemas/CallAnalysisProcessingStatus"},"type":"object"},{"type":"null"}],"title":"Processing Status Counts"}},"type":"object","required":["total_calls","no_recording_calls","evaluation_pending_calls"],"title":"NotEvaluatedOutcomesPublic"},"Notification-Input":{"properties":{"organization_id":{"type":"string","title":"Organization Id"},"created_at":{"type":"string","format":"date-time","title":"Created At"},"updated_at":{"type":"string","format":"date-time","title":"Updated At"},"deleted_at":{"anyOf":[{"type":"string","format":"date-time"},{"type":"null"}],"title":"Deleted At"},"id":{"type":"string","title":"Id"},"module_id":{"type":"string","title":"Module Id"},"priority":{"anyOf":[{"type":"integer"},{"type":"null"}],"title":"Priority"},"active":{"type":"boolean","title":"Active","default":true},"delivery_mode_override":{"anyOf":[{"$ref":"#/components/schemas/NotificationDeliveryMode"},{"type":"null"}]}},"type":"object","required":["organization_id","module_id"],"title":"Notification"},"Notification-Output":{"additionalProperties":true,"type":"object"},"NotificationChannel":{"type":"string","enum":["email","sms","app","push","call"],"title":"NotificationChannel"},"NotificationDeliveryMode":{"type":"string","enum":["immediate","digest"],"title":"NotificationDeliveryMode"},"NotificationFilters":{"properties":{"agent_v2_ids":{"items":{"type":"string"},"type":"array","title":"Agent V2 Ids","default":[]},"roster_ids":{"items":{"type":"string"},"type":"array","title":"Roster Ids","default":[]}},"type":"object","title":"NotificationFilters","description":"Subscription scope carried by a dispatch; targeting by business unit is a rule attribute now."},"NotificationModule-Input":{"properties":{"created_at":{"type":"string","format":"date-time","title":"Created At"},"updated_at":{"type":"string","format":"date-time","title":"Updated At"},"deleted_at":{"anyOf":[{"type":"string","format":"date-time"},{"type":"null"}],"title":"Deleted At"},"id":{"type":"string","title":"Id"},"type":{"$ref":"#/components/schemas/NotificationType"},"title":{"type":"string","title":"Title"},"description":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Description"},"batchable":{"type":"boolean","title":"Batchable","default":false},"default_delivery_mode":{"anyOf":[{"$ref":"#/components/schemas/NotificationDeliveryMode"},{"type":"null"}]},"priority":{"type":"integer","title":"Priority","default":0},"disabled_reason":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Disabled Reason"}},"type":"object","required":["type","title"],"title":"NotificationModule"},"NotificationModule-Output":{"additionalProperties":true,"type":"object"},"NotificationType":{"type":"string","enum":["appointment_cancelation","appointment_cancelation_request","appointment_update","appointment_update_request","appointment_creation","appointment_creation_request","statement_interest","statement_request","subscription_creation_request","subscription_cancellation_request","subscription_renewal_request","engagement_needs_review","daily_report","weekend_report","weekly_report","monthly_report","capacity_digest","estimate_interest","estimate_request","appointment_creation_urgent","engagement_needs_review_emergency","estimate_dismissed","engagement_customer_reply_while_ai_paused","onboarding","web_callback","conversation_evaluation_failed","voice_call_ended"],"title":"NotificationType"},"NotificationUpdateBody":{"properties":{"active":{"anyOf":[{"type":"boolean"},{"type":"null"}],"title":"Active"},"priority":{"anyOf":[{"type":"integer"},{"type":"null"}],"title":"Priority"}},"type":"object","title":"NotificationUpdateBody","description":"Partial update body for PUT /notifications/{id}. Only provided fields are updated."},"NumberInventoryPublic":{"properties":{"provider":{"$ref":"#/components/schemas/MessagingProvider"},"area_code":{"type":"string","title":"Area Code"},"numbers":{"items":{"$ref":"#/components/schemas/AvailablePhoneNumberPublic"},"type":"array","title":"Numbers"}},"type":"object","required":["provider","area_code","numbers"],"title":"NumberInventoryPublic"},"NumberSelectionStatePublic":{"properties":{"purchase_after_approval":{"type":"boolean","title":"Purchase After Approval","default":false},"provider":{"$ref":"#/components/schemas/MessagingProvider"},"area_code":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Area Code"},"selected_number":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Selected Number"},"company_location":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Company Location"},"existing_numbers":{"items":{"$ref":"#/components/schemas/ExistingSetupNumber"},"type":"array","title":"Existing Numbers"}},"type":"object","required":["provider"],"title":"NumberSelectionStatePublic"},"OfficeHours":{"properties":{"mon":{"items":{"$ref":"#/components/schemas/OfficeInterval"},"type":"array","maxItems":12,"title":"Mon"},"tue":{"items":{"$ref":"#/components/schemas/OfficeInterval"},"type":"array","maxItems":12,"title":"Tue"},"wed":{"items":{"$ref":"#/components/schemas/OfficeInterval"},"type":"array","maxItems":12,"title":"Wed"},"thu":{"items":{"$ref":"#/components/schemas/OfficeInterval"},"type":"array","maxItems":12,"title":"Thu"},"fri":{"items":{"$ref":"#/components/schemas/OfficeInterval"},"type":"array","maxItems":12,"title":"Fri"},"sat":{"items":{"$ref":"#/components/schemas/OfficeInterval"},"type":"array","maxItems":12,"title":"Sat"},"sun":{"items":{"$ref":"#/components/schemas/OfficeInterval"},"type":"array","maxItems":12,"title":"Sun"},"breaks_open":{"type":"boolean","title":"Breaks Open","description":"On voice calls, a gap between a day's intervals counts as office hours, with no live team to transfer to.","default":false}},"additionalProperties":false,"type":"object","required":["mon","tue","wed","thu","fri","sat","sun"],"title":"OfficeHours"},"OfficeHoursResponse":{"properties":{"hours":{"anyOf":[{"$ref":"#/components/schemas/OfficeHours"},{"type":"null"}]},"timezone":{"type":"string","title":"Timezone"},"open_now":{"anyOf":[{"type":"boolean"},{"type":"null"}],"title":"Open Now"},"closed_for_holiday":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Closed For Holiday"},"jenny_text":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Jenny Text"},"needs_review":{"type":"boolean","title":"Needs Review"},"service_titan_hours":{"anyOf":[{"$ref":"#/components/schemas/OfficeHours"},{"type":"null"}]}},"type":"object","required":["hours","timezone","open_now","closed_for_holiday","jenny_text","needs_review","service_titan_hours"],"title":"OfficeHoursResponse","description":"The org's office hours and what they mean right now, in the org's timezone.\n\n`hours` is None until the org sets them. `service_titan_hours` is offered for import only;\nit never stands in for unset hours."},"OfficeHoursUpdate":{"properties":{"hours":{"$ref":"#/components/schemas/OfficeHours"}},"type":"object","required":["hours"],"title":"OfficeHoursUpdate"},"OfficeInterval":{"properties":{"start_minute":{"type":"integer","maximum":1439.0,"minimum":0.0,"title":"Start Minute"},"end_minute":{"type":"integer","maximum":1440.0,"minimum":1.0,"title":"End Minute"}},"additionalProperties":false,"type":"object","required":["start_minute","end_minute"],"title":"OfficeInterval"},"OfficeStateCondition":{"properties":{"kind":{"type":"string","const":"office_state","title":"Kind"},"one_of":{"items":{"type":"string","enum":["open","closed","unknown","failed"]},"type":"array","maxItems":20,"minItems":1,"title":"One Of"}},"additionalProperties":false,"type":"object","required":["kind","one_of"],"title":"OfficeStateCondition"},"OnCallHandoff":{"properties":{"user_id":{"type":"string","title":"User Id"},"name":{"type":"string","title":"Name"},"at":{"type":"string","format":"date-time","title":"At"},"at_local":{"type":"string","format":"date-time","title":"At Local"}},"type":"object","required":["user_id","name","at","at_local"],"title":"OnCallHandoff","description":"A coming handoff and whose regular turn starts there. A swap can still put someone else on."},"OnCallListCreate":{"properties":{"name":{"type":"string","maxLength":120,"minLength":1,"title":"Name"},"timezone":{"anyOf":[{"type":"string","maxLength":64},{"type":"null"}],"title":"Timezone"},"turn_length_days":{"type":"integer","maximum":28.0,"minimum":1.0,"title":"Turn Length Days"},"first_handoff_local":{"type":"string","format":"date-time","title":"First Handoff Local"},"member_user_ids":{"items":{"type":"string"},"type":"array","maxItems":50,"minItems":1,"title":"Member User Ids"},"on_call_now_user_id":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"On Call Now User Id"}},"type":"object","required":["name","turn_length_days","first_handoff_local","member_user_ids"],"title":"OnCallListCreate","description":"A new list. The time zone falls back to the organization's.\n\nWithout ``on_call_now_user_id``, the first member's turn is the one starting at\n``first_handoff_local``, a clock time in the list's time zone with no offset."},"OnCallListIssue":{"properties":{"code":{"type":"string","title":"Code"},"user_ids":{"items":{"type":"string"},"type":"array","title":"User Ids","default":[]},"swap_id":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Swap Id"},"rule_keys":{"items":{"type":"string"},"type":"array","title":"Rule Keys","default":[]}},"type":"object","required":["code"],"title":"OnCallListIssue","description":"Why a change can't be made, as a code an app words for itself."},"OnCallListMember":{"properties":{"user_id":{"type":"string","title":"User Id"},"name":{"type":"string","title":"Name"},"position":{"type":"integer","title":"Position"},"channels":{"items":{"type":"string"},"type":"array","title":"Channels","default":[]},"reasons":{"items":{"type":"string"},"type":"array","title":"Reasons","default":[]}},"type":"object","required":["user_id","name","position"],"title":"OnCallListMember","description":"A member in turn order, judged on every channel a member can take, like a preview's member."},"OnCallListPreview":{"properties":{"before":{"anyOf":[{"$ref":"#/components/schemas/OnCallListView"},{"type":"null"}]},"after":{"anyOf":[{"$ref":"#/components/schemas/OnCallListView"},{"type":"null"}]},"issues":{"items":{"$ref":"#/components/schemas/OnCallListIssue"},"type":"array","title":"Issues"}},"type":"object","required":["before","after","issues"],"title":"OnCallListPreview","description":"The list before and after the change. ``after`` is None when ``issues`` says why it can't be made."},"OnCallListPreviewRequest":{"properties":{"list_id":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"List Id"},"changes":{"anyOf":[{"$ref":"#/components/schemas/OnCallListUpdate"},{"type":"null"}]},"add_swap":{"anyOf":[{"$ref":"#/components/schemas/OnCallSwapCreate"},{"type":"null"}]},"remove_swap_id":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Remove Swap Id"},"handoffs":{"type":"integer","maximum":12.0,"minimum":0.0,"title":"Handoffs","default":4}},"type":"object","title":"OnCallListPreviewRequest","description":"A change to try without saving it.\n\nWith no ``list_id`` it is a new list, whose ``changes`` must give its name, turn length,\nfirst handoff and members; the time zone falls back to the organization's."},"OnCallListUpdate":{"properties":{"name":{"anyOf":[{"type":"string","maxLength":120,"minLength":1},{"type":"null"}],"title":"Name"},"timezone":{"anyOf":[{"type":"string","maxLength":64},{"type":"null"}],"title":"Timezone"},"turn_length_days":{"anyOf":[{"type":"integer","maximum":28.0,"minimum":1.0},{"type":"null"}],"title":"Turn Length Days"},"first_handoff_local":{"anyOf":[{"type":"string","format":"date-time"},{"type":"null"}],"title":"First Handoff Local"},"member_user_ids":{"anyOf":[{"items":{"type":"string"},"type":"array","maxItems":50,"minItems":1},{"type":"null"}],"title":"Member User Ids"},"on_call_now_user_id":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"On Call Now User Id"}},"type":"object","title":"OnCallListUpdate","description":"The fields a change sets; the ones left out keep their value.\n\n``first_handoff_local`` is a clock time in the list's time zone, with no offset.\n``on_call_now_user_id`` says who is on call from now until the next handoff; without it, whoever\nis on call stays on call."},"OnCallListView":{"properties":{"id":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Id"},"name":{"type":"string","title":"Name"},"timezone":{"type":"string","title":"Timezone"},"turn_length_days":{"type":"integer","title":"Turn Length Days"},"first_handoff_local":{"type":"string","format":"date-time","title":"First Handoff Local"},"members":{"items":{"$ref":"#/components/schemas/OnCallListMember"},"type":"array","title":"Members"},"on_call_now":{"anyOf":[{"$ref":"#/components/schemas/OnCallNow"},{"type":"null"}]},"backup":{"anyOf":[{"$ref":"#/components/schemas/OnCallPerson"},{"type":"null"}]},"next_handoffs":{"items":{"$ref":"#/components/schemas/OnCallHandoff"},"type":"array","title":"Next Handoffs"},"swaps":{"items":{"$ref":"#/components/schemas/OnCallSwap"},"type":"array","title":"Swaps"},"warnings":{"items":{"type":"string"},"type":"array","title":"Warnings"},"rule_keys":{"items":{"type":"string"},"type":"array","title":"Rule Keys"},"updated_at":{"anyOf":[{"type":"string","format":"date-time"},{"type":"null"}],"title":"Updated At"}},"type":"object","required":["id","name","timezone","turn_length_days","first_handoff_local","members","on_call_now","backup","next_handoffs","swaps","warnings","rule_keys"],"title":"OnCallListView","description":"One list as it stands at a moment.\n\n``backup`` is the next member after whoever's regular turn it is, skipping whoever is on call.\n``swaps`` are the ones running or still to come. ``warnings`` holds ``fewer_than_two`` when the\nlist has no backup. ``rule_keys`` are the rules whose newest or active version names the list."},"OnCallNow":{"properties":{"user_id":{"type":"string","title":"User Id"},"name":{"type":"string","title":"Name"},"swap_id":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Swap Id"},"until":{"anyOf":[{"type":"string","format":"date-time"},{"type":"null"}],"title":"Until"}},"type":"object","required":["user_id","name"],"title":"OnCallNow","description":"Whoever is on call now, and until when: the next handoff, or the end of the swap that put them on."},"OnCallPerson":{"properties":{"user_id":{"type":"string","title":"User Id"},"name":{"type":"string","title":"Name"}},"type":"object","required":["user_id","name"],"title":"OnCallPerson"},"OnCallResponse":{"properties":{"checked_at":{"type":"string","format":"date-time","title":"Checked At"},"shifts_synced_at":{"anyOf":[{"type":"string","format":"date-time"},{"type":"null"}],"title":"Shifts Synced At"},"rotations":{"items":{"$ref":"#/components/schemas/OnCallRotation"},"type":"array","title":"Rotations"}},"type":"object","required":["checked_at","shifts_synced_at","rotations"],"title":"OnCallResponse"},"OnCallRotation":{"properties":{"rotation_id":{"type":"string","title":"Rotation Id"},"source":{"type":"string","enum":["servicetitan","upsmith"],"title":"Source","default":"servicetitan"},"name":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Name"},"refusal":{"anyOf":[{"$ref":"#/components/schemas/RotationRefusal"},{"type":"null"}]},"technicians":{"items":{"$ref":"#/components/schemas/RulePreviewTechnician"},"type":"array","title":"Technicians"},"members":{"items":{"$ref":"#/components/schemas/RulePreviewMember"},"type":"array","title":"Members"},"warnings":{"items":{"type":"string"},"type":"array","title":"Warnings"}},"type":"object","required":["rotation_id"],"title":"OnCallRotation","description":"Who one rotation a rule names reaches now, or why nobody.\n\nA ServiceTitan rotation lists its ``technicians``, each judged on every channel a technician\ncan take. An on-call list (``source`` ``upsmith``) has a ``name`` and lists its one member on\ncall, judged on every channel a member can take; ``warnings`` holds ``fewer_than_two`` when the\nlist has no backup. A mention's ``reaches_on`` is where a rule's own channels narrow that.\n``nobody_reachable`` is the one refusal that still lists who is on call, reachable on no channel."},"OnCallSwap":{"properties":{"user_id":{"type":"string","title":"User Id"},"name":{"type":"string","title":"Name"},"id":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Id"},"starts_at":{"type":"string","format":"date-time","title":"Starts At"},"ends_at":{"type":"string","format":"date-time","title":"Ends At"},"starts_at_local":{"type":"string","format":"date-time","title":"Starts At Local"},"ends_at_local":{"type":"string","format":"date-time","title":"Ends At Local"},"note":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Note"}},"type":"object","required":["user_id","name","id","starts_at","ends_at","starts_at_local","ends_at_local"],"title":"OnCallSwap","description":"A swap, running or to come. ``id`` is None for one a preview adds."},"OnCallSwapCreate":{"properties":{"user_id":{"type":"string","title":"User Id"},"starts_at":{"type":"string","format":"date-time","title":"Starts At"},"ends_at":{"type":"string","format":"date-time","title":"Ends At"},"note":{"anyOf":[{"type":"string","maxLength":240},{"type":"null"}],"title":"Note"}},"type":"object","required":["user_id","starts_at","ends_at"],"title":"OnCallSwapCreate","description":"Someone on call for ``[starts_at, ends_at)``. A time with no offset is read in the list's time zone."},"OnboardNewOrganizationBody":{"properties":{"tenant_id":{"type":"string","title":"Tenant Id"},"user_email":{"type":"string","title":"User Email"},"user_first_name":{"type":"string","title":"User First Name"},"user_last_name":{"type":"string","title":"User Last Name"},"user_phone":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"User Phone"},"organization_name":{"type":"string","title":"Organization Name","default":""},"send_connection_sms":{"type":"boolean","title":"Send Connection Sms","default":false}},"type":"object","required":["tenant_id","user_email","user_first_name","user_last_name"],"title":"OnboardNewOrganizationBody"},"OnboardingDraftEnrollmentRequest":{"properties":{"service_titan":{"anyOf":[{"$ref":"#/components/schemas/ServiceTitanOnboardingPayload"},{"type":"null"}]},"force":{"type":"boolean","title":"Force","default":false}},"additionalProperties":false,"type":"object","title":"OnboardingDraftEnrollmentRequest"},"OnboardingDraftPublic":{"properties":{"id":{"type":"string","title":"Id"},"organization_id":{"type":"string","title":"Organization Id"},"release_id":{"type":"string","title":"Release Id"},"demo":{"anyOf":[{"additionalProperties":{"type":"string"},"type":"object"},{"type":"null"}],"title":"Demo"},"current_step_id":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Current Step Id"},"resume_step_id":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Resume Step Id"},"steps":{"items":{"$ref":"#/components/schemas/OnboardingStepStatePublic"},"type":"array","title":"Steps"},"created_at":{"type":"string","format":"date-time","title":"Created At"},"updated_at":{"type":"string","format":"date-time","title":"Updated At"}},"type":"object","required":["id","organization_id","release_id","current_step_id","resume_step_id","steps","created_at","updated_at"],"title":"OnboardingDraftPublic"},"OnboardingSaveExitPublic":{"properties":{"draft":{"$ref":"#/components/schemas/OnboardingDraftPublic"},"email_sent":{"type":"boolean","title":"Email Sent"}},"type":"object","required":["draft","email_sent"],"title":"OnboardingSaveExitPublic"},"OnboardingStepStatePublic":{"properties":{"step_id":{"type":"string","title":"Step Id"},"label":{"type":"string","title":"Label"},"group":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Group"},"order":{"type":"integer","title":"Order"},"status":{"$ref":"#/components/schemas/OnboardingStepStatus"},"payload":{"additionalProperties":true,"type":"object","title":"Payload"},"completed_at":{"anyOf":[{"type":"string","format":"date-time"},{"type":"null"}],"title":"Completed At"},"blocked_reason":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Blocked Reason"}},"type":"object","required":["step_id","label","group","order","status","payload","completed_at","blocked_reason"],"title":"OnboardingStepStatePublic"},"OnboardingStepStatus":{"type":"string","enum":["not_started","in_progress","completed","blocked"],"title":"OnboardingStepStatus"},"Organization":{"additionalProperties":true,"type":"object"},"OrganizationAdminRequest":{"properties":{"organization_name":{"type":"string","minLength":1,"title":"Organization Name"},"email":{"type":"string","format":"email","title":"Email"},"first_name":{"type":"string","title":"First Name","default":""},"last_name":{"type":"string","title":"Last Name","default":""},"phone_number":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Phone Number"},"mirror":{"type":"boolean","title":"Mirror","default":false}},"additionalProperties":false,"type":"object","required":["organization_name","email"],"title":"OrganizationAdminRequest"},"OrganizationAdminResponse":{"properties":{"organization_id":{"type":"string","title":"Organization Id"},"user_id":{"type":"string","title":"User Id"}},"type":"object","required":["organization_id","user_id"],"title":"OrganizationAdminResponse"},"OrganizationBootstrap":{"properties":{"id":{"type":"string","title":"Id"},"name":{"type":"string","title":"Name"},"slug":{"type":"string","title":"Slug"},"image":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Image"},"path":{"type":"string","title":"Path"},"parent_organization_id":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Parent Organization Id"},"is_active_agent_platform":{"type":"boolean","title":"Is Active Agent Platform","default":false},"is_active_ask_jenny":{"type":"boolean","title":"Is Active Ask Jenny","default":false}},"type":"object","required":["id","name","slug","path"],"title":"OrganizationBootstrap"},"OrganizationChannelDeprovision":{"properties":{"organization_id":{"type":"string","title":"Organization Id"},"dry_run":{"type":"boolean","title":"Dry Run"},"channels":{"items":{"$ref":"#/components/schemas/DeprovisionedChannel"},"type":"array","title":"Channels"},"channels_deleted":{"type":"integer","title":"Channels Deleted"},"channels_without_messaging_number":{"type":"integer","title":"Channels Without Messaging Number"}},"type":"object","required":["organization_id","dry_run","channels","channels_deleted","channels_without_messaging_number"],"title":"OrganizationChannelDeprovision"},"OrganizationChild":{"properties":{"id":{"type":"string","title":"Id"},"name":{"type":"string","title":"Name"},"slug":{"type":"string","title":"Slug"},"alias":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Alias"},"image":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Image"},"parent_organization_id":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Parent Organization Id"},"path":{"type":"string","title":"Path"}},"type":"object","required":["id","name","slug","path"],"title":"OrganizationChild"},"OrganizationLinkCandidates":{"properties":{"organization_id":{"type":"string","title":"Organization Id"},"candidates":{"additionalProperties":{"items":{"$ref":"#/components/schemas/LinkCandidate"},"type":"array"},"type":"object","title":"Candidates","default":{}}},"type":"object","required":["organization_id"],"title":"OrganizationLinkCandidates"},"OrganizationLinkOptions":{"properties":{"source":{"type":"string","title":"Source"},"options":{"items":{"$ref":"#/components/schemas/LinkOption"},"type":"array","title":"Options","default":[]},"truncated":{"type":"boolean","title":"Truncated","default":false}},"type":"object","required":["source"],"title":"OrganizationLinkOptions"},"OrganizationLinkQueue":{"properties":{"items":{"items":{"$ref":"#/components/schemas/OrganizationLinkState"},"type":"array","title":"Items","default":[]},"total":{"type":"integer","title":"Total","default":0},"counts":{"additionalProperties":{"type":"integer"},"type":"object","title":"Counts","default":{}}},"type":"object","title":"OrganizationLinkQueue"},"OrganizationLinkState":{"properties":{"organization_id":{"type":"string","title":"Organization Id"},"name":{"type":"string","title":"Name"},"domains":{"items":{"type":"string"},"type":"array","title":"Domains","default":[]},"ops_owner_user_id":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Ops Owner User Id"},"ops_owner_label":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Ops Owner Label"},"sync_locked_sources":{"items":{"type":"string"},"type":"array","title":"Sync Locked Sources","default":[]},"status":{"$ref":"#/components/schemas/LinkStatus"},"on_agent_platform":{"type":"boolean","title":"On Agent Platform","default":false},"on_ask_jenny":{"type":"boolean","title":"On Ask Jenny","default":false},"is_active":{"type":"boolean","title":"Is Active","default":true},"links":{"additionalProperties":{"$ref":"#/components/schemas/LinkedRecord"},"type":"object","title":"Links","default":{}}},"type":"object","required":["organization_id","name","status"],"title":"OrganizationLinkState"},"OrganizationListItem":{"properties":{"id":{"type":"string","title":"Id"},"name":{"type":"string","title":"Name"},"slug":{"type":"string","title":"Slug"}},"type":"object","required":["id","name","slug"],"title":"OrganizationListItem"},"OrganizationOptoutPreview":{"properties":{"organization_id":{"type":"string","title":"Organization Id"},"mappings":{"items":{"$ref":"#/components/schemas/CampaignMaintenanceMapping"},"type":"array","title":"Mappings"},"total_active_source_records":{"type":"integer","title":"Total Active Source Records"},"items":{"items":{"$ref":"#/components/schemas/CampaignOptoutMappingItem"},"type":"array","title":"Items"},"ready_source_request_ids":{"items":{"type":"string"},"type":"array","title":"Ready Source Request Ids"},"review_sha256":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Review Sha256"},"next_after_source_id":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Next After Source Id"}},"type":"object","required":["organization_id","mappings","total_active_source_records","items","ready_source_request_ids","review_sha256","next_after_source_id"],"title":"OrganizationOptoutPreview"},"OrganizationPage":{"properties":{"items":{"items":{"$ref":"#/components/schemas/OrganizationListItem"},"type":"array","title":"Items"},"total":{"type":"integer","title":"Total"},"cursor":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Cursor"}},"type":"object","required":["items","total"],"title":"OrganizationPage"},"OrganizationParentLinkRequestRead":{"properties":{"id":{"type":"string","title":"Id"},"organization_id":{"type":"string","title":"Organization Id"},"organization_name":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Organization Name"},"parent_organization_id":{"type":"string","title":"Parent Organization Id"},"parent_name":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Parent Name"},"status":{"type":"string","title":"Status"},"evidence":{"items":{"type":"string"},"type":"array","title":"Evidence"},"parent_link_reason":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Parent Link Reason"},"gaining_access_count":{"type":"integer","title":"Gaining Access Count"},"requested_by_email":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Requested By Email"},"created_at":{"type":"string","format":"date-time","title":"Created At"},"decided_by_email":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Decided By Email"},"decided_at":{"anyOf":[{"type":"string","format":"date-time"},{"type":"null"}],"title":"Decided At"},"decision_note":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Decision Note"}},"type":"object","required":["id","organization_id","parent_organization_id","status","evidence","gaining_access_count","created_at"],"title":"OrganizationParentLinkRequestRead"},"OrganizationParentLinkStatus":{"type":"string","enum":["pending","approved","rejected","cancelled"],"title":"OrganizationParentLinkStatus"},"OrganizationPromptConfig":{"properties":{"safety_policy":{"anyOf":[{"$ref":"#/components/schemas/CsrSafetyPolicy"},{"type":"null"}]},"company_name":{"anyOf":[{"type":"string","maxLength":100,"minLength":1,"pattern":"\\S"},{"type":"null"}],"title":"Company Name"},"agent_name":{"anyOf":[{"type":"string","maxLength":100,"minLength":1,"pattern":"\\S"},{"type":"null"}],"title":"Agent Name"},"organization_guidance":{"anyOf":[{"$ref":"#/components/schemas/CsrOrganizationGuidance"},{"type":"null"}]},"conversation":{"anyOf":[{"$ref":"#/components/schemas/CsrConversationPolicy"},{"type":"null"}]},"opening":{"$ref":"#/components/schemas/CsrOpeningPolicy"},"information":{"anyOf":[{"$ref":"#/components/schemas/CsrInformationPolicy"},{"type":"null"}]},"concerns":{"anyOf":[{"$ref":"#/components/schemas/CsrConcernPolicy"},{"type":"null"}]},"related_brands":{"anyOf":[{"$ref":"#/components/schemas/CsrRelatedBrandsPolicy"},{"type":"null"}]},"safety_screen":{"anyOf":[{"$ref":"#/components/schemas/CsrSafetyScreenPolicy"},{"type":"null"}]},"quote_policy":{"anyOf":[{"$ref":"#/components/schemas/CsrQuotePolicy"},{"type":"null"}]},"disclosure_plan":{"anyOf":[{"$ref":"#/components/schemas/CsrDisclosurePlan"},{"type":"null"}]},"answer_service_coverage_questions":{"type":"boolean","title":"Answer Service Coverage Questions","default":false},"disclosures":{"$ref":"#/components/schemas/CsrDisclosureConfig"},"service_address":{"$ref":"#/components/schemas/CsrAddressCollectionConfig"},"email":{"$ref":"#/components/schemas/CsrEmailCollectionConfig"},"callback":{"$ref":"#/components/schemas/CsrCallbackConfig"},"intake":{"$ref":"#/components/schemas/CsrIntakeConfig"},"scheduling":{"$ref":"#/components/schemas/CsrSchedulingConfig"},"membership":{"anyOf":[{"$ref":"#/components/schemas/CsrMembershipConfig"},{"type":"null"}]},"existing_appointments":{"anyOf":[{"$ref":"#/components/schemas/CsrExistingAppointmentsConfig"},{"type":"null"}]},"fee":{"anyOf":[{"$ref":"#/components/schemas/CsrFeeConfig"},{"type":"null"}]},"membership_fees":{"anyOf":[{"$ref":"#/components/schemas/CsrMembershipFeePolicy"},{"type":"null"}]},"document_fees":{"anyOf":[{"$ref":"#/components/schemas/CsrDocumentFeePolicy"},{"type":"null"}]},"intake_fees":{"anyOf":[{"$ref":"#/components/schemas/CsrIntakeFeePolicy"},{"type":"null"}]},"follow_up_submission":{"anyOf":[{"$ref":"#/components/schemas/CsrFollowUpSubmissionPolicy"},{"type":"null"}]},"priority_booking":{"anyOf":[{"$ref":"#/components/schemas/CsrPriorityBookingPolicy"},{"type":"null"}]},"routing":{"$ref":"#/components/schemas/CsrRoutingConfig"},"closing":{"$ref":"#/components/schemas/CsrClosingConfig"},"credibility_statements":{"items":{"type":"string"},"type":"array","maxItems":20,"title":"Credibility Statements","default":[]}},"additionalProperties":false,"type":"object","required":["opening","disclosures","service_address","email","callback","intake","scheduling","routing","closing"],"title":"OrganizationPromptConfig"},"OrganizationRead":{"properties":{"id":{"type":"string","title":"Id"},"name":{"type":"string","title":"Name"},"slug":{"type":"string","title":"Slug"},"created_at":{"anyOf":[{"type":"string","format":"date-time"},{"type":"null"}],"title":"Created At"},"alias":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Alias"},"path":{"type":"string","title":"Path"},"image":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Image"},"parent_organization_id":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Parent Organization Id"},"timezone":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Timezone"},"access_lapses_at":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Access Lapses At"},"billing_account_id":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Billing Account Id"},"is_active_agent_platform":{"type":"boolean","title":"Is Active Agent Platform"},"is_active_ask_jenny":{"type":"boolean","title":"Is Active Ask Jenny"},"lenny_st_form_intake_enabled":{"type":"boolean","title":"Lenny St Form Intake Enabled"},"lenny_st_form_intake_sources":{"items":{"type":"string"},"type":"array","title":"Lenny St Form Intake Sources"},"access_level":{"type":"string","title":"Access Level"},"role":{"anyOf":[{"$ref":"#/components/schemas/OrganizationRoleRead"},{"type":"null"}]},"roles":{"items":{"$ref":"#/components/schemas/OrganizationRoleRead"},"type":"array","title":"Roles","default":[]},"features":{"items":{"$ref":"#/components/schemas/FeatureRead"},"type":"array","title":"Features","default":[]},"children":{"items":{"$ref":"#/components/schemas/OrganizationChild"},"type":"array","title":"Children","default":[]},"service_titan_installation_status":{"$ref":"#/components/schemas/ServiceTitanInstallationStatus","default":"NONE"},"pending_parent_link":{"anyOf":[{"$ref":"#/components/schemas/OrganizationParentLinkRequestRead"},{"type":"null"}]},"service_titan_requested_at":{"anyOf":[{"type":"string","format":"date-time"},{"type":"null"}],"title":"Service Titan Requested At"},"service_titan_environment_mismatch":{"anyOf":[{"$ref":"#/components/schemas/ServiceTitanEnvironmentMismatch"},{"type":"null"}]},"subscription":{"anyOf":[{"$ref":"#/components/schemas/OrganizationSubscription"},{"type":"null"}]},"preflight":{"anyOf":[{"additionalProperties":true,"type":"object"},{"type":"null"}],"title":"Preflight"}},"type":"object","required":["id","name","slug","path","is_active_agent_platform","is_active_ask_jenny","lenny_st_form_intake_enabled","lenny_st_form_intake_sources","access_level"],"title":"OrganizationRead"},"OrganizationResolution":{"properties":{"has_access":{"type":"boolean","title":"Has Access"},"organization_id":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Organization Id"},"organization_slug":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Organization Slug"},"organization_name":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Organization Name"}},"type":"object","required":["has_access"],"title":"OrganizationResolution"},"OrganizationRoleRead":{"properties":{"id":{"type":"string","title":"Id"},"title":{"type":"string","title":"Title"},"is_inherited":{"type":"boolean","title":"Is Inherited"},"has_access":{"type":"boolean","title":"Has Access"},"can_mutate_users":{"type":"boolean","title":"Can Mutate Users"},"can_toggle_feature_roles":{"type":"boolean","title":"Can Toggle Feature Roles"},"can_toggle_organization_roles":{"type":"boolean","title":"Can Toggle Organization Roles"}},"type":"object","required":["id","title","is_inherited","has_access","can_mutate_users","can_toggle_feature_roles","can_toggle_organization_roles"],"title":"OrganizationRoleRead"},"OrganizationSubscription":{"properties":{"status":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Status"},"current_period_end":{"anyOf":[{"type":"integer"},{"type":"null"}],"title":"Current Period End"},"max_seats":{"anyOf":[{"type":"integer"},{"type":"null"}],"title":"Max Seats"},"used_seats":{"type":"integer","title":"Used Seats","default":0}},"type":"object","title":"OrganizationSubscription"},"OrganizationSummaryPublic":{"properties":{"id":{"type":"string","title":"Id"},"name":{"type":"string","title":"Name"}},"type":"object","required":["id","name"],"title":"OrganizationSummaryPublic"},"OrganizationType":{"type":"string","enum":["propel"],"title":"OrganizationType"},"OrphanWriteAhead":{"properties":{"event_action_id":{"type":"string","title":"Event Action Id"},"tool_name":{"type":"string","title":"Tool Name"},"tool_call_id":{"type":"string","title":"Tool Call Id"},"created_at":{"type":"string","format":"date-time","title":"Created At"}},"type":"object","required":["event_action_id","tool_name","tool_call_id","created_at"],"title":"OrphanWriteAhead"},"OverrideProvenanceStaleReason":{"type":"string","enum":["missing_provenance","definition_revision_changed","evaluation_run_changed","normalized_input_changed","evaluation_run_unavailable"],"title":"OverrideProvenanceStaleReason"},"OverrideProvenanceState":{"type":"string","enum":["not_overridden","current","stale"],"title":"OverrideProvenanceState"},"OwnerLabelTarget":{"properties":{"kind":{"type":"string","const":"owner_label","title":"Kind","default":"owner_label"},"owner_key":{"type":"string","pattern":"^[a-z][a-z0-9_]{0,63}$","title":"Owner Key"}},"additionalProperties":false,"type":"object","required":["owner_key"],"title":"OwnerLabelTarget"},"Page_CallTagResultPublic_":{"properties":{"items":{"items":{"$ref":"#/components/schemas/CallTagResultPublic"},"type":"array","title":"Items"},"total":{"anyOf":[{"type":"integer"},{"type":"null"}],"title":"Total"},"cursor":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Cursor"}},"type":"object","required":["items"],"title":"Page[CallTagResultPublic]"},"Page_ChannelModulePublic_":{"properties":{"items":{"items":{"$ref":"#/components/schemas/ChannelModulePublic"},"type":"array","title":"Items"},"total":{"anyOf":[{"type":"integer"},{"type":"null"}],"title":"Total"},"cursor":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Cursor"}},"type":"object","required":["items"],"title":"Page[ChannelModulePublic]"},"Page_ChannelPublicWithChildren_":{"properties":{"items":{"items":{"$ref":"#/components/schemas/ChannelPublicWithChildren"},"type":"array","title":"Items"},"total":{"anyOf":[{"type":"integer"},{"type":"null"}],"title":"Total"},"cursor":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Cursor"}},"type":"object","required":["items"],"title":"Page[ChannelPublicWithChildren]"},"Page_ConversationListItemPublic_":{"properties":{"items":{"items":{"$ref":"#/components/schemas/ConversationListItemPublic"},"type":"array","title":"Items"},"total":{"anyOf":[{"type":"integer"},{"type":"null"}],"title":"Total"},"cursor":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Cursor"}},"type":"object","required":["items"],"title":"Page[ConversationListItemPublic]"},"Page_EligibleChannelNumberPublic_":{"properties":{"items":{"items":{"$ref":"#/components/schemas/EligibleChannelNumberPublic"},"type":"array","title":"Items"},"total":{"anyOf":[{"type":"integer"},{"type":"null"}],"title":"Total"},"cursor":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Cursor"}},"type":"object","required":["items"],"title":"Page[EligibleChannelNumberPublic]"},"Page_EscalationGroupViewPublic_":{"properties":{"items":{"items":{"$ref":"#/components/schemas/EscalationGroupViewPublic"},"type":"array","title":"Items"},"total":{"anyOf":[{"type":"integer"},{"type":"null"}],"title":"Total"},"cursor":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Cursor"}},"type":"object","required":["items"],"title":"Page[EscalationGroupViewPublic]"},"Page_NotificationModule_":{"properties":{"items":{"items":{"$ref":"#/components/schemas/NotificationModule-Output"},"type":"array","title":"Items"},"total":{"anyOf":[{"type":"integer"},{"type":"null"}],"title":"Total"},"cursor":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Cursor"}},"type":"object","required":["items"],"title":"Page[NotificationModule]"},"Page_Notification_":{"properties":{"items":{"items":{"$ref":"#/components/schemas/Notification-Output"},"type":"array","title":"Items"},"total":{"anyOf":[{"type":"integer"},{"type":"null"}],"title":"Total"},"cursor":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Cursor"}},"type":"object","required":["items"],"title":"Page[Notification]"},"Page_Recipient_":{"properties":{"items":{"items":{"$ref":"#/components/schemas/Recipient-Output"},"type":"array","title":"Items"},"total":{"anyOf":[{"type":"integer"},{"type":"null"}],"title":"Total"},"cursor":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Cursor"}},"type":"object","required":["items"],"title":"Page[Recipient]"},"Page_SessionPublic_":{"properties":{"items":{"items":{"$ref":"#/components/schemas/SessionPublic"},"type":"array","title":"Items"},"total":{"anyOf":[{"type":"integer"},{"type":"null"}],"title":"Total"},"cursor":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Cursor"}},"type":"object","required":["items"],"title":"Page[SessionPublic]"},"Page_TimelineEventPublic_":{"properties":{"items":{"items":{"$ref":"#/components/schemas/TimelineEventPublic"},"type":"array","title":"Items"},"total":{"anyOf":[{"type":"integer"},{"type":"null"}],"title":"Total"},"cursor":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Cursor"}},"type":"object","required":["items"],"title":"Page[TimelineEventPublic]"},"Page_Union_TimelineEventPublic__AiResponseChangeTimelinePublic__":{"properties":{"items":{"items":{"anyOf":[{"$ref":"#/components/schemas/TimelineEventPublic"},{"$ref":"#/components/schemas/AiResponseChangeTimelinePublic"}]},"type":"array","title":"Items"},"total":{"anyOf":[{"type":"integer"},{"type":"null"}],"title":"Total"},"cursor":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Cursor"}},"type":"object","required":["items"],"title":"Page[Union[TimelineEventPublic, AiResponseChangeTimelinePublic]]"},"ParentLinkDecisionRequest":{"properties":{"note":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Note"}},"type":"object","title":"ParentLinkDecisionRequest"},"ParentRoutingStatus":{"properties":{"receives_parent_traffic":{"type":"boolean","title":"Receives Parent Traffic"},"parents":{"items":{"$ref":"#/components/schemas/ParentWidgetRouter"},"type":"array","title":"Parents","default":[]}},"type":"object","required":["receives_parent_traffic"],"title":"ParentRoutingStatus"},"ParentWidgetRouter":{"properties":{"organization_id":{"type":"string","title":"Organization Id"},"organization_name":{"type":"string","title":"Organization Name"},"region_names":{"items":{"type":"string"},"type":"array","title":"Region Names","default":[]}},"type":"object","required":["organization_id","organization_name"],"title":"ParentWidgetRouter"},"PartAction":{"properties":{"kind":{"type":"string","enum":["move","source"],"title":"Kind"},"part_property_id":{"type":"string","title":"Part Property Id"},"property_id":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Property Id"},"count_property_id":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Count Property Id"},"label":{"type":"string","title":"Label"},"hint":{"type":"string","title":"Hint"}},"additionalProperties":false,"type":"object","required":["kind","part_property_id","label","hint"],"title":"PartAction"},"PartCorrection":{"properties":{"action":{"type":"string","enum":["move","source"],"title":"Action"},"part_property_id":{"type":"string","maxLength":255,"minLength":1,"pattern":"^\\S(?:.*\\S)?$","title":"Part Property Id"},"part":{"type":"string","maxLength":255,"minLength":1,"pattern":"^\\S(?:.*\\S)?$","title":"Part"},"target_entity_id":{"anyOf":[{"type":"string","maxLength":255,"minLength":1,"pattern":"^\\S(?:.*\\S)?$"},{"type":"null"}],"title":"Target Entity Id"},"count":{"anyOf":[{"type":"integer","maximum":100.0,"minimum":1.0},{"type":"null"}],"title":"Count"},"note":{"type":"string","maxLength":500,"minLength":1,"pattern":"^\\S(?:.*\\S)?$","title":"Note"},"expected_run_id":{"type":"string","maxLength":255,"minLength":1,"pattern":"^\\S(?:.*\\S)?$","title":"Expected Run Id"}},"additionalProperties":false,"type":"object","required":["action","part_property_id","part","note","expected_run_id"],"title":"PartCorrection"},"ParticipantPreviewRequest":{"properties":{"scope":{"$ref":"#/components/schemas/ExperimentTypedReference"},"arms":{"items":{"$ref":"#/components/schemas/ExperimentArmInput"},"type":"array","maxItems":20,"title":"Arms"}},"type":"object","required":["scope"],"title":"ParticipantPreviewRequest"},"PastedCredentialDisconnectResponse":{"properties":{"success":{"type":"boolean","title":"Success"}},"type":"object","required":["success"],"title":"PastedCredentialDisconnectResponse"},"PastedCredentialStatusResponse":{"properties":{"connected":{"type":"boolean","title":"Connected"},"needs_reconnect":{"type":"boolean","title":"Needs Reconnect"}},"type":"object","required":["connected","needs_reconnect"],"title":"PastedCredentialStatusResponse"},"PoliciesResponse":{"properties":{"policies":{"items":{"$ref":"#/components/schemas/Policy"},"type":"array","title":"Policies"}},"additionalProperties":false,"type":"object","required":["policies"],"title":"PoliciesResponse"},"Policy":{"properties":{"id":{"type":"string","title":"Id"},"key":{"type":"string","title":"Key"},"derives":{"items":{"type":"string"},"type":"array","title":"Derives"},"rules":{"items":{"$ref":"#/components/schemas/PolicyRule"},"type":"array","title":"Rules"}},"additionalProperties":false,"type":"object","required":["id","key","derives","rules"],"title":"Policy"},"PolicyRule":{"properties":{"id":{"type":"string","title":"Id"},"role":{"type":"string","title":"Role"},"version":{"type":"integer","title":"Version"},"status":{"type":"string","title":"Status"},"about_entity_id":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"About Entity Id"},"written_by":{"type":"string","title":"Written By"},"document":{"additionalProperties":true,"type":"object","title":"Document"}},"additionalProperties":false,"type":"object","required":["id","role","version","status","about_entity_id","written_by","document"],"title":"PolicyRule"},"PortalCredentialsRequest":{"properties":{"username":{"type":"string","format":"password","title":"Username","writeOnly":true},"password":{"type":"string","format":"password","title":"Password","writeOnly":true},"totp_seed":{"type":"string","format":"password","title":"Totp Seed","writeOnly":true}},"type":"object","required":["username","password","totp_seed"],"title":"PortalCredentialsRequest","description":"The go.servicetitan.com login for the dedicated UpSmith seat.\n\n``SecretStr`` keeps the values out of every repr, so a frame-locals dump or a\nlogged model never shows them."},"PreferenceBulkUpsertRequest":{"properties":{"preferences":{"additionalProperties":{"anyOf":[{"type":"string"},{"type":"integer"},{"type":"number"},{"type":"boolean"},{"items":{"type":"string"},"type":"array"},{"items":{"type":"integer"},"type":"array"},{"additionalProperties":true,"type":"object"},{"items":{},"type":"array"},{"type":"null"}]},"type":"object","title":"Preferences"}},"type":"object","required":["preferences"],"title":"PreferenceBulkUpsertRequest"},"PreferenceCategory":{"type":"string","enum":["availability","dispatch","agent","voice","notification","general"],"title":"PreferenceCategory"},"PreferenceDefinitionCreate":{"properties":{"key":{"type":"string","title":"Key"},"label":{"type":"string","title":"Label"},"description":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Description"},"scope":{"$ref":"#/components/schemas/PreferenceScope"},"category":{"$ref":"#/components/schemas/PreferenceCategory"},"value_type":{"$ref":"#/components/schemas/ValueType"},"default_value":{"anyOf":[{"type":"string"},{"type":"integer"},{"type":"number"},{"type":"boolean"},{"items":{"type":"string"},"type":"array"},{"items":{"type":"integer"},"type":"array"},{"additionalProperties":true,"type":"object"},{"items":{},"type":"array"},{"type":"null"}],"title":"Default Value"},"validation_schema":{"anyOf":[{"additionalProperties":true,"type":"object"},{"type":"null"}],"title":"Validation Schema"},"sort_order":{"type":"integer","title":"Sort Order","default":0},"is_list":{"type":"boolean","title":"Is List","default":false}},"type":"object","required":["key","label","scope","category","value_type"],"title":"PreferenceDefinitionCreate"},"PreferenceDefinitionResponse":{"properties":{"id":{"type":"string","title":"Id"},"key":{"type":"string","title":"Key"},"label":{"type":"string","title":"Label"},"description":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Description"},"scope":{"$ref":"#/components/schemas/PreferenceScope"},"category":{"$ref":"#/components/schemas/PreferenceCategory"},"value_type":{"$ref":"#/components/schemas/ValueType"},"default_value":{"anyOf":[{"type":"string"},{"type":"integer"},{"type":"number"},{"type":"boolean"},{"items":{"type":"string"},"type":"array"},{"items":{"type":"integer"},"type":"array"},{"additionalProperties":true,"type":"object"},{"items":{},"type":"array"},{"type":"null"}],"title":"Default Value"},"validation_schema":{"anyOf":[{"additionalProperties":true,"type":"object"},{"type":"null"}],"title":"Validation Schema"},"is_list":{"type":"boolean","title":"Is List","default":false},"sort_order":{"type":"integer","title":"Sort Order"}},"type":"object","required":["id","key","label","description","scope","category","value_type","default_value","validation_schema","sort_order"],"title":"PreferenceDefinitionResponse"},"PreferenceDefinitionUpdate":{"properties":{"label":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Label"},"description":{"anyOf":[{"type":"string"},{"$ref":"#/components/schemas/_Unset"},{"type":"null"}],"title":"Description","default":"UNSET"},"category":{"anyOf":[{"$ref":"#/components/schemas/PreferenceCategory"},{"type":"null"}]},"default_value":{"anyOf":[{"type":"string"},{"type":"integer"},{"type":"number"},{"type":"boolean"},{"items":{"type":"string"},"type":"array"},{"items":{"type":"integer"},"type":"array"},{"additionalProperties":true,"type":"object"},{"items":{},"type":"array"},{"$ref":"#/components/schemas/_Unset"},{"type":"null"}],"title":"Default Value","default":"UNSET"},"validation_schema":{"anyOf":[{"additionalProperties":true,"type":"object"},{"$ref":"#/components/schemas/_Unset"},{"type":"null"}],"title":"Validation Schema","default":"UNSET"},"sort_order":{"anyOf":[{"type":"integer"},{"type":"null"}],"title":"Sort Order"}},"type":"object","title":"PreferenceDefinitionUpdate"},"PreferenceEntriesResponse":{"properties":{"key":{"type":"string","title":"Key"},"entries":{"items":{"$ref":"#/components/schemas/PreferenceEntryResponse"},"type":"array","title":"Entries"}},"type":"object","required":["key","entries"],"title":"PreferenceEntriesResponse"},"PreferenceEntryResponse":{"properties":{"entry_key":{"type":"string","title":"Entry Key"},"value":{"anyOf":[{"type":"string"},{"type":"integer"},{"type":"number"},{"type":"boolean"},{"items":{"type":"string"},"type":"array"},{"items":{"type":"integer"},"type":"array"},{"additionalProperties":true,"type":"object"},{"items":{},"type":"array"},{"type":"null"}],"title":"Value"},"source":{"type":"string","title":"Source"},"valid_from":{"anyOf":[{"type":"string","format":"date-time"},{"type":"null"}],"title":"Valid From"},"valid_until":{"anyOf":[{"type":"string","format":"date-time"},{"type":"null"}],"title":"Valid Until"},"row_id":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Row Id"},"scheduled":{"type":"boolean","title":"Scheduled","default":false}},"type":"object","required":["entry_key","value","source"],"title":"PreferenceEntryResponse"},"PreferenceEntryWrite":{"properties":{"value":{"anyOf":[{"type":"string"},{"type":"integer"},{"type":"number"},{"type":"boolean"},{"items":{"type":"string"},"type":"array"},{"items":{"type":"integer"},"type":"array"},{"additionalProperties":true,"type":"object"},{"items":{},"type":"array"},{"type":"null"}],"title":"Value"},"valid_from":{"anyOf":[{"type":"string","format":"date-time"},{"type":"null"}],"title":"Valid From"},"valid_until":{"anyOf":[{"type":"string","format":"date-time"},{"type":"null"}],"title":"Valid Until"}},"type":"object","required":["value"],"title":"PreferenceEntryWrite","description":"One entry of a list preference, with the window it applies in. Both bounds open by default."},"PreferenceScope":{"type":"string","enum":["org","tenant"],"title":"PreferenceScope"},"PreflightSnapshotDetail":{"properties":{"id":{"type":"string","title":"Id"},"run_date":{"type":"string","format":"date","title":"Run Date"},"organization_id":{"type":"string","title":"Organization Id"},"organization_name":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Organization Name"},"blocked_count":{"type":"integer","title":"Blocked Count"},"warning_count":{"type":"integer","title":"Warning Count"},"total_campaigns":{"type":"integer","title":"Total Campaigns"},"report":{"additionalProperties":true,"type":"object","title":"Report"}},"type":"object","required":["id","run_date","organization_id","blocked_count","warning_count","total_campaigns","report"],"title":"PreflightSnapshotDetail"},"PreflightSnapshotSummary":{"properties":{"id":{"type":"string","title":"Id"},"run_date":{"type":"string","format":"date","title":"Run Date"},"organization_id":{"type":"string","title":"Organization Id"},"organization_name":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Organization Name"},"blocked_count":{"type":"integer","title":"Blocked Count"},"warning_count":{"type":"integer","title":"Warning Count"},"total_campaigns":{"type":"integer","title":"Total Campaigns"}},"type":"object","required":["id","run_date","organization_id","blocked_count","warning_count","total_campaigns"],"title":"PreflightSnapshotSummary"},"PreviewOrganizationOptoutsRequest":{"properties":{"organization_id":{"type":"string","minLength":1,"title":"Organization Id"},"mappings":{"items":{"$ref":"#/components/schemas/CampaignMaintenanceMapping"},"type":"array","maxItems":50,"minItems":1,"title":"Mappings"},"after_source_id":{"anyOf":[{"type":"string","minLength":1},{"type":"null"}],"title":"After Source Id"},"limit":{"type":"integer","maximum":20.0,"minimum":1.0,"title":"Limit","default":20}},"additionalProperties":false,"type":"object","required":["organization_id","mappings"],"title":"PreviewOrganizationOptoutsRequest"},"PreviewRequest":{"properties":{"key":{"type":"string","title":"Key"},"data":{"additionalProperties":true,"type":"object","title":"Data"}},"type":"object","required":["key","data"],"title":"PreviewRequest"},"PreviewResponse":{"properties":{"html":{"type":"string","title":"Html"},"subject":{"type":"string","title":"Subject"},"pre_header":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Pre Header"}},"type":"object","required":["html","subject"],"title":"PreviewResponse"},"PriceComponentLabelTarget":{"properties":{"kind":{"type":"string","const":"price_component_label","title":"Kind","default":"price_component_label"},"rule_key":{"type":"string","pattern":"^[a-z][a-z0-9_]{0,63}$","title":"Rule Key"},"component_key":{"type":"string","pattern":"^[a-z][a-z0-9_]{0,63}$","title":"Component Key"}},"additionalProperties":false,"type":"object","required":["rule_key","component_key"],"title":"PriceComponentLabelTarget"},"ProcessPendingMessagesResponse":{"properties":{"queued_message_count":{"type":"integer","title":"Queued Message Count"}},"type":"object","required":["queued_message_count"],"title":"ProcessPendingMessagesResponse"},"PromoteAgentVariantRequest":{"properties":{"preflight_override_token":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Preflight Override Token"}},"type":"object","title":"PromoteAgentVariantRequest"},"PromptDetail":{"properties":{"name":{"type":"string","title":"Name"},"mlflow_prompt_name":{"type":"string","title":"Mlflow Prompt Name"},"version":{"type":"string","title":"Version"},"template":{"type":"string","title":"Template"},"rendered":{"type":"string","title":"Rendered"}},"type":"object","required":["name","mlflow_prompt_name","version","template","rendered"],"title":"PromptDetail"},"PromptQualityOffer":{"properties":{"agent_v2_ids":{"items":{"type":"string"},"type":"array","title":"Agent V2 Ids","default":[]},"recommended":{"type":"boolean","title":"Recommended","default":false},"reason":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Reason"}},"type":"object","title":"PromptQualityOffer","description":"The grade this write did not run, and whether the caller should offer it.\n\nWrites stopped grading themselves: most edits are a rename or a reordering that\nthe last grade already answered for, and paying a judge for every save spent far\nmore on unwatched runs than on wanted ones. The write now says what it reached\nand leaves the choice to whoever made it.\n\n``recommended`` is a suggestion, never a gate — the check is offered either way,\nand an operator who wants one for a typo fix is not argued with."},"PropertyCoverage":{"properties":{"property_id":{"type":"string","title":"Property Id"},"known":{"type":"integer","title":"Known"},"unknown":{"type":"integer","title":"Unknown"},"disputed":{"type":"integer","title":"Disputed"},"stale":{"type":"integer","title":"Stale"},"sources":{"additionalProperties":{"type":"integer"},"type":"object","title":"Sources"}},"additionalProperties":false,"type":"object","required":["property_id","known","unknown","disputed","stale","sources"],"title":"PropertyCoverage"},"PropertyDefinition-Input":{"properties":{"kind":{"type":"string","const":"property_type","title":"Kind"},"id":{"type":"string","maxLength":255,"minLength":1,"pattern":"^\\S(?:.*\\S)?$","title":"Id"},"key":{"type":"string","maxLength":128,"minLength":1,"pattern":"^[a-z][a-z0-9_]*(?:\\.[a-z][a-z0-9_]*)*$","title":"Key"},"label":{"type":"string","maxLength":200,"minLength":1,"pattern":"^\\S(?:.*\\S)?$","title":"Label"},"entity_type_id":{"type":"string","maxLength":255,"minLength":1,"pattern":"^\\S(?:.*\\S)?$","title":"Entity Type Id"},"meaning":{"type":"string","maxLength":8000,"minLength":1,"pattern":"\\S","title":"Meaning"},"answer_type":{"type":"string","enum":["text","identifier","number","date","bool","choice","entity"],"title":"Answer Type"},"many_valued":{"type":"boolean","title":"Many Valued","default":false},"is_unique":{"type":"boolean","title":"Is Unique","default":false},"target_entity_type_id":{"anyOf":[{"type":"string","maxLength":255,"minLength":1,"pattern":"^\\S(?:.*\\S)?$"},{"type":"null"}],"title":"Target Entity Type Id"},"choice_list_id":{"anyOf":[{"type":"string","maxLength":255,"minLength":1,"pattern":"^\\S(?:.*\\S)?$"},{"type":"null"}],"title":"Choice List Id"},"documentation":{"$ref":"#/components/schemas/DefinitionDocumentation"}},"additionalProperties":false,"type":"object","required":["kind","id","key","label","entity_type_id","meaning","answer_type","documentation"],"title":"PropertyDefinition"},"PropertyFilter":{"properties":{"property_id":{"type":"string","maxLength":255,"minLength":1,"pattern":"^\\S(?:.*\\S)?$","title":"Property Id"},"operator":{"type":"string","enum":["eq","gte","lte"],"title":"Operator","default":"eq"},"value":{"anyOf":[{"type":"boolean"},{"type":"integer"},{"type":"number"},{"type":"string","maxLength":1024}],"title":"Value"}},"additionalProperties":false,"type":"object","required":["property_id","value"],"title":"PropertyFilter"},"PropertyOption":{"properties":{"label":{"type":"string","minLength":1,"title":"Label"},"value":{"type":"string","minLength":1,"title":"Value"}},"type":"object","required":["label","value"],"title":"PropertyOption"},"PropertyQuery":{"properties":{"entity_ids":{"items":{"type":"string","maxLength":255,"minLength":1,"pattern":"^\\S(?:.*\\S)?$"},"type":"array","maxItems":100,"minItems":1,"title":"Entity Ids"},"property_ids":{"items":{"type":"string","maxLength":255,"minLength":1,"pattern":"^\\S(?:.*\\S)?$"},"type":"array","maxItems":20,"minItems":1,"title":"Property Ids"},"filters":{"items":{"$ref":"#/components/schemas/PropertyFilter"},"type":"array","maxItems":20,"title":"Filters","default":[]}},"additionalProperties":false,"type":"object","required":["entity_ids","property_ids"],"title":"PropertyQuery"},"PropertyQueryResponse":{"properties":{"evaluated_at":{"type":"string","format":"date-time","title":"Evaluated At"},"properties":{"items":{"$ref":"#/components/schemas/upsmith_knowledge_contracts__properties__PropertyDefinition"},"type":"array","title":"Properties"},"facts":{"items":{"$ref":"#/components/schemas/PropertyValue"},"type":"array","title":"Facts"},"evidence":{"items":{"$ref":"#/components/schemas/upsmith_knowledge_contracts__properties__EvidenceReference"},"type":"array","title":"Evidence","default":[]}},"additionalProperties":false,"type":"object","required":["evaluated_at","properties","facts"],"title":"PropertyQueryResponse"},"PropertyValue":{"properties":{"entity_id":{"type":"string","title":"Entity Id"},"property_id":{"type":"string","title":"Property Id"},"fact_id":{"type":"string","title":"Fact Id"},"run_id":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Run Id"},"as_of":{"type":"string","format":"date-time","title":"As Of"},"status":{"type":"string","enum":["known","unknown","disputed"],"title":"Status"},"freshness":{"type":"string","enum":["current","stale"],"title":"Freshness"},"value":{"title":"Value"},"usable_value":{"title":"Usable Value"},"evidence_ids":{"items":{"type":"string"},"type":"array","title":"Evidence Ids"},"property_type_id":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Property Type Id"},"written_by":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Written By"}},"additionalProperties":false,"type":"object","required":["entity_id","property_id","fact_id","run_id","as_of","status","freshness","value","usable_value","evidence_ids"],"title":"PropertyValue"},"ProviderApiResponse":{"properties":{"status_code":{"type":"integer","title":"Status Code"},"data":{"title":"Data"}},"type":"object","required":["status_code","data"],"title":"ProviderApiResponse"},"PutChoiceItem":{"properties":{"kind":{"type":"string","const":"item","title":"Kind"},"key":{"type":"string","maxLength":128,"minLength":1,"pattern":"^[a-z][a-z0-9_]*$","title":"Key"},"label":{"type":"string","maxLength":200,"minLength":1,"pattern":"^\\S(?:.*\\S)?$","title":"Label"},"synonyms":{"items":{"type":"string","maxLength":200,"minLength":1,"pattern":"^\\S(?:.*\\S)?$"},"type":"array","maxItems":50,"title":"Synonyms","default":[]},"parent_key":{"anyOf":[{"type":"string","maxLength":128,"minLength":1,"pattern":"^[a-z][a-z0-9_]*$"},{"type":"null"}],"title":"Parent Key"},"sort_order":{"type":"integer","maximum":10000.0,"minimum":0.0,"title":"Sort Order","default":0},"retired":{"type":"boolean","title":"Retired","default":false},"shared_vocabulary":{"type":"boolean","title":"Shared Vocabulary","default":false}},"additionalProperties":false,"type":"object","required":["kind","key","label"],"title":"PutChoiceItem"},"PutChoiceOverride":{"properties":{"kind":{"type":"string","const":"override","title":"Kind"},"key":{"type":"string","maxLength":128,"minLength":1,"pattern":"^[a-z][a-z0-9_]*$","title":"Key"},"label":{"anyOf":[{"type":"string","maxLength":200,"minLength":1,"pattern":"^\\S(?:.*\\S)?$"},{"type":"null"}],"title":"Label"},"synonyms":{"items":{"type":"string","maxLength":200,"minLength":1,"pattern":"^\\S(?:.*\\S)?$"},"type":"array","maxItems":50,"title":"Synonyms","default":[]},"hidden":{"type":"boolean","title":"Hidden","default":false}},"additionalProperties":false,"type":"object","required":["kind","key"],"title":"PutChoiceOverride"},"PutTagResultOverrideRequest":{"properties":{"value":{"title":"Value"},"reason":{"anyOf":[{"type":"string","maxLength":2000,"minLength":1},{"type":"null"}],"title":"Reason"}},"additionalProperties":false,"type":"object","required":["value"],"title":"PutTagResultOverrideRequest"},"QuickBooksCompanyInfoResponse":{"properties":{"company_info":{"additionalProperties":true,"type":"object","title":"Company Info"}},"type":"object","required":["company_info"],"title":"QuickBooksCompanyInfoResponse"},"QuickBooksConnectResponse":{"properties":{"authorization_url":{"type":"string","title":"Authorization Url"}},"type":"object","required":["authorization_url"],"title":"QuickBooksConnectResponse"},"QuickBooksConnectionStatusResponse":{"properties":{"connected":{"type":"boolean","title":"Connected"},"needs_reconnect":{"type":"boolean","title":"Needs Reconnect","default":false},"disconnect_pending":{"type":"boolean","title":"Disconnect Pending","default":false},"environment":{"anyOf":[{"type":"string","enum":["sandbox","production"]},{"type":"null"}],"title":"Environment"},"realm_id":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Realm Id"},"company_name":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Company Name"},"access_token_expires_at":{"anyOf":[{"type":"string","format":"date-time"},{"type":"null"}],"title":"Access Token Expires At"}},"type":"object","required":["connected"],"title":"QuickBooksConnectionStatusResponse"},"QuickBooksDisconnectResponse":{"properties":{"success":{"type":"boolean","title":"Success"}},"type":"object","required":["success"],"title":"QuickBooksDisconnectResponse"},"ReachabilitySource":{"type":"string","enum":["subscriptions","rules"],"title":"ReachabilitySource","description":"Which configuration the counts were read from. Only the rules route an escalation, so only\n``RULES`` is produced; the field is still served for a caller deployed before that was true."},"Receiver":{"properties":{"kind":{"$ref":"#/components/schemas/RecipientKind"},"id":{"type":"string","title":"Id"},"name":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Name"},"email":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Email"},"phone_number":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Phone Number"},"member_via":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Member Via"},"editable":{"type":"boolean","title":"Editable","default":false},"identity_reasons":{"items":{"$ref":"#/components/schemas/IneligibilityReason"},"type":"array","title":"Identity Reasons"},"channels":{"items":{"$ref":"#/components/schemas/ReceiverChannel"},"type":"array","title":"Channels"},"mentions":{"items":{"$ref":"#/components/schemas/ReceiverMention"},"type":"array","title":"Mentions"}},"type":"object","required":["kind","id","name"],"title":"Receiver","description":"A person, mailbox, technician or on-call rotation, under the id a rule names it by.\n\n``member_via`` names the parent organization whose membership admits a person here. Addresses\nare given for people still in the organization and for mailboxes, never for technicians.\n``editable`` says the settings can change it: a current member's switches, or a mailbox's name,\naddress and switch."},"ReceiverAlias":{"properties":{"id":{"type":"string","title":"Id"},"name":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Name"}},"type":"object","required":["id","name"],"title":"ReceiverAlias","description":"A legacy mailbox-style row tied to a person's account, through which a rule names them."},"ReceiverChannel":{"properties":{"channel":{"$ref":"#/components/schemas/NotificationChannel"},"reasons":{"items":{"$ref":"#/components/schemas/IneligibilityReason"},"type":"array","title":"Reasons"}},"type":"object","required":["channel"],"title":"ReceiverChannel","description":"One channel this kind of receiver can take, and why it cannot be used now. No reasons: it can."},"ReceiverMention":{"properties":{"rule_key":{"type":"string","title":"Rule Key"},"rule_name":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Rule Name"},"event_types":{"items":{"type":"string"},"type":"array","title":"Event Types"},"is_active":{"type":"boolean","title":"Is Active"},"evaluable":{"type":"boolean","title":"Evaluable"},"role":{"type":"string","enum":["notify","follow_up"],"title":"Role"},"conditional":{"type":"boolean","title":"Conditional"},"via_alias":{"anyOf":[{"$ref":"#/components/schemas/ReceiverAlias"},{"type":"null"}]},"reaches_on":{"items":{"$ref":"#/components/schemas/NotificationChannel"},"type":"array","title":"Reaches On"},"unresolved":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Unresolved"}},"type":"object","required":["rule_key","rule_name","event_types","is_active","evaluable","role","conditional"],"title":"ReceiverMention","description":"One rule naming this receiver, read from the rule's newest version.\n\n``conditional`` says the rule names them only for some events: it has an \"only when\" gate or\npicks receivers by branch. ``reaches_on`` is the channels this rule would send them by, judged\non the row a send would pick, whether or not the rule is switched on. It is empty when that row\nrefuses every channel, when the build cannot evaluate the rule, or when ``unresolved`` says a\nsend finds no row at all. It can overstate, because a send is also narrowed to what its\nnotification type may use. For a rotation it is the channels its technicians would be offered."},"ReceiversResponse":{"properties":{"receivers":{"items":{"$ref":"#/components/schemas/Receiver"},"type":"array","title":"Receivers"}},"type":"object","required":["receivers"],"title":"ReceiversResponse"},"Recipient-Input":{"properties":{"organization_id":{"type":"string","title":"Organization Id"},"created_at":{"type":"string","format":"date-time","title":"Created At"},"updated_at":{"type":"string","format":"date-time","title":"Updated At"},"deleted_at":{"anyOf":[{"type":"string","format":"date-time"},{"type":"null"}],"title":"Deleted At"},"id":{"type":"string","title":"Id"},"user_id":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"User Id"},"name":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Name"},"email":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Email"},"phone":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Phone"},"type":{"$ref":"#/components/schemas/RecipientType"},"source":{"anyOf":[{"$ref":"#/components/schemas/RecipientSource"},{"type":"null"}]},"source_ref":{"anyOf":[{"type":"string","maxLength":128},{"type":"null"}],"title":"Source Ref"},"active":{"type":"boolean","title":"Active","default":true},"email_enabled":{"anyOf":[{"type":"boolean"},{"type":"null"}],"title":"Email Enabled"},"sms_enabled":{"anyOf":[{"type":"boolean"},{"type":"null"}],"title":"Sms Enabled"},"call_enabled":{"anyOf":[{"type":"boolean"},{"type":"null"}],"title":"Call Enabled"},"channel_preference":{"$ref":"#/components/schemas/NotificationChannel","default":"email"},"batch_cron_string":{"type":"string","title":"Batch Cron String","default":"*/30 * * * *"},"batch_priority_threshold":{"type":"integer","title":"Batch Priority Threshold","default":5},"next_batch_at":{"anyOf":[{"type":"string","format":"date-time"},{"type":"null"}],"title":"Next Batch At"}},"type":"object","required":["organization_id","user_id","name","email","phone","type","next_batch_at"],"title":"Recipient"},"Recipient-Output":{"additionalProperties":true,"type":"object"},"RecipientKind":{"type":"string","enum":["user","entity","technician","rotation"],"title":"RecipientKind","description":"What a recipient reference names, and in whose id space.\n\nThe three destinations ``notification.recipient.type`` has, restated so a rule document\nneeds no ORM to be authored or validated, plus a rotation, which names a schedule rather\nthan a row; ``tests/test_outputs.py`` holds the two lists together, as it does for the\nescalation reasons.\n\nWhich id a reference carries follows from its kind, the way every notification settings\nroute already reads one: ``user`` carries an ``auth.user.id``, ``entity`` and\n``technician`` carry a ``notification.recipient.id``, neither having a user behind it, and\n``rotation`` carries a rotation id (:func:`parse_rotation_id`). So every recipient a\nsubscription names can be written as one of the first three, and the kind says what the\nreference can receive rather than hiding it behind a read.\n\nA reference is resolved to a person when the message is sent, never here -- which is what\nlets an escalation step reach whoever is on call at that moment rather than whoever was\nwhen the event happened."},"RecipientListResponse":{"properties":{"people":{"items":{"$ref":"#/components/schemas/RecipientPerson"},"type":"array","title":"People"},"groups":{"items":{"type":"string"},"type":"array","title":"Groups","default":[]},"can_edit":{"type":"boolean","title":"Can Edit","default":false}},"type":"object","required":["people"],"title":"RecipientListResponse"},"RecipientPerson":{"properties":{"id":{"type":"string","title":"Id"},"user_id":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"User Id"},"name":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Name"},"email":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Email"},"phone_number":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Phone Number"},"type":{"$ref":"#/components/schemas/RecipientType"},"active":{"type":"boolean","title":"Active"},"email_enabled":{"type":"boolean","title":"Email Enabled"},"sms_enabled":{"type":"boolean","title":"Sms Enabled"},"call_enabled":{"type":"boolean","title":"Call Enabled"},"sms_consented":{"type":"boolean","title":"Sms Consented","default":false},"sms_consent_opted_out":{"type":"boolean","title":"Sms Consent Opted Out","default":false},"is_organization_admin":{"type":"boolean","title":"Is Organization Admin","default":false}},"type":"object","required":["id","type","active","email_enabled","sms_enabled","call_enabled"],"title":"RecipientPerson"},"RecipientRef":{"properties":{"kind":{"$ref":"#/components/schemas/RecipientKind"},"id":{"type":"string","minLength":1,"title":"Id"}},"additionalProperties":false,"type":"object","required":["kind","id"],"title":"RecipientRef"},"RecipientSource":{"type":"string","enum":["st_technician","onboarding","web_callback"],"title":"RecipientSource","description":"Who provisioned this recipient.\n\nNULL — not a member of this enum — means a human added it in the\nnotifications settings UI. Every value here is a row the platform created\nfor itself, resolved per event rather than named by somebody."},"RecipientType":{"type":"string","enum":["user","entity","technician"],"title":"RecipientType","description":"What kind of destination a recipient is.\n\nENTITY is a mailing list (info@company.com), which is why entity recipients\ntake email and never SMS — unless the row is bound to a user, in which case\nits phone is that person's own. TECHNICIAN is a person the platform resolved from\nServiceTitan rather than an UpSmith user — reachable on their own phone, so\nSMS eligibility follows from the type rather than a carve-out."},"RecordLabel":{"properties":{"label":{"type":"string","title":"Label"},"detail":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Detail"}},"additionalProperties":false,"type":"object","required":["label"],"title":"RecordLabel"},"RegistrationCompletionPublic":{"properties":{"correction_available":{"type":"boolean","title":"Correction Available","default":false},"request":{"anyOf":[{"$ref":"#/components/schemas/RegistrationRequestPublic"},{"type":"null"}]},"state":{"type":"string","enum":["received","waiting_identity","processing","carrier_review","approved","needs_attention"],"title":"State"},"phase":{"anyOf":[{"type":"string","enum":["campaign_review","purchase_pending","assignment_pending","choose_number","ready"]},{"type":"null"}],"title":"Phase"},"selected_number":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Selected Number"},"customer_action":{"type":"string","enum":["none","provide_evidence","contact_support","choose_number","select_number"],"title":"Customer Action","default":"none"},"support_email":{"type":"string","title":"Support Email","default":"support@upsmith.com"},"registration_progress":{"anyOf":[{"$ref":"#/components/schemas/RegistrationProgress"},{"type":"null"}]}},"type":"object","required":["request","state"],"title":"RegistrationCompletionPublic"},"RegistrationEvidenceAccept":{"properties":{"evidence_urls":{"items":{"type":"string"},"type":"array","maxItems":10,"minItems":1,"title":"Evidence Urls"},"version":{"type":"string","pattern":"^[a-f0-9]{64}$","title":"Version"},"idempotency_key":{"type":"string","format":"uuid","title":"Idempotency Key"}},"additionalProperties":false,"type":"object","required":["evidence_urls","version","idempotency_key"],"title":"RegistrationEvidenceAccept"},"RegistrationEvidenceReview":{"properties":{"evidence_urls":{"items":{"type":"string"},"type":"array","maxItems":10,"minItems":1,"title":"Evidence Urls"}},"additionalProperties":false,"type":"object","required":["evidence_urls"],"title":"RegistrationEvidenceReview"},"RegistrationHistoryItem":{"properties":{"id":{"type":"string","title":"Id"},"registration_id":{"type":"string","title":"Registration Id"},"phone_number":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Phone Number"},"stage":{"type":"string","title":"Stage"},"status":{"anyOf":[{"$ref":"#/components/schemas/MessagingRegistrationStatus"},{"type":"null"}]},"reason":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Reason"},"occurred_at":{"anyOf":[{"type":"string","format":"date-time"},{"type":"null"}],"title":"Occurred At"},"observed_at":{"type":"string","format":"date-time","title":"Observed At"},"source":{"type":"string","enum":["api","poll","webhook","snapshot"],"title":"Source"},"event_type":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Event Type"}},"type":"object","required":["id","registration_id","stage","status","observed_at","source"],"title":"RegistrationHistoryItem"},"RegistrationHistoryPage":{"properties":{"items":{"items":{"$ref":"#/components/schemas/RegistrationHistoryItem"},"type":"array","title":"Items"},"next_cursor":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Next Cursor"}},"type":"object","title":"RegistrationHistoryPage"},"RegistrationNumberAccept":{"properties":{"selected_number":{"type":"string","pattern":"^\\+1[2-9][0-9]{2}[2-9][0-9]{6}$","title":"Selected Number"},"version":{"type":"string","pattern":"^[a-f0-9]{64}$","title":"Version"},"idempotency_key":{"type":"string","format":"uuid","title":"Idempotency Key"}},"additionalProperties":false,"type":"object","required":["selected_number","version","idempotency_key"],"title":"RegistrationNumberAccept"},"RegistrationNumberReview":{"properties":{"selected_number":{"type":"string","pattern":"^\\+1[2-9][0-9]{2}[2-9][0-9]{6}$","title":"Selected Number"}},"additionalProperties":false,"type":"object","required":["selected_number"],"title":"RegistrationNumberReview"},"RegistrationOptInReview":{"properties":{"opt_in_type":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Opt In Type"},"opt_in_description":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Opt In Description"},"opt_in_evidence_urls":{"anyOf":[{"items":{"type":"string"},"type":"array"},{"type":"null"}],"title":"Opt In Evidence Urls"},"message_frequency":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Message Frequency"},"help_message":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Help Message"},"stop_message":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Stop Message"},"terms_url":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Terms Url"},"privacy_url":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Privacy Url"}},"type":"object","title":"RegistrationOptInReview"},"RegistrationProgress":{"properties":{"carriers":{"items":{"$ref":"#/components/schemas/CarrierRegistrationProgress"},"type":"array","title":"Carriers"},"campaign_approval_complete":{"type":"boolean","title":"Campaign Approval Complete","default":false},"approved_provider":{"anyOf":[{"$ref":"#/components/schemas/MessagingProvider"},{"type":"null"}]}},"type":"object","required":["carriers"],"title":"RegistrationProgress"},"RegistrationRecoveryOutcome":{"properties":{"provider":{"$ref":"#/components/schemas/MessagingProvider"},"outcome":{"type":"string","enum":["queued","waiting","approved","correction_required","support_required"],"title":"Outcome"},"reason_code":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Reason Code"}},"type":"object","required":["provider","outcome"],"title":"RegistrationRecoveryOutcome"},"RegistrationRequestAccept":{"properties":{"selected_number":{"type":"string","pattern":"^\\+1[2-9][0-9]{2}[2-9][0-9]{6}$","title":"Selected Number"},"version":{"type":"string","pattern":"^[a-f0-9]{64}$","title":"Version"},"idempotency_key":{"type":"string","format":"uuid","title":"Idempotency Key"},"acceptance_version":{"anyOf":[{"type":"string","enum":["campaign-approval-v2","provider-preparation-v3"]},{"type":"null"}],"title":"Acceptance Version"}},"additionalProperties":false,"type":"object","required":["selected_number","version","idempotency_key"],"title":"RegistrationRequestAccept"},"RegistrationRequestPublic":{"properties":{"id":{"type":"string","title":"Id"},"status":{"type":"string","title":"Status"},"accepted_at":{"type":"string","format":"date-time","title":"Accepted At"},"review":{"$ref":"#/components/schemas/RegistrationReviewPublic"}},"type":"object","required":["id","status","accepted_at","review"],"title":"RegistrationRequestPublic"},"RegistrationResumePublic":{"properties":{"outcomes":{"items":{"$ref":"#/components/schemas/RegistrationRecoveryOutcome"},"type":"array","title":"Outcomes"},"registration_progress":{"$ref":"#/components/schemas/RegistrationProgress"}},"type":"object","required":["outcomes","registration_progress"],"title":"RegistrationResumePublic"},"RegistrationResumeRequest":{"properties":{"provider":{"$ref":"#/components/schemas/MessagingProvider"}},"additionalProperties":false,"type":"object","required":["provider"],"title":"RegistrationResumeRequest"},"RegistrationReviewPublic":{"properties":{"provider":{"$ref":"#/components/schemas/MessagingProvider"},"selected_number":{"type":"string","title":"Selected Number"},"version":{"type":"string","title":"Version"},"identity":{"$ref":"#/components/schemas/BusinessIdentitySummaryPublic"},"campaign":{"$ref":"#/components/schemas/BusinessCampaignPublic"},"opt_in":{"$ref":"#/components/schemas/RegistrationOptInReview"},"acceptance_version":{"anyOf":[{"type":"string","enum":["campaign-approval-v2","provider-preparation-v3"]},{"type":"null"}],"title":"Acceptance Version"},"eligible_providers":{"anyOf":[{"items":{"$ref":"#/components/schemas/MessagingProvider"},"type":"array"},{"type":"null"}],"title":"Eligible Providers"}},"type":"object","required":["provider","selected_number","version","identity","campaign","opt_in"],"title":"RegistrationReviewPublic"},"ReportIssueBody":{"properties":{"user_id":{"type":"string","title":"User Id"},"message":{"type":"string","title":"Message"}},"type":"object","required":["user_id","message"],"title":"ReportIssueBody"},"ReportIssueRequest":{"properties":{"user_id":{"type":"string","title":"User Id"},"engagement_id":{"type":"string","title":"Engagement Id"},"message":{"type":"string","title":"Message"}},"type":"object","required":["user_id","engagement_id","message"],"title":"ReportIssueRequest"},"ResolvedIdentity":{"properties":{"id":{"type":"string","title":"Id"},"label":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Label"},"detail":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Detail"},"locked":{"type":"boolean","title":"Locked","default":false},"active":{"anyOf":[{"type":"boolean"},{"type":"null"}],"title":"Active"}},"type":"object","required":["id"],"title":"ResolvedIdentity"},"ResolvedObjectivePromptResponse":{"properties":{"is_simulated":{"type":"boolean","title":"Is Simulated"},"turn_number":{"type":"integer","title":"Turn Number"},"persona":{"$ref":"#/components/schemas/PromptDetail"},"objectives":{"items":{"$ref":"#/components/schemas/PromptDetail"},"type":"array","title":"Objectives"},"resolved_variables":{"additionalProperties":true,"type":"object","title":"Resolved Variables"},"system_prompt":{"type":"string","title":"System Prompt"}},"type":"object","required":["is_simulated","turn_number","persona","objectives","resolved_variables","system_prompt"],"title":"ResolvedObjectivePromptResponse"},"ResolvedPreference":{"properties":{"key":{"type":"string","title":"Key"},"value":{"anyOf":[{"type":"string"},{"type":"integer"},{"type":"number"},{"type":"boolean"},{"items":{"type":"string"},"type":"array"},{"items":{"type":"integer"},"type":"array"},{"additionalProperties":true,"type":"object"},{"items":{},"type":"array"},{"type":"null"}],"title":"Value"},"source":{"type":"string","title":"Source"},"definition":{"$ref":"#/components/schemas/PreferenceDefinitionResponse"}},"type":"object","required":["key","value","source","definition"],"title":"ResolvedPreference"},"ResolvedPreferencesResponse":{"properties":{"preferences":{"additionalProperties":{"$ref":"#/components/schemas/ResolvedPreference"},"type":"object","title":"Preferences"}},"type":"object","required":["preferences"],"title":"ResolvedPreferencesResponse"},"ResolvedUserPreference":{"properties":{"key":{"type":"string","title":"Key"},"value":{"anyOf":[{"type":"string"},{"type":"integer"},{"type":"number"},{"type":"boolean"},{"items":{"type":"string"},"type":"array"},{"items":{"type":"integer"},"type":"array"},{"additionalProperties":true,"type":"object"},{"items":{},"type":"array"},{"type":"null"}],"title":"Value"},"source":{"type":"string","title":"Source"},"definition":{"$ref":"#/components/schemas/UserPreferenceDefinitionResponse"}},"type":"object","required":["key","value","source","definition"],"title":"ResolvedUserPreference"},"ResolvedUserPreferencesResponse":{"properties":{"preferences":{"additionalProperties":{"$ref":"#/components/schemas/ResolvedUserPreference"},"type":"object","title":"Preferences"}},"type":"object","required":["preferences"],"title":"ResolvedUserPreferencesResponse"},"ResumeAiResponseRequest":{"properties":{"pause_event_id":{"type":"string","title":"Pause Event Id"},"reason":{"type":"string","maxLength":128,"title":"Reason","default":"yelp_echo_recovery"},"run_pending":{"type":"boolean","title":"Run Pending","default":true}},"additionalProperties":false,"type":"object","required":["pause_event_id"],"title":"ResumeAiResponseRequest"},"ResumeAiResponseResponse":{"properties":{"resumed":{"type":"boolean","title":"Resumed"},"already_resumed":{"type":"boolean","title":"Already Resumed"},"state":{"$ref":"#/components/schemas/EngagementAiResponseState"},"pending_messages":{"anyOf":[{"additionalProperties":true,"type":"object"},{"type":"null"}],"title":"Pending Messages"}},"type":"object","required":["resumed","already_resumed","state"],"title":"ResumeAiResponseResponse"},"RevertTarget":{"properties":{"status":{"type":"string","enum":["known","unknown","disputed"],"title":"Status"},"value":{"title":"Value"}},"additionalProperties":false,"type":"object","required":["status"],"title":"RevertTarget"},"ReviewCursor":{"properties":{"created_at":{"type":"string","format":"date-time","title":"Created At"},"id":{"type":"string","maxLength":255,"minLength":1,"pattern":"^\\S(?:.*\\S)?$","title":"Id"}},"additionalProperties":false,"type":"object","required":["created_at","id"],"title":"ReviewCursor"},"ReviewDecision":{"properties":{"decision":{"type":"string","enum":["accept","reject"],"title":"Decision"},"note":{"type":"string","maxLength":4000,"minLength":1,"pattern":"^\\S(?:[\\s\\S]*\\S)?$","title":"Note"},"answer":{"$ref":"#/components/schemas/JsonValue"}},"additionalProperties":false,"type":"object","required":["decision","note"],"title":"ReviewDecision"},"ReviewDetailResponse":{"properties":{"review":{"$ref":"#/components/schemas/ReviewRecord"},"supports_decision":{"type":"boolean","title":"Supports Decision"}},"additionalProperties":false,"type":"object","required":["review","supports_decision"],"title":"ReviewDetailResponse"},"ReviewItem":{"properties":{"kind":{"type":"string","enum":["automatic_change","disputed","stale"],"title":"Kind"},"entity_id":{"type":"string","title":"Entity Id"},"entity_type_id":{"type":"string","title":"Entity Type Id"},"property_id":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Property Id"},"change_id":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Change Id"},"at":{"type":"string","format":"date-time","title":"At"},"written_by":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Written By"},"estimated_impact":{"title":"Estimated Impact"}},"additionalProperties":false,"type":"object","required":["kind","entity_id","entity_type_id","property_id","change_id","at","written_by"],"title":"ReviewItem"},"ReviewPageResponse":{"properties":{"items":{"items":{"$ref":"#/components/schemas/ReviewSummary"},"type":"array","maxItems":20,"title":"Items"},"next_cursor":{"anyOf":[{"$ref":"#/components/schemas/ReviewCursor"},{"type":"null"}]}},"additionalProperties":false,"type":"object","required":["items","next_cursor"],"title":"ReviewPageResponse"},"ReviewQueueResponse":{"properties":{"evaluated_at":{"type":"string","format":"date-time","title":"Evaluated At"},"entity_types":{"items":{"$ref":"#/components/schemas/EntityTypeDefinition"},"type":"array","title":"Entity Types"},"properties":{"items":{"$ref":"#/components/schemas/upsmith_knowledge_contracts__properties__PropertyDefinition"},"type":"array","title":"Properties"},"items":{"items":{"$ref":"#/components/schemas/ReviewItem"},"type":"array","title":"Items"},"records":{"additionalProperties":{"$ref":"#/components/schemas/RecordLabel"},"type":"object","title":"Records"}},"additionalProperties":false,"type":"object","required":["evaluated_at","entity_types","properties","items"],"title":"ReviewQueueResponse"},"ReviewRecord":{"properties":{"organization_id":{"type":"string","maxLength":255,"minLength":1,"pattern":"^\\S(?:.*\\S)?$","title":"Organization Id"},"id":{"type":"string","maxLength":255,"minLength":1,"pattern":"^\\S(?:.*\\S)?$","title":"Id"},"request_hash":{"type":"string","pattern":"^[0-9a-f]{64}$","title":"Request Hash"},"request":{"$ref":"#/components/schemas/ReviewRequest"},"target_snapshot":{"additionalProperties":{"$ref":"#/components/schemas/JsonValue"},"type":"object","title":"Target Snapshot"},"opened_by":{"type":"string","maxLength":255,"minLength":1,"pattern":"^\\S(?:.*\\S)?$","title":"Opened By"},"created_at":{"type":"string","format":"date-time","title":"Created At"},"status":{"type":"string","enum":["open","resolved"],"title":"Status"},"resolution":{"anyOf":[{"$ref":"#/components/schemas/ReviewDecision"},{"type":"null"}]},"resolved_by":{"anyOf":[{"type":"string","maxLength":255,"minLength":1,"pattern":"^\\S(?:.*\\S)?$"},{"type":"null"}],"title":"Resolved By"},"resolved_at":{"anyOf":[{"type":"string","format":"date-time"},{"type":"null"}],"title":"Resolved At"},"resolution_evidence_id":{"anyOf":[{"type":"string","maxLength":255,"minLength":1,"pattern":"^\\S(?:.*\\S)?$"},{"type":"null"}],"title":"Resolution Evidence Id"}},"additionalProperties":false,"type":"object","required":["organization_id","id","request_hash","request","target_snapshot","opened_by","created_at","status","resolution","resolved_by","resolved_at","resolution_evidence_id"],"title":"ReviewRecord"},"ReviewRequest":{"properties":{"target_kind":{"type":"string","enum":["entity","fact","link","evidence","source","checkpoint_run","checkpoint_rule","model_answer","pipeline_run"],"title":"Target Kind"},"target_id":{"type":"string","maxLength":255,"minLength":1,"pattern":"^\\S(?:.*\\S)?$","title":"Target Id"},"reason":{"type":"string","enum":["question","low_confidence","audit"],"title":"Reason"},"question":{"type":"string","maxLength":4000,"minLength":1,"pattern":"^\\S(?:[\\s\\S]*\\S)?$","title":"Question"},"context":{"additionalProperties":{"$ref":"#/components/schemas/JsonValue"},"type":"object","title":"Context"},"sampling_probability":{"anyOf":[{"type":"number","maximum":1.0,"exclusiveMinimum":0.0},{"type":"null"}],"title":"Sampling Probability"}},"additionalProperties":false,"type":"object","required":["target_kind","target_id","reason","question"],"title":"ReviewRequest"},"ReviewResolutionRequest":{"properties":{"expected_request_hash":{"type":"string","pattern":"^[0-9a-f]{64}$","title":"Expected Request Hash"},"decision":{"type":"string","enum":["accept","reject"],"title":"Decision"},"note":{"type":"string","maxLength":4000,"minLength":1,"pattern":"^\\S(?:[\\s\\S]*\\S)?$","title":"Note"}},"additionalProperties":false,"type":"object","required":["expected_request_hash","decision","note"],"title":"ReviewResolutionRequest"},"ReviewResolutionResponse":{"properties":{"review":{"$ref":"#/components/schemas/ReviewRecord"},"published_fact_id":{"anyOf":[{"type":"string","maxLength":255,"minLength":1,"pattern":"^\\S(?:.*\\S)?$"},{"type":"null"}],"title":"Published Fact Id"}},"additionalProperties":false,"type":"object","required":["review","published_fact_id"],"title":"ReviewResolutionResponse"},"ReviewSummary":{"properties":{"id":{"type":"string","maxLength":255,"minLength":1,"pattern":"^\\S(?:.*\\S)?$","title":"Id"},"target_kind":{"type":"string","enum":["entity","fact","link","evidence","source","checkpoint_run","checkpoint_rule","model_answer","pipeline_run"],"title":"Target Kind"},"target_id":{"type":"string","maxLength":255,"minLength":1,"pattern":"^\\S(?:.*\\S)?$","title":"Target Id"},"reason":{"type":"string","enum":["question","low_confidence","audit"],"title":"Reason"},"question":{"type":"string","maxLength":4000,"minLength":1,"pattern":"^\\S(?:[\\s\\S]*\\S)?$","title":"Question"},"status":{"type":"string","enum":["open","resolved"],"title":"Status"},"opened_by":{"type":"string","maxLength":255,"minLength":1,"pattern":"^\\S(?:.*\\S)?$","title":"Opened By"},"created_at":{"type":"string","format":"date-time","title":"Created At"},"resolved_by":{"anyOf":[{"type":"string","maxLength":255,"minLength":1,"pattern":"^\\S(?:.*\\S)?$"},{"type":"null"}],"title":"Resolved By"},"resolved_at":{"anyOf":[{"type":"string","format":"date-time"},{"type":"null"}],"title":"Resolved At"},"supports_decision":{"type":"boolean","title":"Supports Decision"}},"additionalProperties":false,"type":"object","required":["id","target_kind","target_id","reason","question","status","opened_by","created_at","resolved_by","resolved_at","supports_decision"],"title":"ReviewSummary"},"RevokeStopRequestBody":{"properties":{"revoked_reason":{"type":"string","title":"Revoked Reason"}},"type":"object","required":["revoked_reason"],"title":"RevokeStopRequestBody"},"RingCentralCallIngestRequest":{"properties":{"organization_id":{"type":"string","title":"Organization Id"},"payload":{"additionalProperties":true,"type":"object","title":"Payload"}},"type":"object","required":["organization_id","payload"],"title":"RingCentralCallIngestRequest"},"RingCentralCallIngestResponse":{"properties":{"lead_id":{"type":"string","title":"Lead Id"},"created":{"type":"boolean","title":"Created"}},"type":"object","required":["lead_id","created"],"title":"RingCentralCallIngestResponse"},"RosterPublic":{"properties":{"id":{"type":"string","title":"Id"},"key":{"type":"string","title":"Key"},"display_name":{"type":"string","title":"Display Name"},"sort_order":{"type":"integer","title":"Sort Order"},"display_role":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Display Role"},"display_icon":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Display Icon"},"display_color":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Display Color"},"description":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Description"},"is_campaign_persona":{"type":"boolean","title":"Is Campaign Persona","default":true},"is_visible_in_dashboard":{"type":"boolean","title":"Is Visible In Dashboard","default":true}},"type":"object","required":["id","key","display_name","sort_order"],"title":"RosterPublic","description":"Presentation + behaviour config the frontend needs to render a persona.\n\nEverything the FE used to hard-code per persona (display order, card role,\nicon, accent colour, blurb, and the two visibility flags) comes from here, so\na persona added by DB insert renders as itself rather than falling back to the\nraw agent name."},"RotationRefusal":{"type":"string","enum":["nobody_on_call","schedule_stale","schedule_unavailable","nobody_reachable","rotation_not_found"],"title":"RotationRefusal","description":"Why a rotation reached nobody. Activity and the unresolved-rotation counts read these strings."},"RuleActivateResponse":{"properties":{"now_uncovered":{"items":{"type":"string"},"type":"array","title":"Now Uncovered","default":[]},"activated_by_user_id":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Activated By User Id"},"activated_at":{"anyOf":[{"type":"string","format":"date-time"},{"type":"null"}],"title":"Activated At"},"deactivated_by_user_id":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Deactivated By User Id"},"deactivated_at":{"anyOf":[{"type":"string","format":"date-time"},{"type":"null"}],"title":"Deactivated At"},"id":{"type":"string","title":"Id"},"rule_key":{"type":"string","title":"Rule Key"},"name":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Name"},"event_types":{"items":{"type":"string"},"type":"array","title":"Event Types"},"version":{"type":"integer","title":"Version"},"is_active":{"type":"boolean","title":"Is Active"},"created_by_user_id":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Created By User Id"},"created_at":{"type":"string","format":"date-time","title":"Created At"},"updated_at":{"type":"string","format":"date-time","title":"Updated At"},"unreachable_recipients":{"items":{"$ref":"#/components/schemas/UnreachableRecipient"},"type":"array","title":"Unreachable Recipients"},"explanation":{"anyOf":[{"$ref":"#/components/schemas/RuleExplanation"},{"type":"null"}]},"decision":{"additionalProperties":true,"type":"object","title":"Decision"}},"type":"object","required":["id","rule_key","name","event_types","version","is_active","created_by_user_id","created_at","updated_at","decision"],"title":"RuleActivateResponse","description":"The rule now in service, and what the version it replaced covered that it does not."},"RuleAdminActivateResponse":{"properties":{"now_uncovered":{"items":{"type":"string"},"type":"array","title":"Now Uncovered","default":[]},"activated_by_user_id":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Activated By User Id"},"activated_at":{"anyOf":[{"type":"string","format":"date-time"},{"type":"null"}],"title":"Activated At"},"deactivated_by_user_id":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Deactivated By User Id"},"deactivated_at":{"anyOf":[{"type":"string","format":"date-time"},{"type":"null"}],"title":"Deactivated At"},"id":{"type":"string","title":"Id"},"rule_key":{"type":"string","title":"Rule Key"},"name":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Name"},"event_types":{"items":{"type":"string"},"type":"array","title":"Event Types"},"version":{"type":"integer","title":"Version"},"is_active":{"type":"boolean","title":"Is Active"},"created_by_user_id":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Created By User Id"},"created_at":{"type":"string","format":"date-time","title":"Created At"},"updated_at":{"type":"string","format":"date-time","title":"Updated At"},"unreachable_recipients":{"items":{"$ref":"#/components/schemas/UnreachableRecipient"},"type":"array","title":"Unreachable Recipients"},"explanation":{"anyOf":[{"$ref":"#/components/schemas/RuleExplanation"},{"type":"null"}]},"decision":{"additionalProperties":true,"type":"object","title":"Decision"},"maintenance":{"items":{"$ref":"#/components/schemas/RuleMaintenanceEntry"},"type":"array","title":"Maintenance"}},"type":"object","required":["id","rule_key","name","event_types","version","is_active","created_by_user_id","created_at","updated_at","decision"],"title":"RuleAdminActivateResponse","description":"The staff tier's activation answer: the authenticated one plus the maintenance record."},"RuleAdminResponse":{"properties":{"activated_by_user_id":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Activated By User Id"},"activated_at":{"anyOf":[{"type":"string","format":"date-time"},{"type":"null"}],"title":"Activated At"},"deactivated_by_user_id":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Deactivated By User Id"},"deactivated_at":{"anyOf":[{"type":"string","format":"date-time"},{"type":"null"}],"title":"Deactivated At"},"id":{"type":"string","title":"Id"},"rule_key":{"type":"string","title":"Rule Key"},"name":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Name"},"event_types":{"items":{"type":"string"},"type":"array","title":"Event Types"},"version":{"type":"integer","title":"Version"},"is_active":{"type":"boolean","title":"Is Active"},"created_by_user_id":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Created By User Id"},"created_at":{"type":"string","format":"date-time","title":"Created At"},"updated_at":{"type":"string","format":"date-time","title":"Updated At"},"unreachable_recipients":{"items":{"$ref":"#/components/schemas/UnreachableRecipient"},"type":"array","title":"Unreachable Recipients"},"explanation":{"anyOf":[{"$ref":"#/components/schemas/RuleExplanation"},{"type":"null"}]},"decision":{"additionalProperties":true,"type":"object","title":"Decision"},"maintenance":{"items":{"$ref":"#/components/schemas/RuleMaintenanceEntry"},"type":"array","title":"Maintenance"}},"type":"object","required":["id","rule_key","name","event_types","version","is_active","created_by_user_id","created_at","updated_at","decision"],"title":"RuleAdminResponse","description":"A rule as a staff caller reads it, and what UpSmith did to it on its own.\n\nAdditive over ``RuleResponse`` rather than replacing it: the authenticated tier serves the\nsame rule to a client that has no business reading the maintenance record."},"RuleAdminVersionResponse":{"properties":{"activated_by_user_id":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Activated By User Id"},"activated_at":{"anyOf":[{"type":"string","format":"date-time"},{"type":"null"}],"title":"Activated At"},"deactivated_by_user_id":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Deactivated By User Id"},"deactivated_at":{"anyOf":[{"type":"string","format":"date-time"},{"type":"null"}],"title":"Deactivated At"},"version":{"type":"integer","title":"Version"},"is_active":{"type":"boolean","title":"Is Active"},"created_by_user_id":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Created By User Id"},"created_at":{"type":"string","format":"date-time","title":"Created At"},"maintenance":{"items":{"$ref":"#/components/schemas/RuleMaintenanceEntry"},"type":"array","title":"Maintenance"}},"type":"object","required":["version","is_active","created_by_user_id","created_at"],"title":"RuleAdminVersionResponse","description":"A version as a staff caller reads it, carrying what UpSmith did to it on its own.\n\nEmpty for every version a person wrote, and for every version written before maintenance\nexisted -- which is what tells an author-less version somebody generated from one this\ncleaned up after a departure."},"RuleCoverageEntry":{"properties":{"notification_type":{"type":"string","title":"Notification Type"},"module_title":{"type":"string","title":"Module Title"},"rule_event_type":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Rule Event Type"},"status":{"type":"string","title":"Status"},"reason_code":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Reason Code"},"reason":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Reason"},"rules":{"items":{"$ref":"#/components/schemas/RuleCoverageRule"},"type":"array","title":"Rules","default":[]},"invalid_rules":{"items":{"$ref":"#/components/schemas/RuleCoverageInvalidRule"},"type":"array","title":"Invalid Rules","default":[]}},"type":"object","required":["notification_type","module_title","rule_event_type","status"],"title":"RuleCoverageEntry","description":"One notification type this organization has switched on, and whether a rule covers it.\n\nThree states, and the third is the one that makes the report honest:\n\n- ``covered`` — at least one active rule is keyed to its event type.\n- ``uncovered`` — translatable, and no active rule is keyed to it. **This is the finding.**\n- ``not_expressible`` — no rule event type states this notification type yet, with the\n  refusal's code and reason carried through.\n\n``not_expressible`` is not a gap in the organization's configuration and must not be read as\none. Several types deliberately have no rule event type at all — a schedule firing is not a\ndomain fact — and several more are refused for named reasons. Folding them into ``uncovered``\nwould make every organization look broken and train the reader to ignore the report.\n\n``invalid_rules`` is independent of ``status``: a type can hold one rule that routes and one\nthat no longer validates, which is covered and still worth fixing."},"RuleCoverageInvalidRule":{"properties":{"rule_key":{"type":"string","title":"Rule Key"},"name":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Name"},"version":{"type":"integer","title":"Version"},"issues":{"items":{"$ref":"#/components/schemas/RuleIssue"},"type":"array","title":"Issues","default":[]}},"type":"object","required":["rule_key","name","version"],"title":"RuleCoverageInvalidRule","description":"An active rule keyed to this type that this build cannot evaluate, and why."},"RuleCoverageResponse":{"properties":{"organization_id":{"type":"string","title":"Organization Id"},"entries":{"items":{"$ref":"#/components/schemas/RuleCoverageEntry"},"type":"array","title":"Entries"},"summary":{"$ref":"#/components/schemas/RuleCoverageSummary"}},"type":"object","required":["organization_id","entries","summary"],"title":"RuleCoverageResponse","description":"What this organization's live rules leave uncovered.\n\n**What ``covered`` claims, and what it does not.** It claims an active rule is keyed to the\nevent type, can notify somebody, and is one this build can evaluate — which is what dispatch\nrequires before it routes at all. It does **not** claim the rule's gate matches any particular\nevent: deciding whether a condition could match is not reliably answerable, so previewing\nagainst recent real events is how an author checks that, and this report links the two by\nnaming the rules covering each type.\n\n**What the report cannot see.** Its denominator is the organization's ``notification`` rows,\nso a type with no module row at all — not merely an inactive one — is absent rather than\nuncovered. A dispatch seeds that row lazily and retries, so such a type can appear in a later\nrun of this report having never been reported before."},"RuleCoverageRule":{"properties":{"rule_key":{"type":"string","title":"Rule Key"},"name":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Name"},"version":{"type":"integer","title":"Version"}},"type":"object","required":["rule_key","name","version"],"title":"RuleCoverageRule","description":"One rule covering a notification type, named so the reader can go and look at it."},"RuleCoverageSummary":{"properties":{"covered":{"type":"integer","title":"Covered"},"uncovered":{"type":"integer","title":"Uncovered"},"not_expressible":{"type":"integer","title":"Not Expressible"},"types_with_invalid_rules":{"type":"integer","title":"Types With Invalid Rules","default":0}},"type":"object","required":["covered","uncovered","not_expressible"],"title":"RuleCoverageSummary","description":"The three states partition the entries; ``types_with_invalid_rules`` cuts across them."},"RuleCreateRequest":{"properties":{"name":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Name"},"event_types":{"items":{"type":"string"},"type":"array","title":"Event Types","default":[]},"decision":{"additionalProperties":true,"type":"object","title":"Decision"}},"type":"object","required":["decision"],"title":"RuleCreateRequest","description":"A new rule. It is a draft: creating one never starts it routing traffic.\n\nNo ``base_version`` — there is no version to be stale against. The first save of a rule is\nthe only write that does not need one."},"RuleCriterion":{"properties":{"id":{"type":"string","title":"Id"},"key":{"type":"string","title":"Key"},"label":{"type":"string","title":"Label"}},"type":"object","required":["id","key","label"],"title":"RuleCriterion","description":"One evaluation criterion, as the filter picker offers it.\n\nThe ``id`` is what a rule stores and what ``evaluation.failed_criterion_ids`` matches; the key\nand label are what an author reads, because neither id nor key is legible on its own."},"RuleDeactivateResponse":{"properties":{"now_uncovered":{"items":{"type":"string"},"type":"array","title":"Now Uncovered","default":[]},"rule":{"$ref":"#/components/schemas/RuleResponse"}},"type":"object","required":["rule"],"title":"RuleDeactivateResponse","description":"A rule taken out of service, and what that cost."},"RuleDeleteResponse":{"properties":{"now_uncovered":{"items":{"type":"string"},"type":"array","title":"Now Uncovered","default":[]}},"type":"object","title":"RuleDeleteResponse","description":"A chain deleted, and what its live version covered that nothing else does."},"RuleDerivedValues":{"properties":{"name":{"type":"string","title":"Name"},"values":{"items":{"type":"string"},"type":"array","title":"Values"}},"type":"object","required":["name","values"],"title":"RuleDerivedValues","description":"A derived attribute's name and the values it can take, for the picker offering them."},"RuleExplanation":{"properties":{"sentence":{"type":"string","title":"Sentence"},"when":{"type":"string","title":"When"},"then":{"items":{"type":"string"},"type":"array","title":"Then"}},"type":"object","required":["sentence","when"],"title":"RuleExplanation","description":"One rule, in plain English, rendered from the document rather than written by a model.\n\n``sentence`` is the whole thing and is what a client prints. ``when`` and ``then`` are the\nhalves it is built from, for a client that lays the two out rather than printing one line.\nBoth are the same rendering: a client that uses the parts never disagrees with one that uses\nthe sentence.\n\nIt describes the document, never an event. Whether the condition would match anything is\npreview's answer."},"RuleIssue":{"properties":{"path":{"type":"string","title":"Path"},"message":{"type":"string","title":"Message"}},"type":"object","required":["path","message"],"title":"RuleIssue","description":"One problem with a document, at the path in the document that has it.\n\nThe same shape carries a refusal and a warning: a malformed document is refused with these\nin a 422 body, and a well-formed one that cannot notify anyone is saved with these in\n``warnings``. An author reads one thing either way."},"RuleMaintenanceEntry":{"properties":{"reason":{"type":"string","title":"Reason"},"user_id":{"type":"string","title":"User Id"},"user_name":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"User Name"},"at":{"anyOf":[{"type":"string","format":"date-time"},{"type":"null"}],"title":"At"},"removed":{"type":"integer","title":"Removed","default":0},"deactivated":{"type":"boolean","title":"Deactivated","default":false},"restored_at":{"anyOf":[{"type":"string","format":"date-time"},{"type":"null"}],"title":"Restored At"}},"type":"object","required":["reason","user_id"],"title":"RuleMaintenanceEntry","description":"What UpSmith did to this rule on its own, and whose departure it was for.\n\nA rule the customer can see gains versions nobody on their side wrote, so the version has to\nbe able to say why. ``user_name`` is null when the account is gone entirely; ``restored_at``\nis set once the person came back and their references went with them."},"RuleOverride":{"properties":{"rule_type_key":{"type":"string","title":"Rule Type Key"},"sort_order":{"type":"integer","title":"Sort Order","default":0},"label":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Label"},"params":{"anyOf":[{"additionalProperties":true,"type":"object"},{"type":"null"}],"title":"Params"}},"type":"object","required":["rule_type_key","params"],"title":"RuleOverride","description":"Replaces the template rule at ``(rule_type_key, sort_order)``; null ``params`` drops it."},"RulePreviewEntry":{"properties":{"subject_id":{"type":"string","title":"Subject Id"},"event_type":{"type":"string","title":"Event Type"},"applies":{"type":"boolean","title":"Applies"},"outputs":{"$ref":"#/components/schemas/RulePreviewOutputs"},"rotations":{"items":{"$ref":"#/components/schemas/RulePreviewRotation"},"type":"array","title":"Rotations","default":[]},"blocked":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Blocked"},"unreadable":{"items":{"type":"string"},"type":"array","title":"Unreadable"},"inconclusive":{"type":"boolean","title":"Inconclusive"},"trace":{"additionalProperties":true,"type":"object","title":"Trace"}},"type":"object","required":["subject_id","event_type","applies","outputs","blocked","unreadable","inconclusive","trace"],"title":"RulePreviewEntry","description":"What the draft would have done for one event, and how far to trust it.\n\n``RulePreview`` field for field, plus ``rotations``: who each rotation reference in\n``outputs`` would have reached, which ``outputs`` leaves as written so a client reading only\nthe references sees no change. ``trace`` is the decision library's own trace, already\nJSON — ``applies``, ``reads``, ``derived`` and the per-output ``matched`` / ``used_else`` /\n``absent`` / ``value`` / ``block``. The editor and the activity view both read that shape, so\nit is passed through rather than translated into a second vocabulary for the same thing.\n\n``unreadable`` names the attributes this version of the event could not supply, and\n``inconclusive`` is whether any were read. A rule that did not match while reading one of\nthem has **not** been shown not to match, and a client that drops these two fields will show\na confident \"would not fire\" that is not true."},"RulePreviewEventInput":{"properties":{"type":{"type":"string","title":"Type"},"occurred_at":{"type":"string","format":"date-time","title":"Occurred At"},"subject_id":{"type":"string","title":"Subject Id"},"payload":{"additionalProperties":true,"type":"object","title":"Payload","default":{}}},"type":"object","required":["type","occurred_at","subject_id"],"title":"RulePreviewEventInput","description":"An event the caller already holds, to try a draft against.\n\nNothing is ``unreadable`` for one of these. The caller is handing over the event as it was\npublished rather than a reconstruction of it, so an attribute that reads null read null —\nwhich is the distinction the preview contract exists to keep, and flattening it here would\nreport a real negative as inconclusive."},"RulePreviewMember":{"properties":{"user_id":{"type":"string","title":"User Id"},"name":{"type":"string","title":"Name"},"channels":{"items":{"type":"string"},"type":"array","title":"Channels","default":[]},"reasons":{"items":{"type":"string"},"type":"array","title":"Reasons","default":[]}},"type":"object","required":["user_id","name"],"title":"RulePreviewMember","description":"The on-call list member a rotation reached, judged as ``RulePreviewTechnician`` is.\n\nA member can also be called, once they have turned calls on themselves."},"RulePreviewOutputs":{"properties":{"recipients":{"items":{"$ref":"#/components/schemas/RecipientRef"},"type":"array","title":"Recipients","default":[]},"channels":{"items":{"type":"string"},"type":"array","title":"Channels","default":[]},"timing":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Timing"},"escalation":{"items":{"$ref":"#/components/schemas/EscalationStep"},"type":"array","title":"Escalation","default":[]},"immediate_recipients":{"items":{"$ref":"#/components/schemas/RecipientRef"},"type":"array","title":"Immediate Recipients","default":[]}},"type":"object","title":"RulePreviewOutputs","description":"What the rule resolved to for one event. Empty is a result, not a failure."},"RulePreviewRequest":{"properties":{"decision":{"additionalProperties":true,"type":"object","title":"Decision"},"event_type":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Event Type"},"events":{"anyOf":[{"items":{"$ref":"#/components/schemas/RulePreviewEventInput"},"type":"array","maxItems":50},{"type":"null"}],"title":"Events"},"limit":{"type":"integer","maximum":50.0,"minimum":1.0,"title":"Limit","default":10}},"type":"object","required":["decision"],"title":"RulePreviewRequest","description":"A draft, and one of the two ways to say which events to run it against.\n\n``event_type`` previews against this organization's most recent real subjects of that type,\nrebuilt. ``events`` previews against events the caller supplies. Exactly one of them: neither\nleaves nothing to evaluate, and both would mean two answers to one question.\n\n``limit`` and the length of ``events`` are bound by the same ``MAX_PREVIEW_EVENTS`` the\nlibrary binds, declared here so the refusal names the field rather than arriving as a\n``ValueError`` from two layers down."},"RulePreviewResponse":{"properties":{"event_source":{"type":"string","title":"Event Source"},"previews":{"items":{"$ref":"#/components/schemas/RulePreviewEntry"},"type":"array","title":"Previews"}},"type":"object","required":["event_source","previews"],"title":"RulePreviewResponse","description":"One preview run.\n\n``event_source`` says which of the two ways the events were named, because it is what makes\nan empty ``unreadable`` readable: for ``supplied`` events there is nothing to be unreadable,\nwhile for ``recent`` ones an empty list means the rule read nothing the rebuild had lost."},"RulePreviewRotation":{"properties":{"rotation_id":{"type":"string","title":"Rotation Id"},"output":{"type":"string","title":"Output"},"escalation_step":{"anyOf":[{"type":"integer"},{"type":"null"}],"title":"Escalation Step"},"at":{"type":"string","format":"date-time","title":"At"},"name":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Name"},"technicians":{"items":{"$ref":"#/components/schemas/RulePreviewTechnician"},"type":"array","title":"Technicians","default":[]},"members":{"items":{"$ref":"#/components/schemas/RulePreviewMember"},"type":"array","title":"Members","default":[]},"refusal":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Refusal"}},"type":"object","required":["rotation_id","output","at"],"title":"RulePreviewRotation","description":"Who one rotation in the outputs would have reached when its message was due.\n\n``output`` is ``recipients`` or ``escalation``; for a step, ``escalation_step`` is its index in\n``outputs.escalation``. ``at`` is the event's ``occurred_at``, plus the step's\n``delay_minutes`` for a step. A ServiceTitan rotation lists ``technicians``; an on-call list\nhas a ``name`` and lists the one member on call in ``members``. Without a ``refusal``,\nsomeone listed has a channel. Otherwise it says why nobody: ``nobody_on_call``,\n``schedule_stale`` (the shift mirror is stale now), ``schedule_unavailable``,\n``rotation_not_found`` (an on-call list the organization doesn't have), or\n``nobody_reachable`` -- the one that still lists who was on call, with no channel this message\nis sent on."},"RulePreviewTechnician":{"properties":{"technician_id":{"type":"integer","title":"Technician Id"},"name":{"type":"string","title":"Name"},"channels":{"items":{"type":"string"},"type":"array","title":"Channels","default":[]},"reasons":{"items":{"type":"string"},"type":"array","title":"Reasons","default":[]}},"type":"object","required":["technician_id","name"],"title":"RulePreviewTechnician","description":"A technician a rotation reached, named but never with an address.\n\n``channels`` are the ones they can be reached on among those judged: a previewed message's\nchannels, or for who is on call now, every channel a technician can take. When it is empty,\n``reasons`` are the eligibility reasons that rule each judged channel out, or\n``no_technician_channel`` when a previewed message goes by no channel a technician can receive."},"RuleResponse":{"properties":{"activated_by_user_id":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Activated By User Id"},"activated_at":{"anyOf":[{"type":"string","format":"date-time"},{"type":"null"}],"title":"Activated At"},"deactivated_by_user_id":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Deactivated By User Id"},"deactivated_at":{"anyOf":[{"type":"string","format":"date-time"},{"type":"null"}],"title":"Deactivated At"},"id":{"type":"string","title":"Id"},"rule_key":{"type":"string","title":"Rule Key"},"name":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Name"},"event_types":{"items":{"type":"string"},"type":"array","title":"Event Types"},"version":{"type":"integer","title":"Version"},"is_active":{"type":"boolean","title":"Is Active"},"created_by_user_id":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Created By User Id"},"created_at":{"type":"string","format":"date-time","title":"Created At"},"updated_at":{"type":"string","format":"date-time","title":"Updated At"},"unreachable_recipients":{"items":{"$ref":"#/components/schemas/UnreachableRecipient"},"type":"array","title":"Unreachable Recipients"},"explanation":{"anyOf":[{"$ref":"#/components/schemas/RuleExplanation"},{"type":"null"}]},"decision":{"additionalProperties":true,"type":"object","title":"Decision"}},"type":"object","required":["id","rule_key","name","event_types","version","is_active","created_by_user_id","created_at","updated_at","decision"],"title":"RuleResponse"},"RuleResult":{"type":"string","enum":["applied","declined","blocked","invalid"],"title":"RuleResult"},"RuleSaveResponse":{"properties":{"now_uncovered":{"items":{"type":"string"},"type":"array","title":"Now Uncovered","default":[]},"rule":{"$ref":"#/components/schemas/RuleResponse"},"warnings":{"items":{"$ref":"#/components/schemas/RuleIssue"},"type":"array","title":"Warnings"}},"type":"object","required":["rule","warnings"],"title":"RuleSaveResponse","description":"The stored rule, and why it still cannot notify anyone.\n\n``warnings`` non-empty means the save succeeded and activation will not: the document is\nwell formed and structurally inert. Returning it here is what lets an author keep a draft\nthey have not finished."},"RuleSilenceCheck":{"properties":{"event_type":{"type":"string","title":"Event Type"},"considered":{"type":"integer","title":"Considered"},"silenced":{"type":"integer","title":"Silenced"},"inconclusive":{"type":"integer","title":"Inconclusive"},"delayed":{"type":"integer","title":"Delayed","default":0},"shortest_delay_minutes":{"anyOf":[{"type":"integer"},{"type":"null"}],"title":"Shortest Delay Minutes"},"headline":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Headline"},"delayed_headline":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Delayed Headline"},"examples":{"items":{"$ref":"#/components/schemas/RuleSilenceExample"},"type":"array","title":"Examples","default":[]},"delayed_examples":{"items":{"$ref":"#/components/schemas/RuleSilenceExample"},"type":"array","title":"Delayed Examples","default":[]}},"type":"object","required":["event_type","considered","silenced","inconclusive"],"title":"RuleSilenceCheck","description":"One event type's verdict.\n\n``silenced`` counts events that reach somebody under the rules in service and nobody under\nthe proposed ones, a follow-up rung included. ``delayed`` counts the ones that reach somebody\nin the first message today and only on a later rung afterwards -- nobody is told while the\nescalation can still be claimed. The two are disjoint, and an event that already reached\nnobody right away is in neither. ``inconclusive`` counts the ones that stopped reaching\nanybody, or anybody right away, while reading something the rebuilt event could not supply --\nevidence of neither. ``considered`` 0 means there was no recent history to judge, which is not\nthe same as nothing going quiet.\n\n``shortest_delay_minutes`` is the soonest rung that would page anybody, null when ``delayed``\nis 0. ``headline`` and ``delayed_headline`` are the sentences both surfaces show, each null\nwhen there is nothing of its kind to say, written here so the editor and Ask Jenny cannot\ndescribe one result two ways."},"RuleSilenceCheckRequest":{"properties":{"rule_key":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Rule Key"},"decision":{"additionalProperties":true,"type":"object","title":"Decision"},"event_types":{"items":{"type":"string"},"type":"array","title":"Event Types"},"limit":{"type":"integer","maximum":50.0,"minimum":1.0,"title":"Limit","default":30}},"type":"object","required":["decision","event_types"],"title":"RuleSilenceCheckRequest","description":"A proposed version of a rule, to be judged against what this organization's events do now.\n\n``rule_key`` null says the change creates a rule, which can only add reach.\n\n``event_types`` is required and is what the **proposed** version would be keyed to, so a\ncheck can tell an edit that keeps the event type from one that drops it. It is required\nbecause the two readings are opposite: an omitted list would say the rule is keyed to nothing\nany more, which reports every event it alone covered as silenced -- the loudest possible\nwarning for a caller that merely forgot a field. Unknown types are refused the way the save\nthat follows refuses them."},"RuleSilenceCheckResponse":{"properties":{"checks":{"items":{"$ref":"#/components/schemas/RuleSilenceCheck"},"type":"array","title":"Checks","default":[]}},"type":"object","title":"RuleSilenceCheckResponse","description":"One check per previewable event type the rule is in service for.\n\nEmpty means the question does not arise -- a new rule, or a chain with no version in service\n-- rather than \"nothing would be silenced\", which is a check with ``silenced`` 0."},"RuleSilenceExample":{"properties":{"subject_id":{"type":"string","title":"Subject Id"},"occurred_at":{"type":"string","format":"date-time","title":"Occurred At"},"description":{"type":"string","title":"Description"}},"type":"object","required":["subject_id","occurred_at","description"],"title":"RuleSilenceExample","description":"One real event the proposed version would leave unrouted or waiting, as a person would describe it."},"RuleSummaryResponse":{"properties":{"id":{"type":"string","title":"Id"},"rule_key":{"type":"string","title":"Rule Key"},"name":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Name"},"event_types":{"items":{"type":"string"},"type":"array","title":"Event Types"},"version":{"type":"integer","title":"Version"},"is_active":{"type":"boolean","title":"Is Active"},"created_by_user_id":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Created By User Id"},"created_at":{"type":"string","format":"date-time","title":"Created At"},"updated_at":{"type":"string","format":"date-time","title":"Updated At"},"unreachable_recipients":{"items":{"$ref":"#/components/schemas/UnreachableRecipient"},"type":"array","title":"Unreachable Recipients"},"explanation":{"anyOf":[{"$ref":"#/components/schemas/RuleExplanation"},{"type":"null"}]},"decision":{"anyOf":[{"additionalProperties":true,"type":"object"},{"type":"null"}],"title":"Decision"}},"type":"object","required":["id","rule_key","name","event_types","version","is_active","created_by_user_id","created_at","updated_at"],"title":"RuleSummaryResponse","description":"A rule as the list shows it, with its document only when the caller asks for it."},"RuleUpdateRequest":{"properties":{"name":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Name"},"event_types":{"items":{"type":"string"},"type":"array","title":"Event Types","default":[]},"decision":{"additionalProperties":true,"type":"object","title":"Decision"},"base_version":{"type":"integer","title":"Base Version"}},"type":"object","required":["decision","base_version"],"title":"RuleUpdateRequest","description":"An edit, naming the version its author was looking at.\n\n``base_version`` is required of every client rather than defaulted or optional. An optional\nfield makes the protection opt-in, and the client most likely to overwrite a change it never\nsaw is the one authoring from natural language on someone's behalf. Omitting it is a 422\nfrom FastAPI's own validation, which is a refusal rather than a silent success."},"RuleValidationRequest":{"properties":{"decision":{"additionalProperties":true,"type":"object","title":"Decision"},"event_types":{"items":{"type":"string"},"type":"array","title":"Event Types","default":[]}},"type":"object","required":["decision"],"title":"RuleValidationRequest","description":"A candidate document to check without storing it.\n\n``event_types`` is optional because a client may be checking a document alone, but a client\nthat has them should send them: an empty or unknown event type is a property of the rule\nrather than of the document, and this is the only place that can report it before a save."},"RuleValidationResponse":{"properties":{"valid":{"type":"boolean","title":"Valid"},"warnings":{"items":{"$ref":"#/components/schemas/RuleIssue"},"type":"array","title":"Warnings"},"explanation":{"anyOf":[{"$ref":"#/components/schemas/RuleExplanation"},{"type":"null"}]}},"type":"object","required":["valid","warnings"],"title":"RuleValidationResponse","description":"A document that parsed and checked out, and why it may still notify nobody.\n\n``warnings`` non-empty means the document is savable but cannot be activated: it is well\nformed and inert. A document that does not validate never reaches this model — it is a 422.\n\n``explanation`` reads the candidate back before anything stores it, which is the point at\nwhich an author can still tell that the document is not the rule they meant."},"RuleVersionResponse":{"properties":{"activated_by_user_id":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Activated By User Id"},"activated_at":{"anyOf":[{"type":"string","format":"date-time"},{"type":"null"}],"title":"Activated At"},"deactivated_by_user_id":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Deactivated By User Id"},"deactivated_at":{"anyOf":[{"type":"string","format":"date-time"},{"type":"null"}],"title":"Deactivated At"},"version":{"type":"integer","title":"Version"},"is_active":{"type":"boolean","title":"Is Active"},"created_by_user_id":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Created By User Id"},"created_at":{"type":"string","format":"date-time","title":"Created At"}},"type":"object","required":["version","is_active","created_by_user_id","created_at"],"title":"RuleVersionResponse","description":"One entry in a rule's activity: a version, when it was written, by whom, and who started it.\n\n``created_by_user_id`` is null for every rule the Stage-3 backfill generated and for every\nrow written before the column existed, which is most of the table today. The activation\nfields are null for longer still: for every version activated before they existed, and for\nevery version that was never live."},"RuleVocabularyResponse":{"properties":{"attributes":{"items":{"$ref":"#/components/schemas/CatalogEntry"},"type":"array","title":"Attributes"},"derived":{"items":{"$ref":"#/components/schemas/FunctionEntry"},"type":"array","title":"Derived"},"derived_values":{"items":{"$ref":"#/components/schemas/RuleDerivedValues"},"type":"array","title":"Derived Values"},"event_types":{"items":{"type":"string"},"type":"array","title":"Event Types"},"previewable_event_types":{"items":{"type":"string"},"type":"array","title":"Previewable Event Types"},"dispatched_event_types":{"items":{"type":"string"},"type":"array","title":"Dispatched Event Types"},"send_time_attributes":{"additionalProperties":{"items":{"type":"string"},"type":"array"},"type":"object","title":"Send Time Attributes"},"presence_only_attributes":{"items":{"type":"string"},"type":"array","title":"Presence Only Attributes"},"follow_up_attributes":{"items":{"type":"string"},"type":"array","title":"Follow Up Attributes"},"event_type_labels":{"additionalProperties":{"type":"string"},"type":"object","title":"Event Type Labels"},"outputs":{"items":{"type":"string"},"type":"array","title":"Outputs"},"channels":{"items":{"type":"string"},"type":"array","title":"Channels"},"authorable_channels":{"items":{"type":"string"},"type":"array","title":"Authorable Channels"},"default_channels":{"items":{"type":"string"},"type":"array","title":"Default Channels"},"event_timings":{"additionalProperties":{"type":"string","enum":["immediate","digest","mixed"]},"type":"object","title":"Event Timings","default":{}},"recipient_kinds":{"items":{"type":"string"},"type":"array","title":"Recipient Kinds"},"sms_incapable_recipient_kinds":{"items":{"type":"string"},"type":"array","title":"Sms Incapable Recipient Kinds"},"call_incapable_recipient_kinds":{"items":{"type":"string"},"type":"array","title":"Call Incapable Recipient Kinds"},"call_incapable_rotation_sources":{"items":{"type":"string"},"type":"array","title":"Call Incapable Rotation Sources"},"timings":{"items":{"type":"string"},"type":"array","title":"Timings"},"escalation_delay_presets":{"items":{"type":"integer"},"type":"array","title":"Escalation Delay Presets"},"max_escalation_delay_minutes":{"type":"integer","title":"Max Escalation Delay Minutes"},"escalation_event_types":{"items":{"type":"string"},"type":"array","title":"Escalation Event Types"},"escalation_step_channels":{"items":{"type":"string"},"type":"array","title":"Escalation Step Channels"},"escalation_step_capable_channels":{"items":{"type":"string"},"type":"array","title":"Escalation Step Capable Channels"},"block_reasons":{"items":{"type":"string"},"type":"array","title":"Block Reasons"}},"type":"object","required":["attributes","derived","derived_values","event_types","previewable_event_types","dispatched_event_types","send_time_attributes","presence_only_attributes","follow_up_attributes","event_type_labels","outputs","channels","authorable_channels","default_channels","recipient_kinds","sms_incapable_recipient_kinds","call_incapable_recipient_kinds","call_incapable_rotation_sources","timings","escalation_delay_presets","max_escalation_delay_minutes","escalation_event_types","escalation_step_channels","escalation_step_capable_channels","block_reasons"],"title":"RuleVocabularyResponse","description":"Everything an authoring client needs to offer a rule, derived rather than listed.\n\n``attributes`` and ``derived`` come straight out of the library: the registry builds its\ncatalog from the Pydantic models, so labels, enum members and the operators each type\naccepts all follow from the declaration. A new attribute appears here the moment it is\ndeclared, with no change to this module and no release on either side."},"RunAgentPrimeBody":{"properties":{"engagement_ids":{"items":{"type":"string"},"type":"array","title":"Engagement Ids"},"user_prompt":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"User Prompt"},"override_agent_paused":{"type":"boolean","title":"Override Agent Paused","default":false}},"type":"object","required":["engagement_ids"],"title":"RunAgentPrimeBody"},"RunAgentPrimeResponse":{"properties":{"message":{"type":"string","title":"Message"},"count":{"type":"integer","title":"Count"}},"type":"object","required":["message","count"],"title":"RunAgentPrimeResponse"},"RunProvenanceResponse":{"properties":{"run_id":{"type":"string","title":"Run Id"},"checkpoint_id":{"type":"string","title":"Checkpoint Id"},"checkpoint_key":{"type":"string","title":"Checkpoint Key"},"rule_id":{"type":"string","title":"Rule Id"},"rule_version":{"type":"integer","title":"Rule Version"}},"additionalProperties":false,"type":"object","required":["run_id","checkpoint_id","checkpoint_key","rule_id","rule_version"],"title":"RunProvenanceResponse"},"SaveCampaignTargetingBody":{"properties":{"rules":{"items":{"additionalProperties":true,"type":"object"},"type":"array","title":"Rules"}},"type":"object","required":["rules"],"title":"SaveCampaignTargetingBody","description":"Full replacement rule set in the rule-builder's wire shape.\n\nEach entry is a rule group as produced by the frontend serializer\n(``source``, ``mode``, ``match``, ``filters``, optional ``groups`` /\n``groups_match``) — the same shape ``targeting-preview`` accepts, so\nwhat the user previewed is exactly what gets persisted."},"ScenarioCustomer":{"properties":{"name":{"type":"string","title":"Name"},"meta":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Meta"}},"type":"object","required":["name"],"title":"ScenarioCustomer"},"ScenarioRequest":{"properties":{"organization_id":{"type":"string","title":"Organization Id"},"agent_id":{"type":"string","title":"Agent Id"},"scenario":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Scenario"},"max_turns":{"type":"integer","title":"Max Turns","default":8},"campaign_id":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Campaign Id"},"targeting_rules":{"anyOf":[{"items":{"additionalProperties":true,"type":"object"},"type":"array"},{"type":"null"}],"title":"Targeting Rules"},"contact_id":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Contact Id"},"model":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Model"},"variables":{"anyOf":[{"additionalProperties":true,"type":"object"},{"type":"null"}],"title":"Variables"},"include_engagement_history":{"type":"boolean","title":"Include Engagement History","default":true},"per_turn_timeout_seconds":{"type":"number","title":"Per Turn Timeout Seconds","default":90.0},"poll_interval_seconds":{"type":"number","title":"Poll Interval Seconds","default":10.0},"lead_intake":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Lead Intake"},"lead_source":{"type":"string","title":"Lead Source","default":"web_form"},"synthetic_lead":{"type":"boolean","title":"Synthetic Lead","default":false},"lead_name":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Lead Name"},"interactive":{"type":"boolean","title":"Interactive","default":false},"variant_id":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Variant Id"},"opener":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Opener"}},"type":"object","required":["organization_id","agent_id"],"title":"ScenarioRequest"},"ScenarioStartResponse":{"properties":{"engagement_id":{"type":"string","title":"Engagement Id"},"status":{"type":"string","title":"Status"},"turns_total":{"type":"integer","title":"Turns Total"}},"type":"object","required":["engagement_id","status","turns_total"],"title":"ScenarioStartResponse"},"ScenarioStatusResponse":{"properties":{"engagement_id":{"type":"string","title":"Engagement Id"},"status":{"type":"string","title":"Status"},"turns_total":{"type":"integer","title":"Turns Total"},"turns_sent":{"type":"integer","title":"Turns Sent"},"outcome":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Outcome"},"reason":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Reason"},"error":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Error"},"customer":{"anyOf":[{"$ref":"#/components/schemas/ScenarioCustomer"},{"type":"null"}]},"interactive":{"type":"boolean","title":"Interactive","default":false}},"type":"object","required":["engagement_id","status","turns_total","turns_sent"],"title":"ScenarioStatusResponse"},"ScenarioToolCall":{"properties":{"tool":{"type":"string","title":"Tool"},"input":{"type":"string","title":"Input"},"output":{"type":"string","title":"Output"},"success":{"anyOf":[{"type":"boolean"},{"type":"null"}],"title":"Success"}},"type":"object","required":["tool","input","output"],"title":"ScenarioToolCall"},"ScenarioTranscriptLine":{"properties":{"role":{"type":"string","title":"Role"},"content":{"type":"string","title":"Content","default":""},"tool_call":{"anyOf":[{"$ref":"#/components/schemas/ScenarioToolCall"},{"type":"null"}]}},"type":"object","required":["role"],"title":"ScenarioTranscriptLine"},"ScheduledHookFireResponse":{"properties":{"trigger_id":{"type":"string","title":"Trigger Id"},"fired":{"type":"boolean","title":"Fired"}},"type":"object","required":["trigger_id","fired"],"title":"ScheduledHookFireResponse"},"ScheduledHookPublic":{"properties":{"id":{"type":"string","title":"Id"},"hook_config_id":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Hook Config Id"},"hook_name":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Hook Name"},"trigger_type":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Trigger Type"},"fire_at":{"type":"string","format":"date-time","title":"Fire At"},"source":{"type":"string","title":"Source"}},"type":"object","required":["id","fire_at","source"],"title":"ScheduledHookPublic"},"SearchSnippet":{"properties":{"text":{"type":"string","title":"Text"},"field":{"type":"string","enum":["customer_name","phone_digits","emails","address","message_text"],"title":"Field"},"ranges":{"items":{"prefixItems":[{"type":"integer"},{"type":"integer"}],"type":"array","maxItems":2,"minItems":2},"type":"array","title":"Ranges"},"event_id":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Event Id"}},"type":"object","required":["text","field"],"title":"SearchSnippet"},"SelectLsaAccountBody":{"properties":{"google_customer_id":{"type":"string","title":"Google Customer Id"},"agent_v2_id":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Agent V2 Id"},"login_customer_id":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Login Customer Id"},"brand_name":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Brand Name"},"reporting_only":{"anyOf":[{"type":"boolean"},{"type":"null"}],"title":"Reporting Only"}},"type":"object","required":["google_customer_id"],"title":"SelectLsaAccountBody"},"SelectableAgentV2Response":{"properties":{"id":{"type":"string","title":"Id"},"name":{"type":"string","title":"Name"},"is_paused":{"type":"boolean","title":"Is Paused"},"voice_enabled":{"type":"boolean","title":"Voice Enabled"},"roster_name":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Roster Name"},"has_channel":{"type":"boolean","title":"Has Channel","default":false}},"type":"object","required":["id","name","is_paused","voice_enabled"],"title":"SelectableAgentV2Response"},"SemanticVADEagerness":{"type":"string","enum":["auto","low","medium","high"],"title":"SemanticVADEagerness"},"SemrushApiRequest":{"properties":{"organization_id":{"type":"string","format":"uuid","title":"Organization Id"},"api":{"type":"string","minLength":1,"title":"Api","description":"Path on api.semrush.com, e.g. /apis/v4/projects/v1/projects"},"api_method":{"type":"string","enum":["GET","POST","PUT","PATCH","DELETE"],"title":"Api Method"},"params":{"additionalProperties":true,"type":"object","title":"Params"},"body":{"anyOf":[{"additionalProperties":true,"type":"object"},{"items":{},"type":"array"},{"type":"null"}],"title":"Body"}},"type":"object","required":["organization_id","api","api_method"],"title":"SemrushApiRequest"},"SemrushConnectRequest":{"properties":{"api_key":{"type":"string","format":"password","title":"Api Key","description":"Semrush v4 API key from My profile > API Keys","writeOnly":true}},"type":"object","required":["api_key"],"title":"SemrushConnectRequest"},"SemrushConnectionResponse":{"properties":{"integration_id":{"type":"string","title":"Integration Id"},"status":{"type":"string","title":"Status"},"projects":{"items":{"$ref":"#/components/schemas/SemrushProjectResponse"},"type":"array","title":"Projects"},"projects_listed":{"type":"boolean","title":"Projects Listed","default":true},"seo_reports":{"type":"boolean","title":"Seo Reports","default":true},"seo_reports_reason":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Seo Reports Reason"},"seo_reports_url":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Seo Reports Url"},"maps_rankings":{"type":"boolean","title":"Maps Rankings","default":false},"map_campaigns":{"anyOf":[{"type":"integer"},{"type":"null"}],"title":"Map Campaigns"},"capabilities":{"anyOf":[{"additionalProperties":{"$ref":"#/components/schemas/IntegrationCapability"},"type":"object"},{"type":"null"}],"title":"Capabilities"}},"type":"object","required":["integration_id","status","projects"],"title":"SemrushConnectionResponse"},"SemrushProjectResponse":{"properties":{"project_id":{"type":"string","title":"Project Id"},"name":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Name"},"domain":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Domain"},"tools":{"items":{"type":"string"},"type":"array","title":"Tools","default":[]}},"type":"object","required":["project_id"],"title":"SemrushProjectResponse"},"SemrushStatusResponse":{"properties":{"connected":{"type":"boolean","title":"Connected"},"needs_reconnect":{"type":"boolean","title":"Needs Reconnect"},"capabilities":{"anyOf":[{"additionalProperties":{"$ref":"#/components/schemas/IntegrationCapability"},"type":"object"},{"type":"null"}],"title":"Capabilities"}},"type":"object","required":["connected","needs_reconnect"],"title":"SemrushStatusResponse"},"SendCustomerMessageRequest":{"properties":{"content":{"type":"string","title":"Content"},"image_id":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Image Id"}},"type":"object","required":["content"],"title":"SendCustomerMessageRequest"},"SendEmailRequest":{"properties":{"from_email":{"type":"string","format":"email","title":"From Email","description":"Sender email address","default":"support@upsmith.com"},"to_email":{"anyOf":[{"type":"string","format":"email"},{"items":{"type":"string","format":"email"},"type":"array","maxItems":10,"minItems":1}],"title":"To Email","description":"Recipient email address, or several on one email"},"cc_email":{"anyOf":[{"type":"string","format":"email"},{"type":"null"}],"title":"Cc Email","description":"CC email address (optional)"},"subject":{"type":"string","title":"Subject","description":"Email subject"},"body":{"type":"string","title":"Body","description":"Email body text (will be converted to HTML)"},"organization_id":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Organization Id","description":"Optional organization ID for short link tracking"}},"type":"object","required":["to_email","subject","body"],"title":"SendEmailRequest"},"SendSMSRequest":{"properties":{"to":{"type":"string","title":"To","description":"Destination phone number (E.164 format)"},"body":{"type":"string","title":"Body","description":"Message body text"},"organization_id":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Organization Id","description":"Optional organization ID for short link tracking"}},"type":"object","required":["to","body"],"title":"SendSMSRequest"},"SendTestRequest":{"properties":{"key":{"type":"string","title":"Key"},"data":{"additionalProperties":true,"type":"object","title":"Data"},"to_email":{"type":"string","title":"To Email"}},"type":"object","required":["key","data","to_email"],"title":"SendTestRequest"},"SendTestResponse":{"properties":{"status":{"type":"string","title":"Status"}},"type":"object","required":["status"],"title":"SendTestResponse"},"SendTestSMSRequest":{"properties":{"organization_id":{"type":"string","title":"Organization Id"},"to_number":{"type":"string","title":"To Number","description":"Recipient phone number in E.164 format, e.g. +14155551234"},"message":{"type":"string","maxLength":1600,"minLength":1,"title":"Message"},"channel_id":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Channel Id","description":"Optional SMS channel id. If omitted, the first active SMS channel for the org is used."}},"type":"object","required":["organization_id","to_number","message"],"title":"SendTestSMSRequest"},"SendTestSMSResponse":{"properties":{"message_sid":{"type":"string","title":"Message Sid"},"from_number":{"type":"string","title":"From Number"},"to_number":{"type":"string","title":"To Number"},"channel_id":{"type":"string","title":"Channel Id"}},"type":"object","required":["message_sid","from_number","to_number","channel_id"],"title":"SendTestSMSResponse"},"ServiceAreaDiagnostic":{"type":"string","enum":["empty_coverage","invalid_policy_source","invalid_zip","missing_policy","stale_zones_snapshot"],"title":"ServiceAreaDiagnostic"},"ServiceAreaManagedRegion":{"properties":{"id":{"type":"string","title":"Id"},"organization_id":{"type":"string","title":"Organization Id"},"name":{"type":"string","title":"Name"},"region_type":{"type":"string","title":"Region Type"},"zip_codes":{"items":{"type":"string"},"type":"array","title":"Zip Codes"},"zone_ids":{"items":{"type":"integer"},"type":"array","title":"Zone Ids"}},"type":"object","required":["id","organization_id","name","region_type","zip_codes","zone_ids"],"title":"ServiceAreaManagedRegion"},"ServiceAreaPolicyChangeSummary":{"properties":{"changed":{"type":"boolean","title":"Changed"},"before":{"$ref":"#/components/schemas/ServiceAreaPolicyScope"},"after":{"$ref":"#/components/schemas/ServiceAreaPolicyScope"},"added_zip_count":{"type":"integer","title":"Added Zip Count"},"removed_zip_count":{"type":"integer","title":"Removed Zip Count"},"added_zip_prefix_count":{"type":"integer","title":"Added Zip Prefix Count"},"removed_zip_prefix_count":{"type":"integer","title":"Removed Zip Prefix Count"}},"type":"object","required":["changed","before","after","added_zip_count","removed_zip_count","added_zip_prefix_count","removed_zip_prefix_count"],"title":"ServiceAreaPolicyChangeSummary"},"ServiceAreaPolicyPublic":{"properties":{"source":{"$ref":"#/components/schemas/ServiceAreaPolicySource"},"selected_region_ids":{"items":{"type":"string"},"type":"array","title":"Selected Region Ids"},"configured":{"type":"boolean","title":"Configured"},"selected_zip_count":{"type":"integer","title":"Selected Zip Count"},"selected_zip_prefix_count":{"type":"integer","title":"Selected Zip Prefix Count"},"service_titan_zip_count":{"type":"integer","title":"Service Titan Zip Count"},"service_titan_zip_prefix_count":{"type":"integer","title":"Service Titan Zip Prefix Count"}},"type":"object","required":["source","selected_region_ids","configured","selected_zip_count","selected_zip_prefix_count","service_titan_zip_count","service_titan_zip_prefix_count"],"title":"ServiceAreaPolicyPublic"},"ServiceAreaPolicyScope":{"properties":{"source":{"$ref":"#/components/schemas/ServiceAreaPolicySource"},"selected_region_ids":{"items":{"type":"string"},"type":"array","title":"Selected Region Ids"},"effective_zip_count":{"type":"integer","title":"Effective Zip Count"},"effective_zip_prefix_count":{"type":"integer","title":"Effective Zip Prefix Count"}},"type":"object","required":["source","selected_region_ids","effective_zip_count","effective_zip_prefix_count"],"title":"ServiceAreaPolicyScope"},"ServiceAreaPolicySource":{"type":"string","enum":["service_titan_zones","selected_regions"],"title":"ServiceAreaPolicySource"},"ServiceAreaPolicyUpdatePublic":{"properties":{"source":{"$ref":"#/components/schemas/ServiceAreaPolicySource"},"selected_region_ids":{"items":{"type":"string"},"type":"array","title":"Selected Region Ids"},"configured":{"type":"boolean","title":"Configured"},"selected_zip_count":{"type":"integer","title":"Selected Zip Count"},"selected_zip_prefix_count":{"type":"integer","title":"Selected Zip Prefix Count"},"service_titan_zip_count":{"type":"integer","title":"Service Titan Zip Count"},"service_titan_zip_prefix_count":{"type":"integer","title":"Service Titan Zip Prefix Count"},"change":{"$ref":"#/components/schemas/ServiceAreaPolicyChangeSummary"}},"type":"object","required":["source","selected_region_ids","configured","selected_zip_count","selected_zip_prefix_count","service_titan_zip_count","service_titan_zip_prefix_count","change"],"title":"ServiceAreaPolicyUpdatePublic"},"ServiceAreaRegionOption":{"properties":{"id":{"type":"string","title":"Id"},"name":{"type":"string","title":"Name"},"region_type":{"type":"string","title":"Region Type"},"effective_zip_count":{"type":"integer","title":"Effective Zip Count"},"effective_zip_prefix_count":{"type":"integer","title":"Effective Zip Prefix Count"},"zip_codes":{"items":{"type":"string"},"type":"array","title":"Zip Codes"},"zone_ids":{"items":{"type":"integer"},"type":"array","title":"Zone Ids"}},"type":"object","required":["id","name","region_type","effective_zip_count","effective_zip_prefix_count","zip_codes","zone_ids"],"title":"ServiceAreaRegionOption"},"ServiceAreaRegionWriteRequest":{"properties":{"name":{"type":"string","minLength":1,"title":"Name"},"region_type":{"type":"string","enum":["zip_code","zone"],"title":"Region Type"},"zip_codes":{"items":{"type":"string"},"type":"array","title":"Zip Codes"},"zone_ids":{"items":{"type":"integer"},"type":"array","title":"Zone Ids"}},"type":"object","required":["name","region_type"],"title":"ServiceAreaRegionWriteRequest"},"ServiceAreaZipPreview":{"properties":{"zip_code":{"type":"string","title":"Zip Code"},"in_service_area":{"type":"boolean","title":"In Service Area"},"source":{"anyOf":[{"$ref":"#/components/schemas/ServiceAreaPolicySource"},{"type":"null"}]},"diagnostics":{"items":{"$ref":"#/components/schemas/ServiceAreaDiagnostic"},"type":"array","title":"Diagnostics"},"zones_last_synced_at":{"anyOf":[{"type":"string","format":"date-time"},{"type":"null"}],"title":"Zones Last Synced At"}},"type":"object","required":["zip_code","in_service_area","source","diagnostics","zones_last_synced_at"],"title":"ServiceAreaZipPreview"},"ServiceAreaZoneOption":{"properties":{"id":{"type":"integer","title":"Id"},"name":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Name"}},"type":"object","required":["id","name"],"title":"ServiceAreaZoneOption"},"ServiceTitanBookingSourceCount":{"properties":{"source":{"type":"string","title":"Source"},"count":{"type":"integer","title":"Count"},"last_seen":{"type":"string","format":"date-time","title":"Last Seen"}},"type":"object","required":["source","count","last_seen"],"title":"ServiceTitanBookingSourceCount","description":"One distinct `booking.source` value observed on an org's ST mirror.\n\nSurfaced to the admin UI so operators selecting form-fill sources can\npick from values that actually appear on this org rather than guessing."},"ServiceTitanBusinessUnitGroupSnapshot":{"properties":{"name":{"type":"string","title":"Name"},"business_unit_ids":{"items":{"type":"integer"},"type":"array","title":"Business Unit Ids"}},"type":"object","required":["name","business_unit_ids"],"title":"ServiceTitanBusinessUnitGroupSnapshot"},"ServiceTitanCallIngestRequest":{"properties":{"organization_id":{"type":"string","title":"Organization Id"},"payload":{"additionalProperties":true,"type":"object","title":"Payload"}},"type":"object","required":["organization_id","payload"],"title":"ServiceTitanCallIngestRequest"},"ServiceTitanCallIngestResponse":{"properties":{"lead_id":{"type":"string","title":"Lead Id"},"created":{"type":"boolean","title":"Created"}},"type":"object","required":["lead_id","created"],"title":"ServiceTitanCallIngestResponse"},"ServiceTitanConnectionPublic":{"properties":{"installation_status":{"$ref":"#/components/schemas/ServiceTitanInstallationStatus"},"credentials_refused":{"type":"boolean","title":"Credentials Refused"},"tenant_id":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Tenant Id"},"environment":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Environment"},"app_update_available":{"type":"boolean","title":"App Update Available","default":false},"reack_url":{"type":"string","title":"Reack Url"},"connection_type":{"type":"string","enum":["tenant","network"],"title":"Connection Type","default":"tenant"},"network_group_status":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Network Group Status"},"network_tenant_status":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Network Tenant Status"},"network_id":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Network Id"},"network_message":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Network Message"}},"type":"object","required":["installation_status","credentials_refused","tenant_id","environment","reack_url"],"title":"ServiceTitanConnectionPublic"},"ServiceTitanEnvironment":{"type":"string","enum":["production","integration"],"title":"ServiceTitanEnvironment","description":"Which ServiceTitan environment a tenant belongs to.\n\nThree spellings are in play: the API and the onboarding draft use these values,\nServiceTitan reports its own capitalised, and the column stores JSON. ``parse``\nis the only place that reconciles them."},"ServiceTitanEnvironmentMismatch":{"properties":{"declared":{"type":"string","title":"Declared"},"reported":{"type":"string","title":"Reported"},"declared_source":{"type":"string","enum":["default","customer"],"title":"Declared Source"}},"type":"object","required":["declared","reported","declared_source"],"title":"ServiceTitanEnvironmentMismatch","description":"What the customer declared versus what ServiceTitan reports, when they disagree."},"ServiceTitanFormIngestRequest":{"properties":{"organization_id":{"type":"string","title":"Organization Id"},"payload":{"additionalProperties":true,"type":"object","title":"Payload"}},"type":"object","required":["organization_id","payload"],"title":"ServiceTitanFormIngestRequest"},"ServiceTitanFormIngestResponse":{"properties":{"lead_id":{"type":"string","title":"Lead Id"},"created":{"type":"boolean","title":"Created"}},"type":"object","required":["lead_id","created"],"title":"ServiceTitanFormIngestResponse"},"ServiceTitanIdsWithoutCredentialsResponse":{"properties":{"service_titan_ids":{"items":{"type":"string"},"type":"array","title":"Service Titan Ids"},"count":{"type":"integer","title":"Count"},"management_api_available":{"type":"boolean","title":"Management Api Available","default":true}},"type":"object","required":["service_titan_ids","count"],"title":"ServiceTitanIdsWithoutCredentialsResponse","description":"Response from ``GET /tenants/without-credentials-initialized``.\n\n``management_api_available`` is ``False`` when the live ServiceTitan\nmanagement-portal call couldn't be made (e.g. its session cookies expired),\nso the caller can render a \"couldn't verify\" state instead of treating the\nempty list as \"no tenants need credentials.\""},"ServiceTitanInstallationStatus":{"type":"string","enum":["DISABLED","INSTALLED","NONE","REQUESTED"],"title":"ServiceTitanInstallationStatus"},"ServiceTitanOnboardingPayload":{"properties":{"tenant_id":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Tenant Id"},"environment":{"anyOf":[{"$ref":"#/components/schemas/ServiceTitanEnvironment"},{"type":"null"}]}},"additionalProperties":false,"type":"object","title":"ServiceTitanOnboardingPayload"},"ServiceTitanPortalCredentialsStatus":{"properties":{"configured":{"type":"boolean","title":"Configured"},"working":{"type":"boolean","title":"Working"},"error":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Error"},"last_validated_at":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Last Validated At"},"outcome":{"anyOf":[{"type":"string","enum":["working","rejected","untested"]},{"type":"null"}],"title":"Outcome"}},"type":"object","required":["configured","working"],"title":"ServiceTitanPortalCredentialsStatus","description":"Response from customer-facing ``POST /tenants/portal-credentials``.\n\nStatus only. The submitted values live in the tenant's secret and are never\nreturned; ``error`` is the test-login outcome the customer can act on."},"ServiceTitanSettings":{"properties":{"enterprise_hub_client_id":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Enterprise Hub Client Id"},"last_precomputed_at":{"anyOf":[{"type":"string","format":"date-time"},{"type":"null"}],"title":"Last Precomputed At","description":"UTC timestamp of the last successful availability precompute run for this tenant"},"zones_last_synced_at":{"anyOf":[{"type":"string","format":"date-time"},{"type":"null"}],"title":"Zones Last Synced At","description":"UTC timestamp of the last successful zones ETL sync completion for this tenant"},"adcap_business_unit_groups":{"anyOf":[{"items":{"$ref":"#/components/schemas/ServiceTitanBusinessUnitGroupSnapshot"},"type":"array"},{"type":"null"}],"title":"Adcap Business Unit Groups","description":"Active ServiceTitan business-unit groups from the dispatch settings portal"},"adcap_business_unit_groups_synced_at":{"anyOf":[{"type":"string","format":"date-time"},{"type":"null"}],"title":"Adcap Business Unit Groups Synced At","description":"UTC timestamp of the last successful business-unit-group portal sync"},"adcap_business_unit_groups_unmapped_ids":{"items":{"type":"integer"},"type":"array","title":"Adcap Business Unit Groups Unmapped Ids","description":"Business-unit ids in the portal snapshot that are absent from the local mirror"},"adcap_business_unit_groups_sync_error":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Adcap Business Unit Groups Sync Error","description":"Error from the latest attempted business-unit-group portal sync"},"declared_environment":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Declared Environment","description":"The ServiceTitan environment the customer declared when connecting the tenant"},"declared_environment_at":{"anyOf":[{"type":"string","format":"date-time"},{"type":"null"}],"title":"Declared Environment At","description":"UTC timestamp of when the declared environment was last set to its current value"},"app_install_requested_at":{"anyOf":[{"type":"string","format":"date-time"},{"type":"null"}],"title":"App Install Requested At","description":"UTC timestamp of when the current tenant's app installation was requested"}},"additionalProperties":true,"type":"object","title":"ServiceTitanSettings"},"ServiceTitanSignupResponse":{"properties":{"success":{"type":"boolean","title":"Success"},"organization_id":{"type":"string","title":"Organization Id"},"user_id":{"type":"string","title":"User Id"},"tenant_id":{"type":"string","title":"Tenant Id"},"connection_sms_status":{"type":"string","enum":["not_requested","sent","queued","failed"],"title":"Connection Sms Status","default":"not_requested"}},"type":"object","required":["success","organization_id","user_id","tenant_id"],"title":"ServiceTitanSignupResponse"},"ServiceTitanTenantPublic":{"properties":{"id":{"type":"string","title":"Id"},"name":{"type":"string","title":"Name"},"organization_id":{"type":"string","title":"Organization Id"},"integration_id":{"type":"string","title":"Integration Id"},"external_id":{"type":"string","title":"External Id"},"properties":{"$ref":"#/components/schemas/ServiceTitanSettings"},"created_at":{"anyOf":[{"type":"string","format":"date-time"},{"type":"null"}],"title":"Created At"},"updated_at":{"anyOf":[{"type":"string","format":"date-time"},{"type":"null"}],"title":"Updated At"}},"type":"object","required":["id","name","organization_id","integration_id","external_id","properties"],"title":"ServiceTitanTenantPublic"},"SessionDetailPublic":{"properties":{"session_id":{"type":"string","title":"Session Id"},"in_progress":{"type":"boolean","title":"In Progress"},"last_event":{"anyOf":[{"$ref":"#/components/schemas/TimelineEventPublic"},{"type":"null"}]},"timeline":{"$ref":"#/components/schemas/Page_TimelineEventPublic_"}},"type":"object","required":["session_id","in_progress","timeline"],"title":"SessionDetailPublic"},"SessionPublic":{"properties":{"session_id":{"type":"string","title":"Session Id"},"in_progress":{"type":"boolean","title":"In Progress"},"last_event":{"anyOf":[{"$ref":"#/components/schemas/TimelineEventPublic"},{"type":"null"}]}},"type":"object","required":["session_id","in_progress"],"title":"SessionPublic"},"SessionUrl":{"properties":{"url":{"type":"string","title":"Url"}},"type":"object","required":["url"],"title":"SessionUrl"},"SetCampaignDisqualifyingTagsRequest":{"properties":{"tag_names":{"items":{"type":"string"},"type":"array","maxItems":500,"title":"Tag Names","description":"Exact set of campaign-level disqualifying tag names; [] clears them all."}},"type":"object","title":"SetCampaignDisqualifyingTagsRequest"},"SetGoogleLsaLoginCustomerIdBody":{"properties":{"organization_id":{"type":"string","title":"Organization Id","description":"organization.id (UUID) that owns the LSA account."},"google_customer_id":{"type":"string","title":"Google Customer Id","description":"The LSA account's Google customer id (dashes optional)."},"login_customer_id":{"type":"string","title":"Login Customer Id","description":"MCC id to set as login_customer_id (dashes optional). Must manage the customer."}},"type":"object","required":["organization_id","google_customer_id","login_customer_id"],"title":"SetGoogleLsaLoginCustomerIdBody"},"SetHiddenBody":{"properties":{"hidden":{"type":"boolean","title":"Hidden"}},"type":"object","required":["hidden"],"title":"SetHiddenBody"},"SetLsaAccountBusinessUnitsBody":{"properties":{"account_id":{"type":"string","format":"uuid","title":"Account Id"},"st_business_unit_ids":{"items":{"type":"integer"},"type":"array","title":"St Business Unit Ids"}},"type":"object","required":["account_id","st_business_unit_ids"],"title":"SetLsaAccountBusinessUnitsBody"},"SetOrganizationAccessBody":{"properties":{"organization_id":{"type":"string","title":"Organization Id"},"enabled":{"type":"boolean","title":"Enabled"},"access_level":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Access Level"},"days":{"anyOf":[{"type":"integer"},{"type":"null"}],"title":"Days"},"max_seats":{"anyOf":[{"type":"integer"},{"type":"null"}],"title":"Max Seats"}},"type":"object","required":["organization_id","enabled"],"title":"SetOrganizationAccessBody"},"SetRegionLinksRequest":{"properties":{"region_ids":{"items":{"type":"string"},"type":"array","title":"Region Ids","default":[]}},"type":"object","title":"SetRegionLinksRequest"},"SetUserPasswordRequest":{"properties":{"password":{"type":"string","maxLength":64,"minLength":8,"title":"Password"},"force_change_on_login":{"type":"boolean","title":"Force Change On Login","default":true}},"type":"object","required":["password"],"title":"SetUserPasswordRequest"},"SetupCallRequestPublic":{"properties":{"id":{"type":"string","title":"Id"},"organization_id":{"type":"string","title":"Organization Id"},"requested_at":{"type":"string","format":"date-time","title":"Requested At"},"status":{"type":"string","const":"requested","title":"Status","default":"requested"}},"type":"object","required":["id","organization_id","requested_at"],"title":"SetupCallRequestPublic"},"SetupDraftStepAutosaveRequest":{"properties":{"payload":{"additionalProperties":true,"type":"object","title":"Payload"},"current_step_id":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Current Step Id"}},"type":"object","title":"SetupDraftStepAutosaveRequest"},"SetupEntryDestination":{"properties":{"organization_name":{"type":"string","title":"Organization Name"},"path":{"type":"string","title":"Path"}},"type":"object","required":["organization_name","path"],"title":"SetupEntryDestination"},"SetupEntryRequest":{"properties":{"organization_name":{"type":"string","maxLength":200,"minLength":1,"title":"Organization Name"},"first_name":{"type":"string","maxLength":100,"minLength":1,"title":"First Name"},"last_name":{"type":"string","maxLength":100,"minLength":1,"title":"Last Name"},"email":{"type":"string","format":"email","title":"Email"},"phone_number":{"anyOf":[{"type":"string","maxLength":40},{"type":"null"}],"title":"Phone Number"}},"additionalProperties":false,"type":"object","required":["organization_name","first_name","last_name","email"],"title":"SetupEntryRequest"},"SetupEntryResponse":{"properties":{"status":{"type":"string","enum":["email_sent","continue"],"title":"Status"},"next_path":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Next Path"}},"type":"object","required":["status"],"title":"SetupEntryResponse"},"ShopChoicePermissions":{"properties":{"add_items":{"type":"boolean","title":"Add Items","default":false},"hide_items":{"type":"boolean","title":"Hide Items","default":false},"relabel_items":{"type":"boolean","title":"Relabel Items","default":false},"add_synonyms":{"type":"boolean","title":"Add Synonyms","default":false}},"additionalProperties":false,"type":"object","title":"ShopChoicePermissions"},"ShortLinkPublic":{"properties":{"id":{"type":"string","title":"Id"},"created_at":{"anyOf":[{"type":"string","format":"date-time"},{"type":"null"}],"title":"Created At"},"updated_at":{"anyOf":[{"type":"string","format":"date-time"},{"type":"null"}],"title":"Updated At"},"deleted_at":{"anyOf":[{"type":"string","format":"date-time"},{"type":"null"}],"title":"Deleted At"},"short_code":{"type":"string","title":"Short Code"},"engagement_id":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Engagement Id"},"metadata_json":{"anyOf":[{"additionalProperties":true,"type":"object"},{"type":"null"}],"title":"Metadata Json"},"organization_id":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Organization Id"},"destination_url":{"type":"string","title":"Destination Url"},"short_url":{"type":"string","title":"Short Url"}},"type":"object","required":["id","short_code","destination_url","short_url"],"title":"ShortLinkPublic"},"SignupPayload":{"properties":{"first_name":{"type":"string","title":"First Name"},"last_name":{"type":"string","title":"Last Name"},"email":{"type":"string","title":"Email"},"phone_number":{"type":"string","title":"Phone Number"},"company":{"type":"string","title":"Company"},"tenant_id":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Tenant Id"}},"type":"object","required":["first_name","last_name","email","phone_number","company","tenant_id"],"title":"SignupPayload"},"SimulationCustomerMessageBody":{"properties":{"content":{"type":"string","title":"Content"},"image_id":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Image Id"}},"type":"object","required":["content"],"title":"SimulationCustomerMessageBody"},"SimulationEventAction":{"properties":{"id":{"type":"string","title":"Id"},"tool_module_id":{"type":"string","title":"Tool Module Id"},"success":{"anyOf":[{"type":"boolean"},{"type":"null"}],"title":"Success"},"type":{"anyOf":[{"$ref":"#/components/schemas/EventActionType"},{"type":"null"}]},"invocation_source":{"anyOf":[{"$ref":"#/components/schemas/InvocationSource"},{"type":"null"}]},"input":{"type":"string","title":"Input"},"output":{"type":"string","title":"Output"},"tool_name":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Tool Name"}},"type":"object","required":["id","tool_module_id","input","output"],"title":"SimulationEventAction"},"SimulationMessage":{"properties":{"id":{"type":"string","title":"Id"},"organization_id":{"type":"string","title":"Organization Id"},"engagement_id":{"type":"string","title":"Engagement Id"},"origin":{"$ref":"#/components/schemas/EventOrigin"},"role":{"$ref":"#/components/schemas/EventRole"},"type":{"$ref":"#/components/schemas/EventType"},"user_id":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"User Id"},"created_at":{"type":"string","format":"date-time","title":"Created At"},"updated_at":{"type":"string","format":"date-time","title":"Updated At"},"deleted_at":{"anyOf":[{"type":"string","format":"date-time"},{"type":"null"}],"title":"Deleted At"},"interaction":{"anyOf":[{"$ref":"#/components/schemas/EventInteractionPublic"},{"type":"null"}]},"action":{"anyOf":[{"$ref":"#/components/schemas/SimulationEventAction"},{"type":"null"}]},"llm_response":{"anyOf":[{"$ref":"#/components/schemas/EventLLMResponsePublic"},{"type":"null"}]}},"type":"object","required":["id","organization_id","engagement_id","origin","role","type","created_at","updated_at"],"title":"SimulationMessage"},"SimulationOwnerResponse":{"properties":{"engagement_id":{"type":"string","title":"Engagement Id"},"organization_id":{"type":"string","title":"Organization Id"}},"type":"object","required":["engagement_id","organization_id"],"title":"SimulationOwnerResponse"},"SimulationResponse":{"properties":{"engagement_id":{"type":"string","title":"Engagement Id"},"organization_id":{"type":"string","title":"Organization Id"},"agent_v2_id":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Agent V2 Id"},"status":{"type":"string","title":"Status"},"is_simulated":{"type":"boolean","title":"Is Simulated"}},"type":"object","required":["engagement_id","organization_id","status","is_simulated"],"title":"SimulationResponse"},"SimulationRunSummary":{"properties":{"id":{"type":"string","title":"Id"},"mode":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Mode"},"status":{"type":"string","title":"Status"},"outcome":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Outcome"},"reason":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Reason"},"agent_v2_id":{"type":"string","title":"Agent V2 Id"},"sim_engagement_id":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Sim Engagement Id"},"created_at":{"type":"string","format":"date-time","title":"Created At"},"finished_at":{"anyOf":[{"type":"string","format":"date-time"},{"type":"null"}],"title":"Finished At"},"error":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Error"}},"type":"object","required":["id","status","agent_v2_id","created_at"],"title":"SimulationRunSummary"},"SimulationScenarioLiveResponse":{"properties":{"engagement_id":{"type":"string","title":"Engagement Id"},"status":{"type":"string","title":"Status"},"turns_total":{"type":"integer","title":"Turns Total"},"turns_sent":{"type":"integer","title":"Turns Sent"},"outcome":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Outcome"},"reason":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Reason"},"error":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Error"},"customer":{"anyOf":[{"$ref":"#/components/schemas/ScenarioCustomer"},{"type":"null"}]},"interactive":{"type":"boolean","title":"Interactive","default":false},"transcript":{"items":{"$ref":"#/components/schemas/EventPublicWithChildren"},"type":"array","title":"Transcript"},"timeline":{"items":{"$ref":"#/components/schemas/SimulationTimelineEvent"},"type":"array","title":"Timeline"},"is_scenario_run":{"type":"boolean","title":"Is Scenario Run","default":true}},"type":"object","required":["engagement_id","status","turns_total","turns_sent","transcript","timeline"],"title":"SimulationScenarioLiveResponse","description":"Scenario status merged with the transcript — the same shape the\n``get_simulation_scenario`` agent tool emits (``EventPublicWithChildren``\ntranscript items, not raw ORM rows)."},"SimulationTimelineEvent":{"properties":{"id":{"type":"string","title":"Id"},"origin":{"$ref":"#/components/schemas/EventOrigin"},"role":{"$ref":"#/components/schemas/EventRole"},"type":{"$ref":"#/components/schemas/EventType"},"user_id":{"type":"null","title":"User Id"},"user_initials":{"type":"null","title":"User Initials"},"created_at":{"type":"string","format":"date-time","title":"Created At"},"action":{"anyOf":[{"$ref":"#/components/schemas/TimelineEventActionPublic"},{"type":"null"}]},"interaction":{"anyOf":[{"$ref":"#/components/schemas/SimulationTimelineInteraction"},{"type":"null"}]},"llm_response":{"anyOf":[{"$ref":"#/components/schemas/SimulationTimelineLLMResponse"},{"type":"null"}]}},"type":"object","required":["id","origin","role","type","created_at"],"title":"SimulationTimelineEvent"},"SimulationTimelineInteraction":{"properties":{"content":{"type":"string","title":"Content"},"translated_content":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Translated Content"},"image":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Image"},"contact_method":{"type":"null","title":"Contact Method"},"status":{"$ref":"#/components/schemas/EventInteractionStatus"},"metadata_json":{"anyOf":[{"additionalProperties":true,"type":"object"},{"type":"null"}],"title":"Metadata Json"}},"type":"object","required":["content","status"],"title":"SimulationTimelineInteraction"},"SimulationTimelineLLMResponse":{"properties":{"phase":{"$ref":"#/components/schemas/LLMPhase"},"model":{"type":"string","title":"Model","default":""},"content":{"type":"string","title":"Content"},"duration_ms":{"type":"null","title":"Duration Ms"}},"type":"object","required":["phase","content"],"title":"SimulationTimelineLLMResponse"},"SizingPreview":{"properties":{"is_sizable":{"type":"boolean","title":"Is Sizable"},"reason":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Reason"},"baseline_rate":{"anyOf":[{"type":"number"},{"type":"null"}],"title":"Baseline Rate"},"relative_mde":{"type":"number","title":"Relative Mde"},"target_exposures":{"anyOf":[{"type":"integer"},{"type":"null"}],"title":"Target Exposures"},"estimated_days":{"anyOf":[{"type":"integer"},{"type":"null"}],"title":"Estimated Days"},"exceeds_cap":{"type":"boolean","title":"Exceeds Cap"}},"type":"object","required":["is_sizable","baseline_rate","relative_mde","target_exposures","estimated_days","exceeds_cap"],"title":"SizingPreview"},"SizingPreviewRequest":{"properties":{"scope":{"$ref":"#/components/schemas/ExperimentTypedReference"},"primary_metric_key":{"type":"string","title":"Primary Metric Key"},"enrollment_percentage":{"anyOf":[{"type":"number","maximum":100.0,"exclusiveMinimum":0.0},{"type":"string","pattern":"^(?!^[-+.]*$)[+-]?0*\\d*\\.?\\d{0,2}0*$"}],"title":"Enrollment Percentage","default":"100"},"relative_mde":{"anyOf":[{"type":"number","maximum":5.0,"exclusiveMinimum":0.0},{"type":"string","pattern":"^(?!^[-+.]*$)[+-]?0*\\d*\\.?\\d{0,4}0*$"}],"title":"Relative Mde","default":"0.20"},"participants":{"items":{"$ref":"#/components/schemas/ExperimentParticipantInput"},"type":"array","title":"Participants"}},"type":"object","required":["scope","primary_metric_key"],"title":"SizingPreviewRequest"},"SmsConsentSource":{"type":"string","enum":["settings_page","sms_reply","sms_start","sms_stop","carrier_opt_out","legacy_backfill"],"title":"SmsConsentSource"},"SmsConsentStatus":{"type":"string","enum":["opted_in","opted_out","grandfathered"],"title":"SmsConsentStatus"},"SmsOptInMethod":{"type":"string","enum":["existing_website_form","upsmith_web_embed"],"title":"SmsOptInMethod"},"SmsOptInPublic":{"properties":{"method":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Method"},"flow_description":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Flow Description"},"additional_consent_copy":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Additional Consent Copy"},"consent_language":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Consent Language"},"required_disclosure":{"type":"string","title":"Required Disclosure"},"evidence_urls":{"items":{"type":"string"},"type":"array","title":"Evidence Urls","default":[]},"message_frequency":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Message Frequency"},"help_message":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Help Message"},"stop_message":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Stop Message"},"terms_url":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Terms Url"},"privacy_url":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Privacy Url"},"ready_for_submission":{"type":"boolean","title":"Ready For Submission"},"blockers":{"items":{"type":"string"},"type":"array","title":"Blockers","default":[]}},"type":"object","required":["required_disclosure","ready_for_submission"],"title":"SmsOptInPublic","description":"The opt-in surface of the compliance record, for the organization's own admins.\n\nSeparate from ``MessagingComplianceConfigPublic``, which withholds the evidence\nURLs from staff reads; the customer who supplied them may see them back."},"SmsOptInRequest":{"properties":{"method":{"$ref":"#/components/schemas/SmsOptInMethod"},"flow_description":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Flow Description"},"additional_consent_copy":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Additional Consent Copy"},"evidence_urls":{"items":{"type":"string"},"type":"array","title":"Evidence Urls","default":[]},"message_frequency":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Message Frequency"},"help_message":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Help Message"},"stop_message":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Stop Message"},"terms_url":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Terms Url"},"privacy_url":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Privacy Url"}},"type":"object","required":["method"],"title":"SmsOptInRequest"},"SocialPlatform":{"type":"string","enum":["meta_messenger","google_lsa","instagram","yelp","thumbtack"],"title":"SocialPlatform"},"StartCallTagBackfillRequest":{"properties":{"definition_ids":{"items":{"type":"string"},"type":"array","maxItems":10,"minItems":1,"title":"Definition Ids"},"lookback_days":{"type":"integer","enum":[1,3,7,14,30,60,90],"title":"Lookback Days","default":14},"selection_filters":{"items":{"$ref":"#/components/schemas/CallTagBackfillSelectionFilter"},"type":"array","title":"Selection Filters"},"preview_fingerprint":{"type":"string","maxLength":256,"minLength":1,"title":"Preview Fingerprint"},"idempotency_key":{"type":"string","maxLength":255,"minLength":1,"title":"Idempotency Key"}},"additionalProperties":false,"type":"object","required":["definition_ids","preview_fingerprint","idempotency_key"],"title":"StartCallTagBackfillRequest"},"StopRequestOrigin":{"type":"string","enum":["customer","office","carrier","service_titan","upsmith"],"title":"StopRequestOrigin","description":"Where the stop came from, independent of why.\n\n``service_titan`` means we read it out of the shop's own records rather than\nanyone asking us — the row still stands on its own once written."},"StopRequestPublic":{"properties":{"id":{"type":"string","title":"Id"},"scope":{"$ref":"#/components/schemas/StopScope"},"scope_label":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Scope Label"},"reason":{"$ref":"#/components/schemas/StopRequestReason"},"origin":{"$ref":"#/components/schemas/StopRequestOrigin"},"customer_statement":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Customer Statement"},"requested_by_name":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Requested By Name"},"created_at":{"type":"string","format":"date-time","title":"Created At"},"expires_at":{"anyOf":[{"type":"string","format":"date-time"},{"type":"null"}],"title":"Expires At"},"revocable":{"type":"boolean","title":"Revocable"},"reached_service_titan":{"type":"boolean","title":"Reached Service Titan"}},"type":"object","required":["id","scope","scope_label","reason","origin","customer_statement","requested_by_name","created_at","expires_at","revocable","reached_service_titan"],"title":"StopRequestPublic"},"StopRequestReason":{"type":"string","enum":["lead_declined","lead_already_resolved","customer_opt_out","canceled_appointment_already_resolved","office_toggle","carrier_opt_out","contact_deceased","customer_moved","not_a_fit","wrong_number","service_titan_customer_note","service_titan_location_note","service_titan_job_note","service_titan_contact_memo","service_titan_job_reminders_off","service_titan_marketing_updates_off","unknown"],"title":"StopRequestReason","description":"Why outreach stopped.\n\nOne vocabulary across every scope. The per-table reason enums this replaced\ndiverged mostly because they lived in different tables — a campaign opt-out\nand a customer-scope opt-out are one reason at two scopes, so ``scope``\ncarries what their values encoded.\n\nUNKNOWN covers rows predating the audit columns. It is unclassified, not\nreversible: a bulk lift must not clear a mark it cannot explain."},"StopScope":{"type":"string","enum":["customer","contact_method","campaign","maintenance","estimate","membership","job","lead","canceled_appointment","marketing"],"title":"StopScope","description":"What the customer asked us to stop.\n\nStored as a plain string column (not a DB enum): crm is zero-ETL replicated\nto Redshift, which can't represent a native Postgres enum."},"StripeAccountManagementResponse":{"properties":{"url":{"type":"string","title":"Url"}},"type":"object","required":["url"],"title":"StripeAccountManagementResponse"},"StripeConnectResponse":{"properties":{"onboarding_url":{"type":"string","title":"Onboarding Url"}},"type":"object","required":["onboarding_url"],"title":"StripeConnectResponse"},"StripeConnectedAccountStatus":{"type":"string","enum":["not_started","onboarding","pending_verification","ready","action_required","disabled"],"title":"StripeConnectedAccountStatus"},"StripeConnectionStatusResponse":{"properties":{"connected":{"type":"boolean","title":"Connected"},"payment_ready":{"type":"boolean","title":"Payment Ready","default":false},"status":{"$ref":"#/components/schemas/StripeConnectedAccountStatus"},"stripe_account_id":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Stripe Account Id"},"charges_enabled":{"type":"boolean","title":"Charges Enabled","default":false},"payouts_enabled":{"type":"boolean","title":"Payouts Enabled","default":false},"details_submitted":{"type":"boolean","title":"Details Submitted","default":false},"requirements_currently_due":{"items":{"type":"string"},"type":"array","title":"Requirements Currently Due"},"requirements_eventually_due":{"items":{"type":"string"},"type":"array","title":"Requirements Eventually Due"},"requirements_past_due":{"items":{"type":"string"},"type":"array","title":"Requirements Past Due"},"disabled_reason":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Disabled Reason"}},"type":"object","required":["connected","status"],"title":"StripeConnectionStatusResponse"},"StripeDisconnectResponse":{"properties":{"success":{"type":"boolean","title":"Success"}},"type":"object","required":["success"],"title":"StripeDisconnectResponse"},"StripePrice":{"properties":{"id":{"type":"string","title":"Id"},"unit_amount":{"anyOf":[{"type":"integer"},{"type":"null"}],"title":"Unit Amount"},"currency":{"type":"string","title":"Currency"},"type":{"type":"string","title":"Type"},"nickname":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Nickname"},"recurring_interval":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Recurring Interval"},"recurring_interval_count":{"anyOf":[{"type":"integer"},{"type":"null"}],"title":"Recurring Interval Count"},"tiers":{"anyOf":[{"items":{"$ref":"#/components/schemas/StripePriceTier"},"type":"array"},{"type":"null"}],"title":"Tiers"}},"type":"object","required":["id","currency","type"],"title":"StripePrice"},"StripePriceTier":{"properties":{"up_to":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Up To"},"unit_amount":{"anyOf":[{"type":"integer"},{"type":"null"}],"title":"Unit Amount"},"flat_amount":{"anyOf":[{"type":"integer"},{"type":"null"}],"title":"Flat Amount"}},"type":"object","title":"StripePriceTier"},"StuckStateResponse":{"properties":{"is_stuck":{"type":"boolean","title":"Is Stuck"},"orphan":{"anyOf":[{"$ref":"#/components/schemas/OrphanWriteAhead"},{"type":"null"}]}},"type":"object","required":["is_stuck"],"title":"StuckStateResponse"},"SubscriptionPublic":{"properties":{"status":{"anyOf":[{"$ref":"#/components/schemas/SubscriptionStatus"},{"type":"null"}]},"current_period_end":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Current Period End"},"max_seats":{"anyOf":[{"type":"integer"},{"type":"null"}],"title":"Max Seats"},"used_seats":{"type":"integer","title":"Used Seats","default":0},"can_add_members":{"type":"boolean","title":"Can Add Members","readOnly":true},"seats_remaining":{"anyOf":[{"type":"integer"},{"type":"null"}],"title":"Seats Remaining","readOnly":true}},"type":"object","required":["can_add_members","seats_remaining"],"title":"SubscriptionPublic"},"SubscriptionStatus":{"type":"string","enum":["active","trialing","past_due","canceled","incomplete"],"title":"SubscriptionStatus","description":"Stripe subscription status mirror."},"SuccessMessage":{"properties":{"message":{"type":"string","title":"Message"}},"type":"object","required":["message"],"title":"SuccessMessage"},"SuccessResponse":{"properties":{"success":{"type":"boolean","title":"Success"}},"type":"object","required":["success"],"title":"SuccessResponse"},"SupportReason":{"type":"string","enum":["emergency_request","urgent_request","contact_is_angry_or_hostile","contact_other_person_request","technical_issue","contact_is_deceased","wrong_number","appointment_not_booked","contact_no_response","sales_or_billing_follow_up","membership_cancellation","estimate_acceptance","no_availability","cannot_serve_needs_review","scheduling_assistance_needed","other","lead_no_response","do_not_contact_inbound","ambiguous_st_customer_match"],"title":"SupportReason"},"SupportedMetric":{"properties":{"key":{"type":"string","title":"Key"},"label":{"type":"string","title":"Label"},"description":{"type":"string","title":"Description"},"kind":{"type":"string","title":"Kind"},"source":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Source"},"comparisons":{"items":{"$ref":"#/components/schemas/MetricComparison"},"type":"array","title":"Comparisons"},"status":{"type":"string","enum":["passing","failing","unknown"],"title":"Status","default":"unknown"}},"type":"object","required":["key","label","description","kind"],"title":"SupportedMetric"},"SupportedMetricsResponse":{"properties":{"metrics":{"items":{"$ref":"#/components/schemas/SupportedMetric"},"type":"array","title":"Metrics"},"verification":{"anyOf":[{"$ref":"#/components/schemas/VerificationInfo"},{"type":"null"}]}},"type":"object","title":"SupportedMetricsResponse"},"SyncPendingLsaLeadsBody":{"properties":{"account_id":{"type":"string","title":"Account Id"}},"type":"object","required":["account_id"],"title":"SyncPendingLsaLeadsBody"},"SystemClassification":{"properties":{"system_id":{"type":"string","minLength":1,"pattern":"\\S","title":"System Id"},"st_equipment_ids":{"items":{"type":"integer","exclusiveMinimum":0.0},"type":"array","title":"St Equipment Ids"},"age":{"$ref":"#/components/schemas/ClassifiedValue_AgeRange_"}},"additionalProperties":false,"type":"object","required":["system_id","st_equipment_ids","age"],"title":"SystemClassification"},"SystemPromptComponentReference":{"properties":{"prompt_name":{"type":"string","title":"Prompt Name"},"prompt_version":{"type":"string","title":"Prompt Version"},"parameters":{"additionalProperties":{"$ref":"#/components/schemas/JsonValue"},"type":"object","title":"Parameters"}},"additionalProperties":false,"type":"object","required":["prompt_name","prompt_version"],"title":"SystemPromptComponentReference"},"TagEvaluationState":{"type":"string","enum":["pending","submitted","completed","failed"],"title":"TagEvaluationState"},"TagEvidencePublic":{"properties":{"id":{"type":"string","title":"Id"},"segment_id":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Segment Id"},"speaker_label":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Speaker Label"},"start_seconds":{"anyOf":[{"type":"number"},{"type":"null"}],"title":"Start Seconds"},"end_seconds":{"anyOf":[{"type":"number"},{"type":"null"}],"title":"End Seconds"},"excerpt":{"type":"string","title":"Excerpt"}},"type":"object","required":["id","excerpt"],"title":"TagEvidencePublic"},"TagResultDefinitionRevisionPublic":{"properties":{"id":{"type":"string","title":"Id"},"revision_number":{"type":"integer","title":"Revision Number"},"key":{"type":"string","title":"Key"},"label":{"type":"string","title":"Label"},"description":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Description"},"value_type":{"$ref":"#/components/schemas/ValueType"},"validation_schema":{"anyOf":[{"additionalProperties":true,"type":"object"},{"type":"null"}],"title":"Validation Schema"},"success_values":{"anyOf":[{"items":{},"type":"array"},{"type":"null"}],"title":"Success Values"},"optional":{"type":"boolean","title":"Optional"},"sort_order":{"type":"integer","title":"Sort Order"},"system_contract_version":{"anyOf":[{"type":"integer"},{"type":"null"}],"title":"System Contract Version"},"system_input_policy":{"anyOf":[{"additionalProperties":true,"type":"object"},{"type":"null"}],"title":"System Input Policy"}},"type":"object","required":["id","revision_number","key","label","value_type","optional","sort_order"],"title":"TagResultDefinitionRevisionPublic"},"TagResultPublic":{"properties":{"id":{"type":"string","title":"Id"},"subject_type":{"$ref":"#/components/schemas/TagSubjectType"},"subject_id":{"type":"string","title":"Subject Id"},"tag_definition_id":{"type":"string","title":"Tag Definition Id"},"tag_definition_revision":{"anyOf":[{"$ref":"#/components/schemas/TagResultDefinitionRevisionPublic"},{"type":"null"}]},"tag_evaluation_run_id":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Tag Evaluation Run Id"},"model_value":{"anyOf":[{},{"type":"null"}],"title":"Model Value"},"user_override_value":{"anyOf":[{},{"type":"null"}],"title":"User Override Value"},"effective_value":{"anyOf":[{},{"type":"null"}],"title":"Effective Value"},"override_tag_definition_revision_id":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Override Tag Definition Revision Id"},"override_tag_evaluation_run_id":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Override Tag Evaluation Run Id"},"override_provenance_state":{"$ref":"#/components/schemas/OverrideProvenanceState","default":"not_overridden"},"override_provenance_stale_reasons":{"items":{"$ref":"#/components/schemas/OverrideProvenanceStaleReason"},"type":"array","title":"Override Provenance Stale Reasons"},"override_reason":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Override Reason"},"reasoning":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Reasoning"},"tagged_by":{"$ref":"#/components/schemas/TaggedBy"},"tagged_at":{"anyOf":[{"type":"string","format":"date-time"},{"type":"null"}],"title":"Tagged At"},"overridden_by_user_id":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Overridden By User Id"},"overridden_at":{"anyOf":[{"type":"string","format":"date-time"},{"type":"null"}],"title":"Overridden At"},"evidence":{"items":{"$ref":"#/components/schemas/TagEvidencePublic"},"type":"array","title":"Evidence"}},"type":"object","required":["id","subject_type","subject_id","tag_definition_id","tagged_by"],"title":"TagResultPublic"},"TagSubjectType":{"type":"string","enum":["engagement","call","both"],"title":"TagSubjectType"},"TaggedBy":{"type":"string","enum":["system","user"],"title":"TaggedBy"},"TargetingLabelsBody":{"properties":{"rules":{"items":{"additionalProperties":true,"type":"object"},"type":"array","title":"Rules"}},"type":"object","required":["rules"],"title":"TargetingLabelsBody","description":"Rules as ``{rule_type_key, params}`` or bare params, in either targeting wire shape."},"TelnyxNumberSyncPublic":{"properties":{"run_id":{"type":"string","title":"Run Id"},"status":{"type":"string","title":"Status"},"finished":{"type":"boolean","title":"Finished"},"succeeded":{"type":"boolean","title":"Succeeded"}},"type":"object","required":["run_id","status","finished","succeeded"],"title":"TelnyxNumberSyncPublic"},"TemplateDescriptor":{"properties":{"key":{"type":"string","title":"Key"},"label":{"type":"string","title":"Label"},"json_schema":{"additionalProperties":true,"type":"object","title":"Json Schema"},"sample_data":{"additionalProperties":true,"type":"object","title":"Sample Data"},"primary_paths":{"items":{"type":"string"},"type":"array","title":"Primary Paths"}},"type":"object","required":["key","label","json_schema","sample_data","primary_paths"],"title":"TemplateDescriptor"},"TemplatesResponse":{"properties":{"templates":{"items":{"$ref":"#/components/schemas/TemplateDescriptor"},"type":"array","title":"Templates"}},"type":"object","required":["templates"],"title":"TemplatesResponse"},"TestBatchOrgResponse":{"properties":{"id":{"type":"string","title":"Id"},"name":{"type":"string","title":"Name"}},"type":"object","required":["id","name"],"title":"TestBatchOrgResponse"},"TestBatchPageResponse":{"properties":{"items":{"items":{"$ref":"#/components/schemas/TestBatchResponse"},"type":"array","title":"Items"},"total":{"anyOf":[{"type":"integer"},{"type":"null"}],"title":"Total"},"cursor":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Cursor"}},"type":"object","required":["items"],"title":"TestBatchPageResponse"},"TestBatchResponse":{"properties":{"id":{"type":"string","title":"Id"},"organization_id":{"type":"string","title":"Organization Id"},"model":{"type":"string","title":"Model"},"variables":{"additionalProperties":true,"type":"object","title":"Variables"},"created_at":{"type":"string","format":"date-time","title":"Created At"},"organization":{"anyOf":[{"$ref":"#/components/schemas/TestBatchOrgResponse"},{"type":"null"}]},"stats":{"$ref":"#/components/schemas/TestBatchStatsResponse"}},"type":"object","required":["id","organization_id","model","variables","created_at","stats"],"title":"TestBatchResponse"},"TestBatchStatsResponse":{"properties":{"total":{"type":"integer","title":"Total"},"completed":{"type":"integer","title":"Completed"},"pending":{"type":"integer","title":"Pending"},"success_percent":{"type":"number","title":"Success Percent"}},"type":"object","required":["total","completed","pending","success_percent"],"title":"TestBatchStatsResponse"},"TextPart":{"properties":{"kind":{"type":"string","const":"text","title":"Kind","default":"text"},"text":{"$ref":"#/components/schemas/LocalizedText"}},"additionalProperties":false,"type":"object","required":["text"],"title":"TextPart"},"ThumbtackBusinessUpdateRequest":{"properties":{"brand_name":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Brand Name"},"label":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Label"}},"type":"object","title":"ThumbtackBusinessUpdateRequest"},"ThumbtackBusinessWebhookResponse":{"properties":{"id":{"type":"string","title":"Id"},"business_id":{"type":"string","title":"Business Id"},"business_name":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Business Name"},"webhook_id":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Webhook Id"},"webhook_url":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Webhook Url"},"webhook_status":{"type":"string","title":"Webhook Status"}},"type":"object","required":["id","business_id","webhook_status"],"title":"ThumbtackBusinessWebhookResponse"},"ThumbtackConnectionInitiateResponse":{"properties":{"redirect_url":{"type":"string","title":"Redirect Url"}},"type":"object","required":["redirect_url"],"title":"ThumbtackConnectionInitiateResponse"},"ThumbtackConnectionWriteAccess":{"properties":{"connection_id":{"type":"string","title":"Connection Id"},"label":{"type":"string","title":"Label"},"reason":{"type":"string","enum":["ok","missing_write_scope","no_credential","unverifiable"],"title":"Reason"}},"type":"object","required":["connection_id","label","reason"],"title":"ThumbtackConnectionWriteAccess","description":"One connection's answer. ``label`` is what its owner calls it: the business names."},"ThumbtackDisconnectResponse":{"properties":{"success":{"type":"boolean","title":"Success"},"message":{"type":"string","title":"Message"}},"type":"object","required":["success","message"],"title":"ThumbtackDisconnectResponse"},"ThumbtackHealthResponse":{"properties":{"status":{"type":"string","enum":["healthy","needs_attention","unknown","not_applicable"],"title":"Status"},"checked_at":{"anyOf":[{"type":"string","format":"date-time"},{"type":"null"}],"title":"Checked At"},"affected_connection_ids":{"items":{"type":"string"},"type":"array","title":"Affected Connection Ids"},"message":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Message"},"fix_hint":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Fix Hint"}},"type":"object","required":["status"],"title":"ThumbtackHealthResponse","description":"Whether this org's Thumbtack replies land inside the negotiation thread."},"ThumbtackPhoneNumberBulkCreateRequest":{"properties":{"numbers":{"items":{"$ref":"#/components/schemas/ThumbtackPhoneNumberBulkItem"},"type":"array","maxItems":100,"title":"Numbers"}},"type":"object","title":"ThumbtackPhoneNumberBulkCreateRequest"},"ThumbtackPhoneNumberBulkItem":{"properties":{"phone_number":{"type":"string","pattern":"^\\+[1-9]\\d{1,14}$","title":"Phone Number"},"label":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Label"}},"type":"object","required":["phone_number"],"title":"ThumbtackPhoneNumberBulkItem"},"ThumbtackPhoneNumberCreateRequest":{"properties":{"phone_number":{"type":"string","pattern":"^\\+[1-9]\\d{1,14}$","title":"Phone Number"},"label":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Label"}},"type":"object","required":["phone_number"],"title":"ThumbtackPhoneNumberCreateRequest"},"ThumbtackPhoneNumberListResponse":{"properties":{"items":{"items":{"$ref":"#/components/schemas/ThumbtackPhoneNumberResponse"},"type":"array","title":"Items"}},"type":"object","required":["items"],"title":"ThumbtackPhoneNumberListResponse"},"ThumbtackPhoneNumberResponse":{"properties":{"id":{"type":"string","title":"Id"},"business_id":{"type":"string","title":"Business Id"},"thumbtack_phone_number_id":{"type":"string","title":"Thumbtack Phone Number Id"},"phone_number":{"type":"string","title":"Phone Number"},"name":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Name"},"thumbtack_is_deleted":{"type":"boolean","title":"Thumbtack Is Deleted","default":false},"created_at":{"anyOf":[{"type":"string","format":"date-time"},{"type":"null"}],"title":"Created At"},"updated_at":{"anyOf":[{"type":"string","format":"date-time"},{"type":"null"}],"title":"Updated At"}},"type":"object","required":["id","business_id","thumbtack_phone_number_id","phone_number"],"title":"ThumbtackPhoneNumberResponse"},"ThumbtackPhoneNumberUpdateRequest":{"properties":{"phone_number":{"anyOf":[{"type":"string","pattern":"^\\+[1-9]\\d{1,14}$"},{"type":"null"}],"title":"Phone Number"},"label":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Label"}},"type":"object","title":"ThumbtackPhoneNumberUpdateRequest"},"ThumbtackWebhookDeregistrationResponse":{"properties":{"success":{"type":"boolean","title":"Success"}},"type":"object","required":["success"],"title":"ThumbtackWebhookDeregistrationResponse"},"ThumbtackWebhookRegistrationResponse":{"properties":{"businesses":{"items":{"$ref":"#/components/schemas/ThumbtackBusinessWebhookResponse"},"type":"array","title":"Businesses"}},"type":"object","required":["businesses"],"title":"ThumbtackWebhookRegistrationResponse"},"ThumbtackWriteAccessProbe":{"properties":{"organization_id":{"type":"string","title":"Organization Id"},"ok":{"type":"boolean","title":"Ok"},"reason":{"type":"string","enum":["ok","no_connections","missing_write_scope","no_credential","unverifiable"],"title":"Reason"},"connections":{"items":{"$ref":"#/components/schemas/ThumbtackConnectionWriteAccess"},"type":"array","title":"Connections"},"checked_at":{"anyOf":[{"type":"string","format":"date-time"},{"type":"null"}],"title":"Checked At"}},"type":"object","required":["organization_id","ok","reason"],"title":"ThumbtackWriteAccessProbe","description":"Can this org reply inside its Thumbtack negotiation threads?\n\n``ok`` is true when every active connection is verified able to reply, and when there\nis nothing to verify: ``no_connections`` is a healthy state, not a finding.\n``unverifiable`` means the grant could not be read, which is unknown rather than broken."},"TieOrganizationBody":{"properties":{"organization_id":{"type":"string","title":"Organization Id"},"billing_account_id":{"type":"string","title":"Billing Account Id"}},"type":"object","required":["organization_id","billing_account_id"],"title":"TieOrganizationBody"},"TimelineEventActionPublic":{"properties":{"id":{"type":"string","title":"Id"},"tool_module_id":{"type":"string","title":"Tool Module Id"},"success":{"anyOf":[{"type":"boolean"},{"type":"null"}],"title":"Success"},"type":{"anyOf":[{"$ref":"#/components/schemas/EventActionType"},{"type":"null"}]},"invocation_source":{"anyOf":[{"$ref":"#/components/schemas/InvocationSource"},{"type":"null"}]},"input":{"type":"string","title":"Input"},"output":{"type":"string","title":"Output"},"tool_module":{"anyOf":[{"$ref":"#/components/schemas/ToolModulePublic"},{"type":"null"}]}},"type":"object","required":["id","tool_module_id","input","output"],"title":"TimelineEventActionPublic"},"TimelineEventInteractionPublic":{"properties":{"id":{"type":"string","title":"Id"},"channel_id":{"type":"string","title":"Channel Id"},"contact_method_id":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Contact Method Id"},"image_id":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Image Id"},"external_id":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"External Id"},"twilio_message_status":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Twilio Message Status"},"twilio_error_code":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Twilio Error Code"},"telnyx_message_status":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Telnyx Message Status"},"telnyx_error_code":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Telnyx Error Code"},"metadata_json":{"anyOf":[{"additionalProperties":true,"type":"object"},{"type":"null"}],"title":"Metadata Json"},"status":{"$ref":"#/components/schemas/EventInteractionStatus"},"content":{"type":"string","title":"Content"},"translated_content":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Translated Content"},"deliver_after":{"anyOf":[{"type":"string","format":"date-time"},{"type":"null"}],"title":"Deliver After"},"image":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Image"},"image_content_type":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Image Content Type"},"contact_method":{"anyOf":[{"$ref":"#/components/schemas/ContactMethodPublic"},{"type":"null"}]}},"type":"object","required":["id","channel_id","status","content"],"title":"TimelineEventInteractionPublic"},"TimelineEventPublic":{"properties":{"id":{"type":"string","title":"Id"},"organization_id":{"type":"string","title":"Organization Id"},"engagement_id":{"type":"string","title":"Engagement Id"},"origin":{"$ref":"#/components/schemas/EventOrigin"},"role":{"$ref":"#/components/schemas/EventRole"},"type":{"$ref":"#/components/schemas/EventType"},"user_id":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"User Id"},"created_at":{"type":"string","format":"date-time","title":"Created At"},"updated_at":{"type":"string","format":"date-time","title":"Updated At"},"deleted_at":{"anyOf":[{"type":"string","format":"date-time"},{"type":"null"}],"title":"Deleted At"},"user_initials":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"User Initials"},"interaction":{"anyOf":[{"$ref":"#/components/schemas/TimelineEventInteractionPublic"},{"type":"null"}]},"action":{"anyOf":[{"$ref":"#/components/schemas/TimelineEventActionPublic"},{"type":"null"}]},"llm_response":{"anyOf":[{"$ref":"#/components/schemas/EventLLMResponsePublic"},{"type":"null"}]}},"type":"object","required":["id","organization_id","engagement_id","origin","role","type","created_at","updated_at"],"title":"TimelineEventPublic"},"TimingQuestionTarget":{"properties":{"kind":{"type":"string","const":"timing_question","title":"Kind","default":"timing_question"},"field":{"type":"string","enum":["day_question","unavailable_times_question"],"title":"Field"}},"additionalProperties":false,"type":"object","required":["field"],"title":"TimingQuestionTarget"},"ToggleAiResponseBody":{"properties":{"is_ai_allowed_to_respond":{"type":"boolean","title":"Is Ai Allowed To Respond"},"user_id":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"User Id"},"reason":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Reason"}},"type":"object","required":["is_ai_allowed_to_respond"],"title":"ToggleAiResponseBody"},"ToggleCampaignPauseRequest":{"properties":{"include_todays_send":{"type":"boolean","title":"Include Todays Send","default":false}},"type":"object","title":"ToggleCampaignPauseRequest"},"ToggleDoNotContactRequest":{"properties":{"do_not_contact":{"type":"boolean","title":"Do Not Contact"},"revoked_reason":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Revoked Reason"},"scopes":{"anyOf":[{"items":{"$ref":"#/components/schemas/StopScope"},"type":"array"},{"type":"null"}],"title":"Scopes"},"origins":{"anyOf":[{"items":{"$ref":"#/components/schemas/StopRequestOrigin"},"type":"array"},{"type":"null"}],"title":"Origins"}},"type":"object","required":["do_not_contact"],"title":"ToggleDoNotContactRequest"},"ToggleDoNotTextRequest":{"properties":{"do_not_text_upsmith":{"type":"boolean","title":"Do Not Text Upsmith"},"source_engagement_id":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Source Engagement Id"}},"type":"object","required":["do_not_text_upsmith"],"title":"ToggleDoNotTextRequest"},"ToggleFeatureRoleRequest":{"properties":{"organization_id":{"type":"string","title":"Organization Id"},"feature_id":{"type":"string","title":"Feature Id"},"role_id":{"type":"string","title":"Role Id"}},"type":"object","required":["organization_id","feature_id","role_id"],"title":"ToggleFeatureRoleRequest"},"ToggleOrganizationRoleRequest":{"properties":{"organization_id":{"type":"string","title":"Organization Id"},"role_id":{"type":"string","title":"Role Id"}},"type":"object","required":["organization_id","role_id"],"title":"ToggleOrganizationRoleRequest"},"ToolModulePublic":{"properties":{"id":{"type":"string","title":"Id"},"created_at":{"anyOf":[{"type":"string","format":"date-time"},{"type":"null"}],"title":"Created At"},"updated_at":{"anyOf":[{"type":"string","format":"date-time"},{"type":"null"}],"title":"Updated At"},"deleted_at":{"anyOf":[{"type":"string","format":"date-time"},{"type":"null"}],"title":"Deleted At"},"title":{"type":"string","title":"Title"},"description":{"type":"string","title":"Description"},"function":{"type":"string","title":"Function"},"disabled_reason":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Disabled Reason"},"read_only":{"type":"boolean","title":"Read Only"}},"type":"object","required":["id","title","description","function","read_only"],"title":"ToolModulePublic"},"TouchAction":{"type":"string","enum":["message","escalate"],"title":"TouchAction"},"TouchIfPast":{"type":"string","enum":["skip","send"],"title":"TouchIfPast","description":"What an appointment-anchored touch does when its moment has already passed by\nthe time the sequence is scheduled — a window that opened before the campaign ran."},"TranscriptSummaryTurn":{"properties":{"role":{"type":"string","title":"Role"},"origin":{"type":"string","title":"Origin"},"content":{"type":"string","title":"Content"},"created_at":{"anyOf":[{"type":"string","format":"date-time"},{"type":"null"}],"title":"Created At"}},"type":"object","required":["role","origin","content"],"title":"TranscriptSummaryTurn","description":"One turn of the excerpt an escalation carries for its notification body.\n\nNOT the conversation record. The excerpt is capped and drops the head of a long\ncall, so it is only ever safe to render as context for a human reading the\nescalation. Anything that needs the actual conversation — analytics, tagging,\nauditing, any logic that branches on what was said — must read the persisted\nengagement events once the write path delivers them, never this."},"TranscriptTurnPublic":{"properties":{"role":{"type":"string","title":"Role"},"text":{"type":"string","title":"Text"},"timestamp":{"type":"string","format":"date-time","title":"Timestamp"},"offset_seconds":{"anyOf":[{"type":"number"},{"type":"null"}],"title":"Offset Seconds"},"duration":{"anyOf":[{"type":"number"},{"type":"null"}],"title":"Duration"},"translated_text":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Translated Text"}},"type":"object","required":["role","text","timestamp"],"title":"TranscriptTurnPublic"},"UnclearIntentOutcomesPublic":{"properties":{"total_calls":{"type":"integer","title":"Total Calls"}},"type":"object","required":["total_calls"],"title":"UnclearIntentOutcomesPublic"},"UnreachableRecipient":{"properties":{"kind":{"$ref":"#/components/schemas/RecipientKind"},"id":{"type":"string","title":"Id"},"reasons":{"items":{"$ref":"#/components/schemas/IneligibilityReason"},"type":"array","title":"Reasons"}},"type":"object","required":["kind","id","reasons"],"title":"UnreachableRecipient","description":"Someone a rule names whom the eligibility check refuses now, and why."},"UnstickResponse":{"properties":{"event_action_id":{"type":"string","title":"Event Action Id"},"synthetic_event_id":{"type":"string","title":"Synthetic Event Id"}},"type":"object","required":["event_action_id","synthetic_event_id"],"title":"UnstickResponse"},"UpdateAgentV2SettingsRequest":{"properties":{"is_paused":{"anyOf":[{"type":"boolean"},{"type":"null"}],"title":"Is Paused"},"voice_enabled":{"anyOf":[{"type":"boolean"},{"type":"null"}],"title":"Voice Enabled"}},"type":"object","title":"UpdateAgentV2SettingsRequest"},"UpdateAnnouncementRequest":{"properties":{"type":{"anyOf":[{"$ref":"#/components/schemas/AnnouncementType"},{"type":"null"}]},"summary":{"anyOf":[{"type":"string","maxLength":280},{"type":"null"}],"title":"Summary"},"full_content":{"anyOf":[{"type":"string","maxLength":5000},{"type":"null"}],"title":"Full Content"},"is_active":{"anyOf":[{"type":"boolean"},{"type":"null"}],"title":"Is Active"},"is_dismissible":{"anyOf":[{"type":"boolean"},{"type":"null"}],"title":"Is Dismissible"},"expires_at":{"anyOf":[{"type":"string","format":"date-time"},{"type":"null"}],"title":"Expires At"}},"type":"object","title":"UpdateAnnouncementRequest"},"UpdateBillingAccountBody":{"properties":{"name":{"type":"string","title":"Name"}},"type":"object","required":["name"],"title":"UpdateBillingAccountBody"},"UpdateCampaignTriggerBody":{"properties":{"event_type":{"anyOf":[{"type":"string","minLength":1},{"type":"null"}],"title":"Event Type"},"enabled":{"anyOf":[{"type":"boolean"},{"type":"null"}],"title":"Enabled"},"send_delay_seconds":{"anyOf":[{"type":"integer","minimum":0.0},{"type":"null"}],"title":"Send Delay Seconds"},"re_entry_cooldown_minutes":{"anyOf":[{"type":"integer","minimum":0.0},{"type":"null"}],"title":"Re Entry Cooldown Minutes"},"delay_origin":{"anyOf":[{"type":"string","enum":["event","qualification"]},{"type":"null"}],"title":"Delay Origin"}},"type":"object","title":"UpdateCampaignTriggerBody"},"UpdateChannelRequest":{"properties":{"phone_number":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Phone Number"},"reference_id":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Reference Id"},"messaging_phone_number_id":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Messaging Phone Number Id"},"title":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Title"},"meta_page_connection_id":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Meta Page Connection Id"}},"type":"object","title":"UpdateChannelRequest"},"UpdateChoiceList":{"properties":{"kind":{"type":"string","const":"list","title":"Kind"},"label":{"type":"string","maxLength":200,"minLength":1,"pattern":"^\\S(?:.*\\S)?$","title":"Label"},"shop_permissions":{"$ref":"#/components/schemas/ShopChoicePermissions"}},"additionalProperties":false,"type":"object","required":["kind","label","shop_permissions"],"title":"UpdateChoiceList"},"UpdateCompanyRequest":{"properties":{"properties":{"additionalProperties":{"type":"string"},"type":"object","minProperties":1,"title":"Properties"}},"type":"object","required":["properties"],"title":"UpdateCompanyRequest"},"UpdateDocumentBody":{"properties":{"title":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Title"},"content":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Content"},"category":{"anyOf":[{"$ref":"#/components/schemas/DocumentCategory"},{"type":"null"}]}},"type":"object","title":"UpdateDocumentBody"},"UpdateEmployeeIdentityRequest":{"properties":{"linear_user_id":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Linear User Id"},"linear_handle":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Linear Handle"},"linear_email":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Linear Email"},"plain_user_id":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Plain User Id"},"plain_email":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Plain Email"},"slack_user_id":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Slack User Id"},"slack_handle":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Slack Handle"},"identity_locked_sources":{"anyOf":[{"items":{"type":"string"},"type":"array"},{"type":"null"}],"title":"Identity Locked Sources"},"lock":{"type":"boolean","title":"Lock","default":true}},"type":"object","title":"UpdateEmployeeIdentityRequest","description":"Who this employee is in Linear, Plain and Slack.\n\nInternal only — deciding which Linear account belongs to a colleague is not something\na customer's admin can reach, so this lives on the admin router.\n\nAn omitted field is left alone; an explicit ``null`` clears the identity. Callers read\nthe difference off ``model_fields_set``. Clearing matters here more than most places:\na person can hold two accounts in the same system, so \"not this one\" is a real answer."},"UpdateEscalationBody":{"properties":{"escalation_group_id":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Escalation Group Id"},"target_index":{"anyOf":[{"type":"integer"},{"type":"null"}],"title":"Target Index"},"position":{"anyOf":[{"type":"number"},{"type":"null"}],"title":"Position"},"assigned_to_user_id":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Assigned To User Id"},"resolved_at":{"anyOf":[{"type":"string","format":"date-time"},{"type":"null"}],"title":"Resolved At"},"archived_at":{"anyOf":[{"type":"string","format":"date-time"},{"type":"null"}],"title":"Archived At"},"note":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Note"},"reason":{"anyOf":[{"$ref":"#/components/schemas/SupportReason"},{"type":"null"}]}},"type":"object","title":"UpdateEscalationBody"},"UpdateEscalationGroupBody":{"properties":{"name":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Name"},"target_index":{"anyOf":[{"type":"integer"},{"type":"null"}],"title":"Target Index"}},"type":"object","title":"UpdateEscalationGroupBody"},"UpdateEventFilterBody":{"properties":{"params":{"anyOf":[{"additionalProperties":true,"type":"object"},{"type":"null"}],"title":"Params"},"enabled":{"anyOf":[{"type":"boolean"},{"type":"null"}],"title":"Enabled"},"sort_order":{"anyOf":[{"type":"integer"},{"type":"null"}],"title":"Sort Order"},"label":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Label"}},"type":"object","title":"UpdateEventFilterBody"},"UpdateGoogleLsaCampaignSettingsBody":{"properties":{"agent_v2_id":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Agent V2 Id"},"is_paused":{"anyOf":[{"type":"boolean"},{"type":"null"}],"title":"Is Paused"},"process_message":{"anyOf":[{"type":"boolean"},{"type":"null"}],"title":"Process Message"},"process_phone_call":{"anyOf":[{"type":"boolean"},{"type":"null"}],"title":"Process Phone Call"},"missed_phone_calls_only":{"anyOf":[{"type":"boolean"},{"type":"null"}],"title":"Missed Phone Calls Only"},"preflight_override_token":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Preflight Override Token"}},"type":"object","title":"UpdateGoogleLsaCampaignSettingsBody"},"UpdateIncidentRequest":{"properties":{"title":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Title"},"description":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Description"},"error_pattern":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Error Pattern"},"engagement_id_sql":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Engagement Id Sql"},"tool_functions":{"anyOf":[{"items":{"type":"string"},"type":"array"},{"type":"null"}],"title":"Tool Functions"},"ended_at":{"anyOf":[{"type":"string","format":"date-time"},{"type":"null"}],"title":"Ended At"},"organization_id":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Organization Id"},"user_prompt":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"User Prompt"},"include_replied":{"anyOf":[{"type":"boolean"},{"type":"null"}],"title":"Include Replied"}},"type":"object","title":"UpdateIncidentRequest"},"UpdateLeadResponderBody":{"properties":{"is_answering":{"type":"boolean","title":"Is Answering"},"preflight_override_token":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Preflight Override Token"}},"type":"object","required":["is_answering"],"title":"UpdateLeadResponderBody"},"UpdateLsaAutoReplyBody":{"properties":{"account_id":{"type":"string","title":"Account Id"},"auto_reply_message":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Auto Reply Message"}},"type":"object","required":["account_id"],"title":"UpdateLsaAutoReplyBody"},"UpdateLsaBrandBody":{"properties":{"account_id":{"type":"string","title":"Account Id"},"brand_name":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Brand Name"}},"type":"object","required":["account_id","brand_name"],"title":"UpdateLsaBrandBody"},"UpdateMemoryRequest":{"properties":{"content":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Content","description":"Updated memory content"},"category":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Category","description":"Updated category label"}},"type":"object","title":"UpdateMemoryRequest"},"UpdateOrganizationLinksRequest":{"properties":{"domains":{"anyOf":[{"items":{"type":"string"},"type":"array"},{"type":"null"}],"title":"Domains"},"ops_owner_user_id":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Ops Owner User Id"},"linear_customer_id":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Linear Customer Id"},"hubspot_company_id":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Hubspot Company Id"},"plain_tenant_id":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Plain Tenant Id"},"plain_company_id":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Plain Company Id"},"slack_user_group_id":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Slack User Group Id"},"sync_locked_sources":{"anyOf":[{"items":{"type":"string"},"type":"array"},{"type":"null"}],"title":"Sync Locked Sources"},"lock":{"type":"boolean","title":"Lock","default":true}},"type":"object","title":"UpdateOrganizationLinksRequest","description":"Which record in each external system this organization is.\n\nKept off ``UpdateOrganizationRequest`` on purpose. That one is reachable by a customer's\nown admin; deciding which Linear customer or HubSpot company an organization *is* is an\ninternal decision, and propagation writes outward from it.\n\nAn omitted field is left alone; an explicit ``null`` clears the link — callers read the\ndifference off ``model_fields_set``, so clearing a wrong link is expressible. That is\nthe common correction, not an edge case."},"UpdateOrganizationRequest":{"properties":{"name":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Name"},"alias":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Alias"},"image":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Image"},"parent_organization_id":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Parent Organization Id"},"timezone":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Timezone"},"is_active_agent_platform":{"anyOf":[{"type":"boolean"},{"type":"null"}],"title":"Is Active Agent Platform"},"is_active_ask_jenny":{"anyOf":[{"type":"boolean"},{"type":"null"}],"title":"Is Active Ask Jenny"},"lenny_st_form_intake_enabled":{"anyOf":[{"type":"boolean"},{"type":"null"}],"title":"Lenny St Form Intake Enabled"},"lenny_st_form_intake_sources":{"anyOf":[{"items":{"type":"string"},"type":"array"},{"type":"null"}],"title":"Lenny St Form Intake Sources"},"parent_link_reason":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Parent Link Reason"}},"type":"object","title":"UpdateOrganizationRequest"},"UpdateServiceAreaPolicyRequest":{"properties":{"source":{"$ref":"#/components/schemas/ServiceAreaPolicySource"},"selected_region_ids":{"items":{"type":"string"},"type":"array","title":"Selected Region Ids"}},"type":"object","required":["source"],"title":"UpdateServiceAreaPolicyRequest"},"UpdateSmsConsentRequest":{"properties":{"opted_in":{"type":"boolean","title":"Opted In"}},"type":"object","required":["opted_in"],"title":"UpdateSmsConsentRequest"},"UpdateTenantPropertiesRequest":{"properties":{"job_cancel_reason_id":{"anyOf":[{"type":"integer"},{"type":"null"}],"title":"Job Cancel Reason Id"},"availability_provider":{"anyOf":[{"$ref":"#/components/schemas/AvailabilityProviderType"},{"type":"null"}]},"spread_over_days":{"anyOf":[{"type":"boolean"},{"type":"null"}],"title":"Spread Over Days"},"book_appointments":{"anyOf":[{"type":"boolean"},{"type":"null"}],"title":"Book Appointments"},"limit":{"anyOf":[{"type":"integer","minimum":1.0},{"type":"null"}],"title":"Limit"},"is_prefers_full_day_availability":{"anyOf":[{"type":"boolean"},{"type":"null"}],"title":"Is Prefers Full Day Availability"},"skill_based_availability":{"anyOf":[{"type":"boolean"},{"type":"null"}],"title":"Skill Based Availability"}},"type":"object","title":"UpdateTenantPropertiesRequest"},"UpdateUserNameRequest":{"properties":{"first_name":{"type":"string","title":"First Name"},"last_name":{"type":"string","title":"Last Name"}},"type":"object","required":["first_name","last_name"],"title":"UpdateUserNameRequest"},"UpdateUserPhoneNumberRequest":{"properties":{"phone_number":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Phone Number"}},"type":"object","title":"UpdateUserPhoneNumberRequest"},"UpdateUserRequest":{"properties":{"image":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Image"},"first_name":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"First Name"},"last_name":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Last Name"},"email":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Email"},"phone_number":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Phone Number"}},"type":"object","title":"UpdateUserRequest"},"UrgentBookingReason":{"type":"string","enum":["after_hours","overbooked"],"title":"UrgentBookingReason","description":"Why a booking warrants an immediate alert alongside the normal one."},"User":{"additionalProperties":true,"type":"object"},"UserBasicPublic":{"properties":{"user_id":{"type":"string","title":"User Id"},"first_name":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"First Name"},"last_name":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Last Name"},"email":{"type":"string","title":"Email"},"image":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Image"}},"type":"object","required":["user_id","email"],"title":"UserBasicPublic"},"UserBootstrap":{"properties":{"sms_consent_status":{"anyOf":[{"$ref":"#/components/schemas/SmsConsentStatus"},{"type":"null"}]},"sms_consent_phone_number":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Sms Consent Phone Number"},"sms_consent_updated_at":{"anyOf":[{"type":"string","format":"date-time"},{"type":"null"}],"title":"Sms Consent Updated At"},"sms_consent_source":{"anyOf":[{"$ref":"#/components/schemas/SmsConsentSource"},{"type":"null"}]},"id":{"type":"string","title":"Id"},"first_name":{"type":"string","title":"First Name"},"last_name":{"type":"string","title":"Last Name"},"email":{"type":"string","title":"Email"},"phone_number":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Phone Number"},"image":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Image"},"is_staff":{"type":"boolean","title":"Is Staff","default":false},"organizations":{"items":{"$ref":"#/components/schemas/OrganizationBootstrap"},"type":"array","title":"Organizations","default":[]}},"type":"object","required":["id","first_name","last_name","email"],"title":"UserBootstrap"},"UserListItem":{"properties":{"id":{"type":"string","title":"Id"},"first_name":{"type":"string","title":"First Name"},"last_name":{"type":"string","title":"Last Name"},"email":{"type":"string","title":"Email"},"phone_number":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Phone Number"},"is_staff":{"type":"boolean","title":"Is Staff","default":false},"image":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Image"},"organization_role":{"anyOf":[{"$ref":"#/components/schemas/OrganizationRoleRead"},{"type":"null"}]},"features":{"items":{"$ref":"#/components/schemas/FeatureRead"},"type":"array","title":"Features","default":[]},"sms_consented":{"type":"boolean","title":"Sms Consented","default":false},"sms_consent_opted_out":{"type":"boolean","title":"Sms Consent Opted Out","default":false}},"type":"object","required":["id","first_name","last_name","email"],"title":"UserListItem"},"UserPage":{"properties":{"items":{"items":{"$ref":"#/components/schemas/UserListItem"},"type":"array","title":"Items"},"total":{"type":"integer","title":"Total"},"cursor":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Cursor"}},"type":"object","required":["items","total"],"title":"UserPage"},"UserPreferenceBulkUpsertRequest":{"properties":{"preferences":{"additionalProperties":{"anyOf":[{"type":"string"},{"type":"integer"},{"type":"number"},{"type":"boolean"},{"items":{"type":"string"},"type":"array"},{"items":{"type":"integer"},"type":"array"},{"additionalProperties":true,"type":"object"},{"items":{},"type":"array"},{"type":"null"}]},"type":"object","title":"Preferences"}},"type":"object","required":["preferences"],"title":"UserPreferenceBulkUpsertRequest"},"UserPreferenceDefinitionCreate":{"properties":{"key":{"type":"string","title":"Key"},"label":{"type":"string","title":"Label"},"description":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Description"},"category":{"$ref":"#/components/schemas/PreferenceCategory"},"value_type":{"$ref":"#/components/schemas/ValueType"},"default_value":{"anyOf":[{"type":"string"},{"type":"integer"},{"type":"number"},{"type":"boolean"},{"items":{"type":"string"},"type":"array"},{"items":{"type":"integer"},"type":"array"},{"additionalProperties":true,"type":"object"},{"items":{},"type":"array"},{"type":"null"}],"title":"Default Value"},"validation_schema":{"anyOf":[{"additionalProperties":true,"type":"object"},{"type":"null"}],"title":"Validation Schema"},"is_org_scoped":{"type":"boolean","title":"Is Org Scoped","default":false},"sort_order":{"type":"integer","title":"Sort Order","default":0}},"type":"object","required":["key","label","category","value_type"],"title":"UserPreferenceDefinitionCreate"},"UserPreferenceDefinitionResponse":{"properties":{"id":{"type":"string","title":"Id"},"key":{"type":"string","title":"Key"},"label":{"type":"string","title":"Label"},"description":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Description"},"category":{"$ref":"#/components/schemas/PreferenceCategory"},"value_type":{"$ref":"#/components/schemas/ValueType"},"default_value":{"anyOf":[{"type":"string"},{"type":"integer"},{"type":"number"},{"type":"boolean"},{"items":{"type":"string"},"type":"array"},{"items":{"type":"integer"},"type":"array"},{"additionalProperties":true,"type":"object"},{"items":{},"type":"array"},{"type":"null"}],"title":"Default Value"},"validation_schema":{"anyOf":[{"additionalProperties":true,"type":"object"},{"type":"null"}],"title":"Validation Schema"},"is_org_scoped":{"type":"boolean","title":"Is Org Scoped"},"sort_order":{"type":"integer","title":"Sort Order"}},"type":"object","required":["id","key","label","description","category","value_type","default_value","validation_schema","is_org_scoped","sort_order"],"title":"UserPreferenceDefinitionResponse"},"UserPreferenceDefinitionUpdate":{"properties":{"label":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Label"},"description":{"anyOf":[{"type":"string"},{"$ref":"#/components/schemas/_Unset"},{"type":"null"}],"title":"Description","default":"UNSET"},"category":{"anyOf":[{"$ref":"#/components/schemas/PreferenceCategory"},{"type":"null"}]},"default_value":{"anyOf":[{"type":"string"},{"type":"integer"},{"type":"number"},{"type":"boolean"},{"items":{"type":"string"},"type":"array"},{"items":{"type":"integer"},"type":"array"},{"additionalProperties":true,"type":"object"},{"items":{},"type":"array"},{"$ref":"#/components/schemas/_Unset"},{"type":"null"}],"title":"Default Value","default":"UNSET"},"validation_schema":{"anyOf":[{"additionalProperties":true,"type":"object"},{"$ref":"#/components/schemas/_Unset"},{"type":"null"}],"title":"Validation Schema","default":"UNSET"},"is_org_scoped":{"anyOf":[{"type":"boolean"},{"type":"null"}],"title":"Is Org Scoped"},"sort_order":{"anyOf":[{"type":"integer"},{"type":"null"}],"title":"Sort Order"}},"type":"object","title":"UserPreferenceDefinitionUpdate"},"UserRead":{"properties":{"sms_consent_status":{"anyOf":[{"$ref":"#/components/schemas/SmsConsentStatus"},{"type":"null"}]},"sms_consent_phone_number":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Sms Consent Phone Number"},"sms_consent_updated_at":{"anyOf":[{"type":"string","format":"date-time"},{"type":"null"}],"title":"Sms Consent Updated At"},"sms_consent_source":{"anyOf":[{"$ref":"#/components/schemas/SmsConsentSource"},{"type":"null"}]},"id":{"type":"string","title":"Id"},"first_name":{"type":"string","title":"First Name"},"last_name":{"type":"string","title":"Last Name"},"email":{"type":"string","title":"Email"},"phone_number":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Phone Number"},"image":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Image"},"is_staff":{"type":"boolean","title":"Is Staff","default":false},"organizations":{"items":{"$ref":"#/components/schemas/OrganizationRead"},"type":"array","title":"Organizations","default":[]}},"type":"object","required":["id","first_name","last_name","email"],"title":"UserRead"},"UserType":{"type":"string","enum":["propel"],"title":"UserType"},"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"},"ValuePart":{"properties":{"kind":{"type":"string","const":"value","title":"Kind","default":"value"},"value":{"type":"string","enum":["caller_name","company_name","agent_name","appointment_label","service_label","address_label","callback_label","email_label","recording_disclosure"],"title":"Value"}},"additionalProperties":false,"type":"object","required":["value"],"title":"ValuePart"},"ValueType":{"type":"string","enum":["string","integer","float","boolean","string_list","integer_list","json"],"title":"ValueType"},"VariantHookInput":{"properties":{"hook_id":{"type":"string","title":"Hook Id"}},"type":"object","required":["hook_id"],"title":"VariantHookInput"},"VariantObjectiveInput":{"properties":{"objective_id":{"type":"string","title":"Objective Id"},"sort_order":{"type":"integer","title":"Sort Order","default":0}},"type":"object","required":["objective_id"],"title":"VariantObjectiveInput"},"VariantObjectiveResponse":{"properties":{"objective_id":{"type":"string","title":"Objective Id"},"name":{"type":"string","title":"Name"},"sort_order":{"type":"integer","title":"Sort Order"},"prompt_variables":{"anyOf":[{"items":{"additionalProperties":true,"type":"object"},"type":"array"},{"type":"null"}],"title":"Prompt Variables"}},"type":"object","required":["objective_id","name","sort_order"],"title":"VariantObjectiveResponse"},"VerificationInfo":{"properties":{"last_verified_at":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Last Verified At"},"flow_run_id":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Flow Run Id"},"prefect_run_url":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Prefect Run Url"},"counts":{"additionalProperties":{"type":"integer"},"type":"object","title":"Counts"},"status":{"type":"string","enum":["passing","failing","unknown"],"title":"Status","default":"unknown"}},"type":"object","title":"VerificationInfo"},"VoiceCatalogEntry":{"properties":{"voice_id":{"type":"string","title":"Voice Id"},"display_name":{"type":"string","title":"Display Name"},"description":{"type":"string","title":"Description"}},"type":"object","required":["voice_id","display_name","description"],"title":"VoiceCatalogEntry"},"VoiceCatalogResponse":{"properties":{"voices":{"items":{"$ref":"#/components/schemas/VoiceCatalogEntry"},"type":"array","title":"Voices"}},"type":"object","required":["voices"],"title":"VoiceCatalogResponse"},"VoiceLiveIntroSettings":{"properties":{"company_name":{"anyOf":[{"type":"string","maxLength":100,"minLength":1,"pattern":"\\S"},{"type":"null"}],"title":"Company Name"},"agent_name":{"anyOf":[{"type":"string","maxLength":100,"minLength":1,"pattern":"\\S"},{"type":"null"}],"title":"Agent Name"},"opening":{"$ref":"#/components/schemas/CsrOpeningPolicy"},"disclosures":{"$ref":"#/components/schemas/CsrDisclosureConfig"}},"additionalProperties":false,"type":"object","required":["opening","disclosures"],"title":"VoiceLiveIntroSettings"},"VoiceLiveSettings":{"properties":{"intro":{"$ref":"#/components/schemas/VoiceLiveIntroSettings"},"voice":{"anyOf":[{"type":"string","enum":["alloy","ash","ballad","beacon","bossa","cedar","cinder","coral","delta","echo","gleam","marin","meridian","quartz","ripple","sage","shida","shimmer","stone","tempo","verse","vesper","willow"]},{"type":"null"}],"title":"Voice"}},"additionalProperties":false,"type":"object","required":["intro"],"title":"VoiceLiveSettings"},"VoiceTagRerunPublic":{"properties":{"status":{"type":"string","const":"queued","title":"Status","default":"queued"},"engagement_id":{"type":"string","title":"Engagement Id"}},"type":"object","required":["engagement_id"],"title":"VoiceTagRerunPublic"},"VoiceTagResultPublic":{"properties":{"id":{"type":"string","title":"Id"},"subject_type":{"$ref":"#/components/schemas/TagSubjectType"},"subject_id":{"type":"string","title":"Subject Id"},"tag_definition_id":{"type":"string","title":"Tag Definition Id"},"tag_definition_revision":{"anyOf":[{"$ref":"#/components/schemas/TagResultDefinitionRevisionPublic"},{"type":"null"}]},"tag_evaluation_run_id":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Tag Evaluation Run Id"},"model_value":{"anyOf":[{},{"type":"null"}],"title":"Model Value"},"user_override_value":{"anyOf":[{},{"type":"null"}],"title":"User Override Value"},"effective_value":{"anyOf":[{},{"type":"null"}],"title":"Effective Value"},"override_tag_definition_revision_id":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Override Tag Definition Revision Id"},"override_tag_evaluation_run_id":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Override Tag Evaluation Run Id"},"override_provenance_state":{"$ref":"#/components/schemas/OverrideProvenanceState","default":"not_overridden"},"override_provenance_stale_reasons":{"items":{"$ref":"#/components/schemas/OverrideProvenanceStaleReason"},"type":"array","title":"Override Provenance Stale Reasons"},"override_reason":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Override Reason"},"reasoning":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Reasoning"},"tagged_by":{"$ref":"#/components/schemas/TaggedBy"},"tagged_at":{"anyOf":[{"type":"string","format":"date-time"},{"type":"null"}],"title":"Tagged At"},"overridden_by_user_id":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Overridden By User Id"},"overridden_at":{"anyOf":[{"type":"string","format":"date-time"},{"type":"null"}],"title":"Overridden At"},"evidence":{"items":{"$ref":"#/components/schemas/TagEvidencePublic"},"type":"array","title":"Evidence"},"agent_v2_id":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Agent V2 Id"},"agent_name":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Agent Name"},"call_source_id":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Call Source Id"}},"type":"object","required":["id","subject_type","subject_id","tag_definition_id","tagged_by","agent_v2_id","agent_name","call_source_id"],"title":"VoiceTagResultPublic"},"VoiceTagResultsPublic":{"properties":{"engagement_id":{"type":"string","title":"Engagement Id"},"agent_v2_id":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Agent V2 Id"},"agent_name":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Agent Name"},"conversation_started_at":{"type":"string","format":"date-time","title":"Conversation Started At"},"state":{"anyOf":[{"$ref":"#/components/schemas/TagEvaluationState"},{"type":"string","enum":["unavailable","skipped"]}],"title":"State"},"run_id":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Run Id"},"message":{"type":"string","title":"Message"},"can_rerun":{"type":"boolean","title":"Can Rerun","default":false},"results":{"items":{"$ref":"#/components/schemas/VoiceTagResultPublic"},"type":"array","title":"Results"}},"type":"object","required":["engagement_id","agent_v2_id","agent_name","conversation_started_at","state","message"],"title":"VoiceTagResultsPublic"},"VoiceV3CsrCanonicalSettings":{"properties":{"voice_id":{"type":"null","title":"Voice Id"},"speed":{"anyOf":[{"type":"number","exclusiveMinimum":0.0},{"type":"null"}],"title":"Speed"},"stability":{"type":"null","title":"Stability"},"similarity_boost":{"type":"null","title":"Similarity Boost"},"use_speaker_boost":{"type":"null","title":"Use Speaker Boost"},"semantic_vad_eagerness":{"anyOf":[{"$ref":"#/components/schemas/SemanticVADEagerness"},{"type":"null"}]},"transfer_destinations":{"anyOf":[{"items":{"$ref":"#/components/schemas/ConfiguredTransferDestination"},"type":"array"},{"type":"null"}],"title":"Transfer Destinations"},"csr_config":{"$ref":"#/components/schemas/CsrPromptConfig"}},"additionalProperties":false,"type":"object","required":["csr_config"],"title":"VoiceV3CsrCanonicalSettings"},"W9Candidates":{"properties":{"legal_name":{"anyOf":[{"type":"string","maxLength":255},{"type":"null"}],"title":"Legal Name"},"dba_name":{"anyOf":[{"type":"string","maxLength":255},{"type":"null"}],"title":"Dba Name"},"entity_type":{"anyOf":[{"type":"string","const":"LLC"},{"type":"null"}],"title":"Entity Type"},"street":{"anyOf":[{"type":"string","maxLength":255},{"type":"null"}],"title":"Street"},"city":{"anyOf":[{"type":"string","maxLength":100},{"type":"null"}],"title":"City"},"state":{"anyOf":[{"type":"string","pattern":"^[A-Z]{2}$"},{"type":"null"}],"title":"State"},"postal_code":{"anyOf":[{"type":"string","pattern":"^[0-9]{5}(-[0-9]{4})?$"},{"type":"null"}],"title":"Postal Code"},"ein":{"anyOf":[{"type":"string","pattern":"^[0-9]{9}$"},{"type":"null"}],"title":"Ein"}},"additionalProperties":false,"type":"object","title":"W9Candidates"},"W9ExtractionPublic":{"properties":{"status":{"type":"string","enum":["review_candidates","manual_entry"],"title":"Status"},"candidates":{"$ref":"#/components/schemas/W9Candidates"},"reason":{"anyOf":[{"type":"string","enum":["no_readable_text","no_readable_fields","not_w9","unreadable_pdf","temporarily_unavailable"]},{"type":"null"}],"title":"Reason"}},"additionalProperties":false,"type":"object","required":["status"],"title":"W9ExtractionPublic"},"WebWidgetIntentMode":{"type":"string","enum":["chips","text","hidden"],"title":"WebWidgetIntentMode"},"WebhookConnectionCreateRequest":{"properties":{"contact_email":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Contact Email"},"crm_key":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Crm Key"},"environment":{"$ref":"#/components/schemas/ZapierEnvironment","default":"test"}},"type":"object","title":"WebhookConnectionCreateRequest"},"WebhookConnectionOnlyResponse":{"properties":{"connection":{"$ref":"#/components/schemas/WebhookConnectionResponse"}},"type":"object","required":["connection"],"title":"WebhookConnectionOnlyResponse"},"WebhookConnectionResponse":{"properties":{"id":{"type":"string","title":"Id"},"organization_id":{"type":"string","title":"Organization Id"},"source":{"type":"string","title":"Source"},"endpoint_key":{"type":"string","title":"Endpoint Key"},"contact_email":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Contact Email"},"crm_key":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Crm Key"},"api_key_last4":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Api Key Last4"},"require_api_key":{"type":"boolean","title":"Require Api Key"},"status":{"$ref":"#/components/schemas/ZapierConnectionStatus"},"environment":{"$ref":"#/components/schemas/ZapierEnvironment"},"last_webhook_received_at":{"anyOf":[{"type":"string","format":"date-time"},{"type":"null"}],"title":"Last Webhook Received At"},"last_error_at":{"anyOf":[{"type":"string","format":"date-time"},{"type":"null"}],"title":"Last Error At"},"last_error_summary":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Last Error Summary"},"lead_trigger_configured":{"type":"boolean","title":"Lead Trigger Configured"},"can_activate":{"type":"boolean","title":"Can Activate"},"activation_blockers":{"items":{"type":"string"},"type":"array","title":"Activation Blockers"},"created_at":{"anyOf":[{"type":"string","format":"date-time"},{"type":"null"}],"title":"Created At"},"updated_at":{"anyOf":[{"type":"string","format":"date-time"},{"type":"null"}],"title":"Updated At"},"deleted_at":{"anyOf":[{"type":"string","format":"date-time"},{"type":"null"}],"title":"Deleted At"}},"type":"object","required":["id","organization_id","source","endpoint_key","require_api_key","status","environment","lead_trigger_configured","can_activate","activation_blockers"],"title":"WebhookConnectionResponse"},"WebhookConnectionStateResponse":{"properties":{"connection":{"anyOf":[{"$ref":"#/components/schemas/WebhookConnectionResponse"},{"type":"null"}]},"endpoint_key":{"type":"string","title":"Endpoint Key"},"endpoint_url":{"type":"string","title":"Endpoint Url"},"lead_trigger_configured":{"type":"boolean","title":"Lead Trigger Configured"},"can_activate":{"type":"boolean","title":"Can Activate"},"activation_blockers":{"items":{"type":"string"},"type":"array","title":"Activation Blockers"}},"type":"object","required":["connection","endpoint_key","endpoint_url","lead_trigger_configured","can_activate","activation_blockers"],"title":"WebhookConnectionStateResponse"},"WebhookConnectionUpdateRequest":{"properties":{"status":{"anyOf":[{"$ref":"#/components/schemas/ZapierConnectionStatus"},{"type":"null"}]}},"type":"object","title":"WebhookConnectionUpdateRequest"},"WebhookConnectionWithApiKeyResponse":{"properties":{"connection":{"$ref":"#/components/schemas/WebhookConnectionResponse"},"endpoint_key":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Endpoint Key"},"endpoint_url":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Endpoint Url"},"api_key":{"type":"string","title":"Api Key"}},"type":"object","required":["connection","api_key"],"title":"WebhookConnectionWithApiKeyResponse"},"WidgetConfigAdminResponse":{"properties":{"id":{"type":"string","title":"Id"},"organization_id":{"type":"string","title":"Organization Id"},"live_key":{"type":"string","title":"Live Key"},"test_key":{"type":"string","title":"Test Key"},"brand_name":{"type":"string","title":"Brand Name"},"brand_logo_url":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Brand Logo Url"},"brand_colors":{"additionalProperties":true,"type":"object","title":"Brand Colors"},"launcher_copy":{"type":"string","title":"Launcher Copy"},"launcher_position":{"$ref":"#/components/schemas/LauncherPosition"},"modal_headline":{"type":"string","title":"Modal Headline"},"modal_subhead":{"type":"string","title":"Modal Subhead"},"modal_cta_label":{"type":"string","title":"Modal Cta Label"},"opt_in_copy_override":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Opt In Copy Override"},"required_opt_in_text_template":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Required Opt In Text Template"},"booking_consent_text_template":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Booking Consent Text Template"},"marketing_consent_text_template":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Marketing Consent Text Template"},"opt_in_copy_addendum":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Opt In Copy Addendum"},"tc_url":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Tc Url"},"privacy_url":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Privacy Url"},"trust_rating":{"anyOf":[{"type":"number"},{"type":"null"}],"title":"Trust Rating"},"trust_review_count":{"anyOf":[{"type":"integer"},{"type":"null"}],"title":"Trust Review Count"},"trust_neighbor_count":{"anyOf":[{"type":"integer"},{"type":"null"}],"title":"Trust Neighbor Count"},"origin_allowlist":{"items":{"type":"string"},"type":"array","title":"Origin Allowlist"},"turnstile_site_key":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Turnstile Site Key"},"kill_switch":{"type":"boolean","title":"Kill Switch"},"web_embed_enabled":{"type":"boolean","title":"Web Embed Enabled"},"booking_form_enabled":{"type":"boolean","title":"Booking Form Enabled"},"zip_routing_enabled":{"type":"boolean","title":"Zip Routing Enabled","default":false},"out_of_area_message":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Out Of Area Message"},"intent_mode":{"$ref":"#/components/schemas/WebWidgetIntentMode","default":"chips"},"intent_prompt":{"type":"string","title":"Intent Prompt","default":"What can we help with?"},"intent_options":{"items":{"type":"string"},"type":"array","title":"Intent Options"},"intent_text_placeholder":{"type":"string","title":"Intent Text Placeholder","default":"Tell us briefly how we can help"},"response_status_text":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Response Status Text","default":"Replies by text in seconds"}},"type":"object","required":["id","organization_id","live_key","test_key","brand_name","brand_colors","launcher_copy","launcher_position","modal_headline","modal_subhead","modal_cta_label","origin_allowlist","kill_switch","web_embed_enabled","booking_form_enabled"],"title":"WidgetConfigAdminResponse"},"WidgetConfigPublic":{"properties":{"enabled":{"type":"boolean","title":"Enabled"},"demo":{"type":"boolean","title":"Demo","default":false},"brandName":{"type":"string","title":"Brandname"},"brandLogoUrl":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Brandlogourl"},"theme":{"$ref":"#/components/schemas/WidgetThemePublic"},"copy":{"$ref":"#/components/schemas/WidgetCopyPublic"},"termsUrl":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Termsurl"},"privacyUrl":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Privacyurl"},"intents":{"items":{"$ref":"#/components/schemas/WidgetIntentChipPublic"},"type":"array","title":"Intents"},"intentMode":{"$ref":"#/components/schemas/WebWidgetIntentMode","default":"chips"},"intentPrompt":{"type":"string","title":"Intentprompt","default":"What can we help with?"},"intentTextPlaceholder":{"type":"string","title":"Intenttextplaceholder","default":"Tell us briefly how we can help"},"intentTextMaxLength":{"type":"integer","title":"Intenttextmaxlength","default":200},"responseStatusText":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Responsestatustext","default":"Replies by text in seconds"},"originAllowlist":{"items":{"type":"string"},"type":"array","title":"Originallowlist"},"trust":{"anyOf":[{"$ref":"#/components/schemas/WidgetTrustPublic"},{"type":"null"}]},"zipRoutingEnabled":{"type":"boolean","title":"Ziproutingenabled","default":false},"outOfAreaMessage":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Outofareamessage"},"turnstileSiteKey":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Turnstilesitekey"}},"type":"object","required":["enabled","brandName","theme","copy","intents","originAllowlist"],"title":"WidgetConfigPublic"},"WidgetConfigUpsertRequest":{"properties":{"brand_name":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Brand Name"},"brand_logo_url":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Brand Logo Url"},"brand_colors":{"anyOf":[{"additionalProperties":true,"type":"object"},{"type":"null"}],"title":"Brand Colors"},"launcher_copy":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Launcher Copy"},"launcher_position":{"anyOf":[{"$ref":"#/components/schemas/LauncherPosition"},{"type":"null"}]},"modal_headline":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Modal Headline"},"modal_subhead":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Modal Subhead"},"modal_cta_label":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Modal Cta Label"},"opt_in_copy_override":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Opt In Copy Override"},"tc_url":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Tc Url"},"privacy_url":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Privacy Url"},"trust_rating":{"anyOf":[{"type":"number"},{"type":"null"}],"title":"Trust Rating"},"trust_review_count":{"anyOf":[{"type":"integer"},{"type":"null"}],"title":"Trust Review Count"},"trust_neighbor_count":{"anyOf":[{"type":"integer"},{"type":"null"}],"title":"Trust Neighbor Count"},"origin_allowlist":{"anyOf":[{"items":{"type":"string"},"type":"array"},{"type":"null"}],"title":"Origin Allowlist"},"turnstile_site_key":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Turnstile Site Key"},"kill_switch":{"anyOf":[{"type":"boolean"},{"type":"null"}],"title":"Kill Switch"},"web_embed_enabled":{"anyOf":[{"type":"boolean"},{"type":"null"}],"title":"Web Embed Enabled"},"booking_form_enabled":{"anyOf":[{"type":"boolean"},{"type":"null"}],"title":"Booking Form Enabled"},"zip_routing_enabled":{"anyOf":[{"type":"boolean"},{"type":"null"}],"title":"Zip Routing Enabled"},"out_of_area_message":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Out Of Area Message"},"intent_mode":{"anyOf":[{"$ref":"#/components/schemas/WebWidgetIntentMode"},{"type":"null"}]},"intent_prompt":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Intent Prompt"},"intent_options":{"anyOf":[{"items":{"type":"string"},"type":"array"},{"type":"null"}],"title":"Intent Options"},"intent_text_placeholder":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Intent Text Placeholder"},"response_status_text":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Response Status Text"}},"type":"object","title":"WidgetConfigUpsertRequest"},"WidgetCopyPublic":{"properties":{"modalTitle":{"type":"string","title":"Modaltitle"},"subhead":{"type":"string","title":"Subhead"},"ctaLabel":{"type":"string","title":"Ctalabel"},"optInText":{"type":"string","title":"Optintext"},"optInCopyOverride":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Optincopyoverride"},"consentText":{"type":"string","title":"Consenttext"},"bookingConsentText":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Bookingconsenttext"},"marketingConsentText":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Marketingconsenttext"}},"type":"object","required":["modalTitle","subhead","ctaLabel","optInText","consentText"],"title":"WidgetCopyPublic"},"WidgetIntentChipPublic":{"properties":{"key":{"type":"string","title":"Key"},"label":{"type":"string","title":"Label"}},"type":"object","required":["key","label"],"title":"WidgetIntentChipPublic"},"WidgetRegionLink":{"properties":{"id":{"type":"string","title":"Id"},"region_id":{"type":"string","title":"Region Id"},"region_name":{"type":"string","title":"Region Name"},"organization_id":{"type":"string","title":"Organization Id"},"target_organization_id":{"type":"string","title":"Target Organization Id"}},"type":"object","required":["id","region_id","region_name","organization_id","target_organization_id"],"title":"WidgetRegionLink"},"WidgetRequiredSmsOptInCopyResponse":{"properties":{"template":{"type":"string","title":"Template"},"source":{"type":"string","enum":["configured","fallback"],"title":"Source"}},"type":"object","required":["template","source"],"title":"WidgetRequiredSmsOptInCopyResponse"},"WidgetRequiredSmsOptInCopyUpdateRequest":{"properties":{"template":{"type":"string","title":"Template"}},"type":"object","required":["template"],"title":"WidgetRequiredSmsOptInCopyUpdateRequest"},"WidgetThemePublic":{"properties":{"primaryColor":{"type":"string","title":"Primarycolor"},"launcherLabel":{"type":"string","title":"Launcherlabel"},"launcherPosition":{"type":"string","title":"Launcherposition"}},"type":"object","required":["primaryColor","launcherLabel","launcherPosition"],"title":"WidgetThemePublic"},"WidgetTrustPublic":{"properties":{"rating":{"type":"number","title":"Rating"},"reviewCount":{"type":"integer","title":"Reviewcount"},"neighborCount":{"anyOf":[{"type":"integer"},{"type":"null"}],"title":"Neighborcount"}},"type":"object","required":["rating","reviewCount"],"title":"WidgetTrustPublic"},"YelpBusinessSelection":{"properties":{"business_ids":{"items":{"type":"string"},"type":"array","title":"Business Ids"}},"type":"object","required":["business_ids"],"title":"YelpBusinessSelection"},"YelpConnectionInitiateResponse":{"properties":{"redirect_url":{"type":"string","title":"Redirect Url"}},"type":"object","required":["redirect_url"],"title":"YelpConnectionInitiateResponse"},"YelpDisconnectResponse":{"properties":{"success":{"type":"boolean","title":"Success"},"message":{"type":"string","title":"Message"}},"type":"object","required":["success","message"],"title":"YelpDisconnectResponse"},"ZapierConnectionStatus":{"type":"string","enum":["pending","active","disabled","error"],"title":"ZapierConnectionStatus"},"ZapierEnvironment":{"type":"string","enum":["test","production"],"title":"ZapierEnvironment"},"_Unset":{"type":"string","enum":["UNSET"],"title":"_Unset","description":"Sentinel to distinguish 'not provided' from 'explicitly set to None'."},"api__domains__integrations__schemas__google_ads__OAuthCallbackRequest":{"properties":{"code":{"type":"string","title":"Code","description":"Authorization code from Google OAuth"}},"type":"object","required":["code"],"title":"OAuthCallbackRequest"},"api__domains__integrations__schemas__intacct__StatusResponse":{"properties":{"configured":{"type":"boolean","title":"Configured"},"connected":{"type":"boolean","title":"Connected"},"connections":{"additionalProperties":{"type":"boolean"},"propertyNames":{"$ref":"#/components/schemas/IntacctProfile"},"type":"object","title":"Connections"}},"type":"object","required":["configured","connected"],"title":"StatusResponse"},"api__domains__integrations__schemas__meta_ads__OAuthCallbackRequest":{"properties":{"code":{"type":"string","title":"Code","description":"Authorization code from Meta OAuth"}},"type":"object","required":["code"],"title":"OAuthCallbackRequest"},"api__domains__leads__google_ads__lsa__lsa_account__GoogleLSAAccountResponse":{"properties":{"id":{"type":"string","format":"uuid","title":"Id"},"organization_id":{"type":"string","format":"uuid","title":"Organization Id"},"google_customer_id":{"type":"string","title":"Google Customer Id"},"is_active":{"type":"boolean","title":"Is Active"},"auto_reply_message":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Auto Reply Message"},"login_customer_id":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Login Customer Id"}},"type":"object","required":["id","organization_id","google_customer_id","is_active"],"title":"GoogleLSAAccountResponse"},"api__routers__admin__provision__ProvisionRequest":{"properties":{"organization_id":{"type":"string","title":"Organization Id"}},"type":"object","required":["organization_id"],"title":"ProvisionRequest"},"api__routers__authenticated__provision__ProvisionRequest":{"properties":{"organization_id":{"type":"string","title":"Organization Id"},"trade":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Trade"},"is_draft":{"type":"boolean","title":"Is Draft","default":false},"rule_overrides":{"items":{"$ref":"#/components/schemas/RuleOverride"},"type":"array","title":"Rule Overrides","default":[]}},"type":"object","required":["organization_id"],"title":"ProvisionRequest"},"api__schemas__leads__lsa_account__GoogleLSAAccountResponse":{"properties":{"id":{"type":"string","format":"uuid","title":"Id"},"organization_id":{"type":"string","format":"uuid","title":"Organization Id"},"google_customer_id":{"type":"string","title":"Google Customer Id"},"brand_name":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Brand Name"},"is_active":{"type":"boolean","title":"Is Active"},"reporting_only":{"type":"boolean","title":"Reporting Only","default":false},"auto_reply_message":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Auto Reply Message"},"login_customer_id":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Login Customer Id"}},"type":"object","required":["id","organization_id","google_customer_id","is_active"],"title":"GoogleLSAAccountResponse"},"api__schemas__notification__notifications__StatusResponse":{"properties":{"status":{"type":"string","title":"Status"}},"type":"object","required":["status"],"title":"StatusResponse"},"upsmith_equipment_contracts__classification__EvidenceReference":{"properties":{"evidence_id":{"type":"string","minLength":1,"pattern":"\\S","title":"Evidence Id"},"source_kind":{"type":"string","enum":["installed_equipment","maintenance_job","intake","tag","note","review"],"title":"Source Kind"},"source_ref":{"type":"string","minLength":1,"pattern":"\\S","title":"Source Ref"},"observed_at":{"type":"string","format":"date-time","title":"Observed At"}},"additionalProperties":false,"type":"object","required":["evidence_id","source_kind","source_ref","observed_at"],"title":"EvidenceReference"},"upsmith_knowledge_contracts__definition_proposals__PropertyDefinition":{"properties":{"kind":{"type":"string","const":"property_type","title":"Kind"},"id":{"type":"string","maxLength":255,"minLength":1,"pattern":"^\\S(?:.*\\S)?$","title":"Id"},"key":{"type":"string","maxLength":128,"minLength":1,"pattern":"^[a-z][a-z0-9_]*(?:\\.[a-z][a-z0-9_]*)*$","title":"Key"},"label":{"type":"string","maxLength":200,"minLength":1,"pattern":"^\\S(?:.*\\S)?$","title":"Label"},"entity_type_id":{"type":"string","maxLength":255,"minLength":1,"pattern":"^\\S(?:.*\\S)?$","title":"Entity Type Id"},"meaning":{"type":"string","maxLength":8000,"minLength":1,"pattern":"\\S","title":"Meaning"},"answer_type":{"type":"string","enum":["text","identifier","number","date","bool","choice","entity"],"title":"Answer Type"},"many_valued":{"type":"boolean","title":"Many Valued","default":false},"is_unique":{"type":"boolean","title":"Is Unique","default":false},"target_entity_type_id":{"anyOf":[{"type":"string","maxLength":255,"minLength":1,"pattern":"^\\S(?:.*\\S)?$"},{"type":"null"}],"title":"Target Entity Type Id"},"choice_list_id":{"anyOf":[{"type":"string","maxLength":255,"minLength":1,"pattern":"^\\S(?:.*\\S)?$"},{"type":"null"}],"title":"Choice List Id"},"documentation":{"$ref":"#/components/schemas/DefinitionDocumentation"}},"additionalProperties":false,"type":"object","required":["kind","id","key","label","entity_type_id","meaning","answer_type","documentation"],"title":"PropertyDefinition"},"upsmith_knowledge_contracts__properties__EvidenceReference":{"properties":{"id":{"type":"string","title":"Id"},"run_id":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Run Id"},"source_kind":{"type":"string","title":"Source Kind"},"source_ref":{"type":"string","title":"Source Ref"},"observed_at":{"type":"string","format":"date-time","title":"Observed At"}},"additionalProperties":false,"type":"object","required":["id","run_id","source_kind","source_ref","observed_at"],"title":"EvidenceReference"},"upsmith_knowledge_contracts__properties__PropertyDefinition":{"properties":{"id":{"type":"string","title":"Id"},"subject_kind":{"type":"string","title":"Subject Kind"},"answer_type":{"type":"string","title":"Answer Type"},"definition":{"additionalProperties":true,"type":"object","title":"Definition"},"storage_id":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Storage Id"},"key":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Key"},"version":{"anyOf":[{"type":"integer"},{"type":"null"}],"title":"Version"},"storage_answer_type":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Storage Answer Type"}},"additionalProperties":false,"type":"object","required":["id","subject_kind","answer_type","definition"],"title":"PropertyDefinition"}},"securitySchemes":{"APIKeyHeader":{"type":"apiKey","in":"header","name":"x-api-key"},"HTTPBearer":{"type":"http","scheme":"bearer"}}}}