{"openapi":"3.0.0","paths":{"/v1/conversations":{"get":{"operationId":"conversations_list","parameters":[],"responses":{"200":{"description":"","content":{"application/json":{"schema":{"type":"array","items":{"type":"object"}}}}},"401":{"$ref":"#/components/responses/Unauthorized"},"403":{"$ref":"#/components/responses/Forbidden"},"429":{"$ref":"#/components/responses/TooManyRequests"},"500":{"$ref":"#/components/responses/ServerError"}},"security":[{"JWT":[]},{"ApiKey":[]}],"tags":["Conversations"],"summary":"List","x-api-key-scopes":["*"]},"post":{"operationId":"conversations_create","parameters":[{"$ref":"#/components/parameters/IdempotencyKey"}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/CreateConversationDto"}}}},"responses":{"201":{"description":"","content":{"application/json":{"schema":{"type":"object"}}}},"400":{"$ref":"#/components/responses/BadRequest"},"401":{"$ref":"#/components/responses/Unauthorized"},"403":{"$ref":"#/components/responses/Forbidden"},"409":{"$ref":"#/components/responses/Conflict"},"429":{"$ref":"#/components/responses/TooManyRequests"},"500":{"$ref":"#/components/responses/ServerError"}},"security":[{"JWT":[]},{"ApiKey":[]}],"tags":["Conversations"],"summary":"Create","x-api-key-scopes":["*"]},"delete":{"operationId":"conversations_deleteAll","parameters":[],"responses":{"200":{"description":""},"400":{"$ref":"#/components/responses/BadRequest"},"401":{"$ref":"#/components/responses/Unauthorized"},"403":{"$ref":"#/components/responses/Forbidden"},"429":{"$ref":"#/components/responses/TooManyRequests"},"500":{"$ref":"#/components/responses/ServerError"}},"security":[{"JWT":[]},{"ApiKey":[]}],"tags":["Conversations"],"summary":"Delete all","x-api-key-scopes":["*"]}},"/v1/conversations/{id}":{"get":{"operationId":"conversations_getOne","parameters":[{"name":"id","required":true,"in":"path","schema":{"type":"string"}}],"responses":{"200":{"description":"","content":{"application/json":{"schema":{"type":"object"}}}},"400":{"$ref":"#/components/responses/BadRequest"},"401":{"$ref":"#/components/responses/Unauthorized"},"403":{"$ref":"#/components/responses/Forbidden"},"404":{"$ref":"#/components/responses/NotFound"},"429":{"$ref":"#/components/responses/TooManyRequests"},"500":{"$ref":"#/components/responses/ServerError"}},"security":[{"JWT":[]},{"ApiKey":[]}],"tags":["Conversations"],"summary":"Get one","x-api-key-scopes":["*"]},"patch":{"operationId":"conversations_update","parameters":[{"name":"id","required":true,"in":"path","schema":{"type":"string"}},{"$ref":"#/components/parameters/IdempotencyKey"}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/UpdateConversationDto"}}}},"responses":{"200":{"description":""},"400":{"$ref":"#/components/responses/BadRequest"},"401":{"$ref":"#/components/responses/Unauthorized"},"403":{"$ref":"#/components/responses/Forbidden"},"404":{"$ref":"#/components/responses/NotFound"},"409":{"$ref":"#/components/responses/Conflict"},"429":{"$ref":"#/components/responses/TooManyRequests"},"500":{"$ref":"#/components/responses/ServerError"}},"security":[{"JWT":[]},{"ApiKey":[]}],"tags":["Conversations"],"summary":"Update","x-api-key-scopes":["*"]},"delete":{"operationId":"conversations_delete","parameters":[{"name":"id","required":true,"in":"path","schema":{"type":"string"}}],"responses":{"200":{"description":""},"400":{"$ref":"#/components/responses/BadRequest"},"401":{"$ref":"#/components/responses/Unauthorized"},"403":{"$ref":"#/components/responses/Forbidden"},"404":{"$ref":"#/components/responses/NotFound"},"429":{"$ref":"#/components/responses/TooManyRequests"},"500":{"$ref":"#/components/responses/ServerError"}},"security":[{"JWT":[]},{"ApiKey":[]}],"tags":["Conversations"],"summary":"Delete","x-api-key-scopes":["*"]}},"/v1/conversations/{id}/messages":{"post":{"operationId":"conversations_sendMessage","parameters":[{"name":"id","required":true,"in":"path","schema":{"type":"string"}},{"$ref":"#/components/parameters/IdempotencyKey"}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/CreateMessageDto"}}}},"responses":{"201":{"description":"","content":{"application/json":{"schema":{"type":"object"}}}},"400":{"$ref":"#/components/responses/BadRequest"},"401":{"$ref":"#/components/responses/Unauthorized"},"403":{"$ref":"#/components/responses/Forbidden"},"404":{"$ref":"#/components/responses/NotFound"},"409":{"$ref":"#/components/responses/Conflict"},"429":{"$ref":"#/components/responses/TooManyRequests"},"500":{"$ref":"#/components/responses/ServerError"}},"security":[{"JWT":[]},{"ApiKey":[]}],"tags":["Conversations"],"summary":"Send message","x-api-key-scopes":["*"]}},"/v1/conversations/extract-metadata":{"post":{"operationId":"conversations_extractMetadata","parameters":[{"$ref":"#/components/parameters/IdempotencyKey"}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ExtractMetadataDto"}}}},"responses":{"201":{"description":"","content":{"application/json":{"schema":{"type":"object"}}}},"400":{"$ref":"#/components/responses/BadRequest"},"401":{"$ref":"#/components/responses/Unauthorized"},"403":{"$ref":"#/components/responses/Forbidden"},"409":{"$ref":"#/components/responses/Conflict"},"429":{"$ref":"#/components/responses/TooManyRequests"},"500":{"$ref":"#/components/responses/ServerError"}},"security":[{"JWT":[]},{"ApiKey":[]}],"summary":"Extract metadata from user message using LLM\nUsed for artifact detection and company name extraction","tags":["Conversations"],"x-api-key-scopes":["*"]}},"/v1/conversations/{id}/messages/stream":{"post":{"operationId":"conversations_streamMessage","parameters":[{"name":"id","required":true,"in":"path","schema":{"type":"string"}},{"$ref":"#/components/parameters/IdempotencyKey"}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/CreateMessageDto"}}}},"responses":{"201":{"description":""},"400":{"$ref":"#/components/responses/BadRequest"},"401":{"$ref":"#/components/responses/Unauthorized"},"403":{"$ref":"#/components/responses/Forbidden"},"404":{"$ref":"#/components/responses/NotFound"},"409":{"$ref":"#/components/responses/Conflict"},"429":{"$ref":"#/components/responses/TooManyRequests"},"500":{"$ref":"#/components/responses/ServerError"}},"security":[{"JWT":[]},{"ApiKey":[]}],"summary":"Streaming endpoint using Vercel AI SDK\nReturns Server-Sent Events for real-time token streaming","tags":["Conversations"],"x-api-key-scopes":["*"]}},"/v1/conversations/stats/optimizer":{"get":{"operationId":"conversations_getOptimizerStats","parameters":[],"responses":{"200":{"description":"","content":{"application/json":{"schema":{"type":"object"}}}},"401":{"$ref":"#/components/responses/Unauthorized"},"403":{"$ref":"#/components/responses/Forbidden"},"429":{"$ref":"#/components/responses/TooManyRequests"},"500":{"$ref":"#/components/responses/ServerError"}},"security":[{"JWT":[]},{"ApiKey":[]}],"summary":"Assistant response statistics","tags":["Conversations"],"x-api-key-scopes":["*"]}},"/v1/calls/search":{"get":{"operationId":"callIntelligence_searchCalls","parameters":[{"name":"query","required":false,"in":"query","schema":{"type":"string"}},{"name":"phrases","required":false,"in":"query","schema":{"type":"array","items":{"type":"string"}}},{"name":"participants","required":false,"in":"query","schema":{"type":"array","items":{"type":"string"}}},{"name":"accountName","required":false,"in":"query","schema":{"type":"string"}},{"name":"accountId","required":false,"in":"query","schema":{"type":"string"}},{"name":"opportunityId","required":false,"in":"query","schema":{"type":"string"}},{"name":"trackers","required":false,"in":"query","schema":{"type":"array","items":{"type":"string"}}},{"name":"dateFrom","required":false,"in":"query","schema":{"type":"string"}},{"name":"dateTo","required":false,"in":"query","schema":{"type":"string"}},{"name":"platform","required":false,"in":"query","schema":{"type":"string","enum":["zoom","teams","google_meet","webex","other"]}},{"name":"mentionedBy","required":false,"in":"query","schema":{"type":"string","enum":["any","internal","external"]}},{"name":"minDuration","required":false,"in":"query","schema":{"type":"number"}},{"name":"maxDuration","required":false,"in":"query","schema":{"type":"number"}},{"name":"sentiment","required":false,"in":"query","schema":{"type":"string","enum":["positive","neutral","negative"]}},{"name":"limit","required":false,"in":"query","schema":{"type":"number"}},{"name":"offset","required":false,"in":"query","schema":{"type":"number"}}],"responses":{"200":{"description":""},"400":{"$ref":"#/components/responses/BadRequest"},"401":{"$ref":"#/components/responses/Unauthorized"},"403":{"$ref":"#/components/responses/Forbidden"},"429":{"$ref":"#/components/responses/TooManyRequests"},"500":{"$ref":"#/components/responses/ServerError"}},"security":[{"JWT":[]},{"ApiKey":[]}],"summary":"Search calls with transcript content","tags":["Call Intelligence"],"x-api-key-scopes":["*"]}},"/v1/calls/searches":{"post":{"operationId":"callIntelligence_saveSearch","parameters":[{"$ref":"#/components/parameters/IdempotencyKey"}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/SavedSearchDto"}}}},"responses":{"201":{"description":""},"400":{"$ref":"#/components/responses/BadRequest"},"401":{"$ref":"#/components/responses/Unauthorized"},"403":{"$ref":"#/components/responses/Forbidden"},"409":{"$ref":"#/components/responses/Conflict"},"429":{"$ref":"#/components/responses/TooManyRequests"},"500":{"$ref":"#/components/responses/ServerError"}},"security":[{"JWT":[]},{"ApiKey":[]}],"summary":"Save a search for quick access","tags":["Call Intelligence"],"x-api-key-scopes":["*"]}},"/v1/calls/saved/searches":{"get":{"operationId":"callIntelligence_getSavedSearches","parameters":[],"responses":{"200":{"description":"","content":{"application/json":{"schema":{"type":"array","items":{"type":"object"}}}}},"401":{"$ref":"#/components/responses/Unauthorized"},"403":{"$ref":"#/components/responses/Forbidden"},"429":{"$ref":"#/components/responses/TooManyRequests"},"500":{"$ref":"#/components/responses/ServerError"}},"security":[{"JWT":[]},{"ApiKey":[]}],"summary":"Get saved searches","tags":["Call Intelligence"],"x-api-key-scopes":["*"]}},"/v1/calls/trackers":{"post":{"operationId":"callIntelligence_upsertTracker","parameters":[{"$ref":"#/components/parameters/IdempotencyKey"}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/TrackerDefinitionDto"}}}},"responses":{"201":{"description":""},"400":{"$ref":"#/components/responses/BadRequest"},"401":{"$ref":"#/components/responses/Unauthorized"},"403":{"$ref":"#/components/responses/Forbidden"},"409":{"$ref":"#/components/responses/Conflict"},"429":{"$ref":"#/components/responses/TooManyRequests"},"500":{"$ref":"#/components/responses/ServerError"}},"security":[{"JWT":[]},{"ApiKey":[]}],"summary":"Create or update a tracker","tags":["Call Intelligence"],"x-api-key-scopes":["*"]}},"/v1/calls/config/trackers":{"get":{"operationId":"callIntelligence_getTrackers","parameters":[],"responses":{"200":{"description":"","content":{"application/json":{"schema":{"type":"array","items":{"$ref":"#/components/schemas/TrackerDefinitionDto"}}}}},"401":{"$ref":"#/components/responses/Unauthorized"},"403":{"$ref":"#/components/responses/Forbidden"},"429":{"$ref":"#/components/responses/TooManyRequests"},"500":{"$ref":"#/components/responses/ServerError"}},"security":[{"JWT":[]},{"ApiKey":[]}],"summary":"Get tracker definitions","tags":["Call Intelligence"],"x-api-key-scopes":["*"]}},"/v1/calls/streams":{"post":{"operationId":"callIntelligence_createStream","parameters":[{"$ref":"#/components/parameters/IdempotencyKey"}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/CreateStreamDto"}}}},"responses":{"201":{"description":""},"400":{"$ref":"#/components/responses/BadRequest"},"401":{"$ref":"#/components/responses/Unauthorized"},"403":{"$ref":"#/components/responses/Forbidden"},"409":{"$ref":"#/components/responses/Conflict"},"429":{"$ref":"#/components/responses/TooManyRequests"},"500":{"$ref":"#/components/responses/ServerError"}},"security":[{"JWT":[]},{"ApiKey":[]}],"summary":"Create a stream (saved search with notifications)","tags":["Call Intelligence"],"x-api-key-scopes":["*"]}},"/v1/calls/saved/streams":{"get":{"operationId":"callIntelligence_getStreams","parameters":[],"responses":{"200":{"description":""},"401":{"$ref":"#/components/responses/Unauthorized"},"403":{"$ref":"#/components/responses/Forbidden"},"429":{"$ref":"#/components/responses/TooManyRequests"},"500":{"$ref":"#/components/responses/ServerError"}},"security":[{"JWT":[]},{"ApiKey":[]}],"tags":["Call Intelligence"],"summary":"Get streams","x-api-key-scopes":["*"]}},"/v1/calls/searches/{id}":{"delete":{"operationId":"callIntelligence_deleteSearch","parameters":[{"name":"id","required":true,"in":"path","schema":{"type":"string"}}],"responses":{"200":{"description":""},"400":{"$ref":"#/components/responses/BadRequest"},"401":{"$ref":"#/components/responses/Unauthorized"},"403":{"$ref":"#/components/responses/Forbidden"},"404":{"$ref":"#/components/responses/NotFound"},"429":{"$ref":"#/components/responses/TooManyRequests"},"500":{"$ref":"#/components/responses/ServerError"}},"security":[{"JWT":[]},{"ApiKey":[]}],"tags":["Call Intelligence"],"summary":"Delete search","x-api-key-scopes":["*"]}},"/v1/calls/trackers/{id}":{"delete":{"operationId":"callIntelligence_deleteTracker","parameters":[{"name":"id","required":true,"in":"path","schema":{"type":"string"}}],"responses":{"200":{"description":""},"400":{"$ref":"#/components/responses/BadRequest"},"401":{"$ref":"#/components/responses/Unauthorized"},"403":{"$ref":"#/components/responses/Forbidden"},"404":{"$ref":"#/components/responses/NotFound"},"429":{"$ref":"#/components/responses/TooManyRequests"},"500":{"$ref":"#/components/responses/ServerError"}},"security":[{"JWT":[]},{"ApiKey":[]}],"tags":["Call Intelligence"],"summary":"Delete tracker","x-api-key-scopes":["*"]}},"/v1/calls/streams/{id}":{"delete":{"operationId":"callIntelligence_deleteStream","parameters":[{"name":"id","required":true,"in":"path","schema":{"type":"string"}}],"responses":{"200":{"description":""},"400":{"$ref":"#/components/responses/BadRequest"},"401":{"$ref":"#/components/responses/Unauthorized"},"403":{"$ref":"#/components/responses/Forbidden"},"404":{"$ref":"#/components/responses/NotFound"},"429":{"$ref":"#/components/responses/TooManyRequests"},"500":{"$ref":"#/components/responses/ServerError"}},"security":[{"JWT":[]},{"ApiKey":[]}],"tags":["Call Intelligence"],"summary":"Delete stream","x-api-key-scopes":["*"]}},"/v1/calls/{callId}":{"get":{"operationId":"callIntelligence_getCallDetails","parameters":[{"name":"callId","required":true,"in":"path","schema":{"type":"string"}}],"responses":{"200":{"description":"","content":{"application/json":{"schema":{"type":"object"}}}},"400":{"$ref":"#/components/responses/BadRequest"},"401":{"$ref":"#/components/responses/Unauthorized"},"403":{"$ref":"#/components/responses/Forbidden"},"404":{"$ref":"#/components/responses/NotFound"},"429":{"$ref":"#/components/responses/TooManyRequests"},"500":{"$ref":"#/components/responses/ServerError"}},"security":[{"JWT":[]},{"ApiKey":[]}],"summary":"Get call details with full transcript\nNOTE: This route must come after all fixed routes to avoid conflicts","tags":["Call Intelligence"],"x-api-key-scopes":["*"]}},"/v1/calls/{callId}/analyze":{"get":{"operationId":"callIntelligence_analyzeCall","parameters":[{"name":"callId","required":true,"in":"path","schema":{"type":"string"}}],"responses":{"200":{"description":""},"400":{"$ref":"#/components/responses/BadRequest"},"401":{"$ref":"#/components/responses/Unauthorized"},"403":{"$ref":"#/components/responses/Forbidden"},"404":{"$ref":"#/components/responses/NotFound"},"429":{"$ref":"#/components/responses/TooManyRequests"},"500":{"$ref":"#/components/responses/ServerError"}},"security":[{"JWT":[]},{"ApiKey":[]}],"summary":"AI-powered call analysis","tags":["Call Intelligence"],"x-api-key-scopes":["*"]}},"/v1/leads":{"post":{"operationId":"leads_create","parameters":[{"$ref":"#/components/parameters/IdempotencyKey"}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/CreateLeadDto"}}}},"responses":{"201":{"description":"Lead","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Lead"}}}},"400":{"$ref":"#/components/responses/BadRequest"},"401":{"$ref":"#/components/responses/Unauthorized"},"403":{"$ref":"#/components/responses/Forbidden"},"409":{"$ref":"#/components/responses/Conflict"},"429":{"$ref":"#/components/responses/TooManyRequests"},"500":{"$ref":"#/components/responses/ServerError"}},"security":[{"JWT":[]},{"ApiKey":[]}],"tags":["Leads"],"summary":"Create","x-api-key-scopes":["WRITE_LEADS"]},"get":{"operationId":"leads_findAll","parameters":[{"name":"status","required":false,"in":"query","schema":{"type":"string"}},{"name":"rating","required":false,"in":"query","schema":{"type":"string"}},{"name":"leadSource","required":false,"in":"query","schema":{"type":"string"}},{"name":"minScore","required":false,"in":"query","schema":{"type":"string"}},{"name":"cursor","required":false,"in":"query","schema":{"type":"string"}},{"name":"limit","required":false,"in":"query","schema":{"type":"string"}},{"name":"search","required":false,"in":"query","schema":{"type":"string"}},{"name":"name","required":false,"in":"query","schema":{"type":"string"}},{"name":"page","required":false,"in":"query","schema":{"type":"string"}},{"name":"sortBy","required":false,"in":"query","schema":{"type":"string"}},{"name":"sortOrder","required":false,"in":"query","schema":{"type":"string"}},{"name":"untouched","required":false,"in":"query","schema":{"type":"string"}},{"name":"owner","required":false,"in":"query","schema":{"type":"string"}},{"name":"createdAfter","required":false,"in":"query","schema":{"type":"string"}},{"name":"ids","required":false,"in":"query","schema":{"type":"string"}},{"name":"open","required":false,"in":"query","schema":{"type":"string"}},{"name":"customFields","required":false,"in":"query","schema":{"type":"string"}},{"name":"withCustomFields","required":false,"in":"query","schema":{"type":"string"}}],"responses":{"200":{"description":"LeadList","content":{"application/json":{"schema":{"$ref":"#/components/schemas/LeadList"}}}},"400":{"$ref":"#/components/responses/BadRequest"},"401":{"$ref":"#/components/responses/Unauthorized"},"403":{"$ref":"#/components/responses/Forbidden"},"429":{"$ref":"#/components/responses/TooManyRequests"},"500":{"$ref":"#/components/responses/ServerError"}},"security":[{"JWT":[]},{"ApiKey":[]}],"tags":["Leads"],"summary":"List","x-api-key-scopes":["READ_LEADS"]}},"/v1/leads/stats":{"get":{"operationId":"leads_getStats","parameters":[],"responses":{"200":{"description":""},"401":{"$ref":"#/components/responses/Unauthorized"},"403":{"$ref":"#/components/responses/Forbidden"},"429":{"$ref":"#/components/responses/TooManyRequests"},"500":{"$ref":"#/components/responses/ServerError"}},"security":[{"JWT":[]},{"ApiKey":[]}],"tags":["Leads"],"summary":"Get stats","x-api-key-scopes":["READ_LEADS"]}},"/v1/leads/stats/speed-to-lead":{"get":{"operationId":"leads_getSpeedToLead","parameters":[{"name":"days","required":false,"in":"query","schema":{"type":"string"}}],"responses":{"200":{"description":""},"400":{"$ref":"#/components/responses/BadRequest"},"401":{"$ref":"#/components/responses/Unauthorized"},"403":{"$ref":"#/components/responses/Forbidden"},"429":{"$ref":"#/components/responses/TooManyRequests"},"500":{"$ref":"#/components/responses/ServerError"}},"security":[{"JWT":[]},{"ApiKey":[]}],"tags":["Leads"],"summary":"Get speed to lead","x-api-key-scopes":["READ_LEADS"]}},"/v1/leads/deleted":{"get":{"operationId":"leads_listDeleted","parameters":[],"responses":{"200":{"description":"LeadArray","content":{"application/json":{"schema":{"$ref":"#/components/schemas/LeadArray"}}}},"401":{"$ref":"#/components/responses/Unauthorized"},"403":{"$ref":"#/components/responses/Forbidden"},"429":{"$ref":"#/components/responses/TooManyRequests"},"500":{"$ref":"#/components/responses/ServerError"}},"security":[{"JWT":[]},{"ApiKey":[]}],"tags":["Leads"],"summary":"List deleted","x-api-key-scopes":["READ_LEADS"]}},"/v1/leads/{id}":{"get":{"operationId":"leads_findOne","parameters":[{"name":"id","required":true,"in":"path","schema":{"type":"string"}}],"responses":{"200":{"description":"Lead","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Lead"}}}},"400":{"$ref":"#/components/responses/BadRequest"},"401":{"$ref":"#/components/responses/Unauthorized"},"403":{"$ref":"#/components/responses/Forbidden"},"404":{"$ref":"#/components/responses/NotFound"},"429":{"$ref":"#/components/responses/TooManyRequests"},"500":{"$ref":"#/components/responses/ServerError"}},"security":[{"JWT":[]},{"ApiKey":[]}],"tags":["Leads"],"summary":"Find one","x-api-key-scopes":["READ_LEADS"]},"patch":{"operationId":"leads_update","parameters":[{"name":"id","required":true,"in":"path","schema":{"type":"string"}},{"$ref":"#/components/parameters/IdempotencyKey"}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/UpdateLeadDto"}}}},"responses":{"200":{"description":"Lead","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Lead"}}}},"400":{"$ref":"#/components/responses/BadRequest"},"401":{"$ref":"#/components/responses/Unauthorized"},"403":{"$ref":"#/components/responses/Forbidden"},"404":{"$ref":"#/components/responses/NotFound"},"409":{"$ref":"#/components/responses/Conflict"},"429":{"$ref":"#/components/responses/TooManyRequests"},"500":{"$ref":"#/components/responses/ServerError"}},"security":[{"JWT":[]},{"ApiKey":[]}],"tags":["Leads"],"summary":"Update","x-api-key-scopes":["WRITE_LEADS"]},"delete":{"operationId":"leads_remove","parameters":[{"name":"id","required":true,"in":"path","schema":{"type":"string"}}],"responses":{"200":{"description":"MessageResponse","content":{"application/json":{"schema":{"$ref":"#/components/schemas/MessageResponse"}}}},"400":{"$ref":"#/components/responses/BadRequest"},"401":{"$ref":"#/components/responses/Unauthorized"},"403":{"$ref":"#/components/responses/Forbidden"},"404":{"$ref":"#/components/responses/NotFound"},"429":{"$ref":"#/components/responses/TooManyRequests"},"500":{"$ref":"#/components/responses/ServerError"}},"security":[{"JWT":[]},{"ApiKey":[]}],"tags":["Leads"],"summary":"Remove","x-api-key-scopes":["WRITE_LEADS"]}},"/v1/leads/{id}/restore":{"post":{"operationId":"leads_restore","parameters":[{"name":"id","required":true,"in":"path","schema":{"type":"string"}},{"$ref":"#/components/parameters/IdempotencyKey"}],"responses":{"201":{"description":"Lead","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Lead"}}}},"400":{"$ref":"#/components/responses/BadRequest"},"401":{"$ref":"#/components/responses/Unauthorized"},"403":{"$ref":"#/components/responses/Forbidden"},"404":{"$ref":"#/components/responses/NotFound"},"409":{"$ref":"#/components/responses/Conflict"},"429":{"$ref":"#/components/responses/TooManyRequests"},"500":{"$ref":"#/components/responses/ServerError"}},"security":[{"JWT":[]},{"ApiKey":[]}],"tags":["Leads"],"summary":"Restore","x-api-key-scopes":["WRITE_LEADS"]}},"/v1/leads/{id}/score":{"post":{"operationId":"leads_scoreLead","parameters":[{"name":"id","required":true,"in":"path","schema":{"type":"string"}},{"$ref":"#/components/parameters/IdempotencyKey"}],"responses":{"201":{"description":""},"400":{"$ref":"#/components/responses/BadRequest"},"401":{"$ref":"#/components/responses/Unauthorized"},"403":{"$ref":"#/components/responses/Forbidden"},"404":{"$ref":"#/components/responses/NotFound"},"409":{"$ref":"#/components/responses/Conflict"},"429":{"$ref":"#/components/responses/TooManyRequests"},"500":{"$ref":"#/components/responses/ServerError"}},"security":[{"JWT":[]},{"ApiKey":[]}],"tags":["Leads"],"summary":"Score lead","x-api-key-scopes":["WRITE_LEADS"]}},"/v1/leads/{id}/convert":{"post":{"operationId":"leads_convertLead","parameters":[{"name":"id","required":true,"in":"path","schema":{"type":"string"}},{"$ref":"#/components/parameters/IdempotencyKey"}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ConvertLeadDto"}}}},"responses":{"201":{"description":"LeadConversionResult","content":{"application/json":{"schema":{"$ref":"#/components/schemas/LeadConversionResult"}}}},"400":{"$ref":"#/components/responses/BadRequest"},"401":{"$ref":"#/components/responses/Unauthorized"},"403":{"$ref":"#/components/responses/Forbidden"},"404":{"$ref":"#/components/responses/NotFound"},"409":{"$ref":"#/components/responses/Conflict"},"429":{"$ref":"#/components/responses/TooManyRequests"},"500":{"$ref":"#/components/responses/ServerError"}},"security":[{"JWT":[]},{"ApiKey":[]}],"tags":["Leads"],"summary":"Convert lead","x-api-key-scopes":["WRITE_LEADS"]}},"/v1/leads/bulk/update":{"post":{"operationId":"leads_bulkUpdate","parameters":[{"$ref":"#/components/parameters/IdempotencyKey"}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/BulkUpdateBody"}}}},"responses":{"201":{"description":"BulkActionResult","content":{"application/json":{"schema":{"$ref":"#/components/schemas/BulkActionResult"}}}},"400":{"$ref":"#/components/responses/BadRequest"},"401":{"$ref":"#/components/responses/Unauthorized"},"403":{"$ref":"#/components/responses/Forbidden"},"409":{"$ref":"#/components/responses/Conflict"},"429":{"$ref":"#/components/responses/TooManyRequests"},"500":{"$ref":"#/components/responses/ServerError"}},"security":[{"JWT":[]},{"ApiKey":[]}],"tags":["Leads"],"summary":"Bulk update","x-api-key-scopes":["WRITE_LEADS"]}},"/v1/leads/bulk/delete":{"post":{"operationId":"leads_bulkDelete","parameters":[{"$ref":"#/components/parameters/IdempotencyKey"}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/BulkDeleteBody"}}}},"responses":{"201":{"description":"BulkActionResult","content":{"application/json":{"schema":{"$ref":"#/components/schemas/BulkActionResult"}}}},"400":{"$ref":"#/components/responses/BadRequest"},"401":{"$ref":"#/components/responses/Unauthorized"},"403":{"$ref":"#/components/responses/Forbidden"},"409":{"$ref":"#/components/responses/Conflict"},"429":{"$ref":"#/components/responses/TooManyRequests"},"500":{"$ref":"#/components/responses/ServerError"}},"security":[{"JWT":[]},{"ApiKey":[]}],"tags":["Leads"],"summary":"Bulk delete","x-api-key-scopes":["WRITE_LEADS"]}},"/v1/leads/bulk/assign":{"post":{"operationId":"leads_bulkAssign","parameters":[{"$ref":"#/components/parameters/IdempotencyKey"}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/BulkAssignBody"}}}},"responses":{"201":{"description":"BulkActionResult","content":{"application/json":{"schema":{"$ref":"#/components/schemas/BulkActionResult"}}}},"400":{"$ref":"#/components/responses/BadRequest"},"401":{"$ref":"#/components/responses/Unauthorized"},"403":{"$ref":"#/components/responses/Forbidden"},"409":{"$ref":"#/components/responses/Conflict"},"429":{"$ref":"#/components/responses/TooManyRequests"},"500":{"$ref":"#/components/responses/ServerError"}},"security":[{"JWT":[]},{"ApiKey":[]}],"tags":["Leads"],"summary":"Bulk assign","x-api-key-scopes":["WRITE_LEADS"]}},"/v1/enrichment/lead/{id}":{"post":{"description":"Enriches a lead with data from configured enrichment providers (ZoomInfo, Apollo, Clearbit)","operationId":"enrichment_enrichLead","parameters":[{"name":"id","required":true,"in":"path","description":"Lead ID to enrich","schema":{"type":"string"}},{"name":"provider","required":false,"in":"query","description":"Specific provider to use (optional)","schema":{"enum":["zoominfo","apollo","clearbit"],"type":"string"}},{"name":"force","required":false,"in":"query","description":"Force re-enrichment even if recently enriched","schema":{"type":"boolean"}},{"$ref":"#/components/parameters/IdempotencyKey"}],"responses":{"200":{"description":"Lead enriched successfully"},"400":{"$ref":"#/components/responses/BadRequest"},"401":{"$ref":"#/components/responses/Unauthorized"},"403":{"$ref":"#/components/responses/Forbidden"},"404":{"description":"Lead not found"},"409":{"$ref":"#/components/responses/Conflict"},"429":{"$ref":"#/components/responses/TooManyRequests"},"500":{"$ref":"#/components/responses/ServerError"}},"security":[{"JWT":[]},{"ApiKey":[]}],"summary":"Enrich a single lead","tags":["Data Enrichment"],"x-api-key-scopes":["*"]}},"/v1/enrichment/contact/{id}":{"post":{"description":"Enriches a contact with data from configured enrichment providers","operationId":"enrichment_enrichContact","parameters":[{"name":"id","required":true,"in":"path","description":"Contact ID to enrich","schema":{"type":"string"}},{"name":"provider","required":false,"in":"query","description":"Specific provider to use (optional)","schema":{"enum":["zoominfo","apollo","clearbit"],"type":"string"}},{"name":"force","required":false,"in":"query","description":"Force re-enrichment even if recently enriched","schema":{"type":"boolean"}},{"$ref":"#/components/parameters/IdempotencyKey"}],"responses":{"200":{"description":"Contact enriched successfully"},"400":{"$ref":"#/components/responses/BadRequest"},"401":{"$ref":"#/components/responses/Unauthorized"},"403":{"$ref":"#/components/responses/Forbidden"},"404":{"description":"Contact not found"},"409":{"$ref":"#/components/responses/Conflict"},"429":{"$ref":"#/components/responses/TooManyRequests"},"500":{"$ref":"#/components/responses/ServerError"}},"security":[{"JWT":[]},{"ApiKey":[]}],"summary":"Enrich a single contact","tags":["Data Enrichment"],"x-api-key-scopes":["*"]}},"/v1/enrichment/account/{id}":{"post":{"description":"Enriches an account with company data from configured enrichment providers","operationId":"enrichment_enrichAccount","parameters":[{"name":"id","required":true,"in":"path","description":"Account ID to enrich","schema":{"type":"string"}},{"name":"provider","required":false,"in":"query","description":"Specific provider to use (optional)","schema":{"enum":["zoominfo","apollo","clearbit"],"type":"string"}},{"name":"force","required":false,"in":"query","description":"Force re-enrichment even if recently enriched","schema":{"type":"boolean"}},{"$ref":"#/components/parameters/IdempotencyKey"}],"responses":{"200":{"description":"Account enriched successfully"},"400":{"$ref":"#/components/responses/BadRequest"},"401":{"$ref":"#/components/responses/Unauthorized"},"403":{"$ref":"#/components/responses/Forbidden"},"404":{"description":"Account not found"},"409":{"$ref":"#/components/responses/Conflict"},"429":{"$ref":"#/components/responses/TooManyRequests"},"500":{"$ref":"#/components/responses/ServerError"}},"security":[{"JWT":[]},{"ApiKey":[]}],"summary":"Enrich a single account","tags":["Data Enrichment"],"x-api-key-scopes":["*"]}},"/v1/enrichment/bulk":{"post":{"description":"Enriches multiple leads, contacts, or accounts in a single request","operationId":"enrichment_bulkEnrich","parameters":[{"$ref":"#/components/parameters/IdempotencyKey"}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/BulkEnrichDto"}}}},"responses":{"200":{"description":"Bulk enrichment completed"},"400":{"description":"Invalid request"},"401":{"$ref":"#/components/responses/Unauthorized"},"403":{"$ref":"#/components/responses/Forbidden"},"409":{"$ref":"#/components/responses/Conflict"},"429":{"$ref":"#/components/responses/TooManyRequests"},"500":{"$ref":"#/components/responses/ServerError"}},"security":[{"JWT":[]},{"ApiKey":[]}],"summary":"Bulk enrich multiple entities","tags":["Data Enrichment"],"x-api-key-scopes":["*"]}},"/v1/enrichment/status":{"get":{"description":"Returns the connection status of all configured enrichment providers","operationId":"enrichment_getStatus","parameters":[],"responses":{"200":{"description":"Provider status retrieved","content":{"application/json":{"schema":{"type":"object","properties":{"providers":{"type":"array","items":{"type":"object","properties":{"provider":{"type":"string","enum":["zoominfo","apollo","clearbit"]},"connected":{"type":"boolean"},"configured":{"type":"boolean"},"status":{"type":"string"},"error":{"type":"string"}}}},"bestProvider":{"type":"string","nullable":true}}}}}},"401":{"$ref":"#/components/responses/Unauthorized"},"403":{"$ref":"#/components/responses/Forbidden"},"429":{"$ref":"#/components/responses/TooManyRequests"},"500":{"$ref":"#/components/responses/ServerError"}},"security":[{"JWT":[]},{"ApiKey":[]}],"summary":"Get enrichment provider status","tags":["Data Enrichment"],"x-api-key-scopes":["*"]}},"/v1/enrichment/providers":{"get":{"description":"Returns a list of all enrichment providers with their capabilities","operationId":"enrichment_listProviders","parameters":[],"responses":{"200":{"description":"Providers list retrieved"},"401":{"$ref":"#/components/responses/Unauthorized"},"403":{"$ref":"#/components/responses/Forbidden"},"429":{"$ref":"#/components/responses/TooManyRequests"},"500":{"$ref":"#/components/responses/ServerError"}},"security":[{"JWT":[]},{"ApiKey":[]}],"summary":"List available enrichment providers","tags":["Data Enrichment"],"x-api-key-scopes":["*"]}},"/v1/enrichment/test":{"post":{"description":"Tests connectivity to enrichment providers using a sample lookup","operationId":"enrichment_testConnection","parameters":[{"name":"provider","required":false,"in":"query","description":"Specific provider to test (tests all if not specified)","schema":{"enum":["zoominfo","apollo","clearbit"],"type":"string"}},{"$ref":"#/components/parameters/IdempotencyKey"}],"responses":{"200":{"description":"Connection test results"},"400":{"$ref":"#/components/responses/BadRequest"},"401":{"$ref":"#/components/responses/Unauthorized"},"403":{"$ref":"#/components/responses/Forbidden"},"409":{"$ref":"#/components/responses/Conflict"},"429":{"$ref":"#/components/responses/TooManyRequests"},"500":{"$ref":"#/components/responses/ServerError"}},"security":[{"JWT":[]},{"ApiKey":[]}],"summary":"Test enrichment provider connection","tags":["Data Enrichment"],"x-api-key-scopes":["*"]}},"/v1/enrichment/test/{provider}":{"post":{"description":"Tests connectivity to a specific enrichment provider","operationId":"enrichment_testSpecificProvider","parameters":[{"name":"provider","required":true,"in":"path","description":"Provider to test","schema":{"enum":["zoominfo","apollo","clearbit"],"type":"string"}},{"$ref":"#/components/parameters/IdempotencyKey"}],"responses":{"200":{"description":"Connection test result"},"400":{"$ref":"#/components/responses/BadRequest"},"401":{"$ref":"#/components/responses/Unauthorized"},"403":{"$ref":"#/components/responses/Forbidden"},"404":{"$ref":"#/components/responses/NotFound"},"409":{"$ref":"#/components/responses/Conflict"},"429":{"$ref":"#/components/responses/TooManyRequests"},"500":{"$ref":"#/components/responses/ServerError"}},"security":[{"JWT":[]},{"ApiKey":[]}],"summary":"Test specific enrichment provider","tags":["Data Enrichment"],"x-api-key-scopes":["*"]}},"/v1/enrichment/preview/lead/{id}":{"post":{"description":"Shows what data would be enriched without actually updating the lead","operationId":"enrichment_previewLeadEnrichment","parameters":[{"name":"id","required":true,"in":"path","description":"Lead ID to preview enrichment for","schema":{"type":"string"}},{"$ref":"#/components/parameters/IdempotencyKey"}],"responses":{"200":{"description":"Enrichment preview returned"},"400":{"$ref":"#/components/responses/BadRequest"},"401":{"$ref":"#/components/responses/Unauthorized"},"403":{"$ref":"#/components/responses/Forbidden"},"404":{"description":"Lead not found"},"409":{"$ref":"#/components/responses/Conflict"},"429":{"$ref":"#/components/responses/TooManyRequests"},"500":{"$ref":"#/components/responses/ServerError"}},"security":[{"JWT":[]},{"ApiKey":[]}],"summary":"Preview lead enrichment","tags":["Data Enrichment"],"x-api-key-scopes":["*"]}},"/v1/enrichment/preview/contact/{id}":{"post":{"description":"Shows what data would be enriched without actually updating the contact","operationId":"enrichment_previewContactEnrichment","parameters":[{"name":"id","required":true,"in":"path","description":"Contact ID to preview enrichment for","schema":{"type":"string"}},{"$ref":"#/components/parameters/IdempotencyKey"}],"responses":{"200":{"description":"Enrichment preview returned"},"400":{"$ref":"#/components/responses/BadRequest"},"401":{"$ref":"#/components/responses/Unauthorized"},"403":{"$ref":"#/components/responses/Forbidden"},"404":{"description":"Contact not found"},"409":{"$ref":"#/components/responses/Conflict"},"429":{"$ref":"#/components/responses/TooManyRequests"},"500":{"$ref":"#/components/responses/ServerError"}},"security":[{"JWT":[]},{"ApiKey":[]}],"summary":"Preview contact enrichment","tags":["Data Enrichment"],"x-api-key-scopes":["*"]}},"/v1/enrichment/preview/account/{id}":{"post":{"description":"Shows what data would be enriched without actually updating the account","operationId":"enrichment_previewAccountEnrichment","parameters":[{"name":"id","required":true,"in":"path","description":"Account ID to preview enrichment for","schema":{"type":"string"}},{"$ref":"#/components/parameters/IdempotencyKey"}],"responses":{"200":{"description":"Enrichment preview returned"},"400":{"$ref":"#/components/responses/BadRequest"},"401":{"$ref":"#/components/responses/Unauthorized"},"403":{"$ref":"#/components/responses/Forbidden"},"404":{"description":"Account not found"},"409":{"$ref":"#/components/responses/Conflict"},"429":{"$ref":"#/components/responses/TooManyRequests"},"500":{"$ref":"#/components/responses/ServerError"}},"security":[{"JWT":[]},{"ApiKey":[]}],"summary":"Preview account enrichment","tags":["Data Enrichment"],"x-api-key-scopes":["*"]}},"/v1/workflows/config":{"get":{"operationId":"workflows_getConfiguration","parameters":[],"responses":{"200":{"description":""},"401":{"$ref":"#/components/responses/Unauthorized"},"403":{"$ref":"#/components/responses/Forbidden"},"429":{"$ref":"#/components/responses/TooManyRequests"},"500":{"$ref":"#/components/responses/ServerError"}},"security":[{"JWT":[]},{"ApiKey":[]}],"summary":"Get workflow configuration options (trigger types, action types, etc.)","tags":["Workflows"],"x-api-key-scopes":["*"]}},"/v1/workflows/stats":{"get":{"operationId":"workflows_getStats","parameters":[],"responses":{"200":{"description":"","content":{"application/json":{"schema":{"type":"object"}}}},"401":{"$ref":"#/components/responses/Unauthorized"},"403":{"$ref":"#/components/responses/Forbidden"},"429":{"$ref":"#/components/responses/TooManyRequests"},"500":{"$ref":"#/components/responses/ServerError"}},"security":[{"JWT":[]},{"ApiKey":[]}],"summary":"Get workflow statistics","tags":["Workflows"],"x-api-key-scopes":["*"]}},"/v1/workflows":{"get":{"operationId":"workflows_findAll","parameters":[{"name":"status","required":false,"in":"query","schema":{"type":"string","enum":["ACTIVE","INACTIVE","DRAFT"]}},{"name":"triggerType","required":false,"in":"query","schema":{"type":"string","enum":["RECORD_CREATED","RECORD_UPDATED","RECORD_DELETED","FIELD_CHANGED","STAGE_CHANGED","TIME_BASED","WEBHOOK","MANUAL"]}},{"name":"triggerEntity","required":false,"in":"query","schema":{"$ref":"#/components/schemas/Object"}},{"name":"limit","required":false,"in":"query","schema":{"type":"number"}},{"name":"offset","required":false,"in":"query","schema":{"type":"number"}}],"responses":{"200":{"description":""},"400":{"$ref":"#/components/responses/BadRequest"},"401":{"$ref":"#/components/responses/Unauthorized"},"403":{"$ref":"#/components/responses/Forbidden"},"429":{"$ref":"#/components/responses/TooManyRequests"},"500":{"$ref":"#/components/responses/ServerError"}},"security":[{"JWT":[]},{"ApiKey":[]}],"summary":"List all workflows","tags":["Workflows"],"x-api-key-scopes":["*"]},"post":{"operationId":"workflows_create","parameters":[{"$ref":"#/components/parameters/IdempotencyKey"}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/CreateWorkflowDto"}}}},"responses":{"201":{"description":"","content":{"application/json":{"schema":{"type":"object"}}}},"400":{"$ref":"#/components/responses/BadRequest"},"401":{"$ref":"#/components/responses/Unauthorized"},"403":{"$ref":"#/components/responses/Forbidden"},"409":{"$ref":"#/components/responses/Conflict"},"429":{"$ref":"#/components/responses/TooManyRequests"},"500":{"$ref":"#/components/responses/ServerError"}},"security":[{"JWT":[]},{"ApiKey":[]}],"summary":"Create a new workflow","tags":["Workflows"],"x-api-key-scopes":["*"]}},"/v1/workflows/executions":{"get":{"operationId":"workflows_getExecutions","parameters":[{"name":"workflowId","required":false,"in":"query","schema":{"type":"string"}},{"name":"status","required":false,"in":"query","schema":{"type":"string","enum":["PENDING","RUNNING","COMPLETED","FAILED","CANCELLED"]}},{"name":"entityType","required":false,"in":"query","schema":{"type":"string"}},{"name":"entityId","required":false,"in":"query","schema":{"type":"string"}},{"name":"limit","required":false,"in":"query","schema":{"type":"number"}},{"name":"offset","required":false,"in":"query","schema":{"type":"number"}}],"responses":{"200":{"description":""},"400":{"$ref":"#/components/responses/BadRequest"},"401":{"$ref":"#/components/responses/Unauthorized"},"403":{"$ref":"#/components/responses/Forbidden"},"429":{"$ref":"#/components/responses/TooManyRequests"},"500":{"$ref":"#/components/responses/ServerError"}},"security":[{"JWT":[]},{"ApiKey":[]}],"summary":"Get execution history","tags":["Workflows"],"x-api-key-scopes":["*"]}},"/v1/workflows/{id}":{"get":{"operationId":"workflows_findOne","parameters":[{"name":"id","required":true,"in":"path","schema":{"type":"string"}}],"responses":{"200":{"description":"","content":{"application/json":{"schema":{"type":"object"}}}},"400":{"$ref":"#/components/responses/BadRequest"},"401":{"$ref":"#/components/responses/Unauthorized"},"403":{"$ref":"#/components/responses/Forbidden"},"404":{"$ref":"#/components/responses/NotFound"},"429":{"$ref":"#/components/responses/TooManyRequests"},"500":{"$ref":"#/components/responses/ServerError"}},"security":[{"JWT":[]},{"ApiKey":[]}],"summary":"Get a single workflow by ID","tags":["Workflows"],"x-api-key-scopes":["*"]},"put":{"operationId":"workflows_update","parameters":[{"name":"id","required":true,"in":"path","schema":{"type":"string"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/UpdateWorkflowDto"}}}},"responses":{"200":{"description":"","content":{"application/json":{"schema":{"type":"object"}}}},"400":{"$ref":"#/components/responses/BadRequest"},"401":{"$ref":"#/components/responses/Unauthorized"},"403":{"$ref":"#/components/responses/Forbidden"},"404":{"$ref":"#/components/responses/NotFound"},"429":{"$ref":"#/components/responses/TooManyRequests"},"500":{"$ref":"#/components/responses/ServerError"}},"security":[{"JWT":[]},{"ApiKey":[]}],"summary":"Update a workflow","tags":["Workflows"],"x-api-key-scopes":["*"]},"delete":{"operationId":"workflows_delete","parameters":[{"name":"id","required":true,"in":"path","schema":{"type":"string"}}],"responses":{"204":{"description":""},"400":{"$ref":"#/components/responses/BadRequest"},"401":{"$ref":"#/components/responses/Unauthorized"},"403":{"$ref":"#/components/responses/Forbidden"},"404":{"$ref":"#/components/responses/NotFound"},"429":{"$ref":"#/components/responses/TooManyRequests"},"500":{"$ref":"#/components/responses/ServerError"}},"security":[{"JWT":[]},{"ApiKey":[]}],"summary":"Delete a workflow","tags":["Workflows"],"x-api-key-scopes":["*"]}},"/v1/workflows/{id}/activate":{"post":{"operationId":"workflows_activate","parameters":[{"name":"id","required":true,"in":"path","schema":{"type":"string"}},{"$ref":"#/components/parameters/IdempotencyKey"}],"responses":{"201":{"description":"","content":{"application/json":{"schema":{"type":"object"}}}},"400":{"$ref":"#/components/responses/BadRequest"},"401":{"$ref":"#/components/responses/Unauthorized"},"403":{"$ref":"#/components/responses/Forbidden"},"404":{"$ref":"#/components/responses/NotFound"},"409":{"$ref":"#/components/responses/Conflict"},"429":{"$ref":"#/components/responses/TooManyRequests"},"500":{"$ref":"#/components/responses/ServerError"}},"security":[{"JWT":[]},{"ApiKey":[]}],"summary":"Activate a workflow","tags":["Workflows"],"x-api-key-scopes":["*"]}},"/v1/workflows/{id}/deactivate":{"post":{"operationId":"workflows_deactivate","parameters":[{"name":"id","required":true,"in":"path","schema":{"type":"string"}},{"$ref":"#/components/parameters/IdempotencyKey"}],"responses":{"201":{"description":"","content":{"application/json":{"schema":{"type":"object"}}}},"400":{"$ref":"#/components/responses/BadRequest"},"401":{"$ref":"#/components/responses/Unauthorized"},"403":{"$ref":"#/components/responses/Forbidden"},"404":{"$ref":"#/components/responses/NotFound"},"409":{"$ref":"#/components/responses/Conflict"},"429":{"$ref":"#/components/responses/TooManyRequests"},"500":{"$ref":"#/components/responses/ServerError"}},"security":[{"JWT":[]},{"ApiKey":[]}],"summary":"Deactivate a workflow","tags":["Workflows"],"x-api-key-scopes":["*"]}},"/v1/workflows/trigger":{"post":{"operationId":"workflows_trigger","parameters":[{"$ref":"#/components/parameters/IdempotencyKey"}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/TriggerWorkflowDto"}}}},"responses":{"201":{"description":"","content":{"application/json":{"schema":{"type":"object"}}}},"400":{"$ref":"#/components/responses/BadRequest"},"401":{"$ref":"#/components/responses/Unauthorized"},"403":{"$ref":"#/components/responses/Forbidden"},"409":{"$ref":"#/components/responses/Conflict"},"429":{"$ref":"#/components/responses/TooManyRequests"},"500":{"$ref":"#/components/responses/ServerError"}},"security":[{"JWT":[]},{"ApiKey":[]}],"summary":"Manually trigger a workflow","tags":["Workflows"],"x-api-key-scopes":["*"]}},"/v1/workflows/{id}/executions":{"get":{"operationId":"workflows_getWorkflowExecutions","parameters":[{"name":"id","required":true,"in":"path","schema":{"type":"string"}},{"name":"workflowId","required":false,"in":"query","schema":{"type":"string"}},{"name":"status","required":false,"in":"query","schema":{"type":"string","enum":["PENDING","RUNNING","COMPLETED","FAILED","CANCELLED"]}},{"name":"entityType","required":false,"in":"query","schema":{"type":"string"}},{"name":"entityId","required":false,"in":"query","schema":{"type":"string"}},{"name":"limit","required":false,"in":"query","schema":{"type":"number"}},{"name":"offset","required":false,"in":"query","schema":{"type":"number"}}],"responses":{"200":{"description":""},"400":{"$ref":"#/components/responses/BadRequest"},"401":{"$ref":"#/components/responses/Unauthorized"},"403":{"$ref":"#/components/responses/Forbidden"},"404":{"$ref":"#/components/responses/NotFound"},"429":{"$ref":"#/components/responses/TooManyRequests"},"500":{"$ref":"#/components/responses/ServerError"}},"security":[{"JWT":[]},{"ApiKey":[]}],"summary":"Get executions for a specific workflow","tags":["Workflows"],"x-api-key-scopes":["*"]}},"/v1/notifications/preferences":{"get":{"operationId":"notifications_getPreferences","parameters":[],"responses":{"200":{"description":""},"401":{"$ref":"#/components/responses/Unauthorized"},"403":{"$ref":"#/components/responses/Forbidden"},"429":{"$ref":"#/components/responses/TooManyRequests"},"500":{"$ref":"#/components/responses/ServerError"}},"security":[{"JWT":[]},{"ApiKey":[]}],"tags":["Notifications"],"summary":"Get preferences","x-api-key-scopes":["*"]},"put":{"operationId":"notifications_updatePreferences","parameters":[],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/UpdateNotificationPreferencesDto"}}}},"responses":{"200":{"description":""},"400":{"$ref":"#/components/responses/BadRequest"},"401":{"$ref":"#/components/responses/Unauthorized"},"403":{"$ref":"#/components/responses/Forbidden"},"429":{"$ref":"#/components/responses/TooManyRequests"},"500":{"$ref":"#/components/responses/ServerError"}},"security":[{"JWT":[]},{"ApiKey":[]}],"tags":["Notifications"],"summary":"Update preferences","x-api-key-scopes":["*"]}},"/v1/notifications":{"get":{"operationId":"notifications_getUserNotifications","parameters":[{"name":"page","required":false,"in":"query","schema":{"type":"string"}},{"name":"pageSize","required":false,"in":"query","schema":{"type":"string"}},{"name":"unreadOnly","required":false,"in":"query","schema":{"type":"string"}}],"responses":{"200":{"description":""},"400":{"$ref":"#/components/responses/BadRequest"},"401":{"$ref":"#/components/responses/Unauthorized"},"403":{"$ref":"#/components/responses/Forbidden"},"429":{"$ref":"#/components/responses/TooManyRequests"},"500":{"$ref":"#/components/responses/ServerError"}},"security":[{"JWT":[]},{"ApiKey":[]}],"tags":["Notifications"],"summary":"Get user notifications","x-api-key-scopes":["*"]}},"/v1/notifications/{id}/read":{"post":{"operationId":"notifications_markAsRead","parameters":[{"name":"id","required":true,"in":"path","schema":{"type":"string"}},{"$ref":"#/components/parameters/IdempotencyKey"}],"responses":{"201":{"description":""},"400":{"$ref":"#/components/responses/BadRequest"},"401":{"$ref":"#/components/responses/Unauthorized"},"403":{"$ref":"#/components/responses/Forbidden"},"404":{"$ref":"#/components/responses/NotFound"},"409":{"$ref":"#/components/responses/Conflict"},"429":{"$ref":"#/components/responses/TooManyRequests"},"500":{"$ref":"#/components/responses/ServerError"}},"security":[{"JWT":[]},{"ApiKey":[]}],"tags":["Notifications"],"summary":"Mark as read","x-api-key-scopes":["*"]}},"/v1/notifications/read-all":{"post":{"operationId":"notifications_markAllAsRead","parameters":[{"$ref":"#/components/parameters/IdempotencyKey"}],"responses":{"201":{"description":"","content":{"application/json":{"schema":{"type":"object"}}}},"400":{"$ref":"#/components/responses/BadRequest"},"401":{"$ref":"#/components/responses/Unauthorized"},"403":{"$ref":"#/components/responses/Forbidden"},"409":{"$ref":"#/components/responses/Conflict"},"429":{"$ref":"#/components/responses/TooManyRequests"},"500":{"$ref":"#/components/responses/ServerError"}},"security":[{"JWT":[]},{"ApiKey":[]}],"tags":["Notifications"],"summary":"Mark all as read","x-api-key-scopes":["*"]}},"/v1/notifications/{id}":{"delete":{"operationId":"notifications_deleteNotification","parameters":[{"name":"id","required":true,"in":"path","schema":{"type":"string"}}],"responses":{"200":{"description":""},"400":{"$ref":"#/components/responses/BadRequest"},"401":{"$ref":"#/components/responses/Unauthorized"},"403":{"$ref":"#/components/responses/Forbidden"},"404":{"$ref":"#/components/responses/NotFound"},"429":{"$ref":"#/components/responses/TooManyRequests"},"500":{"$ref":"#/components/responses/ServerError"}},"security":[{"JWT":[]},{"ApiKey":[]}],"tags":["Notifications"],"summary":"Delete notification","x-api-key-scopes":["*"]}},"/v1/webhooks":{"post":{"operationId":"webhooksManagement_create","parameters":[],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/CreateWebhookDto"}}}},"responses":{"201":{"description":"WebhookWithSecret","content":{"application/json":{"schema":{"$ref":"#/components/schemas/WebhookWithSecret"}}}},"400":{"$ref":"#/components/responses/BadRequest"},"401":{"$ref":"#/components/responses/Unauthorized"},"403":{"$ref":"#/components/responses/Forbidden"},"429":{"$ref":"#/components/responses/TooManyRequests"},"500":{"$ref":"#/components/responses/ServerError"}},"security":[{"JWT":[]},{"ApiKey":[]}],"summary":"Create a new webhook","tags":["Webhooks"],"x-api-key-scopes":["WRITE_WEBHOOKS"]},"get":{"operationId":"webhooksManagement_findAll","parameters":[{"name":"isActive","required":false,"in":"query","schema":{"type":"boolean"}}],"responses":{"200":{"description":"WebhookViewArray","content":{"application/json":{"schema":{"$ref":"#/components/schemas/WebhookViewArray"}}}},"400":{"$ref":"#/components/responses/BadRequest"},"401":{"$ref":"#/components/responses/Unauthorized"},"403":{"$ref":"#/components/responses/Forbidden"},"429":{"$ref":"#/components/responses/TooManyRequests"},"500":{"$ref":"#/components/responses/ServerError"}},"security":[{"JWT":[]},{"ApiKey":[]}],"summary":"Get all webhooks for current user","tags":["Webhooks"],"x-api-key-scopes":["READ_WEBHOOKS"]}},"/v1/webhooks/events":{"get":{"operationId":"webhooksManagement_getAvailableEvents","parameters":[],"responses":{"200":{"description":"","content":{"application/json":{"schema":{"type":"array","items":{"type":"string"}}}}},"401":{"$ref":"#/components/responses/Unauthorized"},"403":{"$ref":"#/components/responses/Forbidden"},"429":{"$ref":"#/components/responses/TooManyRequests"},"500":{"$ref":"#/components/responses/ServerError"}},"security":[{"JWT":[]},{"ApiKey":[]}],"summary":"Get list of available webhook events","tags":["Webhooks"],"x-api-key-scopes":["READ_WEBHOOKS"]}},"/v1/webhooks/stats":{"get":{"operationId":"webhooksManagement_getStats","parameters":[],"responses":{"200":{"description":""},"401":{"$ref":"#/components/responses/Unauthorized"},"403":{"$ref":"#/components/responses/Forbidden"},"429":{"$ref":"#/components/responses/TooManyRequests"},"500":{"$ref":"#/components/responses/ServerError"}},"security":[{"JWT":[]},{"ApiKey":[]}],"summary":"Get webhook statistics","tags":["Webhooks"],"x-api-key-scopes":["READ_WEBHOOKS"]}},"/v1/webhooks/{id}":{"get":{"operationId":"webhooksManagement_findOne","parameters":[{"name":"id","required":true,"in":"path","schema":{"type":"string"}}],"responses":{"200":{"description":"WebhookWithSecret","content":{"application/json":{"schema":{"$ref":"#/components/schemas/WebhookWithSecret"}}}},"400":{"$ref":"#/components/responses/BadRequest"},"401":{"$ref":"#/components/responses/Unauthorized"},"403":{"$ref":"#/components/responses/Forbidden"},"404":{"$ref":"#/components/responses/NotFound"},"429":{"$ref":"#/components/responses/TooManyRequests"},"500":{"$ref":"#/components/responses/ServerError"}},"security":[{"JWT":[]},{"ApiKey":[]}],"summary":"Get a webhook by ID","tags":["Webhooks"],"x-api-key-scopes":["READ_WEBHOOKS"]},"patch":{"operationId":"webhooksManagement_update","parameters":[{"name":"id","required":true,"in":"path","schema":{"type":"string"}},{"$ref":"#/components/parameters/IdempotencyKey"}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/UpdateWebhookDto"}}}},"responses":{"200":{"description":"WebhookView","content":{"application/json":{"schema":{"$ref":"#/components/schemas/WebhookView"}}}},"400":{"$ref":"#/components/responses/BadRequest"},"401":{"$ref":"#/components/responses/Unauthorized"},"403":{"$ref":"#/components/responses/Forbidden"},"404":{"$ref":"#/components/responses/NotFound"},"409":{"$ref":"#/components/responses/Conflict"},"429":{"$ref":"#/components/responses/TooManyRequests"},"500":{"$ref":"#/components/responses/ServerError"}},"security":[{"JWT":[]},{"ApiKey":[]}],"summary":"Update a webhook","tags":["Webhooks"],"x-api-key-scopes":["WRITE_WEBHOOKS"]},"delete":{"operationId":"webhooksManagement_remove","parameters":[{"name":"id","required":true,"in":"path","schema":{"type":"string"}}],"responses":{"200":{"description":"SuccessResponse","content":{"application/json":{"schema":{"$ref":"#/components/schemas/SuccessResponse"}}}},"400":{"$ref":"#/components/responses/BadRequest"},"401":{"$ref":"#/components/responses/Unauthorized"},"403":{"$ref":"#/components/responses/Forbidden"},"404":{"$ref":"#/components/responses/NotFound"},"429":{"$ref":"#/components/responses/TooManyRequests"},"500":{"$ref":"#/components/responses/ServerError"}},"security":[{"JWT":[]},{"ApiKey":[]}],"summary":"Delete a webhook","tags":["Webhooks"],"x-api-key-scopes":["WRITE_WEBHOOKS"]}},"/v1/webhooks/{id}/activate":{"post":{"operationId":"webhooksManagement_activate","parameters":[{"name":"id","required":true,"in":"path","schema":{"type":"string"}},{"$ref":"#/components/parameters/IdempotencyKey"}],"responses":{"201":{"description":"WebhookView","content":{"application/json":{"schema":{"$ref":"#/components/schemas/WebhookView"}}}},"400":{"$ref":"#/components/responses/BadRequest"},"401":{"$ref":"#/components/responses/Unauthorized"},"403":{"$ref":"#/components/responses/Forbidden"},"404":{"$ref":"#/components/responses/NotFound"},"409":{"$ref":"#/components/responses/Conflict"},"429":{"$ref":"#/components/responses/TooManyRequests"},"500":{"$ref":"#/components/responses/ServerError"}},"security":[{"JWT":[]},{"ApiKey":[]}],"summary":"Activate a webhook","tags":["Webhooks"],"x-api-key-scopes":["WRITE_WEBHOOKS"]}},"/v1/webhooks/{id}/deactivate":{"post":{"operationId":"webhooksManagement_deactivate","parameters":[{"name":"id","required":true,"in":"path","schema":{"type":"string"}},{"$ref":"#/components/parameters/IdempotencyKey"}],"responses":{"201":{"description":"WebhookView","content":{"application/json":{"schema":{"$ref":"#/components/schemas/WebhookView"}}}},"400":{"$ref":"#/components/responses/BadRequest"},"401":{"$ref":"#/components/responses/Unauthorized"},"403":{"$ref":"#/components/responses/Forbidden"},"404":{"$ref":"#/components/responses/NotFound"},"409":{"$ref":"#/components/responses/Conflict"},"429":{"$ref":"#/components/responses/TooManyRequests"},"500":{"$ref":"#/components/responses/ServerError"}},"security":[{"JWT":[]},{"ApiKey":[]}],"summary":"Deactivate a webhook","tags":["Webhooks"],"x-api-key-scopes":["WRITE_WEBHOOKS"]}},"/v1/webhooks/{id}/regenerate-secret":{"post":{"operationId":"webhooksManagement_regenerateSecret","parameters":[{"name":"id","required":true,"in":"path","schema":{"type":"string"}}],"responses":{"201":{"description":"WebhookSecretRotated","content":{"application/json":{"schema":{"$ref":"#/components/schemas/WebhookSecretRotated"}}}},"400":{"$ref":"#/components/responses/BadRequest"},"401":{"$ref":"#/components/responses/Unauthorized"},"403":{"$ref":"#/components/responses/Forbidden"},"404":{"$ref":"#/components/responses/NotFound"},"429":{"$ref":"#/components/responses/TooManyRequests"},"500":{"$ref":"#/components/responses/ServerError"}},"security":[{"JWT":[]},{"ApiKey":[]}],"summary":"Regenerate webhook secret","tags":["Webhooks"],"x-api-key-scopes":["WRITE_WEBHOOKS"]}},"/v1/webhooks/{id}/test":{"post":{"operationId":"webhooksManagement_test","parameters":[{"name":"id","required":true,"in":"path","schema":{"type":"string"}},{"$ref":"#/components/parameters/IdempotencyKey"}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/TestWebhookDto"}}}},"responses":{"201":{"description":"WebhookTestResult","content":{"application/json":{"schema":{"$ref":"#/components/schemas/WebhookTestResult"}}}},"400":{"$ref":"#/components/responses/BadRequest"},"401":{"$ref":"#/components/responses/Unauthorized"},"403":{"$ref":"#/components/responses/Forbidden"},"404":{"$ref":"#/components/responses/NotFound"},"409":{"$ref":"#/components/responses/Conflict"},"429":{"$ref":"#/components/responses/TooManyRequests"},"500":{"$ref":"#/components/responses/ServerError"}},"security":[{"JWT":[]},{"ApiKey":[]}],"summary":"Send a test event (the catalog sample for `type`)","tags":["Webhooks"],"x-api-key-scopes":["WRITE_WEBHOOKS"]}},"/v1/webhooks/{id}/deliveries":{"get":{"operationId":"webhooksManagement_getDeliveryLogs","parameters":[{"name":"id","required":true,"in":"path","schema":{"type":"string"}},{"name":"success","required":false,"in":"query","schema":{"type":"boolean"}},{"name":"status","required":false,"in":"query","schema":{"enum":["SUCCEEDED","RETRYING","FAILED"],"type":"string"}},{"name":"event","required":false,"in":"query","schema":{"type":"string"}},{"name":"eventId","required":false,"in":"query","schema":{"type":"string"}},{"name":"page","required":false,"in":"query","schema":{"type":"number"}},{"name":"limit","required":false,"in":"query","schema":{"type":"number"}}],"responses":{"200":{"description":"WebhookDeliveryPage","content":{"application/json":{"schema":{"$ref":"#/components/schemas/WebhookDeliveryPage"}}}},"400":{"$ref":"#/components/responses/BadRequest"},"401":{"$ref":"#/components/responses/Unauthorized"},"403":{"$ref":"#/components/responses/Forbidden"},"404":{"$ref":"#/components/responses/NotFound"},"429":{"$ref":"#/components/responses/TooManyRequests"},"500":{"$ref":"#/components/responses/ServerError"}},"security":[{"JWT":[]},{"ApiKey":[]}],"summary":"Delivery attempts, newest first (paged)","tags":["Webhooks"],"x-api-key-scopes":["READ_WEBHOOKS"]}},"/v1/webhooks/{id}/deliveries/{deliveryId}":{"get":{"operationId":"webhooksManagement_getDelivery","parameters":[{"name":"id","required":true,"in":"path","schema":{"type":"string"}},{"name":"deliveryId","required":true,"in":"path","schema":{"type":"string"}}],"responses":{"200":{"description":"WebhookDelivery","content":{"application/json":{"schema":{"$ref":"#/components/schemas/WebhookDelivery"}}}},"400":{"$ref":"#/components/responses/BadRequest"},"401":{"$ref":"#/components/responses/Unauthorized"},"403":{"$ref":"#/components/responses/Forbidden"},"404":{"$ref":"#/components/responses/NotFound"},"429":{"$ref":"#/components/responses/TooManyRequests"},"500":{"$ref":"#/components/responses/ServerError"}},"security":[{"JWT":[]},{"ApiKey":[]}],"summary":"One delivery attempt: request headers and body, response","tags":["Webhooks"],"x-api-key-scopes":["READ_WEBHOOKS"]}},"/v1/webhooks/{id}/deliveries/{deliveryId}/replay":{"post":{"operationId":"webhooksManagement_replay","parameters":[{"name":"id","required":true,"in":"path","schema":{"type":"string"}},{"name":"deliveryId","required":true,"in":"path","schema":{"type":"string"}},{"$ref":"#/components/parameters/IdempotencyKey"}],"responses":{"201":{"description":"WebhookDelivery","content":{"application/json":{"schema":{"$ref":"#/components/schemas/WebhookDelivery"}}}},"400":{"$ref":"#/components/responses/BadRequest"},"401":{"$ref":"#/components/responses/Unauthorized"},"403":{"$ref":"#/components/responses/Forbidden"},"404":{"$ref":"#/components/responses/NotFound"},"409":{"$ref":"#/components/responses/Conflict"},"429":{"$ref":"#/components/responses/TooManyRequests"},"500":{"$ref":"#/components/responses/ServerError"}},"security":[{"JWT":[]},{"ApiKey":[]}],"summary":"Re-send a delivery with the same event id (receivers can dedupe)","tags":["Webhooks"],"x-api-key-scopes":["WRITE_WEBHOOKS"]}},"/v1/assignment-rules":{"post":{"operationId":"assignmentRules_create","parameters":[{"$ref":"#/components/parameters/IdempotencyKey"}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/CreateAssignmentRuleDto"}}}},"responses":{"201":{"description":"","content":{"application/json":{"schema":{"type":"object"}}}},"400":{"$ref":"#/components/responses/BadRequest"},"401":{"$ref":"#/components/responses/Unauthorized"},"403":{"$ref":"#/components/responses/Forbidden"},"409":{"$ref":"#/components/responses/Conflict"},"429":{"$ref":"#/components/responses/TooManyRequests"},"500":{"$ref":"#/components/responses/ServerError"}},"security":[{"JWT":[]},{"ApiKey":[]}],"summary":"Create a new assignment rule","tags":["Assignment Rules"],"x-api-key-scopes":["*"]},"get":{"operationId":"assignmentRules_findAll","parameters":[{"name":"entity","required":false,"in":"query","schema":{"enum":["LEAD","CONTACT","OPPORTUNITY"],"type":"string"}},{"name":"isActive","required":false,"in":"query","schema":{"type":"boolean"}}],"responses":{"200":{"description":"","content":{"application/json":{"schema":{"type":"array","items":{"type":"object"}}}}},"400":{"$ref":"#/components/responses/BadRequest"},"401":{"$ref":"#/components/responses/Unauthorized"},"403":{"$ref":"#/components/responses/Forbidden"},"429":{"$ref":"#/components/responses/TooManyRequests"},"500":{"$ref":"#/components/responses/ServerError"}},"security":[{"JWT":[]},{"ApiKey":[]}],"summary":"Get all assignment rules","tags":["Assignment Rules"],"x-api-key-scopes":["*"]}},"/v1/assignment-rules/stats":{"get":{"operationId":"assignmentRules_getStats","parameters":[],"responses":{"200":{"description":""},"401":{"$ref":"#/components/responses/Unauthorized"},"403":{"$ref":"#/components/responses/Forbidden"},"429":{"$ref":"#/components/responses/TooManyRequests"},"500":{"$ref":"#/components/responses/ServerError"}},"security":[{"JWT":[]},{"ApiKey":[]}],"summary":"Get assignment rule statistics","tags":["Assignment Rules"],"x-api-key-scopes":["*"]}},"/v1/assignment-rules/fields":{"get":{"operationId":"assignmentRules_getAssignableFields","parameters":[{"name":"entity","required":true,"in":"query","schema":{"enum":["LEAD","CONTACT","OPPORTUNITY"],"type":"string"}}],"responses":{"200":{"description":""},"400":{"$ref":"#/components/responses/BadRequest"},"401":{"$ref":"#/components/responses/Unauthorized"},"403":{"$ref":"#/components/responses/Forbidden"},"429":{"$ref":"#/components/responses/TooManyRequests"},"500":{"$ref":"#/components/responses/ServerError"}},"security":[{"JWT":[]},{"ApiKey":[]}],"summary":"Fields the rule builder can condition on","tags":["Assignment Rules"],"x-api-key-scopes":["*"]}},"/v1/assignment-rules/{id}":{"get":{"operationId":"assignmentRules_findOne","parameters":[{"name":"id","required":true,"in":"path","schema":{"type":"string"}}],"responses":{"200":{"description":"","content":{"application/json":{"schema":{"type":"object"}}}},"400":{"$ref":"#/components/responses/BadRequest"},"401":{"$ref":"#/components/responses/Unauthorized"},"403":{"$ref":"#/components/responses/Forbidden"},"404":{"$ref":"#/components/responses/NotFound"},"429":{"$ref":"#/components/responses/TooManyRequests"},"500":{"$ref":"#/components/responses/ServerError"}},"security":[{"JWT":[]},{"ApiKey":[]}],"summary":"Get an assignment rule by ID","tags":["Assignment Rules"],"x-api-key-scopes":["*"]},"patch":{"operationId":"assignmentRules_update","parameters":[{"name":"id","required":true,"in":"path","schema":{"type":"string"}},{"$ref":"#/components/parameters/IdempotencyKey"}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/UpdateAssignmentRuleDto"}}}},"responses":{"200":{"description":"","content":{"application/json":{"schema":{"type":"object"}}}},"400":{"$ref":"#/components/responses/BadRequest"},"401":{"$ref":"#/components/responses/Unauthorized"},"403":{"$ref":"#/components/responses/Forbidden"},"404":{"$ref":"#/components/responses/NotFound"},"409":{"$ref":"#/components/responses/Conflict"},"429":{"$ref":"#/components/responses/TooManyRequests"},"500":{"$ref":"#/components/responses/ServerError"}},"security":[{"JWT":[]},{"ApiKey":[]}],"summary":"Update an assignment rule","tags":["Assignment Rules"],"x-api-key-scopes":["*"]}},"/v1/assignment-rules/{id}/conditions":{"post":{"operationId":"assignmentRules_addCondition","parameters":[{"name":"id","required":true,"in":"path","schema":{"type":"string"}},{"$ref":"#/components/parameters/IdempotencyKey"}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/AddConditionBody"}}}},"responses":{"201":{"description":""},"400":{"$ref":"#/components/responses/BadRequest"},"401":{"$ref":"#/components/responses/Unauthorized"},"403":{"$ref":"#/components/responses/Forbidden"},"404":{"$ref":"#/components/responses/NotFound"},"409":{"$ref":"#/components/responses/Conflict"},"429":{"$ref":"#/components/responses/TooManyRequests"},"500":{"$ref":"#/components/responses/ServerError"}},"security":[{"JWT":[]},{"ApiKey":[]}],"summary":"Add a condition to the rule","tags":["Assignment Rules"],"x-api-key-scopes":["*"]},"patch":{"operationId":"assignmentRules_updateConditions","parameters":[{"name":"id","required":true,"in":"path","schema":{"type":"string"}},{"$ref":"#/components/parameters/IdempotencyKey"}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/UpdateConditionsBody"}}}},"responses":{"200":{"description":"","content":{"application/json":{"schema":{"type":"object"}}}},"400":{"$ref":"#/components/responses/BadRequest"},"401":{"$ref":"#/components/responses/Unauthorized"},"403":{"$ref":"#/components/responses/Forbidden"},"404":{"$ref":"#/components/responses/NotFound"},"409":{"$ref":"#/components/responses/Conflict"},"429":{"$ref":"#/components/responses/TooManyRequests"},"500":{"$ref":"#/components/responses/ServerError"}},"security":[{"JWT":[]},{"ApiKey":[]}],"summary":"Update all conditions for a rule","tags":["Assignment Rules"],"x-api-key-scopes":["*"]}},"/v1/assignment-rules/{id}/conditions/{conditionId}":{"delete":{"operationId":"assignmentRules_removeCondition","parameters":[{"name":"id","required":true,"in":"path","schema":{"type":"string"}},{"name":"conditionId","required":true,"in":"path","schema":{"type":"string"}}],"responses":{"200":{"description":""},"400":{"$ref":"#/components/responses/BadRequest"},"401":{"$ref":"#/components/responses/Unauthorized"},"403":{"$ref":"#/components/responses/Forbidden"},"404":{"$ref":"#/components/responses/NotFound"},"429":{"$ref":"#/components/responses/TooManyRequests"},"500":{"$ref":"#/components/responses/ServerError"}},"security":[{"JWT":[]},{"ApiKey":[]}],"summary":"Remove a condition from the rule","tags":["Assignment Rules"],"x-api-key-scopes":["*"]}},"/v1/assignment-rules/{id}/assignees":{"post":{"operationId":"assignmentRules_addAssignee","parameters":[{"name":"id","required":true,"in":"path","schema":{"type":"string"}},{"$ref":"#/components/parameters/IdempotencyKey"}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/AddAssigneeBody"}}}},"responses":{"201":{"description":"","content":{"application/json":{"schema":{"type":"object"}}}},"400":{"$ref":"#/components/responses/BadRequest"},"401":{"$ref":"#/components/responses/Unauthorized"},"403":{"$ref":"#/components/responses/Forbidden"},"404":{"$ref":"#/components/responses/NotFound"},"409":{"$ref":"#/components/responses/Conflict"},"429":{"$ref":"#/components/responses/TooManyRequests"},"500":{"$ref":"#/components/responses/ServerError"}},"security":[{"JWT":[]},{"ApiKey":[]}],"summary":"Add an assignee to the rule","tags":["Assignment Rules"],"x-api-key-scopes":["*"]},"patch":{"operationId":"assignmentRules_updateAssignees","parameters":[{"name":"id","required":true,"in":"path","schema":{"type":"string"}},{"$ref":"#/components/parameters/IdempotencyKey"}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/UpdateAssigneesBody"}}}},"responses":{"200":{"description":"","content":{"application/json":{"schema":{"type":"object"}}}},"400":{"$ref":"#/components/responses/BadRequest"},"401":{"$ref":"#/components/responses/Unauthorized"},"403":{"$ref":"#/components/responses/Forbidden"},"404":{"$ref":"#/components/responses/NotFound"},"409":{"$ref":"#/components/responses/Conflict"},"429":{"$ref":"#/components/responses/TooManyRequests"},"500":{"$ref":"#/components/responses/ServerError"}},"security":[{"JWT":[]},{"ApiKey":[]}],"summary":"Update all assignees for a rule","tags":["Assignment Rules"],"x-api-key-scopes":["*"]}},"/v1/assignment-rules/{id}/assignees/{assigneeId}":{"delete":{"operationId":"assignmentRules_removeAssignee","parameters":[{"name":"id","required":true,"in":"path","schema":{"type":"string"}},{"name":"assigneeId","required":true,"in":"path","schema":{"type":"string"}}],"responses":{"200":{"description":""},"400":{"$ref":"#/components/responses/BadRequest"},"401":{"$ref":"#/components/responses/Unauthorized"},"403":{"$ref":"#/components/responses/Forbidden"},"404":{"$ref":"#/components/responses/NotFound"},"429":{"$ref":"#/components/responses/TooManyRequests"},"500":{"$ref":"#/components/responses/ServerError"}},"security":[{"JWT":[]},{"ApiKey":[]}],"summary":"Remove an assignee from the rule","tags":["Assignment Rules"],"x-api-key-scopes":["*"]}},"/v1/assignment-rules/{id}/test":{"post":{"operationId":"assignmentRules_testRule","parameters":[{"name":"id","required":true,"in":"path","schema":{"type":"string"}},{"$ref":"#/components/parameters/IdempotencyKey"}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/TestRuleBody"}}}},"responses":{"201":{"description":""},"400":{"$ref":"#/components/responses/BadRequest"},"401":{"$ref":"#/components/responses/Unauthorized"},"403":{"$ref":"#/components/responses/Forbidden"},"404":{"$ref":"#/components/responses/NotFound"},"409":{"$ref":"#/components/responses/Conflict"},"429":{"$ref":"#/components/responses/TooManyRequests"},"500":{"$ref":"#/components/responses/ServerError"}},"security":[{"JWT":[]},{"ApiKey":[]}],"summary":"Test a rule against sample data","tags":["Assignment Rules"],"x-api-key-scopes":["*"]}},"/v1/assignment-rules/test":{"post":{"operationId":"assignmentRules_testAllRules","parameters":[{"$ref":"#/components/parameters/IdempotencyKey"}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/TestAllRulesBody"}}}},"responses":{"201":{"description":"","content":{"application/json":{"schema":{"type":"object"}}}},"400":{"$ref":"#/components/responses/BadRequest"},"401":{"$ref":"#/components/responses/Unauthorized"},"403":{"$ref":"#/components/responses/Forbidden"},"409":{"$ref":"#/components/responses/Conflict"},"429":{"$ref":"#/components/responses/TooManyRequests"},"500":{"$ref":"#/components/responses/ServerError"}},"security":[{"JWT":[]},{"ApiKey":[]}],"summary":"Test all active rules against sample data","tags":["Assignment Rules"],"x-api-key-scopes":["*"]}},"/v1/assignment-rules/execute":{"post":{"operationId":"assignmentRules_executeForRecord","parameters":[{"$ref":"#/components/parameters/IdempotencyKey"}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ExecuteForRecordBody"}}}},"responses":{"201":{"description":"","content":{"application/json":{"schema":{"type":"object"}}}},"400":{"$ref":"#/components/responses/BadRequest"},"401":{"$ref":"#/components/responses/Unauthorized"},"403":{"$ref":"#/components/responses/Forbidden"},"409":{"$ref":"#/components/responses/Conflict"},"429":{"$ref":"#/components/responses/TooManyRequests"},"500":{"$ref":"#/components/responses/ServerError"}},"security":[{"JWT":[]},{"ApiKey":[]}],"summary":"Run rules against a stored record and persist the assignment","tags":["Assignment Rules"],"x-api-key-scopes":["*"]}},"/v1/assignment-rules/{id}/activate":{"post":{"operationId":"assignmentRules_activate","parameters":[{"name":"id","required":true,"in":"path","schema":{"type":"string"}},{"$ref":"#/components/parameters/IdempotencyKey"}],"responses":{"201":{"description":"","content":{"application/json":{"schema":{"type":"object"}}}},"400":{"$ref":"#/components/responses/BadRequest"},"401":{"$ref":"#/components/responses/Unauthorized"},"403":{"$ref":"#/components/responses/Forbidden"},"404":{"$ref":"#/components/responses/NotFound"},"409":{"$ref":"#/components/responses/Conflict"},"429":{"$ref":"#/components/responses/TooManyRequests"},"500":{"$ref":"#/components/responses/ServerError"}},"security":[{"JWT":[]},{"ApiKey":[]}],"summary":"Activate a rule","tags":["Assignment Rules"],"x-api-key-scopes":["*"]}},"/v1/assignment-rules/{id}/deactivate":{"post":{"operationId":"assignmentRules_deactivate","parameters":[{"name":"id","required":true,"in":"path","schema":{"type":"string"}},{"$ref":"#/components/parameters/IdempotencyKey"}],"responses":{"201":{"description":"","content":{"application/json":{"schema":{"type":"object"}}}},"400":{"$ref":"#/components/responses/BadRequest"},"401":{"$ref":"#/components/responses/Unauthorized"},"403":{"$ref":"#/components/responses/Forbidden"},"404":{"$ref":"#/components/responses/NotFound"},"409":{"$ref":"#/components/responses/Conflict"},"429":{"$ref":"#/components/responses/TooManyRequests"},"500":{"$ref":"#/components/responses/ServerError"}},"security":[{"JWT":[]},{"ApiKey":[]}],"summary":"Deactivate a rule","tags":["Assignment Rules"],"x-api-key-scopes":["*"]}},"/v1/assignment-rules/{id}/clone":{"post":{"operationId":"assignmentRules_clone","parameters":[{"name":"id","required":true,"in":"path","schema":{"type":"string"}},{"$ref":"#/components/parameters/IdempotencyKey"}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/CloneBody"}}}},"responses":{"201":{"description":"","content":{"application/json":{"schema":{"type":"object"}}}},"400":{"$ref":"#/components/responses/BadRequest"},"401":{"$ref":"#/components/responses/Unauthorized"},"403":{"$ref":"#/components/responses/Forbidden"},"404":{"$ref":"#/components/responses/NotFound"},"409":{"$ref":"#/components/responses/Conflict"},"429":{"$ref":"#/components/responses/TooManyRequests"},"500":{"$ref":"#/components/responses/ServerError"}},"security":[{"JWT":[]},{"ApiKey":[]}],"summary":"Clone a rule (created inactive)","tags":["Assignment Rules"],"x-api-key-scopes":["*"]}},"/v1/assignment-rules/reorder":{"post":{"operationId":"assignmentRules_reorder","parameters":[{"$ref":"#/components/parameters/IdempotencyKey"}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ReorderBody"}}}},"responses":{"201":{"description":"","content":{"application/json":{"schema":{"type":"array","items":{"type":"object"}}}}},"400":{"$ref":"#/components/responses/BadRequest"},"401":{"$ref":"#/components/responses/Unauthorized"},"403":{"$ref":"#/components/responses/Forbidden"},"409":{"$ref":"#/components/responses/Conflict"},"429":{"$ref":"#/components/responses/TooManyRequests"},"500":{"$ref":"#/components/responses/ServerError"}},"security":[{"JWT":[]},{"ApiKey":[]}],"summary":"Reorder rules for an entity","tags":["Assignment Rules"],"x-api-key-scopes":["*"]}},"/v1/assignment-rules/evaluate":{"post":{"operationId":"assignmentRules_evaluateRules","parameters":[{"$ref":"#/components/parameters/IdempotencyKey"}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/EvaluateRulesBody"}}}},"responses":{"201":{"description":""},"400":{"$ref":"#/components/responses/BadRequest"},"401":{"$ref":"#/components/responses/Unauthorized"},"403":{"$ref":"#/components/responses/Forbidden"},"409":{"$ref":"#/components/responses/Conflict"},"429":{"$ref":"#/components/responses/TooManyRequests"},"500":{"$ref":"#/components/responses/ServerError"}},"security":[{"JWT":[]},{"ApiKey":[]}],"summary":"Evaluate rules and get assigned user for a record","tags":["Assignment Rules"],"x-api-key-scopes":["*"]}},"/v1/ai/status":{"get":{"description":"Returns the status of all configured AI providers and which one is active","operationId":"aI_getStatus","parameters":[],"responses":{"200":{"description":"AI service status","content":{"application/json":{"schema":{"$ref":"#/components/schemas/AIStatusResponse"}}}},"401":{"$ref":"#/components/responses/Unauthorized"},"403":{"$ref":"#/components/responses/Forbidden"},"429":{"$ref":"#/components/responses/TooManyRequests"},"500":{"$ref":"#/components/responses/ServerError"}},"security":[{"JWT":[]},{"ApiKey":[]}],"summary":"Get AI service status","tags":["AI"],"x-api-key-scopes":["*"]}},"/v1/ai/test":{"post":{"description":"Tests the connection to AI providers by sending a simple prompt","operationId":"aI_testConnection","parameters":[{"$ref":"#/components/parameters/IdempotencyKey"}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"type":"object","properties":{"provider":{"type":"string","enum":["openai","anthropic","auto"],"description":"Provider to test"}}}}}},"responses":{"200":{"description":"Connection test successful"},"400":{"$ref":"#/components/responses/BadRequest"},"401":{"$ref":"#/components/responses/Unauthorized"},"403":{"$ref":"#/components/responses/Forbidden"},"409":{"$ref":"#/components/responses/Conflict"},"429":{"$ref":"#/components/responses/TooManyRequests"},"500":{"$ref":"#/components/responses/ServerError"},"503":{"description":"Connection test failed"}},"security":[{"JWT":[]},{"ApiKey":[]}],"summary":"Test AI connection","tags":["AI"],"x-api-key-scopes":["*"]}},"/v1/ai/test/{provider}":{"post":{"description":"Tests the connection to a specific AI provider","operationId":"aI_testSpecificProvider","parameters":[{"name":"provider","required":true,"in":"path","description":"Provider to test","schema":{"enum":["openai","anthropic"],"type":"string"}},{"$ref":"#/components/parameters/IdempotencyKey"}],"responses":{"200":{"description":"Connection test successful"},"400":{"$ref":"#/components/responses/BadRequest"},"401":{"$ref":"#/components/responses/Unauthorized"},"403":{"$ref":"#/components/responses/Forbidden"},"404":{"$ref":"#/components/responses/NotFound"},"409":{"$ref":"#/components/responses/Conflict"},"429":{"$ref":"#/components/responses/TooManyRequests"},"500":{"$ref":"#/components/responses/ServerError"},"503":{"description":"Connection test failed"}},"security":[{"JWT":[]},{"ApiKey":[]}],"summary":"Test specific AI provider connection","tags":["AI"],"x-api-key-scopes":["*"]}},"/v1/ai/email/draft":{"post":{"description":"Generate a professional sales email draft using AI with subject line and body","operationId":"aI_generateEmailDraft","parameters":[{"$ref":"#/components/parameters/IdempotencyKey"}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/EmailDraftDto"}}}},"responses":{"200":{"description":"Email draft generated successfully"},"400":{"description":"Invalid input"},"401":{"$ref":"#/components/responses/Unauthorized"},"403":{"$ref":"#/components/responses/Forbidden"},"409":{"$ref":"#/components/responses/Conflict"},"429":{"$ref":"#/components/responses/TooManyRequests"},"500":{"$ref":"#/components/responses/ServerError"},"503":{"description":"No AI provider available"}},"security":[{"JWT":[]},{"ApiKey":[]}],"summary":"Generate email draft","tags":["AI"],"x-api-key-scopes":["*"]}},"/v1/ai/deal/analyze":{"post":{"description":"Get AI-powered insights and recommendations for a sales deal","operationId":"aI_analyzeDeal","parameters":[{"$ref":"#/components/parameters/IdempotencyKey"}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/DealAnalysisDto"}}}},"responses":{"200":{"description":"Deal analysis completed"},"400":{"description":"Invalid input"},"401":{"$ref":"#/components/responses/Unauthorized"},"403":{"$ref":"#/components/responses/Forbidden"},"409":{"$ref":"#/components/responses/Conflict"},"429":{"$ref":"#/components/responses/TooManyRequests"},"500":{"$ref":"#/components/responses/ServerError"},"503":{"description":"No AI provider available"}},"security":[{"JWT":[]},{"ApiKey":[]}],"summary":"Analyze deal","tags":["AI"],"x-api-key-scopes":["*"]}},"/v1/ai/lead/score":{"post":{"description":"Get an AI-powered lead score (0-100) with detailed reasoning","operationId":"aI_scoreLead","parameters":[{"$ref":"#/components/parameters/IdempotencyKey"}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/LeadScoringDto"}}}},"responses":{"200":{"description":"Lead scored successfully"},"400":{"description":"Invalid input"},"401":{"$ref":"#/components/responses/Unauthorized"},"403":{"$ref":"#/components/responses/Forbidden"},"409":{"$ref":"#/components/responses/Conflict"},"429":{"$ref":"#/components/responses/TooManyRequests"},"500":{"$ref":"#/components/responses/ServerError"},"503":{"description":"No AI provider available"}},"security":[{"JWT":[]},{"ApiKey":[]}],"summary":"Score lead","tags":["AI"],"x-api-key-scopes":["*"]}},"/v1/ai/meeting/summarize":{"post":{"description":"Summarize a meeting transcript and extract key points, action items, and next steps","operationId":"aI_summarizeMeeting","parameters":[{"$ref":"#/components/parameters/IdempotencyKey"}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/MeetingSummarizeDto"}}}},"responses":{"200":{"description":"Meeting summarized successfully"},"400":{"description":"Invalid input"},"401":{"$ref":"#/components/responses/Unauthorized"},"403":{"$ref":"#/components/responses/Forbidden"},"409":{"$ref":"#/components/responses/Conflict"},"429":{"$ref":"#/components/responses/TooManyRequests"},"500":{"$ref":"#/components/responses/ServerError"},"503":{"description":"No AI provider available"}},"security":[{"JWT":[]},{"ApiKey":[]}],"summary":"Summarize meeting","tags":["AI"],"x-api-key-scopes":["*"]}},"/v1/ai/followup/suggest":{"post":{"description":"Get AI-powered suggestions for follow-up actions, including email drafts and call scripts","operationId":"aI_generateFollowUp","parameters":[{"$ref":"#/components/parameters/IdempotencyKey"}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/FollowUpDto"}}}},"responses":{"200":{"description":"Follow-up suggestions generated"},"400":{"$ref":"#/components/responses/BadRequest"},"401":{"$ref":"#/components/responses/Unauthorized"},"403":{"$ref":"#/components/responses/Forbidden"},"409":{"$ref":"#/components/responses/Conflict"},"429":{"$ref":"#/components/responses/TooManyRequests"},"500":{"$ref":"#/components/responses/ServerError"},"503":{"description":"No AI provider available"}},"security":[{"JWT":[]},{"ApiKey":[]}],"summary":"Suggest follow-up","tags":["AI"],"x-api-key-scopes":["*"]}},"/v1/ai/completion":{"post":{"description":"Generate a custom AI completion with your own prompt","operationId":"aI_generateCompletion","parameters":[{"$ref":"#/components/parameters/IdempotencyKey"}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/CompletionDto"}}}},"responses":{"200":{"description":"Completion generated successfully"},"400":{"description":"Invalid input"},"401":{"$ref":"#/components/responses/Unauthorized"},"403":{"$ref":"#/components/responses/Forbidden"},"409":{"$ref":"#/components/responses/Conflict"},"429":{"$ref":"#/components/responses/TooManyRequests"},"500":{"$ref":"#/components/responses/ServerError"},"503":{"description":"No AI provider available"}},"security":[{"JWT":[]},{"ApiKey":[]}],"summary":"Generate completion","tags":["AI"],"x-api-key-scopes":["*"]}},"/v1/integrations/status":{"get":{"operationId":"integrations_getAllStatuses","parameters":[],"responses":{"200":{"description":"All integration statuses"},"401":{"$ref":"#/components/responses/Unauthorized"},"403":{"$ref":"#/components/responses/Forbidden"},"429":{"$ref":"#/components/responses/TooManyRequests"},"500":{"$ref":"#/components/responses/ServerError"}},"security":[{"JWT":[]},{"ApiKey":[]}],"summary":"Get status of all integrations for current organization","tags":["Integrations"],"x-api-key-scopes":["*"]}},"/v1/integrations/{integrationType}/config":{"get":{"operationId":"integrations_getConfig","parameters":[{"name":"integrationType","required":true,"in":"path","schema":{"type":"string"}}],"responses":{"200":{"description":"Integration configuration"},"400":{"$ref":"#/components/responses/BadRequest"},"401":{"$ref":"#/components/responses/Unauthorized"},"403":{"$ref":"#/components/responses/Forbidden"},"404":{"$ref":"#/components/responses/NotFound"},"429":{"$ref":"#/components/responses/TooManyRequests"},"500":{"$ref":"#/components/responses/ServerError"}},"security":[{"JWT":[]},{"ApiKey":[]}],"summary":"Get current configuration for an integration (masked) - Admin only","tags":["Integrations"],"x-api-key-scopes":["*"]}},"/v1/integrations/{integrationType}/status":{"get":{"operationId":"integrations_getStatus","parameters":[{"name":"integrationType","required":true,"in":"path","schema":{"type":"string"}}],"responses":{"200":{"description":"Integration status"},"400":{"$ref":"#/components/responses/BadRequest"},"401":{"$ref":"#/components/responses/Unauthorized"},"403":{"$ref":"#/components/responses/Forbidden"},"404":{"$ref":"#/components/responses/NotFound"},"429":{"$ref":"#/components/responses/TooManyRequests"},"500":{"$ref":"#/components/responses/ServerError"}},"security":[{"JWT":[]},{"ApiKey":[]}],"summary":"Get status of a specific integration for current organization","tags":["Integrations"],"x-api-key-scopes":["*"]}},"/v1/integrations/{integrationType}/test":{"post":{"operationId":"integrations_testConnection","parameters":[{"name":"integrationType","required":true,"in":"path","schema":{"type":"string"}},{"$ref":"#/components/parameters/IdempotencyKey"}],"responses":{"200":{"description":"Connection test result"},"400":{"$ref":"#/components/responses/BadRequest"},"401":{"$ref":"#/components/responses/Unauthorized"},"403":{"$ref":"#/components/responses/Forbidden"},"404":{"$ref":"#/components/responses/NotFound"},"409":{"$ref":"#/components/responses/Conflict"},"429":{"$ref":"#/components/responses/TooManyRequests"},"500":{"$ref":"#/components/responses/ServerError"}},"security":[{"JWT":[]},{"ApiKey":[]}],"summary":"Test connection for an integration","tags":["Integrations"],"x-api-key-scopes":["*"]}},"/v1/integrations/{integrationType}/connect":{"post":{"operationId":"integrations_connect","parameters":[{"name":"integrationType","required":true,"in":"path","schema":{"type":"string"}},{"$ref":"#/components/parameters/IdempotencyKey"}],"responses":{"200":{"description":"OAuth URL or connection result"},"400":{"$ref":"#/components/responses/BadRequest"},"401":{"$ref":"#/components/responses/Unauthorized"},"403":{"$ref":"#/components/responses/Forbidden"},"404":{"$ref":"#/components/responses/NotFound"},"409":{"$ref":"#/components/responses/Conflict"},"429":{"$ref":"#/components/responses/TooManyRequests"},"500":{"$ref":"#/components/responses/ServerError"}},"security":[{"JWT":[]},{"ApiKey":[]}],"summary":"Initiate OAuth flow for an integration","tags":["Integrations"],"x-api-key-scopes":["*"]}},"/v1/integrations/{integrationType}/configure":{"post":{"operationId":"integrations_configure","parameters":[{"name":"integrationType","required":true,"in":"path","schema":{"type":"string"}},{"$ref":"#/components/parameters/IdempotencyKey"}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ConfigureBody"}}}},"responses":{"200":{"description":"Configuration result"},"400":{"$ref":"#/components/responses/BadRequest"},"401":{"$ref":"#/components/responses/Unauthorized"},"403":{"$ref":"#/components/responses/Forbidden"},"404":{"$ref":"#/components/responses/NotFound"},"409":{"$ref":"#/components/responses/Conflict"},"429":{"$ref":"#/components/responses/TooManyRequests"},"500":{"$ref":"#/components/responses/ServerError"}},"security":[{"JWT":[]},{"ApiKey":[]}],"summary":"Configure an API key-based integration - Admin only","tags":["Integrations"],"x-api-key-scopes":["*"]}},"/v1/integrations/{integrationType}/disconnect":{"delete":{"operationId":"integrations_disconnect","parameters":[{"name":"integrationType","required":true,"in":"path","schema":{"type":"string"}}],"responses":{"200":{"description":"Disconnection result"},"400":{"$ref":"#/components/responses/BadRequest"},"401":{"$ref":"#/components/responses/Unauthorized"},"403":{"$ref":"#/components/responses/Forbidden"},"404":{"$ref":"#/components/responses/NotFound"},"429":{"$ref":"#/components/responses/TooManyRequests"},"500":{"$ref":"#/components/responses/ServerError"}},"security":[{"JWT":[]},{"ApiKey":[]}],"summary":"Disconnect an integration - Admin only","tags":["Integrations"],"x-api-key-scopes":["*"]}},"/v1/integrations/{integrationType}/sync":{"post":{"operationId":"integrations_triggerSync","parameters":[{"name":"integrationType","required":true,"in":"path","schema":{"type":"string"}},{"$ref":"#/components/parameters/IdempotencyKey"}],"responses":{"200":{"description":"Sync result"},"400":{"$ref":"#/components/responses/BadRequest"},"401":{"$ref":"#/components/responses/Unauthorized"},"403":{"$ref":"#/components/responses/Forbidden"},"404":{"$ref":"#/components/responses/NotFound"},"409":{"$ref":"#/components/responses/Conflict"},"429":{"$ref":"#/components/responses/TooManyRequests"},"500":{"$ref":"#/components/responses/ServerError"}},"security":[{"JWT":[]},{"ApiKey":[]}],"summary":"Trigger sync for an integration","tags":["Integrations"],"x-api-key-scopes":["*"]}},"/v1/integrations/all":{"get":{"operationId":"integrations_getAllIntegrations","parameters":[],"responses":{"200":{"description":"All available integrations"},"401":{"$ref":"#/components/responses/Unauthorized"},"403":{"$ref":"#/components/responses/Forbidden"},"429":{"$ref":"#/components/responses/TooManyRequests"},"500":{"$ref":"#/components/responses/ServerError"}},"security":[{"JWT":[]},{"ApiKey":[]}],"summary":"Get list of all available integrations","tags":["Integrations"],"x-api-key-scopes":["*"]}},"/v1/integrations/health":{"get":{"operationId":"integrations_healthCheckAll","parameters":[],"responses":{"200":{"description":"Integration health results"},"401":{"$ref":"#/components/responses/Unauthorized"},"403":{"$ref":"#/components/responses/Forbidden"},"429":{"$ref":"#/components/responses/TooManyRequests"},"500":{"$ref":"#/components/responses/ServerError"}},"security":[{"JWT":[]},{"ApiKey":[]}],"summary":"Health check all integrations (admin only)","tags":["Integrations"],"x-api-key-scopes":["*"]}},"/v1/integrations/{provider}/health":{"get":{"operationId":"integrations_healthCheckOne","parameters":[{"name":"provider","required":true,"in":"path","schema":{"type":"string"}}],"responses":{"200":{"description":"Single integration health result"},"400":{"$ref":"#/components/responses/BadRequest"},"401":{"$ref":"#/components/responses/Unauthorized"},"403":{"$ref":"#/components/responses/Forbidden"},"404":{"$ref":"#/components/responses/NotFound"},"429":{"$ref":"#/components/responses/TooManyRequests"},"500":{"$ref":"#/components/responses/ServerError"}},"security":[{"JWT":[]},{"ApiKey":[]}],"summary":"Health check a single integration","tags":["Integrations"],"x-api-key-scopes":["*"]}},"/v1/opportunities":{"post":{"operationId":"opportunities_create","parameters":[{"$ref":"#/components/parameters/IdempotencyKey"}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/CreateOpportunityDto"}}}},"responses":{"201":{"description":"Opportunity","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Opportunity"}}}},"400":{"$ref":"#/components/responses/BadRequest"},"401":{"$ref":"#/components/responses/Unauthorized"},"403":{"$ref":"#/components/responses/Forbidden"},"409":{"$ref":"#/components/responses/Conflict"},"429":{"$ref":"#/components/responses/TooManyRequests"},"500":{"$ref":"#/components/responses/ServerError"}},"security":[{"JWT":[]},{"ApiKey":[]}],"tags":["Opportunities"],"summary":"Create","x-api-key-scopes":["WRITE_OPPORTUNITIES"]},"get":{"operationId":"opportunities_findAll","parameters":[{"name":"stage","required":false,"in":"query","schema":{"type":"string"}},{"name":"accountId","required":false,"in":"query","schema":{"type":"string"}},{"name":"isClosed","required":false,"in":"query","schema":{"type":"string"}},{"name":"minAmount","required":false,"in":"query","schema":{"type":"string"}},{"name":"search","required":false,"in":"query","schema":{"type":"string"}},{"name":"source","required":false,"in":"query","schema":{"type":"string"}},{"name":"cursor","required":false,"in":"query","schema":{"type":"string"}},{"name":"limit","required":false,"in":"query","schema":{"type":"string"}},{"name":"page","required":false,"in":"query","schema":{"type":"string"}},{"name":"sortBy","required":false,"in":"query","schema":{"type":"string"}},{"name":"sortOrder","required":false,"in":"query","schema":{"type":"string"}},{"name":"owner","required":false,"in":"query","schema":{"type":"string"}},{"name":"createdAfter","required":false,"in":"query","schema":{"type":"string"}},{"name":"ids","required":false,"in":"query","schema":{"type":"string"}},{"name":"open","required":false,"in":"query","schema":{"type":"string"}},{"name":"customFields","required":false,"in":"query","schema":{"type":"string"}},{"name":"withCustomFields","required":false,"in":"query","schema":{"type":"string"}}],"responses":{"200":{"description":"OpportunityList","content":{"application/json":{"schema":{"$ref":"#/components/schemas/OpportunityList"}}}},"400":{"$ref":"#/components/responses/BadRequest"},"401":{"$ref":"#/components/responses/Unauthorized"},"403":{"$ref":"#/components/responses/Forbidden"},"429":{"$ref":"#/components/responses/TooManyRequests"},"500":{"$ref":"#/components/responses/ServerError"}},"security":[{"JWT":[]},{"ApiKey":[]}],"tags":["Opportunities"],"summary":"List","x-api-key-scopes":["READ_OPPORTUNITIES"]}},"/v1/opportunities/pipeline/stats":{"get":{"operationId":"opportunities_getPipelineStats","parameters":[],"responses":{"200":{"description":""},"401":{"$ref":"#/components/responses/Unauthorized"},"403":{"$ref":"#/components/responses/Forbidden"},"429":{"$ref":"#/components/responses/TooManyRequests"},"500":{"$ref":"#/components/responses/ServerError"}},"security":[{"JWT":[]},{"ApiKey":[]}],"tags":["Opportunities"],"summary":"Get pipeline stats","x-api-key-scopes":["READ_OPPORTUNITIES"]}},"/v1/opportunities/forecast":{"get":{"operationId":"opportunities_getForecast","parameters":[],"responses":{"200":{"description":""},"401":{"$ref":"#/components/responses/Unauthorized"},"403":{"$ref":"#/components/responses/Forbidden"},"429":{"$ref":"#/components/responses/TooManyRequests"},"500":{"$ref":"#/components/responses/ServerError"}},"security":[{"JWT":[]},{"ApiKey":[]}],"tags":["Opportunities"],"summary":"Get forecast","x-api-key-scopes":["READ_OPPORTUNITIES"]}},"/v1/opportunities/stage-sla":{"get":{"operationId":"opportunities_getStageSla","parameters":[{"name":"pipelineId","required":false,"in":"query","schema":{"type":"string"}},{"name":"limit","required":false,"in":"query","schema":{"type":"string"}}],"responses":{"200":{"description":""},"400":{"$ref":"#/components/responses/BadRequest"},"401":{"$ref":"#/components/responses/Unauthorized"},"403":{"$ref":"#/components/responses/Forbidden"},"429":{"$ref":"#/components/responses/TooManyRequests"},"500":{"$ref":"#/components/responses/ServerError"}},"security":[{"JWT":[]},{"ApiKey":[]}],"summary":"Open deals over their stage SLA (PipelineStage.maxDaysInStage). Visibility-scoped, ≤200 rows.","tags":["Opportunities"],"x-api-key-scopes":["READ_OPPORTUNITIES"]}},"/v1/opportunities/slippage":{"get":{"operationId":"opportunities_getSlippage","parameters":[{"name":"period","required":false,"in":"query","schema":{"type":"string"}},{"name":"limit","required":false,"in":"query","schema":{"type":"string"}}],"responses":{"200":{"description":""},"400":{"$ref":"#/components/responses/BadRequest"},"401":{"$ref":"#/components/responses/Unauthorized"},"403":{"$ref":"#/components/responses/Forbidden"},"429":{"$ref":"#/components/responses/TooManyRequests"},"500":{"$ref":"#/components/responses/ServerError"}},"security":[{"JWT":[]},{"ApiKey":[]}],"summary":"Deals whose close date slipped, with totals. `period` = 2026-Q3 | 2026-09 | 2026.","tags":["Opportunities"],"x-api-key-scopes":["READ_OPPORTUNITIES"]}},"/v1/opportunities/deleted":{"get":{"operationId":"opportunities_listDeleted","parameters":[],"responses":{"200":{"description":"OpportunityArray","content":{"application/json":{"schema":{"$ref":"#/components/schemas/OpportunityArray"}}}},"401":{"$ref":"#/components/responses/Unauthorized"},"403":{"$ref":"#/components/responses/Forbidden"},"429":{"$ref":"#/components/responses/TooManyRequests"},"500":{"$ref":"#/components/responses/ServerError"}},"security":[{"JWT":[]},{"ApiKey":[]}],"tags":["Opportunities"],"summary":"List deleted","x-api-key-scopes":["READ_OPPORTUNITIES"]}},"/v1/opportunities/{id}/contacts":{"get":{"operationId":"opportunities_getContacts","parameters":[{"name":"id","required":true,"in":"path","schema":{"type":"string"}}],"responses":{"200":{"description":"OpportunityContactRoleArray","content":{"application/json":{"schema":{"$ref":"#/components/schemas/OpportunityContactRoleArray"}}}},"400":{"$ref":"#/components/responses/BadRequest"},"401":{"$ref":"#/components/responses/Unauthorized"},"403":{"$ref":"#/components/responses/Forbidden"},"404":{"$ref":"#/components/responses/NotFound"},"429":{"$ref":"#/components/responses/TooManyRequests"},"500":{"$ref":"#/components/responses/ServerError"}},"security":[{"JWT":[]},{"ApiKey":[]}],"tags":["Opportunities"],"summary":"Get contacts","x-api-key-scopes":["READ_OPPORTUNITIES"]},"post":{"operationId":"opportunities_addContact","parameters":[{"name":"id","required":true,"in":"path","schema":{"type":"string"}},{"$ref":"#/components/parameters/IdempotencyKey"}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/AddContactBody"}}}},"responses":{"201":{"description":"OpportunityContactRole","content":{"application/json":{"schema":{"$ref":"#/components/schemas/OpportunityContactRole"}}}},"400":{"$ref":"#/components/responses/BadRequest"},"401":{"$ref":"#/components/responses/Unauthorized"},"403":{"$ref":"#/components/responses/Forbidden"},"404":{"$ref":"#/components/responses/NotFound"},"409":{"$ref":"#/components/responses/Conflict"},"429":{"$ref":"#/components/responses/TooManyRequests"},"500":{"$ref":"#/components/responses/ServerError"}},"security":[{"JWT":[]},{"ApiKey":[]}],"tags":["Opportunities"],"summary":"Add contact","x-api-key-scopes":["WRITE_OPPORTUNITIES"]}},"/v1/opportunities/{id}/stage-history":{"get":{"operationId":"opportunities_getStageHistory","parameters":[{"name":"id","required":true,"in":"path","schema":{"type":"string"}}],"responses":{"200":{"description":"OpportunityStageHistoryArray","content":{"application/json":{"schema":{"$ref":"#/components/schemas/OpportunityStageHistoryArray"}}}},"400":{"$ref":"#/components/responses/BadRequest"},"401":{"$ref":"#/components/responses/Unauthorized"},"403":{"$ref":"#/components/responses/Forbidden"},"404":{"$ref":"#/components/responses/NotFound"},"429":{"$ref":"#/components/responses/TooManyRequests"},"500":{"$ref":"#/components/responses/ServerError"}},"security":[{"JWT":[]},{"ApiKey":[]}],"tags":["Opportunities"],"summary":"Get stage history","x-api-key-scopes":["READ_OPPORTUNITIES"]}},"/v1/opportunities/{id}":{"get":{"operationId":"opportunities_findOne","parameters":[{"name":"id","required":true,"in":"path","schema":{"type":"string"}}],"responses":{"200":{"description":"Opportunity","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Opportunity"}}}},"400":{"$ref":"#/components/responses/BadRequest"},"401":{"$ref":"#/components/responses/Unauthorized"},"403":{"$ref":"#/components/responses/Forbidden"},"404":{"$ref":"#/components/responses/NotFound"},"429":{"$ref":"#/components/responses/TooManyRequests"},"500":{"$ref":"#/components/responses/ServerError"}},"security":[{"JWT":[]},{"ApiKey":[]}],"tags":["Opportunities"],"summary":"Find one","x-api-key-scopes":["READ_OPPORTUNITIES"]},"patch":{"operationId":"opportunities_update","parameters":[{"name":"id","required":true,"in":"path","schema":{"type":"string"}},{"$ref":"#/components/parameters/IdempotencyKey"}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/UpdateOpportunityDto"}}}},"responses":{"200":{"description":"Opportunity","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Opportunity"}}}},"400":{"$ref":"#/components/responses/BadRequest"},"401":{"$ref":"#/components/responses/Unauthorized"},"403":{"$ref":"#/components/responses/Forbidden"},"404":{"$ref":"#/components/responses/NotFound"},"409":{"$ref":"#/components/responses/Conflict"},"429":{"$ref":"#/components/responses/TooManyRequests"},"500":{"$ref":"#/components/responses/ServerError"}},"security":[{"JWT":[]},{"ApiKey":[]}],"tags":["Opportunities"],"summary":"Update","x-api-key-scopes":["WRITE_OPPORTUNITIES"]},"delete":{"operationId":"opportunities_remove","parameters":[{"name":"id","required":true,"in":"path","schema":{"type":"string"}},{"name":"force","required":false,"in":"query","schema":{"type":"string"}}],"responses":{"200":{"description":"DeletedWithMessage","content":{"application/json":{"schema":{"$ref":"#/components/schemas/DeletedWithMessage"}}}},"400":{"$ref":"#/components/responses/BadRequest"},"401":{"$ref":"#/components/responses/Unauthorized"},"403":{"$ref":"#/components/responses/Forbidden"},"404":{"$ref":"#/components/responses/NotFound"},"429":{"$ref":"#/components/responses/TooManyRequests"},"500":{"$ref":"#/components/responses/ServerError"}},"security":[{"JWT":[]},{"ApiKey":[]}],"tags":["Opportunities"],"summary":"Remove","x-api-key-scopes":["WRITE_OPPORTUNITIES"]}},"/v1/opportunities/{id}/restore":{"post":{"operationId":"opportunities_restore","parameters":[{"name":"id","required":true,"in":"path","schema":{"type":"string"}},{"$ref":"#/components/parameters/IdempotencyKey"}],"responses":{"201":{"description":"Opportunity","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Opportunity"}}}},"400":{"$ref":"#/components/responses/BadRequest"},"401":{"$ref":"#/components/responses/Unauthorized"},"403":{"$ref":"#/components/responses/Forbidden"},"404":{"$ref":"#/components/responses/NotFound"},"409":{"$ref":"#/components/responses/Conflict"},"429":{"$ref":"#/components/responses/TooManyRequests"},"500":{"$ref":"#/components/responses/ServerError"}},"security":[{"JWT":[]},{"ApiKey":[]}],"tags":["Opportunities"],"summary":"Restore","x-api-key-scopes":["WRITE_OPPORTUNITIES"]}},"/v1/opportunities/{id}/advance":{"post":{"operationId":"opportunities_advanceStage","parameters":[{"name":"id","required":true,"in":"path","schema":{"type":"string"}},{"$ref":"#/components/parameters/IdempotencyKey"}],"responses":{"201":{"description":"Opportunity","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Opportunity"}}}},"400":{"$ref":"#/components/responses/BadRequest"},"401":{"$ref":"#/components/responses/Unauthorized"},"403":{"$ref":"#/components/responses/Forbidden"},"404":{"$ref":"#/components/responses/NotFound"},"409":{"$ref":"#/components/responses/Conflict"},"429":{"$ref":"#/components/responses/TooManyRequests"},"500":{"$ref":"#/components/responses/ServerError"}},"security":[{"JWT":[]},{"ApiKey":[]}],"tags":["Opportunities"],"summary":"Advance stage","x-api-key-scopes":["WRITE_OPPORTUNITIES"]}},"/v1/opportunities/{id}/close-won":{"post":{"operationId":"opportunities_closeWon","parameters":[{"name":"id","required":true,"in":"path","schema":{"type":"string"}},{"$ref":"#/components/parameters/IdempotencyKey"}],"responses":{"201":{"description":"Opportunity","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Opportunity"}}}},"400":{"$ref":"#/components/responses/BadRequest"},"401":{"$ref":"#/components/responses/Unauthorized"},"403":{"$ref":"#/components/responses/Forbidden"},"404":{"$ref":"#/components/responses/NotFound"},"409":{"$ref":"#/components/responses/Conflict"},"429":{"$ref":"#/components/responses/TooManyRequests"},"500":{"$ref":"#/components/responses/ServerError"}},"security":[{"JWT":[]},{"ApiKey":[]}],"tags":["Opportunities"],"summary":"Close won","x-api-key-scopes":["WRITE_OPPORTUNITIES"]}},"/v1/opportunities/{id}/close-lost":{"post":{"operationId":"opportunities_closeLost","parameters":[{"name":"id","required":true,"in":"path","schema":{"type":"string"}},{"$ref":"#/components/parameters/IdempotencyKey"}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/CloseLostBody"}}}},"responses":{"201":{"description":"Opportunity","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Opportunity"}}}},"400":{"$ref":"#/components/responses/BadRequest"},"401":{"$ref":"#/components/responses/Unauthorized"},"403":{"$ref":"#/components/responses/Forbidden"},"404":{"$ref":"#/components/responses/NotFound"},"409":{"$ref":"#/components/responses/Conflict"},"429":{"$ref":"#/components/responses/TooManyRequests"},"500":{"$ref":"#/components/responses/ServerError"}},"security":[{"JWT":[]},{"ApiKey":[]}],"tags":["Opportunities"],"summary":"Close lost","x-api-key-scopes":["WRITE_OPPORTUNITIES"]}},"/v1/opportunities/{id}/analysis":{"get":{"operationId":"opportunities_getStoredAnalysis","parameters":[{"name":"id","required":true,"in":"path","schema":{"type":"string"}}],"responses":{"200":{"description":"","content":{"application/json":{"schema":{"type":"object"}}}},"400":{"$ref":"#/components/responses/BadRequest"},"401":{"$ref":"#/components/responses/Unauthorized"},"403":{"$ref":"#/components/responses/Forbidden"},"404":{"$ref":"#/components/responses/NotFound"},"429":{"$ref":"#/components/responses/TooManyRequests"},"500":{"$ref":"#/components/responses/ServerError"}},"security":[{"JWT":[]},{"ApiKey":[]}],"summary":"The last stored assessment, returned instantly without running a new analysis.","tags":["Opportunities"],"x-api-key-scopes":["READ_OPPORTUNITIES"]}},"/v1/opportunities/{id}/analyze":{"post":{"operationId":"opportunities_analyze","parameters":[{"name":"id","required":true,"in":"path","schema":{"type":"string"}},{"$ref":"#/components/parameters/IdempotencyKey"}],"responses":{"201":{"description":"","content":{"application/json":{"schema":{"type":"object"}}}},"400":{"$ref":"#/components/responses/BadRequest"},"401":{"$ref":"#/components/responses/Unauthorized"},"403":{"$ref":"#/components/responses/Forbidden"},"404":{"$ref":"#/components/responses/NotFound"},"409":{"$ref":"#/components/responses/Conflict"},"429":{"$ref":"#/components/responses/TooManyRequests"},"500":{"$ref":"#/components/responses/ServerError"}},"security":[{"JWT":[]},{"ApiKey":[]}],"tags":["Opportunities"],"summary":"Analyze","x-api-key-scopes":["WRITE_OPPORTUNITIES"]}},"/v1/opportunities/{id}/contacts/{contactId}":{"patch":{"operationId":"opportunities_updateContact","parameters":[{"name":"id","required":true,"in":"path","schema":{"type":"string"}},{"name":"contactId","required":true,"in":"path","schema":{"type":"string"}},{"$ref":"#/components/parameters/IdempotencyKey"}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/UpdateContactBody"}}}},"responses":{"200":{"description":"OpportunityContactRole","content":{"application/json":{"schema":{"$ref":"#/components/schemas/OpportunityContactRole"}}}},"400":{"$ref":"#/components/responses/BadRequest"},"401":{"$ref":"#/components/responses/Unauthorized"},"403":{"$ref":"#/components/responses/Forbidden"},"404":{"$ref":"#/components/responses/NotFound"},"409":{"$ref":"#/components/responses/Conflict"},"429":{"$ref":"#/components/responses/TooManyRequests"},"500":{"$ref":"#/components/responses/ServerError"}},"security":[{"JWT":[]},{"ApiKey":[]}],"tags":["Opportunities"],"summary":"Update contact","x-api-key-scopes":["WRITE_OPPORTUNITIES"]},"delete":{"operationId":"opportunities_removeContact","parameters":[{"name":"id","required":true,"in":"path","schema":{"type":"string"}},{"name":"contactId","required":true,"in":"path","schema":{"type":"string"}}],"responses":{"200":{"description":"No response body."},"400":{"$ref":"#/components/responses/BadRequest"},"401":{"$ref":"#/components/responses/Unauthorized"},"403":{"$ref":"#/components/responses/Forbidden"},"404":{"$ref":"#/components/responses/NotFound"},"429":{"$ref":"#/components/responses/TooManyRequests"},"500":{"$ref":"#/components/responses/ServerError"}},"security":[{"JWT":[]},{"ApiKey":[]}],"tags":["Opportunities"],"summary":"Remove contact","x-api-key-scopes":["WRITE_OPPORTUNITIES"]}},"/v1/opportunities/{id}/contacts/{contactId}/set-primary":{"post":{"operationId":"opportunities_setPrimaryContact","parameters":[{"name":"id","required":true,"in":"path","schema":{"type":"string"}},{"name":"contactId","required":true,"in":"path","schema":{"type":"string"}},{"$ref":"#/components/parameters/IdempotencyKey"}],"responses":{"201":{"description":"OpportunityContactRole","content":{"application/json":{"schema":{"$ref":"#/components/schemas/OpportunityContactRole"}}}},"400":{"$ref":"#/components/responses/BadRequest"},"401":{"$ref":"#/components/responses/Unauthorized"},"403":{"$ref":"#/components/responses/Forbidden"},"404":{"$ref":"#/components/responses/NotFound"},"409":{"$ref":"#/components/responses/Conflict"},"429":{"$ref":"#/components/responses/TooManyRequests"},"500":{"$ref":"#/components/responses/ServerError"}},"security":[{"JWT":[]},{"ApiKey":[]}],"tags":["Opportunities"],"summary":"Set primary contact","x-api-key-scopes":["WRITE_OPPORTUNITIES"]}},"/v1/opportunities/bulk/update":{"post":{"operationId":"opportunities_bulkUpdate","parameters":[{"$ref":"#/components/parameters/IdempotencyKey"}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/BulkUpdateBody"}}}},"responses":{"201":{"description":"BulkActionResult","content":{"application/json":{"schema":{"$ref":"#/components/schemas/BulkActionResult"}}}},"400":{"$ref":"#/components/responses/BadRequest"},"401":{"$ref":"#/components/responses/Unauthorized"},"403":{"$ref":"#/components/responses/Forbidden"},"409":{"$ref":"#/components/responses/Conflict"},"429":{"$ref":"#/components/responses/TooManyRequests"},"500":{"$ref":"#/components/responses/ServerError"}},"security":[{"JWT":[]},{"ApiKey":[]}],"tags":["Opportunities"],"summary":"Bulk update","x-api-key-scopes":["WRITE_OPPORTUNITIES"]}},"/v1/opportunities/bulk/delete":{"post":{"operationId":"opportunities_bulkDelete","parameters":[{"$ref":"#/components/parameters/IdempotencyKey"}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/BulkDeleteBody"}}}},"responses":{"201":{"description":"BulkActionResult","content":{"application/json":{"schema":{"$ref":"#/components/schemas/BulkActionResult"}}}},"400":{"$ref":"#/components/responses/BadRequest"},"401":{"$ref":"#/components/responses/Unauthorized"},"403":{"$ref":"#/components/responses/Forbidden"},"409":{"$ref":"#/components/responses/Conflict"},"429":{"$ref":"#/components/responses/TooManyRequests"},"500":{"$ref":"#/components/responses/ServerError"}},"security":[{"JWT":[]},{"ApiKey":[]}],"tags":["Opportunities"],"summary":"Bulk delete","x-api-key-scopes":["WRITE_OPPORTUNITIES"]}},"/v1/opportunities/bulk/assign":{"post":{"operationId":"opportunities_bulkAssign","parameters":[{"$ref":"#/components/parameters/IdempotencyKey"}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/BulkAssignBody"}}}},"responses":{"201":{"description":"BulkActionResult","content":{"application/json":{"schema":{"$ref":"#/components/schemas/BulkActionResult"}}}},"400":{"$ref":"#/components/responses/BadRequest"},"401":{"$ref":"#/components/responses/Unauthorized"},"403":{"$ref":"#/components/responses/Forbidden"},"409":{"$ref":"#/components/responses/Conflict"},"429":{"$ref":"#/components/responses/TooManyRequests"},"500":{"$ref":"#/components/responses/ServerError"}},"security":[{"JWT":[]},{"ApiKey":[]}],"tags":["Opportunities"],"summary":"Bulk assign","x-api-key-scopes":["WRITE_OPPORTUNITIES"]}},"/v1/opportunities/bulk/stage":{"post":{"operationId":"opportunities_bulkUpdateStage","parameters":[{"$ref":"#/components/parameters/IdempotencyKey"}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/BulkUpdateStageBody"}}}},"responses":{"201":{"description":"BulkActionResult","content":{"application/json":{"schema":{"$ref":"#/components/schemas/BulkActionResult"}}}},"400":{"$ref":"#/components/responses/BadRequest"},"401":{"$ref":"#/components/responses/Unauthorized"},"403":{"$ref":"#/components/responses/Forbidden"},"409":{"$ref":"#/components/responses/Conflict"},"429":{"$ref":"#/components/responses/TooManyRequests"},"500":{"$ref":"#/components/responses/ServerError"}},"security":[{"JWT":[]},{"ApiKey":[]}],"tags":["Opportunities"],"summary":"Bulk update stage","x-api-key-scopes":["WRITE_OPPORTUNITIES"]}},"/v1/pipeline/deals":{"get":{"operationId":"pipeline_getPipelineDeals","parameters":[{"name":"mode","required":false,"in":"query","schema":{"type":"string","enum":["salesforce","local"]}},{"name":"ownerId","required":false,"in":"query","schema":{"type":"string"}},{"name":"forecastCategory","required":false,"in":"query","schema":{"type":"string","enum":["commit","most-likely","best-case","key-deals","must-win","low-likelihood"]}},{"name":"stage","required":false,"in":"query","schema":{"type":"string"}},{"name":"minAmount","required":false,"in":"query","schema":{"type":"number"}},{"name":"maxAmount","required":false,"in":"query","schema":{"type":"number"}},{"name":"closeDateFrom","required":false,"in":"query","schema":{"type":"string"}},{"name":"closeDateTo","required":false,"in":"query","schema":{"type":"string"}},{"name":"search","required":false,"in":"query","schema":{"type":"string"}},{"name":"limit","required":false,"in":"query","schema":{"type":"number"}},{"name":"offset","required":false,"in":"query","schema":{"type":"number"}}],"responses":{"200":{"description":"","content":{"application/json":{"schema":{"type":"array","items":{"$ref":"#/components/schemas/PipelineDealResponseDto"}}}}},"400":{"$ref":"#/components/responses/BadRequest"},"401":{"$ref":"#/components/responses/Unauthorized"},"403":{"$ref":"#/components/responses/Forbidden"},"429":{"$ref":"#/components/responses/TooManyRequests"},"500":{"$ref":"#/components/responses/ServerError"}},"security":[{"JWT":[]},{"ApiKey":[]}],"summary":"Get pipeline deals with MEDDIC and forecast data","tags":["Pipelines"],"x-api-key-scopes":["*"]}},"/v1/pipeline/stats":{"get":{"operationId":"pipeline_getPipelineStats","parameters":[{"name":"mode","required":false,"in":"query","schema":{"type":"string","enum":["salesforce","local"]}},{"name":"ownerId","required":false,"in":"query","schema":{"type":"string"}},{"name":"forecastCategory","required":false,"in":"query","schema":{"type":"string","enum":["commit","most-likely","best-case","key-deals","must-win","low-likelihood"]}},{"name":"stage","required":false,"in":"query","schema":{"type":"string"}},{"name":"minAmount","required":false,"in":"query","schema":{"type":"number"}},{"name":"maxAmount","required":false,"in":"query","schema":{"type":"number"}},{"name":"closeDateFrom","required":false,"in":"query","schema":{"type":"string"}},{"name":"closeDateTo","required":false,"in":"query","schema":{"type":"string"}},{"name":"search","required":false,"in":"query","schema":{"type":"string"}},{"name":"limit","required":false,"in":"query","schema":{"type":"number"}},{"name":"offset","required":false,"in":"query","schema":{"type":"number"}}],"responses":{"200":{"description":"","content":{"application/json":{"schema":{"$ref":"#/components/schemas/PipelineStatsResponseDto"}}}},"400":{"$ref":"#/components/responses/BadRequest"},"401":{"$ref":"#/components/responses/Unauthorized"},"403":{"$ref":"#/components/responses/Forbidden"},"429":{"$ref":"#/components/responses/TooManyRequests"},"500":{"$ref":"#/components/responses/ServerError"}},"security":[{"JWT":[]},{"ApiKey":[]}],"summary":"Get pipeline statistics and forecast summaries","tags":["Pipelines"],"x-api-key-scopes":["*"]}},"/v1/pipeline/meddic":{"put":{"operationId":"pipeline_updateMEDDIC","parameters":[],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/UpdateMEDDICDto"}}}},"responses":{"200":{"description":"","content":{"application/json":{"schema":{"$ref":"#/components/schemas/MEDDICScoreDto"}}}},"400":{"$ref":"#/components/responses/BadRequest"},"401":{"$ref":"#/components/responses/Unauthorized"},"403":{"$ref":"#/components/responses/Forbidden"},"429":{"$ref":"#/components/responses/TooManyRequests"},"500":{"$ref":"#/components/responses/ServerError"}},"security":[{"JWT":[]},{"ApiKey":[]}],"summary":"Update MEDDIC score for an opportunity","tags":["Pipelines"],"x-api-key-scopes":["*"]}},"/v1/pipeline/forecast":{"put":{"operationId":"pipeline_updateForecastCategory","parameters":[],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/UpdateForecastCategoryDto"}}}},"responses":{"200":{"description":""},"400":{"$ref":"#/components/responses/BadRequest"},"401":{"$ref":"#/components/responses/Unauthorized"},"403":{"$ref":"#/components/responses/Forbidden"},"429":{"$ref":"#/components/responses/TooManyRequests"},"500":{"$ref":"#/components/responses/ServerError"}},"security":[{"JWT":[]},{"ApiKey":[]}],"summary":"Update forecast category for an opportunity","tags":["Pipelines"],"x-api-key-scopes":["*"]}},"/v1/pipeline/meddic/analyze/{opportunityId}":{"get":{"operationId":"pipeline_analyzeMEDDIC","parameters":[{"name":"opportunityId","required":true,"in":"path","schema":{"type":"string"}}],"responses":{"200":{"description":""},"400":{"$ref":"#/components/responses/BadRequest"},"401":{"$ref":"#/components/responses/Unauthorized"},"403":{"$ref":"#/components/responses/Forbidden"},"404":{"$ref":"#/components/responses/NotFound"},"429":{"$ref":"#/components/responses/TooManyRequests"},"500":{"$ref":"#/components/responses/ServerError"}},"security":[{"JWT":[]},{"ApiKey":[]}],"summary":"Get AI-powered MEDDIC analysis for an opportunity","tags":["Pipelines"],"x-api-key-scopes":["*"]}},"/v1/payments/public/coupons/validate":{"post":{"operationId":"publicPayments_validateCoupon","parameters":[{"$ref":"#/components/parameters/IdempotencyKey"}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ValidateCouponDto"}}}},"responses":{"200":{"description":"","content":{"application/json":{"schema":{"type":"object"}}}},"400":{"$ref":"#/components/responses/BadRequest"},"409":{"$ref":"#/components/responses/Conflict"},"429":{"$ref":"#/components/responses/TooManyRequests"},"500":{"$ref":"#/components/responses/ServerError"}},"tags":["Payments"],"summary":"Validate coupon","security":[]}},"/v1/payments/checkout":{"post":{"operationId":"payments_createCheckoutSession","parameters":[{"$ref":"#/components/parameters/IdempotencyKey"}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/CreateCheckoutSessionDto"}}}},"responses":{"201":{"description":""},"400":{"$ref":"#/components/responses/BadRequest"},"401":{"$ref":"#/components/responses/Unauthorized"},"403":{"$ref":"#/components/responses/Forbidden"},"409":{"$ref":"#/components/responses/Conflict"},"429":{"$ref":"#/components/responses/TooManyRequests"},"500":{"$ref":"#/components/responses/ServerError"}},"security":[{"JWT":[]},{"ApiKey":[]}],"tags":["Payments"],"summary":"Create checkout session","x-api-key-scopes":["*"]}},"/v1/payments/billing/customer":{"get":{"operationId":"payments_getBillingCustomer","parameters":[],"responses":{"200":{"description":"","content":{"application/json":{"schema":{"type":"object"}}}},"401":{"$ref":"#/components/responses/Unauthorized"},"403":{"$ref":"#/components/responses/Forbidden"},"429":{"$ref":"#/components/responses/TooManyRequests"},"500":{"$ref":"#/components/responses/ServerError"}},"security":[{"JWT":[]},{"ApiKey":[]}],"tags":["Payments"],"summary":"Get billing customer","x-api-key-scopes":["*"]},"put":{"operationId":"payments_updateBillingCustomer","parameters":[],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/UpdateBillingCustomerDto"}}}},"responses":{"200":{"description":""},"400":{"$ref":"#/components/responses/BadRequest"},"401":{"$ref":"#/components/responses/Unauthorized"},"403":{"$ref":"#/components/responses/Forbidden"},"429":{"$ref":"#/components/responses/TooManyRequests"},"500":{"$ref":"#/components/responses/ServerError"}},"security":[{"JWT":[]},{"ApiKey":[]}],"tags":["Payments"],"summary":"Update billing customer","x-api-key-scopes":["*"]}},"/v1/payments/billing/portal":{"post":{"operationId":"payments_createCustomerPortalSession","parameters":[{"$ref":"#/components/parameters/IdempotencyKey"}],"responses":{"201":{"description":"","content":{"application/json":{"schema":{"type":"object"}}}},"400":{"$ref":"#/components/responses/BadRequest"},"401":{"$ref":"#/components/responses/Unauthorized"},"403":{"$ref":"#/components/responses/Forbidden"},"409":{"$ref":"#/components/responses/Conflict"},"429":{"$ref":"#/components/responses/TooManyRequests"},"500":{"$ref":"#/components/responses/ServerError"}},"security":[{"JWT":[]},{"ApiKey":[]}],"tags":["Payments"],"summary":"Create customer portal session","x-api-key-scopes":["*"]}},"/v1/payments/subscriptions":{"get":{"operationId":"payments_getSubscriptions","parameters":[],"responses":{"200":{"description":""},"401":{"$ref":"#/components/responses/Unauthorized"},"403":{"$ref":"#/components/responses/Forbidden"},"429":{"$ref":"#/components/responses/TooManyRequests"},"500":{"$ref":"#/components/responses/ServerError"}},"security":[{"JWT":[]},{"ApiKey":[]}],"tags":["Payments"],"summary":"Get subscriptions","x-api-key-scopes":["*"]}},"/v1/payments/subscriptions/{id}":{"get":{"operationId":"payments_getSubscription","parameters":[{"name":"id","required":true,"in":"path","schema":{"type":"string"}}],"responses":{"200":{"description":"","content":{"application/json":{"schema":{"type":"object"}}}},"400":{"$ref":"#/components/responses/BadRequest"},"401":{"$ref":"#/components/responses/Unauthorized"},"403":{"$ref":"#/components/responses/Forbidden"},"404":{"$ref":"#/components/responses/NotFound"},"429":{"$ref":"#/components/responses/TooManyRequests"},"500":{"$ref":"#/components/responses/ServerError"}},"security":[{"JWT":[]},{"ApiKey":[]}],"tags":["Payments"],"summary":"Get subscription","x-api-key-scopes":["*"]}},"/v1/payments/subscriptions/{id}/cancel":{"post":{"operationId":"payments_cancelSubscription","parameters":[{"name":"id","required":true,"in":"path","schema":{"type":"string"}},{"$ref":"#/components/parameters/IdempotencyKey"}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/CancelSubscriptionDto"}}}},"responses":{"200":{"description":""},"400":{"$ref":"#/components/responses/BadRequest"},"401":{"$ref":"#/components/responses/Unauthorized"},"403":{"$ref":"#/components/responses/Forbidden"},"404":{"$ref":"#/components/responses/NotFound"},"409":{"$ref":"#/components/responses/Conflict"},"429":{"$ref":"#/components/responses/TooManyRequests"},"500":{"$ref":"#/components/responses/ServerError"}},"security":[{"JWT":[]},{"ApiKey":[]}],"tags":["Payments"],"summary":"Cancel subscription","x-api-key-scopes":["*"]}},"/v1/payments/subscriptions/{id}/resume":{"post":{"operationId":"payments_resumeSubscription","parameters":[{"name":"id","required":true,"in":"path","schema":{"type":"string"}},{"$ref":"#/components/parameters/IdempotencyKey"}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ResumeSubscriptionDto"}}}},"responses":{"200":{"description":""},"400":{"$ref":"#/components/responses/BadRequest"},"401":{"$ref":"#/components/responses/Unauthorized"},"403":{"$ref":"#/components/responses/Forbidden"},"404":{"$ref":"#/components/responses/NotFound"},"409":{"$ref":"#/components/responses/Conflict"},"429":{"$ref":"#/components/responses/TooManyRequests"},"500":{"$ref":"#/components/responses/ServerError"}},"security":[{"JWT":[]},{"ApiKey":[]}],"tags":["Payments"],"summary":"Resume subscription","x-api-key-scopes":["*"]}},"/v1/payments/subscriptions/{id}/change-plan":{"post":{"operationId":"payments_changeSubscriptionPlan","parameters":[{"name":"id","required":true,"in":"path","schema":{"type":"string"}},{"$ref":"#/components/parameters/IdempotencyKey"}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ChangeSubscriptionPlanDto"}}}},"responses":{"200":{"description":""},"400":{"$ref":"#/components/responses/BadRequest"},"401":{"$ref":"#/components/responses/Unauthorized"},"403":{"$ref":"#/components/responses/Forbidden"},"404":{"$ref":"#/components/responses/NotFound"},"409":{"$ref":"#/components/responses/Conflict"},"429":{"$ref":"#/components/responses/TooManyRequests"},"500":{"$ref":"#/components/responses/ServerError"}},"security":[{"JWT":[]},{"ApiKey":[]}],"tags":["Payments"],"summary":"Change subscription plan","x-api-key-scopes":["*"]}},"/v1/payments/subscriptions/{id}/upgrade-preview":{"get":{"operationId":"payments_previewSubscriptionChange","parameters":[{"name":"id","required":true,"in":"path","schema":{"type":"string"}},{"name":"newLicenseTypeId","required":true,"in":"query","schema":{"type":"string"}},{"name":"billingCycle","required":false,"in":"query","schema":{"type":"string"}}],"responses":{"200":{"description":""},"400":{"$ref":"#/components/responses/BadRequest"},"401":{"$ref":"#/components/responses/Unauthorized"},"403":{"$ref":"#/components/responses/Forbidden"},"404":{"$ref":"#/components/responses/NotFound"},"429":{"$ref":"#/components/responses/TooManyRequests"},"500":{"$ref":"#/components/responses/ServerError"}},"security":[{"JWT":[]},{"ApiKey":[]}],"tags":["Payments"],"summary":"Preview subscription change","x-api-key-scopes":["*"]}},"/v1/payments/invoices":{"get":{"operationId":"payments_getInvoices","parameters":[],"responses":{"200":{"description":""},"401":{"$ref":"#/components/responses/Unauthorized"},"403":{"$ref":"#/components/responses/Forbidden"},"429":{"$ref":"#/components/responses/TooManyRequests"},"500":{"$ref":"#/components/responses/ServerError"}},"security":[{"JWT":[]},{"ApiKey":[]}],"tags":["Payments"],"summary":"Get invoices","x-api-key-scopes":["*"]}},"/v1/payments/invoices/{id}":{"get":{"operationId":"payments_getInvoice","parameters":[{"name":"id","required":true,"in":"path","schema":{"type":"string"}}],"responses":{"200":{"description":"","content":{"application/json":{"schema":{"type":"object"}}}},"400":{"$ref":"#/components/responses/BadRequest"},"401":{"$ref":"#/components/responses/Unauthorized"},"403":{"$ref":"#/components/responses/Forbidden"},"404":{"$ref":"#/components/responses/NotFound"},"429":{"$ref":"#/components/responses/TooManyRequests"},"500":{"$ref":"#/components/responses/ServerError"}},"security":[{"JWT":[]},{"ApiKey":[]}],"tags":["Payments"],"summary":"Get invoice","x-api-key-scopes":["*"]}},"/v1/payments/invoices/{id}/pdf":{"get":{"operationId":"payments_downloadInvoicePdf","parameters":[{"name":"id","required":true,"in":"path","schema":{"type":"string"}}],"responses":{"200":{"description":""},"400":{"$ref":"#/components/responses/BadRequest"},"401":{"$ref":"#/components/responses/Unauthorized"},"403":{"$ref":"#/components/responses/Forbidden"},"404":{"$ref":"#/components/responses/NotFound"},"429":{"$ref":"#/components/responses/TooManyRequests"},"500":{"$ref":"#/components/responses/ServerError"}},"security":[{"JWT":[]},{"ApiKey":[]}],"tags":["Payments"],"summary":"Download invoice pdf","x-api-key-scopes":["*"]}},"/v1/payments/payment-methods":{"get":{"operationId":"payments_getPaymentMethods","parameters":[],"responses":{"200":{"description":""},"401":{"$ref":"#/components/responses/Unauthorized"},"403":{"$ref":"#/components/responses/Forbidden"},"429":{"$ref":"#/components/responses/TooManyRequests"},"500":{"$ref":"#/components/responses/ServerError"}},"security":[{"JWT":[]},{"ApiKey":[]}],"tags":["Payments"],"summary":"Get payment methods","x-api-key-scopes":["*"]},"post":{"operationId":"payments_addPaymentMethod","parameters":[{"$ref":"#/components/parameters/IdempotencyKey"}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/AddPaymentMethodDto"}}}},"responses":{"201":{"description":""},"400":{"$ref":"#/components/responses/BadRequest"},"401":{"$ref":"#/components/responses/Unauthorized"},"403":{"$ref":"#/components/responses/Forbidden"},"409":{"$ref":"#/components/responses/Conflict"},"429":{"$ref":"#/components/responses/TooManyRequests"},"500":{"$ref":"#/components/responses/ServerError"}},"security":[{"JWT":[]},{"ApiKey":[]}],"tags":["Payments"],"summary":"Add payment method","x-api-key-scopes":["*"]}},"/v1/payments/payment-methods/{id}":{"delete":{"operationId":"payments_removePaymentMethod","parameters":[{"name":"id","required":true,"in":"path","schema":{"type":"string"}}],"responses":{"204":{"description":""},"400":{"$ref":"#/components/responses/BadRequest"},"401":{"$ref":"#/components/responses/Unauthorized"},"403":{"$ref":"#/components/responses/Forbidden"},"404":{"$ref":"#/components/responses/NotFound"},"429":{"$ref":"#/components/responses/TooManyRequests"},"500":{"$ref":"#/components/responses/ServerError"}},"security":[{"JWT":[]},{"ApiKey":[]}],"tags":["Payments"],"summary":"Remove payment method","x-api-key-scopes":["*"]}},"/v1/payments/payment-methods/{id}/default":{"put":{"operationId":"payments_setDefaultPaymentMethod","parameters":[{"name":"id","required":true,"in":"path","schema":{"type":"string"}}],"responses":{"200":{"description":""},"400":{"$ref":"#/components/responses/BadRequest"},"401":{"$ref":"#/components/responses/Unauthorized"},"403":{"$ref":"#/components/responses/Forbidden"},"404":{"$ref":"#/components/responses/NotFound"},"429":{"$ref":"#/components/responses/TooManyRequests"},"500":{"$ref":"#/components/responses/ServerError"}},"security":[{"JWT":[]},{"ApiKey":[]}],"tags":["Payments"],"summary":"Set default payment method","x-api-key-scopes":["*"]}},"/v1/payments/coupons/validate":{"post":{"operationId":"payments_validateCoupon","parameters":[{"$ref":"#/components/parameters/IdempotencyKey"}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ValidateCouponDto"}}}},"responses":{"200":{"description":"","content":{"application/json":{"schema":{"type":"object"}}}},"400":{"$ref":"#/components/responses/BadRequest"},"401":{"$ref":"#/components/responses/Unauthorized"},"403":{"$ref":"#/components/responses/Forbidden"},"409":{"$ref":"#/components/responses/Conflict"},"429":{"$ref":"#/components/responses/TooManyRequests"},"500":{"$ref":"#/components/responses/ServerError"}},"security":[{"JWT":[]},{"ApiKey":[]}],"tags":["Payments"],"summary":"Validate coupon","x-api-key-scopes":["*"]}},"/v1/invoices":{"get":{"operationId":"invoiceManagement_listInvoices","parameters":[{"name":"status","required":false,"in":"query","schema":{"type":"string"}},{"name":"customerId","required":false,"in":"query","schema":{"type":"string"}},{"name":"page","required":false,"in":"query","schema":{"type":"string"}},{"name":"limit","required":false,"in":"query","schema":{"type":"string"}}],"responses":{"200":{"description":""},"400":{"$ref":"#/components/responses/BadRequest"},"401":{"$ref":"#/components/responses/Unauthorized"},"403":{"$ref":"#/components/responses/Forbidden"},"429":{"$ref":"#/components/responses/TooManyRequests"},"500":{"$ref":"#/components/responses/ServerError"}},"security":[{"JWT":[]},{"ApiKey":[]}],"tags":["Invoice Management"],"summary":"List invoices","x-api-key-scopes":["*"]},"post":{"operationId":"invoiceManagement_createInvoice","parameters":[{"$ref":"#/components/parameters/IdempotencyKey"}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/CreateInvoiceBody"}}}},"responses":{"201":{"description":""},"400":{"$ref":"#/components/responses/BadRequest"},"401":{"$ref":"#/components/responses/Unauthorized"},"403":{"$ref":"#/components/responses/Forbidden"},"409":{"$ref":"#/components/responses/Conflict"},"429":{"$ref":"#/components/responses/TooManyRequests"},"500":{"$ref":"#/components/responses/ServerError"}},"security":[{"JWT":[]},{"ApiKey":[]}],"tags":["Invoice Management"],"summary":"Create invoice","x-api-key-scopes":["*"]}},"/v1/invoices/stats":{"get":{"operationId":"invoiceManagement_getStats","parameters":[],"responses":{"200":{"description":""},"401":{"$ref":"#/components/responses/Unauthorized"},"403":{"$ref":"#/components/responses/Forbidden"},"429":{"$ref":"#/components/responses/TooManyRequests"},"500":{"$ref":"#/components/responses/ServerError"}},"security":[{"JWT":[]},{"ApiKey":[]}],"tags":["Invoice Management"],"summary":"Get stats","x-api-key-scopes":["*"]}},"/v1/invoices/aging":{"get":{"operationId":"invoiceManagement_getAging","parameters":[],"responses":{"200":{"description":""},"401":{"$ref":"#/components/responses/Unauthorized"},"403":{"$ref":"#/components/responses/Forbidden"},"429":{"$ref":"#/components/responses/TooManyRequests"},"500":{"$ref":"#/components/responses/ServerError"}},"security":[{"JWT":[]},{"ApiKey":[]}],"tags":["Invoice Management"],"summary":"Get aging","x-api-key-scopes":["*"]}},"/v1/invoices/dunning":{"get":{"operationId":"invoiceManagement_getDunningConfig","parameters":[],"responses":{"200":{"description":"","content":{"application/json":{"schema":{"type":"object"}}}},"401":{"$ref":"#/components/responses/Unauthorized"},"403":{"$ref":"#/components/responses/Forbidden"},"429":{"$ref":"#/components/responses/TooManyRequests"},"500":{"$ref":"#/components/responses/ServerError"}},"security":[{"JWT":[]},{"ApiKey":[]}],"tags":["Invoice Management"],"summary":"Get dunning config","x-api-key-scopes":["*"]},"patch":{"operationId":"invoiceManagement_updateDunningConfig","parameters":[{"$ref":"#/components/parameters/IdempotencyKey"}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/UpdateDunningConfigBody"}}}},"responses":{"200":{"description":"","content":{"application/json":{"schema":{"type":"object"}}}},"400":{"$ref":"#/components/responses/BadRequest"},"401":{"$ref":"#/components/responses/Unauthorized"},"403":{"$ref":"#/components/responses/Forbidden"},"409":{"$ref":"#/components/responses/Conflict"},"429":{"$ref":"#/components/responses/TooManyRequests"},"500":{"$ref":"#/components/responses/ServerError"}},"security":[{"JWT":[]},{"ApiKey":[]}],"tags":["Invoice Management"],"summary":"Update dunning config","x-api-key-scopes":["*"]}},"/v1/invoices/{id}":{"get":{"operationId":"invoiceManagement_getInvoice","parameters":[{"name":"id","required":true,"in":"path","schema":{"type":"string"}}],"responses":{"200":{"description":""},"400":{"$ref":"#/components/responses/BadRequest"},"401":{"$ref":"#/components/responses/Unauthorized"},"403":{"$ref":"#/components/responses/Forbidden"},"404":{"$ref":"#/components/responses/NotFound"},"429":{"$ref":"#/components/responses/TooManyRequests"},"500":{"$ref":"#/components/responses/ServerError"}},"security":[{"JWT":[]},{"ApiKey":[]}],"tags":["Invoice Management"],"summary":"Get invoice","x-api-key-scopes":["*"]},"patch":{"operationId":"invoiceManagement_updateInvoice","parameters":[{"name":"id","required":true,"in":"path","schema":{"type":"string"}},{"$ref":"#/components/parameters/IdempotencyKey"}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/UpdateInvoiceBody"}}}},"responses":{"200":{"description":""},"400":{"$ref":"#/components/responses/BadRequest"},"401":{"$ref":"#/components/responses/Unauthorized"},"403":{"$ref":"#/components/responses/Forbidden"},"404":{"$ref":"#/components/responses/NotFound"},"409":{"$ref":"#/components/responses/Conflict"},"429":{"$ref":"#/components/responses/TooManyRequests"},"500":{"$ref":"#/components/responses/ServerError"}},"security":[{"JWT":[]},{"ApiKey":[]}],"tags":["Invoice Management"],"summary":"Update invoice","x-api-key-scopes":["*"]},"delete":{"operationId":"invoiceManagement_deleteInvoice","parameters":[{"name":"id","required":true,"in":"path","schema":{"type":"string"}}],"responses":{"200":{"description":""},"400":{"$ref":"#/components/responses/BadRequest"},"401":{"$ref":"#/components/responses/Unauthorized"},"403":{"$ref":"#/components/responses/Forbidden"},"404":{"$ref":"#/components/responses/NotFound"},"429":{"$ref":"#/components/responses/TooManyRequests"},"500":{"$ref":"#/components/responses/ServerError"}},"security":[{"JWT":[]},{"ApiKey":[]}],"tags":["Invoice Management"],"summary":"Delete invoice","x-api-key-scopes":["*"]}},"/v1/invoices/{id}/send":{"post":{"operationId":"invoiceManagement_sendInvoice","parameters":[{"name":"id","required":true,"in":"path","schema":{"type":"string"}},{"$ref":"#/components/parameters/IdempotencyKey"}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/SendInvoiceBody"}}}},"responses":{"201":{"description":""},"400":{"$ref":"#/components/responses/BadRequest"},"401":{"$ref":"#/components/responses/Unauthorized"},"403":{"$ref":"#/components/responses/Forbidden"},"404":{"$ref":"#/components/responses/NotFound"},"409":{"$ref":"#/components/responses/Conflict"},"429":{"$ref":"#/components/responses/TooManyRequests"},"500":{"$ref":"#/components/responses/ServerError"}},"security":[{"JWT":[]},{"ApiKey":[]}],"tags":["Invoice Management"],"summary":"Send invoice","x-api-key-scopes":["*"]}},"/v1/invoices/{id}/payment":{"post":{"operationId":"invoiceManagement_recordPaymentFrontend","parameters":[{"name":"id","required":true,"in":"path","schema":{"type":"string"}},{"$ref":"#/components/parameters/IdempotencyKey"}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/RecordPaymentFrontendBody"}}}},"responses":{"201":{"description":""},"400":{"$ref":"#/components/responses/BadRequest"},"401":{"$ref":"#/components/responses/Unauthorized"},"403":{"$ref":"#/components/responses/Forbidden"},"404":{"$ref":"#/components/responses/NotFound"},"409":{"$ref":"#/components/responses/Conflict"},"429":{"$ref":"#/components/responses/TooManyRequests"},"500":{"$ref":"#/components/responses/ServerError"}},"security":[{"JWT":[]},{"ApiKey":[]}],"tags":["Invoice Management"],"summary":"Record payment frontend","x-api-key-scopes":["*"]}},"/v1/invoices/{id}/record-payment":{"post":{"operationId":"invoiceManagement_recordPayment","parameters":[{"name":"id","required":true,"in":"path","schema":{"type":"string"}},{"$ref":"#/components/parameters/IdempotencyKey"}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/RecordPaymentBody"}}}},"responses":{"201":{"description":""},"400":{"$ref":"#/components/responses/BadRequest"},"401":{"$ref":"#/components/responses/Unauthorized"},"403":{"$ref":"#/components/responses/Forbidden"},"404":{"$ref":"#/components/responses/NotFound"},"409":{"$ref":"#/components/responses/Conflict"},"429":{"$ref":"#/components/responses/TooManyRequests"},"500":{"$ref":"#/components/responses/ServerError"}},"security":[{"JWT":[]},{"ApiKey":[]}],"tags":["Invoice Management"],"summary":"Record payment","x-api-key-scopes":["*"]}},"/v1/invoices/{id}/void":{"post":{"operationId":"invoiceManagement_voidInvoice","parameters":[{"name":"id","required":true,"in":"path","schema":{"type":"string"}},{"$ref":"#/components/parameters/IdempotencyKey"}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/VoidInvoiceBody"}}}},"responses":{"201":{"description":""},"400":{"$ref":"#/components/responses/BadRequest"},"401":{"$ref":"#/components/responses/Unauthorized"},"403":{"$ref":"#/components/responses/Forbidden"},"404":{"$ref":"#/components/responses/NotFound"},"409":{"$ref":"#/components/responses/Conflict"},"429":{"$ref":"#/components/responses/TooManyRequests"},"500":{"$ref":"#/components/responses/ServerError"}},"security":[{"JWT":[]},{"ApiKey":[]}],"tags":["Invoice Management"],"summary":"Void invoice","x-api-key-scopes":["*"]}},"/v1/invoices/{id}/reminder":{"post":{"operationId":"invoiceManagement_sendReminder","parameters":[{"name":"id","required":true,"in":"path","schema":{"type":"string"}},{"$ref":"#/components/parameters/IdempotencyKey"}],"responses":{"201":{"description":""},"400":{"$ref":"#/components/responses/BadRequest"},"401":{"$ref":"#/components/responses/Unauthorized"},"403":{"$ref":"#/components/responses/Forbidden"},"404":{"$ref":"#/components/responses/NotFound"},"409":{"$ref":"#/components/responses/Conflict"},"429":{"$ref":"#/components/responses/TooManyRequests"},"500":{"$ref":"#/components/responses/ServerError"}},"security":[{"JWT":[]},{"ApiKey":[]}],"tags":["Invoice Management"],"summary":"Send reminder","x-api-key-scopes":["*"]}},"/v1/invoices/from-order":{"post":{"operationId":"invoiceManagement_createFromOrderBody","parameters":[{"$ref":"#/components/parameters/IdempotencyKey"}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/CreateFromOrderBodyBody"}}}},"responses":{"201":{"description":""},"400":{"$ref":"#/components/responses/BadRequest"},"401":{"$ref":"#/components/responses/Unauthorized"},"403":{"$ref":"#/components/responses/Forbidden"},"409":{"$ref":"#/components/responses/Conflict"},"429":{"$ref":"#/components/responses/TooManyRequests"},"500":{"$ref":"#/components/responses/ServerError"}},"security":[{"JWT":[]},{"ApiKey":[]}],"tags":["Invoice Management"],"summary":"Create from order body","x-api-key-scopes":["*"]}},"/v1/invoices/from-order/{orderId}":{"post":{"operationId":"invoiceManagement_createFromOrder","parameters":[{"name":"orderId","required":true,"in":"path","schema":{"type":"string"}},{"$ref":"#/components/parameters/IdempotencyKey"}],"responses":{"201":{"description":""},"400":{"$ref":"#/components/responses/BadRequest"},"401":{"$ref":"#/components/responses/Unauthorized"},"403":{"$ref":"#/components/responses/Forbidden"},"404":{"$ref":"#/components/responses/NotFound"},"409":{"$ref":"#/components/responses/Conflict"},"429":{"$ref":"#/components/responses/TooManyRequests"},"500":{"$ref":"#/components/responses/ServerError"}},"security":[{"JWT":[]},{"ApiKey":[]}],"tags":["Invoice Management"],"summary":"Create from order","x-api-key-scopes":["*"]}},"/v1/tax-rates":{"get":{"operationId":"taxRates_findAll","parameters":[],"responses":{"200":{"description":""},"401":{"$ref":"#/components/responses/Unauthorized"},"403":{"$ref":"#/components/responses/Forbidden"},"429":{"$ref":"#/components/responses/TooManyRequests"},"500":{"$ref":"#/components/responses/ServerError"}},"security":[{"JWT":[]},{"ApiKey":[]}],"summary":"List tax rates","tags":["Tax Rates"],"x-api-key-scopes":["*"]},"post":{"operationId":"taxRates_create","parameters":[{"$ref":"#/components/parameters/IdempotencyKey"}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/CreateTaxRateDto"}}}},"responses":{"201":{"description":""},"400":{"$ref":"#/components/responses/BadRequest"},"401":{"$ref":"#/components/responses/Unauthorized"},"403":{"$ref":"#/components/responses/Forbidden"},"409":{"$ref":"#/components/responses/Conflict"},"429":{"$ref":"#/components/responses/TooManyRequests"},"500":{"$ref":"#/components/responses/ServerError"}},"security":[{"JWT":[]},{"ApiKey":[]}],"summary":"Create a tax rate","tags":["Tax Rates"],"x-api-key-scopes":["*"]}},"/v1/tax-rates/stats":{"get":{"operationId":"taxRates_getStats","parameters":[],"responses":{"200":{"description":""},"401":{"$ref":"#/components/responses/Unauthorized"},"403":{"$ref":"#/components/responses/Forbidden"},"429":{"$ref":"#/components/responses/TooManyRequests"},"500":{"$ref":"#/components/responses/ServerError"}},"security":[{"JWT":[]},{"ApiKey":[]}],"summary":"Get tax rate statistics","tags":["Tax Rates"],"x-api-key-scopes":["*"]}},"/v1/tax-rates/default":{"get":{"operationId":"taxRates_getDefault","parameters":[{"name":"country","required":true,"in":"query","schema":{"type":"string"}},{"name":"region","required":true,"in":"query","schema":{"type":"string"}}],"responses":{"200":{"description":"","content":{"application/json":{"schema":{"type":"object"}}}},"400":{"$ref":"#/components/responses/BadRequest"},"401":{"$ref":"#/components/responses/Unauthorized"},"403":{"$ref":"#/components/responses/Forbidden"},"429":{"$ref":"#/components/responses/TooManyRequests"},"500":{"$ref":"#/components/responses/ServerError"}},"security":[{"JWT":[]},{"ApiKey":[]}],"summary":"Get the default tax rate for a location","tags":["Tax Rates"],"x-api-key-scopes":["*"]}},"/v1/tax-rates/country/{country}":{"get":{"operationId":"taxRates_findByCountry","parameters":[{"name":"country","required":true,"in":"path","schema":{"type":"string"}}],"responses":{"200":{"description":""},"400":{"$ref":"#/components/responses/BadRequest"},"401":{"$ref":"#/components/responses/Unauthorized"},"403":{"$ref":"#/components/responses/Forbidden"},"404":{"$ref":"#/components/responses/NotFound"},"429":{"$ref":"#/components/responses/TooManyRequests"},"500":{"$ref":"#/components/responses/ServerError"}},"security":[{"JWT":[]},{"ApiKey":[]}],"summary":"List tax rates for a country","tags":["Tax Rates"],"x-api-key-scopes":["*"]}},"/v1/tax-rates/{id}":{"get":{"operationId":"taxRates_findOne","parameters":[{"name":"id","required":true,"in":"path","schema":{"type":"string"}}],"responses":{"200":{"description":""},"400":{"$ref":"#/components/responses/BadRequest"},"401":{"$ref":"#/components/responses/Unauthorized"},"403":{"$ref":"#/components/responses/Forbidden"},"404":{"$ref":"#/components/responses/NotFound"},"429":{"$ref":"#/components/responses/TooManyRequests"},"500":{"$ref":"#/components/responses/ServerError"}},"security":[{"JWT":[]},{"ApiKey":[]}],"summary":"Get a tax rate","tags":["Tax Rates"],"x-api-key-scopes":["*"]},"patch":{"operationId":"taxRates_update","parameters":[{"name":"id","required":true,"in":"path","schema":{"type":"string"}},{"$ref":"#/components/parameters/IdempotencyKey"}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/UpdateTaxRateDto"}}}},"responses":{"200":{"description":""},"400":{"$ref":"#/components/responses/BadRequest"},"401":{"$ref":"#/components/responses/Unauthorized"},"403":{"$ref":"#/components/responses/Forbidden"},"404":{"$ref":"#/components/responses/NotFound"},"409":{"$ref":"#/components/responses/Conflict"},"429":{"$ref":"#/components/responses/TooManyRequests"},"500":{"$ref":"#/components/responses/ServerError"}},"security":[{"JWT":[]},{"ApiKey":[]}],"summary":"Update a tax rate","tags":["Tax Rates"],"x-api-key-scopes":["*"]},"delete":{"operationId":"taxRates_remove","parameters":[{"name":"id","required":true,"in":"path","schema":{"type":"string"}}],"responses":{"200":{"description":""},"400":{"$ref":"#/components/responses/BadRequest"},"401":{"$ref":"#/components/responses/Unauthorized"},"403":{"$ref":"#/components/responses/Forbidden"},"404":{"$ref":"#/components/responses/NotFound"},"429":{"$ref":"#/components/responses/TooManyRequests"},"500":{"$ref":"#/components/responses/ServerError"}},"security":[{"JWT":[]},{"ApiKey":[]}],"summary":"Delete a tax rate","tags":["Tax Rates"],"x-api-key-scopes":["*"]}},"/v1/tax-rates/{id}/set-default":{"post":{"operationId":"taxRates_setAsDefault","parameters":[{"name":"id","required":true,"in":"path","schema":{"type":"string"}},{"$ref":"#/components/parameters/IdempotencyKey"}],"responses":{"201":{"description":""},"400":{"$ref":"#/components/responses/BadRequest"},"401":{"$ref":"#/components/responses/Unauthorized"},"403":{"$ref":"#/components/responses/Forbidden"},"404":{"$ref":"#/components/responses/NotFound"},"409":{"$ref":"#/components/responses/Conflict"},"429":{"$ref":"#/components/responses/TooManyRequests"},"500":{"$ref":"#/components/responses/ServerError"}},"security":[{"JWT":[]},{"ApiKey":[]}],"summary":"Set a tax rate as default for its location","tags":["Tax Rates"],"x-api-key-scopes":["*"]}},"/v1/tax-rates/{id}/toggle-active":{"post":{"operationId":"taxRates_toggleActive","parameters":[{"name":"id","required":true,"in":"path","schema":{"type":"string"}},{"$ref":"#/components/parameters/IdempotencyKey"}],"responses":{"201":{"description":""},"400":{"$ref":"#/components/responses/BadRequest"},"401":{"$ref":"#/components/responses/Unauthorized"},"403":{"$ref":"#/components/responses/Forbidden"},"404":{"$ref":"#/components/responses/NotFound"},"409":{"$ref":"#/components/responses/Conflict"},"429":{"$ref":"#/components/responses/TooManyRequests"},"500":{"$ref":"#/components/responses/ServerError"}},"security":[{"JWT":[]},{"ApiKey":[]}],"summary":"Toggle a tax rate active/inactive","tags":["Tax Rates"],"x-api-key-scopes":["*"]}},"/v1/tax-rates/calculate":{"post":{"operationId":"taxRates_calculate","parameters":[{"$ref":"#/components/parameters/IdempotencyKey"}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/CalculateTaxDto"}}}},"responses":{"201":{"description":""},"400":{"$ref":"#/components/responses/BadRequest"},"401":{"$ref":"#/components/responses/Unauthorized"},"403":{"$ref":"#/components/responses/Forbidden"},"409":{"$ref":"#/components/responses/Conflict"},"429":{"$ref":"#/components/responses/TooManyRequests"},"500":{"$ref":"#/components/responses/ServerError"}},"security":[{"JWT":[]},{"ApiKey":[]}],"summary":"Calculate tax for a location and subtotal","tags":["Tax Rates"],"x-api-key-scopes":["*"]}},"/v1/tax-rates/bulk-import":{"post":{"operationId":"taxRates_bulkImport","parameters":[{"$ref":"#/components/parameters/IdempotencyKey"}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/BulkImportTaxRatesDto"}}}},"responses":{"201":{"description":""},"400":{"$ref":"#/components/responses/BadRequest"},"401":{"$ref":"#/components/responses/Unauthorized"},"403":{"$ref":"#/components/responses/Forbidden"},"409":{"$ref":"#/components/responses/Conflict"},"429":{"$ref":"#/components/responses/TooManyRequests"},"500":{"$ref":"#/components/responses/ServerError"}},"security":[{"JWT":[]},{"ApiKey":[]}],"summary":"Bulk import tax rates (upsert by name+location)","tags":["Tax Rates"],"x-api-key-scopes":["*"]}},"/v1/accounts":{"post":{"operationId":"accounts_createAccount","parameters":[{"$ref":"#/components/parameters/IdempotencyKey"}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/CreateAccountDto"}}}},"responses":{"201":{"description":"Account","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Account"}}}},"400":{"$ref":"#/components/responses/BadRequest"},"401":{"$ref":"#/components/responses/Unauthorized"},"403":{"$ref":"#/components/responses/Forbidden"},"409":{"$ref":"#/components/responses/Conflict"},"429":{"$ref":"#/components/responses/TooManyRequests"},"500":{"$ref":"#/components/responses/ServerError"}},"security":[{"JWT":[]},{"ApiKey":[]}],"tags":["Accounts"],"summary":"Create account","x-api-key-scopes":["WRITE_ACCOUNTS"]},"get":{"operationId":"accounts_listAccounts","parameters":[{"name":"type","required":false,"in":"query","schema":{"type":"string"}},{"name":"industry","required":false,"in":"query","schema":{"type":"string"}},{"name":"parentAccountId","required":false,"in":"query","schema":{"type":"string"}},{"name":"search","required":false,"in":"query","schema":{"type":"string"}},{"name":"page","required":false,"in":"query","schema":{"type":"string"}},{"name":"limit","required":false,"in":"query","schema":{"type":"string"}},{"name":"sortBy","required":false,"in":"query","schema":{"type":"string"}},{"name":"sortOrder","required":false,"in":"query","schema":{"type":"string"}},{"name":"owner","required":false,"in":"query","schema":{"type":"string"}},{"name":"createdAfter","required":false,"in":"query","schema":{"type":"string"}},{"name":"ids","required":false,"in":"query","schema":{"type":"string"}},{"name":"customFields","required":false,"in":"query","schema":{"type":"string"}},{"name":"withCustomFields","required":false,"in":"query","schema":{"type":"string"}}],"responses":{"200":{"description":"AccountList","content":{"application/json":{"schema":{"$ref":"#/components/schemas/AccountList"}}}},"400":{"$ref":"#/components/responses/BadRequest"},"401":{"$ref":"#/components/responses/Unauthorized"},"403":{"$ref":"#/components/responses/Forbidden"},"429":{"$ref":"#/components/responses/TooManyRequests"},"500":{"$ref":"#/components/responses/ServerError"}},"security":[{"JWT":[]},{"ApiKey":[]}],"tags":["Accounts"],"summary":"List accounts","x-api-key-scopes":["READ_ACCOUNTS"]}},"/v1/accounts/stats":{"get":{"operationId":"accounts_getAccountStats","parameters":[],"responses":{"200":{"description":""},"401":{"$ref":"#/components/responses/Unauthorized"},"403":{"$ref":"#/components/responses/Forbidden"},"429":{"$ref":"#/components/responses/TooManyRequests"},"500":{"$ref":"#/components/responses/ServerError"}},"security":[{"JWT":[]},{"ApiKey":[]}],"tags":["Accounts"],"summary":"Get account stats","x-api-key-scopes":["READ_ACCOUNTS"]}},"/v1/accounts/deleted":{"get":{"operationId":"accounts_listDeleted","parameters":[],"responses":{"200":{"description":"AccountArray","content":{"application/json":{"schema":{"$ref":"#/components/schemas/AccountArray"}}}},"401":{"$ref":"#/components/responses/Unauthorized"},"403":{"$ref":"#/components/responses/Forbidden"},"429":{"$ref":"#/components/responses/TooManyRequests"},"500":{"$ref":"#/components/responses/ServerError"}},"security":[{"JWT":[]},{"ApiKey":[]}],"tags":["Accounts"],"summary":"List deleted","x-api-key-scopes":["READ_ACCOUNTS"]}},"/v1/accounts/{id}":{"get":{"operationId":"accounts_getAccount","parameters":[{"name":"id","required":true,"in":"path","schema":{"type":"string"}}],"responses":{"200":{"description":"Account","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Account"}}}},"400":{"$ref":"#/components/responses/BadRequest"},"401":{"$ref":"#/components/responses/Unauthorized"},"403":{"$ref":"#/components/responses/Forbidden"},"404":{"$ref":"#/components/responses/NotFound"},"429":{"$ref":"#/components/responses/TooManyRequests"},"500":{"$ref":"#/components/responses/ServerError"}},"security":[{"JWT":[]},{"ApiKey":[]}],"tags":["Accounts"],"summary":"Get account","x-api-key-scopes":["READ_ACCOUNTS"]},"patch":{"operationId":"accounts_updateAccount","parameters":[{"name":"id","required":true,"in":"path","schema":{"type":"string"}},{"$ref":"#/components/parameters/IdempotencyKey"}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/UpdateAccountDto"}}}},"responses":{"200":{"description":"Account","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Account"}}}},"400":{"$ref":"#/components/responses/BadRequest"},"401":{"$ref":"#/components/responses/Unauthorized"},"403":{"$ref":"#/components/responses/Forbidden"},"404":{"$ref":"#/components/responses/NotFound"},"409":{"$ref":"#/components/responses/Conflict"},"429":{"$ref":"#/components/responses/TooManyRequests"},"500":{"$ref":"#/components/responses/ServerError"}},"security":[{"JWT":[]},{"ApiKey":[]}],"tags":["Accounts"],"summary":"Update account","x-api-key-scopes":["WRITE_ACCOUNTS"]},"delete":{"operationId":"accounts_deleteAccount","parameters":[{"name":"id","required":true,"in":"path","schema":{"type":"string"}}],"responses":{"200":{"description":"No response body."},"400":{"$ref":"#/components/responses/BadRequest"},"401":{"$ref":"#/components/responses/Unauthorized"},"403":{"$ref":"#/components/responses/Forbidden"},"404":{"$ref":"#/components/responses/NotFound"},"429":{"$ref":"#/components/responses/TooManyRequests"},"500":{"$ref":"#/components/responses/ServerError"}},"security":[{"JWT":[]},{"ApiKey":[]}],"tags":["Accounts"],"summary":"Delete account","x-api-key-scopes":["WRITE_ACCOUNTS"]}},"/v1/accounts/{id}/restore":{"post":{"operationId":"accounts_restore","parameters":[{"name":"id","required":true,"in":"path","schema":{"type":"string"}},{"$ref":"#/components/parameters/IdempotencyKey"}],"responses":{"201":{"description":"Account","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Account"}}}},"400":{"$ref":"#/components/responses/BadRequest"},"401":{"$ref":"#/components/responses/Unauthorized"},"403":{"$ref":"#/components/responses/Forbidden"},"404":{"$ref":"#/components/responses/NotFound"},"409":{"$ref":"#/components/responses/Conflict"},"429":{"$ref":"#/components/responses/TooManyRequests"},"500":{"$ref":"#/components/responses/ServerError"}},"security":[{"JWT":[]},{"ApiKey":[]}],"tags":["Accounts"],"summary":"Restore","x-api-key-scopes":["WRITE_ACCOUNTS"]}},"/v1/accounts/{id}/ai-brief":{"get":{"operationId":"accounts_getAiBrief","parameters":[{"name":"id","required":true,"in":"path","schema":{"type":"string"}}],"responses":{"200":{"description":"","content":{"application/json":{"schema":{"type":"object"}}}},"400":{"$ref":"#/components/responses/BadRequest"},"401":{"$ref":"#/components/responses/Unauthorized"},"403":{"$ref":"#/components/responses/Forbidden"},"404":{"$ref":"#/components/responses/NotFound"},"429":{"$ref":"#/components/responses/TooManyRequests"},"500":{"$ref":"#/components/responses/ServerError"}},"security":[{"JWT":[]},{"ApiKey":[]}],"summary":"Cached AI brief (null until generated).","tags":["Accounts"],"x-api-key-scopes":["READ_ACCOUNTS"]},"post":{"operationId":"accounts_generateAiBrief","parameters":[{"name":"id","required":true,"in":"path","schema":{"type":"string"}},{"$ref":"#/components/parameters/IdempotencyKey"}],"responses":{"201":{"description":"","content":{"application/json":{"schema":{"type":"object"}}}},"400":{"$ref":"#/components/responses/BadRequest"},"401":{"$ref":"#/components/responses/Unauthorized"},"403":{"$ref":"#/components/responses/Forbidden"},"404":{"$ref":"#/components/responses/NotFound"},"409":{"$ref":"#/components/responses/Conflict"},"429":{"$ref":"#/components/responses/TooManyRequests"},"500":{"$ref":"#/components/responses/ServerError"}},"security":[{"JWT":[]},{"ApiKey":[]}],"summary":"Generate (or regenerate) the AI brief — a real LLM call, never automatic.","tags":["Accounts"],"x-api-key-scopes":["WRITE_ACCOUNTS"]}},"/v1/accounts/{id}/hierarchy":{"get":{"operationId":"accounts_getAccountHierarchy","parameters":[{"name":"id","required":true,"in":"path","schema":{"type":"string"}}],"responses":{"200":{"description":""},"400":{"$ref":"#/components/responses/BadRequest"},"401":{"$ref":"#/components/responses/Unauthorized"},"403":{"$ref":"#/components/responses/Forbidden"},"404":{"$ref":"#/components/responses/NotFound"},"429":{"$ref":"#/components/responses/TooManyRequests"},"500":{"$ref":"#/components/responses/ServerError"}},"security":[{"JWT":[]},{"ApiKey":[]}],"tags":["Accounts"],"summary":"Get account hierarchy","x-api-key-scopes":["READ_ACCOUNTS"]}},"/v1/accounts/{id}/revenue":{"get":{"operationId":"accounts_getAccountRevenue","parameters":[{"name":"id","required":true,"in":"path","schema":{"type":"string"}}],"responses":{"200":{"description":""},"400":{"$ref":"#/components/responses/BadRequest"},"401":{"$ref":"#/components/responses/Unauthorized"},"403":{"$ref":"#/components/responses/Forbidden"},"404":{"$ref":"#/components/responses/NotFound"},"429":{"$ref":"#/components/responses/TooManyRequests"},"500":{"$ref":"#/components/responses/ServerError"}},"security":[{"JWT":[]},{"ApiKey":[]}],"tags":["Accounts"],"summary":"Get account revenue","x-api-key-scopes":["READ_ACCOUNTS"]}},"/v1/accounts/bulk/update":{"post":{"operationId":"accounts_bulkUpdate","parameters":[{"$ref":"#/components/parameters/IdempotencyKey"}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/BulkUpdateBody"}}}},"responses":{"201":{"description":"BulkActionResult","content":{"application/json":{"schema":{"$ref":"#/components/schemas/BulkActionResult"}}}},"400":{"$ref":"#/components/responses/BadRequest"},"401":{"$ref":"#/components/responses/Unauthorized"},"403":{"$ref":"#/components/responses/Forbidden"},"409":{"$ref":"#/components/responses/Conflict"},"429":{"$ref":"#/components/responses/TooManyRequests"},"500":{"$ref":"#/components/responses/ServerError"}},"security":[{"JWT":[]},{"ApiKey":[]}],"tags":["Accounts"],"summary":"Bulk update","x-api-key-scopes":["WRITE_ACCOUNTS"]}},"/v1/accounts/bulk/delete":{"post":{"operationId":"accounts_bulkDelete","parameters":[{"$ref":"#/components/parameters/IdempotencyKey"}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/BulkDeleteBody"}}}},"responses":{"201":{"description":"BulkActionResult","content":{"application/json":{"schema":{"$ref":"#/components/schemas/BulkActionResult"}}}},"400":{"$ref":"#/components/responses/BadRequest"},"401":{"$ref":"#/components/responses/Unauthorized"},"403":{"$ref":"#/components/responses/Forbidden"},"409":{"$ref":"#/components/responses/Conflict"},"429":{"$ref":"#/components/responses/TooManyRequests"},"500":{"$ref":"#/components/responses/ServerError"}},"security":[{"JWT":[]},{"ApiKey":[]}],"tags":["Accounts"],"summary":"Bulk delete","x-api-key-scopes":["WRITE_ACCOUNTS"]}},"/v1/accounts/bulk/assign":{"post":{"operationId":"accounts_bulkAssign","parameters":[{"$ref":"#/components/parameters/IdempotencyKey"}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/BulkAssignBody"}}}},"responses":{"201":{"description":"BulkActionResult","content":{"application/json":{"schema":{"$ref":"#/components/schemas/BulkActionResult"}}}},"400":{"$ref":"#/components/responses/BadRequest"},"401":{"$ref":"#/components/responses/Unauthorized"},"403":{"$ref":"#/components/responses/Forbidden"},"409":{"$ref":"#/components/responses/Conflict"},"429":{"$ref":"#/components/responses/TooManyRequests"},"500":{"$ref":"#/components/responses/ServerError"}},"security":[{"JWT":[]},{"ApiKey":[]}],"tags":["Accounts"],"summary":"Bulk assign","x-api-key-scopes":["WRITE_ACCOUNTS"]}},"/v1/contacts":{"post":{"operationId":"contacts_createContact","parameters":[{"$ref":"#/components/parameters/IdempotencyKey"}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/CreateContactDto"}}}},"responses":{"201":{"description":"Contact","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Contact"}}}},"400":{"$ref":"#/components/responses/BadRequest"},"401":{"$ref":"#/components/responses/Unauthorized"},"403":{"$ref":"#/components/responses/Forbidden"},"409":{"$ref":"#/components/responses/Conflict"},"429":{"$ref":"#/components/responses/TooManyRequests"},"500":{"$ref":"#/components/responses/ServerError"}},"security":[{"JWT":[]},{"ApiKey":[]}],"tags":["Contacts"],"summary":"Create contact","x-api-key-scopes":["WRITE_CONTACTS"]},"get":{"operationId":"contacts_listContacts","parameters":[{"name":"accountId","required":false,"in":"query","schema":{"type":"string"}},{"name":"search","required":false,"in":"query","schema":{"type":"string"}},{"name":"page","required":false,"in":"query","schema":{"type":"string"}},{"name":"limit","required":false,"in":"query","schema":{"type":"string"}},{"name":"sortBy","required":false,"in":"query","schema":{"type":"string"}},{"name":"sortOrder","required":false,"in":"query","schema":{"type":"string"}},{"name":"owner","required":false,"in":"query","schema":{"type":"string"}},{"name":"createdAfter","required":false,"in":"query","schema":{"type":"string"}},{"name":"ids","required":false,"in":"query","schema":{"type":"string"}},{"name":"customFields","required":false,"in":"query","schema":{"type":"string"}},{"name":"withCustomFields","required":false,"in":"query","schema":{"type":"string"}}],"responses":{"200":{"description":"ContactList","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ContactList"}}}},"400":{"$ref":"#/components/responses/BadRequest"},"401":{"$ref":"#/components/responses/Unauthorized"},"403":{"$ref":"#/components/responses/Forbidden"},"429":{"$ref":"#/components/responses/TooManyRequests"},"500":{"$ref":"#/components/responses/ServerError"}},"security":[{"JWT":[]},{"ApiKey":[]}],"tags":["Contacts"],"summary":"List contacts","x-api-key-scopes":["READ_CONTACTS"]}},"/v1/contacts/stats":{"get":{"operationId":"contacts_getContactStats","parameters":[],"responses":{"200":{"description":""},"401":{"$ref":"#/components/responses/Unauthorized"},"403":{"$ref":"#/components/responses/Forbidden"},"429":{"$ref":"#/components/responses/TooManyRequests"},"500":{"$ref":"#/components/responses/ServerError"}},"security":[{"JWT":[]},{"ApiKey":[]}],"tags":["Contacts"],"summary":"Get contact stats","x-api-key-scopes":["READ_CONTACTS"]}},"/v1/contacts/deleted":{"get":{"operationId":"contacts_listDeleted","parameters":[],"responses":{"200":{"description":"ContactArray","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ContactArray"}}}},"401":{"$ref":"#/components/responses/Unauthorized"},"403":{"$ref":"#/components/responses/Forbidden"},"429":{"$ref":"#/components/responses/TooManyRequests"},"500":{"$ref":"#/components/responses/ServerError"}},"security":[{"JWT":[]},{"ApiKey":[]}],"tags":["Contacts"],"summary":"List deleted","x-api-key-scopes":["READ_CONTACTS"]}},"/v1/contacts/{id}":{"get":{"operationId":"contacts_getContact","parameters":[{"name":"id","required":true,"in":"path","schema":{"type":"string"}}],"responses":{"200":{"description":"Contact","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Contact"}}}},"400":{"$ref":"#/components/responses/BadRequest"},"401":{"$ref":"#/components/responses/Unauthorized"},"403":{"$ref":"#/components/responses/Forbidden"},"404":{"$ref":"#/components/responses/NotFound"},"429":{"$ref":"#/components/responses/TooManyRequests"},"500":{"$ref":"#/components/responses/ServerError"}},"security":[{"JWT":[]},{"ApiKey":[]}],"tags":["Contacts"],"summary":"Get contact","x-api-key-scopes":["READ_CONTACTS"]},"patch":{"operationId":"contacts_updateContact","parameters":[{"name":"id","required":true,"in":"path","schema":{"type":"string"}},{"$ref":"#/components/parameters/IdempotencyKey"}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/UpdateContactDto"}}}},"responses":{"200":{"description":"Contact","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Contact"}}}},"400":{"$ref":"#/components/responses/BadRequest"},"401":{"$ref":"#/components/responses/Unauthorized"},"403":{"$ref":"#/components/responses/Forbidden"},"404":{"$ref":"#/components/responses/NotFound"},"409":{"$ref":"#/components/responses/Conflict"},"429":{"$ref":"#/components/responses/TooManyRequests"},"500":{"$ref":"#/components/responses/ServerError"}},"security":[{"JWT":[]},{"ApiKey":[]}],"tags":["Contacts"],"summary":"Update contact","x-api-key-scopes":["WRITE_CONTACTS"]},"delete":{"operationId":"contacts_deleteContact","parameters":[{"name":"id","required":true,"in":"path","schema":{"type":"string"}}],"responses":{"200":{"description":"No response body."},"400":{"$ref":"#/components/responses/BadRequest"},"401":{"$ref":"#/components/responses/Unauthorized"},"403":{"$ref":"#/components/responses/Forbidden"},"404":{"$ref":"#/components/responses/NotFound"},"429":{"$ref":"#/components/responses/TooManyRequests"},"500":{"$ref":"#/components/responses/ServerError"}},"security":[{"JWT":[]},{"ApiKey":[]}],"tags":["Contacts"],"summary":"Delete contact","x-api-key-scopes":["WRITE_CONTACTS"]}},"/v1/contacts/{id}/restore":{"post":{"operationId":"contacts_restore","parameters":[{"name":"id","required":true,"in":"path","schema":{"type":"string"}},{"$ref":"#/components/parameters/IdempotencyKey"}],"responses":{"201":{"description":"Contact","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Contact"}}}},"400":{"$ref":"#/components/responses/BadRequest"},"401":{"$ref":"#/components/responses/Unauthorized"},"403":{"$ref":"#/components/responses/Forbidden"},"404":{"$ref":"#/components/responses/NotFound"},"409":{"$ref":"#/components/responses/Conflict"},"429":{"$ref":"#/components/responses/TooManyRequests"},"500":{"$ref":"#/components/responses/ServerError"}},"security":[{"JWT":[]},{"ApiKey":[]}],"tags":["Contacts"],"summary":"Restore","x-api-key-scopes":["WRITE_CONTACTS"]}},"/v1/contacts/{id}/opportunities":{"get":{"operationId":"contacts_getContactOpportunities","parameters":[{"name":"id","required":true,"in":"path","schema":{"type":"string"}}],"responses":{"200":{"description":""},"400":{"$ref":"#/components/responses/BadRequest"},"401":{"$ref":"#/components/responses/Unauthorized"},"403":{"$ref":"#/components/responses/Forbidden"},"404":{"$ref":"#/components/responses/NotFound"},"429":{"$ref":"#/components/responses/TooManyRequests"},"500":{"$ref":"#/components/responses/ServerError"}},"security":[{"JWT":[]},{"ApiKey":[]}],"tags":["Contacts"],"summary":"Get contact opportunities","x-api-key-scopes":["READ_CONTACTS"]}},"/v1/contacts/bulk/update":{"post":{"operationId":"contacts_bulkUpdate","parameters":[{"$ref":"#/components/parameters/IdempotencyKey"}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/BulkUpdateBody"}}}},"responses":{"201":{"description":"BulkActionResult","content":{"application/json":{"schema":{"$ref":"#/components/schemas/BulkActionResult"}}}},"400":{"$ref":"#/components/responses/BadRequest"},"401":{"$ref":"#/components/responses/Unauthorized"},"403":{"$ref":"#/components/responses/Forbidden"},"409":{"$ref":"#/components/responses/Conflict"},"429":{"$ref":"#/components/responses/TooManyRequests"},"500":{"$ref":"#/components/responses/ServerError"}},"security":[{"JWT":[]},{"ApiKey":[]}],"tags":["Contacts"],"summary":"Bulk update","x-api-key-scopes":["WRITE_CONTACTS"]}},"/v1/contacts/bulk/delete":{"post":{"operationId":"contacts_bulkDelete","parameters":[{"$ref":"#/components/parameters/IdempotencyKey"}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/BulkDeleteBody"}}}},"responses":{"201":{"description":"BulkActionResult","content":{"application/json":{"schema":{"$ref":"#/components/schemas/BulkActionResult"}}}},"400":{"$ref":"#/components/responses/BadRequest"},"401":{"$ref":"#/components/responses/Unauthorized"},"403":{"$ref":"#/components/responses/Forbidden"},"409":{"$ref":"#/components/responses/Conflict"},"429":{"$ref":"#/components/responses/TooManyRequests"},"500":{"$ref":"#/components/responses/ServerError"}},"security":[{"JWT":[]},{"ApiKey":[]}],"tags":["Contacts"],"summary":"Bulk delete","x-api-key-scopes":["WRITE_CONTACTS"]}},"/v1/contacts/bulk/assign":{"post":{"operationId":"contacts_bulkAssign","parameters":[{"$ref":"#/components/parameters/IdempotencyKey"}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/BulkAssignBody"}}}},"responses":{"201":{"description":"BulkActionResult","content":{"application/json":{"schema":{"$ref":"#/components/schemas/BulkActionResult"}}}},"400":{"$ref":"#/components/responses/BadRequest"},"401":{"$ref":"#/components/responses/Unauthorized"},"403":{"$ref":"#/components/responses/Forbidden"},"409":{"$ref":"#/components/responses/Conflict"},"429":{"$ref":"#/components/responses/TooManyRequests"},"500":{"$ref":"#/components/responses/ServerError"}},"security":[{"JWT":[]},{"ApiKey":[]}],"tags":["Contacts"],"summary":"Bulk assign","x-api-key-scopes":["WRITE_CONTACTS"]}},"/v1/search/records":{"get":{"operationId":"search_searchRecords","parameters":[{"name":"q","required":false,"in":"query","schema":{"type":"string"}},{"name":"types","required":false,"in":"query","schema":{"type":"string"}},{"name":"limit","required":false,"in":"query","schema":{"type":"string"}}],"responses":{"200":{"description":"","content":{"application/json":{"schema":{"type":"object"}}}},"400":{"$ref":"#/components/responses/BadRequest"},"401":{"$ref":"#/components/responses/Unauthorized"},"403":{"$ref":"#/components/responses/Forbidden"},"429":{"$ref":"#/components/responses/TooManyRequests"},"500":{"$ref":"#/components/responses/ServerError"}},"security":[{"JWT":[]},{"ApiKey":[]}],"summary":"Cross-object CRM record search (Cmd+K).","tags":["Search"],"x-api-key-scopes":["*"]}},"/v1/search/status":{"get":{"operationId":"search_getStatus","parameters":[],"responses":{"200":{"description":""},"401":{"$ref":"#/components/responses/Unauthorized"},"403":{"$ref":"#/components/responses/Forbidden"},"429":{"$ref":"#/components/responses/TooManyRequests"},"500":{"$ref":"#/components/responses/ServerError"}},"security":[{"JWT":[]},{"ApiKey":[]}],"summary":"Whether web search is available","tags":["Search"],"x-api-key-scopes":["*"]}},"/v1/search":{"get":{"operationId":"search_search","parameters":[{"name":"q","required":true,"in":"query","schema":{"type":"string"}},{"name":"num","required":false,"in":"query","schema":{"type":"string"}}],"responses":{"200":{"description":"","content":{"application/json":{"schema":{"type":"object"}}}},"400":{"$ref":"#/components/responses/BadRequest"},"401":{"$ref":"#/components/responses/Unauthorized"},"403":{"$ref":"#/components/responses/Forbidden"},"429":{"$ref":"#/components/responses/TooManyRequests"},"500":{"$ref":"#/components/responses/ServerError"}},"security":[{"JWT":[]},{"ApiKey":[]}],"summary":"Perform a simple web search","tags":["Search"],"x-api-key-scopes":["*"]}},"/v1/search/company-research":{"post":{"operationId":"search_researchCompany","parameters":[{"$ref":"#/components/parameters/IdempotencyKey"}],"responses":{"201":{"description":"","content":{"application/json":{"schema":{"type":"object"}}}},"400":{"$ref":"#/components/responses/BadRequest"},"401":{"$ref":"#/components/responses/Unauthorized"},"403":{"$ref":"#/components/responses/Forbidden"},"409":{"$ref":"#/components/responses/Conflict"},"429":{"$ref":"#/components/responses/TooManyRequests"},"500":{"$ref":"#/components/responses/ServerError"}},"security":[{"JWT":[]},{"ApiKey":[]}],"summary":"Research a company and generate an AI-powered brief","tags":["Search"],"x-api-key-scopes":["*"]}},"/v1/meetings/schedule":{"post":{"operationId":"meetings_scheduleMeeting","parameters":[{"$ref":"#/components/parameters/IdempotencyKey"}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ScheduleMeetingDto"}}}},"responses":{"201":{"description":""},"400":{"$ref":"#/components/responses/BadRequest"},"401":{"$ref":"#/components/responses/Unauthorized"},"403":{"$ref":"#/components/responses/Forbidden"},"409":{"$ref":"#/components/responses/Conflict"},"429":{"$ref":"#/components/responses/TooManyRequests"},"500":{"$ref":"#/components/responses/ServerError"}},"security":[{"JWT":[]},{"ApiKey":[]}],"summary":"Schedule a meeting for recording\nPOST /meetings/schedule","tags":["Meetings"],"x-api-key-scopes":["*"]}},"/v1/meetings/join-adhoc":{"post":{"operationId":"meetings_joinAdHocMeeting","parameters":[{"$ref":"#/components/parameters/IdempotencyKey"}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/JoinAdHocMeetingDto"}}}},"responses":{"201":{"description":""},"400":{"$ref":"#/components/responses/BadRequest"},"401":{"$ref":"#/components/responses/Unauthorized"},"403":{"$ref":"#/components/responses/Forbidden"},"409":{"$ref":"#/components/responses/Conflict"},"429":{"$ref":"#/components/responses/TooManyRequests"},"500":{"$ref":"#/components/responses/ServerError"}},"security":[{"JWT":[]},{"ApiKey":[]}],"summary":"Join an ad-hoc meeting by URL\nSends the SalesOS notetaker to a meeting immediately, given just its URL.","tags":["Meetings"],"x-api-key-scopes":["*"]}},"/v1/meetings/validate-url":{"post":{"operationId":"meetings_validateMeetingUrl","parameters":[{"$ref":"#/components/parameters/IdempotencyKey"}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ValidateMeetingUrlBody"}}}},"responses":{"201":{"description":""},"400":{"$ref":"#/components/responses/BadRequest"},"401":{"$ref":"#/components/responses/Unauthorized"},"403":{"$ref":"#/components/responses/Forbidden"},"409":{"$ref":"#/components/responses/Conflict"},"429":{"$ref":"#/components/responses/TooManyRequests"},"500":{"$ref":"#/components/responses/ServerError"}},"security":[{"JWT":[]},{"ApiKey":[]}],"summary":"Validate a meeting URL without joining\nPOST /meetings/validate-url","tags":["Meetings"],"x-api-key-scopes":["*"]}},"/v1/meetings":{"post":{"operationId":"meetings_createMeeting","parameters":[{"$ref":"#/components/parameters/IdempotencyKey"}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/CreateMeetingDto"}}}},"responses":{"201":{"description":""},"400":{"$ref":"#/components/responses/BadRequest"},"401":{"$ref":"#/components/responses/Unauthorized"},"403":{"$ref":"#/components/responses/Forbidden"},"409":{"$ref":"#/components/responses/Conflict"},"429":{"$ref":"#/components/responses/TooManyRequests"},"500":{"$ref":"#/components/responses/ServerError"}},"security":[{"JWT":[]},{"ApiKey":[]}],"summary":"Create a meeting session manually\nPOST /meetings","tags":["Meetings"],"x-api-key-scopes":["*"]},"get":{"operationId":"meetings_getMeetings","parameters":[],"responses":{"200":{"description":""},"401":{"$ref":"#/components/responses/Unauthorized"},"403":{"$ref":"#/components/responses/Forbidden"},"429":{"$ref":"#/components/responses/TooManyRequests"},"500":{"$ref":"#/components/responses/ServerError"}},"security":[{"JWT":[]},{"ApiKey":[]}],"summary":"Get all meetings for the current user\nGET /meetings","tags":["Meetings"],"x-api-key-scopes":["*"]}},"/v1/meetings/webhook/transcript":{"post":{"operationId":"meetings_handleTranscriptWebhook","parameters":[{"name":"x-webhook-signature","required":true,"in":"header","schema":{"type":"string"}},{"$ref":"#/components/parameters/IdempotencyKey"}],"responses":{"201":{"description":""},"400":{"$ref":"#/components/responses/BadRequest"},"409":{"$ref":"#/components/responses/Conflict"},"429":{"$ref":"#/components/responses/TooManyRequests"},"500":{"$ref":"#/components/responses/ServerError"}},"security":[],"tags":["Meetings"],"summary":"Handle transcript webhook"}},"/v1/meetings/webhook/status":{"post":{"operationId":"meetings_handleStatusWebhook","parameters":[{"name":"x-webhook-signature","required":true,"in":"header","schema":{"type":"string"}},{"$ref":"#/components/parameters/IdempotencyKey"}],"responses":{"201":{"description":""},"400":{"$ref":"#/components/responses/BadRequest"},"409":{"$ref":"#/components/responses/Conflict"},"429":{"$ref":"#/components/responses/TooManyRequests"},"500":{"$ref":"#/components/responses/ServerError"}},"security":[],"summary":"Webhook endpoint for meeting status updates\nPOST /meetings/webhook/status","tags":["Meetings"]}},"/v1/meetings/webhook/zoom":{"get":{"operationId":"meetings_getZoomWebhookHealth","parameters":[],"responses":{"200":{"description":""},"429":{"$ref":"#/components/responses/TooManyRequests"},"500":{"$ref":"#/components/responses/ServerError"}},"security":[],"summary":"Zoom Webhook Health Check / GET Handler\nGET /meetings/webhook/zoom\n\nSome webhook validators (including Zoom) may send GET requests to verify\nthe endpoint is reachable before sending the actual POST validation.\nReturns 200 OK to confirm the endpoint is active.","tags":["Meetings"]},"post":{"operationId":"meetings_handleZoomWebhook","parameters":[{"name":"x-zm-signature","required":true,"in":"header","schema":{"type":"string"}},{"name":"x-zm-request-timestamp","required":true,"in":"header","schema":{"type":"string"}},{"$ref":"#/components/parameters/IdempotencyKey"}],"responses":{"200":{"description":"","content":{"application/json":{"schema":{"type":"object"}}}},"400":{"$ref":"#/components/responses/BadRequest"},"409":{"$ref":"#/components/responses/Conflict"},"429":{"$ref":"#/components/responses/TooManyRequests"},"500":{"$ref":"#/components/responses/ServerError"}},"security":[],"summary":"Zoom Webhook Endpoint\nPOST /meetings/webhook/zoom\n\nHandles Zoom's challenge-response URL validation and event notifications.\nConfigure this URL in Zoom App Marketplace: https://www.salesos.org/v1/meetings/webhook/zoom\n\nSupported Events:\n- endpoint.url_validation (challenge-response for URL verification)\n- meeting.started\n- meeting.ended\n- recording.completed\n- recording.transcript_completed\n- meeting.participant_joined\n- meeting.participant_left","tags":["Meetings"]}},"/v1/meetings/search":{"post":{"operationId":"meetings_searchMeetings","parameters":[{"$ref":"#/components/parameters/IdempotencyKey"}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/SearchMeetingsBody"}}}},"responses":{"201":{"description":""},"400":{"$ref":"#/components/responses/BadRequest"},"401":{"$ref":"#/components/responses/Unauthorized"},"403":{"$ref":"#/components/responses/Forbidden"},"409":{"$ref":"#/components/responses/Conflict"},"429":{"$ref":"#/components/responses/TooManyRequests"},"500":{"$ref":"#/components/responses/ServerError"}},"security":[{"JWT":[]},{"ApiKey":[]}],"summary":"Search across all meeting transcripts\nPOST /meetings/search","tags":["Meetings"],"x-api-key-scopes":["*"]}},"/v1/meetings/opportunity/{opportunityId}":{"get":{"operationId":"meetings_getMeetingsForOpportunity","parameters":[{"name":"opportunityId","required":true,"in":"path","schema":{"type":"string"}}],"responses":{"200":{"description":""},"400":{"$ref":"#/components/responses/BadRequest"},"401":{"$ref":"#/components/responses/Unauthorized"},"403":{"$ref":"#/components/responses/Forbidden"},"404":{"$ref":"#/components/responses/NotFound"},"429":{"$ref":"#/components/responses/TooManyRequests"},"500":{"$ref":"#/components/responses/ServerError"}},"security":[{"JWT":[]},{"ApiKey":[]}],"summary":"Get meetings for an opportunity\nGET /meetings/opportunity/:opportunityId","tags":["Meetings"],"x-api-key-scopes":["*"]}},"/v1/meetings/account/{accountId}":{"get":{"operationId":"meetings_getMeetingsForAccount","parameters":[{"name":"accountId","required":true,"in":"path","schema":{"type":"string"}}],"responses":{"200":{"description":""},"400":{"$ref":"#/components/responses/BadRequest"},"401":{"$ref":"#/components/responses/Unauthorized"},"403":{"$ref":"#/components/responses/Forbidden"},"404":{"$ref":"#/components/responses/NotFound"},"429":{"$ref":"#/components/responses/TooManyRequests"},"500":{"$ref":"#/components/responses/ServerError"}},"security":[{"JWT":[]},{"ApiKey":[]}],"summary":"Get meetings for an account\nGET /meetings/account/:accountId","tags":["Meetings"],"x-api-key-scopes":["*"]}},"/v1/meetings/attendee/status":{"get":{"operationId":"meetings_getAttendeeStatus","parameters":[],"responses":{"200":{"description":""},"401":{"$ref":"#/components/responses/Unauthorized"},"403":{"$ref":"#/components/responses/Forbidden"},"429":{"$ref":"#/components/responses/TooManyRequests"},"500":{"$ref":"#/components/responses/ServerError"}},"security":[{"JWT":[]},{"ApiKey":[]}],"tags":["Meetings"],"summary":"Get attendee status","x-api-key-scopes":["*"]}},"/v1/meetings/health/live":{"get":{"operationId":"meetings_getLiveness","parameters":[],"responses":{"200":{"description":""},"429":{"$ref":"#/components/responses/TooManyRequests"},"500":{"$ref":"#/components/responses/ServerError"}},"security":[],"summary":"Simple liveness check\nGET /meetings/health/live","tags":["Meetings"]}},"/v1/meetings/health/ready":{"get":{"operationId":"meetings_getReadiness","parameters":[],"responses":{"200":{"description":""},"429":{"$ref":"#/components/responses/TooManyRequests"},"500":{"$ref":"#/components/responses/ServerError"}},"security":[],"summary":"Readiness check (checks dependencies)\nGET /meetings/health/ready","tags":["Meetings"]}},"/v1/meetings/realtime/status":{"get":{"operationId":"meetings_getRealtimeStatus","parameters":[],"responses":{"200":{"description":""},"401":{"$ref":"#/components/responses/Unauthorized"},"403":{"$ref":"#/components/responses/Forbidden"},"429":{"$ref":"#/components/responses/TooManyRequests"},"500":{"$ref":"#/components/responses/ServerError"}},"security":[{"JWT":[]},{"ApiKey":[]}],"tags":["Meetings"],"summary":"Get realtime status","x-api-key-scopes":["*"]}},"/v1/meetings/realtime/config":{"get":{"operationId":"meetings_getRealtimeConfig","parameters":[],"responses":{"200":{"description":""},"401":{"$ref":"#/components/responses/Unauthorized"},"403":{"$ref":"#/components/responses/Forbidden"},"429":{"$ref":"#/components/responses/TooManyRequests"},"500":{"$ref":"#/components/responses/ServerError"}},"security":[{"JWT":[]},{"ApiKey":[]}],"summary":"Get WebRTC configuration for client setup\nGET /meetings/realtime/config","tags":["Meetings"],"x-api-key-scopes":["*"]}},"/v1/meetings/{id}/realtime/token":{"post":{"operationId":"meetings_getRealtimeToken","parameters":[{"name":"id","required":true,"in":"path","schema":{"type":"string"}},{"$ref":"#/components/parameters/IdempotencyKey"}],"responses":{"201":{"description":""},"400":{"$ref":"#/components/responses/BadRequest"},"401":{"$ref":"#/components/responses/Unauthorized"},"403":{"$ref":"#/components/responses/Forbidden"},"404":{"$ref":"#/components/responses/NotFound"},"409":{"$ref":"#/components/responses/Conflict"},"429":{"$ref":"#/components/responses/TooManyRequests"},"500":{"$ref":"#/components/responses/ServerError"}},"security":[{"JWT":[]},{"ApiKey":[]}],"summary":"Get ephemeral token for WebRTC transcription session\nPOST /meetings/:id/realtime/token","tags":["Meetings"],"x-api-key-scopes":["*"]}},"/v1/meetings/{id}/realtime/sdp":{"post":{"operationId":"meetings_exchangeRealtimeSdp","parameters":[{"name":"id","required":true,"in":"path","schema":{"type":"string"}},{"$ref":"#/components/parameters/IdempotencyKey"}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ExchangeRealtimeSdpBody"}}}},"responses":{"201":{"description":""},"400":{"$ref":"#/components/responses/BadRequest"},"401":{"$ref":"#/components/responses/Unauthorized"},"403":{"$ref":"#/components/responses/Forbidden"},"404":{"$ref":"#/components/responses/NotFound"},"409":{"$ref":"#/components/responses/Conflict"},"429":{"$ref":"#/components/responses/TooManyRequests"},"500":{"$ref":"#/components/responses/ServerError"}},"security":[{"JWT":[]},{"ApiKey":[]}],"summary":"Exchange SDP for WebRTC connection\nPOST /meetings/:id/realtime/sdp","tags":["Meetings"],"x-api-key-scopes":["*"]}},"/v1/meetings/{id}/realtime/transcript":{"post":{"operationId":"meetings_receiveRealtimeTranscript","parameters":[{"name":"id","required":true,"in":"path","schema":{"type":"string"}},{"$ref":"#/components/parameters/IdempotencyKey"}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ReceiveRealtimeTranscriptBody"}}}},"responses":{"200":{"description":""},"400":{"$ref":"#/components/responses/BadRequest"},"401":{"$ref":"#/components/responses/Unauthorized"},"403":{"$ref":"#/components/responses/Forbidden"},"404":{"$ref":"#/components/responses/NotFound"},"409":{"$ref":"#/components/responses/Conflict"},"429":{"$ref":"#/components/responses/TooManyRequests"},"500":{"$ref":"#/components/responses/ServerError"}},"security":[{"JWT":[]},{"ApiKey":[]}],"summary":"Receive transcript segment from WebRTC data channel\nPOST /meetings/:id/realtime/transcript\n\nThis is called by the client when it receives transcription from the WebRTC data channel","tags":["Meetings"],"x-api-key-scopes":["*"]}},"/v1/meetings/{id}/realtime/end":{"post":{"operationId":"meetings_endRealtimeSession","parameters":[{"name":"id","required":true,"in":"path","schema":{"type":"string"}},{"$ref":"#/components/parameters/IdempotencyKey"}],"responses":{"200":{"description":""},"400":{"$ref":"#/components/responses/BadRequest"},"401":{"$ref":"#/components/responses/Unauthorized"},"403":{"$ref":"#/components/responses/Forbidden"},"404":{"$ref":"#/components/responses/NotFound"},"409":{"$ref":"#/components/responses/Conflict"},"429":{"$ref":"#/components/responses/TooManyRequests"},"500":{"$ref":"#/components/responses/ServerError"}},"security":[{"JWT":[]},{"ApiKey":[]}],"summary":"End WebRTC transcription session and compile transcript\nPOST /meetings/:id/realtime/end","tags":["Meetings"],"x-api-key-scopes":["*"]}},"/v1/meetings/prep":{"get":{"operationId":"meetings_getMeetingPrep","parameters":[{"name":"meetingId","required":true,"in":"query","schema":{"type":"string"}},{"name":"accountId","required":true,"in":"query","schema":{"type":"string"}},{"name":"leadId","required":true,"in":"query","schema":{"type":"string"}},{"name":"opportunityId","required":true,"in":"query","schema":{"type":"string"}},{"name":"contactId","required":true,"in":"query","schema":{"type":"string"}}],"responses":{"200":{"description":"","content":{"application/json":{"schema":{"type":"object"}}}},"400":{"$ref":"#/components/responses/BadRequest"},"401":{"$ref":"#/components/responses/Unauthorized"},"403":{"$ref":"#/components/responses/Forbidden"},"429":{"$ref":"#/components/responses/TooManyRequests"},"500":{"$ref":"#/components/responses/ServerError"}},"security":[{"JWT":[]},{"ApiKey":[]}],"tags":["Meetings"],"summary":"Get meeting prep","x-api-key-scopes":["*"]}},"/v1/meetings/{id}/prep":{"get":{"operationId":"meetings_getMeetingPrepById","parameters":[{"name":"id","required":true,"in":"path","schema":{"type":"string"}}],"responses":{"200":{"description":"","content":{"application/json":{"schema":{"type":"object"}}}},"400":{"$ref":"#/components/responses/BadRequest"},"401":{"$ref":"#/components/responses/Unauthorized"},"403":{"$ref":"#/components/responses/Forbidden"},"404":{"$ref":"#/components/responses/NotFound"},"429":{"$ref":"#/components/responses/TooManyRequests"},"500":{"$ref":"#/components/responses/ServerError"}},"security":[{"JWT":[]},{"ApiKey":[]}],"summary":"Generate meeting prep for a specific meeting\nGET /meetings/:id/prep","tags":["Meetings"],"x-api-key-scopes":["*"]}},"/v1/meetings/{id}":{"get":{"operationId":"meetings_getMeeting","parameters":[{"name":"id","required":true,"in":"path","schema":{"type":"string"}}],"responses":{"200":{"description":""},"400":{"$ref":"#/components/responses/BadRequest"},"401":{"$ref":"#/components/responses/Unauthorized"},"403":{"$ref":"#/components/responses/Forbidden"},"404":{"$ref":"#/components/responses/NotFound"},"429":{"$ref":"#/components/responses/TooManyRequests"},"500":{"$ref":"#/components/responses/ServerError"}},"security":[{"JWT":[]},{"ApiKey":[]}],"tags":["Meetings"],"summary":"Get meeting","x-api-key-scopes":["*"]},"put":{"operationId":"meetings_updateMeeting","parameters":[{"name":"id","required":true,"in":"path","schema":{"type":"string"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/UpdateMeetingDto"}}}},"responses":{"200":{"description":""},"400":{"$ref":"#/components/responses/BadRequest"},"401":{"$ref":"#/components/responses/Unauthorized"},"403":{"$ref":"#/components/responses/Forbidden"},"404":{"$ref":"#/components/responses/NotFound"},"429":{"$ref":"#/components/responses/TooManyRequests"},"500":{"$ref":"#/components/responses/ServerError"}},"security":[{"JWT":[]},{"ApiKey":[]}],"summary":"Update meeting status\nPUT /meetings/:id","tags":["Meetings"],"x-api-key-scopes":["*"]},"delete":{"operationId":"meetings_deleteMeeting","parameters":[{"name":"id","required":true,"in":"path","schema":{"type":"string"}}],"responses":{"204":{"description":""},"400":{"$ref":"#/components/responses/BadRequest"},"401":{"$ref":"#/components/responses/Unauthorized"},"403":{"$ref":"#/components/responses/Forbidden"},"404":{"$ref":"#/components/responses/NotFound"},"429":{"$ref":"#/components/responses/TooManyRequests"},"500":{"$ref":"#/components/responses/ServerError"}},"security":[{"JWT":[]},{"ApiKey":[]}],"summary":"Delete a meeting\nDELETE /meetings/:id","tags":["Meetings"],"x-api-key-scopes":["*"]}},"/v1/meetings/{id}/transcript":{"get":{"operationId":"meetings_getTranscript","parameters":[{"name":"id","required":true,"in":"path","schema":{"type":"string"}}],"responses":{"200":{"description":""},"400":{"$ref":"#/components/responses/BadRequest"},"401":{"$ref":"#/components/responses/Unauthorized"},"403":{"$ref":"#/components/responses/Forbidden"},"404":{"$ref":"#/components/responses/NotFound"},"429":{"$ref":"#/components/responses/TooManyRequests"},"500":{"$ref":"#/components/responses/ServerError"}},"security":[{"JWT":[]},{"ApiKey":[]}],"summary":"Get meeting transcript\nGET /meetings/:id/transcript","tags":["Meetings"],"x-api-key-scopes":["*"]},"post":{"operationId":"meetings_uploadTranscript","parameters":[{"name":"id","required":true,"in":"path","schema":{"type":"string"}},{"$ref":"#/components/parameters/IdempotencyKey"}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/UploadTranscriptDto"}}}},"responses":{"201":{"description":""},"400":{"$ref":"#/components/responses/BadRequest"},"401":{"$ref":"#/components/responses/Unauthorized"},"403":{"$ref":"#/components/responses/Forbidden"},"404":{"$ref":"#/components/responses/NotFound"},"409":{"$ref":"#/components/responses/Conflict"},"429":{"$ref":"#/components/responses/TooManyRequests"},"500":{"$ref":"#/components/responses/ServerError"}},"security":[{"JWT":[]},{"ApiKey":[]}],"summary":"Upload a transcript manually (for testing or manual uploads)\nPOST /meetings/:id/transcript","tags":["Meetings"],"x-api-key-scopes":["*"]}},"/v1/meetings/{id}/analysis":{"get":{"operationId":"meetings_getAnalysis","parameters":[{"name":"id","required":true,"in":"path","schema":{"type":"string"}}],"responses":{"200":{"description":""},"400":{"$ref":"#/components/responses/BadRequest"},"401":{"$ref":"#/components/responses/Unauthorized"},"403":{"$ref":"#/components/responses/Forbidden"},"404":{"$ref":"#/components/responses/NotFound"},"429":{"$ref":"#/components/responses/TooManyRequests"},"500":{"$ref":"#/components/responses/ServerError"}},"security":[{"JWT":[]},{"ApiKey":[]}],"summary":"Get meeting analysis\nGET /meetings/:id/analysis\nReturns an empty object when the meeting has no analysis yet.","tags":["Meetings"],"x-api-key-scopes":["*"]}},"/v1/meetings/{id}/audit-logs":{"get":{"operationId":"meetings_getAuditLogs","parameters":[{"name":"id","required":true,"in":"path","schema":{"type":"string"}},{"name":"action","required":true,"in":"query","schema":{"type":"string"}},{"name":"status","required":true,"in":"query","schema":{"type":"string"}},{"name":"limit","required":true,"in":"query","schema":{"type":"string"}},{"name":"offset","required":true,"in":"query","schema":{"type":"string"}}],"responses":{"200":{"description":""},"400":{"$ref":"#/components/responses/BadRequest"},"401":{"$ref":"#/components/responses/Unauthorized"},"403":{"$ref":"#/components/responses/Forbidden"},"404":{"$ref":"#/components/responses/NotFound"},"429":{"$ref":"#/components/responses/TooManyRequests"},"500":{"$ref":"#/components/responses/ServerError"}},"security":[{"JWT":[]},{"ApiKey":[]}],"summary":"Get audit logs for a meeting\nGET /meetings/:id/audit-logs","tags":["Meetings"],"x-api-key-scopes":["*"]}},"/v1/meetings/{id}/analyze":{"post":{"operationId":"meetings_analyzeMeeting","parameters":[{"name":"id","required":true,"in":"path","schema":{"type":"string"}},{"$ref":"#/components/parameters/IdempotencyKey"}],"responses":{"201":{"description":"","content":{"application/json":{"schema":{"$ref":"#/components/schemas/MeetingAnalysisResultDto"}}}},"400":{"$ref":"#/components/responses/BadRequest"},"401":{"$ref":"#/components/responses/Unauthorized"},"403":{"$ref":"#/components/responses/Forbidden"},"404":{"$ref":"#/components/responses/NotFound"},"409":{"$ref":"#/components/responses/Conflict"},"429":{"$ref":"#/components/responses/TooManyRequests"},"500":{"$ref":"#/components/responses/ServerError"}},"security":[{"JWT":[]},{"ApiKey":[]}],"summary":"Trigger AI analysis of a meeting\nPOST /meetings/:id/analyze","tags":["Meetings"],"x-api-key-scopes":["*"]}},"/v1/meetings/{id}/generate-summary":{"post":{"operationId":"meetings_generateSummary","parameters":[{"name":"id","required":true,"in":"path","schema":{"type":"string"}},{"$ref":"#/components/parameters/IdempotencyKey"}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/GenerateSummaryDto"}}}},"responses":{"201":{"description":"","content":{"application/json":{"schema":{"type":"object"}}}},"400":{"$ref":"#/components/responses/BadRequest"},"401":{"$ref":"#/components/responses/Unauthorized"},"403":{"$ref":"#/components/responses/Forbidden"},"404":{"$ref":"#/components/responses/NotFound"},"409":{"$ref":"#/components/responses/Conflict"},"429":{"$ref":"#/components/responses/TooManyRequests"},"500":{"$ref":"#/components/responses/ServerError"}},"security":[{"JWT":[]},{"ApiKey":[]}],"tags":["Meetings"],"summary":"Generate summary","x-api-key-scopes":["*"]}},"/v1/meetings/{id}/summary":{"get":{"operationId":"meetings_getSummary","parameters":[{"name":"id","required":true,"in":"path","schema":{"type":"string"}}],"responses":{"200":{"description":"","content":{"application/json":{"schema":{"type":"object"}}}},"400":{"$ref":"#/components/responses/BadRequest"},"401":{"$ref":"#/components/responses/Unauthorized"},"403":{"$ref":"#/components/responses/Forbidden"},"404":{"$ref":"#/components/responses/NotFound"},"429":{"$ref":"#/components/responses/TooManyRequests"},"500":{"$ref":"#/components/responses/ServerError"}},"security":[{"JWT":[]},{"ApiKey":[]}],"summary":"Get meeting summary\nGET /meetings/:id/summary\n\nReturns the previously generated summary for a meeting,\nor null if no summary has been generated yet.","tags":["Meetings"],"x-api-key-scopes":["*"]}},"/v1/meetings/{id}/approve-actions":{"post":{"operationId":"meetings_approveActions","parameters":[{"name":"id","required":true,"in":"path","schema":{"type":"string"}},{"$ref":"#/components/parameters/IdempotencyKey"}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ApproveActionsDto"}}}},"responses":{"201":{"description":""},"400":{"$ref":"#/components/responses/BadRequest"},"401":{"$ref":"#/components/responses/Unauthorized"},"403":{"$ref":"#/components/responses/Forbidden"},"404":{"$ref":"#/components/responses/NotFound"},"409":{"$ref":"#/components/responses/Conflict"},"429":{"$ref":"#/components/responses/TooManyRequests"},"500":{"$ref":"#/components/responses/ServerError"}},"security":[{"JWT":[]},{"ApiKey":[]}],"summary":"Approve and create action items from meeting summary\nPOST /meetings/:id/approve-actions\n\nAllows selective approval of extracted action items.\nCreates Tasks and/or CoachingActionItems based on options.","tags":["Meetings"],"x-api-key-scopes":["*"]}},"/v1/meetings/{id}/resync":{"post":{"operationId":"meetings_resyncMeeting","parameters":[{"name":"id","required":true,"in":"path","schema":{"type":"string"}},{"$ref":"#/components/parameters/IdempotencyKey"}],"responses":{"201":{"description":""},"400":{"$ref":"#/components/responses/BadRequest"},"401":{"$ref":"#/components/responses/Unauthorized"},"403":{"$ref":"#/components/responses/Forbidden"},"404":{"$ref":"#/components/responses/NotFound"},"409":{"$ref":"#/components/responses/Conflict"},"429":{"$ref":"#/components/responses/TooManyRequests"},"500":{"$ref":"#/components/responses/ServerError"}},"security":[{"JWT":[]},{"ApiKey":[]}],"summary":"Re-sync transcript from Attendee and re-analyze\nPOST /meetings/:id/resync","tags":["Meetings"],"x-api-key-scopes":["*"]}},"/v1/meetings/{id}/action-items":{"get":{"operationId":"meetings_getActionItems","parameters":[{"name":"id","required":true,"in":"path","schema":{"type":"string"}}],"responses":{"200":{"description":"","content":{"application/json":{"schema":{"type":"array","items":{"type":"object"}}}}},"400":{"$ref":"#/components/responses/BadRequest"},"401":{"$ref":"#/components/responses/Unauthorized"},"403":{"$ref":"#/components/responses/Forbidden"},"404":{"$ref":"#/components/responses/NotFound"},"429":{"$ref":"#/components/responses/TooManyRequests"},"500":{"$ref":"#/components/responses/ServerError"}},"security":[{"JWT":[]},{"ApiKey":[]}],"summary":"Get action items from a meeting\nGET /meetings/:id/action-items","tags":["Meetings"],"x-api-key-scopes":["*"]}},"/v1/meetings/{id}/insights":{"get":{"operationId":"meetings_getInsights","parameters":[{"name":"id","required":true,"in":"path","schema":{"type":"string"}}],"responses":{"200":{"description":""},"400":{"$ref":"#/components/responses/BadRequest"},"401":{"$ref":"#/components/responses/Unauthorized"},"403":{"$ref":"#/components/responses/Forbidden"},"404":{"$ref":"#/components/responses/NotFound"},"429":{"$ref":"#/components/responses/TooManyRequests"},"500":{"$ref":"#/components/responses/ServerError"}},"security":[{"JWT":[]},{"ApiKey":[]}],"summary":"Get insights from a meeting\nGET /meetings/:id/insights","tags":["Meetings"],"x-api-key-scopes":["*"]}},"/v1/meetings/{id}/bot/join":{"post":{"operationId":"meetings_joinMeetingWithBot","parameters":[{"name":"id","required":true,"in":"path","schema":{"type":"string"}},{"$ref":"#/components/parameters/IdempotencyKey"}],"responses":{"201":{"description":""},"400":{"$ref":"#/components/responses/BadRequest"},"401":{"$ref":"#/components/responses/Unauthorized"},"403":{"$ref":"#/components/responses/Forbidden"},"404":{"$ref":"#/components/responses/NotFound"},"409":{"$ref":"#/components/responses/Conflict"},"429":{"$ref":"#/components/responses/TooManyRequests"},"500":{"$ref":"#/components/responses/ServerError"}},"security":[{"JWT":[]},{"ApiKey":[]}],"tags":["Meetings"],"summary":"Join meeting with bot","x-api-key-scopes":["*"]}},"/v1/meetings/{id}/bot/leave":{"post":{"operationId":"meetings_leaveMeetingWithBot","parameters":[{"name":"id","required":true,"in":"path","schema":{"type":"string"}},{"$ref":"#/components/parameters/IdempotencyKey"}],"responses":{"201":{"description":""},"400":{"$ref":"#/components/responses/BadRequest"},"401":{"$ref":"#/components/responses/Unauthorized"},"403":{"$ref":"#/components/responses/Forbidden"},"404":{"$ref":"#/components/responses/NotFound"},"409":{"$ref":"#/components/responses/Conflict"},"429":{"$ref":"#/components/responses/TooManyRequests"},"500":{"$ref":"#/components/responses/ServerError"}},"security":[{"JWT":[]},{"ApiKey":[]}],"summary":"Manually trigger bot to leave a meeting\nPOST /meetings/:id/bot/leave","tags":["Meetings"],"x-api-key-scopes":["*"]}},"/v1/meetings/{id}/bot/status":{"get":{"operationId":"meetings_getBotStatus","parameters":[{"name":"id","required":true,"in":"path","schema":{"type":"string"}}],"responses":{"200":{"description":""},"400":{"$ref":"#/components/responses/BadRequest"},"401":{"$ref":"#/components/responses/Unauthorized"},"403":{"$ref":"#/components/responses/Forbidden"},"404":{"$ref":"#/components/responses/NotFound"},"429":{"$ref":"#/components/responses/TooManyRequests"},"500":{"$ref":"#/components/responses/ServerError"}},"security":[{"JWT":[]},{"ApiKey":[]}],"summary":"Get bot status for a meeting\nGET /meetings/:id/bot/status","tags":["Meetings"],"x-api-key-scopes":["*"]}},"/v1/meetings/{id}/bot/transcript":{"get":{"operationId":"meetings_getLiveTranscript","parameters":[{"name":"id","required":true,"in":"path","schema":{"type":"string"}}],"responses":{"200":{"description":""},"400":{"$ref":"#/components/responses/BadRequest"},"401":{"$ref":"#/components/responses/Unauthorized"},"403":{"$ref":"#/components/responses/Forbidden"},"404":{"$ref":"#/components/responses/NotFound"},"429":{"$ref":"#/components/responses/TooManyRequests"},"500":{"$ref":"#/components/responses/ServerError"}},"security":[{"JWT":[]},{"ApiKey":[]}],"summary":"Get live transcript for an active meeting\nGET /meetings/:id/bot/transcript","tags":["Meetings"],"x-api-key-scopes":["*"]}},"/v1/meetings/bots/configured":{"get":{"operationId":"meetings_isBotConfigured","parameters":[],"responses":{"200":{"description":""},"401":{"$ref":"#/components/responses/Unauthorized"},"403":{"$ref":"#/components/responses/Forbidden"},"429":{"$ref":"#/components/responses/TooManyRequests"},"500":{"$ref":"#/components/responses/ServerError"}},"security":[{"JWT":[]},{"ApiKey":[]}],"summary":"Check if Zoom SDK bot is configured\nGET /meetings/bots/configured","tags":["Meetings"],"x-api-key-scopes":["*"]}},"/v1/activities":{"post":{"operationId":"activities_create","parameters":[{"$ref":"#/components/parameters/IdempotencyKey"}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/CreateActivityDto"}}}},"responses":{"201":{"description":"Activity","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Activity"}}}},"400":{"$ref":"#/components/responses/BadRequest"},"401":{"$ref":"#/components/responses/Unauthorized"},"403":{"$ref":"#/components/responses/Forbidden"},"409":{"$ref":"#/components/responses/Conflict"},"429":{"$ref":"#/components/responses/TooManyRequests"},"500":{"$ref":"#/components/responses/ServerError"}},"security":[{"JWT":[]},{"ApiKey":[]}],"tags":["Activities"],"summary":"Create","x-api-key-scopes":["WRITE_ACTIVITIES"]},"get":{"operationId":"activities_findAll","parameters":[{"name":"type","required":false,"in":"query","schema":{"type":"string"}},{"name":"leadId","required":false,"in":"query","schema":{"type":"string"}},{"name":"accountId","required":false,"in":"query","schema":{"type":"string"}},{"name":"contactId","required":false,"in":"query","schema":{"type":"string"}},{"name":"opportunityId","required":false,"in":"query","schema":{"type":"string"}},{"name":"startDate","required":false,"in":"query","schema":{"type":"string"}},{"name":"endDate","required":false,"in":"query","schema":{"type":"string"}},{"name":"limit","required":false,"in":"query","schema":{"type":"string"}},{"name":"page","required":false,"in":"query","schema":{"type":"string"}},{"name":"sortBy","required":false,"in":"query","schema":{"type":"string"}},{"name":"sortOrder","required":false,"in":"query","schema":{"type":"string"}}],"responses":{"200":{"description":"ActivityList","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ActivityList"}}}},"400":{"$ref":"#/components/responses/BadRequest"},"401":{"$ref":"#/components/responses/Unauthorized"},"403":{"$ref":"#/components/responses/Forbidden"},"429":{"$ref":"#/components/responses/TooManyRequests"},"500":{"$ref":"#/components/responses/ServerError"}},"security":[{"JWT":[]},{"ApiKey":[]}],"tags":["Activities"],"summary":"List","x-api-key-scopes":["READ_ACTIVITIES"]}},"/v1/activities/stats":{"get":{"operationId":"activities_getStats","parameters":[],"responses":{"200":{"description":""},"401":{"$ref":"#/components/responses/Unauthorized"},"403":{"$ref":"#/components/responses/Forbidden"},"429":{"$ref":"#/components/responses/TooManyRequests"},"500":{"$ref":"#/components/responses/ServerError"}},"security":[{"JWT":[]},{"ApiKey":[]}],"tags":["Activities"],"summary":"Get stats","x-api-key-scopes":["READ_ACTIVITIES"]}},"/v1/activities/count":{"get":{"operationId":"activities_getActivityCount","parameters":[{"name":"date","required":false,"in":"query","schema":{"type":"string"}},{"name":"type","required":false,"in":"query","schema":{"type":"string"}}],"responses":{"200":{"description":""},"400":{"$ref":"#/components/responses/BadRequest"},"401":{"$ref":"#/components/responses/Unauthorized"},"403":{"$ref":"#/components/responses/Forbidden"},"429":{"$ref":"#/components/responses/TooManyRequests"},"500":{"$ref":"#/components/responses/ServerError"}},"security":[{"JWT":[]},{"ApiKey":[]}],"tags":["Activities"],"summary":"Get activity count","x-api-key-scopes":["READ_ACTIVITIES"]}},"/v1/activities/timeline/{recordType}/{recordId}":{"get":{"operationId":"activities_getTimeline","parameters":[{"name":"recordType","required":true,"in":"path","schema":{"type":"string"}},{"name":"recordId","required":true,"in":"path","schema":{"type":"string"}}],"responses":{"200":{"description":"","content":{"application/json":{"schema":{"type":"array","items":{"type":"object"}}}}},"400":{"$ref":"#/components/responses/BadRequest"},"401":{"$ref":"#/components/responses/Unauthorized"},"403":{"$ref":"#/components/responses/Forbidden"},"404":{"$ref":"#/components/responses/NotFound"},"429":{"$ref":"#/components/responses/TooManyRequests"},"500":{"$ref":"#/components/responses/ServerError"}},"security":[{"JWT":[]},{"ApiKey":[]}],"tags":["Activities"],"summary":"Get timeline","x-api-key-scopes":["READ_ACTIVITIES"]}},"/v1/activities/{id}":{"get":{"operationId":"activities_findOne","parameters":[{"name":"id","required":true,"in":"path","schema":{"type":"string"}}],"responses":{"200":{"description":"Activity","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Activity"}}}},"400":{"$ref":"#/components/responses/BadRequest"},"401":{"$ref":"#/components/responses/Unauthorized"},"403":{"$ref":"#/components/responses/Forbidden"},"404":{"$ref":"#/components/responses/NotFound"},"429":{"$ref":"#/components/responses/TooManyRequests"},"500":{"$ref":"#/components/responses/ServerError"}},"security":[{"JWT":[]},{"ApiKey":[]}],"tags":["Activities"],"summary":"Find one","x-api-key-scopes":["READ_ACTIVITIES"]},"delete":{"operationId":"activities_remove","parameters":[{"name":"id","required":true,"in":"path","schema":{"type":"string"}}],"responses":{"200":{"description":"No response body."},"400":{"$ref":"#/components/responses/BadRequest"},"401":{"$ref":"#/components/responses/Unauthorized"},"403":{"$ref":"#/components/responses/Forbidden"},"404":{"$ref":"#/components/responses/NotFound"},"429":{"$ref":"#/components/responses/TooManyRequests"},"500":{"$ref":"#/components/responses/ServerError"}},"security":[{"JWT":[]},{"ApiKey":[]}],"tags":["Activities"],"summary":"Remove","x-api-key-scopes":["WRITE_ACTIVITIES"]}},"/v1/activities/{id}/extract-insights":{"post":{"operationId":"activities_extractInsights","parameters":[{"name":"id","required":true,"in":"path","schema":{"type":"string"}},{"$ref":"#/components/parameters/IdempotencyKey"}],"responses":{"201":{"description":"Activity","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Activity"}}}},"400":{"$ref":"#/components/responses/BadRequest"},"401":{"$ref":"#/components/responses/Unauthorized"},"403":{"$ref":"#/components/responses/Forbidden"},"404":{"$ref":"#/components/responses/NotFound"},"409":{"$ref":"#/components/responses/Conflict"},"429":{"$ref":"#/components/responses/TooManyRequests"},"500":{"$ref":"#/components/responses/ServerError"}},"security":[{"JWT":[]},{"ApiKey":[]}],"tags":["Activities"],"summary":"Extract insights","x-api-key-scopes":["WRITE_ACTIVITIES"]}},"/v1/tasks":{"post":{"operationId":"tasks_create","parameters":[{"$ref":"#/components/parameters/IdempotencyKey"}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/CreateTaskDto"}}}},"responses":{"201":{"description":"Task","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Task"}}}},"400":{"$ref":"#/components/responses/BadRequest"},"401":{"$ref":"#/components/responses/Unauthorized"},"403":{"$ref":"#/components/responses/Forbidden"},"409":{"$ref":"#/components/responses/Conflict"},"429":{"$ref":"#/components/responses/TooManyRequests"},"500":{"$ref":"#/components/responses/ServerError"}},"security":[{"JWT":[]},{"ApiKey":[]}],"tags":["Tasks"],"summary":"Create","x-api-key-scopes":["WRITE_TASKS"]},"get":{"operationId":"tasks_findAll","parameters":[{"name":"status","required":false,"in":"query","schema":{"type":"string"}},{"name":"priority","required":false,"in":"query","schema":{"type":"string"}},{"name":"assignedToId","required":false,"in":"query","schema":{"type":"string"}},{"name":"leadId","required":false,"in":"query","schema":{"type":"string"}},{"name":"accountId","required":false,"in":"query","schema":{"type":"string"}},{"name":"contactId","required":false,"in":"query","schema":{"type":"string"}},{"name":"opportunityId","required":false,"in":"query","schema":{"type":"string"}},{"name":"overdue","required":false,"in":"query","schema":{"type":"string"}},{"name":"source","required":false,"in":"query","schema":{"type":"string"}},{"name":"page","required":false,"in":"query","schema":{"type":"string"}},{"name":"limit","required":false,"in":"query","schema":{"type":"string"}},{"name":"sortBy","required":false,"in":"query","schema":{"type":"string"}},{"name":"sortOrder","required":false,"in":"query","schema":{"type":"string"}},{"name":"search","required":false,"in":"query","schema":{"type":"string"}},{"name":"owner","required":false,"in":"query","schema":{"type":"string"}},{"name":"createdAfter","required":false,"in":"query","schema":{"type":"string"}},{"name":"ids","required":false,"in":"query","schema":{"type":"string"}},{"name":"open","required":false,"in":"query","schema":{"type":"string"}}],"responses":{"200":{"description":"TaskList","content":{"application/json":{"schema":{"$ref":"#/components/schemas/TaskList"}}}},"400":{"$ref":"#/components/responses/BadRequest"},"401":{"$ref":"#/components/responses/Unauthorized"},"403":{"$ref":"#/components/responses/Forbidden"},"429":{"$ref":"#/components/responses/TooManyRequests"},"500":{"$ref":"#/components/responses/ServerError"}},"security":[{"JWT":[]},{"ApiKey":[]}],"tags":["Tasks"],"summary":"List","x-api-key-scopes":["READ_TASKS"]}},"/v1/tasks/stats":{"get":{"operationId":"tasks_getStats","parameters":[],"responses":{"200":{"description":""},"401":{"$ref":"#/components/responses/Unauthorized"},"403":{"$ref":"#/components/responses/Forbidden"},"429":{"$ref":"#/components/responses/TooManyRequests"},"500":{"$ref":"#/components/responses/ServerError"}},"security":[{"JWT":[]},{"ApiKey":[]}],"tags":["Tasks"],"summary":"Get stats","x-api-key-scopes":["READ_TASKS"]}},"/v1/tasks/{id}":{"get":{"operationId":"tasks_findOne","parameters":[{"name":"id","required":true,"in":"path","schema":{"type":"string"}}],"responses":{"200":{"description":"Task","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Task"}}}},"400":{"$ref":"#/components/responses/BadRequest"},"401":{"$ref":"#/components/responses/Unauthorized"},"403":{"$ref":"#/components/responses/Forbidden"},"404":{"$ref":"#/components/responses/NotFound"},"429":{"$ref":"#/components/responses/TooManyRequests"},"500":{"$ref":"#/components/responses/ServerError"}},"security":[{"JWT":[]},{"ApiKey":[]}],"tags":["Tasks"],"summary":"Find one","x-api-key-scopes":["READ_TASKS"]},"patch":{"operationId":"tasks_update","parameters":[{"name":"id","required":true,"in":"path","schema":{"type":"string"}},{"$ref":"#/components/parameters/IdempotencyKey"}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/UpdateTaskDto"}}}},"responses":{"200":{"description":"Task","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Task"}}}},"400":{"$ref":"#/components/responses/BadRequest"},"401":{"$ref":"#/components/responses/Unauthorized"},"403":{"$ref":"#/components/responses/Forbidden"},"404":{"$ref":"#/components/responses/NotFound"},"409":{"$ref":"#/components/responses/Conflict"},"429":{"$ref":"#/components/responses/TooManyRequests"},"500":{"$ref":"#/components/responses/ServerError"}},"security":[{"JWT":[]},{"ApiKey":[]}],"tags":["Tasks"],"summary":"Update","x-api-key-scopes":["WRITE_TASKS"]},"delete":{"operationId":"tasks_remove","parameters":[{"name":"id","required":true,"in":"path","schema":{"type":"string"}}],"responses":{"200":{"description":"No response body."},"400":{"$ref":"#/components/responses/BadRequest"},"401":{"$ref":"#/components/responses/Unauthorized"},"403":{"$ref":"#/components/responses/Forbidden"},"404":{"$ref":"#/components/responses/NotFound"},"429":{"$ref":"#/components/responses/TooManyRequests"},"500":{"$ref":"#/components/responses/ServerError"}},"security":[{"JWT":[]},{"ApiKey":[]}],"tags":["Tasks"],"summary":"Remove","x-api-key-scopes":["WRITE_TASKS"]}},"/v1/tasks/{id}/complete":{"post":{"operationId":"tasks_complete","parameters":[{"name":"id","required":true,"in":"path","schema":{"type":"string"}},{"$ref":"#/components/parameters/IdempotencyKey"}],"responses":{"201":{"description":"Task","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Task"}}}},"400":{"$ref":"#/components/responses/BadRequest"},"401":{"$ref":"#/components/responses/Unauthorized"},"403":{"$ref":"#/components/responses/Forbidden"},"404":{"$ref":"#/components/responses/NotFound"},"409":{"$ref":"#/components/responses/Conflict"},"429":{"$ref":"#/components/responses/TooManyRequests"},"500":{"$ref":"#/components/responses/ServerError"}},"security":[{"JWT":[]},{"ApiKey":[]}],"tags":["Tasks"],"summary":"Complete","x-api-key-scopes":["WRITE_TASKS"]}},"/v1/email-tracking/send":{"post":{"operationId":"emailTracking_sendTrackedEmail","parameters":[{"$ref":"#/components/parameters/IdempotencyKey"}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/SendTrackedEmailDto"}}}},"responses":{"201":{"description":""},"400":{"$ref":"#/components/responses/BadRequest"},"401":{"$ref":"#/components/responses/Unauthorized"},"403":{"$ref":"#/components/responses/Forbidden"},"409":{"$ref":"#/components/responses/Conflict"},"429":{"$ref":"#/components/responses/TooManyRequests"},"500":{"$ref":"#/components/responses/ServerError"}},"security":[{"JWT":[]},{"ApiKey":[]}],"tags":["Email Tracking"],"summary":"Send tracked email","x-api-key-scopes":["*"]}},"/v1/email-tracking/webhook/inbound":{"post":{"operationId":"emailTracking_processInboundWebhook","parameters":[{"name":"api_key","required":false,"in":"query","schema":{"type":"string"}},{"$ref":"#/components/parameters/IdempotencyKey"}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/InboundEmailWebhookDto"}}}},"responses":{"200":{"description":"","content":{"application/json":{"schema":{"type":"object"}}}},"400":{"$ref":"#/components/responses/BadRequest"},"409":{"$ref":"#/components/responses/Conflict"},"429":{"$ref":"#/components/responses/TooManyRequests"},"500":{"$ref":"#/components/responses/ServerError"}},"security":[],"tags":["Email Tracking"],"summary":"Process inbound webhook"}},"/v1/email-tracking/webhook/status":{"post":{"operationId":"emailTracking_processStatusWebhook","parameters":[{"name":"api_key","required":false,"in":"query","schema":{"type":"string"}},{"$ref":"#/components/parameters/IdempotencyKey"}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ProcessStatusWebhookBody"}}}},"responses":{"200":{"description":"","content":{"application/json":{"schema":{"type":"object"}}}},"400":{"$ref":"#/components/responses/BadRequest"},"409":{"$ref":"#/components/responses/Conflict"},"429":{"$ref":"#/components/responses/TooManyRequests"},"500":{"$ref":"#/components/responses/ServerError"}},"security":[],"summary":"Webhook for email delivery status updates (opened, clicked, bounced)","tags":["Email Tracking"]}},"/v1/email-tracking/threads":{"get":{"operationId":"emailTracking_getThreads","parameters":[],"responses":{"200":{"description":""},"401":{"$ref":"#/components/responses/Unauthorized"},"403":{"$ref":"#/components/responses/Forbidden"},"429":{"$ref":"#/components/responses/TooManyRequests"},"500":{"$ref":"#/components/responses/ServerError"}},"security":[{"JWT":[]},{"ApiKey":[]}],"tags":["Email Tracking"],"summary":"Get threads","x-api-key-scopes":["*"]}},"/v1/email-tracking/threads/{id}":{"get":{"operationId":"emailTracking_getThread","parameters":[{"name":"id","required":true,"in":"path","schema":{"type":"string"}}],"responses":{"200":{"description":""},"400":{"$ref":"#/components/responses/BadRequest"},"401":{"$ref":"#/components/responses/Unauthorized"},"403":{"$ref":"#/components/responses/Forbidden"},"404":{"$ref":"#/components/responses/NotFound"},"429":{"$ref":"#/components/responses/TooManyRequests"},"500":{"$ref":"#/components/responses/ServerError"}},"security":[{"JWT":[]},{"ApiKey":[]}],"summary":"Get a specific thread with all messages","tags":["Email Tracking"],"x-api-key-scopes":["*"]}},"/v1/email-tracking/awaiting-response":{"get":{"operationId":"emailTracking_getAwaitingResponse","parameters":[],"responses":{"200":{"description":""},"401":{"$ref":"#/components/responses/Unauthorized"},"403":{"$ref":"#/components/responses/Forbidden"},"429":{"$ref":"#/components/responses/TooManyRequests"},"500":{"$ref":"#/components/responses/ServerError"}},"security":[{"JWT":[]},{"ApiKey":[]}],"summary":"Get threads awaiting response","tags":["Email Tracking"],"x-api-key-scopes":["*"]}},"/v1/email-tracking/imap/status":{"get":{"operationId":"emailTracking_getImapStatus","parameters":[],"responses":{"200":{"description":""},"401":{"$ref":"#/components/responses/Unauthorized"},"403":{"$ref":"#/components/responses/Forbidden"},"429":{"$ref":"#/components/responses/TooManyRequests"},"500":{"$ref":"#/components/responses/ServerError"}},"security":[{"JWT":[]},{"ApiKey":[]}],"tags":["Email Tracking"],"summary":"Get imap status","x-api-key-scopes":["*"]}},"/v1/email-tracking/imap/poll":{"post":{"operationId":"emailTracking_forceImapPoll","parameters":[{"$ref":"#/components/parameters/IdempotencyKey"}],"responses":{"201":{"description":""},"400":{"$ref":"#/components/responses/BadRequest"},"401":{"$ref":"#/components/responses/Unauthorized"},"403":{"$ref":"#/components/responses/Forbidden"},"409":{"$ref":"#/components/responses/Conflict"},"429":{"$ref":"#/components/responses/TooManyRequests"},"500":{"$ref":"#/components/responses/ServerError"}},"security":[{"JWT":[]},{"ApiKey":[]}],"summary":"Force an immediate IMAP poll for new emails","tags":["Email Tracking"],"x-api-key-scopes":["*"]}},"/v1/email-tracking/drafts":{"get":{"operationId":"emailTracking_listDrafts","parameters":[{"name":"status","required":false,"in":"query","schema":{"type":"string"}},{"name":"limit","required":false,"in":"query","schema":{"type":"string"}}],"responses":{"200":{"description":""},"400":{"$ref":"#/components/responses/BadRequest"},"401":{"$ref":"#/components/responses/Unauthorized"},"403":{"$ref":"#/components/responses/Forbidden"},"429":{"$ref":"#/components/responses/TooManyRequests"},"500":{"$ref":"#/components/responses/ServerError"}},"security":[{"JWT":[]},{"ApiKey":[]}],"tags":["Email Tracking"],"summary":"List drafts","x-api-key-scopes":["*"]}},"/v1/email-tracking/drafts/{draftId}":{"get":{"operationId":"emailTracking_getDraft","parameters":[{"name":"draftId","required":true,"in":"path","schema":{"type":"string"}}],"responses":{"200":{"description":""},"400":{"$ref":"#/components/responses/BadRequest"},"401":{"$ref":"#/components/responses/Unauthorized"},"403":{"$ref":"#/components/responses/Forbidden"},"404":{"$ref":"#/components/responses/NotFound"},"429":{"$ref":"#/components/responses/TooManyRequests"},"500":{"$ref":"#/components/responses/ServerError"}},"security":[{"JWT":[]},{"ApiKey":[]}],"summary":"Get a specific draft","tags":["Email Tracking"],"x-api-key-scopes":["*"]},"patch":{"operationId":"emailTracking_updateDraft","parameters":[{"name":"draftId","required":true,"in":"path","schema":{"type":"string"}},{"$ref":"#/components/parameters/IdempotencyKey"}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/UpdateDraftBody"}}}},"responses":{"200":{"description":""},"400":{"$ref":"#/components/responses/BadRequest"},"401":{"$ref":"#/components/responses/Unauthorized"},"403":{"$ref":"#/components/responses/Forbidden"},"404":{"$ref":"#/components/responses/NotFound"},"409":{"$ref":"#/components/responses/Conflict"},"429":{"$ref":"#/components/responses/TooManyRequests"},"500":{"$ref":"#/components/responses/ServerError"}},"security":[{"JWT":[]},{"ApiKey":[]}],"summary":"Update a draft (edit before sending)","tags":["Email Tracking"],"x-api-key-scopes":["*"]},"delete":{"operationId":"emailTracking_discardDraft","parameters":[{"name":"draftId","required":true,"in":"path","schema":{"type":"string"}}],"responses":{"200":{"description":""},"400":{"$ref":"#/components/responses/BadRequest"},"401":{"$ref":"#/components/responses/Unauthorized"},"403":{"$ref":"#/components/responses/Forbidden"},"404":{"$ref":"#/components/responses/NotFound"},"429":{"$ref":"#/components/responses/TooManyRequests"},"500":{"$ref":"#/components/responses/ServerError"}},"security":[{"JWT":[]},{"ApiKey":[]}],"summary":"Discard/reject a draft","tags":["Email Tracking"],"x-api-key-scopes":["*"]}},"/v1/email-tracking/drafts/{draftId}/send":{"post":{"operationId":"emailTracking_sendDraft","parameters":[{"name":"draftId","required":true,"in":"path","schema":{"type":"string"}},{"$ref":"#/components/parameters/IdempotencyKey"}],"responses":{"201":{"description":""},"400":{"$ref":"#/components/responses/BadRequest"},"401":{"$ref":"#/components/responses/Unauthorized"},"403":{"$ref":"#/components/responses/Forbidden"},"404":{"$ref":"#/components/responses/NotFound"},"409":{"$ref":"#/components/responses/Conflict"},"429":{"$ref":"#/components/responses/TooManyRequests"},"500":{"$ref":"#/components/responses/ServerError"}},"security":[{"JWT":[]},{"ApiKey":[]}],"summary":"Send a draft","tags":["Email Tracking"],"x-api-key-scopes":["*"]}},"/v1/quotes/settings/automation":{"get":{"operationId":"quotes_getAutomationSettings","parameters":[],"responses":{"200":{"description":"","content":{"application/json":{"schema":{"type":"object"}}}},"401":{"$ref":"#/components/responses/Unauthorized"},"403":{"$ref":"#/components/responses/Forbidden"},"429":{"$ref":"#/components/responses/TooManyRequests"},"500":{"$ref":"#/components/responses/ServerError"}},"security":[{"JWT":[]},{"ApiKey":[]}],"tags":["Quotes"],"summary":"Get automation settings","x-api-key-scopes":["READ_QUOTES"]},"patch":{"operationId":"quotes_updateAutomationSettings","parameters":[{"$ref":"#/components/parameters/IdempotencyKey"}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/CpqAutomationSettingsBody"}}}},"responses":{"200":{"description":"","content":{"application/json":{"schema":{"type":"object"}}}},"400":{"$ref":"#/components/responses/BadRequest"},"401":{"$ref":"#/components/responses/Unauthorized"},"403":{"$ref":"#/components/responses/Forbidden"},"409":{"$ref":"#/components/responses/Conflict"},"429":{"$ref":"#/components/responses/TooManyRequests"},"500":{"$ref":"#/components/responses/ServerError"}},"security":[{"JWT":[]},{"ApiKey":[]}],"tags":["Quotes"],"summary":"Update automation settings","x-api-key-scopes":["WRITE_QUOTES"]}},"/v1/quotes":{"post":{"operationId":"quotes_createQuote","parameters":[{"$ref":"#/components/parameters/IdempotencyKey"}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/CreateQuoteDto"}}}},"responses":{"201":{"description":"Quote","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Quote"}}}},"400":{"$ref":"#/components/responses/BadRequest"},"401":{"$ref":"#/components/responses/Unauthorized"},"403":{"$ref":"#/components/responses/Forbidden"},"409":{"$ref":"#/components/responses/Conflict"},"429":{"$ref":"#/components/responses/TooManyRequests"},"500":{"$ref":"#/components/responses/ServerError"}},"security":[{"JWT":[]},{"ApiKey":[]}],"tags":["Quotes"],"summary":"Create quote","x-api-key-scopes":["WRITE_QUOTES"]},"get":{"operationId":"quotes_listQuotes","parameters":[{"name":"status","required":false,"in":"query","schema":{"type":"string"}},{"name":"opportunityId","required":false,"in":"query","schema":{"type":"string"}},{"name":"accountId","required":false,"in":"query","schema":{"type":"string"}},{"name":"search","required":false,"in":"query","schema":{"type":"string"}},{"name":"page","required":false,"in":"query","schema":{"type":"string"}},{"name":"limit","required":false,"in":"query","schema":{"type":"string"}},{"name":"sortBy","required":false,"in":"query","schema":{"type":"string"}},{"name":"sortOrder","required":false,"in":"query","schema":{"type":"string"}}],"responses":{"200":{"description":"QuoteList","content":{"application/json":{"schema":{"$ref":"#/components/schemas/QuoteList"}}}},"400":{"$ref":"#/components/responses/BadRequest"},"401":{"$ref":"#/components/responses/Unauthorized"},"403":{"$ref":"#/components/responses/Forbidden"},"429":{"$ref":"#/components/responses/TooManyRequests"},"500":{"$ref":"#/components/responses/ServerError"}},"security":[{"JWT":[]},{"ApiKey":[]}],"tags":["Quotes"],"summary":"List quotes","x-api-key-scopes":["READ_QUOTES"]}},"/v1/quotes/from-opportunity/{opportunityId}":{"post":{"operationId":"quotes_createFromOpportunity","parameters":[{"name":"opportunityId","required":true,"in":"path","schema":{"type":"string"}},{"$ref":"#/components/parameters/IdempotencyKey"}],"responses":{"201":{"description":"Quote","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Quote"}}}},"400":{"$ref":"#/components/responses/BadRequest"},"401":{"$ref":"#/components/responses/Unauthorized"},"403":{"$ref":"#/components/responses/Forbidden"},"404":{"$ref":"#/components/responses/NotFound"},"409":{"$ref":"#/components/responses/Conflict"},"429":{"$ref":"#/components/responses/TooManyRequests"},"500":{"$ref":"#/components/responses/ServerError"}},"security":[{"JWT":[]},{"ApiKey":[]}],"summary":"A draft quote pre-filled from the deal: its account, primary contact and addresses.","tags":["Quotes"],"x-api-key-scopes":["WRITE_QUOTES"]}},"/v1/quotes/stats":{"get":{"operationId":"quotes_getQuoteStats","parameters":[],"responses":{"200":{"description":""},"401":{"$ref":"#/components/responses/Unauthorized"},"403":{"$ref":"#/components/responses/Forbidden"},"429":{"$ref":"#/components/responses/TooManyRequests"},"500":{"$ref":"#/components/responses/ServerError"}},"security":[{"JWT":[]},{"ApiKey":[]}],"tags":["Quotes"],"summary":"Get quote stats","x-api-key-scopes":["READ_QUOTES"]}},"/v1/quotes/deleted":{"get":{"operationId":"quotes_listDeleted","parameters":[],"responses":{"200":{"description":"QuoteArray","content":{"application/json":{"schema":{"$ref":"#/components/schemas/QuoteArray"}}}},"401":{"$ref":"#/components/responses/Unauthorized"},"403":{"$ref":"#/components/responses/Forbidden"},"429":{"$ref":"#/components/responses/TooManyRequests"},"500":{"$ref":"#/components/responses/ServerError"}},"security":[{"JWT":[]},{"ApiKey":[]}],"tags":["Quotes"],"summary":"List deleted","x-api-key-scopes":["READ_QUOTES"]}},"/v1/quotes/{id}":{"get":{"operationId":"quotes_getQuote","parameters":[{"name":"id","required":true,"in":"path","schema":{"type":"string"}}],"responses":{"200":{"description":"Quote","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Quote"}}}},"400":{"$ref":"#/components/responses/BadRequest"},"401":{"$ref":"#/components/responses/Unauthorized"},"403":{"$ref":"#/components/responses/Forbidden"},"404":{"$ref":"#/components/responses/NotFound"},"429":{"$ref":"#/components/responses/TooManyRequests"},"500":{"$ref":"#/components/responses/ServerError"}},"security":[{"JWT":[]},{"ApiKey":[]}],"tags":["Quotes"],"summary":"Get quote","x-api-key-scopes":["READ_QUOTES"]},"patch":{"operationId":"quotes_updateQuote","parameters":[{"name":"id","required":true,"in":"path","schema":{"type":"string"}},{"$ref":"#/components/parameters/IdempotencyKey"}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/UpdateQuoteDto"}}}},"responses":{"200":{"description":"Quote","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Quote"}}}},"400":{"$ref":"#/components/responses/BadRequest"},"401":{"$ref":"#/components/responses/Unauthorized"},"403":{"$ref":"#/components/responses/Forbidden"},"404":{"$ref":"#/components/responses/NotFound"},"409":{"$ref":"#/components/responses/Conflict"},"429":{"$ref":"#/components/responses/TooManyRequests"},"500":{"$ref":"#/components/responses/ServerError"}},"security":[{"JWT":[]},{"ApiKey":[]}],"tags":["Quotes"],"summary":"Update quote","x-api-key-scopes":["WRITE_QUOTES"]},"delete":{"operationId":"quotes_deleteQuote","parameters":[{"name":"id","required":true,"in":"path","schema":{"type":"string"}}],"responses":{"200":{"description":"No response body."},"400":{"$ref":"#/components/responses/BadRequest"},"401":{"$ref":"#/components/responses/Unauthorized"},"403":{"$ref":"#/components/responses/Forbidden"},"404":{"$ref":"#/components/responses/NotFound"},"429":{"$ref":"#/components/responses/TooManyRequests"},"500":{"$ref":"#/components/responses/ServerError"}},"security":[{"JWT":[]},{"ApiKey":[]}],"tags":["Quotes"],"summary":"Delete quote","x-api-key-scopes":["WRITE_QUOTES"]}},"/v1/quotes/{id}/restore":{"post":{"operationId":"quotes_restore","parameters":[{"name":"id","required":true,"in":"path","schema":{"type":"string"}},{"$ref":"#/components/parameters/IdempotencyKey"}],"responses":{"201":{"description":"Quote","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Quote"}}}},"400":{"$ref":"#/components/responses/BadRequest"},"401":{"$ref":"#/components/responses/Unauthorized"},"403":{"$ref":"#/components/responses/Forbidden"},"404":{"$ref":"#/components/responses/NotFound"},"409":{"$ref":"#/components/responses/Conflict"},"429":{"$ref":"#/components/responses/TooManyRequests"},"500":{"$ref":"#/components/responses/ServerError"}},"security":[{"JWT":[]},{"ApiKey":[]}],"tags":["Quotes"],"summary":"Restore","x-api-key-scopes":["WRITE_QUOTES"]}},"/v1/quotes/{id}/line-items":{"post":{"operationId":"quotes_addLineItem","parameters":[{"name":"id","required":true,"in":"path","schema":{"type":"string"}},{"$ref":"#/components/parameters/IdempotencyKey"}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/AddLineItemBody"}}}},"responses":{"201":{"description":"QuoteLineItem","content":{"application/json":{"schema":{"$ref":"#/components/schemas/QuoteLineItem"}}}},"400":{"$ref":"#/components/responses/BadRequest"},"401":{"$ref":"#/components/responses/Unauthorized"},"403":{"$ref":"#/components/responses/Forbidden"},"404":{"$ref":"#/components/responses/NotFound"},"409":{"$ref":"#/components/responses/Conflict"},"429":{"$ref":"#/components/responses/TooManyRequests"},"500":{"$ref":"#/components/responses/ServerError"}},"security":[{"JWT":[]},{"ApiKey":[]}],"tags":["Quotes"],"summary":"Add line item","x-api-key-scopes":["WRITE_QUOTES"]}},"/v1/quotes/line-items/{lineItemId}":{"patch":{"operationId":"quotes_updateLineItem","parameters":[{"name":"lineItemId","required":true,"in":"path","schema":{"type":"string"}},{"$ref":"#/components/parameters/IdempotencyKey"}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/UpdateLineItemBody"}}}},"responses":{"200":{"description":"QuoteLineItem","content":{"application/json":{"schema":{"$ref":"#/components/schemas/QuoteLineItem"}}}},"400":{"$ref":"#/components/responses/BadRequest"},"401":{"$ref":"#/components/responses/Unauthorized"},"403":{"$ref":"#/components/responses/Forbidden"},"404":{"$ref":"#/components/responses/NotFound"},"409":{"$ref":"#/components/responses/Conflict"},"429":{"$ref":"#/components/responses/TooManyRequests"},"500":{"$ref":"#/components/responses/ServerError"}},"security":[{"JWT":[]},{"ApiKey":[]}],"tags":["Quotes"],"summary":"Update line item","x-api-key-scopes":["WRITE_QUOTES"]},"delete":{"operationId":"quotes_removeLineItem","parameters":[{"name":"lineItemId","required":true,"in":"path","schema":{"type":"string"}}],"responses":{"200":{"description":"No response body."},"400":{"$ref":"#/components/responses/BadRequest"},"401":{"$ref":"#/components/responses/Unauthorized"},"403":{"$ref":"#/components/responses/Forbidden"},"404":{"$ref":"#/components/responses/NotFound"},"429":{"$ref":"#/components/responses/TooManyRequests"},"500":{"$ref":"#/components/responses/ServerError"}},"security":[{"JWT":[]},{"ApiKey":[]}],"tags":["Quotes"],"summary":"Remove line item","x-api-key-scopes":["WRITE_QUOTES"]}},"/v1/quotes/{id}/send":{"post":{"operationId":"quotes_sendQuote","parameters":[{"name":"id","required":true,"in":"path","schema":{"type":"string"}},{"$ref":"#/components/parameters/IdempotencyKey"}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/SendQuoteDto"}}}},"responses":{"201":{"description":"Quote","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Quote"}}}},"400":{"$ref":"#/components/responses/BadRequest"},"401":{"$ref":"#/components/responses/Unauthorized"},"403":{"$ref":"#/components/responses/Forbidden"},"404":{"$ref":"#/components/responses/NotFound"},"409":{"$ref":"#/components/responses/Conflict"},"429":{"$ref":"#/components/responses/TooManyRequests"},"500":{"$ref":"#/components/responses/ServerError"}},"security":[{"JWT":[]},{"ApiKey":[]}],"tags":["Quotes"],"summary":"Send quote","x-api-key-scopes":["WRITE_QUOTES"]}},"/v1/quotes/{id}/submit-for-approval":{"post":{"operationId":"quotes_submitForApproval","parameters":[{"name":"id","required":true,"in":"path","schema":{"type":"string"}},{"$ref":"#/components/parameters/IdempotencyKey"}],"responses":{"201":{"description":"Quote","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Quote"}}}},"400":{"$ref":"#/components/responses/BadRequest"},"401":{"$ref":"#/components/responses/Unauthorized"},"403":{"$ref":"#/components/responses/Forbidden"},"404":{"$ref":"#/components/responses/NotFound"},"409":{"$ref":"#/components/responses/Conflict"},"429":{"$ref":"#/components/responses/TooManyRequests"},"500":{"$ref":"#/components/responses/ServerError"}},"security":[{"JWT":[]},{"ApiKey":[]}],"tags":["Quotes"],"summary":"Submit for approval","x-api-key-scopes":["WRITE_QUOTES"]}},"/v1/quotes/{id}/accept":{"post":{"operationId":"quotes_acceptQuote","parameters":[{"name":"id","required":true,"in":"path","schema":{"type":"string"}},{"$ref":"#/components/parameters/IdempotencyKey"}],"responses":{"201":{"description":"Quote","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Quote"}}}},"400":{"$ref":"#/components/responses/BadRequest"},"401":{"$ref":"#/components/responses/Unauthorized"},"403":{"$ref":"#/components/responses/Forbidden"},"404":{"$ref":"#/components/responses/NotFound"},"409":{"$ref":"#/components/responses/Conflict"},"429":{"$ref":"#/components/responses/TooManyRequests"},"500":{"$ref":"#/components/responses/ServerError"}},"security":[{"JWT":[]},{"ApiKey":[]}],"tags":["Quotes"],"summary":"Accept quote","x-api-key-scopes":["WRITE_QUOTES"]}},"/v1/quotes/{id}/sync-deal-amount":{"post":{"operationId":"quotes_syncDealAmount","parameters":[{"name":"id","required":true,"in":"path","schema":{"type":"string"}},{"$ref":"#/components/parameters/IdempotencyKey"}],"responses":{"201":{"description":"","content":{"application/json":{"schema":{"type":"object"}}}},"400":{"$ref":"#/components/responses/BadRequest"},"401":{"$ref":"#/components/responses/Unauthorized"},"403":{"$ref":"#/components/responses/Forbidden"},"404":{"$ref":"#/components/responses/NotFound"},"409":{"$ref":"#/components/responses/Conflict"},"429":{"$ref":"#/components/responses/TooManyRequests"},"500":{"$ref":"#/components/responses/ServerError"}},"security":[{"JWT":[]},{"ApiKey":[]}],"summary":"\"Set deal amount from this quote\": the caller needs edit access to the deal.","tags":["Quotes"],"x-api-key-scopes":["WRITE_QUOTES"]}},"/v1/quotes/{id}/reject":{"post":{"operationId":"quotes_rejectQuote","parameters":[{"name":"id","required":true,"in":"path","schema":{"type":"string"}},{"$ref":"#/components/parameters/IdempotencyKey"}],"responses":{"201":{"description":"Quote","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Quote"}}}},"400":{"$ref":"#/components/responses/BadRequest"},"401":{"$ref":"#/components/responses/Unauthorized"},"403":{"$ref":"#/components/responses/Forbidden"},"404":{"$ref":"#/components/responses/NotFound"},"409":{"$ref":"#/components/responses/Conflict"},"429":{"$ref":"#/components/responses/TooManyRequests"},"500":{"$ref":"#/components/responses/ServerError"}},"security":[{"JWT":[]},{"ApiKey":[]}],"tags":["Quotes"],"summary":"Reject quote","x-api-key-scopes":["WRITE_QUOTES"]}},"/v1/quotes/{id}/pdf":{"get":{"operationId":"quotes_generatePdf","parameters":[{"name":"id","required":true,"in":"path","schema":{"type":"string"}}],"responses":{"200":{"description":""},"400":{"$ref":"#/components/responses/BadRequest"},"401":{"$ref":"#/components/responses/Unauthorized"},"403":{"$ref":"#/components/responses/Forbidden"},"404":{"$ref":"#/components/responses/NotFound"},"429":{"$ref":"#/components/responses/TooManyRequests"},"500":{"$ref":"#/components/responses/ServerError"}},"security":[{"JWT":[]},{"ApiKey":[]}],"tags":["Quotes"],"summary":"Generate pdf","x-api-key-scopes":["READ_QUOTES"]}},"/v1/quotes/{id}/clone":{"post":{"operationId":"quotes_cloneQuote","parameters":[{"name":"id","required":true,"in":"path","schema":{"type":"string"}},{"$ref":"#/components/parameters/IdempotencyKey"}],"responses":{"201":{"description":"Quote","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Quote"}}}},"400":{"$ref":"#/components/responses/BadRequest"},"401":{"$ref":"#/components/responses/Unauthorized"},"403":{"$ref":"#/components/responses/Forbidden"},"404":{"$ref":"#/components/responses/NotFound"},"409":{"$ref":"#/components/responses/Conflict"},"429":{"$ref":"#/components/responses/TooManyRequests"},"500":{"$ref":"#/components/responses/ServerError"}},"security":[{"JWT":[]},{"ApiKey":[]}],"tags":["Quotes"],"summary":"Clone quote","x-api-key-scopes":["WRITE_QUOTES"]}},"/v1/quotes/{id}/recalculate":{"post":{"operationId":"quotes_recalculateQuote","parameters":[{"name":"id","required":true,"in":"path","schema":{"type":"string"}},{"$ref":"#/components/parameters/IdempotencyKey"}],"responses":{"201":{"description":"Quote","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Quote"}}}},"400":{"$ref":"#/components/responses/BadRequest"},"401":{"$ref":"#/components/responses/Unauthorized"},"403":{"$ref":"#/components/responses/Forbidden"},"404":{"$ref":"#/components/responses/NotFound"},"409":{"$ref":"#/components/responses/Conflict"},"429":{"$ref":"#/components/responses/TooManyRequests"},"500":{"$ref":"#/components/responses/ServerError"}},"security":[{"JWT":[]},{"ApiKey":[]}],"tags":["Quotes"],"summary":"Recalculate quote","x-api-key-scopes":["WRITE_QUOTES"]}},"/v1/quotes/{id}/documents":{"post":{"operationId":"quotes_uploadDocument","parameters":[{"name":"id","required":true,"in":"path","schema":{"type":"string"}},{"$ref":"#/components/parameters/IdempotencyKey"}],"responses":{"201":{"description":""},"400":{"$ref":"#/components/responses/BadRequest"},"401":{"$ref":"#/components/responses/Unauthorized"},"403":{"$ref":"#/components/responses/Forbidden"},"404":{"$ref":"#/components/responses/NotFound"},"409":{"$ref":"#/components/responses/Conflict"},"429":{"$ref":"#/components/responses/TooManyRequests"},"500":{"$ref":"#/components/responses/ServerError"}},"security":[{"JWT":[]},{"ApiKey":[]}],"tags":["Quotes"],"summary":"Upload document","x-api-key-scopes":["WRITE_QUOTES"]},"get":{"operationId":"quotes_listDocuments","parameters":[{"name":"id","required":true,"in":"path","schema":{"type":"string"}}],"responses":{"200":{"description":"","content":{"application/json":{"schema":{"type":"array","items":{"type":"object"}}}}},"400":{"$ref":"#/components/responses/BadRequest"},"401":{"$ref":"#/components/responses/Unauthorized"},"403":{"$ref":"#/components/responses/Forbidden"},"404":{"$ref":"#/components/responses/NotFound"},"429":{"$ref":"#/components/responses/TooManyRequests"},"500":{"$ref":"#/components/responses/ServerError"}},"security":[{"JWT":[]},{"ApiKey":[]}],"summary":"List all documents for a quote","tags":["Quotes"],"x-api-key-scopes":["READ_QUOTES"]}},"/v1/quotes/documents/{docId}":{"get":{"operationId":"quotes_getDocument","parameters":[{"name":"docId","required":true,"in":"path","schema":{"type":"string"}}],"responses":{"200":{"description":"","content":{"application/json":{"schema":{"type":"object"}}}},"400":{"$ref":"#/components/responses/BadRequest"},"401":{"$ref":"#/components/responses/Unauthorized"},"403":{"$ref":"#/components/responses/Forbidden"},"404":{"$ref":"#/components/responses/NotFound"},"429":{"$ref":"#/components/responses/TooManyRequests"},"500":{"$ref":"#/components/responses/ServerError"}},"security":[{"JWT":[]},{"ApiKey":[]}],"summary":"Get a single document with AI summary","tags":["Quotes"],"x-api-key-scopes":["READ_QUOTES"]},"delete":{"operationId":"quotes_deleteDocument","parameters":[{"name":"docId","required":true,"in":"path","schema":{"type":"string"}}],"responses":{"200":{"description":""},"400":{"$ref":"#/components/responses/BadRequest"},"401":{"$ref":"#/components/responses/Unauthorized"},"403":{"$ref":"#/components/responses/Forbidden"},"404":{"$ref":"#/components/responses/NotFound"},"429":{"$ref":"#/components/responses/TooManyRequests"},"500":{"$ref":"#/components/responses/ServerError"}},"security":[{"JWT":[]},{"ApiKey":[]}],"summary":"Delete a document","tags":["Quotes"],"x-api-key-scopes":["WRITE_QUOTES"]}},"/v1/quotes/documents/{docId}/reprocess":{"post":{"operationId":"quotes_reprocessDocument","parameters":[{"name":"docId","required":true,"in":"path","schema":{"type":"string"}},{"$ref":"#/components/parameters/IdempotencyKey"}],"responses":{"201":{"description":""},"400":{"$ref":"#/components/responses/BadRequest"},"401":{"$ref":"#/components/responses/Unauthorized"},"403":{"$ref":"#/components/responses/Forbidden"},"404":{"$ref":"#/components/responses/NotFound"},"409":{"$ref":"#/components/responses/Conflict"},"429":{"$ref":"#/components/responses/TooManyRequests"},"500":{"$ref":"#/components/responses/ServerError"}},"security":[{"JWT":[]},{"ApiKey":[]}],"summary":"Re-process a document with AI","tags":["Quotes"],"x-api-key-scopes":["WRITE_QUOTES"]}},"/v1/approval-workflows/stats":{"get":{"operationId":"approvalWorkflows_getStats","parameters":[],"responses":{"200":{"description":""},"401":{"$ref":"#/components/responses/Unauthorized"},"403":{"$ref":"#/components/responses/Forbidden"},"429":{"$ref":"#/components/responses/TooManyRequests"},"500":{"$ref":"#/components/responses/ServerError"}},"security":[{"JWT":[]},{"ApiKey":[]}],"tags":["Approval Workflows"],"summary":"Get stats","x-api-key-scopes":["*"]}},"/v1/approval-workflows":{"get":{"operationId":"approvalWorkflows_findAll","parameters":[{"name":"entity","required":false,"in":"query","schema":{"type":"string"}},{"name":"isActive","required":false,"in":"query","schema":{"type":"string"}}],"responses":{"200":{"description":"","content":{"application/json":{"schema":{"type":"array","items":{"type":"object"}}}}},"400":{"$ref":"#/components/responses/BadRequest"},"401":{"$ref":"#/components/responses/Unauthorized"},"403":{"$ref":"#/components/responses/Forbidden"},"429":{"$ref":"#/components/responses/TooManyRequests"},"500":{"$ref":"#/components/responses/ServerError"}},"security":[{"JWT":[]},{"ApiKey":[]}],"tags":["Approval Workflows"],"summary":"List","x-api-key-scopes":["*"]},"post":{"operationId":"approvalWorkflows_create","parameters":[{"$ref":"#/components/parameters/IdempotencyKey"}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/CreateApprovalWorkflowDto"}}}},"responses":{"201":{"description":"","content":{"application/json":{"schema":{"type":"object"}}}},"400":{"$ref":"#/components/responses/BadRequest"},"401":{"$ref":"#/components/responses/Unauthorized"},"403":{"$ref":"#/components/responses/Forbidden"},"409":{"$ref":"#/components/responses/Conflict"},"429":{"$ref":"#/components/responses/TooManyRequests"},"500":{"$ref":"#/components/responses/ServerError"}},"security":[{"JWT":[]},{"ApiKey":[]}],"tags":["Approval Workflows"],"summary":"Create","x-api-key-scopes":["*"]}},"/v1/approval-workflows/entity/{entity}":{"get":{"operationId":"approvalWorkflows_findByEntity","parameters":[{"name":"entity","required":true,"in":"path","schema":{"type":"string"}}],"responses":{"200":{"description":"","content":{"application/json":{"schema":{"type":"array","items":{"type":"object"}}}}},"400":{"$ref":"#/components/responses/BadRequest"},"401":{"$ref":"#/components/responses/Unauthorized"},"403":{"$ref":"#/components/responses/Forbidden"},"404":{"$ref":"#/components/responses/NotFound"},"429":{"$ref":"#/components/responses/TooManyRequests"},"500":{"$ref":"#/components/responses/ServerError"}},"security":[{"JWT":[]},{"ApiKey":[]}],"tags":["Approval Workflows"],"summary":"Find by entity","x-api-key-scopes":["*"]}},"/v1/approval-workflows/check/{entityType}/{entityId}":{"get":{"operationId":"approvalWorkflows_checkApprovalRequired","parameters":[{"name":"entityType","required":true,"in":"path","schema":{"type":"string"}},{"name":"entityId","required":true,"in":"path","schema":{"type":"string"}}],"responses":{"200":{"description":"","content":{"application/json":{"schema":{"type":"object"}}}},"400":{"$ref":"#/components/responses/BadRequest"},"401":{"$ref":"#/components/responses/Unauthorized"},"403":{"$ref":"#/components/responses/Forbidden"},"404":{"$ref":"#/components/responses/NotFound"},"429":{"$ref":"#/components/responses/TooManyRequests"},"500":{"$ref":"#/components/responses/ServerError"}},"security":[{"JWT":[]},{"ApiKey":[]}],"tags":["Approval Workflows"],"summary":"Check approval required","x-api-key-scopes":["*"]}},"/v1/approval-workflows/{id}":{"get":{"operationId":"approvalWorkflows_findOne","parameters":[{"name":"id","required":true,"in":"path","schema":{"type":"string"}}],"responses":{"200":{"description":"","content":{"application/json":{"schema":{"type":"object"}}}},"400":{"$ref":"#/components/responses/BadRequest"},"401":{"$ref":"#/components/responses/Unauthorized"},"403":{"$ref":"#/components/responses/Forbidden"},"404":{"$ref":"#/components/responses/NotFound"},"429":{"$ref":"#/components/responses/TooManyRequests"},"500":{"$ref":"#/components/responses/ServerError"}},"security":[{"JWT":[]},{"ApiKey":[]}],"tags":["Approval Workflows"],"summary":"Find one","x-api-key-scopes":["*"]},"patch":{"operationId":"approvalWorkflows_update","parameters":[{"name":"id","required":true,"in":"path","schema":{"type":"string"}},{"$ref":"#/components/parameters/IdempotencyKey"}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/UpdateApprovalWorkflowDto"}}}},"responses":{"200":{"description":"","content":{"application/json":{"schema":{"type":"object"}}}},"400":{"$ref":"#/components/responses/BadRequest"},"401":{"$ref":"#/components/responses/Unauthorized"},"403":{"$ref":"#/components/responses/Forbidden"},"404":{"$ref":"#/components/responses/NotFound"},"409":{"$ref":"#/components/responses/Conflict"},"429":{"$ref":"#/components/responses/TooManyRequests"},"500":{"$ref":"#/components/responses/ServerError"}},"security":[{"JWT":[]},{"ApiKey":[]}],"tags":["Approval Workflows"],"summary":"Update","x-api-key-scopes":["*"]},"delete":{"operationId":"approvalWorkflows_delete","parameters":[{"name":"id","required":true,"in":"path","schema":{"type":"string"}}],"responses":{"200":{"description":""},"400":{"$ref":"#/components/responses/BadRequest"},"401":{"$ref":"#/components/responses/Unauthorized"},"403":{"$ref":"#/components/responses/Forbidden"},"404":{"$ref":"#/components/responses/NotFound"},"429":{"$ref":"#/components/responses/TooManyRequests"},"500":{"$ref":"#/components/responses/ServerError"}},"security":[{"JWT":[]},{"ApiKey":[]}],"tags":["Approval Workflows"],"summary":"Delete","x-api-key-scopes":["*"]}},"/v1/approval-workflows/{id}/clone":{"post":{"operationId":"approvalWorkflows_clone","parameters":[{"name":"id","required":true,"in":"path","schema":{"type":"string"}},{"$ref":"#/components/parameters/IdempotencyKey"}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/CloneWorkflowDto"}}}},"responses":{"201":{"description":"","content":{"application/json":{"schema":{"type":"object"}}}},"400":{"$ref":"#/components/responses/BadRequest"},"401":{"$ref":"#/components/responses/Unauthorized"},"403":{"$ref":"#/components/responses/Forbidden"},"404":{"$ref":"#/components/responses/NotFound"},"409":{"$ref":"#/components/responses/Conflict"},"429":{"$ref":"#/components/responses/TooManyRequests"},"500":{"$ref":"#/components/responses/ServerError"}},"security":[{"JWT":[]},{"ApiKey":[]}],"tags":["Approval Workflows"],"summary":"Clone","x-api-key-scopes":["*"]}},"/v1/approval-workflows/{id}/toggle-active":{"post":{"operationId":"approvalWorkflows_toggleActive","parameters":[{"name":"id","required":true,"in":"path","schema":{"type":"string"}},{"$ref":"#/components/parameters/IdempotencyKey"}],"responses":{"201":{"description":"","content":{"application/json":{"schema":{"type":"object"}}}},"400":{"$ref":"#/components/responses/BadRequest"},"401":{"$ref":"#/components/responses/Unauthorized"},"403":{"$ref":"#/components/responses/Forbidden"},"404":{"$ref":"#/components/responses/NotFound"},"409":{"$ref":"#/components/responses/Conflict"},"429":{"$ref":"#/components/responses/TooManyRequests"},"500":{"$ref":"#/components/responses/ServerError"}},"security":[{"JWT":[]},{"ApiKey":[]}],"tags":["Approval Workflows"],"summary":"Toggle active","x-api-key-scopes":["*"]}},"/v1/approval-workflows/{workflowId}/steps":{"post":{"operationId":"approvalWorkflows_addStep","parameters":[{"name":"workflowId","required":true,"in":"path","schema":{"type":"string"}},{"$ref":"#/components/parameters/IdempotencyKey"}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/CreateApprovalStepDto"}}}},"responses":{"201":{"description":"","content":{"application/json":{"schema":{"type":"object"}}}},"400":{"$ref":"#/components/responses/BadRequest"},"401":{"$ref":"#/components/responses/Unauthorized"},"403":{"$ref":"#/components/responses/Forbidden"},"404":{"$ref":"#/components/responses/NotFound"},"409":{"$ref":"#/components/responses/Conflict"},"429":{"$ref":"#/components/responses/TooManyRequests"},"500":{"$ref":"#/components/responses/ServerError"}},"security":[{"JWT":[]},{"ApiKey":[]}],"tags":["Approval Workflows"],"summary":"Add step","x-api-key-scopes":["*"]}},"/v1/approval-workflows/{workflowId}/steps/{stepId}":{"patch":{"operationId":"approvalWorkflows_updateStep","parameters":[{"name":"workflowId","required":true,"in":"path","schema":{"type":"string"}},{"name":"stepId","required":true,"in":"path","schema":{"type":"string"}},{"$ref":"#/components/parameters/IdempotencyKey"}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/UpdateApprovalStepDto"}}}},"responses":{"200":{"description":"","content":{"application/json":{"schema":{"type":"object"}}}},"400":{"$ref":"#/components/responses/BadRequest"},"401":{"$ref":"#/components/responses/Unauthorized"},"403":{"$ref":"#/components/responses/Forbidden"},"404":{"$ref":"#/components/responses/NotFound"},"409":{"$ref":"#/components/responses/Conflict"},"429":{"$ref":"#/components/responses/TooManyRequests"},"500":{"$ref":"#/components/responses/ServerError"}},"security":[{"JWT":[]},{"ApiKey":[]}],"tags":["Approval Workflows"],"summary":"Update step","x-api-key-scopes":["*"]},"delete":{"operationId":"approvalWorkflows_deleteStep","parameters":[{"name":"workflowId","required":true,"in":"path","schema":{"type":"string"}},{"name":"stepId","required":true,"in":"path","schema":{"type":"string"}}],"responses":{"200":{"description":""},"400":{"$ref":"#/components/responses/BadRequest"},"401":{"$ref":"#/components/responses/Unauthorized"},"403":{"$ref":"#/components/responses/Forbidden"},"404":{"$ref":"#/components/responses/NotFound"},"429":{"$ref":"#/components/responses/TooManyRequests"},"500":{"$ref":"#/components/responses/ServerError"}},"security":[{"JWT":[]},{"ApiKey":[]}],"tags":["Approval Workflows"],"summary":"Delete step","x-api-key-scopes":["*"]}},"/v1/approval-workflows/{workflowId}/steps/reorder":{"post":{"operationId":"approvalWorkflows_reorderSteps","parameters":[{"name":"workflowId","required":true,"in":"path","schema":{"type":"string"}},{"$ref":"#/components/parameters/IdempotencyKey"}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ReorderStepsDto"}}}},"responses":{"201":{"description":"","content":{"application/json":{"schema":{"type":"array","items":{"type":"object"}}}}},"400":{"$ref":"#/components/responses/BadRequest"},"401":{"$ref":"#/components/responses/Unauthorized"},"403":{"$ref":"#/components/responses/Forbidden"},"404":{"$ref":"#/components/responses/NotFound"},"409":{"$ref":"#/components/responses/Conflict"},"429":{"$ref":"#/components/responses/TooManyRequests"},"500":{"$ref":"#/components/responses/ServerError"}},"security":[{"JWT":[]},{"ApiKey":[]}],"tags":["Approval Workflows"],"summary":"Reorder steps","x-api-key-scopes":["*"]}},"/v1/contracts":{"post":{"operationId":"contracts_createContract","parameters":[{"$ref":"#/components/parameters/IdempotencyKey"}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/CreateContractBody"}}}},"responses":{"201":{"description":""},"400":{"$ref":"#/components/responses/BadRequest"},"401":{"$ref":"#/components/responses/Unauthorized"},"403":{"$ref":"#/components/responses/Forbidden"},"409":{"$ref":"#/components/responses/Conflict"},"429":{"$ref":"#/components/responses/TooManyRequests"},"500":{"$ref":"#/components/responses/ServerError"}},"security":[{"JWT":[]},{"ApiKey":[]}],"tags":["Contracts"],"summary":"Create contract","x-api-key-scopes":["*"]},"get":{"operationId":"contracts_listContracts","parameters":[{"name":"status","required":false,"in":"query","schema":{"type":"string"}},{"name":"accountId","required":false,"in":"query","schema":{"type":"string"}},{"name":"renewalDue","required":false,"in":"query","schema":{"type":"string"}}],"responses":{"200":{"description":""},"400":{"$ref":"#/components/responses/BadRequest"},"401":{"$ref":"#/components/responses/Unauthorized"},"403":{"$ref":"#/components/responses/Forbidden"},"429":{"$ref":"#/components/responses/TooManyRequests"},"500":{"$ref":"#/components/responses/ServerError"}},"security":[{"JWT":[]},{"ApiKey":[]}],"tags":["Contracts"],"summary":"List contracts","x-api-key-scopes":["*"]}},"/v1/contracts/stats":{"get":{"operationId":"contracts_getContractStats","parameters":[],"responses":{"200":{"description":""},"401":{"$ref":"#/components/responses/Unauthorized"},"403":{"$ref":"#/components/responses/Forbidden"},"429":{"$ref":"#/components/responses/TooManyRequests"},"500":{"$ref":"#/components/responses/ServerError"}},"security":[{"JWT":[]},{"ApiKey":[]}],"tags":["Contracts"],"summary":"Get contract stats","x-api-key-scopes":["*"]}},"/v1/contracts/expiring":{"get":{"operationId":"contracts_getExpiringContracts","parameters":[{"name":"days","required":true,"in":"query","schema":{"type":"string"}}],"responses":{"200":{"description":""},"400":{"$ref":"#/components/responses/BadRequest"},"401":{"$ref":"#/components/responses/Unauthorized"},"403":{"$ref":"#/components/responses/Forbidden"},"429":{"$ref":"#/components/responses/TooManyRequests"},"500":{"$ref":"#/components/responses/ServerError"}},"security":[{"JWT":[]},{"ApiKey":[]}],"tags":["Contracts"],"summary":"Get expiring contracts","x-api-key-scopes":["*"]}},"/v1/contracts/templates/{templateId}":{"get":{"operationId":"contracts_getTemplate","parameters":[{"name":"templateId","required":true,"in":"path","schema":{"type":"string"}}],"responses":{"200":{"description":""},"400":{"$ref":"#/components/responses/BadRequest"},"401":{"$ref":"#/components/responses/Unauthorized"},"403":{"$ref":"#/components/responses/Forbidden"},"404":{"$ref":"#/components/responses/NotFound"},"429":{"$ref":"#/components/responses/TooManyRequests"},"500":{"$ref":"#/components/responses/ServerError"}},"security":[{"JWT":[]},{"ApiKey":[]}],"tags":["Contracts"],"summary":"Get template","x-api-key-scopes":["*"]}},"/v1/contracts/templates":{"get":{"operationId":"contracts_getTemplatesIndex","parameters":[{"name":"type","required":false,"in":"query","schema":{"type":"string"}}],"responses":{"200":{"description":""},"400":{"$ref":"#/components/responses/BadRequest"},"401":{"$ref":"#/components/responses/Unauthorized"},"403":{"$ref":"#/components/responses/Forbidden"},"429":{"$ref":"#/components/responses/TooManyRequests"},"500":{"$ref":"#/components/responses/ServerError"}},"security":[{"JWT":[]},{"ApiKey":[]}],"tags":["Contracts"],"summary":"Get templates index","x-api-key-scopes":["*"]}},"/v1/contracts/{id}":{"get":{"operationId":"contracts_getContract","parameters":[{"name":"id","required":true,"in":"path","schema":{"type":"string"}}],"responses":{"200":{"description":""},"400":{"$ref":"#/components/responses/BadRequest"},"401":{"$ref":"#/components/responses/Unauthorized"},"403":{"$ref":"#/components/responses/Forbidden"},"404":{"$ref":"#/components/responses/NotFound"},"429":{"$ref":"#/components/responses/TooManyRequests"},"500":{"$ref":"#/components/responses/ServerError"}},"security":[{"JWT":[]},{"ApiKey":[]}],"tags":["Contracts"],"summary":"Get contract","x-api-key-scopes":["*"]},"patch":{"operationId":"contracts_updateContract","parameters":[{"name":"id","required":true,"in":"path","schema":{"type":"string"}},{"$ref":"#/components/parameters/IdempotencyKey"}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/UpdateContractBody"}}}},"responses":{"200":{"description":""},"400":{"$ref":"#/components/responses/BadRequest"},"401":{"$ref":"#/components/responses/Unauthorized"},"403":{"$ref":"#/components/responses/Forbidden"},"404":{"$ref":"#/components/responses/NotFound"},"409":{"$ref":"#/components/responses/Conflict"},"429":{"$ref":"#/components/responses/TooManyRequests"},"500":{"$ref":"#/components/responses/ServerError"}},"security":[{"JWT":[]},{"ApiKey":[]}],"tags":["Contracts"],"summary":"Update contract","x-api-key-scopes":["*"]},"delete":{"operationId":"contracts_deleteContract","parameters":[{"name":"id","required":true,"in":"path","schema":{"type":"string"}}],"responses":{"200":{"description":""},"400":{"$ref":"#/components/responses/BadRequest"},"401":{"$ref":"#/components/responses/Unauthorized"},"403":{"$ref":"#/components/responses/Forbidden"},"404":{"$ref":"#/components/responses/NotFound"},"429":{"$ref":"#/components/responses/TooManyRequests"},"500":{"$ref":"#/components/responses/ServerError"}},"security":[{"JWT":[]},{"ApiKey":[]}],"tags":["Contracts"],"summary":"Delete contract","x-api-key-scopes":["*"]}},"/v1/contracts/{id}/restore":{"post":{"operationId":"contracts_restoreContract","parameters":[{"name":"id","required":true,"in":"path","schema":{"type":"string"}},{"$ref":"#/components/parameters/IdempotencyKey"}],"responses":{"201":{"description":""},"400":{"$ref":"#/components/responses/BadRequest"},"401":{"$ref":"#/components/responses/Unauthorized"},"403":{"$ref":"#/components/responses/Forbidden"},"404":{"$ref":"#/components/responses/NotFound"},"409":{"$ref":"#/components/responses/Conflict"},"429":{"$ref":"#/components/responses/TooManyRequests"},"500":{"$ref":"#/components/responses/ServerError"}},"security":[{"JWT":[]},{"ApiKey":[]}],"tags":["Contracts"],"summary":"Restore contract","x-api-key-scopes":["*"]}},"/v1/contracts/{id}/submit":{"post":{"operationId":"contracts_submitForReview","parameters":[{"name":"id","required":true,"in":"path","schema":{"type":"string"}},{"$ref":"#/components/parameters/IdempotencyKey"}],"responses":{"201":{"description":""},"400":{"$ref":"#/components/responses/BadRequest"},"401":{"$ref":"#/components/responses/Unauthorized"},"403":{"$ref":"#/components/responses/Forbidden"},"404":{"$ref":"#/components/responses/NotFound"},"409":{"$ref":"#/components/responses/Conflict"},"429":{"$ref":"#/components/responses/TooManyRequests"},"500":{"$ref":"#/components/responses/ServerError"}},"security":[{"JWT":[]},{"ApiKey":[]}],"tags":["Contracts"],"summary":"Submit for review","x-api-key-scopes":["*"]}},"/v1/contracts/{id}/approve":{"post":{"operationId":"contracts_approveContract","parameters":[{"name":"id","required":true,"in":"path","schema":{"type":"string"}},{"$ref":"#/components/parameters/IdempotencyKey"}],"responses":{"201":{"description":""},"400":{"$ref":"#/components/responses/BadRequest"},"401":{"$ref":"#/components/responses/Unauthorized"},"403":{"$ref":"#/components/responses/Forbidden"},"404":{"$ref":"#/components/responses/NotFound"},"409":{"$ref":"#/components/responses/Conflict"},"429":{"$ref":"#/components/responses/TooManyRequests"},"500":{"$ref":"#/components/responses/ServerError"}},"security":[{"JWT":[]},{"ApiKey":[]}],"tags":["Contracts"],"summary":"Approve contract","x-api-key-scopes":["*"]}},"/v1/contracts/{id}/activate":{"post":{"operationId":"contracts_activateContract","parameters":[{"name":"id","required":true,"in":"path","schema":{"type":"string"}},{"$ref":"#/components/parameters/IdempotencyKey"}],"responses":{"201":{"description":""},"400":{"$ref":"#/components/responses/BadRequest"},"401":{"$ref":"#/components/responses/Unauthorized"},"403":{"$ref":"#/components/responses/Forbidden"},"404":{"$ref":"#/components/responses/NotFound"},"409":{"$ref":"#/components/responses/Conflict"},"429":{"$ref":"#/components/responses/TooManyRequests"},"500":{"$ref":"#/components/responses/ServerError"}},"security":[{"JWT":[]},{"ApiKey":[]}],"tags":["Contracts"],"summary":"Activate contract","x-api-key-scopes":["*"]}},"/v1/contracts/{id}/terminate":{"post":{"operationId":"contracts_terminateContract","parameters":[{"name":"id","required":true,"in":"path","schema":{"type":"string"}},{"$ref":"#/components/parameters/IdempotencyKey"}],"responses":{"201":{"description":""},"400":{"$ref":"#/components/responses/BadRequest"},"401":{"$ref":"#/components/responses/Unauthorized"},"403":{"$ref":"#/components/responses/Forbidden"},"404":{"$ref":"#/components/responses/NotFound"},"409":{"$ref":"#/components/responses/Conflict"},"429":{"$ref":"#/components/responses/TooManyRequests"},"500":{"$ref":"#/components/responses/ServerError"}},"security":[{"JWT":[]},{"ApiKey":[]}],"tags":["Contracts"],"summary":"Terminate contract","x-api-key-scopes":["*"]}},"/v1/contracts/{id}/renew":{"post":{"operationId":"contracts_renewContract","parameters":[{"name":"id","required":true,"in":"path","schema":{"type":"string"}},{"$ref":"#/components/parameters/IdempotencyKey"}],"responses":{"201":{"description":""},"400":{"$ref":"#/components/responses/BadRequest"},"401":{"$ref":"#/components/responses/Unauthorized"},"403":{"$ref":"#/components/responses/Forbidden"},"404":{"$ref":"#/components/responses/NotFound"},"409":{"$ref":"#/components/responses/Conflict"},"429":{"$ref":"#/components/responses/TooManyRequests"},"500":{"$ref":"#/components/responses/ServerError"}},"security":[{"JWT":[]},{"ApiKey":[]}],"tags":["Contracts"],"summary":"Renew contract","x-api-key-scopes":["*"]}},"/v1/contracts/{id}/amend":{"post":{"operationId":"contracts_amendContract","parameters":[{"name":"id","required":true,"in":"path","schema":{"type":"string"}},{"$ref":"#/components/parameters/IdempotencyKey"}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/AmendContractBody"}}}},"responses":{"201":{"description":""},"400":{"$ref":"#/components/responses/BadRequest"},"401":{"$ref":"#/components/responses/Unauthorized"},"403":{"$ref":"#/components/responses/Forbidden"},"404":{"$ref":"#/components/responses/NotFound"},"409":{"$ref":"#/components/responses/Conflict"},"429":{"$ref":"#/components/responses/TooManyRequests"},"500":{"$ref":"#/components/responses/ServerError"}},"security":[{"JWT":[]},{"ApiKey":[]}],"tags":["Contracts"],"summary":"Amend contract","x-api-key-scopes":["*"]}},"/v1/campaigns":{"post":{"operationId":"campaigns_createCampaign","parameters":[{"$ref":"#/components/parameters/IdempotencyKey"}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/CreateCampaignBody"}}}},"responses":{"201":{"description":""},"400":{"$ref":"#/components/responses/BadRequest"},"401":{"$ref":"#/components/responses/Unauthorized"},"403":{"$ref":"#/components/responses/Forbidden"},"409":{"$ref":"#/components/responses/Conflict"},"429":{"$ref":"#/components/responses/TooManyRequests"},"500":{"$ref":"#/components/responses/ServerError"}},"security":[{"JWT":[]},{"ApiKey":[]}],"tags":["Campaigns"],"summary":"Create campaign","x-api-key-scopes":["*"]},"get":{"operationId":"campaigns_listCampaigns","parameters":[{"name":"status","required":false,"in":"query","schema":{"type":"string"}},{"name":"campaignType","required":false,"in":"query","schema":{"type":"string"}}],"responses":{"200":{"description":""},"400":{"$ref":"#/components/responses/BadRequest"},"401":{"$ref":"#/components/responses/Unauthorized"},"403":{"$ref":"#/components/responses/Forbidden"},"429":{"$ref":"#/components/responses/TooManyRequests"},"500":{"$ref":"#/components/responses/ServerError"}},"security":[{"JWT":[]},{"ApiKey":[]}],"tags":["Campaigns"],"summary":"List campaigns","x-api-key-scopes":["*"]}},"/v1/campaigns/stats":{"get":{"operationId":"campaigns_getCampaignStats","parameters":[],"responses":{"200":{"description":""},"401":{"$ref":"#/components/responses/Unauthorized"},"403":{"$ref":"#/components/responses/Forbidden"},"429":{"$ref":"#/components/responses/TooManyRequests"},"500":{"$ref":"#/components/responses/ServerError"}},"security":[{"JWT":[]},{"ApiKey":[]}],"tags":["Campaigns"],"summary":"Get campaign stats","x-api-key-scopes":["*"]}},"/v1/campaigns/{id}":{"get":{"operationId":"campaigns_getCampaign","parameters":[{"name":"id","required":true,"in":"path","schema":{"type":"string"}}],"responses":{"200":{"description":""},"400":{"$ref":"#/components/responses/BadRequest"},"401":{"$ref":"#/components/responses/Unauthorized"},"403":{"$ref":"#/components/responses/Forbidden"},"404":{"$ref":"#/components/responses/NotFound"},"429":{"$ref":"#/components/responses/TooManyRequests"},"500":{"$ref":"#/components/responses/ServerError"}},"security":[{"JWT":[]},{"ApiKey":[]}],"tags":["Campaigns"],"summary":"Get campaign","x-api-key-scopes":["*"]},"patch":{"operationId":"campaigns_updateCampaign","parameters":[{"name":"id","required":true,"in":"path","schema":{"type":"string"}},{"$ref":"#/components/parameters/IdempotencyKey"}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/UpdateCampaignBody"}}}},"responses":{"200":{"description":""},"400":{"$ref":"#/components/responses/BadRequest"},"401":{"$ref":"#/components/responses/Unauthorized"},"403":{"$ref":"#/components/responses/Forbidden"},"404":{"$ref":"#/components/responses/NotFound"},"409":{"$ref":"#/components/responses/Conflict"},"429":{"$ref":"#/components/responses/TooManyRequests"},"500":{"$ref":"#/components/responses/ServerError"}},"security":[{"JWT":[]},{"ApiKey":[]}],"tags":["Campaigns"],"summary":"Update campaign","x-api-key-scopes":["*"]},"delete":{"operationId":"campaigns_deleteCampaign","parameters":[{"name":"id","required":true,"in":"path","schema":{"type":"string"}}],"responses":{"200":{"description":""},"400":{"$ref":"#/components/responses/BadRequest"},"401":{"$ref":"#/components/responses/Unauthorized"},"403":{"$ref":"#/components/responses/Forbidden"},"404":{"$ref":"#/components/responses/NotFound"},"429":{"$ref":"#/components/responses/TooManyRequests"},"500":{"$ref":"#/components/responses/ServerError"}},"security":[{"JWT":[]},{"ApiKey":[]}],"tags":["Campaigns"],"summary":"Delete campaign","x-api-key-scopes":["*"]}},"/v1/campaigns/{id}/roi":{"get":{"operationId":"campaigns_getCampaignROI","parameters":[{"name":"id","required":true,"in":"path","schema":{"type":"string"}}],"responses":{"200":{"description":""},"400":{"$ref":"#/components/responses/BadRequest"},"401":{"$ref":"#/components/responses/Unauthorized"},"403":{"$ref":"#/components/responses/Forbidden"},"404":{"$ref":"#/components/responses/NotFound"},"429":{"$ref":"#/components/responses/TooManyRequests"},"500":{"$ref":"#/components/responses/ServerError"}},"security":[{"JWT":[]},{"ApiKey":[]}],"tags":["Campaigns"],"summary":"Get campaign roi","x-api-key-scopes":["*"]}},"/v1/campaigns/{id}/members":{"get":{"operationId":"campaigns_getCampaignMembers","parameters":[{"name":"id","required":true,"in":"path","schema":{"type":"string"}}],"responses":{"200":{"description":"","content":{"application/json":{"schema":{"type":"array","items":{"type":"object"}}}}},"400":{"$ref":"#/components/responses/BadRequest"},"401":{"$ref":"#/components/responses/Unauthorized"},"403":{"$ref":"#/components/responses/Forbidden"},"404":{"$ref":"#/components/responses/NotFound"},"429":{"$ref":"#/components/responses/TooManyRequests"},"500":{"$ref":"#/components/responses/ServerError"}},"security":[{"JWT":[]},{"ApiKey":[]}],"tags":["Campaigns"],"summary":"Get campaign members","x-api-key-scopes":["*"]},"post":{"operationId":"campaigns_addCampaignMembers","parameters":[{"name":"id","required":true,"in":"path","schema":{"type":"string"}},{"$ref":"#/components/parameters/IdempotencyKey"}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/AddCampaignMembersBody"}}}},"responses":{"201":{"description":""},"400":{"$ref":"#/components/responses/BadRequest"},"401":{"$ref":"#/components/responses/Unauthorized"},"403":{"$ref":"#/components/responses/Forbidden"},"404":{"$ref":"#/components/responses/NotFound"},"409":{"$ref":"#/components/responses/Conflict"},"429":{"$ref":"#/components/responses/TooManyRequests"},"500":{"$ref":"#/components/responses/ServerError"}},"security":[{"JWT":[]},{"ApiKey":[]}],"tags":["Campaigns"],"summary":"Add campaign members","x-api-key-scopes":["*"]}},"/v1/campaigns/{id}/members/{memberId}":{"patch":{"operationId":"campaigns_updateCampaignMemberStatus","parameters":[{"name":"id","required":true,"in":"path","schema":{"type":"string"}},{"name":"memberId","required":true,"in":"path","schema":{"type":"string"}},{"$ref":"#/components/parameters/IdempotencyKey"}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/UpdateCampaignMemberStatusBody"}}}},"responses":{"200":{"description":""},"400":{"$ref":"#/components/responses/BadRequest"},"401":{"$ref":"#/components/responses/Unauthorized"},"403":{"$ref":"#/components/responses/Forbidden"},"404":{"$ref":"#/components/responses/NotFound"},"409":{"$ref":"#/components/responses/Conflict"},"429":{"$ref":"#/components/responses/TooManyRequests"},"500":{"$ref":"#/components/responses/ServerError"}},"security":[{"JWT":[]},{"ApiKey":[]}],"tags":["Campaigns"],"summary":"Update campaign member status","x-api-key-scopes":["*"]},"delete":{"operationId":"campaigns_removeCampaignMember","parameters":[{"name":"id","required":true,"in":"path","schema":{"type":"string"}},{"name":"memberId","required":true,"in":"path","schema":{"type":"string"}}],"responses":{"200":{"description":""},"400":{"$ref":"#/components/responses/BadRequest"},"401":{"$ref":"#/components/responses/Unauthorized"},"403":{"$ref":"#/components/responses/Forbidden"},"404":{"$ref":"#/components/responses/NotFound"},"429":{"$ref":"#/components/responses/TooManyRequests"},"500":{"$ref":"#/components/responses/ServerError"}},"security":[{"JWT":[]},{"ApiKey":[]}],"tags":["Campaigns"],"summary":"Remove campaign member","x-api-key-scopes":["*"]}},"/v1/campaigns/{id}/performance":{"get":{"operationId":"campaigns_getCampaignPerformance","parameters":[{"name":"id","required":true,"in":"path","schema":{"type":"string"}}],"responses":{"200":{"description":""},"400":{"$ref":"#/components/responses/BadRequest"},"401":{"$ref":"#/components/responses/Unauthorized"},"403":{"$ref":"#/components/responses/Forbidden"},"404":{"$ref":"#/components/responses/NotFound"},"429":{"$ref":"#/components/responses/TooManyRequests"},"500":{"$ref":"#/components/responses/ServerError"}},"security":[{"JWT":[]},{"ApiKey":[]}],"tags":["Campaigns"],"summary":"Get campaign performance","x-api-key-scopes":["*"]}},"/v1/campaigns/{id}/content":{"patch":{"operationId":"campaigns_updateContent","parameters":[{"name":"id","required":true,"in":"path","schema":{"type":"string"}},{"$ref":"#/components/parameters/IdempotencyKey"}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/UpdateContentBody"}}}},"responses":{"200":{"description":"","content":{"application/json":{"schema":{"type":"object"}}}},"400":{"$ref":"#/components/responses/BadRequest"},"401":{"$ref":"#/components/responses/Unauthorized"},"403":{"$ref":"#/components/responses/Forbidden"},"404":{"$ref":"#/components/responses/NotFound"},"409":{"$ref":"#/components/responses/Conflict"},"429":{"$ref":"#/components/responses/TooManyRequests"},"500":{"$ref":"#/components/responses/ServerError"}},"security":[{"JWT":[]},{"ApiKey":[]}],"tags":["Campaigns"],"summary":"Update content","x-api-key-scopes":["*"]}},"/v1/campaigns/{id}/send":{"post":{"operationId":"campaigns_sendCampaign","parameters":[{"name":"id","required":true,"in":"path","schema":{"type":"string"}},{"$ref":"#/components/parameters/IdempotencyKey"}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/SendCampaignBody"}}}},"responses":{"201":{"description":""},"400":{"$ref":"#/components/responses/BadRequest"},"401":{"$ref":"#/components/responses/Unauthorized"},"403":{"$ref":"#/components/responses/Forbidden"},"404":{"$ref":"#/components/responses/NotFound"},"409":{"$ref":"#/components/responses/Conflict"},"429":{"$ref":"#/components/responses/TooManyRequests"},"500":{"$ref":"#/components/responses/ServerError"}},"security":[{"JWT":[]},{"ApiKey":[]}],"tags":["Campaigns"],"summary":"Send campaign","x-api-key-scopes":["*"]},"delete":{"operationId":"campaigns_cancelSchedule","parameters":[{"name":"id","required":true,"in":"path","schema":{"type":"string"}}],"responses":{"200":{"description":"","content":{"application/json":{"schema":{"type":"object"}}}},"400":{"$ref":"#/components/responses/BadRequest"},"401":{"$ref":"#/components/responses/Unauthorized"},"403":{"$ref":"#/components/responses/Forbidden"},"404":{"$ref":"#/components/responses/NotFound"},"429":{"$ref":"#/components/responses/TooManyRequests"},"500":{"$ref":"#/components/responses/ServerError"}},"security":[{"JWT":[]},{"ApiKey":[]}],"tags":["Campaigns"],"summary":"Cancel schedule","x-api-key-scopes":["*"]}},"/v1/campaigns/{id}/test-send":{"post":{"operationId":"campaigns_testSend","parameters":[{"name":"id","required":true,"in":"path","schema":{"type":"string"}},{"$ref":"#/components/parameters/IdempotencyKey"}],"responses":{"201":{"description":""},"400":{"$ref":"#/components/responses/BadRequest"},"401":{"$ref":"#/components/responses/Unauthorized"},"403":{"$ref":"#/components/responses/Forbidden"},"404":{"$ref":"#/components/responses/NotFound"},"409":{"$ref":"#/components/responses/Conflict"},"429":{"$ref":"#/components/responses/TooManyRequests"},"500":{"$ref":"#/components/responses/ServerError"}},"security":[{"JWT":[]},{"ApiKey":[]}],"tags":["Campaigns"],"summary":"Test send","x-api-key-scopes":["*"]}},"/v1/campaigns/{id}/delivery":{"get":{"operationId":"campaigns_getDelivery","parameters":[{"name":"id","required":true,"in":"path","schema":{"type":"string"}},{"name":"page","required":false,"in":"query","schema":{"type":"string"}},{"name":"limit","required":false,"in":"query","schema":{"type":"string"}}],"responses":{"200":{"description":""},"400":{"$ref":"#/components/responses/BadRequest"},"401":{"$ref":"#/components/responses/Unauthorized"},"403":{"$ref":"#/components/responses/Forbidden"},"404":{"$ref":"#/components/responses/NotFound"},"429":{"$ref":"#/components/responses/TooManyRequests"},"500":{"$ref":"#/components/responses/ServerError"}},"security":[{"JWT":[]},{"ApiKey":[]}],"tags":["Campaigns"],"summary":"Get delivery","x-api-key-scopes":["*"]}},"/v1/notes":{"post":{"operationId":"notes_createNote","parameters":[{"$ref":"#/components/parameters/IdempotencyKey"}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/CreateNoteBody"}}}},"responses":{"201":{"description":""},"400":{"$ref":"#/components/responses/BadRequest"},"401":{"$ref":"#/components/responses/Unauthorized"},"403":{"$ref":"#/components/responses/Forbidden"},"409":{"$ref":"#/components/responses/Conflict"},"429":{"$ref":"#/components/responses/TooManyRequests"},"500":{"$ref":"#/components/responses/ServerError"}},"security":[{"JWT":[]},{"ApiKey":[]}],"tags":["Notes"],"summary":"Create note","x-api-key-scopes":["*"]},"get":{"operationId":"notes_listNotes","parameters":[{"name":"leadId","required":false,"in":"query","schema":{"type":"string"}},{"name":"accountId","required":false,"in":"query","schema":{"type":"string"}},{"name":"contactId","required":false,"in":"query","schema":{"type":"string"}},{"name":"opportunityId","required":false,"in":"query","schema":{"type":"string"}},{"name":"sfLeadId","required":false,"in":"query","schema":{"type":"string"}},{"name":"sfAccountId","required":false,"in":"query","schema":{"type":"string"}},{"name":"sfContactId","required":false,"in":"query","schema":{"type":"string"}},{"name":"sfOpportunityId","required":false,"in":"query","schema":{"type":"string"}},{"name":"isPrivate","required":false,"in":"query","schema":{"type":"string"}},{"name":"search","required":false,"in":"query","schema":{"type":"string"}}],"responses":{"200":{"description":""},"400":{"$ref":"#/components/responses/BadRequest"},"401":{"$ref":"#/components/responses/Unauthorized"},"403":{"$ref":"#/components/responses/Forbidden"},"429":{"$ref":"#/components/responses/TooManyRequests"},"500":{"$ref":"#/components/responses/ServerError"}},"security":[{"JWT":[]},{"ApiKey":[]}],"tags":["Notes"],"summary":"List notes","x-api-key-scopes":["*"]}},"/v1/notes/stats":{"get":{"operationId":"notes_getNoteStats","parameters":[],"responses":{"200":{"description":""},"401":{"$ref":"#/components/responses/Unauthorized"},"403":{"$ref":"#/components/responses/Forbidden"},"429":{"$ref":"#/components/responses/TooManyRequests"},"500":{"$ref":"#/components/responses/ServerError"}},"security":[{"JWT":[]},{"ApiKey":[]}],"tags":["Notes"],"summary":"Get note stats","x-api-key-scopes":["*"]}},"/v1/notes/search":{"get":{"operationId":"notes_searchNotes","parameters":[{"name":"q","required":true,"in":"query","schema":{"type":"string"}}],"responses":{"200":{"description":""},"400":{"$ref":"#/components/responses/BadRequest"},"401":{"$ref":"#/components/responses/Unauthorized"},"403":{"$ref":"#/components/responses/Forbidden"},"429":{"$ref":"#/components/responses/TooManyRequests"},"500":{"$ref":"#/components/responses/ServerError"}},"security":[{"JWT":[]},{"ApiKey":[]}],"tags":["Notes"],"summary":"Search notes","x-api-key-scopes":["*"]}},"/v1/notes/{id}":{"get":{"operationId":"notes_getNote","parameters":[{"name":"id","required":true,"in":"path","schema":{"type":"string"}}],"responses":{"200":{"description":""},"400":{"$ref":"#/components/responses/BadRequest"},"401":{"$ref":"#/components/responses/Unauthorized"},"403":{"$ref":"#/components/responses/Forbidden"},"404":{"$ref":"#/components/responses/NotFound"},"429":{"$ref":"#/components/responses/TooManyRequests"},"500":{"$ref":"#/components/responses/ServerError"}},"security":[{"JWT":[]},{"ApiKey":[]}],"tags":["Notes"],"summary":"Get note","x-api-key-scopes":["*"]},"patch":{"operationId":"notes_updateNote","parameters":[{"name":"id","required":true,"in":"path","schema":{"type":"string"}},{"$ref":"#/components/parameters/IdempotencyKey"}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/UpdateNoteBody"}}}},"responses":{"200":{"description":""},"400":{"$ref":"#/components/responses/BadRequest"},"401":{"$ref":"#/components/responses/Unauthorized"},"403":{"$ref":"#/components/responses/Forbidden"},"404":{"$ref":"#/components/responses/NotFound"},"409":{"$ref":"#/components/responses/Conflict"},"429":{"$ref":"#/components/responses/TooManyRequests"},"500":{"$ref":"#/components/responses/ServerError"}},"security":[{"JWT":[]},{"ApiKey":[]}],"tags":["Notes"],"summary":"Update note","x-api-key-scopes":["*"]},"delete":{"operationId":"notes_deleteNote","parameters":[{"name":"id","required":true,"in":"path","schema":{"type":"string"}}],"responses":{"200":{"description":""},"400":{"$ref":"#/components/responses/BadRequest"},"401":{"$ref":"#/components/responses/Unauthorized"},"403":{"$ref":"#/components/responses/Forbidden"},"404":{"$ref":"#/components/responses/NotFound"},"429":{"$ref":"#/components/responses/TooManyRequests"},"500":{"$ref":"#/components/responses/ServerError"}},"security":[{"JWT":[]},{"ApiKey":[]}],"tags":["Notes"],"summary":"Delete note","x-api-key-scopes":["*"]}},"/v1/notes/voice":{"post":{"operationId":"notes_createVoiceNote","parameters":[{"$ref":"#/components/parameters/IdempotencyKey"}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/CreateVoiceNoteBody"}}}},"responses":{"201":{"description":""},"400":{"$ref":"#/components/responses/BadRequest"},"401":{"$ref":"#/components/responses/Unauthorized"},"403":{"$ref":"#/components/responses/Forbidden"},"409":{"$ref":"#/components/responses/Conflict"},"429":{"$ref":"#/components/responses/TooManyRequests"},"500":{"$ref":"#/components/responses/ServerError"}},"security":[{"JWT":[]},{"ApiKey":[]}],"tags":["Notes"],"summary":"Create voice note","x-api-key-scopes":["*"]}},"/v1/notes/{id}/process":{"post":{"operationId":"notes_processNote","parameters":[{"name":"id","required":true,"in":"path","schema":{"type":"string"}},{"$ref":"#/components/parameters/IdempotencyKey"}],"responses":{"201":{"description":""},"400":{"$ref":"#/components/responses/BadRequest"},"401":{"$ref":"#/components/responses/Unauthorized"},"403":{"$ref":"#/components/responses/Forbidden"},"404":{"$ref":"#/components/responses/NotFound"},"409":{"$ref":"#/components/responses/Conflict"},"429":{"$ref":"#/components/responses/TooManyRequests"},"500":{"$ref":"#/components/responses/ServerError"}},"security":[{"JWT":[]},{"ApiKey":[]}],"summary":"Process a note with AI to extract insights and generate actions","tags":["Notes"],"x-api-key-scopes":["*"]}},"/v1/notes/{id}/reprocess":{"post":{"operationId":"notes_reprocessNote","parameters":[{"name":"id","required":true,"in":"path","schema":{"type":"string"}},{"$ref":"#/components/parameters/IdempotencyKey"}],"responses":{"201":{"description":""},"400":{"$ref":"#/components/responses/BadRequest"},"401":{"$ref":"#/components/responses/Unauthorized"},"403":{"$ref":"#/components/responses/Forbidden"},"404":{"$ref":"#/components/responses/NotFound"},"409":{"$ref":"#/components/responses/Conflict"},"429":{"$ref":"#/components/responses/TooManyRequests"},"500":{"$ref":"#/components/responses/ServerError"}},"security":[{"JWT":[]},{"ApiKey":[]}],"summary":"Re-process a note (clears pending actions and re-runs AI)","tags":["Notes"],"x-api-key-scopes":["*"]}},"/v1/notes/{id}/extraction":{"get":{"operationId":"notes_getExtractionResults","parameters":[{"name":"id","required":true,"in":"path","schema":{"type":"string"}}],"responses":{"200":{"description":"","content":{"application/json":{"schema":{"type":"object"}}}},"400":{"$ref":"#/components/responses/BadRequest"},"401":{"$ref":"#/components/responses/Unauthorized"},"403":{"$ref":"#/components/responses/Forbidden"},"404":{"$ref":"#/components/responses/NotFound"},"429":{"$ref":"#/components/responses/TooManyRequests"},"500":{"$ref":"#/components/responses/ServerError"}},"security":[{"JWT":[]},{"ApiKey":[]}],"summary":"Get AI extraction results for a note","tags":["Notes"],"x-api-key-scopes":["*"]}},"/v1/notes/actions/pending":{"get":{"operationId":"notes_getUserPendingActions","parameters":[{"name":"status","required":false,"in":"query","schema":{"type":"string"}},{"name":"type","required":false,"in":"query","schema":{"type":"string"}},{"name":"limit","required":false,"in":"query","schema":{"type":"string"}}],"responses":{"200":{"description":""},"400":{"$ref":"#/components/responses/BadRequest"},"401":{"$ref":"#/components/responses/Unauthorized"},"403":{"$ref":"#/components/responses/Forbidden"},"429":{"$ref":"#/components/responses/TooManyRequests"},"500":{"$ref":"#/components/responses/ServerError"}},"security":[{"JWT":[]},{"ApiKey":[]}],"tags":["Notes"],"summary":"Get user pending actions","x-api-key-scopes":["*"]}},"/v1/notes/actions/stats":{"get":{"operationId":"notes_getActionStats","parameters":[],"responses":{"200":{"description":""},"401":{"$ref":"#/components/responses/Unauthorized"},"403":{"$ref":"#/components/responses/Forbidden"},"429":{"$ref":"#/components/responses/TooManyRequests"},"500":{"$ref":"#/components/responses/ServerError"}},"security":[{"JWT":[]},{"ApiKey":[]}],"summary":"Get action statistics for current user","tags":["Notes"],"x-api-key-scopes":["*"]}},"/v1/notes/{id}/pending-actions":{"get":{"operationId":"notes_getPendingActionsForNote","parameters":[{"name":"id","required":true,"in":"path","schema":{"type":"string"}}],"responses":{"200":{"description":""},"400":{"$ref":"#/components/responses/BadRequest"},"401":{"$ref":"#/components/responses/Unauthorized"},"403":{"$ref":"#/components/responses/Forbidden"},"404":{"$ref":"#/components/responses/NotFound"},"429":{"$ref":"#/components/responses/TooManyRequests"},"500":{"$ref":"#/components/responses/ServerError"}},"security":[{"JWT":[]},{"ApiKey":[]}],"summary":"Get pending actions for a specific note","tags":["Notes"],"x-api-key-scopes":["*"]}},"/v1/notes/actions/{actionId}/approve":{"post":{"operationId":"notes_approveAction","parameters":[{"name":"actionId","required":true,"in":"path","schema":{"type":"string"}},{"$ref":"#/components/parameters/IdempotencyKey"}],"responses":{"201":{"description":""},"400":{"$ref":"#/components/responses/BadRequest"},"401":{"$ref":"#/components/responses/Unauthorized"},"403":{"$ref":"#/components/responses/Forbidden"},"404":{"$ref":"#/components/responses/NotFound"},"409":{"$ref":"#/components/responses/Conflict"},"429":{"$ref":"#/components/responses/TooManyRequests"},"500":{"$ref":"#/components/responses/ServerError"}},"security":[{"JWT":[]},{"ApiKey":[]}],"summary":"Approve a single action","tags":["Notes"],"x-api-key-scopes":["*"]}},"/v1/notes/actions/{actionId}/reject":{"post":{"operationId":"notes_rejectAction","parameters":[{"name":"actionId","required":true,"in":"path","schema":{"type":"string"}},{"$ref":"#/components/parameters/IdempotencyKey"}],"responses":{"201":{"description":""},"400":{"$ref":"#/components/responses/BadRequest"},"401":{"$ref":"#/components/responses/Unauthorized"},"403":{"$ref":"#/components/responses/Forbidden"},"404":{"$ref":"#/components/responses/NotFound"},"409":{"$ref":"#/components/responses/Conflict"},"429":{"$ref":"#/components/responses/TooManyRequests"},"500":{"$ref":"#/components/responses/ServerError"}},"security":[{"JWT":[]},{"ApiKey":[]}],"summary":"Reject a single action","tags":["Notes"],"x-api-key-scopes":["*"]}},"/v1/notes/actions/bulk":{"post":{"operationId":"notes_bulkProcessActions","parameters":[{"$ref":"#/components/parameters/IdempotencyKey"}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/BulkProcessActionsBody"}}}},"responses":{"201":{"description":""},"400":{"$ref":"#/components/responses/BadRequest"},"401":{"$ref":"#/components/responses/Unauthorized"},"403":{"$ref":"#/components/responses/Forbidden"},"409":{"$ref":"#/components/responses/Conflict"},"429":{"$ref":"#/components/responses/TooManyRequests"},"500":{"$ref":"#/components/responses/ServerError"}},"security":[{"JWT":[]},{"ApiKey":[]}],"summary":"Bulk approve/reject actions","tags":["Notes"],"x-api-key-scopes":["*"]}},"/v1/digital-workers/signals":{"get":{"operationId":"digitalWorkers_getSignals","parameters":[{"name":"accountId","required":false,"in":"query","schema":{"type":"string"}},{"name":"status","required":false,"in":"query","schema":{"type":"string","enum":["PENDING","EXPIRED","DISMISSED","ACKNOWLEDGED","ACTIONED"]}},{"name":"priority","required":false,"in":"query","schema":{"type":"string","enum":["HIGH","MEDIUM","LOW","CRITICAL"]}},{"name":"signalTypes","required":false,"in":"query","schema":{"type":"array","items":{"type":"string","enum":["COMPETITIVE_THREAT","EXPANSION","EXEC_CHANGE","FUNDING","NEWS","USAGE_SPIKE","USAGE_DECLINE","ENGAGEMENT_SPIKE","ENGAGEMENT_DECLINE","TECH_CHANGE","CONTRACT_RENEWAL","BUDGET_CYCLE"]}}},{"name":"timeframe","required":false,"in":"query","schema":{"type":"string","enum":["24h","7d","30d","90d"]}},{"name":"limit","required":false,"in":"query","schema":{"minimum":1,"maximum":100,"type":"number"}},{"name":"offset","required":false,"in":"query","schema":{"minimum":0,"type":"number"}}],"responses":{"200":{"description":"","content":{"application/json":{"schema":{"type":"array","items":{"$ref":"#/components/schemas/SignalResponse"}}}}},"400":{"$ref":"#/components/responses/BadRequest"},"401":{"$ref":"#/components/responses/Unauthorized"},"403":{"$ref":"#/components/responses/Forbidden"},"429":{"$ref":"#/components/responses/TooManyRequests"},"500":{"$ref":"#/components/responses/ServerError"}},"security":[{"JWT":[]},{"ApiKey":[]}],"tags":["Digital Workers"],"summary":"Get signals","x-api-key-scopes":["*"]},"post":{"operationId":"digitalWorkers_createSignal","parameters":[{"$ref":"#/components/parameters/IdempotencyKey"}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/CreateSignalDto"}}}},"responses":{"201":{"description":"","content":{"application/json":{"schema":{"$ref":"#/components/schemas/SignalResponse"}}}},"400":{"$ref":"#/components/responses/BadRequest"},"401":{"$ref":"#/components/responses/Unauthorized"},"403":{"$ref":"#/components/responses/Forbidden"},"409":{"$ref":"#/components/responses/Conflict"},"429":{"$ref":"#/components/responses/TooManyRequests"},"500":{"$ref":"#/components/responses/ServerError"}},"security":[{"JWT":[]},{"ApiKey":[]}],"summary":"Create a new signal (manual entry)","tags":["Digital Workers"],"x-api-key-scopes":["*"]}},"/v1/digital-workers/signals/summary":{"get":{"operationId":"digitalWorkers_getSignalsSummary","parameters":[],"responses":{"200":{"description":"","content":{"application/json":{"schema":{"$ref":"#/components/schemas/SignalsSummary"}}}},"401":{"$ref":"#/components/responses/Unauthorized"},"403":{"$ref":"#/components/responses/Forbidden"},"429":{"$ref":"#/components/responses/TooManyRequests"},"500":{"$ref":"#/components/responses/ServerError"}},"security":[{"JWT":[]},{"ApiKey":[]}],"summary":"Get signals summary/stats","tags":["Digital Workers"],"x-api-key-scopes":["*"]}},"/v1/digital-workers/signals/{id}":{"get":{"operationId":"digitalWorkers_getSignalById","parameters":[{"name":"id","required":true,"in":"path","schema":{"type":"string"}}],"responses":{"200":{"description":"","content":{"application/json":{"schema":{"$ref":"#/components/schemas/SignalResponse"}}}},"400":{"$ref":"#/components/responses/BadRequest"},"401":{"$ref":"#/components/responses/Unauthorized"},"403":{"$ref":"#/components/responses/Forbidden"},"404":{"$ref":"#/components/responses/NotFound"},"429":{"$ref":"#/components/responses/TooManyRequests"},"500":{"$ref":"#/components/responses/ServerError"}},"security":[{"JWT":[]},{"ApiKey":[]}],"summary":"Get a single signal by ID","tags":["Digital Workers"],"x-api-key-scopes":["*"]}},"/v1/digital-workers/signals/{id}/acknowledge":{"patch":{"operationId":"digitalWorkers_acknowledgeSignal","parameters":[{"name":"id","required":true,"in":"path","schema":{"type":"string"}},{"$ref":"#/components/parameters/IdempotencyKey"}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/AcknowledgeSignalDto"}}}},"responses":{"200":{"description":"","content":{"application/json":{"schema":{"$ref":"#/components/schemas/SignalResponse"}}}},"400":{"$ref":"#/components/responses/BadRequest"},"401":{"$ref":"#/components/responses/Unauthorized"},"403":{"$ref":"#/components/responses/Forbidden"},"404":{"$ref":"#/components/responses/NotFound"},"409":{"$ref":"#/components/responses/Conflict"},"429":{"$ref":"#/components/responses/TooManyRequests"},"500":{"$ref":"#/components/responses/ServerError"}},"security":[{"JWT":[]},{"ApiKey":[]}],"summary":"Acknowledge, action, or dismiss a signal","tags":["Digital Workers"],"x-api-key-scopes":["*"]}},"/v1/digital-workers/signals/{id}/recommend":{"get":{"operationId":"digitalWorkers_getSignalRecommendation","parameters":[{"name":"id","required":true,"in":"path","schema":{"type":"string"}}],"responses":{"200":{"description":"","content":{"application/json":{"schema":{"$ref":"#/components/schemas/SignalRecommendationResponse"}}}},"400":{"$ref":"#/components/responses/BadRequest"},"401":{"$ref":"#/components/responses/Unauthorized"},"403":{"$ref":"#/components/responses/Forbidden"},"404":{"$ref":"#/components/responses/NotFound"},"429":{"$ref":"#/components/responses/TooManyRequests"},"500":{"$ref":"#/components/responses/ServerError"}},"security":[{"JWT":[]},{"ApiKey":[]}],"summary":"Get AI recommendation for a signal","tags":["Digital Workers"],"x-api-key-scopes":["*"]}},"/v1/digital-workers/recommendations/{id}/execute":{"post":{"operationId":"digitalWorkers_executeRecommendation","parameters":[{"name":"id","required":true,"in":"path","schema":{"type":"string"}},{"$ref":"#/components/parameters/IdempotencyKey"}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ExecuteRecommendationDto"}}}},"responses":{"201":{"description":""},"400":{"$ref":"#/components/responses/BadRequest"},"401":{"$ref":"#/components/responses/Unauthorized"},"403":{"$ref":"#/components/responses/Forbidden"},"404":{"$ref":"#/components/responses/NotFound"},"409":{"$ref":"#/components/responses/Conflict"},"429":{"$ref":"#/components/responses/TooManyRequests"},"500":{"$ref":"#/components/responses/ServerError"}},"security":[{"JWT":[]},{"ApiKey":[]}],"summary":"Execute a recommendation","tags":["Digital Workers"],"x-api-key-scopes":["*"]}},"/v1/digital-workers/signals/detect":{"post":{"operationId":"digitalWorkers_detectSignals","parameters":[{"$ref":"#/components/parameters/IdempotencyKey"}],"responses":{"201":{"description":""},"400":{"$ref":"#/components/responses/BadRequest"},"401":{"$ref":"#/components/responses/Unauthorized"},"403":{"$ref":"#/components/responses/Forbidden"},"409":{"$ref":"#/components/responses/Conflict"},"429":{"$ref":"#/components/responses/TooManyRequests"},"500":{"$ref":"#/components/responses/ServerError"}},"security":[{"JWT":[]},{"ApiKey":[]}],"summary":"Trigger signal detection (manual scan)","tags":["Digital Workers"],"x-api-key-scopes":["*"]}},"/v1/digital-workers/coaching/agenda/generate":{"post":{"operationId":"digitalWorkers_generateCoachingAgenda","parameters":[{"$ref":"#/components/parameters/IdempotencyKey"}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/GenerateCoachingAgendaDto"}}}},"responses":{"201":{"description":"","content":{"application/json":{"schema":{"$ref":"#/components/schemas/CoachingAgendaResponse"}}}},"400":{"$ref":"#/components/responses/BadRequest"},"401":{"$ref":"#/components/responses/Unauthorized"},"403":{"$ref":"#/components/responses/Forbidden"},"409":{"$ref":"#/components/responses/Conflict"},"429":{"$ref":"#/components/responses/TooManyRequests"},"500":{"$ref":"#/components/responses/ServerError"}},"security":[{"JWT":[]},{"ApiKey":[]}],"tags":["Digital Workers"],"summary":"Generate coaching agenda","x-api-key-scopes":["*"]}},"/v1/digital-workers/coaching/agenda":{"get":{"operationId":"digitalWorkers_getCoachingAgendas","parameters":[{"name":"repId","required":false,"in":"query","schema":{"type":"string"}},{"name":"status","required":false,"in":"query","schema":{"type":"string","enum":["DRAFT","COMPLETED","CANCELLED","SCHEDULED","IN_PROGRESS"]}},{"name":"limit","required":false,"in":"query","schema":{"type":"number"}},{"name":"offset","required":false,"in":"query","schema":{"type":"number"}}],"responses":{"200":{"description":"","content":{"application/json":{"schema":{"type":"array","items":{"$ref":"#/components/schemas/CoachingAgendaResponse"}}}}},"400":{"$ref":"#/components/responses/BadRequest"},"401":{"$ref":"#/components/responses/Unauthorized"},"403":{"$ref":"#/components/responses/Forbidden"},"429":{"$ref":"#/components/responses/TooManyRequests"},"500":{"$ref":"#/components/responses/ServerError"}},"security":[{"JWT":[]},{"ApiKey":[]}],"summary":"Get coaching agendas (history) — the caller's own, for reps in their org.","tags":["Digital Workers"],"x-api-key-scopes":["*"]}},"/v1/digital-workers/coaching/agenda/{id}":{"get":{"operationId":"digitalWorkers_getCoachingAgendaById","parameters":[{"name":"id","required":true,"in":"path","schema":{"type":"string"}}],"responses":{"200":{"description":"","content":{"application/json":{"schema":{"$ref":"#/components/schemas/CoachingAgendaResponse"}}}},"400":{"$ref":"#/components/responses/BadRequest"},"401":{"$ref":"#/components/responses/Unauthorized"},"403":{"$ref":"#/components/responses/Forbidden"},"404":{"$ref":"#/components/responses/NotFound"},"429":{"$ref":"#/components/responses/TooManyRequests"},"500":{"$ref":"#/components/responses/ServerError"}},"security":[{"JWT":[]},{"ApiKey":[]}],"summary":"Get a single coaching agenda by ID","tags":["Digital Workers"],"x-api-key-scopes":["*"]},"patch":{"operationId":"digitalWorkers_updateCoachingAgenda","parameters":[{"name":"id","required":true,"in":"path","schema":{"type":"string"}},{"$ref":"#/components/parameters/IdempotencyKey"}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/UpdateCoachingAgendaDto"}}}},"responses":{"200":{"description":"","content":{"application/json":{"schema":{"$ref":"#/components/schemas/CoachingAgendaResponse"}}}},"400":{"$ref":"#/components/responses/BadRequest"},"401":{"$ref":"#/components/responses/Unauthorized"},"403":{"$ref":"#/components/responses/Forbidden"},"404":{"$ref":"#/components/responses/NotFound"},"409":{"$ref":"#/components/responses/Conflict"},"429":{"$ref":"#/components/responses/TooManyRequests"},"500":{"$ref":"#/components/responses/ServerError"}},"security":[{"JWT":[]},{"ApiKey":[]}],"summary":"Update a coaching agenda","tags":["Digital Workers"],"x-api-key-scopes":["*"]}},"/v1/digital-workers/coaching/sessions/{id}/analyze-playbook":{"post":{"operationId":"digitalWorkers_analyzePlaybookAlignment","parameters":[{"name":"id","required":true,"in":"path","schema":{"type":"string"}},{"$ref":"#/components/parameters/IdempotencyKey"}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/AnalyzePlaybookDto"}}}},"responses":{"201":{"description":"","content":{"application/json":{"schema":{"type":"object"}}}},"400":{"$ref":"#/components/responses/BadRequest"},"401":{"$ref":"#/components/responses/Unauthorized"},"403":{"$ref":"#/components/responses/Forbidden"},"404":{"$ref":"#/components/responses/NotFound"},"409":{"$ref":"#/components/responses/Conflict"},"429":{"$ref":"#/components/responses/TooManyRequests"},"500":{"$ref":"#/components/responses/ServerError"}},"security":[{"JWT":[]},{"ApiKey":[]}],"tags":["Digital Workers"],"summary":"Analyze playbook alignment","x-api-key-scopes":["*"]}},"/v1/digital-workers/coaching/sessions/{id}/key-moments":{"get":{"operationId":"digitalWorkers_getSessionKeyMoments","parameters":[{"name":"id","required":true,"in":"path","schema":{"type":"string"}}],"responses":{"200":{"description":"","content":{"application/json":{"schema":{"type":"array","items":{"type":"object"}}}}},"400":{"$ref":"#/components/responses/BadRequest"},"401":{"$ref":"#/components/responses/Unauthorized"},"403":{"$ref":"#/components/responses/Forbidden"},"404":{"$ref":"#/components/responses/NotFound"},"429":{"$ref":"#/components/responses/TooManyRequests"},"500":{"$ref":"#/components/responses/ServerError"}},"security":[{"JWT":[]},{"ApiKey":[]}],"summary":"Get key moments from a coaching session","tags":["Digital Workers"],"x-api-key-scopes":["*"]}},"/v1/digital-workers/coaching/sessions/compare":{"post":{"operationId":"digitalWorkers_compareSessions","parameters":[{"$ref":"#/components/parameters/IdempotencyKey"}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/CompareSessionsDto"}}}},"responses":{"201":{"description":"","content":{"application/json":{"schema":{"type":"object"}}}},"400":{"$ref":"#/components/responses/BadRequest"},"401":{"$ref":"#/components/responses/Unauthorized"},"403":{"$ref":"#/components/responses/Forbidden"},"409":{"$ref":"#/components/responses/Conflict"},"429":{"$ref":"#/components/responses/TooManyRequests"},"500":{"$ref":"#/components/responses/ServerError"}},"security":[{"JWT":[]},{"ApiKey":[]}],"summary":"Compare two coaching sessions","tags":["Digital Workers"],"x-api-key-scopes":["*"]}},"/v1/digital-workers/team":{"get":{"operationId":"digitalWorkers_getTeamMembers","parameters":[],"responses":{"200":{"description":""},"401":{"$ref":"#/components/responses/Unauthorized"},"403":{"$ref":"#/components/responses/Forbidden"},"429":{"$ref":"#/components/responses/TooManyRequests"},"500":{"$ref":"#/components/responses/ServerError"}},"security":[{"JWT":[]},{"ApiKey":[]}],"tags":["Digital Workers"],"summary":"Get team members","x-api-key-scopes":["*"]}},"/v1/digital-workers/playbooks":{"get":{"operationId":"digitalWorkers_getPlaybooks","parameters":[],"responses":{"200":{"description":"","content":{"application/json":{"schema":{"type":"object"}}}},"401":{"$ref":"#/components/responses/Unauthorized"},"403":{"$ref":"#/components/responses/Forbidden"},"429":{"$ref":"#/components/responses/TooManyRequests"},"500":{"$ref":"#/components/responses/ServerError"}},"security":[{"JWT":[]},{"ApiKey":[]}],"tags":["Digital Workers"],"summary":"Get playbooks","x-api-key-scopes":["*"]}},"/v1/pipelines":{"get":{"operationId":"pipelines_findAll","parameters":[],"responses":{"200":{"description":""},"401":{"$ref":"#/components/responses/Unauthorized"},"403":{"$ref":"#/components/responses/Forbidden"},"429":{"$ref":"#/components/responses/TooManyRequests"},"500":{"$ref":"#/components/responses/ServerError"}},"security":[{"JWT":[]},{"ApiKey":[]}],"summary":"Get all pipelines","tags":["Pipelines"],"x-api-key-scopes":["*"]},"post":{"operationId":"pipelines_create","parameters":[{"$ref":"#/components/parameters/IdempotencyKey"}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/CreatePipelineDto"}}}},"responses":{"201":{"description":"","content":{"application/json":{"schema":{"type":"object"}}}},"400":{"$ref":"#/components/responses/BadRequest"},"401":{"$ref":"#/components/responses/Unauthorized"},"403":{"$ref":"#/components/responses/Forbidden"},"409":{"$ref":"#/components/responses/Conflict"},"429":{"$ref":"#/components/responses/TooManyRequests"},"500":{"$ref":"#/components/responses/ServerError"}},"security":[{"JWT":[]},{"ApiKey":[]}],"summary":"Create a new pipeline","tags":["Pipelines"],"x-api-key-scopes":["*"]}},"/v1/pipelines/default":{"get":{"operationId":"pipelines_findDefault","parameters":[],"responses":{"200":{"description":"","content":{"application/json":{"schema":{"type":"object"}}}},"401":{"$ref":"#/components/responses/Unauthorized"},"403":{"$ref":"#/components/responses/Forbidden"},"429":{"$ref":"#/components/responses/TooManyRequests"},"500":{"$ref":"#/components/responses/ServerError"}},"security":[{"JWT":[]},{"ApiKey":[]}],"summary":"Get the default pipeline","tags":["Pipelines"],"x-api-key-scopes":["*"]}},"/v1/pipelines/meta/required-fields":{"get":{"operationId":"pipelines_requiredFieldOptions","parameters":[],"responses":{"200":{"description":""},"401":{"$ref":"#/components/responses/Unauthorized"},"403":{"$ref":"#/components/responses/Forbidden"},"429":{"$ref":"#/components/responses/TooManyRequests"},"500":{"$ref":"#/components/responses/ServerError"}},"security":[{"JWT":[]},{"ApiKey":[]}],"summary":"Fields a stage may require to enter it (static allow-list; before `:id`).","tags":["Pipelines"],"x-api-key-scopes":["*"]}},"/v1/pipelines/{id}":{"get":{"operationId":"pipelines_findById","parameters":[{"name":"id","required":true,"in":"path","schema":{"type":"string"}}],"responses":{"200":{"description":"","content":{"application/json":{"schema":{"type":"object"}}}},"400":{"$ref":"#/components/responses/BadRequest"},"401":{"$ref":"#/components/responses/Unauthorized"},"403":{"$ref":"#/components/responses/Forbidden"},"404":{"$ref":"#/components/responses/NotFound"},"429":{"$ref":"#/components/responses/TooManyRequests"},"500":{"$ref":"#/components/responses/ServerError"}},"security":[{"JWT":[]},{"ApiKey":[]}],"summary":"Get a single pipeline by ID","tags":["Pipelines"],"x-api-key-scopes":["*"]},"patch":{"operationId":"pipelines_update","parameters":[{"name":"id","required":true,"in":"path","schema":{"type":"string"}},{"$ref":"#/components/parameters/IdempotencyKey"}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/UpdatePipelineDto"}}}},"responses":{"200":{"description":"","content":{"application/json":{"schema":{"type":"object"}}}},"400":{"$ref":"#/components/responses/BadRequest"},"401":{"$ref":"#/components/responses/Unauthorized"},"403":{"$ref":"#/components/responses/Forbidden"},"404":{"$ref":"#/components/responses/NotFound"},"409":{"$ref":"#/components/responses/Conflict"},"429":{"$ref":"#/components/responses/TooManyRequests"},"500":{"$ref":"#/components/responses/ServerError"}},"security":[{"JWT":[]},{"ApiKey":[]}],"summary":"Update a pipeline","tags":["Pipelines"],"x-api-key-scopes":["*"]},"delete":{"operationId":"pipelines_delete","parameters":[{"name":"id","required":true,"in":"path","schema":{"type":"string"}}],"responses":{"204":{"description":""},"400":{"$ref":"#/components/responses/BadRequest"},"401":{"$ref":"#/components/responses/Unauthorized"},"403":{"$ref":"#/components/responses/Forbidden"},"404":{"$ref":"#/components/responses/NotFound"},"429":{"$ref":"#/components/responses/TooManyRequests"},"500":{"$ref":"#/components/responses/ServerError"}},"security":[{"JWT":[]},{"ApiKey":[]}],"summary":"Delete a pipeline","tags":["Pipelines"],"x-api-key-scopes":["*"]}},"/v1/pipelines/{id}/set-default":{"post":{"operationId":"pipelines_setDefault","parameters":[{"name":"id","required":true,"in":"path","schema":{"type":"string"}},{"$ref":"#/components/parameters/IdempotencyKey"}],"responses":{"201":{"description":"","content":{"application/json":{"schema":{"type":"object"}}}},"400":{"$ref":"#/components/responses/BadRequest"},"401":{"$ref":"#/components/responses/Unauthorized"},"403":{"$ref":"#/components/responses/Forbidden"},"404":{"$ref":"#/components/responses/NotFound"},"409":{"$ref":"#/components/responses/Conflict"},"429":{"$ref":"#/components/responses/TooManyRequests"},"500":{"$ref":"#/components/responses/ServerError"}},"security":[{"JWT":[]},{"ApiKey":[]}],"summary":"Set a pipeline as the default","tags":["Pipelines"],"x-api-key-scopes":["*"]}},"/v1/pipelines/{id}/duplicate":{"post":{"operationId":"pipelines_duplicate","parameters":[{"name":"id","required":true,"in":"path","schema":{"type":"string"}},{"$ref":"#/components/parameters/IdempotencyKey"}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/DuplicatePipelineDto"}}}},"responses":{"201":{"description":"","content":{"application/json":{"schema":{"type":"object"}}}},"400":{"$ref":"#/components/responses/BadRequest"},"401":{"$ref":"#/components/responses/Unauthorized"},"403":{"$ref":"#/components/responses/Forbidden"},"404":{"$ref":"#/components/responses/NotFound"},"409":{"$ref":"#/components/responses/Conflict"},"429":{"$ref":"#/components/responses/TooManyRequests"},"500":{"$ref":"#/components/responses/ServerError"}},"security":[{"JWT":[]},{"ApiKey":[]}],"summary":"Duplicate a pipeline","tags":["Pipelines"],"x-api-key-scopes":["*"]}},"/v1/pipelines/{pipelineId}/stages":{"post":{"operationId":"pipelines_createStage","parameters":[{"name":"pipelineId","required":true,"in":"path","schema":{"type":"string"}},{"$ref":"#/components/parameters/IdempotencyKey"}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/CreatePipelineStageDto"}}}},"responses":{"201":{"description":""},"400":{"$ref":"#/components/responses/BadRequest"},"401":{"$ref":"#/components/responses/Unauthorized"},"403":{"$ref":"#/components/responses/Forbidden"},"404":{"$ref":"#/components/responses/NotFound"},"409":{"$ref":"#/components/responses/Conflict"},"429":{"$ref":"#/components/responses/TooManyRequests"},"500":{"$ref":"#/components/responses/ServerError"}},"security":[{"JWT":[]},{"ApiKey":[]}],"tags":["Pipelines"],"summary":"Create stage","x-api-key-scopes":["*"]}},"/v1/pipelines/{pipelineId}/stages/{stageId}":{"patch":{"operationId":"pipelines_updateStage","parameters":[{"name":"pipelineId","required":true,"in":"path","schema":{"type":"string"}},{"name":"stageId","required":true,"in":"path","schema":{"type":"string"}},{"$ref":"#/components/parameters/IdempotencyKey"}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/UpdatePipelineStageDto"}}}},"responses":{"200":{"description":""},"400":{"$ref":"#/components/responses/BadRequest"},"401":{"$ref":"#/components/responses/Unauthorized"},"403":{"$ref":"#/components/responses/Forbidden"},"404":{"$ref":"#/components/responses/NotFound"},"409":{"$ref":"#/components/responses/Conflict"},"429":{"$ref":"#/components/responses/TooManyRequests"},"500":{"$ref":"#/components/responses/ServerError"}},"security":[{"JWT":[]},{"ApiKey":[]}],"summary":"Update a stage","tags":["Pipelines"],"x-api-key-scopes":["*"]},"delete":{"operationId":"pipelines_deleteStage","parameters":[{"name":"pipelineId","required":true,"in":"path","schema":{"type":"string"}},{"name":"stageId","required":true,"in":"path","schema":{"type":"string"}}],"responses":{"204":{"description":""},"400":{"$ref":"#/components/responses/BadRequest"},"401":{"$ref":"#/components/responses/Unauthorized"},"403":{"$ref":"#/components/responses/Forbidden"},"404":{"$ref":"#/components/responses/NotFound"},"429":{"$ref":"#/components/responses/TooManyRequests"},"500":{"$ref":"#/components/responses/ServerError"}},"security":[{"JWT":[]},{"ApiKey":[]}],"summary":"Delete a stage","tags":["Pipelines"],"x-api-key-scopes":["*"]}},"/v1/pipelines/{pipelineId}/stages/reorder":{"post":{"operationId":"pipelines_reorderStages","parameters":[{"name":"pipelineId","required":true,"in":"path","schema":{"type":"string"}},{"$ref":"#/components/parameters/IdempotencyKey"}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ReorderStagesDto"}}}},"responses":{"201":{"description":""},"400":{"$ref":"#/components/responses/BadRequest"},"401":{"$ref":"#/components/responses/Unauthorized"},"403":{"$ref":"#/components/responses/Forbidden"},"404":{"$ref":"#/components/responses/NotFound"},"409":{"$ref":"#/components/responses/Conflict"},"429":{"$ref":"#/components/responses/TooManyRequests"},"500":{"$ref":"#/components/responses/ServerError"}},"security":[{"JWT":[]},{"ApiKey":[]}],"summary":"Reorder stages in a pipeline","tags":["Pipelines"],"x-api-key-scopes":["*"]}},"/v1/products":{"post":{"operationId":"products_create","parameters":[{"$ref":"#/components/parameters/IdempotencyKey"}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/CreateProductDto"}}}},"responses":{"201":{"description":"Product","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Product"}}}},"400":{"$ref":"#/components/responses/BadRequest"},"401":{"$ref":"#/components/responses/Unauthorized"},"403":{"$ref":"#/components/responses/Forbidden"},"409":{"$ref":"#/components/responses/Conflict"},"429":{"$ref":"#/components/responses/TooManyRequests"},"500":{"$ref":"#/components/responses/ServerError"}},"security":[{"JWT":[]},{"ApiKey":[]}],"tags":["Products"],"summary":"Create","x-api-key-scopes":["WRITE_PRODUCTS"]},"get":{"operationId":"products_findAll","parameters":[{"name":"type","required":false,"in":"query","schema":{"type":"string"}},{"name":"category","required":false,"in":"query","schema":{"type":"string"}},{"name":"isActive","required":false,"in":"query","schema":{"type":"string"}},{"name":"search","required":false,"in":"query","schema":{"type":"string"}}],"responses":{"200":{"description":"ProductList","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ProductList"}}}},"400":{"$ref":"#/components/responses/BadRequest"},"401":{"$ref":"#/components/responses/Unauthorized"},"403":{"$ref":"#/components/responses/Forbidden"},"429":{"$ref":"#/components/responses/TooManyRequests"},"500":{"$ref":"#/components/responses/ServerError"}},"security":[{"JWT":[]},{"ApiKey":[]}],"tags":["Products"],"summary":"List","x-api-key-scopes":["READ_PRODUCTS"]}},"/v1/products/stats":{"get":{"operationId":"products_getStats","parameters":[],"responses":{"200":{"description":""},"401":{"$ref":"#/components/responses/Unauthorized"},"403":{"$ref":"#/components/responses/Forbidden"},"429":{"$ref":"#/components/responses/TooManyRequests"},"500":{"$ref":"#/components/responses/ServerError"}},"security":[{"JWT":[]},{"ApiKey":[]}],"tags":["Products"],"summary":"Get stats","x-api-key-scopes":["READ_PRODUCTS"]}},"/v1/products/{id}":{"get":{"operationId":"products_findOne","parameters":[{"name":"id","required":true,"in":"path","schema":{"type":"string"}}],"responses":{"200":{"description":"Product","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Product"}}}},"400":{"$ref":"#/components/responses/BadRequest"},"401":{"$ref":"#/components/responses/Unauthorized"},"403":{"$ref":"#/components/responses/Forbidden"},"404":{"$ref":"#/components/responses/NotFound"},"429":{"$ref":"#/components/responses/TooManyRequests"},"500":{"$ref":"#/components/responses/ServerError"}},"security":[{"JWT":[]},{"ApiKey":[]}],"tags":["Products"],"summary":"Find one","x-api-key-scopes":["READ_PRODUCTS"]},"patch":{"operationId":"products_update","parameters":[{"name":"id","required":true,"in":"path","schema":{"type":"string"}},{"$ref":"#/components/parameters/IdempotencyKey"}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/UpdateProductDto"}}}},"responses":{"200":{"description":"Product","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Product"}}}},"400":{"$ref":"#/components/responses/BadRequest"},"401":{"$ref":"#/components/responses/Unauthorized"},"403":{"$ref":"#/components/responses/Forbidden"},"404":{"$ref":"#/components/responses/NotFound"},"409":{"$ref":"#/components/responses/Conflict"},"429":{"$ref":"#/components/responses/TooManyRequests"},"500":{"$ref":"#/components/responses/ServerError"}},"security":[{"JWT":[]},{"ApiKey":[]}],"tags":["Products"],"summary":"Update","x-api-key-scopes":["WRITE_PRODUCTS"]},"delete":{"operationId":"products_remove","parameters":[{"name":"id","required":true,"in":"path","schema":{"type":"string"}}],"responses":{"200":{"description":""},"400":{"$ref":"#/components/responses/BadRequest"},"401":{"$ref":"#/components/responses/Unauthorized"},"403":{"$ref":"#/components/responses/Forbidden"},"404":{"$ref":"#/components/responses/NotFound"},"429":{"$ref":"#/components/responses/TooManyRequests"},"500":{"$ref":"#/components/responses/ServerError"}},"security":[{"JWT":[]},{"ApiKey":[]}],"tags":["Products"],"summary":"Remove","x-api-key-scopes":["WRITE_PRODUCTS"]}},"/v1/products/sku/{sku}":{"get":{"operationId":"products_findBySku","parameters":[{"name":"sku","required":true,"in":"path","schema":{"type":"string"}}],"responses":{"200":{"description":"","content":{"application/json":{"schema":{"type":"object"}}}},"400":{"$ref":"#/components/responses/BadRequest"},"401":{"$ref":"#/components/responses/Unauthorized"},"403":{"$ref":"#/components/responses/Forbidden"},"404":{"$ref":"#/components/responses/NotFound"},"429":{"$ref":"#/components/responses/TooManyRequests"},"500":{"$ref":"#/components/responses/ServerError"}},"security":[{"JWT":[]},{"ApiKey":[]}],"tags":["Products"],"summary":"Find by sku","x-api-key-scopes":["READ_PRODUCTS"]}},"/v1/products/bulk/update":{"post":{"operationId":"products_bulkUpdate","parameters":[{"$ref":"#/components/parameters/IdempotencyKey"}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/BulkUpdateBody"}}}},"responses":{"201":{"description":"","content":{"application/json":{"schema":{"type":"object"}}}},"400":{"$ref":"#/components/responses/BadRequest"},"401":{"$ref":"#/components/responses/Unauthorized"},"403":{"$ref":"#/components/responses/Forbidden"},"409":{"$ref":"#/components/responses/Conflict"},"429":{"$ref":"#/components/responses/TooManyRequests"},"500":{"$ref":"#/components/responses/ServerError"}},"security":[{"JWT":[]},{"ApiKey":[]}],"tags":["Products"],"summary":"Bulk update","x-api-key-scopes":["WRITE_PRODUCTS"]}},"/v1/products/bulk/delete":{"post":{"operationId":"products_bulkDelete","parameters":[{"$ref":"#/components/parameters/IdempotencyKey"}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/BulkDeleteBody"}}}},"responses":{"201":{"description":"","content":{"application/json":{"schema":{"type":"object"}}}},"400":{"$ref":"#/components/responses/BadRequest"},"401":{"$ref":"#/components/responses/Unauthorized"},"403":{"$ref":"#/components/responses/Forbidden"},"409":{"$ref":"#/components/responses/Conflict"},"429":{"$ref":"#/components/responses/TooManyRequests"},"500":{"$ref":"#/components/responses/ServerError"}},"security":[{"JWT":[]},{"ApiKey":[]}],"tags":["Products"],"summary":"Bulk delete","x-api-key-scopes":["WRITE_PRODUCTS"]}},"/v1/quota-forecast/quotas":{"post":{"operationId":"quotaForecast_setQuota","parameters":[{"$ref":"#/components/parameters/IdempotencyKey"}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/CreateQuotaDto"}}}},"responses":{"201":{"description":""},"400":{"$ref":"#/components/responses/BadRequest"},"401":{"$ref":"#/components/responses/Unauthorized"},"403":{"$ref":"#/components/responses/Forbidden"},"409":{"$ref":"#/components/responses/Conflict"},"429":{"$ref":"#/components/responses/TooManyRequests"},"500":{"$ref":"#/components/responses/ServerError"}},"security":[{"JWT":[]},{"ApiKey":[]}],"tags":["Quota & Forecast"],"summary":"Set quota","x-api-key-scopes":["*"]},"get":{"operationId":"quotaForecast_listQuotas","parameters":[{"name":"period","required":false,"in":"query","schema":{"type":"string"}},{"name":"periodType","required":false,"in":"query","schema":{"type":"string"}}],"responses":{"200":{"description":""},"400":{"$ref":"#/components/responses/BadRequest"},"401":{"$ref":"#/components/responses/Unauthorized"},"403":{"$ref":"#/components/responses/Forbidden"},"429":{"$ref":"#/components/responses/TooManyRequests"},"500":{"$ref":"#/components/responses/ServerError"}},"security":[{"JWT":[]},{"ApiKey":[]}],"tags":["Quota & Forecast"],"summary":"List quotas","x-api-key-scopes":["*"]}},"/v1/quota-forecast/quotas/bulk":{"post":{"operationId":"quotaForecast_bulkUpsert","parameters":[{"$ref":"#/components/parameters/IdempotencyKey"}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/BulkQuotaDto"}}}},"responses":{"201":{"description":""},"400":{"$ref":"#/components/responses/BadRequest"},"401":{"$ref":"#/components/responses/Unauthorized"},"403":{"$ref":"#/components/responses/Forbidden"},"409":{"$ref":"#/components/responses/Conflict"},"429":{"$ref":"#/components/responses/TooManyRequests"},"500":{"$ref":"#/components/responses/ServerError"}},"security":[{"JWT":[]},{"ApiKey":[]}],"tags":["Quota & Forecast"],"summary":"Bulk upsert","x-api-key-scopes":["*"]}},"/v1/quota-forecast/quotas/copy-previous":{"post":{"operationId":"quotaForecast_copyPrevious","parameters":[{"$ref":"#/components/parameters/IdempotencyKey"}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/CopyQuotasDto"}}}},"responses":{"201":{"description":""},"400":{"$ref":"#/components/responses/BadRequest"},"401":{"$ref":"#/components/responses/Unauthorized"},"403":{"$ref":"#/components/responses/Forbidden"},"409":{"$ref":"#/components/responses/Conflict"},"429":{"$ref":"#/components/responses/TooManyRequests"},"500":{"$ref":"#/components/responses/ServerError"}},"security":[{"JWT":[]},{"ApiKey":[]}],"tags":["Quota & Forecast"],"summary":"Copy previous","x-api-key-scopes":["*"]}},"/v1/quota-forecast/quotas/attainment":{"get":{"operationId":"quotaForecast_getAttainment","parameters":[{"name":"period","required":false,"in":"query","schema":{"type":"string"}},{"name":"periodType","required":false,"in":"query","schema":{"type":"string"}},{"name":"userId","required":false,"in":"query","schema":{"type":"string"}}],"responses":{"200":{"description":""},"400":{"$ref":"#/components/responses/BadRequest"},"401":{"$ref":"#/components/responses/Unauthorized"},"403":{"$ref":"#/components/responses/Forbidden"},"429":{"$ref":"#/components/responses/TooManyRequests"},"500":{"$ref":"#/components/responses/ServerError"}},"security":[{"JWT":[]},{"ApiKey":[]}],"tags":["Quota & Forecast"],"summary":"Get attainment","x-api-key-scopes":["*"]}},"/v1/quota-forecast/quotas/org-target":{"get":{"operationId":"quotaForecast_getOrgTarget","parameters":[{"name":"period","required":false,"in":"query","schema":{"type":"string"}},{"name":"periodType","required":false,"in":"query","schema":{"type":"string"}}],"responses":{"200":{"description":"","content":{"application/json":{"schema":{"type":"object"}}}},"400":{"$ref":"#/components/responses/BadRequest"},"401":{"$ref":"#/components/responses/Unauthorized"},"403":{"$ref":"#/components/responses/Forbidden"},"429":{"$ref":"#/components/responses/TooManyRequests"},"500":{"$ref":"#/components/responses/ServerError"}},"security":[{"JWT":[]},{"ApiKey":[]}],"tags":["Quota & Forecast"],"summary":"Get org target","x-api-key-scopes":["*"]}},"/v1/quota-forecast/quotas/{id}":{"delete":{"operationId":"quotaForecast_deleteQuota","parameters":[{"name":"id","required":true,"in":"path","schema":{"type":"string"}}],"responses":{"200":{"description":""},"400":{"$ref":"#/components/responses/BadRequest"},"401":{"$ref":"#/components/responses/Unauthorized"},"403":{"$ref":"#/components/responses/Forbidden"},"404":{"$ref":"#/components/responses/NotFound"},"429":{"$ref":"#/components/responses/TooManyRequests"},"500":{"$ref":"#/components/responses/ServerError"}},"security":[{"JWT":[]},{"ApiKey":[]}],"tags":["Quota & Forecast"],"summary":"Delete quota","x-api-key-scopes":["*"]}},"/v1/quota-forecast/forecasts/submit":{"post":{"operationId":"quotaForecast_submit","parameters":[{"$ref":"#/components/parameters/IdempotencyKey"}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/SubmitForecastDto"}}}},"responses":{"201":{"description":""},"400":{"$ref":"#/components/responses/BadRequest"},"401":{"$ref":"#/components/responses/Unauthorized"},"403":{"$ref":"#/components/responses/Forbidden"},"409":{"$ref":"#/components/responses/Conflict"},"429":{"$ref":"#/components/responses/TooManyRequests"},"500":{"$ref":"#/components/responses/ServerError"}},"security":[{"JWT":[]},{"ApiKey":[]}],"tags":["Quota & Forecast"],"summary":"Submit","x-api-key-scopes":["*"]}},"/v1/quota-forecast/forecasts":{"post":{"operationId":"quotaForecast_submitLegacy","parameters":[{"$ref":"#/components/parameters/IdempotencyKey"}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/SubmitForecastDto"}}}},"responses":{"201":{"description":""},"400":{"$ref":"#/components/responses/BadRequest"},"401":{"$ref":"#/components/responses/Unauthorized"},"403":{"$ref":"#/components/responses/Forbidden"},"409":{"$ref":"#/components/responses/Conflict"},"429":{"$ref":"#/components/responses/TooManyRequests"},"500":{"$ref":"#/components/responses/ServerError"}},"security":[{"JWT":[]},{"ApiKey":[]}],"summary":"Legacy alias of /forecasts/submit.","tags":["Quota & Forecast"],"x-api-key-scopes":["*"]},"get":{"operationId":"quotaForecast_listForecasts","parameters":[{"name":"userId","required":false,"in":"query","schema":{"type":"string"}},{"name":"period","required":false,"in":"query","schema":{"type":"string"}}],"responses":{"200":{"description":"","content":{"application/json":{"schema":{"type":"array","items":{"type":"object"}}}}},"400":{"$ref":"#/components/responses/BadRequest"},"401":{"$ref":"#/components/responses/Unauthorized"},"403":{"$ref":"#/components/responses/Forbidden"},"429":{"$ref":"#/components/responses/TooManyRequests"},"500":{"$ref":"#/components/responses/ServerError"}},"security":[{"JWT":[]},{"ApiKey":[]}],"tags":["Quota & Forecast"],"summary":"List forecasts","x-api-key-scopes":["*"]}},"/v1/quota-forecast/forecasts/rollup":{"get":{"operationId":"quotaForecast_rollup","parameters":[{"name":"period","required":false,"in":"query","schema":{"type":"string"}},{"name":"periodType","required":false,"in":"query","schema":{"type":"string"}}],"responses":{"200":{"description":""},"400":{"$ref":"#/components/responses/BadRequest"},"401":{"$ref":"#/components/responses/Unauthorized"},"403":{"$ref":"#/components/responses/Forbidden"},"429":{"$ref":"#/components/responses/TooManyRequests"},"500":{"$ref":"#/components/responses/ServerError"}},"security":[{"JWT":[]},{"ApiKey":[]}],"tags":["Quota & Forecast"],"summary":"Rollup","x-api-key-scopes":["*"]}},"/v1/quota-forecast/snapshots":{"get":{"operationId":"quotaForecast_snapshots","parameters":[{"name":"period","required":false,"in":"query","schema":{"type":"string"}},{"name":"periodType","required":false,"in":"query","schema":{"type":"string"}},{"name":"userId","required":false,"in":"query","schema":{"type":"string"}},{"name":"source","required":false,"in":"query","schema":{"type":"string"}},{"name":"limit","required":false,"in":"query","schema":{"type":"string"}}],"responses":{"200":{"description":"","content":{"application/json":{"schema":{"type":"array","items":{"type":"object"}}}}},"400":{"$ref":"#/components/responses/BadRequest"},"401":{"$ref":"#/components/responses/Unauthorized"},"403":{"$ref":"#/components/responses/Forbidden"},"429":{"$ref":"#/components/responses/TooManyRequests"},"500":{"$ref":"#/components/responses/ServerError"}},"security":[{"JWT":[]},{"ApiKey":[]}],"tags":["Quota & Forecast"],"summary":"Snapshots","x-api-key-scopes":["*"]}},"/v1/quota-forecast/deals/{id}/forecast-category":{"put":{"operationId":"quotaForecast_setDealCategory","parameters":[{"name":"id","required":true,"in":"path","schema":{"type":"string"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/SetDealForecastCategoryDto"}}}},"responses":{"200":{"description":""},"400":{"$ref":"#/components/responses/BadRequest"},"401":{"$ref":"#/components/responses/Unauthorized"},"403":{"$ref":"#/components/responses/Forbidden"},"404":{"$ref":"#/components/responses/NotFound"},"429":{"$ref":"#/components/responses/TooManyRequests"},"500":{"$ref":"#/components/responses/ServerError"}},"security":[{"JWT":[]},{"ApiKey":[]}],"tags":["Quota & Forecast"],"summary":"Set deal category","x-api-key-scopes":["*"]}},"/v1/documents":{"get":{"operationId":"documents_findAll","parameters":[],"responses":{"200":{"description":""},"401":{"$ref":"#/components/responses/Unauthorized"},"403":{"$ref":"#/components/responses/Forbidden"},"429":{"$ref":"#/components/responses/TooManyRequests"},"500":{"$ref":"#/components/responses/ServerError"}},"security":[{"JWT":[]},{"ApiKey":[]}],"summary":"Get all indexed documents from the database","tags":["Documents"],"x-api-key-scopes":["*"]}},"/v1/documents/generate":{"post":{"operationId":"documents_generateDocument","parameters":[{"$ref":"#/components/parameters/IdempotencyKey"}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/GenerateDocumentBody"}}}},"responses":{"201":{"description":""},"400":{"$ref":"#/components/responses/BadRequest"},"401":{"$ref":"#/components/responses/Unauthorized"},"403":{"$ref":"#/components/responses/Forbidden"},"409":{"$ref":"#/components/responses/Conflict"},"429":{"$ref":"#/components/responses/TooManyRequests"},"500":{"$ref":"#/components/responses/ServerError"}},"security":[{"JWT":[]},{"ApiKey":[]}],"summary":"Merge a template with one record and store the PDF against it.","tags":["Documents"],"x-api-key-scopes":["*"]}},"/v1/documents/templates":{"get":{"operationId":"documents_listTemplates","parameters":[{"name":"entityType","required":false,"in":"query","schema":{"type":"string"}}],"responses":{"200":{"description":"","content":{"application/json":{"schema":{"type":"object"}}}},"400":{"$ref":"#/components/responses/BadRequest"},"401":{"$ref":"#/components/responses/Unauthorized"},"403":{"$ref":"#/components/responses/Forbidden"},"429":{"$ref":"#/components/responses/TooManyRequests"},"500":{"$ref":"#/components/responses/ServerError"}},"security":[{"JWT":[]},{"ApiKey":[]}],"tags":["Documents"],"summary":"List templates","x-api-key-scopes":["*"]},"post":{"operationId":"documents_createTemplate","parameters":[{"$ref":"#/components/parameters/IdempotencyKey"}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/DocumentTemplateBody"}}}},"responses":{"201":{"description":""},"400":{"$ref":"#/components/responses/BadRequest"},"401":{"$ref":"#/components/responses/Unauthorized"},"403":{"$ref":"#/components/responses/Forbidden"},"409":{"$ref":"#/components/responses/Conflict"},"429":{"$ref":"#/components/responses/TooManyRequests"},"500":{"$ref":"#/components/responses/ServerError"}},"security":[{"JWT":[]},{"ApiKey":[]}],"tags":["Documents"],"summary":"Create template","x-api-key-scopes":["*"]}},"/v1/documents/templates/placeholders":{"get":{"operationId":"documents_listPlaceholders","parameters":[{"name":"entityType","required":true,"in":"query","schema":{"type":"string"}}],"responses":{"200":{"description":""},"400":{"$ref":"#/components/responses/BadRequest"},"401":{"$ref":"#/components/responses/Unauthorized"},"403":{"$ref":"#/components/responses/Forbidden"},"429":{"$ref":"#/components/responses/TooManyRequests"},"500":{"$ref":"#/components/responses/ServerError"}},"security":[{"JWT":[]},{"ApiKey":[]}],"tags":["Documents"],"summary":"List placeholders","x-api-key-scopes":["*"]}},"/v1/documents/templates/{templateId}":{"get":{"operationId":"documents_getTemplate","parameters":[{"name":"templateId","required":true,"in":"path","schema":{"type":"string"}}],"responses":{"200":{"description":""},"400":{"$ref":"#/components/responses/BadRequest"},"401":{"$ref":"#/components/responses/Unauthorized"},"403":{"$ref":"#/components/responses/Forbidden"},"404":{"$ref":"#/components/responses/NotFound"},"429":{"$ref":"#/components/responses/TooManyRequests"},"500":{"$ref":"#/components/responses/ServerError"}},"security":[{"JWT":[]},{"ApiKey":[]}],"tags":["Documents"],"summary":"Get template","x-api-key-scopes":["*"]},"patch":{"operationId":"documents_updateTemplate","parameters":[{"name":"templateId","required":true,"in":"path","schema":{"type":"string"}},{"$ref":"#/components/parameters/IdempotencyKey"}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/DocumentTemplateBody"}}}},"responses":{"200":{"description":""},"400":{"$ref":"#/components/responses/BadRequest"},"401":{"$ref":"#/components/responses/Unauthorized"},"403":{"$ref":"#/components/responses/Forbidden"},"404":{"$ref":"#/components/responses/NotFound"},"409":{"$ref":"#/components/responses/Conflict"},"429":{"$ref":"#/components/responses/TooManyRequests"},"500":{"$ref":"#/components/responses/ServerError"}},"security":[{"JWT":[]},{"ApiKey":[]}],"tags":["Documents"],"summary":"Update template","x-api-key-scopes":["*"]},"delete":{"operationId":"documents_deleteTemplate","parameters":[{"name":"templateId","required":true,"in":"path","schema":{"type":"string"}}],"responses":{"200":{"description":""},"400":{"$ref":"#/components/responses/BadRequest"},"401":{"$ref":"#/components/responses/Unauthorized"},"403":{"$ref":"#/components/responses/Forbidden"},"404":{"$ref":"#/components/responses/NotFound"},"429":{"$ref":"#/components/responses/TooManyRequests"},"500":{"$ref":"#/components/responses/ServerError"}},"security":[{"JWT":[]},{"ApiKey":[]}],"tags":["Documents"],"summary":"Delete template","x-api-key-scopes":["*"]}},"/v1/documents/generated":{"get":{"operationId":"documents_listGenerated","parameters":[{"name":"entityType","required":true,"in":"query","schema":{"type":"string"}},{"name":"entityId","required":true,"in":"query","schema":{"type":"string"}}],"responses":{"200":{"description":""},"400":{"$ref":"#/components/responses/BadRequest"},"401":{"$ref":"#/components/responses/Unauthorized"},"403":{"$ref":"#/components/responses/Forbidden"},"429":{"$ref":"#/components/responses/TooManyRequests"},"500":{"$ref":"#/components/responses/ServerError"}},"security":[{"JWT":[]},{"ApiKey":[]}],"summary":"Generated documents for one record (owner-or-admin on the record).","tags":["Documents"],"x-api-key-scopes":["*"]}},"/v1/documents/generated/{docId}/download":{"get":{"operationId":"documents_downloadGenerated","parameters":[{"name":"docId","required":true,"in":"path","schema":{"type":"string"}}],"responses":{"200":{"description":""},"400":{"$ref":"#/components/responses/BadRequest"},"401":{"$ref":"#/components/responses/Unauthorized"},"403":{"$ref":"#/components/responses/Forbidden"},"404":{"$ref":"#/components/responses/NotFound"},"429":{"$ref":"#/components/responses/TooManyRequests"},"500":{"$ref":"#/components/responses/ServerError"}},"security":[{"JWT":[]},{"ApiKey":[]}],"tags":["Documents"],"summary":"Download generated","x-api-key-scopes":["*"]}},"/v1/documents/generated/{docId}":{"delete":{"operationId":"documents_deleteGenerated","parameters":[{"name":"docId","required":true,"in":"path","schema":{"type":"string"}}],"responses":{"200":{"description":""},"400":{"$ref":"#/components/responses/BadRequest"},"401":{"$ref":"#/components/responses/Unauthorized"},"403":{"$ref":"#/components/responses/Forbidden"},"404":{"$ref":"#/components/responses/NotFound"},"429":{"$ref":"#/components/responses/TooManyRequests"},"500":{"$ref":"#/components/responses/ServerError"}},"security":[{"JWT":[]},{"ApiKey":[]}],"tags":["Documents"],"summary":"Delete generated","x-api-key-scopes":["*"]}},"/v1/documents/capabilities":{"get":{"operationId":"documents_getCapabilities","parameters":[],"responses":{"200":{"description":"","content":{"application/json":{"schema":{"type":"object"}}}},"401":{"$ref":"#/components/responses/Unauthorized"},"403":{"$ref":"#/components/responses/Forbidden"},"429":{"$ref":"#/components/responses/TooManyRequests"},"500":{"$ref":"#/components/responses/ServerError"}},"security":[{"JWT":[]},{"ApiKey":[]}],"summary":"Document processing capabilities\nReturns information about OCR, table extraction, and other features","tags":["Documents"],"x-api-key-scopes":["*"]}},"/v1/documents/{id}":{"get":{"operationId":"documents_findOne","parameters":[{"name":"id","required":true,"in":"path","schema":{"type":"string"}}],"responses":{"200":{"description":"","content":{"application/json":{"schema":{"type":"object"}}}},"400":{"$ref":"#/components/responses/BadRequest"},"401":{"$ref":"#/components/responses/Unauthorized"},"403":{"$ref":"#/components/responses/Forbidden"},"404":{"$ref":"#/components/responses/NotFound"},"429":{"$ref":"#/components/responses/TooManyRequests"},"500":{"$ref":"#/components/responses/ServerError"}},"security":[{"JWT":[]},{"ApiKey":[]}],"summary":"Get a single document by ID","tags":["Documents"],"x-api-key-scopes":["*"]},"delete":{"operationId":"documents_remove","parameters":[{"name":"id","required":true,"in":"path","schema":{"type":"string"}}],"responses":{"200":{"description":""},"400":{"$ref":"#/components/responses/BadRequest"},"401":{"$ref":"#/components/responses/Unauthorized"},"403":{"$ref":"#/components/responses/Forbidden"},"404":{"$ref":"#/components/responses/NotFound"},"429":{"$ref":"#/components/responses/TooManyRequests"},"500":{"$ref":"#/components/responses/ServerError"}},"security":[{"JWT":[]},{"ApiKey":[]}],"summary":"Delete a document with cascade effect\nRemoves the document and its search index.","tags":["Documents"],"x-api-key-scopes":["*"]}},"/v1/documents/upload":{"post":{"operationId":"documents_uploadAndIndex","parameters":[{"name":"addSummary","required":false,"in":"query","schema":{"type":"string"}},{"name":"addDescription","required":false,"in":"query","schema":{"type":"string"}},{"name":"useOcr","required":false,"in":"query","schema":{"type":"string"}},{"name":"extractTables","required":false,"in":"query","schema":{"type":"string"}},{"$ref":"#/components/parameters/IdempotencyKey"}],"responses":{"201":{"description":""},"400":{"$ref":"#/components/responses/BadRequest"},"401":{"$ref":"#/components/responses/Unauthorized"},"403":{"$ref":"#/components/responses/Forbidden"},"409":{"$ref":"#/components/responses/Conflict"},"429":{"$ref":"#/components/responses/TooManyRequests"},"500":{"$ref":"#/components/responses/ServerError"}},"security":[{"JWT":[]},{"ApiKey":[]}],"summary":"Upload and index a new document\nThe document is stored and indexed for search and the assistant.","tags":["Documents"],"x-api-key-scopes":["*"]}},"/v1/documents/extract":{"post":{"operationId":"documents_extractContent","parameters":[{"name":"includeTables","required":false,"in":"query","schema":{"type":"string"}},{"name":"outputFormat","required":false,"in":"query","schema":{"type":"string"}},{"$ref":"#/components/parameters/IdempotencyKey"}],"responses":{"201":{"description":"","content":{"application/json":{"schema":{"type":"object"}}}},"400":{"$ref":"#/components/responses/BadRequest"},"401":{"$ref":"#/components/responses/Unauthorized"},"403":{"$ref":"#/components/responses/Forbidden"},"409":{"$ref":"#/components/responses/Conflict"},"429":{"$ref":"#/components/responses/TooManyRequests"},"500":{"$ref":"#/components/responses/ServerError"}},"security":[{"JWT":[]},{"ApiKey":[]}],"summary":"Extract text and tables from a document using OCR\nThis provides raw extraction without tree structure indexing","tags":["Documents"],"x-api-key-scopes":["*"]}},"/v1/documents/{id}/status":{"get":{"operationId":"documents_checkStatus","parameters":[{"name":"id","required":true,"in":"path","schema":{"type":"string"}}],"responses":{"200":{"description":"","content":{"application/json":{"schema":{"type":"object"}}}},"400":{"$ref":"#/components/responses/BadRequest"},"401":{"$ref":"#/components/responses/Unauthorized"},"403":{"$ref":"#/components/responses/Forbidden"},"404":{"$ref":"#/components/responses/NotFound"},"429":{"$ref":"#/components/responses/TooManyRequests"},"500":{"$ref":"#/components/responses/ServerError"}},"security":[{"JWT":[]},{"ApiKey":[]}],"summary":"Check indexing status and update database","tags":["Documents"],"x-api-key-scopes":["*"]}},"/v1/agents":{"get":{"operationId":"agents_listAgents","parameters":[],"responses":{"200":{"description":"List of agents"},"401":{"$ref":"#/components/responses/Unauthorized"},"403":{"$ref":"#/components/responses/Forbidden"},"429":{"$ref":"#/components/responses/TooManyRequests"},"500":{"$ref":"#/components/responses/ServerError"}},"security":[{"JWT":[]},{"ApiKey":[]}],"summary":"List all registered agents with their status","tags":["Agents"],"x-api-key-scopes":["*"]}},"/v1/agents/trigger":{"post":{"operationId":"agents_triggerAgent","parameters":[{"$ref":"#/components/parameters/IdempotencyKey"}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/TriggerAgentDto"}}}},"responses":{"201":{"description":"Agent triggered"},"400":{"$ref":"#/components/responses/BadRequest"},"401":{"$ref":"#/components/responses/Unauthorized"},"403":{"$ref":"#/components/responses/Forbidden"},"409":{"$ref":"#/components/responses/Conflict"},"429":{"$ref":"#/components/responses/TooManyRequests"},"500":{"$ref":"#/components/responses/ServerError"}},"security":[{"JWT":[]},{"ApiKey":[]}],"summary":"Manually trigger an agent execution","tags":["Agents"],"x-api-key-scopes":["*"]}},"/v1/agents/org-settings":{"get":{"operationId":"agents_getOrgSettings","parameters":[],"responses":{"200":{"description":""},"401":{"$ref":"#/components/responses/Unauthorized"},"403":{"$ref":"#/components/responses/Forbidden"},"429":{"$ref":"#/components/responses/TooManyRequests"},"500":{"$ref":"#/components/responses/ServerError"}},"security":[{"JWT":[]},{"ApiKey":[]}],"summary":"Whether agents run for the caller's organization","tags":["Agents"],"x-api-key-scopes":["*"]},"patch":{"operationId":"agents_updateOrgSettings","parameters":[{"$ref":"#/components/parameters/IdempotencyKey"}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/UpdateOrgAgentSettingsDto"}}}},"responses":{"200":{"description":""},"400":{"$ref":"#/components/responses/BadRequest"},"401":{"$ref":"#/components/responses/Unauthorized"},"403":{"$ref":"#/components/responses/Forbidden"},"409":{"$ref":"#/components/responses/Conflict"},"429":{"$ref":"#/components/responses/TooManyRequests"},"500":{"$ref":"#/components/responses/ServerError"}},"security":[{"JWT":[]},{"ApiKey":[]}],"summary":"Turn agents on or off for one organization (org OWNER/ADMIN for their own org, system ADMIN for any)","tags":["Agents"],"x-api-key-scopes":["*"]}},"/v1/agents/queue/status":{"get":{"operationId":"agents_getQueueStatus","parameters":[],"responses":{"200":{"description":"Queue status"},"401":{"$ref":"#/components/responses/Unauthorized"},"403":{"$ref":"#/components/responses/Forbidden"},"429":{"$ref":"#/components/responses/TooManyRequests"},"500":{"$ref":"#/components/responses/ServerError"}},"security":[{"JWT":[]},{"ApiKey":[]}],"summary":"Get current queue status","tags":["Agents"],"x-api-key-scopes":["*"]}},"/v1/agents/alerts/pending":{"get":{"operationId":"agents_getPendingAlertsSummary","parameters":[],"responses":{"200":{"description":"Pending alerts summary"},"401":{"$ref":"#/components/responses/Unauthorized"},"403":{"$ref":"#/components/responses/Forbidden"},"429":{"$ref":"#/components/responses/TooManyRequests"},"500":{"$ref":"#/components/responses/ServerError"}},"security":[{"JWT":[]},{"ApiKey":[]}],"summary":"Get pending alerts count by priority","tags":["Agents"],"x-api-key-scopes":["*"]}},"/v1/agents/alerts":{"get":{"operationId":"agents_getAlerts","parameters":[{"name":"agentType","required":false,"in":"query","description":"Filter by agent type","schema":{"type":"string","enum":["DEAL_HEALTH","PIPELINE_ACCELERATION","ACCOUNT_INTELLIGENCE","OUTREACH_OPTIMIZATION","MEETING_PREP","COACHING","COMPETITIVE_INTELLIGENCE","NEXT_BEST_ACTION","WIN_CYCLE_ANALYZER","DATA_ENRICHMENT","WORKFLOW_AUTOMATION","LISTENING","REASONING","LEARN_MORE","EMAIL_ACTION","CRM_ACTION","MEETING_ACTION"]}},{"name":"status","required":false,"in":"query","schema":{"type":"string","enum":["PENDING","ACKNOWLEDGED","ACTIONED","DISMISSED","EXPIRED"]}},{"name":"priority","required":false,"in":"query","schema":{"type":"string","enum":["LOW","MEDIUM","HIGH","URGENT"]}},{"name":"entityType","required":false,"in":"query","description":"Entity type filter","schema":{"type":"string"}},{"name":"entityId","required":false,"in":"query","description":"Entity ID filter","schema":{"type":"string"}},{"name":"days","required":false,"in":"query","description":"Number of days to look back","schema":{"default":7,"type":"number"}},{"name":"limit","required":false,"in":"query","description":"Max results","schema":{"default":50,"type":"number"}}],"responses":{"200":{"description":"List of alerts"},"400":{"$ref":"#/components/responses/BadRequest"},"401":{"$ref":"#/components/responses/Unauthorized"},"403":{"$ref":"#/components/responses/Forbidden"},"429":{"$ref":"#/components/responses/TooManyRequests"},"500":{"$ref":"#/components/responses/ServerError"}},"security":[{"JWT":[]},{"ApiKey":[]}],"summary":"Get alerts for the current user","tags":["Agents"],"x-api-key-scopes":["*"]}},"/v1/agents/alerts/{alertId}":{"patch":{"operationId":"agents_updateAlert","parameters":[{"name":"alertId","required":true,"in":"path","schema":{"type":"string"}},{"$ref":"#/components/parameters/IdempotencyKey"}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/UpdateAlertDto"}}}},"responses":{"200":{"description":"Alert updated"},"400":{"$ref":"#/components/responses/BadRequest"},"401":{"$ref":"#/components/responses/Unauthorized"},"403":{"$ref":"#/components/responses/Forbidden"},"404":{"$ref":"#/components/responses/NotFound"},"409":{"$ref":"#/components/responses/Conflict"},"429":{"$ref":"#/components/responses/TooManyRequests"},"500":{"$ref":"#/components/responses/ServerError"}},"security":[{"JWT":[]},{"ApiKey":[]}],"summary":"Update alert status (acknowledge, action, dismiss)","tags":["Agents"],"x-api-key-scopes":["*"]},"delete":{"operationId":"agents_deleteAlert","parameters":[{"name":"alertId","required":true,"in":"path","schema":{"type":"string"}}],"responses":{"200":{"description":"Alert deleted"},"400":{"$ref":"#/components/responses/BadRequest"},"401":{"$ref":"#/components/responses/Unauthorized"},"403":{"$ref":"#/components/responses/Forbidden"},"404":{"$ref":"#/components/responses/NotFound"},"429":{"$ref":"#/components/responses/TooManyRequests"},"500":{"$ref":"#/components/responses/ServerError"}},"security":[{"JWT":[]},{"ApiKey":[]}],"summary":"Delete an alert","tags":["Agents"],"x-api-key-scopes":["*"]}},"/v1/agents/actions":{"get":{"operationId":"agents_getActions","parameters":[{"name":"status","required":false,"in":"query","schema":{"type":"string","enum":["PENDING_APPROVAL","APPROVED","REJECTED","EXECUTING","COMPLETED","FAILED"]}},{"name":"actionType","required":false,"in":"query","description":"Action type filter","schema":{"type":"string"}},{"name":"days","required":false,"in":"query","description":"Number of days to look back","schema":{"default":7,"type":"number"}},{"name":"limit","required":false,"in":"query","description":"Max results","schema":{"default":50,"type":"number"}}],"responses":{"200":{"description":"List of actions"},"400":{"$ref":"#/components/responses/BadRequest"},"401":{"$ref":"#/components/responses/Unauthorized"},"403":{"$ref":"#/components/responses/Forbidden"},"429":{"$ref":"#/components/responses/TooManyRequests"},"500":{"$ref":"#/components/responses/ServerError"}},"security":[{"JWT":[]},{"ApiKey":[]}],"summary":"Agent-proposed actions for the caller's org","tags":["Agents"],"x-api-key-scopes":["*"]}},"/v1/agents/actions/summary":{"get":{"operationId":"agents_getActionSummary","parameters":[],"responses":{"200":{"description":"","content":{"application/json":{"schema":{"type":"object"}}}},"401":{"$ref":"#/components/responses/Unauthorized"},"403":{"$ref":"#/components/responses/Forbidden"},"429":{"$ref":"#/components/responses/TooManyRequests"},"500":{"$ref":"#/components/responses/ServerError"}},"security":[{"JWT":[]},{"ApiKey":[]}],"summary":"Action counts by status for the caller's org (30d)","tags":["Agents"],"x-api-key-scopes":["*"]}},"/v1/agents/actions/{actionId}/approve":{"patch":{"operationId":"agents_approveAction","parameters":[{"name":"actionId","required":true,"in":"path","schema":{"type":"string"}},{"$ref":"#/components/parameters/IdempotencyKey"}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ApproveActionDto"}}}},"responses":{"200":{"description":"Action updated"},"400":{"$ref":"#/components/responses/BadRequest"},"401":{"$ref":"#/components/responses/Unauthorized"},"403":{"$ref":"#/components/responses/Forbidden"},"404":{"$ref":"#/components/responses/NotFound"},"409":{"$ref":"#/components/responses/Conflict"},"429":{"$ref":"#/components/responses/TooManyRequests"},"500":{"$ref":"#/components/responses/ServerError"}},"security":[{"JWT":[]},{"ApiKey":[]}],"summary":"Approve (and execute) or reject a pending action","tags":["Agents"],"x-api-key-scopes":["*"]}},"/v1/agents/actions/{actionId}/retry":{"post":{"operationId":"agents_retryAction","parameters":[{"name":"actionId","required":true,"in":"path","schema":{"type":"string"}},{"$ref":"#/components/parameters/IdempotencyKey"}],"responses":{"201":{"description":"","content":{"application/json":{"schema":{"type":"object"}}}},"400":{"$ref":"#/components/responses/BadRequest"},"401":{"$ref":"#/components/responses/Unauthorized"},"403":{"$ref":"#/components/responses/Forbidden"},"404":{"$ref":"#/components/responses/NotFound"},"409":{"$ref":"#/components/responses/Conflict"},"429":{"$ref":"#/components/responses/TooManyRequests"},"500":{"$ref":"#/components/responses/ServerError"}},"security":[{"JWT":[]},{"ApiKey":[]}],"summary":"Re-run a failed action","tags":["Agents"],"x-api-key-scopes":["*"]}},"/v1/agents/executions":{"get":{"operationId":"agents_getExecutions","parameters":[{"name":"agentType","required":false,"in":"query","schema":{"type":"string","enum":["DEAL_HEALTH","PIPELINE_ACCELERATION","ACCOUNT_INTELLIGENCE","OUTREACH_OPTIMIZATION","MEETING_PREP","COACHING","COMPETITIVE_INTELLIGENCE","NEXT_BEST_ACTION","WIN_CYCLE_ANALYZER","DATA_ENRICHMENT","WORKFLOW_AUTOMATION","LISTENING","REASONING","LEARN_MORE","EMAIL_ACTION","CRM_ACTION","MEETING_ACTION"]}},{"name":"status","required":false,"in":"query","schema":{"type":"string","enum":["PENDING","RUNNING","COMPLETED","FAILED","CANCELLED","RATE_LIMITED"]}},{"name":"days","required":false,"in":"query","description":"Number of days to look back","schema":{"default":7,"type":"number"}},{"name":"limit","required":false,"in":"query","description":"Max results","schema":{"default":50,"type":"number"}}],"responses":{"200":{"description":"Execution history"},"400":{"$ref":"#/components/responses/BadRequest"},"401":{"$ref":"#/components/responses/Unauthorized"},"403":{"$ref":"#/components/responses/Forbidden"},"429":{"$ref":"#/components/responses/TooManyRequests"},"500":{"$ref":"#/components/responses/ServerError"}},"security":[{"JWT":[]},{"ApiKey":[]}],"summary":"Get agent execution history","tags":["Agents"],"x-api-key-scopes":["*"]}},"/v1/agents/executions/{executionId}":{"get":{"operationId":"agents_getExecutionDetails","parameters":[{"name":"executionId","required":true,"in":"path","schema":{"type":"string"}}],"responses":{"200":{"description":"Execution details"},"400":{"$ref":"#/components/responses/BadRequest"},"401":{"$ref":"#/components/responses/Unauthorized"},"403":{"$ref":"#/components/responses/Forbidden"},"404":{"$ref":"#/components/responses/NotFound"},"429":{"$ref":"#/components/responses/TooManyRequests"},"500":{"$ref":"#/components/responses/ServerError"}},"security":[{"JWT":[]},{"ApiKey":[]}],"summary":"Get details of a specific execution","tags":["Agents"],"x-api-key-scopes":["*"]}},"/v1/agents/analytics/summary":{"get":{"operationId":"agents_getAnalyticsSummary","parameters":[],"responses":{"200":{"description":"Analytics summary"},"401":{"$ref":"#/components/responses/Unauthorized"},"403":{"$ref":"#/components/responses/Forbidden"},"429":{"$ref":"#/components/responses/TooManyRequests"},"500":{"$ref":"#/components/responses/ServerError"}},"security":[{"JWT":[]},{"ApiKey":[]}],"summary":"Get agent analytics summary (Admin only)","tags":["Agents"],"x-api-key-scopes":["*"]}},"/v1/agents/{agentType}":{"get":{"operationId":"agents_getAgentStatus","parameters":[{"name":"agentType","required":true,"in":"path","schema":{"type":"string"}}],"responses":{"200":{"description":"Agent status"},"400":{"$ref":"#/components/responses/BadRequest"},"401":{"$ref":"#/components/responses/Unauthorized"},"403":{"$ref":"#/components/responses/Forbidden"},"404":{"description":"Agent not found"},"429":{"$ref":"#/components/responses/TooManyRequests"},"500":{"$ref":"#/components/responses/ServerError"}},"security":[{"JWT":[]},{"ApiKey":[]}],"summary":"Get status of a specific agent","tags":["Agents"],"x-api-key-scopes":["*"]}},"/v1/agents/{agentType}/config":{"patch":{"operationId":"agents_updateAgentConfig","parameters":[{"name":"agentType","required":true,"in":"path","schema":{"type":"string"}},{"$ref":"#/components/parameters/IdempotencyKey"}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/UpdateAgentConfigDto"}}}},"responses":{"200":{"description":"Configuration updated"},"400":{"$ref":"#/components/responses/BadRequest"},"401":{"$ref":"#/components/responses/Unauthorized"},"403":{"$ref":"#/components/responses/Forbidden"},"404":{"$ref":"#/components/responses/NotFound"},"409":{"$ref":"#/components/responses/Conflict"},"429":{"$ref":"#/components/responses/TooManyRequests"},"500":{"$ref":"#/components/responses/ServerError"}},"security":[{"JWT":[]},{"ApiKey":[]}],"summary":"Update agent configuration (Admin only)","tags":["Agents"],"x-api-key-scopes":["*"]}},"/v1/smart-scheduler/requests":{"get":{"operationId":"smartScheduler_getRequests","parameters":[{"name":"status","required":false,"in":"query","schema":{"type":"string"}},{"name":"contactId","required":false,"in":"query","schema":{"type":"string"}}],"responses":{"200":{"description":"List of scheduling requests"},"400":{"$ref":"#/components/responses/BadRequest"},"401":{"$ref":"#/components/responses/Unauthorized"},"403":{"$ref":"#/components/responses/Forbidden"},"429":{"$ref":"#/components/responses/TooManyRequests"},"500":{"$ref":"#/components/responses/ServerError"}},"security":[{"JWT":[]},{"ApiKey":[]}],"summary":"List scheduling requests","tags":["Smart Scheduler"],"x-api-key-scopes":["*"]},"post":{"operationId":"smartScheduler_createRequest","parameters":[{"$ref":"#/components/parameters/IdempotencyKey"}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/CreateRequestBody"}}}},"responses":{"201":{"description":"Scheduling request created"},"400":{"$ref":"#/components/responses/BadRequest"},"401":{"$ref":"#/components/responses/Unauthorized"},"403":{"$ref":"#/components/responses/Forbidden"},"409":{"$ref":"#/components/responses/Conflict"},"429":{"$ref":"#/components/responses/TooManyRequests"},"500":{"$ref":"#/components/responses/ServerError"}},"security":[{"JWT":[]},{"ApiKey":[]}],"summary":"Create a new scheduling request","tags":["Smart Scheduler"],"x-api-key-scopes":["*"]}},"/v1/smart-scheduler/requests/{id}":{"get":{"operationId":"smartScheduler_getRequest","parameters":[{"name":"id","required":true,"in":"path","schema":{"type":"string"}}],"responses":{"200":{"description":"Scheduling request details"},"400":{"$ref":"#/components/responses/BadRequest"},"401":{"$ref":"#/components/responses/Unauthorized"},"403":{"$ref":"#/components/responses/Forbidden"},"404":{"$ref":"#/components/responses/NotFound"},"429":{"$ref":"#/components/responses/TooManyRequests"},"500":{"$ref":"#/components/responses/ServerError"}},"security":[{"JWT":[]},{"ApiKey":[]}],"summary":"Get a specific scheduling request","tags":["Smart Scheduler"],"x-api-key-scopes":["*"]},"delete":{"operationId":"smartScheduler_deleteRequest","parameters":[{"name":"id","required":true,"in":"path","schema":{"type":"string"}}],"responses":{"200":{"description":"Request deleted"},"400":{"$ref":"#/components/responses/BadRequest"},"401":{"$ref":"#/components/responses/Unauthorized"},"403":{"$ref":"#/components/responses/Forbidden"},"404":{"$ref":"#/components/responses/NotFound"},"429":{"$ref":"#/components/responses/TooManyRequests"},"500":{"$ref":"#/components/responses/ServerError"}},"security":[{"JWT":[]},{"ApiKey":[]}],"summary":"Delete a scheduling request","tags":["Smart Scheduler"],"x-api-key-scopes":["*"]}},"/v1/smart-scheduler/requests/{id}/send-link":{"post":{"operationId":"smartScheduler_sendLink","parameters":[{"name":"id","required":true,"in":"path","schema":{"type":"string"}},{"$ref":"#/components/parameters/IdempotencyKey"}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/SendLinkBody"}}}},"responses":{"201":{"description":""},"400":{"$ref":"#/components/responses/BadRequest"},"401":{"$ref":"#/components/responses/Unauthorized"},"403":{"$ref":"#/components/responses/Forbidden"},"404":{"$ref":"#/components/responses/NotFound"},"409":{"$ref":"#/components/responses/Conflict"},"429":{"$ref":"#/components/responses/TooManyRequests"},"500":{"$ref":"#/components/responses/ServerError"},"501":{"description":"EMAIL_NOT_CONFIGURED"}},"security":[{"JWT":[]},{"ApiKey":[]}],"summary":"Issue a booking link; email it unless method=manual","tags":["Smart Scheduler"],"x-api-key-scopes":["*"]}},"/v1/smart-scheduler/requests/{id}/send":{"post":{"operationId":"smartScheduler_sendRequest","parameters":[{"name":"id","required":true,"in":"path","schema":{"type":"string"}},{"$ref":"#/components/parameters/IdempotencyKey"}],"responses":{"201":{"description":""},"400":{"$ref":"#/components/responses/BadRequest"},"401":{"$ref":"#/components/responses/Unauthorized"},"403":{"$ref":"#/components/responses/Forbidden"},"404":{"$ref":"#/components/responses/NotFound"},"409":{"$ref":"#/components/responses/Conflict"},"429":{"$ref":"#/components/responses/TooManyRequests"},"500":{"$ref":"#/components/responses/ServerError"},"501":{"description":"EMAIL_NOT_CONFIGURED"}},"security":[{"JWT":[]},{"ApiKey":[]}],"summary":"Email a booking link to the contact","tags":["Smart Scheduler"],"x-api-key-scopes":["*"]}},"/v1/smart-scheduler/working-hours":{"get":{"operationId":"smartScheduler_getWorkingHours","parameters":[],"responses":{"200":{"description":"","content":{"application/json":{"schema":{"type":"object"}}}},"401":{"$ref":"#/components/responses/Unauthorized"},"403":{"$ref":"#/components/responses/Forbidden"},"429":{"$ref":"#/components/responses/TooManyRequests"},"500":{"$ref":"#/components/responses/ServerError"}},"security":[{"JWT":[]},{"ApiKey":[]}],"summary":"The caller's bookable hours","tags":["Smart Scheduler"],"x-api-key-scopes":["*"]},"patch":{"operationId":"smartScheduler_updateWorkingHours","parameters":[{"$ref":"#/components/parameters/IdempotencyKey"}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/WorkingHoursBody"}}}},"responses":{"200":{"description":"","content":{"application/json":{"schema":{"type":"object"}}}},"400":{"$ref":"#/components/responses/BadRequest"},"401":{"$ref":"#/components/responses/Unauthorized"},"403":{"$ref":"#/components/responses/Forbidden"},"409":{"$ref":"#/components/responses/Conflict"},"429":{"$ref":"#/components/responses/TooManyRequests"},"500":{"$ref":"#/components/responses/ServerError"}},"security":[{"JWT":[]},{"ApiKey":[]}],"summary":"Update the caller's bookable hours","tags":["Smart Scheduler"],"x-api-key-scopes":["*"]}},"/v1/smart-scheduler/requests/{id}/cancel":{"post":{"operationId":"smartScheduler_cancelRequest","parameters":[{"name":"id","required":true,"in":"path","schema":{"type":"string"}},{"$ref":"#/components/parameters/IdempotencyKey"}],"responses":{"200":{"description":"Request cancelled"},"400":{"$ref":"#/components/responses/BadRequest"},"401":{"$ref":"#/components/responses/Unauthorized"},"403":{"$ref":"#/components/responses/Forbidden"},"404":{"$ref":"#/components/responses/NotFound"},"409":{"$ref":"#/components/responses/Conflict"},"429":{"$ref":"#/components/responses/TooManyRequests"},"500":{"$ref":"#/components/responses/ServerError"}},"security":[{"JWT":[]},{"ApiKey":[]}],"summary":"Cancel a scheduling request","tags":["Smart Scheduler"],"x-api-key-scopes":["*"]}},"/v1/smart-scheduler/suggested-slots":{"get":{"operationId":"smartScheduler_getSuggestedSlotsQuery","parameters":[{"name":"contactId","required":true,"in":"query","schema":{"type":"string"}},{"name":"purpose","required":true,"in":"query","schema":{"type":"string"}}],"responses":{"200":{"description":"Suggested time slots"},"400":{"$ref":"#/components/responses/BadRequest"},"401":{"$ref":"#/components/responses/Unauthorized"},"403":{"$ref":"#/components/responses/Forbidden"},"429":{"$ref":"#/components/responses/TooManyRequests"},"500":{"$ref":"#/components/responses/ServerError"}},"security":[{"JWT":[]},{"ApiKey":[]}],"summary":"Get AI-suggested meeting slots for a contact (query params)","tags":["Smart Scheduler"],"x-api-key-scopes":["*"]}},"/v1/smart-scheduler/suggested-slots/{contactId}":{"get":{"operationId":"smartScheduler_getSuggestedSlots","parameters":[{"name":"contactId","required":true,"in":"path","schema":{"type":"string"}}],"responses":{"200":{"description":"Suggested time slots"},"400":{"$ref":"#/components/responses/BadRequest"},"401":{"$ref":"#/components/responses/Unauthorized"},"403":{"$ref":"#/components/responses/Forbidden"},"404":{"$ref":"#/components/responses/NotFound"},"429":{"$ref":"#/components/responses/TooManyRequests"},"500":{"$ref":"#/components/responses/ServerError"}},"security":[{"JWT":[]},{"ApiKey":[]}],"summary":"Get AI-suggested meeting slots for a contact","tags":["Smart Scheduler"],"x-api-key-scopes":["*"]}},"/v1/smart-scheduler/availability/{contactId}":{"get":{"operationId":"smartScheduler_getAvailabilityPattern","parameters":[{"name":"contactId","required":true,"in":"path","schema":{"type":"string"}}],"responses":{"200":{"description":"Availability pattern"},"400":{"$ref":"#/components/responses/BadRequest"},"401":{"$ref":"#/components/responses/Unauthorized"},"403":{"$ref":"#/components/responses/Forbidden"},"404":{"$ref":"#/components/responses/NotFound"},"429":{"$ref":"#/components/responses/TooManyRequests"},"500":{"$ref":"#/components/responses/ServerError"}},"security":[{"JWT":[]},{"ApiKey":[]}],"summary":"Get availability pattern for a contact","tags":["Smart Scheduler"],"x-api-key-scopes":["*"]}},"/v1/smart-scheduler/config":{"get":{"operationId":"smartScheduler_getConfig","parameters":[],"responses":{"200":{"description":"Scheduler config"},"401":{"$ref":"#/components/responses/Unauthorized"},"403":{"$ref":"#/components/responses/Forbidden"},"429":{"$ref":"#/components/responses/TooManyRequests"},"500":{"$ref":"#/components/responses/ServerError"}},"security":[{"JWT":[]},{"ApiKey":[]}],"summary":"Get scheduler configuration","tags":["Smart Scheduler"],"x-api-key-scopes":["*"]},"patch":{"operationId":"smartScheduler_updateConfig","parameters":[{"$ref":"#/components/parameters/IdempotencyKey"}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/UpdateSchedulerConfigBody"}}}},"responses":{"200":{"description":"Updated scheduler config"},"400":{"$ref":"#/components/responses/BadRequest"},"401":{"$ref":"#/components/responses/Unauthorized"},"403":{"$ref":"#/components/responses/Forbidden"},"409":{"$ref":"#/components/responses/Conflict"},"429":{"$ref":"#/components/responses/TooManyRequests"},"500":{"$ref":"#/components/responses/ServerError"}},"security":[{"JWT":[]},{"ApiKey":[]}],"summary":"Update scheduler configuration","tags":["Smart Scheduler"],"x-api-key-scopes":["*"]}},"/v1/smart-scheduler/stats":{"get":{"operationId":"smartScheduler_getStats","parameters":[],"responses":{"200":{"description":"Scheduling stats"},"401":{"$ref":"#/components/responses/Unauthorized"},"403":{"$ref":"#/components/responses/Forbidden"},"429":{"$ref":"#/components/responses/TooManyRequests"},"500":{"$ref":"#/components/responses/ServerError"}},"security":[{"JWT":[]},{"ApiKey":[]}],"summary":"Get scheduling statistics","tags":["Smart Scheduler"],"x-api-key-scopes":["*"]}},"/v1/public/scheduling/{token}":{"get":{"operationId":"smartSchedulerPublic_get","parameters":[{"name":"token","required":true,"in":"path","schema":{"type":"string"}},{"name":"tz","required":false,"in":"query","schema":{"type":"string"}}],"responses":{"200":{"description":"","content":{"application/json":{"schema":{"type":"object"}}}},"400":{"$ref":"#/components/responses/BadRequest"},"404":{"$ref":"#/components/responses/NotFound"},"429":{"$ref":"#/components/responses/TooManyRequests"},"500":{"$ref":"#/components/responses/ServerError"}},"summary":"Open times for a scheduling link","tags":["Smart Scheduler"],"security":[]}},"/v1/public/scheduling/{token}/book":{"post":{"operationId":"smartSchedulerPublic_book","parameters":[{"name":"token","required":true,"in":"path","schema":{"type":"string"}},{"$ref":"#/components/parameters/IdempotencyKey"}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/PublicBookingDto"}}}},"responses":{"201":{"description":""},"400":{"$ref":"#/components/responses/BadRequest"},"404":{"$ref":"#/components/responses/NotFound"},"409":{"$ref":"#/components/responses/Conflict"},"429":{"$ref":"#/components/responses/TooManyRequests"},"500":{"$ref":"#/components/responses/ServerError"}},"summary":"Book one of the open times (single use)","tags":["Smart Scheduler"],"security":[]}},"/v1/users/me":{"get":{"operationId":"users_getCurrentUser","parameters":[],"responses":{"200":{"description":""},"401":{"$ref":"#/components/responses/Unauthorized"},"403":{"$ref":"#/components/responses/Forbidden"},"429":{"$ref":"#/components/responses/TooManyRequests"},"500":{"$ref":"#/components/responses/ServerError"}},"security":[{"JWT":[]},{"ApiKey":[]}],"tags":["Users"],"summary":"Get current user","x-api-key-scopes":["*"]},"put":{"operationId":"users_updateCurrentUser","parameters":[],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/UpdateCurrentUserDto"}}}},"responses":{"200":{"description":""},"400":{"$ref":"#/components/responses/BadRequest"},"401":{"$ref":"#/components/responses/Unauthorized"},"403":{"$ref":"#/components/responses/Forbidden"},"429":{"$ref":"#/components/responses/TooManyRequests"},"500":{"$ref":"#/components/responses/ServerError"}},"security":[{"JWT":[]},{"ApiKey":[]}],"tags":["Users"],"summary":"Update current user","x-api-key-scopes":["*"]}},"/v1/users/me/preferences":{"get":{"operationId":"users_getPreferences","parameters":[],"responses":{"200":{"description":"","content":{"application/json":{"schema":{"type":"object"}}}},"401":{"$ref":"#/components/responses/Unauthorized"},"403":{"$ref":"#/components/responses/Forbidden"},"429":{"$ref":"#/components/responses/TooManyRequests"},"500":{"$ref":"#/components/responses/ServerError"}},"security":[{"JWT":[]},{"ApiKey":[]}],"tags":["Users"],"summary":"Get preferences","x-api-key-scopes":["*"]},"put":{"operationId":"users_updatePreferences","parameters":[],"responses":{"200":{"description":"","content":{"application/json":{"schema":{"type":"object"}}}},"400":{"$ref":"#/components/responses/BadRequest"},"401":{"$ref":"#/components/responses/Unauthorized"},"403":{"$ref":"#/components/responses/Forbidden"},"429":{"$ref":"#/components/responses/TooManyRequests"},"500":{"$ref":"#/components/responses/ServerError"}},"security":[{"JWT":[]},{"ApiKey":[]}],"tags":["Users"],"summary":"Update preferences","x-api-key-scopes":["*"]},"patch":{"operationId":"users_patchPreferences","parameters":[{"$ref":"#/components/parameters/IdempotencyKey"}],"responses":{"200":{"description":"","content":{"application/json":{"schema":{"type":"object"}}}},"400":{"$ref":"#/components/responses/BadRequest"},"401":{"$ref":"#/components/responses/Unauthorized"},"403":{"$ref":"#/components/responses/Forbidden"},"409":{"$ref":"#/components/responses/Conflict"},"429":{"$ref":"#/components/responses/TooManyRequests"},"500":{"$ref":"#/components/responses/ServerError"}},"security":[{"JWT":[]},{"ApiKey":[]}],"tags":["Users"],"summary":"Patch preferences","x-api-key-scopes":["*"]}},"/v1/users/me/avatar":{"post":{"operationId":"users_uploadAvatar","parameters":[{"$ref":"#/components/parameters/IdempotencyKey"}],"responses":{"201":{"description":""},"400":{"$ref":"#/components/responses/BadRequest"},"401":{"$ref":"#/components/responses/Unauthorized"},"403":{"$ref":"#/components/responses/Forbidden"},"409":{"$ref":"#/components/responses/Conflict"},"429":{"$ref":"#/components/responses/TooManyRequests"},"500":{"$ref":"#/components/responses/ServerError"}},"security":[{"JWT":[]},{"ApiKey":[]}],"tags":["Users"],"summary":"Upload avatar","x-api-key-scopes":["*"]},"delete":{"operationId":"users_deleteAvatar","parameters":[],"responses":{"200":{"description":""},"400":{"$ref":"#/components/responses/BadRequest"},"401":{"$ref":"#/components/responses/Unauthorized"},"403":{"$ref":"#/components/responses/Forbidden"},"429":{"$ref":"#/components/responses/TooManyRequests"},"500":{"$ref":"#/components/responses/ServerError"}},"security":[{"JWT":[]},{"ApiKey":[]}],"tags":["Users"],"summary":"Delete avatar","x-api-key-scopes":["*"]}},"/v1/users/me/quota":{"get":{"operationId":"users_getQuota","parameters":[{"name":"period","required":false,"in":"query","schema":{"type":"string"}}],"responses":{"200":{"description":""},"400":{"$ref":"#/components/responses/BadRequest"},"401":{"$ref":"#/components/responses/Unauthorized"},"403":{"$ref":"#/components/responses/Forbidden"},"429":{"$ref":"#/components/responses/TooManyRequests"},"500":{"$ref":"#/components/responses/ServerError"}},"security":[{"JWT":[]},{"ApiKey":[]}],"tags":["Users"],"summary":"Get quota","x-api-key-scopes":["*"]},"put":{"operationId":"users_updateQuota","parameters":[],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/UpdateQuotaBody"}}}},"responses":{"200":{"description":""},"400":{"$ref":"#/components/responses/BadRequest"},"401":{"$ref":"#/components/responses/Unauthorized"},"403":{"$ref":"#/components/responses/Forbidden"},"429":{"$ref":"#/components/responses/TooManyRequests"},"500":{"$ref":"#/components/responses/ServerError"}},"security":[{"JWT":[]},{"ApiKey":[]}],"tags":["Users"],"summary":"Update quota","x-api-key-scopes":["*"]}},"/v1/users/me/privacy":{"get":{"operationId":"users_getPrivacyPreferences","parameters":[],"responses":{"200":{"description":"","content":{"application/json":{"schema":{"type":"object"}}}},"401":{"$ref":"#/components/responses/Unauthorized"},"403":{"$ref":"#/components/responses/Forbidden"},"429":{"$ref":"#/components/responses/TooManyRequests"},"500":{"$ref":"#/components/responses/ServerError"}},"security":[{"JWT":[]},{"ApiKey":[]}],"tags":["Users"],"summary":"Get privacy preferences","x-api-key-scopes":["*"]},"put":{"operationId":"users_updatePrivacyPreferences","parameters":[],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/UpdatePrivacyPreferencesDto"}}}},"responses":{"200":{"description":"","content":{"application/json":{"schema":{"type":"object"}}}},"400":{"$ref":"#/components/responses/BadRequest"},"401":{"$ref":"#/components/responses/Unauthorized"},"403":{"$ref":"#/components/responses/Forbidden"},"429":{"$ref":"#/components/responses/TooManyRequests"},"500":{"$ref":"#/components/responses/ServerError"}},"security":[{"JWT":[]},{"ApiKey":[]}],"tags":["Users"],"summary":"Update privacy preferences","x-api-key-scopes":["*"]}},"/v1/users/me/data-requests":{"get":{"operationId":"users_getDataRequests","parameters":[],"responses":{"200":{"description":"","content":{"application/json":{"schema":{"type":"array","items":{"type":"object"}}}}},"401":{"$ref":"#/components/responses/Unauthorized"},"403":{"$ref":"#/components/responses/Forbidden"},"429":{"$ref":"#/components/responses/TooManyRequests"},"500":{"$ref":"#/components/responses/ServerError"}},"security":[{"JWT":[]},{"ApiKey":[]}],"tags":["Users"],"summary":"Get data requests","x-api-key-scopes":["*"]}},"/v1/users/me/data-requests/export":{"post":{"operationId":"users_createDataExportRequest","parameters":[{"name":"user-agent","required":true,"in":"header","schema":{"type":"string"}},{"$ref":"#/components/parameters/IdempotencyKey"}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/CreateDataExportRequestDto"}}}},"responses":{"201":{"description":"","content":{"application/json":{"schema":{"type":"object"}}}},"400":{"$ref":"#/components/responses/BadRequest"},"401":{"$ref":"#/components/responses/Unauthorized"},"403":{"$ref":"#/components/responses/Forbidden"},"409":{"$ref":"#/components/responses/Conflict"},"429":{"$ref":"#/components/responses/TooManyRequests"},"500":{"$ref":"#/components/responses/ServerError"}},"security":[{"JWT":[]},{"ApiKey":[]}],"tags":["Users"],"summary":"Create data export request","x-api-key-scopes":["*"]}},"/v1/users/me/data-requests/deletion":{"post":{"operationId":"users_createDataDeletionRequest","parameters":[{"name":"user-agent","required":true,"in":"header","schema":{"type":"string"}},{"$ref":"#/components/parameters/IdempotencyKey"}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/CreateDataDeletionRequestDto"}}}},"responses":{"201":{"description":"","content":{"application/json":{"schema":{"type":"object"}}}},"400":{"$ref":"#/components/responses/BadRequest"},"401":{"$ref":"#/components/responses/Unauthorized"},"403":{"$ref":"#/components/responses/Forbidden"},"409":{"$ref":"#/components/responses/Conflict"},"429":{"$ref":"#/components/responses/TooManyRequests"},"500":{"$ref":"#/components/responses/ServerError"}},"security":[{"JWT":[]},{"ApiKey":[]}],"tags":["Users"],"summary":"Create data deletion request","x-api-key-scopes":["*"]}},"/v1/users/me/data-requests/account-deletion":{"post":{"operationId":"users_createAccountDeletionRequest","parameters":[{"name":"user-agent","required":true,"in":"header","schema":{"type":"string"}},{"$ref":"#/components/parameters/IdempotencyKey"}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/CreateAccountDeletionRequestDto"}}}},"responses":{"201":{"description":"","content":{"application/json":{"schema":{"type":"object"}}}},"400":{"$ref":"#/components/responses/BadRequest"},"401":{"$ref":"#/components/responses/Unauthorized"},"403":{"$ref":"#/components/responses/Forbidden"},"409":{"$ref":"#/components/responses/Conflict"},"429":{"$ref":"#/components/responses/TooManyRequests"},"500":{"$ref":"#/components/responses/ServerError"}},"security":[{"JWT":[]},{"ApiKey":[]}],"tags":["Users"],"summary":"Create account deletion request","x-api-key-scopes":["*"]}},"/v1/users/me/data-requests/{id}":{"delete":{"operationId":"users_cancelDataRequest","parameters":[{"name":"id","required":true,"in":"path","schema":{"type":"string"}}],"responses":{"200":{"description":"","content":{"application/json":{"schema":{"type":"object"}}}},"400":{"$ref":"#/components/responses/BadRequest"},"401":{"$ref":"#/components/responses/Unauthorized"},"403":{"$ref":"#/components/responses/Forbidden"},"404":{"$ref":"#/components/responses/NotFound"},"429":{"$ref":"#/components/responses/TooManyRequests"},"500":{"$ref":"#/components/responses/ServerError"}},"security":[{"JWT":[]},{"ApiKey":[]}],"tags":["Users"],"summary":"Cancel data request","x-api-key-scopes":["*"]}},"/v1/users/me/data-retention":{"get":{"operationId":"users_getDataRetentionInfo","parameters":[],"responses":{"200":{"description":"","content":{"application/json":{"schema":{"type":"object"}}}},"401":{"$ref":"#/components/responses/Unauthorized"},"403":{"$ref":"#/components/responses/Forbidden"},"429":{"$ref":"#/components/responses/TooManyRequests"},"500":{"$ref":"#/components/responses/ServerError"}},"security":[{"JWT":[]},{"ApiKey":[]}],"tags":["Users"],"summary":"Get data retention info","x-api-key-scopes":["*"]}},"/v1/users/me/storage":{"get":{"operationId":"users_getStorageUsage","parameters":[],"responses":{"200":{"description":"","content":{"application/json":{"schema":{"type":"object"}}}},"401":{"$ref":"#/components/responses/Unauthorized"},"403":{"$ref":"#/components/responses/Forbidden"},"429":{"$ref":"#/components/responses/TooManyRequests"},"500":{"$ref":"#/components/responses/ServerError"}},"security":[{"JWT":[]},{"ApiKey":[]}],"tags":["Users"],"summary":"Get storage usage","x-api-key-scopes":["*"]}},"/v1/users/me/conversations":{"delete":{"operationId":"users_clearConversationHistory","parameters":[],"responses":{"200":{"description":""},"400":{"$ref":"#/components/responses/BadRequest"},"401":{"$ref":"#/components/responses/Unauthorized"},"403":{"$ref":"#/components/responses/Forbidden"},"429":{"$ref":"#/components/responses/TooManyRequests"},"500":{"$ref":"#/components/responses/ServerError"}},"security":[{"JWT":[]},{"ApiKey":[]}],"tags":["Users"],"summary":"Clear conversation history","x-api-key-scopes":["*"]}},"/v1/users/me/cache":{"delete":{"operationId":"users_clearCache","parameters":[],"responses":{"200":{"description":""},"400":{"$ref":"#/components/responses/BadRequest"},"401":{"$ref":"#/components/responses/Unauthorized"},"403":{"$ref":"#/components/responses/Forbidden"},"429":{"$ref":"#/components/responses/TooManyRequests"},"500":{"$ref":"#/components/responses/ServerError"}},"security":[{"JWT":[]},{"ApiKey":[]}],"tags":["Users"],"summary":"Clear cache","x-api-key-scopes":["*"]}},"/v1/users/me/email-preferences":{"get":{"operationId":"users_getEmailNotificationPreferences","parameters":[],"responses":{"200":{"description":""},"401":{"$ref":"#/components/responses/Unauthorized"},"403":{"$ref":"#/components/responses/Forbidden"},"429":{"$ref":"#/components/responses/TooManyRequests"},"500":{"$ref":"#/components/responses/ServerError"}},"security":[{"JWT":[]},{"ApiKey":[]}],"tags":["Users"],"summary":"Get email notification preferences","x-api-key-scopes":["*"]},"put":{"operationId":"users_updateEmailNotificationPreferences","parameters":[],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/UpdateEmailNotificationPreferencesBody"}}}},"responses":{"200":{"description":""},"400":{"$ref":"#/components/responses/BadRequest"},"401":{"$ref":"#/components/responses/Unauthorized"},"403":{"$ref":"#/components/responses/Forbidden"},"429":{"$ref":"#/components/responses/TooManyRequests"},"500":{"$ref":"#/components/responses/ServerError"}},"security":[{"JWT":[]},{"ApiKey":[]}],"tags":["Users"],"summary":"Update email notification preferences","x-api-key-scopes":["*"]},"patch":{"operationId":"users_patchEmailNotificationPreferences","parameters":[{"$ref":"#/components/parameters/IdempotencyKey"}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/PatchEmailNotificationPreferencesBody"}}}},"responses":{"200":{"description":""},"400":{"$ref":"#/components/responses/BadRequest"},"401":{"$ref":"#/components/responses/Unauthorized"},"403":{"$ref":"#/components/responses/Forbidden"},"409":{"$ref":"#/components/responses/Conflict"},"429":{"$ref":"#/components/responses/TooManyRequests"},"500":{"$ref":"#/components/responses/ServerError"}},"security":[{"JWT":[]},{"ApiKey":[]}],"tags":["Users"],"summary":"Patch email notification preferences","x-api-key-scopes":["*"]}},"/v1/email-templates":{"get":{"operationId":"emailTemplates_getTemplates","parameters":[{"name":"category","required":false,"in":"query","schema":{"type":"string"}},{"name":"search","required":false,"in":"query","schema":{"type":"string"}},{"name":"status","required":false,"in":"query","schema":{"type":"string"}},{"name":"page","required":false,"in":"query","schema":{"type":"string"}},{"name":"pageSize","required":false,"in":"query","schema":{"type":"string"}}],"responses":{"200":{"description":""},"400":{"$ref":"#/components/responses/BadRequest"},"401":{"$ref":"#/components/responses/Unauthorized"},"403":{"$ref":"#/components/responses/Forbidden"},"429":{"$ref":"#/components/responses/TooManyRequests"},"500":{"$ref":"#/components/responses/ServerError"}},"security":[{"JWT":[]},{"ApiKey":[]}],"summary":"Get all accessible email templates","tags":["Email Templates"],"x-api-key-scopes":["*"]},"post":{"operationId":"emailTemplates_createTemplate","parameters":[{"$ref":"#/components/parameters/IdempotencyKey"}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/CreateTemplateBody"}}}},"responses":{"201":{"description":""},"400":{"$ref":"#/components/responses/BadRequest"},"401":{"$ref":"#/components/responses/Unauthorized"},"403":{"$ref":"#/components/responses/Forbidden"},"409":{"$ref":"#/components/responses/Conflict"},"429":{"$ref":"#/components/responses/TooManyRequests"},"500":{"$ref":"#/components/responses/ServerError"}},"security":[{"JWT":[]},{"ApiKey":[]}],"summary":"Create a new email template","tags":["Email Templates"],"x-api-key-scopes":["*"]}},"/v1/email-templates/stats":{"get":{"operationId":"emailTemplates_getStats","parameters":[],"responses":{"200":{"description":""},"401":{"$ref":"#/components/responses/Unauthorized"},"403":{"$ref":"#/components/responses/Forbidden"},"429":{"$ref":"#/components/responses/TooManyRequests"},"500":{"$ref":"#/components/responses/ServerError"}},"security":[{"JWT":[]},{"ApiKey":[]}],"summary":"Get email template statistics for current user","tags":["Email Templates"],"x-api-key-scopes":["*"]}},"/v1/email-templates/{id}":{"get":{"operationId":"emailTemplates_getTemplate","parameters":[{"name":"id","required":true,"in":"path","schema":{"type":"string"}}],"responses":{"200":{"description":""},"400":{"$ref":"#/components/responses/BadRequest"},"401":{"$ref":"#/components/responses/Unauthorized"},"403":{"$ref":"#/components/responses/Forbidden"},"404":{"$ref":"#/components/responses/NotFound"},"429":{"$ref":"#/components/responses/TooManyRequests"},"500":{"$ref":"#/components/responses/ServerError"}},"security":[{"JWT":[]},{"ApiKey":[]}],"summary":"Get email template by ID","tags":["Email Templates"],"x-api-key-scopes":["*"]},"put":{"operationId":"emailTemplates_updateTemplate","parameters":[{"name":"id","required":true,"in":"path","schema":{"type":"string"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/UpdateTemplateBody"}}}},"responses":{"200":{"description":""},"400":{"$ref":"#/components/responses/BadRequest"},"401":{"$ref":"#/components/responses/Unauthorized"},"403":{"$ref":"#/components/responses/Forbidden"},"404":{"$ref":"#/components/responses/NotFound"},"429":{"$ref":"#/components/responses/TooManyRequests"},"500":{"$ref":"#/components/responses/ServerError"}},"security":[{"JWT":[]},{"ApiKey":[]}],"summary":"Update an email template","tags":["Email Templates"],"x-api-key-scopes":["*"]},"delete":{"operationId":"emailTemplates_deleteTemplate","parameters":[{"name":"id","required":true,"in":"path","schema":{"type":"string"}}],"responses":{"200":{"description":""},"400":{"$ref":"#/components/responses/BadRequest"},"401":{"$ref":"#/components/responses/Unauthorized"},"403":{"$ref":"#/components/responses/Forbidden"},"404":{"$ref":"#/components/responses/NotFound"},"429":{"$ref":"#/components/responses/TooManyRequests"},"500":{"$ref":"#/components/responses/ServerError"}},"security":[{"JWT":[]},{"ApiKey":[]}],"summary":"Delete an email template","tags":["Email Templates"],"x-api-key-scopes":["*"]}},"/v1/email-templates/{id}/clone":{"post":{"operationId":"emailTemplates_cloneTemplate","parameters":[{"name":"id","required":true,"in":"path","schema":{"type":"string"}},{"$ref":"#/components/parameters/IdempotencyKey"}],"responses":{"201":{"description":""},"400":{"$ref":"#/components/responses/BadRequest"},"401":{"$ref":"#/components/responses/Unauthorized"},"403":{"$ref":"#/components/responses/Forbidden"},"404":{"$ref":"#/components/responses/NotFound"},"409":{"$ref":"#/components/responses/Conflict"},"429":{"$ref":"#/components/responses/TooManyRequests"},"500":{"$ref":"#/components/responses/ServerError"}},"security":[{"JWT":[]},{"ApiKey":[]}],"summary":"Clone an email template","tags":["Email Templates"],"x-api-key-scopes":["*"]}},"/v1/email-templates/{id}/preview":{"post":{"operationId":"emailTemplates_previewTemplate","parameters":[{"name":"id","required":true,"in":"path","schema":{"type":"string"}},{"$ref":"#/components/parameters/IdempotencyKey"}],"responses":{"201":{"description":""},"400":{"$ref":"#/components/responses/BadRequest"},"401":{"$ref":"#/components/responses/Unauthorized"},"403":{"$ref":"#/components/responses/Forbidden"},"404":{"$ref":"#/components/responses/NotFound"},"409":{"$ref":"#/components/responses/Conflict"},"429":{"$ref":"#/components/responses/TooManyRequests"},"500":{"$ref":"#/components/responses/ServerError"}},"security":[{"JWT":[]},{"ApiKey":[]}],"summary":"Preview template with variables","tags":["Email Templates"],"x-api-key-scopes":["*"]}},"/v1/coaching/goals":{"get":{"operationId":"coachingGoals_getGoals","parameters":[],"responses":{"200":{"description":""},"401":{"$ref":"#/components/responses/Unauthorized"},"403":{"$ref":"#/components/responses/Forbidden"},"429":{"$ref":"#/components/responses/TooManyRequests"},"500":{"$ref":"#/components/responses/ServerError"}},"security":[{"JWT":[]},{"ApiKey":[]}],"tags":["Coaching Goals"],"summary":"Get goals","x-api-key-scopes":["*"]},"post":{"operationId":"coachingGoals_createGoal","parameters":[{"$ref":"#/components/parameters/IdempotencyKey"}],"responses":{"201":{"description":""},"400":{"$ref":"#/components/responses/BadRequest"},"401":{"$ref":"#/components/responses/Unauthorized"},"403":{"$ref":"#/components/responses/Forbidden"},"409":{"$ref":"#/components/responses/Conflict"},"429":{"$ref":"#/components/responses/TooManyRequests"},"500":{"$ref":"#/components/responses/ServerError"}},"security":[{"JWT":[]},{"ApiKey":[]}],"tags":["Coaching Goals"],"summary":"Create goal","x-api-key-scopes":["*"]}},"/v1/coaching/goals/{id}":{"put":{"operationId":"coachingGoals_updateGoal","parameters":[{"name":"id","required":true,"in":"path","schema":{"type":"string"}}],"responses":{"200":{"description":"","content":{"application/json":{"schema":{"type":"object"}}}},"400":{"$ref":"#/components/responses/BadRequest"},"401":{"$ref":"#/components/responses/Unauthorized"},"403":{"$ref":"#/components/responses/Forbidden"},"404":{"$ref":"#/components/responses/NotFound"},"429":{"$ref":"#/components/responses/TooManyRequests"},"500":{"$ref":"#/components/responses/ServerError"}},"security":[{"JWT":[]},{"ApiKey":[]}],"tags":["Coaching Goals"],"summary":"Update goal","x-api-key-scopes":["*"]},"delete":{"operationId":"coachingGoals_deleteGoal","parameters":[{"name":"id","required":true,"in":"path","schema":{"type":"string"}}],"responses":{"200":{"description":""},"400":{"$ref":"#/components/responses/BadRequest"},"401":{"$ref":"#/components/responses/Unauthorized"},"403":{"$ref":"#/components/responses/Forbidden"},"404":{"$ref":"#/components/responses/NotFound"},"429":{"$ref":"#/components/responses/TooManyRequests"},"500":{"$ref":"#/components/responses/ServerError"}},"security":[{"JWT":[]},{"ApiKey":[]}],"tags":["Coaching Goals"],"summary":"Delete goal","x-api-key-scopes":["*"]}},"/v1/coaching/patterns":{"get":{"operationId":"coachingGoals_getPatterns","parameters":[],"responses":{"200":{"description":""},"401":{"$ref":"#/components/responses/Unauthorized"},"403":{"$ref":"#/components/responses/Forbidden"},"429":{"$ref":"#/components/responses/TooManyRequests"},"500":{"$ref":"#/components/responses/ServerError"}},"security":[{"JWT":[]},{"ApiKey":[]}],"tags":["Coaching Goals"],"summary":"Get patterns","x-api-key-scopes":["*"]},"post":{"operationId":"coachingGoals_createPattern","parameters":[{"$ref":"#/components/parameters/IdempotencyKey"}],"responses":{"201":{"description":""},"400":{"$ref":"#/components/responses/BadRequest"},"401":{"$ref":"#/components/responses/Unauthorized"},"403":{"$ref":"#/components/responses/Forbidden"},"409":{"$ref":"#/components/responses/Conflict"},"429":{"$ref":"#/components/responses/TooManyRequests"},"500":{"$ref":"#/components/responses/ServerError"}},"security":[{"JWT":[]},{"ApiKey":[]}],"tags":["Coaching Goals"],"summary":"Create pattern","x-api-key-scopes":["*"]}},"/v1/coaching/patterns/{id}":{"put":{"operationId":"coachingGoals_updatePattern","parameters":[{"name":"id","required":true,"in":"path","schema":{"type":"string"}}],"responses":{"200":{"description":"","content":{"application/json":{"schema":{"type":"object"}}}},"400":{"$ref":"#/components/responses/BadRequest"},"401":{"$ref":"#/components/responses/Unauthorized"},"403":{"$ref":"#/components/responses/Forbidden"},"404":{"$ref":"#/components/responses/NotFound"},"429":{"$ref":"#/components/responses/TooManyRequests"},"500":{"$ref":"#/components/responses/ServerError"}},"security":[{"JWT":[]},{"ApiKey":[]}],"tags":["Coaching Goals"],"summary":"Update pattern","x-api-key-scopes":["*"]},"delete":{"operationId":"coachingGoals_deletePattern","parameters":[{"name":"id","required":true,"in":"path","schema":{"type":"string"}}],"responses":{"200":{"description":""},"400":{"$ref":"#/components/responses/BadRequest"},"401":{"$ref":"#/components/responses/Unauthorized"},"403":{"$ref":"#/components/responses/Forbidden"},"404":{"$ref":"#/components/responses/NotFound"},"429":{"$ref":"#/components/responses/TooManyRequests"},"500":{"$ref":"#/components/responses/ServerError"}},"security":[{"JWT":[]},{"ApiKey":[]}],"tags":["Coaching Goals"],"summary":"Delete pattern","x-api-key-scopes":["*"]}},"/v1/coaching/effectiveness/summary":{"get":{"operationId":"coachingEffectiveness_getEffectivenessSummary","parameters":[{"name":"startDate","required":false,"in":"query","schema":{"type":"string"}},{"name":"endDate","required":false,"in":"query","schema":{"type":"string"}},{"name":"lookbackDays","required":false,"in":"query","schema":{"minimum":1,"maximum":365,"default":90,"type":"number"}}],"responses":{"200":{"description":"","content":{"application/json":{"schema":{"type":"object"}}}},"400":{"$ref":"#/components/responses/BadRequest"},"401":{"$ref":"#/components/responses/Unauthorized"},"403":{"$ref":"#/components/responses/Forbidden"},"429":{"$ref":"#/components/responses/TooManyRequests"},"500":{"$ref":"#/components/responses/ServerError"}},"security":[{"JWT":[]},{"ApiKey":[]}],"summary":"GET /coaching/effectiveness/summary\nGet overall effectiveness dashboard for the current user (manager)","tags":["Coaching Effectiveness"],"x-api-key-scopes":["*"]}},"/v1/coaching/effectiveness/rep/{repId}":{"get":{"operationId":"coachingEffectiveness_getRepEffectiveness","parameters":[{"name":"repId","required":true,"in":"path","schema":{"type":"string"}},{"name":"startDate","required":false,"in":"query","schema":{"type":"string"}},{"name":"endDate","required":false,"in":"query","schema":{"type":"string"}},{"name":"lookbackDays","required":false,"in":"query","schema":{"minimum":1,"maximum":365,"default":90,"type":"number"}},{"name":"repId","required":false,"in":"query","schema":{"type":"string"}}],"responses":{"200":{"description":"","content":{"application/json":{"schema":{"type":"object"}}}},"400":{"$ref":"#/components/responses/BadRequest"},"401":{"$ref":"#/components/responses/Unauthorized"},"403":{"$ref":"#/components/responses/Forbidden"},"404":{"$ref":"#/components/responses/NotFound"},"429":{"$ref":"#/components/responses/TooManyRequests"},"500":{"$ref":"#/components/responses/ServerError"}},"security":[{"JWT":[]},{"ApiKey":[]}],"summary":"GET /coaching/effectiveness/rep/:repId\nGet detailed effectiveness report for a specific rep","tags":["Coaching Effectiveness"],"x-api-key-scopes":["*"]}},"/v1/coaching/effectiveness/comparison":{"get":{"operationId":"coachingEffectiveness_getTeamComparison","parameters":[{"name":"startDate","required":false,"in":"query","schema":{"type":"string"}},{"name":"endDate","required":false,"in":"query","schema":{"type":"string"}},{"name":"lookbackDays","required":false,"in":"query","schema":{"minimum":1,"maximum":365,"default":90,"type":"number"}}],"responses":{"200":{"description":"","content":{"application/json":{"schema":{"type":"object"}}}},"400":{"$ref":"#/components/responses/BadRequest"},"401":{"$ref":"#/components/responses/Unauthorized"},"403":{"$ref":"#/components/responses/Forbidden"},"429":{"$ref":"#/components/responses/TooManyRequests"},"500":{"$ref":"#/components/responses/ServerError"}},"security":[{"JWT":[]},{"ApiKey":[]}],"summary":"GET /coaching/effectiveness/comparison\nGet team comparison metrics for the current manager","tags":["Coaching Effectiveness"],"x-api-key-scopes":["*"]}},"/v1/coaching/effectiveness/my-progress":{"get":{"operationId":"coachingEffectiveness_getMyProgress","parameters":[{"name":"startDate","required":false,"in":"query","schema":{"type":"string"}},{"name":"endDate","required":false,"in":"query","schema":{"type":"string"}},{"name":"lookbackDays","required":false,"in":"query","schema":{"minimum":1,"maximum":365,"default":90,"type":"number"}},{"name":"repId","required":false,"in":"query","schema":{"type":"string"}}],"responses":{"200":{"description":"","content":{"application/json":{"schema":{"type":"object"}}}},"400":{"$ref":"#/components/responses/BadRequest"},"401":{"$ref":"#/components/responses/Unauthorized"},"403":{"$ref":"#/components/responses/Forbidden"},"429":{"$ref":"#/components/responses/TooManyRequests"},"500":{"$ref":"#/components/responses/ServerError"}},"security":[{"JWT":[]},{"ApiKey":[]}],"summary":"GET /coaching/effectiveness/my-progress\nGet effectiveness metrics for the current user (as a rep)","tags":["Coaching Effectiveness"],"x-api-key-scopes":["*"]}},"/v1/dashboard/hot-leads":{"get":{"operationId":"dashboard_getHotLeads","parameters":[{"name":"mode","required":false,"in":"query","schema":{"type":"string"}},{"name":"limit","required":false,"in":"query","schema":{"type":"string"}}],"responses":{"200":{"description":"","content":{"application/json":{"schema":{"type":"object"}}}},"400":{"$ref":"#/components/responses/BadRequest"},"401":{"$ref":"#/components/responses/Unauthorized"},"403":{"$ref":"#/components/responses/Forbidden"},"429":{"$ref":"#/components/responses/TooManyRequests"},"500":{"$ref":"#/components/responses/ServerError"}},"security":[{"JWT":[]},{"ApiKey":[]}],"summary":"Get hot leads based on mode","tags":["Dashboard"],"x-api-key-scopes":["*"]}},"/v1/dashboard/upcoming-meetings":{"get":{"operationId":"dashboard_getUpcomingMeetings","parameters":[{"name":"mode","required":false,"in":"query","schema":{"type":"string"}},{"name":"limit","required":false,"in":"query","schema":{"type":"string"}}],"responses":{"200":{"description":"","content":{"application/json":{"schema":{"type":"object"}}}},"400":{"$ref":"#/components/responses/BadRequest"},"401":{"$ref":"#/components/responses/Unauthorized"},"403":{"$ref":"#/components/responses/Forbidden"},"429":{"$ref":"#/components/responses/TooManyRequests"},"500":{"$ref":"#/components/responses/ServerError"}},"security":[{"JWT":[]},{"ApiKey":[]}],"summary":"Get upcoming meetings/demos based on mode","tags":["Dashboard"],"x-api-key-scopes":["*"]}},"/v1/dashboard/stats":{"get":{"operationId":"dashboard_getStats","parameters":[{"name":"mode","required":false,"in":"query","schema":{"type":"string"}}],"responses":{"200":{"description":"","content":{"application/json":{"schema":{"type":"object"}}}},"400":{"$ref":"#/components/responses/BadRequest"},"401":{"$ref":"#/components/responses/Unauthorized"},"403":{"$ref":"#/components/responses/Forbidden"},"429":{"$ref":"#/components/responses/TooManyRequests"},"500":{"$ref":"#/components/responses/ServerError"}},"security":[{"JWT":[]},{"ApiKey":[]}],"summary":"Get dashboard stats based on mode\nReturns real-time metrics calculated from actual data","tags":["Dashboard"],"x-api-key-scopes":["*"]}},"/v1/dashboard/rep-metrics":{"get":{"operationId":"dashboard_getRepMetrics","parameters":[{"name":"mode","required":false,"in":"query","schema":{"type":"string"}}],"responses":{"200":{"description":"","content":{"application/json":{"schema":{"type":"object"}}}},"400":{"$ref":"#/components/responses/BadRequest"},"401":{"$ref":"#/components/responses/Unauthorized"},"403":{"$ref":"#/components/responses/Forbidden"},"429":{"$ref":"#/components/responses/TooManyRequests"},"500":{"$ref":"#/components/responses/ServerError"}},"security":[{"JWT":[]},{"ApiKey":[]}],"summary":"Get comprehensive rep dashboard data in one call\nWorks with local, salesforce, and oracle_cx modes","tags":["Dashboard"],"x-api-key-scopes":["*"]}},"/v1/import-export/custom-objects/{apiName}/resolve-lookups":{"post":{"operationId":"importExport_resolveCustomLookups","parameters":[{"name":"apiName","required":true,"in":"path","schema":{"type":"string"}},{"$ref":"#/components/parameters/IdempotencyKey"}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ResolveCustomLookupsDto"}}}},"responses":{"201":{"description":"","content":{"application/json":{"schema":{"type":"object"}}}},"400":{"$ref":"#/components/responses/BadRequest"},"401":{"$ref":"#/components/responses/Unauthorized"},"403":{"$ref":"#/components/responses/Forbidden"},"404":{"$ref":"#/components/responses/NotFound"},"409":{"$ref":"#/components/responses/Conflict"},"429":{"$ref":"#/components/responses/TooManyRequests"},"500":{"$ref":"#/components/responses/ServerError"}},"security":[{"JWT":[]},{"ApiKey":[]}],"summary":"Custom object imports: resolve a lookup column's names (or emails / ids)\nto record ids the caller can see. The rows are then sent to the Bulk API\nas object `custom:<apiName>`, which writes through CustomObjectsService.","tags":["Import/Export"],"x-api-key-scopes":["*"]}},"/v1/import-export/preview":{"post":{"operationId":"importExport_previewImport","parameters":[{"name":"entityType","required":true,"in":"query","schema":{"type":"string"}},{"$ref":"#/components/parameters/IdempotencyKey"}],"responses":{"201":{"description":"","content":{"application/json":{"schema":{"type":"object"}}}},"400":{"$ref":"#/components/responses/BadRequest"},"401":{"$ref":"#/components/responses/Unauthorized"},"403":{"$ref":"#/components/responses/Forbidden"},"409":{"$ref":"#/components/responses/Conflict"},"429":{"$ref":"#/components/responses/TooManyRequests"},"500":{"$ref":"#/components/responses/ServerError"}},"security":[{"JWT":[]},{"ApiKey":[]}],"summary":"Preview import file - returns headers, sample rows, and suggested mappings","tags":["Import/Export"],"x-api-key-scopes":["*"]}},"/v1/import-export/import":{"post":{"operationId":"importExport_importRecords","parameters":[{"$ref":"#/components/parameters/IdempotencyKey"}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ImportOptionsDto"}}}},"responses":{"201":{"description":"","content":{"application/json":{"schema":{"type":"object"}}}},"400":{"$ref":"#/components/responses/BadRequest"},"401":{"$ref":"#/components/responses/Unauthorized"},"403":{"$ref":"#/components/responses/Forbidden"},"409":{"$ref":"#/components/responses/Conflict"},"429":{"$ref":"#/components/responses/TooManyRequests"},"500":{"$ref":"#/components/responses/ServerError"}},"security":[{"JWT":[]},{"ApiKey":[]}],"summary":"Import records from file\n\nRequires the organization Owner or Admin role.","tags":["Import/Export"],"x-api-key-scopes":["*"]}},"/v1/import-export/export":{"post":{"operationId":"importExport_exportRecords","parameters":[{"$ref":"#/components/parameters/IdempotencyKey"}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ExportRequestDto"}}}},"responses":{"201":{"description":"","content":{"application/json":{"schema":{"type":"object"}}}},"400":{"$ref":"#/components/responses/BadRequest"},"401":{"$ref":"#/components/responses/Unauthorized"},"403":{"$ref":"#/components/responses/Forbidden"},"409":{"$ref":"#/components/responses/Conflict"},"429":{"$ref":"#/components/responses/TooManyRequests"},"500":{"$ref":"#/components/responses/ServerError"}},"security":[{"JWT":[]},{"ApiKey":[]}],"summary":"Export records to file","tags":["Import/Export"],"x-api-key-scopes":["*"]}},"/v1/import-export/download/{fileName}":{"get":{"operationId":"importExport_downloadExport","parameters":[{"name":"fileName","required":true,"in":"path","schema":{"type":"string"}}],"responses":{"200":{"description":""},"400":{"$ref":"#/components/responses/BadRequest"},"401":{"$ref":"#/components/responses/Unauthorized"},"403":{"$ref":"#/components/responses/Forbidden"},"404":{"$ref":"#/components/responses/NotFound"},"429":{"$ref":"#/components/responses/TooManyRequests"},"500":{"$ref":"#/components/responses/ServerError"}},"security":[{"JWT":[]},{"ApiKey":[]}],"summary":"Download exported file","tags":["Import/Export"],"x-api-key-scopes":["*"]}},"/v1/import-export/fields/{entityType}":{"get":{"operationId":"importExport_getExportFields","parameters":[{"name":"entityType","required":true,"in":"path","schema":{"type":"string"}}],"responses":{"200":{"description":"","content":{"application/json":{"schema":{"type":"array","items":{"type":"object"}}}}},"400":{"$ref":"#/components/responses/BadRequest"},"401":{"$ref":"#/components/responses/Unauthorized"},"403":{"$ref":"#/components/responses/Forbidden"},"404":{"$ref":"#/components/responses/NotFound"},"429":{"$ref":"#/components/responses/TooManyRequests"},"500":{"$ref":"#/components/responses/ServerError"}},"security":[{"JWT":[]},{"ApiKey":[]}],"summary":"Get available export fields for an entity type","tags":["Import/Export"],"x-api-key-scopes":["*"]}},"/v1/import-export/template/{entityType}":{"get":{"operationId":"importExport_getImportTemplate","parameters":[{"name":"entityType","required":true,"in":"path","schema":{"type":"string"}},{"name":"format","required":false,"in":"query","schema":{"type":"string"}}],"responses":{"200":{"description":""},"400":{"$ref":"#/components/responses/BadRequest"},"401":{"$ref":"#/components/responses/Unauthorized"},"403":{"$ref":"#/components/responses/Forbidden"},"404":{"$ref":"#/components/responses/NotFound"},"429":{"$ref":"#/components/responses/TooManyRequests"},"500":{"$ref":"#/components/responses/ServerError"}},"security":[{"JWT":[]},{"ApiKey":[]}],"summary":"Get import template (sample file)","tags":["Import/Export"],"x-api-key-scopes":["*"]}},"/v1/import-export/crm-template/{crmType}/{entityType}":{"get":{"operationId":"importExport_getCRMTemplate","parameters":[{"name":"crmType","required":true,"in":"path","schema":{"type":"string"}},{"name":"entityType","required":true,"in":"path","schema":{"type":"string"}}],"responses":{"200":{"description":"","content":{"application/json":{"schema":{"type":"object"}}}},"400":{"$ref":"#/components/responses/BadRequest"},"401":{"$ref":"#/components/responses/Unauthorized"},"403":{"$ref":"#/components/responses/Forbidden"},"404":{"$ref":"#/components/responses/NotFound"},"429":{"$ref":"#/components/responses/TooManyRequests"},"500":{"$ref":"#/components/responses/ServerError"}},"security":[{"JWT":[]},{"ApiKey":[]}],"tags":["Import/Export"],"summary":"Get crmtemplate","x-api-key-scopes":["*"]}},"/v1/import-export/suggest-mappings":{"post":{"operationId":"importExport_suggestMappings","parameters":[{"$ref":"#/components/parameters/IdempotencyKey"}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/SuggestMappingsBody"}}}},"responses":{"201":{"description":"","content":{"application/json":{"schema":{"type":"array","items":{"type":"object"}}}}},"400":{"$ref":"#/components/responses/BadRequest"},"401":{"$ref":"#/components/responses/Unauthorized"},"403":{"$ref":"#/components/responses/Forbidden"},"409":{"$ref":"#/components/responses/Conflict"},"429":{"$ref":"#/components/responses/TooManyRequests"},"500":{"$ref":"#/components/responses/ServerError"}},"security":[{"JWT":[]},{"ApiKey":[]}],"summary":"AI-powered field mapping suggestions","tags":["Import/Export"],"x-api-key-scopes":["*"]}},"/v1/import-export/detect-crm":{"post":{"operationId":"importExport_detectCRM","parameters":[{"$ref":"#/components/parameters/IdempotencyKey"}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/DetectCRMBody"}}}},"responses":{"201":{"description":"","content":{"application/json":{"schema":{"type":"object"}}}},"400":{"$ref":"#/components/responses/BadRequest"},"401":{"$ref":"#/components/responses/Unauthorized"},"403":{"$ref":"#/components/responses/Forbidden"},"409":{"$ref":"#/components/responses/Conflict"},"429":{"$ref":"#/components/responses/TooManyRequests"},"500":{"$ref":"#/components/responses/ServerError"}},"security":[{"JWT":[]},{"ApiKey":[]}],"summary":"Detect CRM type from CSV headers","tags":["Import/Export"],"x-api-key-scopes":["*"]}},"/v1/import-export/migrations":{"post":{"operationId":"importExport_createMigration","parameters":[{"$ref":"#/components/parameters/IdempotencyKey"}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/CreateMigrationBody"}}}},"responses":{"201":{"description":""},"400":{"$ref":"#/components/responses/BadRequest"},"401":{"$ref":"#/components/responses/Unauthorized"},"403":{"$ref":"#/components/responses/Forbidden"},"409":{"$ref":"#/components/responses/Conflict"},"429":{"$ref":"#/components/responses/TooManyRequests"},"500":{"$ref":"#/components/responses/ServerError"}},"security":[{"JWT":[]},{"ApiKey":[]}],"summary":"Create a new migration job\n\nRequires the organization Owner or Admin role.","tags":["Import/Export"],"x-api-key-scopes":["*"]},"get":{"operationId":"importExport_getMigrationHistory","parameters":[{"name":"sourceCRM","required":false,"in":"query","schema":{"type":"string"}},{"name":"entityType","required":false,"in":"query","schema":{"type":"string"}},{"name":"status","required":false,"in":"query","schema":{"type":"string"}},{"name":"limit","required":false,"in":"query","schema":{"type":"string"}},{"name":"offset","required":false,"in":"query","schema":{"type":"string"}}],"responses":{"200":{"description":""},"400":{"$ref":"#/components/responses/BadRequest"},"401":{"$ref":"#/components/responses/Unauthorized"},"403":{"$ref":"#/components/responses/Forbidden"},"429":{"$ref":"#/components/responses/TooManyRequests"},"500":{"$ref":"#/components/responses/ServerError"}},"security":[{"JWT":[]},{"ApiKey":[]}],"summary":"Get migration history for organization\n\nScoped to your organization.","tags":["Import/Export"],"x-api-key-scopes":["*"]}},"/v1/import-export/migrations/stats":{"get":{"operationId":"importExport_getMigrationStats","parameters":[],"responses":{"200":{"description":""},"401":{"$ref":"#/components/responses/Unauthorized"},"403":{"$ref":"#/components/responses/Forbidden"},"429":{"$ref":"#/components/responses/TooManyRequests"},"500":{"$ref":"#/components/responses/ServerError"}},"security":[{"JWT":[]},{"ApiKey":[]}],"summary":"Get migration statistics\n\nScoped to your organization.","tags":["Import/Export"],"x-api-key-scopes":["*"]}},"/v1/import-export/migrations/{id}":{"get":{"operationId":"importExport_getMigrationStatus","parameters":[{"name":"id","required":true,"in":"path","schema":{"type":"string"}}],"responses":{"200":{"description":"","content":{"application/json":{"schema":{"type":"object"}}}},"400":{"$ref":"#/components/responses/BadRequest"},"401":{"$ref":"#/components/responses/Unauthorized"},"403":{"$ref":"#/components/responses/Forbidden"},"404":{"$ref":"#/components/responses/NotFound"},"429":{"$ref":"#/components/responses/TooManyRequests"},"500":{"$ref":"#/components/responses/ServerError"}},"security":[{"JWT":[]},{"ApiKey":[]}],"summary":"Get migration status and progress\n\nScoped to your organization.","tags":["Import/Export"],"x-api-key-scopes":["*"]},"delete":{"operationId":"importExport_deleteMigration","parameters":[{"name":"id","required":true,"in":"path","schema":{"type":"string"}}],"responses":{"200":{"description":""},"400":{"$ref":"#/components/responses/BadRequest"},"401":{"$ref":"#/components/responses/Unauthorized"},"403":{"$ref":"#/components/responses/Forbidden"},"404":{"$ref":"#/components/responses/NotFound"},"429":{"$ref":"#/components/responses/TooManyRequests"},"500":{"$ref":"#/components/responses/ServerError"}},"security":[{"JWT":[]},{"ApiKey":[]}],"summary":"Delete a migration record\n\nOnly migrations in your organization can be deleted.","tags":["Import/Export"],"x-api-key-scopes":["*"]}},"/v1/import-export/migrations/{id}/cancel":{"post":{"operationId":"importExport_cancelMigration","parameters":[{"name":"id","required":true,"in":"path","schema":{"type":"string"}},{"$ref":"#/components/parameters/IdempotencyKey"}],"responses":{"201":{"description":""},"400":{"$ref":"#/components/responses/BadRequest"},"401":{"$ref":"#/components/responses/Unauthorized"},"403":{"$ref":"#/components/responses/Forbidden"},"404":{"$ref":"#/components/responses/NotFound"},"409":{"$ref":"#/components/responses/Conflict"},"429":{"$ref":"#/components/responses/TooManyRequests"},"500":{"$ref":"#/components/responses/ServerError"}},"security":[{"JWT":[]},{"ApiKey":[]}],"summary":"Cancel an in-progress migration\n\nOnly migrations in your organization can be cancelled.","tags":["Import/Export"],"x-api-key-scopes":["*"]}},"/v1/import-export/crm-template-download/{crmType}/{entityType}":{"get":{"operationId":"importExport_downloadCRMTemplate","parameters":[{"name":"crmType","required":true,"in":"path","schema":{"type":"string"}},{"name":"entityType","required":true,"in":"path","schema":{"type":"string"}}],"responses":{"200":{"description":""},"400":{"$ref":"#/components/responses/BadRequest"},"404":{"$ref":"#/components/responses/NotFound"},"429":{"$ref":"#/components/responses/TooManyRequests"},"500":{"$ref":"#/components/responses/ServerError"}},"security":[],"summary":"Download CRM-specific import template (Public endpoint - no auth required)\nReturns a professional, branded XLSX file with instructions and data sheet","tags":["Import/Export"]}},"/v1/import-export/wizard/sources":{"get":{"operationId":"migrationWizard_sources","parameters":[],"responses":{"200":{"description":""},"401":{"$ref":"#/components/responses/Unauthorized"},"403":{"$ref":"#/components/responses/Forbidden"},"429":{"$ref":"#/components/responses/TooManyRequests"},"500":{"$ref":"#/components/responses/ServerError"}},"security":[{"JWT":[]},{"ApiKey":[]}],"tags":["Import/Export"],"summary":"Sources","x-api-key-scopes":["*"]}},"/v1/import-export/wizard/batches":{"get":{"operationId":"migrationWizard_list","parameters":[{"name":"limit","required":false,"in":"query","schema":{"type":"string"}},{"name":"offset","required":false,"in":"query","schema":{"type":"string"}}],"responses":{"200":{"description":""},"400":{"$ref":"#/components/responses/BadRequest"},"401":{"$ref":"#/components/responses/Unauthorized"},"403":{"$ref":"#/components/responses/Forbidden"},"429":{"$ref":"#/components/responses/TooManyRequests"},"500":{"$ref":"#/components/responses/ServerError"}},"security":[{"JWT":[]},{"ApiKey":[]}],"tags":["Import/Export"],"summary":"List","x-api-key-scopes":["*"]},"post":{"operationId":"migrationWizard_create","parameters":[{"$ref":"#/components/parameters/IdempotencyKey"}],"responses":{"201":{"description":""},"400":{"$ref":"#/components/responses/BadRequest"},"401":{"$ref":"#/components/responses/Unauthorized"},"403":{"$ref":"#/components/responses/Forbidden"},"409":{"$ref":"#/components/responses/Conflict"},"429":{"$ref":"#/components/responses/TooManyRequests"},"500":{"$ref":"#/components/responses/ServerError"}},"security":[{"JWT":[]},{"ApiKey":[]}],"tags":["Import/Export"],"summary":"Create","x-api-key-scopes":["*"]}},"/v1/import-export/wizard/batches/api":{"post":{"operationId":"migrationWizard_createFromApi","parameters":[{"$ref":"#/components/parameters/IdempotencyKey"}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ApiPullDto"}}}},"responses":{"201":{"description":""},"400":{"$ref":"#/components/responses/BadRequest"},"401":{"$ref":"#/components/responses/Unauthorized"},"403":{"$ref":"#/components/responses/Forbidden"},"409":{"$ref":"#/components/responses/Conflict"},"429":{"$ref":"#/components/responses/TooManyRequests"},"500":{"$ref":"#/components/responses/ServerError"}},"security":[{"JWT":[]},{"ApiKey":[]}],"tags":["Import/Export"],"summary":"Create from api","x-api-key-scopes":["*"]}},"/v1/import-export/wizard/batches/{id}":{"get":{"operationId":"migrationWizard_get","parameters":[{"name":"id","required":true,"in":"path","schema":{"type":"string"}}],"responses":{"200":{"description":""},"400":{"$ref":"#/components/responses/BadRequest"},"401":{"$ref":"#/components/responses/Unauthorized"},"403":{"$ref":"#/components/responses/Forbidden"},"404":{"$ref":"#/components/responses/NotFound"},"429":{"$ref":"#/components/responses/TooManyRequests"},"500":{"$ref":"#/components/responses/ServerError"}},"security":[{"JWT":[]},{"ApiKey":[]}],"tags":["Import/Export"],"summary":"Get","x-api-key-scopes":["*"]},"delete":{"operationId":"migrationWizard_remove","parameters":[{"name":"id","required":true,"in":"path","schema":{"type":"string"}}],"responses":{"200":{"description":""},"400":{"$ref":"#/components/responses/BadRequest"},"401":{"$ref":"#/components/responses/Unauthorized"},"403":{"$ref":"#/components/responses/Forbidden"},"404":{"$ref":"#/components/responses/NotFound"},"429":{"$ref":"#/components/responses/TooManyRequests"},"500":{"$ref":"#/components/responses/ServerError"}},"security":[{"JWT":[]},{"ApiKey":[]}],"tags":["Import/Export"],"summary":"Remove","x-api-key-scopes":["*"]}},"/v1/import-export/wizard/batches/{id}/files":{"post":{"operationId":"migrationWizard_addFiles","parameters":[{"name":"id","required":true,"in":"path","schema":{"type":"string"}},{"$ref":"#/components/parameters/IdempotencyKey"}],"responses":{"201":{"description":""},"400":{"$ref":"#/components/responses/BadRequest"},"401":{"$ref":"#/components/responses/Unauthorized"},"403":{"$ref":"#/components/responses/Forbidden"},"404":{"$ref":"#/components/responses/NotFound"},"409":{"$ref":"#/components/responses/Conflict"},"429":{"$ref":"#/components/responses/TooManyRequests"},"500":{"$ref":"#/components/responses/ServerError"}},"security":[{"JWT":[]},{"ApiKey":[]}],"tags":["Import/Export"],"summary":"Add files","x-api-key-scopes":["*"]}},"/v1/import-export/wizard/batches/{id}/plan":{"put":{"operationId":"migrationWizard_updatePlan","parameters":[{"name":"id","required":true,"in":"path","schema":{"type":"string"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/UpdatePlanDto"}}}},"responses":{"200":{"description":""},"400":{"$ref":"#/components/responses/BadRequest"},"401":{"$ref":"#/components/responses/Unauthorized"},"403":{"$ref":"#/components/responses/Forbidden"},"404":{"$ref":"#/components/responses/NotFound"},"429":{"$ref":"#/components/responses/TooManyRequests"},"500":{"$ref":"#/components/responses/ServerError"}},"security":[{"JWT":[]},{"ApiKey":[]}],"tags":["Import/Export"],"summary":"Update plan","x-api-key-scopes":["*"]}},"/v1/import-export/wizard/batches/{id}/files/{key}/ai-suggest":{"post":{"operationId":"migrationWizard_aiSuggest","parameters":[{"name":"id","required":true,"in":"path","schema":{"type":"string"}},{"name":"key","required":true,"in":"path","schema":{"type":"string"}},{"$ref":"#/components/parameters/IdempotencyKey"}],"responses":{"201":{"description":""},"400":{"$ref":"#/components/responses/BadRequest"},"401":{"$ref":"#/components/responses/Unauthorized"},"403":{"$ref":"#/components/responses/Forbidden"},"404":{"$ref":"#/components/responses/NotFound"},"409":{"$ref":"#/components/responses/Conflict"},"429":{"$ref":"#/components/responses/TooManyRequests"},"500":{"$ref":"#/components/responses/ServerError"}},"security":[{"JWT":[]},{"ApiKey":[]}],"tags":["Import/Export"],"summary":"Ai suggest","x-api-key-scopes":["*"]}},"/v1/import-export/wizard/batches/{id}/invite":{"post":{"operationId":"migrationWizard_invite","parameters":[{"name":"id","required":true,"in":"path","schema":{"type":"string"}},{"$ref":"#/components/parameters/IdempotencyKey"}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/InviteDto"}}}},"responses":{"201":{"description":""},"400":{"$ref":"#/components/responses/BadRequest"},"401":{"$ref":"#/components/responses/Unauthorized"},"403":{"$ref":"#/components/responses/Forbidden"},"404":{"$ref":"#/components/responses/NotFound"},"409":{"$ref":"#/components/responses/Conflict"},"429":{"$ref":"#/components/responses/TooManyRequests"},"500":{"$ref":"#/components/responses/ServerError"}},"security":[{"JWT":[]},{"ApiKey":[]}],"tags":["Import/Export"],"summary":"Invite","x-api-key-scopes":["*"]}},"/v1/import-export/wizard/batches/{id}/dry-run":{"post":{"operationId":"migrationWizard_dryRun","parameters":[{"name":"id","required":true,"in":"path","schema":{"type":"string"}},{"$ref":"#/components/parameters/IdempotencyKey"}],"responses":{"201":{"description":""},"400":{"$ref":"#/components/responses/BadRequest"},"401":{"$ref":"#/components/responses/Unauthorized"},"403":{"$ref":"#/components/responses/Forbidden"},"404":{"$ref":"#/components/responses/NotFound"},"409":{"$ref":"#/components/responses/Conflict"},"429":{"$ref":"#/components/responses/TooManyRequests"},"500":{"$ref":"#/components/responses/ServerError"}},"security":[{"JWT":[]},{"ApiKey":[]}],"tags":["Import/Export"],"summary":"Dry run","x-api-key-scopes":["*"]}},"/v1/import-export/wizard/batches/{id}/start":{"post":{"operationId":"migrationWizard_start","parameters":[{"name":"id","required":true,"in":"path","schema":{"type":"string"}},{"$ref":"#/components/parameters/IdempotencyKey"}],"responses":{"201":{"description":""},"400":{"$ref":"#/components/responses/BadRequest"},"401":{"$ref":"#/components/responses/Unauthorized"},"403":{"$ref":"#/components/responses/Forbidden"},"404":{"$ref":"#/components/responses/NotFound"},"409":{"$ref":"#/components/responses/Conflict"},"429":{"$ref":"#/components/responses/TooManyRequests"},"500":{"$ref":"#/components/responses/ServerError"}},"security":[{"JWT":[]},{"ApiKey":[]}],"tags":["Import/Export"],"summary":"Start","x-api-key-scopes":["*"]}},"/v1/import-export/wizard/batches/{id}/cancel":{"post":{"operationId":"migrationWizard_cancel","parameters":[{"name":"id","required":true,"in":"path","schema":{"type":"string"}},{"$ref":"#/components/parameters/IdempotencyKey"}],"responses":{"201":{"description":""},"400":{"$ref":"#/components/responses/BadRequest"},"401":{"$ref":"#/components/responses/Unauthorized"},"403":{"$ref":"#/components/responses/Forbidden"},"404":{"$ref":"#/components/responses/NotFound"},"409":{"$ref":"#/components/responses/Conflict"},"429":{"$ref":"#/components/responses/TooManyRequests"},"500":{"$ref":"#/components/responses/ServerError"}},"security":[{"JWT":[]},{"ApiKey":[]}],"tags":["Import/Export"],"summary":"Cancel","x-api-key-scopes":["*"]}},"/v1/import-export/wizard/batches/{id}/rollback":{"post":{"operationId":"migrationWizard_rollback","parameters":[{"name":"id","required":true,"in":"path","schema":{"type":"string"}},{"$ref":"#/components/parameters/IdempotencyKey"}],"responses":{"201":{"description":""},"400":{"$ref":"#/components/responses/BadRequest"},"401":{"$ref":"#/components/responses/Unauthorized"},"403":{"$ref":"#/components/responses/Forbidden"},"404":{"$ref":"#/components/responses/NotFound"},"409":{"$ref":"#/components/responses/Conflict"},"429":{"$ref":"#/components/responses/TooManyRequests"},"500":{"$ref":"#/components/responses/ServerError"}},"security":[{"JWT":[]},{"ApiKey":[]}],"tags":["Import/Export"],"summary":"Rollback","x-api-key-scopes":["*"]}},"/v1/import-export/wizard/batches/{id}/records":{"get":{"operationId":"migrationWizard_records","parameters":[{"name":"id","required":true,"in":"path","schema":{"type":"string"}},{"name":"object","required":true,"in":"query","schema":{"type":"string"}},{"name":"limit","required":false,"in":"query","schema":{}},{"name":"page","required":false,"in":"query","schema":{}}],"responses":{"200":{"description":""},"400":{"$ref":"#/components/responses/BadRequest"},"401":{"$ref":"#/components/responses/Unauthorized"},"403":{"$ref":"#/components/responses/Forbidden"},"404":{"$ref":"#/components/responses/NotFound"},"429":{"$ref":"#/components/responses/TooManyRequests"},"500":{"$ref":"#/components/responses/ServerError"}},"security":[{"JWT":[]},{"ApiKey":[]}],"tags":["Import/Export"],"summary":"Records","x-api-key-scopes":["*"]}},"/v1/import-export/wizard/batches/{id}/problems":{"get":{"operationId":"migrationWizard_problems","parameters":[{"name":"id","required":true,"in":"path","schema":{"type":"string"}},{"name":"limit","required":false,"in":"query","schema":{}},{"name":"mode","required":false,"in":"query","schema":{}}],"responses":{"200":{"description":""},"400":{"$ref":"#/components/responses/BadRequest"},"401":{"$ref":"#/components/responses/Unauthorized"},"403":{"$ref":"#/components/responses/Forbidden"},"404":{"$ref":"#/components/responses/NotFound"},"429":{"$ref":"#/components/responses/TooManyRequests"},"500":{"$ref":"#/components/responses/ServerError"}},"security":[{"JWT":[]},{"ApiKey":[]}],"tags":["Import/Export"],"summary":"Problems","x-api-key-scopes":["*"]}},"/v1/import-export/wizard/batches/{id}/errors.csv":{"get":{"operationId":"migrationWizard_errors","parameters":[{"name":"id","required":true,"in":"path","schema":{"type":"string"}},{"name":"mode","required":false,"in":"query","schema":{}}],"responses":{"200":{"description":""},"400":{"$ref":"#/components/responses/BadRequest"},"401":{"$ref":"#/components/responses/Unauthorized"},"403":{"$ref":"#/components/responses/Forbidden"},"404":{"$ref":"#/components/responses/NotFound"},"429":{"$ref":"#/components/responses/TooManyRequests"},"500":{"$ref":"#/components/responses/ServerError"}},"security":[{"JWT":[]},{"ApiKey":[]}],"tags":["Import/Export"],"summary":"Errors","x-api-key-scopes":["*"]}},"/v1/reports/types":{"get":{"operationId":"reporting_getReportTypes","parameters":[],"responses":{"200":{"description":""},"401":{"$ref":"#/components/responses/Unauthorized"},"403":{"$ref":"#/components/responses/Forbidden"},"429":{"$ref":"#/components/responses/TooManyRequests"},"500":{"$ref":"#/components/responses/ServerError"}},"security":[{"JWT":[]},{"ApiKey":[]}],"summary":"Get available report types","tags":["Reports"],"x-api-key-scopes":["*"]}},"/v1/reports/generate":{"post":{"operationId":"reporting_generateReport","parameters":[{"$ref":"#/components/parameters/IdempotencyKey"}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/GenerateReportDto"}}}},"responses":{"201":{"description":"","content":{"application/json":{"schema":{"type":"object"}}}},"400":{"$ref":"#/components/responses/BadRequest"},"401":{"$ref":"#/components/responses/Unauthorized"},"403":{"$ref":"#/components/responses/Forbidden"},"409":{"$ref":"#/components/responses/Conflict"},"429":{"$ref":"#/components/responses/TooManyRequests"},"500":{"$ref":"#/components/responses/ServerError"}},"security":[{"JWT":[]},{"ApiKey":[]}],"summary":"Generate a report","tags":["Reports"],"x-api-key-scopes":["*"]}},"/v1/reports/pipeline":{"get":{"operationId":"reporting_getPipelineReport","parameters":[{"name":"dateRange","required":false,"in":"query","schema":{"type":"string"}},{"name":"startDate","required":false,"in":"query","schema":{"type":"string"}},{"name":"endDate","required":false,"in":"query","schema":{"type":"string"}}],"responses":{"200":{"description":"","content":{"application/json":{"schema":{"type":"object"}}}},"400":{"$ref":"#/components/responses/BadRequest"},"401":{"$ref":"#/components/responses/Unauthorized"},"403":{"$ref":"#/components/responses/Forbidden"},"429":{"$ref":"#/components/responses/TooManyRequests"},"500":{"$ref":"#/components/responses/ServerError"}},"security":[{"JWT":[]},{"ApiKey":[]}],"summary":"Get pipeline report","tags":["Reports"],"x-api-key-scopes":["*"]}},"/v1/reports/win-rate":{"get":{"operationId":"reporting_getWinRateReport","parameters":[{"name":"dateRange","required":false,"in":"query","schema":{"type":"string"}},{"name":"startDate","required":false,"in":"query","schema":{"type":"string"}},{"name":"endDate","required":false,"in":"query","schema":{"type":"string"}},{"name":"groupBy","required":false,"in":"query","schema":{"type":"string"}}],"responses":{"200":{"description":"","content":{"application/json":{"schema":{"type":"object"}}}},"400":{"$ref":"#/components/responses/BadRequest"},"401":{"$ref":"#/components/responses/Unauthorized"},"403":{"$ref":"#/components/responses/Forbidden"},"429":{"$ref":"#/components/responses/TooManyRequests"},"500":{"$ref":"#/components/responses/ServerError"}},"security":[{"JWT":[]},{"ApiKey":[]}],"summary":"Get win rate report","tags":["Reports"],"x-api-key-scopes":["*"]}},"/v1/reports/activities":{"get":{"operationId":"reporting_getActivityReport","parameters":[{"name":"dateRange","required":false,"in":"query","schema":{"type":"string"}},{"name":"startDate","required":false,"in":"query","schema":{"type":"string"}},{"name":"endDate","required":false,"in":"query","schema":{"type":"string"}},{"name":"groupBy","required":false,"in":"query","schema":{"type":"string"}}],"responses":{"200":{"description":"","content":{"application/json":{"schema":{"type":"object"}}}},"400":{"$ref":"#/components/responses/BadRequest"},"401":{"$ref":"#/components/responses/Unauthorized"},"403":{"$ref":"#/components/responses/Forbidden"},"429":{"$ref":"#/components/responses/TooManyRequests"},"500":{"$ref":"#/components/responses/ServerError"}},"security":[{"JWT":[]},{"ApiKey":[]}],"summary":"Get activity report","tags":["Reports"],"x-api-key-scopes":["*"]}},"/v1/reports/revenue":{"get":{"operationId":"reporting_getRevenueReport","parameters":[{"name":"dateRange","required":false,"in":"query","schema":{"type":"string"}},{"name":"startDate","required":false,"in":"query","schema":{"type":"string"}},{"name":"endDate","required":false,"in":"query","schema":{"type":"string"}}],"responses":{"200":{"description":"","content":{"application/json":{"schema":{"type":"object"}}}},"400":{"$ref":"#/components/responses/BadRequest"},"401":{"$ref":"#/components/responses/Unauthorized"},"403":{"$ref":"#/components/responses/Forbidden"},"429":{"$ref":"#/components/responses/TooManyRequests"},"500":{"$ref":"#/components/responses/ServerError"}},"security":[{"JWT":[]},{"ApiKey":[]}],"summary":"Get revenue report","tags":["Reports"],"x-api-key-scopes":["*"]}},"/v1/reports/lead-conversion":{"get":{"operationId":"reporting_getLeadConversionReport","parameters":[{"name":"dateRange","required":false,"in":"query","schema":{"type":"string"}},{"name":"startDate","required":false,"in":"query","schema":{"type":"string"}},{"name":"endDate","required":false,"in":"query","schema":{"type":"string"}}],"responses":{"200":{"description":"","content":{"application/json":{"schema":{"type":"object"}}}},"400":{"$ref":"#/components/responses/BadRequest"},"401":{"$ref":"#/components/responses/Unauthorized"},"403":{"$ref":"#/components/responses/Forbidden"},"429":{"$ref":"#/components/responses/TooManyRequests"},"500":{"$ref":"#/components/responses/ServerError"}},"security":[{"JWT":[]},{"ApiKey":[]}],"summary":"Get lead conversion report","tags":["Reports"],"x-api-key-scopes":["*"]}},"/v1/reports/forecast":{"get":{"operationId":"reporting_getForecastReport","parameters":[],"responses":{"200":{"description":"","content":{"application/json":{"schema":{"type":"object"}}}},"401":{"$ref":"#/components/responses/Unauthorized"},"403":{"$ref":"#/components/responses/Forbidden"},"429":{"$ref":"#/components/responses/TooManyRequests"},"500":{"$ref":"#/components/responses/ServerError"}},"security":[{"JWT":[]},{"ApiKey":[]}],"summary":"Get sales forecast","tags":["Reports"],"x-api-key-scopes":["*"]}},"/v1/email-integrations/available":{"get":{"operationId":"emailIntegrations_getAvailableIntegrations","parameters":[],"responses":{"200":{"description":""},"401":{"$ref":"#/components/responses/Unauthorized"},"403":{"$ref":"#/components/responses/Forbidden"},"429":{"$ref":"#/components/responses/TooManyRequests"},"500":{"$ref":"#/components/responses/ServerError"}},"security":[{"JWT":[]},{"ApiKey":[]}],"summary":"Get available email integrations","tags":["Email Integrations"],"x-api-key-scopes":["*"]}},"/v1/email-integrations/oauth-app/{provider}":{"put":{"operationId":"emailIntegrations_saveOAuthApp","parameters":[{"name":"provider","required":true,"in":"path","schema":{"enum":["OUTLOOK","GMAIL","IMAP"],"type":"string"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/OAuthAppDto"}}}},"responses":{"200":{"description":""},"400":{"$ref":"#/components/responses/BadRequest"},"401":{"$ref":"#/components/responses/Unauthorized"},"403":{"$ref":"#/components/responses/Forbidden"},"404":{"$ref":"#/components/responses/NotFound"},"429":{"$ref":"#/components/responses/TooManyRequests"},"500":{"$ref":"#/components/responses/ServerError"}},"security":[{"JWT":[]},{"ApiKey":[]}],"summary":"Advanced: use the organization's own Google/Microsoft OAuth app instead of the platform one.","tags":["Email Integrations"],"x-api-key-scopes":["*"]},"delete":{"operationId":"emailIntegrations_deleteOAuthApp","parameters":[{"name":"provider","required":true,"in":"path","schema":{"enum":["OUTLOOK","GMAIL","IMAP"],"type":"string"}}],"responses":{"200":{"description":""},"400":{"$ref":"#/components/responses/BadRequest"},"401":{"$ref":"#/components/responses/Unauthorized"},"403":{"$ref":"#/components/responses/Forbidden"},"404":{"$ref":"#/components/responses/NotFound"},"429":{"$ref":"#/components/responses/TooManyRequests"},"500":{"$ref":"#/components/responses/ServerError"}},"security":[{"JWT":[]},{"ApiKey":[]}],"tags":["Email Integrations"],"summary":"Delete oauth app","x-api-key-scopes":["*"]}},"/v1/email-integrations/connections":{"get":{"operationId":"emailIntegrations_getConnections","parameters":[],"responses":{"200":{"description":""},"401":{"$ref":"#/components/responses/Unauthorized"},"403":{"$ref":"#/components/responses/Forbidden"},"429":{"$ref":"#/components/responses/TooManyRequests"},"500":{"$ref":"#/components/responses/ServerError"}},"security":[{"JWT":[]},{"ApiKey":[]}],"summary":"Get user's connected email accounts","tags":["Email Integrations"],"x-api-key-scopes":["*"]}},"/v1/email-integrations/connections/{id}":{"get":{"operationId":"emailIntegrations_getConnection","parameters":[{"name":"id","required":true,"in":"path","schema":{"type":"string"}}],"responses":{"200":{"description":""},"400":{"$ref":"#/components/responses/BadRequest"},"401":{"$ref":"#/components/responses/Unauthorized"},"403":{"$ref":"#/components/responses/Forbidden"},"404":{"$ref":"#/components/responses/NotFound"},"429":{"$ref":"#/components/responses/TooManyRequests"},"500":{"$ref":"#/components/responses/ServerError"}},"security":[{"JWT":[]},{"ApiKey":[]}],"summary":"Get a specific connection","tags":["Email Integrations"],"x-api-key-scopes":["*"]},"patch":{"operationId":"emailIntegrations_updateConnection","parameters":[{"name":"id","required":true,"in":"path","schema":{"type":"string"}},{"$ref":"#/components/parameters/IdempotencyKey"}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/UpdateEmailConnectionDto"}}}},"responses":{"200":{"description":""},"400":{"$ref":"#/components/responses/BadRequest"},"401":{"$ref":"#/components/responses/Unauthorized"},"403":{"$ref":"#/components/responses/Forbidden"},"404":{"$ref":"#/components/responses/NotFound"},"409":{"$ref":"#/components/responses/Conflict"},"429":{"$ref":"#/components/responses/TooManyRequests"},"500":{"$ref":"#/components/responses/ServerError"}},"security":[{"JWT":[]},{"ApiKey":[]}],"summary":"Update connection settings","tags":["Email Integrations"],"x-api-key-scopes":["*"]},"delete":{"operationId":"emailIntegrations_deleteConnection","parameters":[{"name":"id","required":true,"in":"path","schema":{"type":"string"}}],"responses":{"200":{"description":""},"400":{"$ref":"#/components/responses/BadRequest"},"401":{"$ref":"#/components/responses/Unauthorized"},"403":{"$ref":"#/components/responses/Forbidden"},"404":{"$ref":"#/components/responses/NotFound"},"429":{"$ref":"#/components/responses/TooManyRequests"},"500":{"$ref":"#/components/responses/ServerError"}},"security":[{"JWT":[]},{"ApiKey":[]}],"summary":"Disconnect an email account","tags":["Email Integrations"],"x-api-key-scopes":["*"]}},"/v1/email-integrations/connect":{"post":{"operationId":"emailIntegrations_initiateOAuth","parameters":[{"$ref":"#/components/parameters/IdempotencyKey"}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/InitiateOAuthDto"}}}},"responses":{"201":{"description":""},"400":{"$ref":"#/components/responses/BadRequest"},"401":{"$ref":"#/components/responses/Unauthorized"},"403":{"$ref":"#/components/responses/Forbidden"},"409":{"$ref":"#/components/responses/Conflict"},"429":{"$ref":"#/components/responses/TooManyRequests"},"500":{"$ref":"#/components/responses/ServerError"}},"security":[{"JWT":[]},{"ApiKey":[]}],"summary":"Initiate OAuth flow for a provider","tags":["Email Integrations"],"x-api-key-scopes":["*"]}},"/v1/email-integrations/callback/gmail":{"get":{"operationId":"emailIntegrations_gmailCallback","parameters":[{"name":"code","required":true,"in":"query","schema":{"type":"string"}},{"name":"state","required":true,"in":"query","schema":{"type":"string"}},{"name":"error","required":true,"in":"query","schema":{"type":"string"}},{"name":"error_description","required":true,"in":"query","schema":{"type":"string"}}],"responses":{"200":{"description":""},"400":{"$ref":"#/components/responses/BadRequest"},"429":{"$ref":"#/components/responses/TooManyRequests"},"500":{"$ref":"#/components/responses/ServerError"}},"security":[],"summary":"OAuth callback for Gmail","tags":["Email Integrations"]}},"/v1/email-integrations/callback/outlook":{"get":{"operationId":"emailIntegrations_outlookCallback","parameters":[{"name":"code","required":true,"in":"query","schema":{"type":"string"}},{"name":"state","required":true,"in":"query","schema":{"type":"string"}},{"name":"error","required":true,"in":"query","schema":{"type":"string"}},{"name":"error_description","required":true,"in":"query","schema":{"type":"string"}}],"responses":{"200":{"description":""},"400":{"$ref":"#/components/responses/BadRequest"},"429":{"$ref":"#/components/responses/TooManyRequests"},"500":{"$ref":"#/components/responses/ServerError"}},"security":[],"summary":"OAuth callback for Outlook","tags":["Email Integrations"]}},"/v1/email-integrations/connections/{id}/sync":{"post":{"operationId":"emailIntegrations_triggerSync","parameters":[{"name":"id","required":true,"in":"path","schema":{"type":"string"}},{"$ref":"#/components/parameters/IdempotencyKey"}],"responses":{"201":{"description":""},"400":{"$ref":"#/components/responses/BadRequest"},"401":{"$ref":"#/components/responses/Unauthorized"},"403":{"$ref":"#/components/responses/Forbidden"},"404":{"$ref":"#/components/responses/NotFound"},"409":{"$ref":"#/components/responses/Conflict"},"429":{"$ref":"#/components/responses/TooManyRequests"},"500":{"$ref":"#/components/responses/ServerError"}},"security":[{"JWT":[]},{"ApiKey":[]}],"summary":"Trigger manual sync for a connection","tags":["Email Integrations"],"x-api-key-scopes":["*"]}},"/v1/email-integrations/connections/{id}/refresh":{"post":{"operationId":"emailIntegrations_refreshToken","parameters":[{"name":"id","required":true,"in":"path","schema":{"type":"string"}},{"$ref":"#/components/parameters/IdempotencyKey"}],"responses":{"201":{"description":""},"400":{"$ref":"#/components/responses/BadRequest"},"401":{"$ref":"#/components/responses/Unauthorized"},"403":{"$ref":"#/components/responses/Forbidden"},"404":{"$ref":"#/components/responses/NotFound"},"409":{"$ref":"#/components/responses/Conflict"},"429":{"$ref":"#/components/responses/TooManyRequests"},"500":{"$ref":"#/components/responses/ServerError"}},"security":[{"JWT":[]},{"ApiKey":[]}],"summary":"Refresh access token for a connection","tags":["Email Integrations"],"x-api-key-scopes":["*"]}},"/v1/calendar-integrations/available":{"get":{"operationId":"calendarIntegrations_getAvailableIntegrations","parameters":[],"responses":{"200":{"description":""},"401":{"$ref":"#/components/responses/Unauthorized"},"403":{"$ref":"#/components/responses/Forbidden"},"429":{"$ref":"#/components/responses/TooManyRequests"},"500":{"$ref":"#/components/responses/ServerError"}},"security":[{"JWT":[]},{"ApiKey":[]}],"summary":"Get available calendar integrations","tags":["Calendar Integrations"],"x-api-key-scopes":["*"]}},"/v1/calendar-integrations/oauth-app/{provider}":{"put":{"operationId":"calendarIntegrations_saveOAuthApp","parameters":[{"name":"provider","required":true,"in":"path","schema":{"enum":["GOOGLE","OUTLOOK","APPLE"],"type":"string"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/OAuthAppDto"}}}},"responses":{"200":{"description":""},"400":{"$ref":"#/components/responses/BadRequest"},"401":{"$ref":"#/components/responses/Unauthorized"},"403":{"$ref":"#/components/responses/Forbidden"},"404":{"$ref":"#/components/responses/NotFound"},"429":{"$ref":"#/components/responses/TooManyRequests"},"500":{"$ref":"#/components/responses/ServerError"}},"security":[{"JWT":[]},{"ApiKey":[]}],"summary":"Advanced: use the organization's own Google/Microsoft OAuth app instead of the platform one.","tags":["Calendar Integrations"],"x-api-key-scopes":["*"]},"delete":{"operationId":"calendarIntegrations_deleteOAuthApp","parameters":[{"name":"provider","required":true,"in":"path","schema":{"enum":["GOOGLE","OUTLOOK","APPLE"],"type":"string"}}],"responses":{"200":{"description":""},"400":{"$ref":"#/components/responses/BadRequest"},"401":{"$ref":"#/components/responses/Unauthorized"},"403":{"$ref":"#/components/responses/Forbidden"},"404":{"$ref":"#/components/responses/NotFound"},"429":{"$ref":"#/components/responses/TooManyRequests"},"500":{"$ref":"#/components/responses/ServerError"}},"security":[{"JWT":[]},{"ApiKey":[]}],"tags":["Calendar Integrations"],"summary":"Delete oauth app","x-api-key-scopes":["*"]}},"/v1/calendar-integrations/connections":{"get":{"operationId":"calendarIntegrations_getConnections","parameters":[],"responses":{"200":{"description":""},"401":{"$ref":"#/components/responses/Unauthorized"},"403":{"$ref":"#/components/responses/Forbidden"},"429":{"$ref":"#/components/responses/TooManyRequests"},"500":{"$ref":"#/components/responses/ServerError"}},"security":[{"JWT":[]},{"ApiKey":[]}],"summary":"Get user's connected calendar accounts","tags":["Calendar Integrations"],"x-api-key-scopes":["*"]}},"/v1/calendar-integrations/connections/{id}":{"get":{"operationId":"calendarIntegrations_getConnection","parameters":[{"name":"id","required":true,"in":"path","schema":{"type":"string"}}],"responses":{"200":{"description":""},"400":{"$ref":"#/components/responses/BadRequest"},"401":{"$ref":"#/components/responses/Unauthorized"},"403":{"$ref":"#/components/responses/Forbidden"},"404":{"$ref":"#/components/responses/NotFound"},"429":{"$ref":"#/components/responses/TooManyRequests"},"500":{"$ref":"#/components/responses/ServerError"}},"security":[{"JWT":[]},{"ApiKey":[]}],"summary":"Get a specific connection","tags":["Calendar Integrations"],"x-api-key-scopes":["*"]},"patch":{"operationId":"calendarIntegrations_updateConnection","parameters":[{"name":"id","required":true,"in":"path","schema":{"type":"string"}},{"$ref":"#/components/parameters/IdempotencyKey"}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/UpdateCalendarConnectionDto"}}}},"responses":{"200":{"description":""},"400":{"$ref":"#/components/responses/BadRequest"},"401":{"$ref":"#/components/responses/Unauthorized"},"403":{"$ref":"#/components/responses/Forbidden"},"404":{"$ref":"#/components/responses/NotFound"},"409":{"$ref":"#/components/responses/Conflict"},"429":{"$ref":"#/components/responses/TooManyRequests"},"500":{"$ref":"#/components/responses/ServerError"}},"security":[{"JWT":[]},{"ApiKey":[]}],"summary":"Update connection settings","tags":["Calendar Integrations"],"x-api-key-scopes":["*"]},"delete":{"operationId":"calendarIntegrations_deleteConnection","parameters":[{"name":"id","required":true,"in":"path","schema":{"type":"string"}}],"responses":{"200":{"description":""},"400":{"$ref":"#/components/responses/BadRequest"},"401":{"$ref":"#/components/responses/Unauthorized"},"403":{"$ref":"#/components/responses/Forbidden"},"404":{"$ref":"#/components/responses/NotFound"},"429":{"$ref":"#/components/responses/TooManyRequests"},"500":{"$ref":"#/components/responses/ServerError"}},"security":[{"JWT":[]},{"ApiKey":[]}],"summary":"Disconnect a calendar account","tags":["Calendar Integrations"],"x-api-key-scopes":["*"]}},"/v1/calendar-integrations/connections/{id}/calendars":{"get":{"operationId":"calendarIntegrations_getAvailableCalendars","parameters":[{"name":"id","required":true,"in":"path","schema":{"type":"string"}}],"responses":{"200":{"description":""},"400":{"$ref":"#/components/responses/BadRequest"},"401":{"$ref":"#/components/responses/Unauthorized"},"403":{"$ref":"#/components/responses/Forbidden"},"404":{"$ref":"#/components/responses/NotFound"},"429":{"$ref":"#/components/responses/TooManyRequests"},"500":{"$ref":"#/components/responses/ServerError"}},"security":[{"JWT":[]},{"ApiKey":[]}],"summary":"Get available calendars for a connection","tags":["Calendar Integrations"],"x-api-key-scopes":["*"]}},"/v1/calendar-integrations/connect":{"post":{"operationId":"calendarIntegrations_initiateOAuth","parameters":[{"$ref":"#/components/parameters/IdempotencyKey"}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/InitiateCalendarOAuthDto"}}}},"responses":{"201":{"description":""},"400":{"$ref":"#/components/responses/BadRequest"},"401":{"$ref":"#/components/responses/Unauthorized"},"403":{"$ref":"#/components/responses/Forbidden"},"409":{"$ref":"#/components/responses/Conflict"},"429":{"$ref":"#/components/responses/TooManyRequests"},"500":{"$ref":"#/components/responses/ServerError"}},"security":[{"JWT":[]},{"ApiKey":[]}],"summary":"Initiate OAuth flow for a provider","tags":["Calendar Integrations"],"x-api-key-scopes":["*"]}},"/v1/calendar-integrations/callback/google":{"get":{"operationId":"calendarIntegrations_googleCallback","parameters":[{"name":"code","required":true,"in":"query","schema":{"type":"string"}},{"name":"state","required":true,"in":"query","schema":{"type":"string"}},{"name":"error","required":true,"in":"query","schema":{"type":"string"}},{"name":"error_description","required":true,"in":"query","schema":{"type":"string"}}],"responses":{"200":{"description":""},"400":{"$ref":"#/components/responses/BadRequest"},"429":{"$ref":"#/components/responses/TooManyRequests"},"500":{"$ref":"#/components/responses/ServerError"}},"security":[],"summary":"OAuth callback for Google Calendar","tags":["Calendar Integrations"]}},"/v1/calendar-integrations/callback/outlook":{"get":{"operationId":"calendarIntegrations_outlookCallback","parameters":[{"name":"code","required":true,"in":"query","schema":{"type":"string"}},{"name":"state","required":true,"in":"query","schema":{"type":"string"}},{"name":"error","required":true,"in":"query","schema":{"type":"string"}},{"name":"error_description","required":true,"in":"query","schema":{"type":"string"}}],"responses":{"200":{"description":""},"400":{"$ref":"#/components/responses/BadRequest"},"429":{"$ref":"#/components/responses/TooManyRequests"},"500":{"$ref":"#/components/responses/ServerError"}},"security":[],"summary":"OAuth callback for Outlook Calendar","tags":["Calendar Integrations"]}},"/v1/calendar-integrations/connections/{id}/sync":{"post":{"operationId":"calendarIntegrations_triggerSync","parameters":[{"name":"id","required":true,"in":"path","schema":{"type":"string"}},{"$ref":"#/components/parameters/IdempotencyKey"}],"responses":{"201":{"description":""},"400":{"$ref":"#/components/responses/BadRequest"},"401":{"$ref":"#/components/responses/Unauthorized"},"403":{"$ref":"#/components/responses/Forbidden"},"404":{"$ref":"#/components/responses/NotFound"},"409":{"$ref":"#/components/responses/Conflict"},"429":{"$ref":"#/components/responses/TooManyRequests"},"500":{"$ref":"#/components/responses/ServerError"}},"security":[{"JWT":[]},{"ApiKey":[]}],"summary":"Trigger manual sync for a connection","tags":["Calendar Integrations"],"x-api-key-scopes":["*"]}},"/v1/calendar-integrations/events":{"get":{"operationId":"calendarIntegrations_getEvents","parameters":[{"name":"from","required":false,"in":"query","schema":{"type":"string"}},{"name":"to","required":false,"in":"query","schema":{"type":"string"}},{"name":"leadId","required":false,"in":"query","schema":{"type":"string"}},{"name":"contactId","required":false,"in":"query","schema":{"type":"string"}},{"name":"accountId","required":false,"in":"query","schema":{"type":"string"}},{"name":"opportunityId","required":false,"in":"query","schema":{"type":"string"}},{"name":"limit","required":false,"in":"query","schema":{"type":"string"}}],"responses":{"200":{"description":""},"400":{"$ref":"#/components/responses/BadRequest"},"401":{"$ref":"#/components/responses/Unauthorized"},"403":{"$ref":"#/components/responses/Forbidden"},"429":{"$ref":"#/components/responses/TooManyRequests"},"500":{"$ref":"#/components/responses/ServerError"}},"security":[{"JWT":[]},{"ApiKey":[]}],"summary":"READER: list synced calendar events for the current user (optionally within\na window / filtered by a linked CRM record). Surfaces what sync pulls in.","tags":["Calendar Integrations"],"x-api-key-scopes":["*"]},"post":{"operationId":"calendarIntegrations_createEvent","parameters":[{"$ref":"#/components/parameters/IdempotencyKey"}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/CreateEventBody"}}}},"responses":{"201":{"description":""},"400":{"$ref":"#/components/responses/BadRequest"},"401":{"$ref":"#/components/responses/Unauthorized"},"403":{"$ref":"#/components/responses/Forbidden"},"409":{"$ref":"#/components/responses/Conflict"},"429":{"$ref":"#/components/responses/TooManyRequests"},"500":{"$ref":"#/components/responses/ServerError"}},"security":[{"JWT":[]},{"ApiKey":[]}],"summary":"WRITE-BACK: create an event in the rep's connected provider calendar and\nmirror it locally. Closes the \"requests calendar scope but never writes\" gap.","tags":["Calendar Integrations"],"x-api-key-scopes":["*"]}},"/v1/calendar-integrations/events/upcoming":{"get":{"operationId":"calendarIntegrations_getUpcomingEvents","parameters":[{"name":"days","required":false,"in":"query","schema":{"type":"string"}}],"responses":{"200":{"description":""},"400":{"$ref":"#/components/responses/BadRequest"},"401":{"$ref":"#/components/responses/Unauthorized"},"403":{"$ref":"#/components/responses/Forbidden"},"429":{"$ref":"#/components/responses/TooManyRequests"},"500":{"$ref":"#/components/responses/ServerError"}},"security":[{"JWT":[]},{"ApiKey":[]}],"summary":"Upcoming events for the current user (dashboard convenience reader).","tags":["Calendar Integrations"],"x-api-key-scopes":["*"]}},"/v1/calendar-integrations/connections/{id}/refresh":{"post":{"operationId":"calendarIntegrations_refreshToken","parameters":[{"name":"id","required":true,"in":"path","schema":{"type":"string"}},{"$ref":"#/components/parameters/IdempotencyKey"}],"responses":{"201":{"description":""},"400":{"$ref":"#/components/responses/BadRequest"},"401":{"$ref":"#/components/responses/Unauthorized"},"403":{"$ref":"#/components/responses/Forbidden"},"404":{"$ref":"#/components/responses/NotFound"},"409":{"$ref":"#/components/responses/Conflict"},"429":{"$ref":"#/components/responses/TooManyRequests"},"500":{"$ref":"#/components/responses/ServerError"}},"security":[{"JWT":[]},{"ApiKey":[]}],"summary":"Refresh access token for a connection","tags":["Calendar Integrations"],"x-api-key-scopes":["*"]}},"/v1/team/channels":{"post":{"operationId":"teamMessages_createChannel","parameters":[{"$ref":"#/components/parameters/IdempotencyKey"}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/CreateChannelDto"}}}},"responses":{"201":{"description":"","content":{"application/json":{"schema":{"type":"object"}}}},"400":{"$ref":"#/components/responses/BadRequest"},"401":{"$ref":"#/components/responses/Unauthorized"},"403":{"$ref":"#/components/responses/Forbidden"},"409":{"$ref":"#/components/responses/Conflict"},"429":{"$ref":"#/components/responses/TooManyRequests"},"500":{"$ref":"#/components/responses/ServerError"}},"security":[{"JWT":[]},{"ApiKey":[]}],"tags":["Team Messages"],"summary":"Create channel","x-api-key-scopes":["*"]},"get":{"operationId":"teamMessages_getUserChannels","parameters":[],"responses":{"200":{"description":""},"401":{"$ref":"#/components/responses/Unauthorized"},"403":{"$ref":"#/components/responses/Forbidden"},"429":{"$ref":"#/components/responses/TooManyRequests"},"500":{"$ref":"#/components/responses/ServerError"}},"security":[{"JWT":[]},{"ApiKey":[]}],"tags":["Team Messages"],"summary":"Get user channels","x-api-key-scopes":["*"]}},"/v1/team/channels/{id}":{"get":{"operationId":"teamMessages_getChannel","parameters":[{"name":"id","required":true,"in":"path","schema":{"type":"string"}}],"responses":{"200":{"description":"","content":{"application/json":{"schema":{"type":"object"}}}},"400":{"$ref":"#/components/responses/BadRequest"},"401":{"$ref":"#/components/responses/Unauthorized"},"403":{"$ref":"#/components/responses/Forbidden"},"404":{"$ref":"#/components/responses/NotFound"},"429":{"$ref":"#/components/responses/TooManyRequests"},"500":{"$ref":"#/components/responses/ServerError"}},"security":[{"JWT":[]},{"ApiKey":[]}],"tags":["Team Messages"],"summary":"Get channel","x-api-key-scopes":["*"]},"put":{"operationId":"teamMessages_updateChannel","parameters":[{"name":"id","required":true,"in":"path","schema":{"type":"string"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/UpdateChannelDto"}}}},"responses":{"200":{"description":"","content":{"application/json":{"schema":{"type":"object"}}}},"400":{"$ref":"#/components/responses/BadRequest"},"401":{"$ref":"#/components/responses/Unauthorized"},"403":{"$ref":"#/components/responses/Forbidden"},"404":{"$ref":"#/components/responses/NotFound"},"429":{"$ref":"#/components/responses/TooManyRequests"},"500":{"$ref":"#/components/responses/ServerError"}},"security":[{"JWT":[]},{"ApiKey":[]}],"tags":["Team Messages"],"summary":"Update channel","x-api-key-scopes":["*"]},"delete":{"operationId":"teamMessages_deleteChannel","parameters":[{"name":"id","required":true,"in":"path","schema":{"type":"string"}}],"responses":{"200":{"description":""},"400":{"$ref":"#/components/responses/BadRequest"},"401":{"$ref":"#/components/responses/Unauthorized"},"403":{"$ref":"#/components/responses/Forbidden"},"404":{"$ref":"#/components/responses/NotFound"},"429":{"$ref":"#/components/responses/TooManyRequests"},"500":{"$ref":"#/components/responses/ServerError"}},"security":[{"JWT":[]},{"ApiKey":[]}],"tags":["Team Messages"],"summary":"Delete channel","x-api-key-scopes":["*"]}},"/v1/team/channels/{id}/join":{"post":{"operationId":"teamMessages_joinChannel","parameters":[{"name":"id","required":true,"in":"path","schema":{"type":"string"}},{"$ref":"#/components/parameters/IdempotencyKey"}],"responses":{"200":{"description":""},"400":{"$ref":"#/components/responses/BadRequest"},"401":{"$ref":"#/components/responses/Unauthorized"},"403":{"$ref":"#/components/responses/Forbidden"},"404":{"$ref":"#/components/responses/NotFound"},"409":{"$ref":"#/components/responses/Conflict"},"429":{"$ref":"#/components/responses/TooManyRequests"},"500":{"$ref":"#/components/responses/ServerError"}},"security":[{"JWT":[]},{"ApiKey":[]}],"tags":["Team Messages"],"summary":"Join channel","x-api-key-scopes":["*"]}},"/v1/team/channels/{id}/leave":{"post":{"operationId":"teamMessages_leaveChannel","parameters":[{"name":"id","required":true,"in":"path","schema":{"type":"string"}},{"$ref":"#/components/parameters/IdempotencyKey"}],"responses":{"201":{"description":""},"400":{"$ref":"#/components/responses/BadRequest"},"401":{"$ref":"#/components/responses/Unauthorized"},"403":{"$ref":"#/components/responses/Forbidden"},"404":{"$ref":"#/components/responses/NotFound"},"409":{"$ref":"#/components/responses/Conflict"},"429":{"$ref":"#/components/responses/TooManyRequests"},"500":{"$ref":"#/components/responses/ServerError"}},"security":[{"JWT":[]},{"ApiKey":[]}],"tags":["Team Messages"],"summary":"Leave channel","x-api-key-scopes":["*"]}},"/v1/team/channels/{id}/members":{"post":{"operationId":"teamMessages_addChannelMembers","parameters":[{"name":"id","required":true,"in":"path","schema":{"type":"string"}},{"$ref":"#/components/parameters/IdempotencyKey"}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/AddMembersDto"}}}},"responses":{"201":{"description":"","content":{"application/json":{"schema":{"type":"array","items":{"type":"object"}}}}},"400":{"$ref":"#/components/responses/BadRequest"},"401":{"$ref":"#/components/responses/Unauthorized"},"403":{"$ref":"#/components/responses/Forbidden"},"404":{"$ref":"#/components/responses/NotFound"},"409":{"$ref":"#/components/responses/Conflict"},"429":{"$ref":"#/components/responses/TooManyRequests"},"500":{"$ref":"#/components/responses/ServerError"}},"security":[{"JWT":[]},{"ApiKey":[]}],"tags":["Team Messages"],"summary":"Add channel members","x-api-key-scopes":["*"]}},"/v1/team/channels/{channelId}/members/{userId}":{"delete":{"operationId":"teamMessages_removeChannelMember","parameters":[{"name":"channelId","required":true,"in":"path","schema":{"type":"string"}},{"name":"userId","required":true,"in":"path","schema":{"type":"string"}}],"responses":{"200":{"description":""},"400":{"$ref":"#/components/responses/BadRequest"},"401":{"$ref":"#/components/responses/Unauthorized"},"403":{"$ref":"#/components/responses/Forbidden"},"404":{"$ref":"#/components/responses/NotFound"},"429":{"$ref":"#/components/responses/TooManyRequests"},"500":{"$ref":"#/components/responses/ServerError"}},"security":[{"JWT":[]},{"ApiKey":[]}],"tags":["Team Messages"],"summary":"Remove channel member","x-api-key-scopes":["*"]}},"/v1/team/channels/{id}/messages":{"get":{"operationId":"teamMessages_getChannelMessages","parameters":[{"name":"id","required":true,"in":"path","schema":{"type":"string"}},{"name":"page","required":false,"in":"query","schema":{"type":"string"}},{"name":"pageSize","required":false,"in":"query","schema":{"type":"string"}}],"responses":{"200":{"description":""},"400":{"$ref":"#/components/responses/BadRequest"},"401":{"$ref":"#/components/responses/Unauthorized"},"403":{"$ref":"#/components/responses/Forbidden"},"404":{"$ref":"#/components/responses/NotFound"},"429":{"$ref":"#/components/responses/TooManyRequests"},"500":{"$ref":"#/components/responses/ServerError"}},"security":[{"JWT":[]},{"ApiKey":[]}],"tags":["Team Messages"],"summary":"Get channel messages","x-api-key-scopes":["*"]}},"/v1/team/conversations":{"get":{"operationId":"teamMessages_getUserDirectConversations","parameters":[],"responses":{"200":{"description":""},"401":{"$ref":"#/components/responses/Unauthorized"},"403":{"$ref":"#/components/responses/Forbidden"},"429":{"$ref":"#/components/responses/TooManyRequests"},"500":{"$ref":"#/components/responses/ServerError"}},"security":[{"JWT":[]},{"ApiKey":[]}],"tags":["Team Messages"],"summary":"Get user direct conversations","x-api-key-scopes":["*"]}},"/v1/team/conversations/{id}/messages":{"get":{"operationId":"teamMessages_getDirectMessages","parameters":[{"name":"id","required":true,"in":"path","schema":{"type":"string"}},{"name":"page","required":false,"in":"query","schema":{"type":"string"}},{"name":"pageSize","required":false,"in":"query","schema":{"type":"string"}}],"responses":{"200":{"description":""},"400":{"$ref":"#/components/responses/BadRequest"},"401":{"$ref":"#/components/responses/Unauthorized"},"403":{"$ref":"#/components/responses/Forbidden"},"404":{"$ref":"#/components/responses/NotFound"},"429":{"$ref":"#/components/responses/TooManyRequests"},"500":{"$ref":"#/components/responses/ServerError"}},"security":[{"JWT":[]},{"ApiKey":[]}],"tags":["Team Messages"],"summary":"Get direct messages","x-api-key-scopes":["*"]}},"/v1/team/conversations/with/{userId}":{"post":{"operationId":"teamMessages_getOrCreateDirectConversation","parameters":[{"name":"userId","required":true,"in":"path","schema":{"type":"string"}},{"$ref":"#/components/parameters/IdempotencyKey"}],"responses":{"201":{"description":"","content":{"application/json":{"schema":{"type":"object"}}}},"400":{"$ref":"#/components/responses/BadRequest"},"401":{"$ref":"#/components/responses/Unauthorized"},"403":{"$ref":"#/components/responses/Forbidden"},"404":{"$ref":"#/components/responses/NotFound"},"409":{"$ref":"#/components/responses/Conflict"},"429":{"$ref":"#/components/responses/TooManyRequests"},"500":{"$ref":"#/components/responses/ServerError"}},"security":[{"JWT":[]},{"ApiKey":[]}],"tags":["Team Messages"],"summary":"Get or create direct conversation","x-api-key-scopes":["*"]}},"/v1/team/messages":{"post":{"operationId":"teamMessages_sendMessage","parameters":[{"$ref":"#/components/parameters/IdempotencyKey"}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/SendMessageDto"}}}},"responses":{"201":{"description":"","content":{"application/json":{"schema":{"type":"object"}}}},"400":{"$ref":"#/components/responses/BadRequest"},"401":{"$ref":"#/components/responses/Unauthorized"},"403":{"$ref":"#/components/responses/Forbidden"},"409":{"$ref":"#/components/responses/Conflict"},"429":{"$ref":"#/components/responses/TooManyRequests"},"500":{"$ref":"#/components/responses/ServerError"}},"security":[{"JWT":[]},{"ApiKey":[]}],"tags":["Team Messages"],"summary":"Send message","x-api-key-scopes":["*"]}},"/v1/team/messages/{id}":{"put":{"operationId":"teamMessages_updateMessage","parameters":[{"name":"id","required":true,"in":"path","schema":{"type":"string"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/UpdateMessageDto"}}}},"responses":{"200":{"description":"","content":{"application/json":{"schema":{"type":"object"}}}},"400":{"$ref":"#/components/responses/BadRequest"},"401":{"$ref":"#/components/responses/Unauthorized"},"403":{"$ref":"#/components/responses/Forbidden"},"404":{"$ref":"#/components/responses/NotFound"},"429":{"$ref":"#/components/responses/TooManyRequests"},"500":{"$ref":"#/components/responses/ServerError"}},"security":[{"JWT":[]},{"ApiKey":[]}],"tags":["Team Messages"],"summary":"Update message","x-api-key-scopes":["*"]},"delete":{"operationId":"teamMessages_deleteMessage","parameters":[{"name":"id","required":true,"in":"path","schema":{"type":"string"}}],"responses":{"200":{"description":""},"400":{"$ref":"#/components/responses/BadRequest"},"401":{"$ref":"#/components/responses/Unauthorized"},"403":{"$ref":"#/components/responses/Forbidden"},"404":{"$ref":"#/components/responses/NotFound"},"429":{"$ref":"#/components/responses/TooManyRequests"},"500":{"$ref":"#/components/responses/ServerError"}},"security":[{"JWT":[]},{"ApiKey":[]}],"tags":["Team Messages"],"summary":"Delete message","x-api-key-scopes":["*"]}},"/v1/team/messages/{id}/reactions":{"post":{"operationId":"teamMessages_addReaction","parameters":[{"name":"id","required":true,"in":"path","schema":{"type":"string"}},{"$ref":"#/components/parameters/IdempotencyKey"}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ReactionDto"}}}},"responses":{"201":{"description":""},"400":{"$ref":"#/components/responses/BadRequest"},"401":{"$ref":"#/components/responses/Unauthorized"},"403":{"$ref":"#/components/responses/Forbidden"},"404":{"$ref":"#/components/responses/NotFound"},"409":{"$ref":"#/components/responses/Conflict"},"429":{"$ref":"#/components/responses/TooManyRequests"},"500":{"$ref":"#/components/responses/ServerError"}},"security":[{"JWT":[]},{"ApiKey":[]}],"tags":["Team Messages"],"summary":"Add reaction","x-api-key-scopes":["*"]}},"/v1/team/messages/{id}/reactions/{emoji}":{"delete":{"operationId":"teamMessages_removeReaction","parameters":[{"name":"id","required":true,"in":"path","schema":{"type":"string"}},{"name":"emoji","required":true,"in":"path","schema":{"type":"string"}}],"responses":{"200":{"description":""},"400":{"$ref":"#/components/responses/BadRequest"},"401":{"$ref":"#/components/responses/Unauthorized"},"403":{"$ref":"#/components/responses/Forbidden"},"404":{"$ref":"#/components/responses/NotFound"},"429":{"$ref":"#/components/responses/TooManyRequests"},"500":{"$ref":"#/components/responses/ServerError"}},"security":[{"JWT":[]},{"ApiKey":[]}],"tags":["Team Messages"],"summary":"Remove reaction","x-api-key-scopes":["*"]}},"/v1/team/messages/{id}/pin":{"post":{"operationId":"teamMessages_togglePinMessage","parameters":[{"name":"id","required":true,"in":"path","schema":{"type":"string"}},{"$ref":"#/components/parameters/IdempotencyKey"}],"responses":{"201":{"description":""},"400":{"$ref":"#/components/responses/BadRequest"},"401":{"$ref":"#/components/responses/Unauthorized"},"403":{"$ref":"#/components/responses/Forbidden"},"404":{"$ref":"#/components/responses/NotFound"},"409":{"$ref":"#/components/responses/Conflict"},"429":{"$ref":"#/components/responses/TooManyRequests"},"500":{"$ref":"#/components/responses/ServerError"}},"security":[{"JWT":[]},{"ApiKey":[]}],"tags":["Team Messages"],"summary":"Toggle pin message","x-api-key-scopes":["*"]}},"/v1/team/users/search":{"get":{"operationId":"teamMessages_searchUsers","parameters":[{"name":"q","required":true,"in":"query","schema":{"type":"string"}},{"name":"limit","required":false,"in":"query","schema":{"type":"string"}}],"responses":{"200":{"description":""},"400":{"$ref":"#/components/responses/BadRequest"},"401":{"$ref":"#/components/responses/Unauthorized"},"403":{"$ref":"#/components/responses/Forbidden"},"429":{"$ref":"#/components/responses/TooManyRequests"},"500":{"$ref":"#/components/responses/ServerError"}},"security":[{"JWT":[]},{"ApiKey":[]}],"tags":["Team Messages"],"summary":"Search users","x-api-key-scopes":["*"]}},"/v1/custom-fields":{"post":{"operationId":"customFields_create","parameters":[{"$ref":"#/components/parameters/IdempotencyKey"}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/CreateCustomFieldDto"}}}},"responses":{"201":{"description":"CustomFieldDefinition","content":{"application/json":{"schema":{"$ref":"#/components/schemas/CustomFieldDefinition"}}}},"400":{"$ref":"#/components/responses/BadRequest"},"401":{"$ref":"#/components/responses/Unauthorized"},"403":{"$ref":"#/components/responses/Forbidden"},"409":{"$ref":"#/components/responses/Conflict"},"429":{"$ref":"#/components/responses/TooManyRequests"},"500":{"$ref":"#/components/responses/ServerError"}},"security":[{"JWT":[]},{"ApiKey":[]}],"summary":"Create a new custom field definition","tags":["Custom Fields"],"x-api-key-scopes":["WRITE_CUSTOM_FIELDS"]},"get":{"operationId":"customFields_findAll","parameters":[{"name":"entity","required":false,"in":"query","schema":{"enum":["LEAD","CONTACT","ACCOUNT","OPPORTUNITY","PRODUCT","QUOTE"],"type":"string"}},{"name":"fieldType","required":false,"in":"query","schema":{"enum":["TEXT","TEXTAREA","NUMBER","CURRENCY","DATE","DATETIME","CHECKBOX","PICKLIST","MULTI_PICKLIST","EMAIL","PHONE","URL","LOOKUP","FORMULA","ROLLUP_SUMMARY"],"type":"string"}},{"name":"isActive","required":false,"in":"query","schema":{"type":"boolean"}}],"responses":{"200":{"description":"CustomFieldDefinitionViewArray","content":{"application/json":{"schema":{"$ref":"#/components/schemas/CustomFieldDefinitionViewArray"}}}},"400":{"$ref":"#/components/responses/BadRequest"},"401":{"$ref":"#/components/responses/Unauthorized"},"403":{"$ref":"#/components/responses/Forbidden"},"429":{"$ref":"#/components/responses/TooManyRequests"},"500":{"$ref":"#/components/responses/ServerError"}},"security":[{"JWT":[]},{"ApiKey":[]}],"summary":"Get all custom field definitions","tags":["Custom Fields"],"x-api-key-scopes":["READ_CUSTOM_FIELDS"]}},"/v1/custom-fields/stats":{"get":{"operationId":"customFields_getStats","parameters":[],"responses":{"200":{"description":""},"401":{"$ref":"#/components/responses/Unauthorized"},"403":{"$ref":"#/components/responses/Forbidden"},"429":{"$ref":"#/components/responses/TooManyRequests"},"500":{"$ref":"#/components/responses/ServerError"}},"security":[{"JWT":[]},{"ApiKey":[]}],"summary":"Get custom fields statistics","tags":["Custom Fields"],"x-api-key-scopes":["READ_CUSTOM_FIELDS"]}},"/v1/custom-fields/derived/capabilities":{"get":{"operationId":"customFields_describeDerived","parameters":[{"name":"entity","required":false,"in":"query","schema":{"enum":["LEAD","CONTACT","ACCOUNT","OPPORTUNITY","PRODUCT","QUOTE"],"type":"string"}}],"responses":{"200":{"description":""},"400":{"$ref":"#/components/responses/BadRequest"},"401":{"$ref":"#/components/responses/Unauthorized"},"403":{"$ref":"#/components/responses/Forbidden"},"429":{"$ref":"#/components/responses/TooManyRequests"},"500":{"$ref":"#/components/responses/ServerError"}},"security":[{"JWT":[]},{"ApiKey":[]}],"summary":"List formula functions, roll-up children and referenceable fields","tags":["Custom Fields"],"x-api-key-scopes":["READ_CUSTOM_FIELDS"]}},"/v1/custom-fields/derived/preview":{"post":{"operationId":"customFields_previewDerived","parameters":[{"$ref":"#/components/parameters/IdempotencyKey"}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/PreviewDerivedFieldDto"}}}},"responses":{"201":{"description":"","content":{"application/json":{"schema":{"type":"object"}}}},"400":{"$ref":"#/components/responses/BadRequest"},"401":{"$ref":"#/components/responses/Unauthorized"},"403":{"$ref":"#/components/responses/Forbidden"},"409":{"$ref":"#/components/responses/Conflict"},"429":{"$ref":"#/components/responses/TooManyRequests"},"500":{"$ref":"#/components/responses/ServerError"}},"security":[{"JWT":[]},{"ApiKey":[]}],"summary":"Validate a FORMULA/ROLLUP_SUMMARY definition, optionally evaluating a sample record","tags":["Custom Fields"],"x-api-key-scopes":["WRITE_CUSTOM_FIELDS"]}},"/v1/custom-fields/{id}":{"get":{"operationId":"customFields_findOne","parameters":[{"name":"id","required":true,"in":"path","schema":{"type":"string"}}],"responses":{"200":{"description":"CustomFieldDefinitionView","content":{"application/json":{"schema":{"$ref":"#/components/schemas/CustomFieldDefinitionView"}}}},"400":{"$ref":"#/components/responses/BadRequest"},"401":{"$ref":"#/components/responses/Unauthorized"},"403":{"$ref":"#/components/responses/Forbidden"},"404":{"$ref":"#/components/responses/NotFound"},"429":{"$ref":"#/components/responses/TooManyRequests"},"500":{"$ref":"#/components/responses/ServerError"}},"security":[{"JWT":[]},{"ApiKey":[]}],"summary":"Get a custom field definition by ID","tags":["Custom Fields"],"x-api-key-scopes":["READ_CUSTOM_FIELDS"]},"patch":{"operationId":"customFields_update","parameters":[{"name":"id","required":true,"in":"path","schema":{"type":"string"}},{"$ref":"#/components/parameters/IdempotencyKey"}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/UpdateCustomFieldDto"}}}},"responses":{"200":{"description":"CustomFieldDefinition","content":{"application/json":{"schema":{"$ref":"#/components/schemas/CustomFieldDefinition"}}}},"400":{"$ref":"#/components/responses/BadRequest"},"401":{"$ref":"#/components/responses/Unauthorized"},"403":{"$ref":"#/components/responses/Forbidden"},"404":{"$ref":"#/components/responses/NotFound"},"409":{"$ref":"#/components/responses/Conflict"},"429":{"$ref":"#/components/responses/TooManyRequests"},"500":{"$ref":"#/components/responses/ServerError"}},"security":[{"JWT":[]},{"ApiKey":[]}],"summary":"Update a custom field definition","tags":["Custom Fields"],"x-api-key-scopes":["WRITE_CUSTOM_FIELDS"]}},"/v1/custom-fields/reorder":{"post":{"operationId":"customFields_reorder","parameters":[{"$ref":"#/components/parameters/IdempotencyKey"}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ReorderBody"}}}},"responses":{"201":{"description":"SuccessResponse","content":{"application/json":{"schema":{"$ref":"#/components/schemas/SuccessResponse"}}}},"400":{"$ref":"#/components/responses/BadRequest"},"401":{"$ref":"#/components/responses/Unauthorized"},"403":{"$ref":"#/components/responses/Forbidden"},"409":{"$ref":"#/components/responses/Conflict"},"429":{"$ref":"#/components/responses/TooManyRequests"},"500":{"$ref":"#/components/responses/ServerError"}},"security":[{"JWT":[]},{"ApiKey":[]}],"summary":"Reorder custom fields","tags":["Custom Fields"],"x-api-key-scopes":["WRITE_CUSTOM_FIELDS"]}},"/v1/custom-fields/{id}/picklist-values":{"post":{"operationId":"customFields_addPicklistValue","parameters":[{"name":"id","required":true,"in":"path","schema":{"type":"string"}},{"$ref":"#/components/parameters/IdempotencyKey"}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/AddPicklistValueBody"}}}},"responses":{"201":{"description":"CustomFieldDefinition","content":{"application/json":{"schema":{"$ref":"#/components/schemas/CustomFieldDefinition"}}}},"400":{"$ref":"#/components/responses/BadRequest"},"401":{"$ref":"#/components/responses/Unauthorized"},"403":{"$ref":"#/components/responses/Forbidden"},"404":{"$ref":"#/components/responses/NotFound"},"409":{"$ref":"#/components/responses/Conflict"},"429":{"$ref":"#/components/responses/TooManyRequests"},"500":{"$ref":"#/components/responses/ServerError"}},"security":[{"JWT":[]},{"ApiKey":[]}],"summary":"Add a picklist value","tags":["Custom Fields"],"x-api-key-scopes":["WRITE_CUSTOM_FIELDS"]}},"/v1/custom-fields/{id}/picklist-values/{valueId}":{"patch":{"operationId":"customFields_updatePicklistValue","parameters":[{"name":"id","required":true,"in":"path","schema":{"type":"string"}},{"name":"valueId","required":true,"in":"path","schema":{"type":"string"}},{"$ref":"#/components/parameters/IdempotencyKey"}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/UpdatePicklistValueBody"}}}},"responses":{"200":{"description":"CustomFieldDefinition","content":{"application/json":{"schema":{"$ref":"#/components/schemas/CustomFieldDefinition"}}}},"400":{"$ref":"#/components/responses/BadRequest"},"401":{"$ref":"#/components/responses/Unauthorized"},"403":{"$ref":"#/components/responses/Forbidden"},"404":{"$ref":"#/components/responses/NotFound"},"409":{"$ref":"#/components/responses/Conflict"},"429":{"$ref":"#/components/responses/TooManyRequests"},"500":{"$ref":"#/components/responses/ServerError"}},"security":[{"JWT":[]},{"ApiKey":[]}],"summary":"Update a picklist value","tags":["Custom Fields"],"x-api-key-scopes":["WRITE_CUSTOM_FIELDS"]},"delete":{"operationId":"customFields_deletePicklistValue","parameters":[{"name":"id","required":true,"in":"path","schema":{"type":"string"}},{"name":"valueId","required":true,"in":"path","schema":{"type":"string"}}],"responses":{"200":{"description":"CustomFieldDefinition","content":{"application/json":{"schema":{"$ref":"#/components/schemas/CustomFieldDefinition"}}}},"400":{"$ref":"#/components/responses/BadRequest"},"401":{"$ref":"#/components/responses/Unauthorized"},"403":{"$ref":"#/components/responses/Forbidden"},"404":{"$ref":"#/components/responses/NotFound"},"429":{"$ref":"#/components/responses/TooManyRequests"},"500":{"$ref":"#/components/responses/ServerError"}},"security":[{"JWT":[]},{"ApiKey":[]}],"summary":"Delete a picklist value","tags":["Custom Fields"],"x-api-key-scopes":["WRITE_CUSTOM_FIELDS"]}},"/v1/custom-fields/{id}/picklist-values/reorder":{"post":{"operationId":"customFields_reorderPicklistValues","parameters":[{"name":"id","required":true,"in":"path","schema":{"type":"string"}},{"$ref":"#/components/parameters/IdempotencyKey"}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ReorderPicklistValuesBody"}}}},"responses":{"201":{"description":"CustomFieldDefinition","content":{"application/json":{"schema":{"$ref":"#/components/schemas/CustomFieldDefinition"}}}},"400":{"$ref":"#/components/responses/BadRequest"},"401":{"$ref":"#/components/responses/Unauthorized"},"403":{"$ref":"#/components/responses/Forbidden"},"404":{"$ref":"#/components/responses/NotFound"},"409":{"$ref":"#/components/responses/Conflict"},"429":{"$ref":"#/components/responses/TooManyRequests"},"500":{"$ref":"#/components/responses/ServerError"}},"security":[{"JWT":[]},{"ApiKey":[]}],"summary":"Reorder picklist values","tags":["Custom Fields"],"x-api-key-scopes":["WRITE_CUSTOM_FIELDS"]}},"/v1/custom-fields/values":{"post":{"operationId":"customFields_setFieldValue","parameters":[{"$ref":"#/components/parameters/IdempotencyKey"}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/SetFieldValueDto"}}}},"responses":{"201":{"description":"CustomFieldValue","content":{"application/json":{"schema":{"$ref":"#/components/schemas/CustomFieldValue"}}}},"400":{"$ref":"#/components/responses/BadRequest"},"401":{"$ref":"#/components/responses/Unauthorized"},"403":{"$ref":"#/components/responses/Forbidden"},"409":{"$ref":"#/components/responses/Conflict"},"429":{"$ref":"#/components/responses/TooManyRequests"},"500":{"$ref":"#/components/responses/ServerError"}},"security":[{"JWT":[]},{"ApiKey":[]}],"summary":"Set a custom field value for a record","tags":["Custom Fields"],"x-api-key-scopes":["WRITE_CUSTOM_FIELDS"]}},"/v1/custom-fields/values/{entityType}/{entityId}":{"get":{"operationId":"customFields_getFieldValues","parameters":[{"name":"entityType","required":true,"in":"path","schema":{"enum":["CONTACT","LEAD","ACCOUNT","OPPORTUNITY","PRODUCT","QUOTE"],"type":"string"}},{"name":"entityId","required":true,"in":"path","schema":{"type":"string"}}],"responses":{"200":{"description":"CustomFieldValueViewArray","content":{"application/json":{"schema":{"$ref":"#/components/schemas/CustomFieldValueViewArray"}}}},"400":{"$ref":"#/components/responses/BadRequest"},"401":{"$ref":"#/components/responses/Unauthorized"},"403":{"$ref":"#/components/responses/Forbidden"},"404":{"$ref":"#/components/responses/NotFound"},"429":{"$ref":"#/components/responses/TooManyRequests"},"500":{"$ref":"#/components/responses/ServerError"}},"security":[{"JWT":[]},{"ApiKey":[]}],"summary":"Get all custom field values for a record","tags":["Custom Fields"],"x-api-key-scopes":["READ_CUSTOM_FIELDS"]}},"/v1/custom-fields/values/{fieldId}/{entityType}/{entityId}":{"delete":{"operationId":"customFields_deleteFieldValue","parameters":[{"name":"fieldId","required":true,"in":"path","schema":{"type":"string"}},{"name":"entityType","required":true,"in":"path","schema":{"enum":["CONTACT","LEAD","ACCOUNT","OPPORTUNITY","PRODUCT","QUOTE"],"type":"string"}},{"name":"entityId","required":true,"in":"path","schema":{"type":"string"}}],"responses":{"200":{"description":"CustomFieldValue","content":{"application/json":{"schema":{"$ref":"#/components/schemas/CustomFieldValue"}}}},"400":{"$ref":"#/components/responses/BadRequest"},"401":{"$ref":"#/components/responses/Unauthorized"},"403":{"$ref":"#/components/responses/Forbidden"},"404":{"$ref":"#/components/responses/NotFound"},"429":{"$ref":"#/components/responses/TooManyRequests"},"500":{"$ref":"#/components/responses/ServerError"}},"security":[{"JWT":[]},{"ApiKey":[]}],"summary":"Delete a custom field value","tags":["Custom Fields"],"x-api-key-scopes":["WRITE_CUSTOM_FIELDS"]}},"/v1/price-books":{"post":{"operationId":"priceBooks_create","parameters":[{"$ref":"#/components/parameters/IdempotencyKey"}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/CreatePriceBookDto"}}}},"responses":{"201":{"description":"","content":{"application/json":{"schema":{"type":"object"}}}},"400":{"$ref":"#/components/responses/BadRequest"},"401":{"$ref":"#/components/responses/Unauthorized"},"403":{"$ref":"#/components/responses/Forbidden"},"409":{"$ref":"#/components/responses/Conflict"},"429":{"$ref":"#/components/responses/TooManyRequests"},"500":{"$ref":"#/components/responses/ServerError"}},"security":[{"JWT":[]},{"ApiKey":[]}],"summary":"Create a new price book","tags":["Price Books"],"x-api-key-scopes":["*"]},"get":{"operationId":"priceBooks_findAll","parameters":[{"name":"isActive","required":false,"in":"query","schema":{"type":"boolean"}},{"name":"isStandard","required":false,"in":"query","schema":{"type":"boolean"}},{"name":"currency","required":false,"in":"query","schema":{"type":"string"}}],"responses":{"200":{"description":"","content":{"application/json":{"schema":{"type":"array","items":{"type":"object"}}}}},"400":{"$ref":"#/components/responses/BadRequest"},"401":{"$ref":"#/components/responses/Unauthorized"},"403":{"$ref":"#/components/responses/Forbidden"},"429":{"$ref":"#/components/responses/TooManyRequests"},"500":{"$ref":"#/components/responses/ServerError"}},"security":[{"JWT":[]},{"ApiKey":[]}],"summary":"Get all price books","tags":["Price Books"],"x-api-key-scopes":["*"]}},"/v1/price-books/standard":{"get":{"operationId":"priceBooks_findStandard","parameters":[],"responses":{"200":{"description":"","content":{"application/json":{"schema":{"type":"object"}}}},"401":{"$ref":"#/components/responses/Unauthorized"},"403":{"$ref":"#/components/responses/Forbidden"},"429":{"$ref":"#/components/responses/TooManyRequests"},"500":{"$ref":"#/components/responses/ServerError"}},"security":[{"JWT":[]},{"ApiKey":[]}],"summary":"Get the standard price book","tags":["Price Books"],"x-api-key-scopes":["*"]}},"/v1/price-books/stats":{"get":{"operationId":"priceBooks_getStats","parameters":[],"responses":{"200":{"description":""},"401":{"$ref":"#/components/responses/Unauthorized"},"403":{"$ref":"#/components/responses/Forbidden"},"429":{"$ref":"#/components/responses/TooManyRequests"},"500":{"$ref":"#/components/responses/ServerError"}},"security":[{"JWT":[]},{"ApiKey":[]}],"summary":"Get price book statistics","tags":["Price Books"],"x-api-key-scopes":["*"]}},"/v1/price-books/{id}":{"get":{"operationId":"priceBooks_findOne","parameters":[{"name":"id","required":true,"in":"path","schema":{"type":"string"}}],"responses":{"200":{"description":"","content":{"application/json":{"schema":{"type":"object"}}}},"400":{"$ref":"#/components/responses/BadRequest"},"401":{"$ref":"#/components/responses/Unauthorized"},"403":{"$ref":"#/components/responses/Forbidden"},"404":{"$ref":"#/components/responses/NotFound"},"429":{"$ref":"#/components/responses/TooManyRequests"},"500":{"$ref":"#/components/responses/ServerError"}},"security":[{"JWT":[]},{"ApiKey":[]}],"summary":"Get a price book by ID","tags":["Price Books"],"x-api-key-scopes":["*"]},"patch":{"operationId":"priceBooks_update","parameters":[{"name":"id","required":true,"in":"path","schema":{"type":"string"}},{"$ref":"#/components/parameters/IdempotencyKey"}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/UpdatePriceBookDto"}}}},"responses":{"200":{"description":"","content":{"application/json":{"schema":{"type":"object"}}}},"400":{"$ref":"#/components/responses/BadRequest"},"401":{"$ref":"#/components/responses/Unauthorized"},"403":{"$ref":"#/components/responses/Forbidden"},"404":{"$ref":"#/components/responses/NotFound"},"409":{"$ref":"#/components/responses/Conflict"},"429":{"$ref":"#/components/responses/TooManyRequests"},"500":{"$ref":"#/components/responses/ServerError"}},"security":[{"JWT":[]},{"ApiKey":[]}],"summary":"Update a price book","tags":["Price Books"],"x-api-key-scopes":["*"]}},"/v1/price-books/{id}/clone":{"post":{"operationId":"priceBooks_clone","parameters":[{"name":"id","required":true,"in":"path","schema":{"type":"string"}},{"$ref":"#/components/parameters/IdempotencyKey"}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/CloneBody"}}}},"responses":{"201":{"description":"","content":{"application/json":{"schema":{"type":"object"}}}},"400":{"$ref":"#/components/responses/BadRequest"},"401":{"$ref":"#/components/responses/Unauthorized"},"403":{"$ref":"#/components/responses/Forbidden"},"404":{"$ref":"#/components/responses/NotFound"},"409":{"$ref":"#/components/responses/Conflict"},"429":{"$ref":"#/components/responses/TooManyRequests"},"500":{"$ref":"#/components/responses/ServerError"}},"security":[{"JWT":[]},{"ApiKey":[]}],"summary":"Clone a price book","tags":["Price Books"],"x-api-key-scopes":["*"]}},"/v1/price-books/{id}/entries":{"get":{"operationId":"priceBooks_getEntries","parameters":[{"name":"id","required":true,"in":"path","schema":{"type":"string"}}],"responses":{"200":{"description":""},"400":{"$ref":"#/components/responses/BadRequest"},"401":{"$ref":"#/components/responses/Unauthorized"},"403":{"$ref":"#/components/responses/Forbidden"},"404":{"$ref":"#/components/responses/NotFound"},"429":{"$ref":"#/components/responses/TooManyRequests"},"500":{"$ref":"#/components/responses/ServerError"}},"security":[{"JWT":[]},{"ApiKey":[]}],"summary":"Get all entries in a price book","tags":["Price Books"],"x-api-key-scopes":["*"]},"post":{"operationId":"priceBooks_createEntry","parameters":[{"name":"id","required":true,"in":"path","schema":{"type":"string"}},{"$ref":"#/components/parameters/IdempotencyKey"}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/CreatePriceBookEntryDto"}}}},"responses":{"201":{"description":""},"400":{"$ref":"#/components/responses/BadRequest"},"401":{"$ref":"#/components/responses/Unauthorized"},"403":{"$ref":"#/components/responses/Forbidden"},"404":{"$ref":"#/components/responses/NotFound"},"409":{"$ref":"#/components/responses/Conflict"},"429":{"$ref":"#/components/responses/TooManyRequests"},"500":{"$ref":"#/components/responses/ServerError"}},"security":[{"JWT":[]},{"ApiKey":[]}],"summary":"Add a product entry to price book","tags":["Price Books"],"x-api-key-scopes":["*"]}},"/v1/price-books/{id}/entries/bulk":{"post":{"operationId":"priceBooks_createEntriesBulk","parameters":[{"name":"id","required":true,"in":"path","schema":{"type":"string"}},{"$ref":"#/components/parameters/IdempotencyKey"}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/CreateEntriesBulkBody"}}}},"responses":{"201":{"description":""},"400":{"$ref":"#/components/responses/BadRequest"},"401":{"$ref":"#/components/responses/Unauthorized"},"403":{"$ref":"#/components/responses/Forbidden"},"404":{"$ref":"#/components/responses/NotFound"},"409":{"$ref":"#/components/responses/Conflict"},"429":{"$ref":"#/components/responses/TooManyRequests"},"500":{"$ref":"#/components/responses/ServerError"}},"security":[{"JWT":[]},{"ApiKey":[]}],"summary":"Add multiple product entries to price book","tags":["Price Books"],"x-api-key-scopes":["*"]}},"/v1/price-books/{id}/entries/{entryId}":{"patch":{"operationId":"priceBooks_updateEntry","parameters":[{"name":"id","required":true,"in":"path","schema":{"type":"string"}},{"name":"entryId","required":true,"in":"path","schema":{"type":"string"}},{"$ref":"#/components/parameters/IdempotencyKey"}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/UpdatePriceBookEntryDto"}}}},"responses":{"200":{"description":""},"400":{"$ref":"#/components/responses/BadRequest"},"401":{"$ref":"#/components/responses/Unauthorized"},"403":{"$ref":"#/components/responses/Forbidden"},"404":{"$ref":"#/components/responses/NotFound"},"409":{"$ref":"#/components/responses/Conflict"},"429":{"$ref":"#/components/responses/TooManyRequests"},"500":{"$ref":"#/components/responses/ServerError"}},"security":[{"JWT":[]},{"ApiKey":[]}],"summary":"Update a price book entry","tags":["Price Books"],"x-api-key-scopes":["*"]},"delete":{"operationId":"priceBooks_removeEntry","parameters":[{"name":"id","required":true,"in":"path","schema":{"type":"string"}},{"name":"entryId","required":true,"in":"path","schema":{"type":"string"}}],"responses":{"200":{"description":""},"400":{"$ref":"#/components/responses/BadRequest"},"401":{"$ref":"#/components/responses/Unauthorized"},"403":{"$ref":"#/components/responses/Forbidden"},"404":{"$ref":"#/components/responses/NotFound"},"429":{"$ref":"#/components/responses/TooManyRequests"},"500":{"$ref":"#/components/responses/ServerError"}},"security":[{"JWT":[]},{"ApiKey":[]}],"summary":"Remove a price book entry","tags":["Price Books"],"x-api-key-scopes":["*"]}},"/v1/price-books/{id}/products/{productId}/price":{"get":{"operationId":"priceBooks_getProductPrice","parameters":[{"name":"id","required":true,"in":"path","schema":{"type":"string"}},{"name":"productId","required":true,"in":"path","schema":{"type":"string"}},{"name":"quantity","required":false,"in":"query","schema":{"type":"number"}}],"responses":{"200":{"description":""},"400":{"$ref":"#/components/responses/BadRequest"},"401":{"$ref":"#/components/responses/Unauthorized"},"403":{"$ref":"#/components/responses/Forbidden"},"404":{"$ref":"#/components/responses/NotFound"},"429":{"$ref":"#/components/responses/TooManyRequests"},"500":{"$ref":"#/components/responses/ServerError"}},"security":[{"JWT":[]},{"ApiKey":[]}],"summary":"Get product price from price book","tags":["Price Books"],"x-api-key-scopes":["*"]}},"/v1/web-forms":{"post":{"operationId":"webForms_create","parameters":[{"$ref":"#/components/parameters/IdempotencyKey"}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/CreateWebFormDto"}}}},"responses":{"201":{"description":"","content":{"application/json":{"schema":{"type":"object"}}}},"400":{"$ref":"#/components/responses/BadRequest"},"401":{"$ref":"#/components/responses/Unauthorized"},"403":{"$ref":"#/components/responses/Forbidden"},"409":{"$ref":"#/components/responses/Conflict"},"429":{"$ref":"#/components/responses/TooManyRequests"},"500":{"$ref":"#/components/responses/ServerError"}},"security":[{"JWT":[]},{"ApiKey":[]}],"summary":"Create a new web form","tags":["Web Forms"],"x-api-key-scopes":["*"]},"get":{"operationId":"webForms_findAll","parameters":[{"name":"isActive","required":false,"in":"query","schema":{"type":"boolean"}}],"responses":{"200":{"description":"","content":{"application/json":{"schema":{"type":"array","items":{"type":"object"}}}}},"400":{"$ref":"#/components/responses/BadRequest"},"401":{"$ref":"#/components/responses/Unauthorized"},"403":{"$ref":"#/components/responses/Forbidden"},"429":{"$ref":"#/components/responses/TooManyRequests"},"500":{"$ref":"#/components/responses/ServerError"}},"security":[{"JWT":[]},{"ApiKey":[]}],"summary":"Get all web forms","tags":["Web Forms"],"x-api-key-scopes":["*"]}},"/v1/web-forms/stats":{"get":{"operationId":"webForms_getGlobalStats","parameters":[],"responses":{"200":{"description":"","content":{"application/json":{"schema":{"type":"object"}}}},"401":{"$ref":"#/components/responses/Unauthorized"},"403":{"$ref":"#/components/responses/Forbidden"},"429":{"$ref":"#/components/responses/TooManyRequests"},"500":{"$ref":"#/components/responses/ServerError"}},"security":[{"JWT":[]},{"ApiKey":[]}],"summary":"Get global web form statistics","tags":["Web Forms"],"x-api-key-scopes":["*"]}},"/v1/web-forms/{id}":{"get":{"operationId":"webForms_findOne","parameters":[{"name":"id","required":true,"in":"path","schema":{"type":"string"}}],"responses":{"200":{"description":"","content":{"application/json":{"schema":{"type":"object"}}}},"400":{"$ref":"#/components/responses/BadRequest"},"401":{"$ref":"#/components/responses/Unauthorized"},"403":{"$ref":"#/components/responses/Forbidden"},"404":{"$ref":"#/components/responses/NotFound"},"429":{"$ref":"#/components/responses/TooManyRequests"},"500":{"$ref":"#/components/responses/ServerError"}},"security":[{"JWT":[]},{"ApiKey":[]}],"summary":"Get a web form by ID","tags":["Web Forms"],"x-api-key-scopes":["*"]},"patch":{"operationId":"webForms_update","parameters":[{"name":"id","required":true,"in":"path","schema":{"type":"string"}},{"$ref":"#/components/parameters/IdempotencyKey"}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/UpdateWebFormDto"}}}},"responses":{"200":{"description":"","content":{"application/json":{"schema":{"type":"object"}}}},"400":{"$ref":"#/components/responses/BadRequest"},"401":{"$ref":"#/components/responses/Unauthorized"},"403":{"$ref":"#/components/responses/Forbidden"},"404":{"$ref":"#/components/responses/NotFound"},"409":{"$ref":"#/components/responses/Conflict"},"429":{"$ref":"#/components/responses/TooManyRequests"},"500":{"$ref":"#/components/responses/ServerError"}},"security":[{"JWT":[]},{"ApiKey":[]}],"summary":"Update a web form","tags":["Web Forms"],"x-api-key-scopes":["*"]}},"/v1/web-forms/{id}/activate":{"post":{"operationId":"webForms_activate","parameters":[{"name":"id","required":true,"in":"path","schema":{"type":"string"}},{"$ref":"#/components/parameters/IdempotencyKey"}],"responses":{"201":{"description":"","content":{"application/json":{"schema":{"type":"object"}}}},"400":{"$ref":"#/components/responses/BadRequest"},"401":{"$ref":"#/components/responses/Unauthorized"},"403":{"$ref":"#/components/responses/Forbidden"},"404":{"$ref":"#/components/responses/NotFound"},"409":{"$ref":"#/components/responses/Conflict"},"429":{"$ref":"#/components/responses/TooManyRequests"},"500":{"$ref":"#/components/responses/ServerError"}},"security":[{"JWT":[]},{"ApiKey":[]}],"summary":"Activate a web form","tags":["Web Forms"],"x-api-key-scopes":["*"]}},"/v1/web-forms/{id}/deactivate":{"post":{"operationId":"webForms_deactivate","parameters":[{"name":"id","required":true,"in":"path","schema":{"type":"string"}},{"$ref":"#/components/parameters/IdempotencyKey"}],"responses":{"201":{"description":"","content":{"application/json":{"schema":{"type":"object"}}}},"400":{"$ref":"#/components/responses/BadRequest"},"401":{"$ref":"#/components/responses/Unauthorized"},"403":{"$ref":"#/components/responses/Forbidden"},"404":{"$ref":"#/components/responses/NotFound"},"409":{"$ref":"#/components/responses/Conflict"},"429":{"$ref":"#/components/responses/TooManyRequests"},"500":{"$ref":"#/components/responses/ServerError"}},"security":[{"JWT":[]},{"ApiKey":[]}],"summary":"Deactivate a web form","tags":["Web Forms"],"x-api-key-scopes":["*"]}},"/v1/web-forms/{id}/clone":{"post":{"operationId":"webForms_clone","parameters":[{"name":"id","required":true,"in":"path","schema":{"type":"string"}},{"$ref":"#/components/parameters/IdempotencyKey"}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/CloneBody"}}}},"responses":{"201":{"description":""},"400":{"$ref":"#/components/responses/BadRequest"},"401":{"$ref":"#/components/responses/Unauthorized"},"403":{"$ref":"#/components/responses/Forbidden"},"404":{"$ref":"#/components/responses/NotFound"},"409":{"$ref":"#/components/responses/Conflict"},"429":{"$ref":"#/components/responses/TooManyRequests"},"500":{"$ref":"#/components/responses/ServerError"}},"security":[{"JWT":[]},{"ApiKey":[]}],"summary":"Clone a web form","tags":["Web Forms"],"x-api-key-scopes":["*"]}},"/v1/web-forms/{id}/embed-code":{"get":{"operationId":"webForms_getEmbedCode","parameters":[{"name":"id","required":true,"in":"path","schema":{"type":"string"}}],"responses":{"200":{"description":""},"400":{"$ref":"#/components/responses/BadRequest"},"401":{"$ref":"#/components/responses/Unauthorized"},"403":{"$ref":"#/components/responses/Forbidden"},"404":{"$ref":"#/components/responses/NotFound"},"429":{"$ref":"#/components/responses/TooManyRequests"},"500":{"$ref":"#/components/responses/ServerError"}},"security":[{"JWT":[]},{"ApiKey":[]}],"summary":"Get embed code for the form","tags":["Web Forms"],"x-api-key-scopes":["*"]}},"/v1/web-forms/{id}/regenerate-slug":{"post":{"operationId":"webForms_regenerateSlug","parameters":[{"name":"id","required":true,"in":"path","schema":{"type":"string"}},{"$ref":"#/components/parameters/IdempotencyKey"}],"responses":{"201":{"description":""},"400":{"$ref":"#/components/responses/BadRequest"},"401":{"$ref":"#/components/responses/Unauthorized"},"403":{"$ref":"#/components/responses/Forbidden"},"404":{"$ref":"#/components/responses/NotFound"},"409":{"$ref":"#/components/responses/Conflict"},"429":{"$ref":"#/components/responses/TooManyRequests"},"500":{"$ref":"#/components/responses/ServerError"}},"security":[{"JWT":[]},{"ApiKey":[]}],"summary":"Regenerate form slug","tags":["Web Forms"],"x-api-key-scopes":["*"]}},"/v1/web-forms/{id}/stats":{"get":{"operationId":"webForms_getFormStats","parameters":[{"name":"id","required":true,"in":"path","schema":{"type":"string"}}],"responses":{"200":{"description":"","content":{"application/json":{"schema":{"type":"object"}}}},"400":{"$ref":"#/components/responses/BadRequest"},"401":{"$ref":"#/components/responses/Unauthorized"},"403":{"$ref":"#/components/responses/Forbidden"},"404":{"$ref":"#/components/responses/NotFound"},"429":{"$ref":"#/components/responses/TooManyRequests"},"500":{"$ref":"#/components/responses/ServerError"}},"security":[{"JWT":[]},{"ApiKey":[]}],"summary":"Get form statistics","tags":["Web Forms"],"x-api-key-scopes":["*"]}},"/v1/web-forms/{id}/submissions":{"get":{"operationId":"webForms_getSubmissions","parameters":[{"name":"id","required":true,"in":"path","schema":{"type":"string"}},{"name":"status","required":false,"in":"query","schema":{"enum":["PENDING","PROCESSED","FAILED","DUPLICATE","SPAM"],"type":"string"}},{"name":"page","required":false,"in":"query","schema":{"type":"number"}},{"name":"limit","required":false,"in":"query","schema":{"type":"number"}}],"responses":{"200":{"description":""},"400":{"$ref":"#/components/responses/BadRequest"},"401":{"$ref":"#/components/responses/Unauthorized"},"403":{"$ref":"#/components/responses/Forbidden"},"404":{"$ref":"#/components/responses/NotFound"},"429":{"$ref":"#/components/responses/TooManyRequests"},"500":{"$ref":"#/components/responses/ServerError"}},"security":[{"JWT":[]},{"ApiKey":[]}],"summary":"Get form submissions","tags":["Web Forms"],"x-api-key-scopes":["*"]}},"/v1/web-forms/{id}/submissions/{submissionId}":{"get":{"operationId":"webForms_getSubmission","parameters":[{"name":"id","required":true,"in":"path","schema":{"type":"string"}},{"name":"submissionId","required":true,"in":"path","schema":{"type":"string"}}],"responses":{"200":{"description":""},"400":{"$ref":"#/components/responses/BadRequest"},"401":{"$ref":"#/components/responses/Unauthorized"},"403":{"$ref":"#/components/responses/Forbidden"},"404":{"$ref":"#/components/responses/NotFound"},"429":{"$ref":"#/components/responses/TooManyRequests"},"500":{"$ref":"#/components/responses/ServerError"}},"security":[{"JWT":[]},{"ApiKey":[]}],"summary":"Get a specific submission","tags":["Web Forms"],"x-api-key-scopes":["*"]},"delete":{"operationId":"webForms_deleteSubmission","parameters":[{"name":"id","required":true,"in":"path","schema":{"type":"string"}},{"name":"submissionId","required":true,"in":"path","schema":{"type":"string"}}],"responses":{"200":{"description":""},"400":{"$ref":"#/components/responses/BadRequest"},"401":{"$ref":"#/components/responses/Unauthorized"},"403":{"$ref":"#/components/responses/Forbidden"},"404":{"$ref":"#/components/responses/NotFound"},"429":{"$ref":"#/components/responses/TooManyRequests"},"500":{"$ref":"#/components/responses/ServerError"}},"security":[{"JWT":[]},{"ApiKey":[]}],"summary":"Delete a submission","tags":["Web Forms"],"x-api-key-scopes":["*"]}},"/v1/web-forms/public/{slug}":{"get":{"operationId":"webForms_getPublicForm","parameters":[{"name":"slug","required":true,"in":"path","schema":{"type":"string"}}],"responses":{"200":{"description":""},"400":{"$ref":"#/components/responses/BadRequest"},"404":{"$ref":"#/components/responses/NotFound"},"429":{"$ref":"#/components/responses/TooManyRequests"},"500":{"$ref":"#/components/responses/ServerError"}},"summary":"Get public form data by slug","tags":["Web Forms"],"security":[]}},"/v1/web-forms/public/{slug}/submit":{"post":{"operationId":"webForms_submitForm","parameters":[{"name":"slug","required":true,"in":"path","schema":{"type":"string"}},{"name":"user-agent","required":true,"in":"header","schema":{"type":"string"}},{"name":"referer","required":true,"in":"header","schema":{"type":"string"}},{"$ref":"#/components/parameters/IdempotencyKey"}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/SubmitWebFormDto"}}}},"responses":{"201":{"description":""},"400":{"$ref":"#/components/responses/BadRequest"},"404":{"$ref":"#/components/responses/NotFound"},"409":{"$ref":"#/components/responses/Conflict"},"429":{"$ref":"#/components/responses/TooManyRequests"},"500":{"$ref":"#/components/responses/ServerError"}},"summary":"Submit a web form (public endpoint)","tags":["Web Forms"],"security":[]}},"/v1/api-keys":{"post":{"description":"The secret is returned once. Keys are bound to the current organization.","operationId":"apiKeys_create","parameters":[],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/CreateApiKeyDto"}}}},"responses":{"201":{"description":"ApiKeyCreated","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ApiKeyCreated"}}}},"400":{"$ref":"#/components/responses/BadRequest"},"401":{"$ref":"#/components/responses/Unauthorized"},"403":{"$ref":"#/components/responses/Forbidden"},"429":{"$ref":"#/components/responses/TooManyRequests"},"500":{"$ref":"#/components/responses/ServerError"}},"security":[{"JWT":[]}],"summary":"Create a new API key","tags":["API Keys"]},"get":{"operationId":"apiKeys_findAll","parameters":[{"name":"status","required":false,"in":"query","schema":{"enum":["ACTIVE","REVOKED","EXPIRED"],"type":"string"}}],"responses":{"200":{"description":"ApiKeyArray","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ApiKeyArray"}}}},"400":{"$ref":"#/components/responses/BadRequest"},"401":{"$ref":"#/components/responses/Unauthorized"},"403":{"$ref":"#/components/responses/Forbidden"},"429":{"$ref":"#/components/responses/TooManyRequests"},"500":{"$ref":"#/components/responses/ServerError"}},"security":[{"JWT":[]}],"summary":"Get all API keys for current user","tags":["API Keys"]}},"/v1/api-keys/usage":{"get":{"operationId":"apiKeys_getOverallUsage","parameters":[{"name":"dateFrom","required":false,"in":"query","schema":{"type":"string"}},{"name":"dateTo","required":false,"in":"query","schema":{"type":"string"}}],"responses":{"200":{"description":""},"400":{"$ref":"#/components/responses/BadRequest"},"401":{"$ref":"#/components/responses/Unauthorized"},"403":{"$ref":"#/components/responses/Forbidden"},"429":{"$ref":"#/components/responses/TooManyRequests"},"500":{"$ref":"#/components/responses/ServerError"}},"security":[{"JWT":[]}],"summary":"Get aggregate usage stats across all of current user's keys","tags":["API Keys"]}},"/v1/api-keys/deprecated-usage":{"get":{"operationId":"apiKeys_getDeprecatedUsage","parameters":[{"name":"days","required":false,"in":"query","schema":{"type":"number"}}],"responses":{"200":{"description":""},"400":{"$ref":"#/components/responses/BadRequest"},"401":{"$ref":"#/components/responses/Unauthorized"},"403":{"$ref":"#/components/responses/Forbidden"},"429":{"$ref":"#/components/responses/TooManyRequests"},"500":{"$ref":"#/components/responses/ServerError"}},"security":[{"JWT":[]}],"summary":"Deprecated endpoints your organization's keys and sessions still call","tags":["API Keys"]}},"/v1/api-keys/{id}":{"get":{"operationId":"apiKeys_findOne","parameters":[{"name":"id","required":true,"in":"path","schema":{"type":"string"}}],"responses":{"200":{"description":"ApiKey","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ApiKey"}}}},"400":{"$ref":"#/components/responses/BadRequest"},"401":{"$ref":"#/components/responses/Unauthorized"},"403":{"$ref":"#/components/responses/Forbidden"},"404":{"$ref":"#/components/responses/NotFound"},"429":{"$ref":"#/components/responses/TooManyRequests"},"500":{"$ref":"#/components/responses/ServerError"}},"security":[{"JWT":[]}],"summary":"Get an API key by ID","tags":["API Keys"]},"patch":{"operationId":"apiKeys_update","parameters":[{"name":"id","required":true,"in":"path","schema":{"type":"string"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/UpdateApiKeyDto"}}}},"responses":{"200":{"description":"ApiKey","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ApiKey"}}}},"400":{"$ref":"#/components/responses/BadRequest"},"401":{"$ref":"#/components/responses/Unauthorized"},"403":{"$ref":"#/components/responses/Forbidden"},"404":{"$ref":"#/components/responses/NotFound"},"429":{"$ref":"#/components/responses/TooManyRequests"},"500":{"$ref":"#/components/responses/ServerError"}},"security":[{"JWT":[]}],"summary":"Update an API key","tags":["API Keys"]},"delete":{"operationId":"apiKeys_remove","parameters":[{"name":"id","required":true,"in":"path","schema":{"type":"string"}}],"responses":{"200":{"description":"SuccessResponse","content":{"application/json":{"schema":{"$ref":"#/components/schemas/SuccessResponse"}}}},"400":{"$ref":"#/components/responses/BadRequest"},"401":{"$ref":"#/components/responses/Unauthorized"},"403":{"$ref":"#/components/responses/Forbidden"},"404":{"$ref":"#/components/responses/NotFound"},"429":{"$ref":"#/components/responses/TooManyRequests"},"500":{"$ref":"#/components/responses/ServerError"}},"security":[{"JWT":[]}],"summary":"Delete an API key","tags":["API Keys"]}},"/v1/api-keys/{id}/revoke":{"post":{"operationId":"apiKeys_revoke","parameters":[{"name":"id","required":true,"in":"path","schema":{"type":"string"}}],"responses":{"201":{"description":"ApiKey","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ApiKey"}}}},"400":{"$ref":"#/components/responses/BadRequest"},"401":{"$ref":"#/components/responses/Unauthorized"},"403":{"$ref":"#/components/responses/Forbidden"},"404":{"$ref":"#/components/responses/NotFound"},"429":{"$ref":"#/components/responses/TooManyRequests"},"500":{"$ref":"#/components/responses/ServerError"}},"security":[{"JWT":[]}],"summary":"Revoke an API key","tags":["API Keys"]}},"/v1/api-keys/{id}/rotate":{"post":{"description":"Issues a new secret with the same settings. The old secret keeps working for `overlapHours` (default 24, 0 revokes it now), then expires.","operationId":"apiKeys_rotate","parameters":[{"name":"id","required":true,"in":"path","schema":{"type":"string"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/RotateApiKeyDto"}}}},"responses":{"201":{"description":"ApiKeyRotated","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ApiKeyRotated"}}}},"400":{"$ref":"#/components/responses/BadRequest"},"401":{"$ref":"#/components/responses/Unauthorized"},"403":{"$ref":"#/components/responses/Forbidden"},"404":{"$ref":"#/components/responses/NotFound"},"429":{"$ref":"#/components/responses/TooManyRequests"},"500":{"$ref":"#/components/responses/ServerError"}},"security":[{"JWT":[]}],"summary":"Rotate an API key","tags":["API Keys"]}},"/v1/api-keys/{id}/regenerate":{"post":{"operationId":"apiKeys_regenerate","parameters":[{"name":"id","required":true,"in":"path","schema":{"type":"string"}}],"responses":{"201":{"description":"ApiKeyRegenerated","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ApiKeyRegenerated"}}}},"400":{"$ref":"#/components/responses/BadRequest"},"401":{"$ref":"#/components/responses/Unauthorized"},"403":{"$ref":"#/components/responses/Forbidden"},"404":{"$ref":"#/components/responses/NotFound"},"429":{"$ref":"#/components/responses/TooManyRequests"},"500":{"$ref":"#/components/responses/ServerError"}},"security":[{"JWT":[]}],"summary":"Regenerate an API key (replaces the secret with no overlap)","tags":["API Keys"],"deprecated":true,"x-sunset":"2027-04-01","description":"**Deprecated**, sunset 2027-04-01. Use `/v1/api-keys/{id}/rotate`."}},"/v1/api-keys/{id}/usage":{"get":{"operationId":"apiKeys_getUsageLogs","parameters":[{"name":"id","required":true,"in":"path","schema":{"type":"string"}},{"name":"page","required":false,"in":"query","schema":{"type":"number"}},{"name":"limit","required":false,"in":"query","schema":{"type":"number"}}],"responses":{"200":{"description":"ApiKeyUsagePage","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ApiKeyUsagePage"}}}},"400":{"$ref":"#/components/responses/BadRequest"},"401":{"$ref":"#/components/responses/Unauthorized"},"403":{"$ref":"#/components/responses/Forbidden"},"404":{"$ref":"#/components/responses/NotFound"},"429":{"$ref":"#/components/responses/TooManyRequests"},"500":{"$ref":"#/components/responses/ServerError"}},"security":[{"JWT":[]}],"summary":"Get API key usage logs","tags":["API Keys"]}},"/v1/api-keys/{id}/stats":{"get":{"operationId":"apiKeys_getUsageStats","parameters":[{"name":"id","required":true,"in":"path","schema":{"type":"string"}}],"responses":{"200":{"description":""},"400":{"$ref":"#/components/responses/BadRequest"},"401":{"$ref":"#/components/responses/Unauthorized"},"403":{"$ref":"#/components/responses/Forbidden"},"404":{"$ref":"#/components/responses/NotFound"},"429":{"$ref":"#/components/responses/TooManyRequests"},"500":{"$ref":"#/components/responses/ServerError"}},"security":[{"JWT":[]}],"summary":"Get API key usage statistics","tags":["API Keys"]}},"/v1/events/catalog":{"get":{"operationId":"eventCatalog_getCatalog","parameters":[],"responses":{"200":{"description":""},"429":{"$ref":"#/components/responses/TooManyRequests"},"500":{"$ref":"#/components/responses/ServerError"}},"summary":"Event catalog: every webhook event type with its JSON Schema","tags":["Events"],"security":[]}},"/v1/events/catalog/{type}":{"get":{"operationId":"eventCatalog_getEvent","parameters":[{"name":"type","required":true,"in":"path","schema":{"type":"string"}}],"responses":{"200":{"description":"","content":{"application/json":{"schema":{"type":"object"}}}},"400":{"$ref":"#/components/responses/BadRequest"},"404":{"$ref":"#/components/responses/NotFound"},"429":{"$ref":"#/components/responses/TooManyRequests"},"500":{"$ref":"#/components/responses/ServerError"}},"summary":"One event type (e.g. opportunity.stage_changed)","tags":["Events"],"security":[]}},"/v1/bulk/jobs":{"post":{"operationId":"bulkJobs_create","parameters":[{"$ref":"#/components/parameters/IdempotencyKey"}],"requestBody":{"required":true,"content":{"multipart/form-data":{"schema":{"$ref":"#/components/schemas/CreateBulkJobDto"}},"application/json":{"schema":{"$ref":"#/components/schemas/CreateBulkJobDto"}}}},"responses":{"201":{"description":"BulkJobView","content":{"application/json":{"schema":{"$ref":"#/components/schemas/BulkJobView"}}}},"400":{"$ref":"#/components/responses/BadRequest"},"401":{"$ref":"#/components/responses/Unauthorized"},"403":{"$ref":"#/components/responses/Forbidden"},"409":{"$ref":"#/components/responses/Conflict"},"429":{"$ref":"#/components/responses/TooManyRequests"},"500":{"$ref":"#/components/responses/ServerError"}},"security":[{"JWT":[]},{"ApiKey":[]}],"summary":"Queue an async insert/upsert/update/delete/export job (CSV or JSON lines)","tags":["Bulk API"]},"get":{"operationId":"bulkJobs_list","parameters":[{"name":"page","required":false,"in":"query","schema":{"type":"number"}},{"name":"limit","required":false,"in":"query","schema":{"type":"number"}},{"name":"status","required":false,"in":"query","schema":{"type":"string"}}],"responses":{"200":{"description":"BulkJobPage","content":{"application/json":{"schema":{"$ref":"#/components/schemas/BulkJobPage"}}}},"400":{"$ref":"#/components/responses/BadRequest"},"401":{"$ref":"#/components/responses/Unauthorized"},"403":{"$ref":"#/components/responses/Forbidden"},"429":{"$ref":"#/components/responses/TooManyRequests"},"500":{"$ref":"#/components/responses/ServerError"}},"security":[{"JWT":[]},{"ApiKey":[]}],"summary":"Your bulk jobs, newest first (ADMIN: the org’s)","tags":["Bulk API"]}},"/v1/bulk/jobs/{id}":{"get":{"operationId":"bulkJobs_get","parameters":[{"name":"id","required":true,"in":"path","schema":{"type":"string"}}],"responses":{"200":{"description":"BulkJobView","content":{"application/json":{"schema":{"$ref":"#/components/schemas/BulkJobView"}}}},"400":{"$ref":"#/components/responses/BadRequest"},"401":{"$ref":"#/components/responses/Unauthorized"},"403":{"$ref":"#/components/responses/Forbidden"},"404":{"$ref":"#/components/responses/NotFound"},"429":{"$ref":"#/components/responses/TooManyRequests"},"500":{"$ref":"#/components/responses/ServerError"}},"security":[{"JWT":[]},{"ApiKey":[]}],"summary":"Job status and processed / failed counts","tags":["Bulk API"]}},"/v1/bulk/jobs/{id}/cancel":{"post":{"operationId":"bulkJobs_cancel","parameters":[{"name":"id","required":true,"in":"path","schema":{"type":"string"}},{"$ref":"#/components/parameters/IdempotencyKey"}],"responses":{"201":{"description":"BulkJobView","content":{"application/json":{"schema":{"$ref":"#/components/schemas/BulkJobView"}}}},"400":{"$ref":"#/components/responses/BadRequest"},"401":{"$ref":"#/components/responses/Unauthorized"},"403":{"$ref":"#/components/responses/Forbidden"},"404":{"$ref":"#/components/responses/NotFound"},"409":{"$ref":"#/components/responses/Conflict"},"429":{"$ref":"#/components/responses/TooManyRequests"},"500":{"$ref":"#/components/responses/ServerError"}},"security":[{"JWT":[]},{"ApiKey":[]}],"summary":"Stop a queued or running job","tags":["Bulk API"]}},"/v1/bulk/jobs/{id}/results":{"get":{"operationId":"bulkJobs_results","parameters":[{"name":"id","required":true,"in":"path","schema":{"type":"string"}}],"responses":{"200":{"description":"The file","content":{"text/csv":{"schema":{"type":"string"}},"application/x-ndjson":{"schema":{"type":"string"}}}},"400":{"$ref":"#/components/responses/BadRequest"},"401":{"$ref":"#/components/responses/Unauthorized"},"403":{"$ref":"#/components/responses/Forbidden"},"404":{"$ref":"#/components/responses/NotFound"},"429":{"$ref":"#/components/responses/TooManyRequests"},"500":{"$ref":"#/components/responses/ServerError"}},"security":[{"JWT":[]},{"ApiKey":[]}],"summary":"Download per-row results (row,id,action,externalId), or the exported records","tags":["Bulk API"]}},"/v1/bulk/jobs/{id}/failures":{"get":{"operationId":"bulkJobs_failures","parameters":[{"name":"id","required":true,"in":"path","schema":{"type":"string"}}],"responses":{"200":{"description":"The file","content":{"text/csv":{"schema":{"type":"string"}},"application/x-ndjson":{"schema":{"type":"string"}}}},"400":{"$ref":"#/components/responses/BadRequest"},"401":{"$ref":"#/components/responses/Unauthorized"},"403":{"$ref":"#/components/responses/Forbidden"},"404":{"$ref":"#/components/responses/NotFound"},"429":{"$ref":"#/components/responses/TooManyRequests"},"500":{"$ref":"#/components/responses/ServerError"}},"security":[{"JWT":[]},{"ApiKey":[]}],"summary":"Download failed rows (row,error,externalId,input)","tags":["Bulk API"]}},"/v1/custom-objects":{"get":{"operationId":"customObjects_listCustomObjects","parameters":[{"name":"page","required":false,"in":"query","schema":{"type":"string"}},{"name":"limit","required":false,"in":"query","schema":{"type":"string"}}],"responses":{"200":{"description":"CustomObjectDefinitionViewList","content":{"application/json":{"schema":{"$ref":"#/components/schemas/CustomObjectDefinitionViewList"}}}},"400":{"$ref":"#/components/responses/BadRequest"},"401":{"$ref":"#/components/responses/Unauthorized"},"403":{"$ref":"#/components/responses/Forbidden"},"429":{"$ref":"#/components/responses/TooManyRequests"},"500":{"$ref":"#/components/responses/ServerError"}},"security":[{"JWT":[]},{"ApiKey":[]}],"tags":["Custom Objects"],"summary":"List custom objects","x-api-key-scopes":["READ_CUSTOM_OBJECTS"]},"post":{"operationId":"customObjects_createCustomObject","parameters":[{"$ref":"#/components/parameters/IdempotencyKey"}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/CreateCustomObjectBody"}}}},"responses":{"201":{"description":"CustomObjectDefinition","content":{"application/json":{"schema":{"$ref":"#/components/schemas/CustomObjectDefinition"}}}},"400":{"$ref":"#/components/responses/BadRequest"},"401":{"$ref":"#/components/responses/Unauthorized"},"403":{"$ref":"#/components/responses/Forbidden"},"409":{"$ref":"#/components/responses/Conflict"},"429":{"$ref":"#/components/responses/TooManyRequests"},"500":{"$ref":"#/components/responses/ServerError"}},"security":[{"JWT":[]},{"ApiKey":[]}],"tags":["Custom Objects"],"summary":"Create custom object","x-api-key-scopes":["WRITE_CUSTOM_OBJECTS"]}},"/v1/custom-objects/stats":{"get":{"operationId":"customObjects_getStats","parameters":[],"responses":{"200":{"description":""},"401":{"$ref":"#/components/responses/Unauthorized"},"403":{"$ref":"#/components/responses/Forbidden"},"429":{"$ref":"#/components/responses/TooManyRequests"},"500":{"$ref":"#/components/responses/ServerError"}},"security":[{"JWT":[]},{"ApiKey":[]}],"tags":["Custom Objects"],"summary":"Get stats","x-api-key-scopes":["READ_CUSTOM_OBJECTS"]}},"/v1/custom-objects/lookup-targets":{"get":{"operationId":"customObjects_lookupTargets","parameters":[],"responses":{"200":{"description":"CustomObjectLookupTargets","content":{"application/json":{"schema":{"$ref":"#/components/schemas/CustomObjectLookupTargets"}}}},"401":{"$ref":"#/components/responses/Unauthorized"},"403":{"$ref":"#/components/responses/Forbidden"},"429":{"$ref":"#/components/responses/TooManyRequests"},"500":{"$ref":"#/components/responses/ServerError"}},"security":[{"JWT":[]},{"ApiKey":[]}],"summary":"Objects a lookup or master-detail field may point at","tags":["Custom Objects"],"x-api-key-scopes":["READ_CUSTOM_OBJECTS"]}},"/v1/custom-objects/related/{entityType}/{entityId}":{"get":{"operationId":"customObjects_relatedForStandard","parameters":[{"name":"entityType","required":true,"in":"path","schema":{"type":"string"}},{"name":"entityId","required":true,"in":"path","schema":{"type":"string"}},{"name":"limit","required":false,"in":"query","description":"Records per list (1–50, default 5)","schema":{"type":"string"}}],"responses":{"200":{"description":"CustomObjectRelatedLists","content":{"application/json":{"schema":{"$ref":"#/components/schemas/CustomObjectRelatedLists"}}}},"400":{"$ref":"#/components/responses/BadRequest"},"401":{"$ref":"#/components/responses/Unauthorized"},"403":{"$ref":"#/components/responses/Forbidden"},"404":{"$ref":"#/components/responses/NotFound"},"429":{"$ref":"#/components/responses/TooManyRequests"},"500":{"$ref":"#/components/responses/ServerError"}},"security":[{"JWT":[]},{"ApiKey":[]}],"summary":"Custom-object records that look up a standard record, grouped by object and field","tags":["Custom Objects"],"x-api-key-scopes":["READ_CUSTOM_OBJECTS"]}},"/v1/custom-objects/{id}":{"get":{"operationId":"customObjects_getCustomObject","parameters":[{"name":"id","required":true,"in":"path","schema":{"type":"string"}}],"responses":{"200":{"description":"CustomObjectDefinitionView","content":{"application/json":{"schema":{"$ref":"#/components/schemas/CustomObjectDefinitionView"}}}},"400":{"$ref":"#/components/responses/BadRequest"},"401":{"$ref":"#/components/responses/Unauthorized"},"403":{"$ref":"#/components/responses/Forbidden"},"404":{"$ref":"#/components/responses/NotFound"},"429":{"$ref":"#/components/responses/TooManyRequests"},"500":{"$ref":"#/components/responses/ServerError"}},"security":[{"JWT":[]},{"ApiKey":[]}],"tags":["Custom Objects"],"summary":"Get custom object","x-api-key-scopes":["READ_CUSTOM_OBJECTS"]},"patch":{"operationId":"customObjects_updateCustomObject","parameters":[{"name":"id","required":true,"in":"path","schema":{"type":"string"}},{"$ref":"#/components/parameters/IdempotencyKey"}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/UpdateCustomObjectBody"}}}},"responses":{"200":{"description":"CustomObjectDefinition","content":{"application/json":{"schema":{"$ref":"#/components/schemas/CustomObjectDefinition"}}}},"400":{"$ref":"#/components/responses/BadRequest"},"401":{"$ref":"#/components/responses/Unauthorized"},"403":{"$ref":"#/components/responses/Forbidden"},"404":{"$ref":"#/components/responses/NotFound"},"409":{"$ref":"#/components/responses/Conflict"},"429":{"$ref":"#/components/responses/TooManyRequests"},"500":{"$ref":"#/components/responses/ServerError"}},"security":[{"JWT":[]},{"ApiKey":[]}],"tags":["Custom Objects"],"summary":"Update custom object","x-api-key-scopes":["WRITE_CUSTOM_OBJECTS"]},"delete":{"operationId":"customObjects_deleteCustomObject","parameters":[{"name":"id","required":true,"in":"path","schema":{"type":"string"}}],"responses":{"200":{"description":"DeletedRecordResponse","content":{"application/json":{"schema":{"$ref":"#/components/schemas/DeletedRecordResponse"}}}},"400":{"$ref":"#/components/responses/BadRequest"},"401":{"$ref":"#/components/responses/Unauthorized"},"403":{"$ref":"#/components/responses/Forbidden"},"404":{"$ref":"#/components/responses/NotFound"},"429":{"$ref":"#/components/responses/TooManyRequests"},"500":{"$ref":"#/components/responses/ServerError"}},"security":[{"JWT":[]},{"ApiKey":[]}],"tags":["Custom Objects"],"summary":"Delete custom object","x-api-key-scopes":["WRITE_CUSTOM_OBJECTS"]}},"/v1/custom-objects/{id}/fields":{"post":{"operationId":"customObjects_addField","parameters":[{"name":"id","required":true,"in":"path","schema":{"type":"string"}},{"$ref":"#/components/parameters/IdempotencyKey"}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/AddFieldBody"}}}},"responses":{"201":{"description":"CustomObjectField","content":{"application/json":{"schema":{"$ref":"#/components/schemas/CustomObjectField"}}}},"400":{"$ref":"#/components/responses/BadRequest"},"401":{"$ref":"#/components/responses/Unauthorized"},"403":{"$ref":"#/components/responses/Forbidden"},"404":{"$ref":"#/components/responses/NotFound"},"409":{"$ref":"#/components/responses/Conflict"},"429":{"$ref":"#/components/responses/TooManyRequests"},"500":{"$ref":"#/components/responses/ServerError"}},"security":[{"JWT":[]},{"ApiKey":[]}],"tags":["Custom Objects"],"summary":"Add field","x-api-key-scopes":["WRITE_CUSTOM_OBJECTS"]}},"/v1/custom-objects/{id}/fields/{fieldId}":{"patch":{"operationId":"customObjects_updateField","parameters":[{"name":"id","required":true,"in":"path","schema":{"type":"string"}},{"name":"fieldId","required":true,"in":"path","schema":{"type":"string"}},{"$ref":"#/components/parameters/IdempotencyKey"}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/UpdateFieldBody"}}}},"responses":{"200":{"description":"CustomObjectField","content":{"application/json":{"schema":{"$ref":"#/components/schemas/CustomObjectField"}}}},"400":{"$ref":"#/components/responses/BadRequest"},"401":{"$ref":"#/components/responses/Unauthorized"},"403":{"$ref":"#/components/responses/Forbidden"},"404":{"$ref":"#/components/responses/NotFound"},"409":{"$ref":"#/components/responses/Conflict"},"429":{"$ref":"#/components/responses/TooManyRequests"},"500":{"$ref":"#/components/responses/ServerError"}},"security":[{"JWT":[]},{"ApiKey":[]}],"tags":["Custom Objects"],"summary":"Update field","x-api-key-scopes":["WRITE_CUSTOM_OBJECTS"]},"delete":{"operationId":"customObjects_deleteField","parameters":[{"name":"id","required":true,"in":"path","schema":{"type":"string"}},{"name":"fieldId","required":true,"in":"path","schema":{"type":"string"}}],"responses":{"200":{"description":"DeletedRecordResponse","content":{"application/json":{"schema":{"$ref":"#/components/schemas/DeletedRecordResponse"}}}},"400":{"$ref":"#/components/responses/BadRequest"},"401":{"$ref":"#/components/responses/Unauthorized"},"403":{"$ref":"#/components/responses/Forbidden"},"404":{"$ref":"#/components/responses/NotFound"},"429":{"$ref":"#/components/responses/TooManyRequests"},"500":{"$ref":"#/components/responses/ServerError"}},"security":[{"JWT":[]},{"ApiKey":[]}],"tags":["Custom Objects"],"summary":"Delete field","x-api-key-scopes":["WRITE_CUSTOM_OBJECTS"]}},"/v1/custom-objects/{id}/records":{"get":{"operationId":"customObjects_listRecords","parameters":[{"name":"id","required":true,"in":"path","schema":{"type":"string"}},{"name":"page","required":false,"in":"query","schema":{"type":"string"}},{"name":"limit","required":false,"in":"query","description":"1–200, default 50","schema":{"type":"string"}},{"name":"sortBy","required":false,"in":"query","description":"Field API name, createdAt, updatedAt, ownerId or ownerName","schema":{"type":"string"}},{"name":"sortOrder","required":false,"in":"query","schema":{"enum":["asc","desc"],"type":"string"}},{"name":"search","required":false,"in":"query","description":"Matches text and picklist fields","schema":{"type":"string"}},{"name":"filters","required":false,"in":"query","description":"JSON array of { field, operator, value }","schema":{"type":"string"}},{"name":"owner","required":false,"in":"query","schema":{"enum":["me"],"type":"string"}},{"name":"ids","required":false,"in":"query","description":"Comma-separated record ids","schema":{"type":"string"}}],"responses":{"200":{"description":"CustomObjectRecordPage","content":{"application/json":{"schema":{"$ref":"#/components/schemas/CustomObjectRecordPage"}}}},"400":{"$ref":"#/components/responses/BadRequest"},"401":{"$ref":"#/components/responses/Unauthorized"},"403":{"$ref":"#/components/responses/Forbidden"},"404":{"$ref":"#/components/responses/NotFound"},"429":{"$ref":"#/components/responses/TooManyRequests"},"500":{"$ref":"#/components/responses/ServerError"}},"security":[{"JWT":[]},{"ApiKey":[]}],"summary":"Records, paged and sorted on the server. `filters` is JSON:\n`[{\"field\":\"status\",\"operator\":\"eq\",\"value\":\"Open\"}]` (operators: eq, neq,\ncontains, not_contains, starts_with, gt, gte, lt, lte, between, in, not_in,\nis_empty, is_not_empty). `:id` is the object's id or API name.","tags":["Custom Objects"],"x-api-key-scopes":["READ_CUSTOM_OBJECTS"]},"patch":{"operationId":"customObjects_bulkUpdateRecords","parameters":[{"name":"id","required":true,"in":"path","schema":{"type":"string"}},{"$ref":"#/components/parameters/IdempotencyKey"}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/BulkUpdateRecordsBody"}}}},"responses":{"200":{"description":"CustomObjectBulkUpdateResult","content":{"application/json":{"schema":{"$ref":"#/components/schemas/CustomObjectBulkUpdateResult"}}}},"400":{"$ref":"#/components/responses/BadRequest"},"401":{"$ref":"#/components/responses/Unauthorized"},"403":{"$ref":"#/components/responses/Forbidden"},"404":{"$ref":"#/components/responses/NotFound"},"409":{"$ref":"#/components/responses/Conflict"},"429":{"$ref":"#/components/responses/TooManyRequests"},"500":{"$ref":"#/components/responses/ServerError"}},"security":[{"JWT":[]},{"ApiKey":[]}],"summary":"Set one field on many records","tags":["Custom Objects"],"x-api-key-scopes":["WRITE_CUSTOM_OBJECTS"]},"post":{"operationId":"customObjects_createRecord","parameters":[{"name":"id","required":true,"in":"path","schema":{"type":"string"}},{"$ref":"#/components/parameters/IdempotencyKey"}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/CreateRecordBody"}}}},"responses":{"201":{"description":"CustomObjectRecordView","content":{"application/json":{"schema":{"$ref":"#/components/schemas/CustomObjectRecordView"}}}},"400":{"$ref":"#/components/responses/BadRequest"},"401":{"$ref":"#/components/responses/Unauthorized"},"403":{"$ref":"#/components/responses/Forbidden"},"404":{"$ref":"#/components/responses/NotFound"},"409":{"$ref":"#/components/responses/Conflict"},"429":{"$ref":"#/components/responses/TooManyRequests"},"500":{"$ref":"#/components/responses/ServerError"}},"security":[{"JWT":[]},{"ApiKey":[]}],"tags":["Custom Objects"],"summary":"Create record","x-api-key-scopes":["WRITE_CUSTOM_OBJECTS"]}},"/v1/custom-objects/{id}/records/{recordId}":{"get":{"operationId":"customObjects_getRecord","parameters":[{"name":"id","required":true,"in":"path","schema":{"type":"string"}},{"name":"recordId","required":true,"in":"path","schema":{"type":"string"}}],"responses":{"200":{"description":"CustomObjectRecordView","content":{"application/json":{"schema":{"$ref":"#/components/schemas/CustomObjectRecordView"}}}},"400":{"$ref":"#/components/responses/BadRequest"},"401":{"$ref":"#/components/responses/Unauthorized"},"403":{"$ref":"#/components/responses/Forbidden"},"404":{"$ref":"#/components/responses/NotFound"},"429":{"$ref":"#/components/responses/TooManyRequests"},"500":{"$ref":"#/components/responses/ServerError"}},"security":[{"JWT":[]},{"ApiKey":[]}],"summary":"One record; `:id` is the object's id or its API name.","tags":["Custom Objects"],"x-api-key-scopes":["READ_CUSTOM_OBJECTS"]},"patch":{"operationId":"customObjects_updateRecord","parameters":[{"name":"id","required":true,"in":"path","schema":{"type":"string"}},{"name":"recordId","required":true,"in":"path","schema":{"type":"string"}},{"$ref":"#/components/parameters/IdempotencyKey"}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/UpdateRecordBody"}}}},"responses":{"200":{"description":"CustomObjectRecordView","content":{"application/json":{"schema":{"$ref":"#/components/schemas/CustomObjectRecordView"}}}},"400":{"$ref":"#/components/responses/BadRequest"},"401":{"$ref":"#/components/responses/Unauthorized"},"403":{"$ref":"#/components/responses/Forbidden"},"404":{"$ref":"#/components/responses/NotFound"},"409":{"$ref":"#/components/responses/Conflict"},"429":{"$ref":"#/components/responses/TooManyRequests"},"500":{"$ref":"#/components/responses/ServerError"}},"security":[{"JWT":[]},{"ApiKey":[]}],"tags":["Custom Objects"],"summary":"Update record","x-api-key-scopes":["WRITE_CUSTOM_OBJECTS"]},"delete":{"operationId":"customObjects_deleteRecord","parameters":[{"name":"id","required":true,"in":"path","schema":{"type":"string"}},{"name":"recordId","required":true,"in":"path","schema":{"type":"string"}}],"responses":{"200":{"description":"DeletedRecordResponse","content":{"application/json":{"schema":{"$ref":"#/components/schemas/DeletedRecordResponse"}}}},"400":{"$ref":"#/components/responses/BadRequest"},"401":{"$ref":"#/components/responses/Unauthorized"},"403":{"$ref":"#/components/responses/Forbidden"},"404":{"$ref":"#/components/responses/NotFound"},"429":{"$ref":"#/components/responses/TooManyRequests"},"500":{"$ref":"#/components/responses/ServerError"}},"security":[{"JWT":[]},{"ApiKey":[]}],"tags":["Custom Objects"],"summary":"Delete record","x-api-key-scopes":["WRITE_CUSTOM_OBJECTS"]}},"/v1/custom-objects/{id}/records/{recordId}/related":{"get":{"operationId":"customObjects_relatedForRecord","parameters":[{"name":"id","required":true,"in":"path","schema":{"type":"string"}},{"name":"recordId","required":true,"in":"path","schema":{"type":"string"}},{"name":"limit","required":false,"in":"query","description":"Records per list (1–50, default 5)","schema":{"type":"string"}}],"responses":{"200":{"description":"CustomObjectRelatedLists","content":{"application/json":{"schema":{"$ref":"#/components/schemas/CustomObjectRelatedLists"}}}},"400":{"$ref":"#/components/responses/BadRequest"},"401":{"$ref":"#/components/responses/Unauthorized"},"403":{"$ref":"#/components/responses/Forbidden"},"404":{"$ref":"#/components/responses/NotFound"},"429":{"$ref":"#/components/responses/TooManyRequests"},"500":{"$ref":"#/components/responses/ServerError"}},"security":[{"JWT":[]},{"ApiKey":[]}],"summary":"Records of other custom objects that look up this one, grouped by object and field","tags":["Custom Objects"],"x-api-key-scopes":["READ_CUSTOM_OBJECTS"]}},"/v1/orders":{"post":{"operationId":"orders_createOrder","parameters":[{"$ref":"#/components/parameters/IdempotencyKey"}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/CreateOrderBody"}}}},"responses":{"201":{"description":"Order","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Order"}}}},"400":{"$ref":"#/components/responses/BadRequest"},"401":{"$ref":"#/components/responses/Unauthorized"},"403":{"$ref":"#/components/responses/Forbidden"},"409":{"$ref":"#/components/responses/Conflict"},"429":{"$ref":"#/components/responses/TooManyRequests"},"500":{"$ref":"#/components/responses/ServerError"}},"security":[{"JWT":[]},{"ApiKey":[]}],"tags":["Orders"],"summary":"Create order","x-api-key-scopes":["WRITE_ORDERS"]},"get":{"operationId":"orders_listOrders","parameters":[{"name":"status","required":false,"in":"query","schema":{"type":"string"}},{"name":"paymentStatus","required":false,"in":"query","schema":{"type":"string"}},{"name":"fulfillmentStatus","required":false,"in":"query","schema":{"type":"string"}},{"name":"accountId","required":false,"in":"query","schema":{"type":"string"}},{"name":"search","required":false,"in":"query","schema":{"type":"string"}},{"name":"page","required":false,"in":"query","schema":{"type":"string"}},{"name":"limit","required":false,"in":"query","schema":{"type":"string"}},{"name":"sortBy","required":false,"in":"query","schema":{"type":"string"}},{"name":"sortOrder","required":false,"in":"query","schema":{"type":"string"}}],"responses":{"200":{"description":"OrderList","content":{"application/json":{"schema":{"$ref":"#/components/schemas/OrderList"}}}},"400":{"$ref":"#/components/responses/BadRequest"},"401":{"$ref":"#/components/responses/Unauthorized"},"403":{"$ref":"#/components/responses/Forbidden"},"429":{"$ref":"#/components/responses/TooManyRequests"},"500":{"$ref":"#/components/responses/ServerError"}},"security":[{"JWT":[]},{"ApiKey":[]}],"tags":["Orders"],"summary":"List orders","x-api-key-scopes":["READ_ORDERS"]}},"/v1/orders/convert-from-quote":{"post":{"operationId":"orders_convertQuoteToOrder","parameters":[{"$ref":"#/components/parameters/IdempotencyKey"}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ConvertQuoteToOrderBody"}}}},"responses":{"201":{"description":"Order","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Order"}}}},"400":{"$ref":"#/components/responses/BadRequest"},"401":{"$ref":"#/components/responses/Unauthorized"},"403":{"$ref":"#/components/responses/Forbidden"},"409":{"$ref":"#/components/responses/Conflict"},"429":{"$ref":"#/components/responses/TooManyRequests"},"500":{"$ref":"#/components/responses/ServerError"}},"security":[{"JWT":[]},{"ApiKey":[]}],"tags":["Orders"],"summary":"Convert quote to order","x-api-key-scopes":["WRITE_ORDERS"]}},"/v1/orders/stats":{"get":{"operationId":"orders_getOrderStats","parameters":[],"responses":{"200":{"description":""},"401":{"$ref":"#/components/responses/Unauthorized"},"403":{"$ref":"#/components/responses/Forbidden"},"429":{"$ref":"#/components/responses/TooManyRequests"},"500":{"$ref":"#/components/responses/ServerError"}},"security":[{"JWT":[]},{"ApiKey":[]}],"tags":["Orders"],"summary":"Get order stats","x-api-key-scopes":["READ_ORDERS"]}},"/v1/orders/{id}":{"get":{"operationId":"orders_getOrder","parameters":[{"name":"id","required":true,"in":"path","schema":{"type":"string"}}],"responses":{"200":{"description":"Order","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Order"}}}},"400":{"$ref":"#/components/responses/BadRequest"},"401":{"$ref":"#/components/responses/Unauthorized"},"403":{"$ref":"#/components/responses/Forbidden"},"404":{"$ref":"#/components/responses/NotFound"},"429":{"$ref":"#/components/responses/TooManyRequests"},"500":{"$ref":"#/components/responses/ServerError"}},"security":[{"JWT":[]},{"ApiKey":[]}],"tags":["Orders"],"summary":"Get order","x-api-key-scopes":["READ_ORDERS"]},"patch":{"operationId":"orders_updateOrder","parameters":[{"name":"id","required":true,"in":"path","schema":{"type":"string"}},{"$ref":"#/components/parameters/IdempotencyKey"}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/UpdateOrderBody"}}}},"responses":{"200":{"description":"Order","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Order"}}}},"400":{"$ref":"#/components/responses/BadRequest"},"401":{"$ref":"#/components/responses/Unauthorized"},"403":{"$ref":"#/components/responses/Forbidden"},"404":{"$ref":"#/components/responses/NotFound"},"409":{"$ref":"#/components/responses/Conflict"},"429":{"$ref":"#/components/responses/TooManyRequests"},"500":{"$ref":"#/components/responses/ServerError"}},"security":[{"JWT":[]},{"ApiKey":[]}],"tags":["Orders"],"summary":"Update order","x-api-key-scopes":["WRITE_ORDERS"]},"delete":{"operationId":"orders_deleteOrder","parameters":[{"name":"id","required":true,"in":"path","schema":{"type":"string"}}],"responses":{"200":{"description":"SuccessResponse","content":{"application/json":{"schema":{"$ref":"#/components/schemas/SuccessResponse"}}}},"400":{"$ref":"#/components/responses/BadRequest"},"401":{"$ref":"#/components/responses/Unauthorized"},"403":{"$ref":"#/components/responses/Forbidden"},"404":{"$ref":"#/components/responses/NotFound"},"429":{"$ref":"#/components/responses/TooManyRequests"},"500":{"$ref":"#/components/responses/ServerError"}},"security":[{"JWT":[]},{"ApiKey":[]}],"tags":["Orders"],"summary":"Delete order","x-api-key-scopes":["WRITE_ORDERS"]}},"/v1/orders/{id}/line-items":{"post":{"operationId":"orders_addLineItem","parameters":[{"name":"id","required":true,"in":"path","schema":{"type":"string"}},{"$ref":"#/components/parameters/IdempotencyKey"}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/AddLineItemBody"}}}},"responses":{"201":{"description":"OrderLineItem","content":{"application/json":{"schema":{"$ref":"#/components/schemas/OrderLineItem"}}}},"400":{"$ref":"#/components/responses/BadRequest"},"401":{"$ref":"#/components/responses/Unauthorized"},"403":{"$ref":"#/components/responses/Forbidden"},"404":{"$ref":"#/components/responses/NotFound"},"409":{"$ref":"#/components/responses/Conflict"},"429":{"$ref":"#/components/responses/TooManyRequests"},"500":{"$ref":"#/components/responses/ServerError"}},"security":[{"JWT":[]},{"ApiKey":[]}],"tags":["Orders"],"summary":"Add line item","x-api-key-scopes":["WRITE_ORDERS"]}},"/v1/orders/line-items/{lineItemId}":{"patch":{"operationId":"orders_updateLineItem","parameters":[{"name":"lineItemId","required":true,"in":"path","schema":{"type":"string"}},{"$ref":"#/components/parameters/IdempotencyKey"}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/UpdateLineItemBody"}}}},"responses":{"200":{"description":"OrderLineItem","content":{"application/json":{"schema":{"$ref":"#/components/schemas/OrderLineItem"}}}},"400":{"$ref":"#/components/responses/BadRequest"},"401":{"$ref":"#/components/responses/Unauthorized"},"403":{"$ref":"#/components/responses/Forbidden"},"404":{"$ref":"#/components/responses/NotFound"},"409":{"$ref":"#/components/responses/Conflict"},"429":{"$ref":"#/components/responses/TooManyRequests"},"500":{"$ref":"#/components/responses/ServerError"}},"security":[{"JWT":[]},{"ApiKey":[]}],"tags":["Orders"],"summary":"Update line item","x-api-key-scopes":["WRITE_ORDERS"]},"delete":{"operationId":"orders_removeLineItem","parameters":[{"name":"lineItemId","required":true,"in":"path","schema":{"type":"string"}}],"responses":{"200":{"description":"SuccessResponse","content":{"application/json":{"schema":{"$ref":"#/components/schemas/SuccessResponse"}}}},"400":{"$ref":"#/components/responses/BadRequest"},"401":{"$ref":"#/components/responses/Unauthorized"},"403":{"$ref":"#/components/responses/Forbidden"},"404":{"$ref":"#/components/responses/NotFound"},"429":{"$ref":"#/components/responses/TooManyRequests"},"500":{"$ref":"#/components/responses/ServerError"}},"security":[{"JWT":[]},{"ApiKey":[]}],"tags":["Orders"],"summary":"Remove line item","x-api-key-scopes":["WRITE_ORDERS"]}},"/v1/orders/{id}/fulfillment":{"patch":{"operationId":"orders_updateFulfillment","parameters":[{"name":"id","required":true,"in":"path","schema":{"type":"string"}},{"$ref":"#/components/parameters/IdempotencyKey"}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/UpdateFulfillmentBody"}}}},"responses":{"200":{"description":"Order","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Order"}}}},"400":{"$ref":"#/components/responses/BadRequest"},"401":{"$ref":"#/components/responses/Unauthorized"},"403":{"$ref":"#/components/responses/Forbidden"},"404":{"$ref":"#/components/responses/NotFound"},"409":{"$ref":"#/components/responses/Conflict"},"429":{"$ref":"#/components/responses/TooManyRequests"},"500":{"$ref":"#/components/responses/ServerError"}},"security":[{"JWT":[]},{"ApiKey":[]}],"tags":["Orders"],"summary":"Update fulfillment","x-api-key-scopes":["WRITE_ORDERS"]}},"/v1/orders/{id}/payment":{"patch":{"operationId":"orders_updatePayment","parameters":[{"name":"id","required":true,"in":"path","schema":{"type":"string"}},{"$ref":"#/components/parameters/IdempotencyKey"}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/UpdatePaymentBody"}}}},"responses":{"200":{"description":"Order","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Order"}}}},"400":{"$ref":"#/components/responses/BadRequest"},"401":{"$ref":"#/components/responses/Unauthorized"},"403":{"$ref":"#/components/responses/Forbidden"},"404":{"$ref":"#/components/responses/NotFound"},"409":{"$ref":"#/components/responses/Conflict"},"429":{"$ref":"#/components/responses/TooManyRequests"},"500":{"$ref":"#/components/responses/ServerError"}},"security":[{"JWT":[]},{"ApiKey":[]}],"tags":["Orders"],"summary":"Update payment","x-api-key-scopes":["WRITE_ORDERS"]}},"/v1/orders/{id}/cancel":{"post":{"operationId":"orders_cancelOrder","parameters":[{"name":"id","required":true,"in":"path","schema":{"type":"string"}},{"$ref":"#/components/parameters/IdempotencyKey"}],"responses":{"201":{"description":"Order","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Order"}}}},"400":{"$ref":"#/components/responses/BadRequest"},"401":{"$ref":"#/components/responses/Unauthorized"},"403":{"$ref":"#/components/responses/Forbidden"},"404":{"$ref":"#/components/responses/NotFound"},"409":{"$ref":"#/components/responses/Conflict"},"429":{"$ref":"#/components/responses/TooManyRequests"},"500":{"$ref":"#/components/responses/ServerError"}},"security":[{"JWT":[]},{"ApiKey":[]}],"tags":["Orders"],"summary":"Cancel order","x-api-key-scopes":["WRITE_ORDERS"]}},"/v1/orders/{id}/timeline":{"get":{"operationId":"orders_getTimeline","parameters":[{"name":"id","required":true,"in":"path","schema":{"type":"string"}}],"responses":{"200":{"description":"","content":{"application/json":{"schema":{"type":"array","items":{"type":"object"}}}}},"400":{"$ref":"#/components/responses/BadRequest"},"401":{"$ref":"#/components/responses/Unauthorized"},"403":{"$ref":"#/components/responses/Forbidden"},"404":{"$ref":"#/components/responses/NotFound"},"429":{"$ref":"#/components/responses/TooManyRequests"},"500":{"$ref":"#/components/responses/ServerError"}},"security":[{"JWT":[]},{"ApiKey":[]}],"tags":["Orders"],"summary":"Get timeline","x-api-key-scopes":["READ_ORDERS"]}},"/v1/orders/{id}/confirm":{"post":{"operationId":"orders_confirmOrder","parameters":[{"name":"id","required":true,"in":"path","schema":{"type":"string"}},{"$ref":"#/components/parameters/IdempotencyKey"}],"responses":{"201":{"description":"Order","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Order"}}}},"400":{"$ref":"#/components/responses/BadRequest"},"401":{"$ref":"#/components/responses/Unauthorized"},"403":{"$ref":"#/components/responses/Forbidden"},"404":{"$ref":"#/components/responses/NotFound"},"409":{"$ref":"#/components/responses/Conflict"},"429":{"$ref":"#/components/responses/TooManyRequests"},"500":{"$ref":"#/components/responses/ServerError"}},"security":[{"JWT":[]},{"ApiKey":[]}],"tags":["Orders"],"summary":"Confirm order","x-api-key-scopes":["WRITE_ORDERS"]}},"/v1/orders/{id}/invoice":{"post":{"operationId":"orders_createInvoice","parameters":[{"name":"id","required":true,"in":"path","schema":{"type":"string"}},{"$ref":"#/components/parameters/IdempotencyKey"}],"responses":{"201":{"description":"Invoice","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Invoice"}}}},"400":{"$ref":"#/components/responses/BadRequest"},"401":{"$ref":"#/components/responses/Unauthorized"},"403":{"$ref":"#/components/responses/Forbidden"},"404":{"$ref":"#/components/responses/NotFound"},"409":{"$ref":"#/components/responses/Conflict"},"429":{"$ref":"#/components/responses/TooManyRequests"},"500":{"$ref":"#/components/responses/ServerError"}},"security":[{"JWT":[]},{"ApiKey":[]}],"summary":"Creates the order's invoice, or returns the one it already has.","tags":["Orders"],"x-api-key-scopes":["WRITE_ORDERS"]}},"/v1/orders/{id}/ship":{"post":{"operationId":"orders_shipOrder","parameters":[{"name":"id","required":true,"in":"path","schema":{"type":"string"}},{"$ref":"#/components/parameters/IdempotencyKey"}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ShipOrderBody"}}}},"responses":{"201":{"description":"Order","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Order"}}}},"400":{"$ref":"#/components/responses/BadRequest"},"401":{"$ref":"#/components/responses/Unauthorized"},"403":{"$ref":"#/components/responses/Forbidden"},"404":{"$ref":"#/components/responses/NotFound"},"409":{"$ref":"#/components/responses/Conflict"},"429":{"$ref":"#/components/responses/TooManyRequests"},"500":{"$ref":"#/components/responses/ServerError"}},"security":[{"JWT":[]},{"ApiKey":[]}],"tags":["Orders"],"summary":"Ship order","x-api-key-scopes":["WRITE_ORDERS"]}},"/v1/orders/{id}/deliver":{"post":{"operationId":"orders_deliverOrder","parameters":[{"name":"id","required":true,"in":"path","schema":{"type":"string"}},{"$ref":"#/components/parameters/IdempotencyKey"}],"responses":{"201":{"description":"Order","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Order"}}}},"400":{"$ref":"#/components/responses/BadRequest"},"401":{"$ref":"#/components/responses/Unauthorized"},"403":{"$ref":"#/components/responses/Forbidden"},"404":{"$ref":"#/components/responses/NotFound"},"409":{"$ref":"#/components/responses/Conflict"},"429":{"$ref":"#/components/responses/TooManyRequests"},"500":{"$ref":"#/components/responses/ServerError"}},"security":[{"JWT":[]},{"ApiKey":[]}],"tags":["Orders"],"summary":"Deliver order","x-api-key-scopes":["WRITE_ORDERS"]}},"/v1/orders/{id}/send-confirmation":{"get":{"operationId":"orders_getConfirmationDefaults","parameters":[{"name":"id","required":true,"in":"path","schema":{"type":"string"}}],"responses":{"200":{"description":""},"400":{"$ref":"#/components/responses/BadRequest"},"401":{"$ref":"#/components/responses/Unauthorized"},"403":{"$ref":"#/components/responses/Forbidden"},"404":{"$ref":"#/components/responses/NotFound"},"429":{"$ref":"#/components/responses/TooManyRequests"},"500":{"$ref":"#/components/responses/ServerError"}},"security":[{"JWT":[]},{"ApiKey":[]}],"tags":["Orders"],"summary":"Get confirmation defaults","x-api-key-scopes":["READ_ORDERS"]},"post":{"operationId":"orders_sendConfirmation","parameters":[{"name":"id","required":true,"in":"path","schema":{"type":"string"}},{"$ref":"#/components/parameters/IdempotencyKey"}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/SendOrderEmailBody"}}}},"responses":{"201":{"description":"","content":{"application/json":{"schema":{"type":"object"}}}},"400":{"$ref":"#/components/responses/BadRequest"},"401":{"$ref":"#/components/responses/Unauthorized"},"403":{"$ref":"#/components/responses/Forbidden"},"404":{"$ref":"#/components/responses/NotFound"},"409":{"$ref":"#/components/responses/Conflict"},"429":{"$ref":"#/components/responses/TooManyRequests"},"500":{"$ref":"#/components/responses/ServerError"}},"security":[{"JWT":[]},{"ApiKey":[]}],"tags":["Orders"],"summary":"Send confirmation","x-api-key-scopes":["WRITE_ORDERS"]}},"/v1/orders/{id}/clone":{"post":{"operationId":"orders_cloneOrder","parameters":[{"name":"id","required":true,"in":"path","schema":{"type":"string"}},{"$ref":"#/components/parameters/IdempotencyKey"}],"responses":{"201":{"description":"Order","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Order"}}}},"400":{"$ref":"#/components/responses/BadRequest"},"401":{"$ref":"#/components/responses/Unauthorized"},"403":{"$ref":"#/components/responses/Forbidden"},"404":{"$ref":"#/components/responses/NotFound"},"409":{"$ref":"#/components/responses/Conflict"},"429":{"$ref":"#/components/responses/TooManyRequests"},"500":{"$ref":"#/components/responses/ServerError"}},"security":[{"JWT":[]},{"ApiKey":[]}],"tags":["Orders"],"summary":"Clone order","x-api-key-scopes":["WRITE_ORDERS"]}},"/v1/orders/{id}/recalculate":{"post":{"operationId":"orders_recalculateOrder","parameters":[{"name":"id","required":true,"in":"path","schema":{"type":"string"}},{"$ref":"#/components/parameters/IdempotencyKey"}],"responses":{"201":{"description":"Order","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Order"}}}},"400":{"$ref":"#/components/responses/BadRequest"},"401":{"$ref":"#/components/responses/Unauthorized"},"403":{"$ref":"#/components/responses/Forbidden"},"404":{"$ref":"#/components/responses/NotFound"},"409":{"$ref":"#/components/responses/Conflict"},"429":{"$ref":"#/components/responses/TooManyRequests"},"500":{"$ref":"#/components/responses/ServerError"}},"security":[{"JWT":[]},{"ApiKey":[]}],"tags":["Orders"],"summary":"Recalculate order","x-api-key-scopes":["WRITE_ORDERS"]}},"/v1/orders/{id}/pdf":{"get":{"operationId":"orders_generatePdf","parameters":[{"name":"id","required":true,"in":"path","schema":{"type":"string"}}],"responses":{"200":{"description":"","content":{"application/json":{"schema":{"type":"object"}}}},"400":{"$ref":"#/components/responses/BadRequest"},"401":{"$ref":"#/components/responses/Unauthorized"},"403":{"$ref":"#/components/responses/Forbidden"},"404":{"$ref":"#/components/responses/NotFound"},"429":{"$ref":"#/components/responses/TooManyRequests"},"500":{"$ref":"#/components/responses/ServerError"}},"security":[{"JWT":[]},{"ApiKey":[]}],"tags":["Orders"],"summary":"Generate pdf","x-api-key-scopes":["READ_ORDERS"]}},"/v1/orders/account/{accountId}":{"get":{"operationId":"orders_getByAccountId","parameters":[{"name":"accountId","required":true,"in":"path","schema":{"type":"string"}}],"responses":{"200":{"description":"OrderArray","content":{"application/json":{"schema":{"$ref":"#/components/schemas/OrderArray"}}}},"400":{"$ref":"#/components/responses/BadRequest"},"401":{"$ref":"#/components/responses/Unauthorized"},"403":{"$ref":"#/components/responses/Forbidden"},"404":{"$ref":"#/components/responses/NotFound"},"429":{"$ref":"#/components/responses/TooManyRequests"},"500":{"$ref":"#/components/responses/ServerError"}},"security":[{"JWT":[]},{"ApiKey":[]}],"tags":["Orders"],"summary":"Get by account id","x-api-key-scopes":["READ_ORDERS"]}},"/v1/orders/{id}/restore":{"post":{"operationId":"orders_restoreOrder","parameters":[{"name":"id","required":true,"in":"path","schema":{"type":"string"}},{"$ref":"#/components/parameters/IdempotencyKey"}],"responses":{"201":{"description":"Order","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Order"}}}},"400":{"$ref":"#/components/responses/BadRequest"},"401":{"$ref":"#/components/responses/Unauthorized"},"403":{"$ref":"#/components/responses/Forbidden"},"404":{"$ref":"#/components/responses/NotFound"},"409":{"$ref":"#/components/responses/Conflict"},"429":{"$ref":"#/components/responses/TooManyRequests"},"500":{"$ref":"#/components/responses/ServerError"}},"security":[{"JWT":[]},{"ApiKey":[]}],"tags":["Orders"],"summary":"Restore order","x-api-key-scopes":["WRITE_ORDERS"]}},"/v1/esignature/public/sign/{token}":{"get":{"operationId":"eSignature_getSigningSession","parameters":[{"name":"token","required":true,"in":"path","schema":{"type":"string"}}],"responses":{"200":{"description":""},"400":{"$ref":"#/components/responses/BadRequest"},"404":{"$ref":"#/components/responses/NotFound"},"429":{"$ref":"#/components/responses/TooManyRequests"},"500":{"$ref":"#/components/responses/ServerError"}},"security":[],"tags":["E-Signature"],"summary":"Get signing session"}},"/v1/esignature/public/sign/{token}/pdf":{"get":{"operationId":"eSignature_getSigningPdf","parameters":[{"name":"token","required":true,"in":"path","schema":{"type":"string"}}],"responses":{"200":{"description":""},"400":{"$ref":"#/components/responses/BadRequest"},"404":{"$ref":"#/components/responses/NotFound"},"429":{"$ref":"#/components/responses/TooManyRequests"},"500":{"$ref":"#/components/responses/ServerError"}},"security":[],"tags":["E-Signature"],"summary":"Get signing pdf"}},"/v1/esignature/public/sign/{token}/sign":{"post":{"operationId":"eSignature_sign","parameters":[{"name":"token","required":true,"in":"path","schema":{"type":"string"}},{"$ref":"#/components/parameters/IdempotencyKey"}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/SignBody"}}}},"responses":{"201":{"description":""},"400":{"$ref":"#/components/responses/BadRequest"},"404":{"$ref":"#/components/responses/NotFound"},"409":{"$ref":"#/components/responses/Conflict"},"429":{"$ref":"#/components/responses/TooManyRequests"},"500":{"$ref":"#/components/responses/ServerError"}},"security":[],"tags":["E-Signature"],"summary":"Sign"}},"/v1/esignature/public/sign/{token}/decline":{"post":{"operationId":"eSignature_decline","parameters":[{"name":"token","required":true,"in":"path","schema":{"type":"string"}},{"$ref":"#/components/parameters/IdempotencyKey"}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/DeclineBody"}}}},"responses":{"201":{"description":""},"400":{"$ref":"#/components/responses/BadRequest"},"404":{"$ref":"#/components/responses/NotFound"},"409":{"$ref":"#/components/responses/Conflict"},"429":{"$ref":"#/components/responses/TooManyRequests"},"500":{"$ref":"#/components/responses/ServerError"}},"security":[],"tags":["E-Signature"],"summary":"Decline"}},"/v1/esignature/requests":{"post":{"operationId":"eSignature_createRequest","parameters":[{"$ref":"#/components/parameters/IdempotencyKey"}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/CreateRequestBody"}}}},"responses":{"201":{"description":""},"400":{"$ref":"#/components/responses/BadRequest"},"401":{"$ref":"#/components/responses/Unauthorized"},"403":{"$ref":"#/components/responses/Forbidden"},"409":{"$ref":"#/components/responses/Conflict"},"429":{"$ref":"#/components/responses/TooManyRequests"},"500":{"$ref":"#/components/responses/ServerError"}},"security":[{"JWT":[]},{"ApiKey":[]}],"tags":["E-Signature"],"summary":"Create request","x-api-key-scopes":["*"]},"get":{"operationId":"eSignature_listRequests","parameters":[{"name":"quoteId","required":false,"in":"query","schema":{"type":"string"}},{"name":"contractId","required":false,"in":"query","schema":{"type":"string"}},{"name":"provider","required":false,"in":"query","schema":{"type":"string"}},{"name":"status","required":false,"in":"query","schema":{"type":"string"}}],"responses":{"200":{"description":"","content":{"application/json":{"schema":{"type":"array","items":{"type":"object"}}}}},"400":{"$ref":"#/components/responses/BadRequest"},"401":{"$ref":"#/components/responses/Unauthorized"},"403":{"$ref":"#/components/responses/Forbidden"},"429":{"$ref":"#/components/responses/TooManyRequests"},"500":{"$ref":"#/components/responses/ServerError"}},"security":[{"JWT":[]},{"ApiKey":[]}],"tags":["E-Signature"],"summary":"List requests","x-api-key-scopes":["*"]}},"/v1/esignature/requests/by-quote/{quoteId}":{"get":{"operationId":"eSignature_getByQuote","parameters":[{"name":"quoteId","required":true,"in":"path","schema":{"type":"string"}}],"responses":{"200":{"description":""},"400":{"$ref":"#/components/responses/BadRequest"},"401":{"$ref":"#/components/responses/Unauthorized"},"403":{"$ref":"#/components/responses/Forbidden"},"404":{"$ref":"#/components/responses/NotFound"},"429":{"$ref":"#/components/responses/TooManyRequests"},"500":{"$ref":"#/components/responses/ServerError"}},"security":[{"JWT":[]},{"ApiKey":[]}],"tags":["E-Signature"],"summary":"Get by quote","x-api-key-scopes":["*"]}},"/v1/esignature/requests/by-contract/{contractId}":{"get":{"operationId":"eSignature_getByContract","parameters":[{"name":"contractId","required":true,"in":"path","schema":{"type":"string"}}],"responses":{"200":{"description":""},"400":{"$ref":"#/components/responses/BadRequest"},"401":{"$ref":"#/components/responses/Unauthorized"},"403":{"$ref":"#/components/responses/Forbidden"},"404":{"$ref":"#/components/responses/NotFound"},"429":{"$ref":"#/components/responses/TooManyRequests"},"500":{"$ref":"#/components/responses/ServerError"}},"security":[{"JWT":[]},{"ApiKey":[]}],"tags":["E-Signature"],"summary":"Get by contract","x-api-key-scopes":["*"]}},"/v1/esignature/requests/{id}":{"get":{"operationId":"eSignature_getRequest","parameters":[{"name":"id","required":true,"in":"path","schema":{"type":"string"}}],"responses":{"200":{"description":"","content":{"application/json":{"schema":{"type":"object"}}}},"400":{"$ref":"#/components/responses/BadRequest"},"401":{"$ref":"#/components/responses/Unauthorized"},"403":{"$ref":"#/components/responses/Forbidden"},"404":{"$ref":"#/components/responses/NotFound"},"429":{"$ref":"#/components/responses/TooManyRequests"},"500":{"$ref":"#/components/responses/ServerError"}},"security":[{"JWT":[]},{"ApiKey":[]}],"tags":["E-Signature"],"summary":"Get request","x-api-key-scopes":["*"]},"patch":{"operationId":"eSignature_updateRequest","parameters":[{"name":"id","required":true,"in":"path","schema":{"type":"string"}},{"$ref":"#/components/parameters/IdempotencyKey"}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/UpdateRequestBody"}}}},"responses":{"200":{"description":""},"400":{"$ref":"#/components/responses/BadRequest"},"401":{"$ref":"#/components/responses/Unauthorized"},"403":{"$ref":"#/components/responses/Forbidden"},"404":{"$ref":"#/components/responses/NotFound"},"409":{"$ref":"#/components/responses/Conflict"},"429":{"$ref":"#/components/responses/TooManyRequests"},"500":{"$ref":"#/components/responses/ServerError"}},"security":[{"JWT":[]},{"ApiKey":[]}],"tags":["E-Signature"],"summary":"Update request","x-api-key-scopes":["*"]},"delete":{"operationId":"eSignature_deleteRequest","parameters":[{"name":"id","required":true,"in":"path","schema":{"type":"string"}}],"responses":{"200":{"description":""},"400":{"$ref":"#/components/responses/BadRequest"},"401":{"$ref":"#/components/responses/Unauthorized"},"403":{"$ref":"#/components/responses/Forbidden"},"404":{"$ref":"#/components/responses/NotFound"},"429":{"$ref":"#/components/responses/TooManyRequests"},"500":{"$ref":"#/components/responses/ServerError"}},"security":[{"JWT":[]},{"ApiKey":[]}],"tags":["E-Signature"],"summary":"Delete request","x-api-key-scopes":["*"]}},"/v1/esignature/requests/{id}/send":{"post":{"operationId":"eSignature_sendRequest","parameters":[{"name":"id","required":true,"in":"path","schema":{"type":"string"}},{"$ref":"#/components/parameters/IdempotencyKey"}],"responses":{"201":{"description":""},"400":{"$ref":"#/components/responses/BadRequest"},"401":{"$ref":"#/components/responses/Unauthorized"},"403":{"$ref":"#/components/responses/Forbidden"},"404":{"$ref":"#/components/responses/NotFound"},"409":{"$ref":"#/components/responses/Conflict"},"429":{"$ref":"#/components/responses/TooManyRequests"},"500":{"$ref":"#/components/responses/ServerError"}},"security":[{"JWT":[]},{"ApiKey":[]}],"tags":["E-Signature"],"summary":"Send request","x-api-key-scopes":["*"]}},"/v1/esignature/requests/{id}/refresh":{"post":{"operationId":"eSignature_refreshStatus","parameters":[{"name":"id","required":true,"in":"path","schema":{"type":"string"}},{"$ref":"#/components/parameters/IdempotencyKey"}],"responses":{"201":{"description":""},"400":{"$ref":"#/components/responses/BadRequest"},"401":{"$ref":"#/components/responses/Unauthorized"},"403":{"$ref":"#/components/responses/Forbidden"},"404":{"$ref":"#/components/responses/NotFound"},"409":{"$ref":"#/components/responses/Conflict"},"429":{"$ref":"#/components/responses/TooManyRequests"},"500":{"$ref":"#/components/responses/ServerError"}},"security":[{"JWT":[]},{"ApiKey":[]}],"tags":["E-Signature"],"summary":"Refresh status","x-api-key-scopes":["*"]}},"/v1/esignature/requests/{id}/void":{"post":{"operationId":"eSignature_voidRequest","parameters":[{"name":"id","required":true,"in":"path","schema":{"type":"string"}},{"$ref":"#/components/parameters/IdempotencyKey"}],"responses":{"201":{"description":""},"400":{"$ref":"#/components/responses/BadRequest"},"401":{"$ref":"#/components/responses/Unauthorized"},"403":{"$ref":"#/components/responses/Forbidden"},"404":{"$ref":"#/components/responses/NotFound"},"409":{"$ref":"#/components/responses/Conflict"},"429":{"$ref":"#/components/responses/TooManyRequests"},"500":{"$ref":"#/components/responses/ServerError"}},"security":[{"JWT":[]},{"ApiKey":[]}],"tags":["E-Signature"],"summary":"Void request","x-api-key-scopes":["*"]}},"/v1/esignature/requests/{id}/resend":{"post":{"operationId":"eSignature_resendRequest","parameters":[{"name":"id","required":true,"in":"path","schema":{"type":"string"}},{"$ref":"#/components/parameters/IdempotencyKey"}],"responses":{"201":{"description":""},"400":{"$ref":"#/components/responses/BadRequest"},"401":{"$ref":"#/components/responses/Unauthorized"},"403":{"$ref":"#/components/responses/Forbidden"},"404":{"$ref":"#/components/responses/NotFound"},"409":{"$ref":"#/components/responses/Conflict"},"429":{"$ref":"#/components/responses/TooManyRequests"},"500":{"$ref":"#/components/responses/ServerError"}},"security":[{"JWT":[]},{"ApiKey":[]}],"tags":["E-Signature"],"summary":"Resend request","x-api-key-scopes":["*"]}},"/v1/esignature/requests/{id}/download":{"get":{"operationId":"eSignature_downloadSignedDocument","parameters":[{"name":"id","required":true,"in":"path","schema":{"type":"string"}}],"responses":{"200":{"description":""},"400":{"$ref":"#/components/responses/BadRequest"},"401":{"$ref":"#/components/responses/Unauthorized"},"403":{"$ref":"#/components/responses/Forbidden"},"404":{"$ref":"#/components/responses/NotFound"},"429":{"$ref":"#/components/responses/TooManyRequests"},"500":{"$ref":"#/components/responses/ServerError"}},"security":[{"JWT":[]},{"ApiKey":[]}],"tags":["E-Signature"],"summary":"Download signed document","x-api-key-scopes":["*"]}},"/v1/esignature/requests/{id}/signed-pdf":{"get":{"operationId":"eSignature_downloadSignedPdf","parameters":[{"name":"id","required":true,"in":"path","schema":{"type":"string"}}],"responses":{"200":{"description":""},"400":{"$ref":"#/components/responses/BadRequest"},"401":{"$ref":"#/components/responses/Unauthorized"},"403":{"$ref":"#/components/responses/Forbidden"},"404":{"$ref":"#/components/responses/NotFound"},"429":{"$ref":"#/components/responses/TooManyRequests"},"500":{"$ref":"#/components/responses/ServerError"}},"security":[{"JWT":[]},{"ApiKey":[]}],"tags":["E-Signature"],"summary":"Download signed pdf","x-api-key-scopes":["*"]}},"/v1/esignature/requests/{requestId}/signing-url/{signerId}":{"get":{"operationId":"eSignature_getSigningUrl","parameters":[{"name":"requestId","required":true,"in":"path","schema":{"type":"string"}},{"name":"signerId","required":true,"in":"path","schema":{"type":"string"}}],"responses":{"200":{"description":""},"400":{"$ref":"#/components/responses/BadRequest"},"401":{"$ref":"#/components/responses/Unauthorized"},"403":{"$ref":"#/components/responses/Forbidden"},"404":{"$ref":"#/components/responses/NotFound"},"429":{"$ref":"#/components/responses/TooManyRequests"},"500":{"$ref":"#/components/responses/ServerError"}},"security":[{"JWT":[]},{"ApiKey":[]}],"tags":["E-Signature"],"summary":"Get signing url","x-api-key-scopes":["*"]}},"/v1/esignature/webhook/{provider}":{"post":{"operationId":"eSignature_handleWebhook","parameters":[{"name":"provider","required":true,"in":"path","schema":{"enum":["INTERNAL","DOCUSIGN","ADOBE_SIGN","HELLOSIGN","PANDADOC"],"type":"string"}},{"name":"x-signature","required":true,"in":"header","schema":{"type":"string"}},{"$ref":"#/components/parameters/IdempotencyKey"}],"responses":{"201":{"description":""},"400":{"$ref":"#/components/responses/BadRequest"},"404":{"$ref":"#/components/responses/NotFound"},"409":{"$ref":"#/components/responses/Conflict"},"429":{"$ref":"#/components/responses/TooManyRequests"},"500":{"$ref":"#/components/responses/ServerError"}},"security":[],"tags":["E-Signature"],"summary":"Handle webhook"}},"/v1/esignature/stats":{"get":{"operationId":"eSignature_getStats","parameters":[],"responses":{"200":{"description":""},"401":{"$ref":"#/components/responses/Unauthorized"},"403":{"$ref":"#/components/responses/Forbidden"},"429":{"$ref":"#/components/responses/TooManyRequests"},"500":{"$ref":"#/components/responses/ServerError"}},"security":[{"JWT":[]},{"ApiKey":[]}],"tags":["E-Signature"],"summary":"Get stats","x-api-key-scopes":["*"]}},"/v1/esignature/providers":{"get":{"operationId":"eSignature_getProviders","parameters":[],"responses":{"200":{"description":"","content":{"application/json":{"schema":{"type":"array","items":{"type":"object"}}}}},"401":{"$ref":"#/components/responses/Unauthorized"},"403":{"$ref":"#/components/responses/Forbidden"},"429":{"$ref":"#/components/responses/TooManyRequests"},"500":{"$ref":"#/components/responses/ServerError"}},"security":[{"JWT":[]},{"ApiKey":[]}],"tags":["E-Signature"],"summary":"Get providers","x-api-key-scopes":["*"]}},"/v1/contracts/{id}/send-for-signature":{"post":{"operationId":"contractSignature_sendForSignature","parameters":[{"name":"id","required":true,"in":"path","schema":{"type":"string"}},{"$ref":"#/components/parameters/IdempotencyKey"}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/CreateRequestBody"}}}},"responses":{"201":{"description":""},"400":{"$ref":"#/components/responses/BadRequest"},"401":{"$ref":"#/components/responses/Unauthorized"},"403":{"$ref":"#/components/responses/Forbidden"},"404":{"$ref":"#/components/responses/NotFound"},"409":{"$ref":"#/components/responses/Conflict"},"429":{"$ref":"#/components/responses/TooManyRequests"},"500":{"$ref":"#/components/responses/ServerError"}},"security":[{"JWT":[]},{"ApiKey":[]}],"tags":["Contracts"],"summary":"Send for signature","x-api-key-scopes":["*"]}},"/v1/contracts/{id}/esignature-requests":{"get":{"operationId":"contractSignature_listForContract","parameters":[{"name":"id","required":true,"in":"path","schema":{"type":"string"}}],"responses":{"200":{"description":""},"400":{"$ref":"#/components/responses/BadRequest"},"401":{"$ref":"#/components/responses/Unauthorized"},"403":{"$ref":"#/components/responses/Forbidden"},"404":{"$ref":"#/components/responses/NotFound"},"429":{"$ref":"#/components/responses/TooManyRequests"},"500":{"$ref":"#/components/responses/ServerError"}},"security":[{"JWT":[]},{"ApiKey":[]}],"tags":["Contracts"],"summary":"List for contract","x-api-key-scopes":["*"]}},"/v1/analytics/cpq/dashboard":{"get":{"operationId":"cpqAnalytics_getDashboard","parameters":[{"name":"startDate","required":false,"in":"query","schema":{"type":"string"}},{"name":"endDate","required":false,"in":"query","schema":{"type":"string"}}],"responses":{"200":{"description":""},"400":{"$ref":"#/components/responses/BadRequest"},"401":{"$ref":"#/components/responses/Unauthorized"},"403":{"$ref":"#/components/responses/Forbidden"},"429":{"$ref":"#/components/responses/TooManyRequests"},"500":{"$ref":"#/components/responses/ServerError"}},"security":[{"JWT":[]},{"ApiKey":[]}],"tags":["CPQ Analytics"],"summary":"Get dashboard","x-api-key-scopes":["*"]}},"/v1/analytics/cpq/trends":{"get":{"operationId":"cpqAnalytics_getTrends","parameters":[{"name":"startDate","required":false,"in":"query","schema":{"type":"string"}},{"name":"endDate","required":false,"in":"query","schema":{"type":"string"}},{"name":"groupBy","required":false,"in":"query","schema":{"type":"string"}}],"responses":{"200":{"description":""},"400":{"$ref":"#/components/responses/BadRequest"},"401":{"$ref":"#/components/responses/Unauthorized"},"403":{"$ref":"#/components/responses/Forbidden"},"429":{"$ref":"#/components/responses/TooManyRequests"},"500":{"$ref":"#/components/responses/ServerError"}},"security":[{"JWT":[]},{"ApiKey":[]}],"tags":["CPQ Analytics"],"summary":"Get trends","x-api-key-scopes":["*"]}},"/v1/analytics/cpq/quote-pipeline":{"get":{"operationId":"cpqAnalytics_getQuotePipeline","parameters":[],"responses":{"200":{"description":""},"401":{"$ref":"#/components/responses/Unauthorized"},"403":{"$ref":"#/components/responses/Forbidden"},"429":{"$ref":"#/components/responses/TooManyRequests"},"500":{"$ref":"#/components/responses/ServerError"}},"security":[{"JWT":[]},{"ApiKey":[]}],"tags":["CPQ Analytics"],"summary":"Get quote pipeline","x-api-key-scopes":["*"]}},"/v1/analytics/cpq/top-products":{"get":{"operationId":"cpqAnalytics_getTopProducts","parameters":[{"name":"limit","required":false,"in":"query","schema":{"type":"string"}},{"name":"sortBy","required":false,"in":"query","schema":{"type":"string"}}],"responses":{"200":{"description":""},"400":{"$ref":"#/components/responses/BadRequest"},"401":{"$ref":"#/components/responses/Unauthorized"},"403":{"$ref":"#/components/responses/Forbidden"},"429":{"$ref":"#/components/responses/TooManyRequests"},"500":{"$ref":"#/components/responses/ServerError"}},"security":[{"JWT":[]},{"ApiKey":[]}],"tags":["CPQ Analytics"],"summary":"Get top products","x-api-key-scopes":["*"]}},"/v1/analytics/cpq/top-accounts":{"get":{"operationId":"cpqAnalytics_getTopAccounts","parameters":[{"name":"limit","required":false,"in":"query","schema":{"type":"string"}}],"responses":{"200":{"description":""},"400":{"$ref":"#/components/responses/BadRequest"},"401":{"$ref":"#/components/responses/Unauthorized"},"403":{"$ref":"#/components/responses/Forbidden"},"429":{"$ref":"#/components/responses/TooManyRequests"},"500":{"$ref":"#/components/responses/ServerError"}},"security":[{"JWT":[]},{"ApiKey":[]}],"tags":["CPQ Analytics"],"summary":"Get top accounts","x-api-key-scopes":["*"]}},"/v1/analytics/cpq/sales-rep-performance":{"get":{"operationId":"cpqAnalytics_getSalesRepPerformance","parameters":[{"name":"startDate","required":false,"in":"query","schema":{"type":"string"}},{"name":"endDate","required":false,"in":"query","schema":{"type":"string"}}],"responses":{"200":{"description":""},"400":{"$ref":"#/components/responses/BadRequest"},"401":{"$ref":"#/components/responses/Unauthorized"},"403":{"$ref":"#/components/responses/Forbidden"},"429":{"$ref":"#/components/responses/TooManyRequests"},"500":{"$ref":"#/components/responses/ServerError"}},"security":[{"JWT":[]},{"ApiKey":[]}],"tags":["CPQ Analytics"],"summary":"Get sales rep performance","x-api-key-scopes":["*"]}},"/v1/analytics/cpq/forecast":{"get":{"operationId":"cpqAnalytics_getForecast","parameters":[{"name":"periods","required":false,"in":"query","schema":{"type":"string"}}],"responses":{"200":{"description":""},"400":{"$ref":"#/components/responses/BadRequest"},"401":{"$ref":"#/components/responses/Unauthorized"},"403":{"$ref":"#/components/responses/Forbidden"},"429":{"$ref":"#/components/responses/TooManyRequests"},"500":{"$ref":"#/components/responses/ServerError"}},"security":[{"JWT":[]},{"ApiKey":[]}],"tags":["CPQ Analytics"],"summary":"Get forecast","x-api-key-scopes":["*"]}},"/v1/analytics/cpq/conversion-funnel":{"get":{"operationId":"cpqAnalytics_getConversionFunnel","parameters":[{"name":"startDate","required":false,"in":"query","schema":{"type":"string"}},{"name":"endDate","required":false,"in":"query","schema":{"type":"string"}}],"responses":{"200":{"description":""},"400":{"$ref":"#/components/responses/BadRequest"},"401":{"$ref":"#/components/responses/Unauthorized"},"403":{"$ref":"#/components/responses/Forbidden"},"429":{"$ref":"#/components/responses/TooManyRequests"},"500":{"$ref":"#/components/responses/ServerError"}},"security":[{"JWT":[]},{"ApiKey":[]}],"tags":["CPQ Analytics"],"summary":"Get conversion funnel","x-api-key-scopes":["*"]}},"/v1/analytics/cpq/win-loss":{"get":{"operationId":"cpqAnalytics_getWinLossAnalysis","parameters":[{"name":"startDate","required":false,"in":"query","schema":{"type":"string"}},{"name":"endDate","required":false,"in":"query","schema":{"type":"string"}}],"responses":{"200":{"description":""},"400":{"$ref":"#/components/responses/BadRequest"},"401":{"$ref":"#/components/responses/Unauthorized"},"403":{"$ref":"#/components/responses/Forbidden"},"429":{"$ref":"#/components/responses/TooManyRequests"},"500":{"$ref":"#/components/responses/ServerError"}},"security":[{"JWT":[]},{"ApiKey":[]}],"tags":["CPQ Analytics"],"summary":"Get win loss analysis","x-api-key-scopes":["*"]}},"/v1/analytics/cpq/snapshots":{"get":{"operationId":"cpqAnalytics_getSnapshots","parameters":[{"name":"startDate","required":false,"in":"query","schema":{"type":"string"}},{"name":"endDate","required":false,"in":"query","schema":{"type":"string"}}],"responses":{"200":{"description":""},"400":{"$ref":"#/components/responses/BadRequest"},"401":{"$ref":"#/components/responses/Unauthorized"},"403":{"$ref":"#/components/responses/Forbidden"},"429":{"$ref":"#/components/responses/TooManyRequests"},"500":{"$ref":"#/components/responses/ServerError"}},"security":[{"JWT":[]},{"ApiKey":[]}],"tags":["CPQ Analytics"],"summary":"Get snapshots","x-api-key-scopes":["*"]},"post":{"operationId":"cpqAnalytics_createSnapshot","parameters":[{"$ref":"#/components/parameters/IdempotencyKey"}],"responses":{"201":{"description":""},"400":{"$ref":"#/components/responses/BadRequest"},"401":{"$ref":"#/components/responses/Unauthorized"},"403":{"$ref":"#/components/responses/Forbidden"},"409":{"$ref":"#/components/responses/Conflict"},"429":{"$ref":"#/components/responses/TooManyRequests"},"500":{"$ref":"#/components/responses/ServerError"}},"security":[{"JWT":[]},{"ApiKey":[]}],"tags":["CPQ Analytics"],"summary":"Create snapshot","x-api-key-scopes":["*"]}},"/v1/analytics/cpq/quotes/trend":{"get":{"operationId":"cpqAnalytics_getQuotesTrend","parameters":[{"name":"period","required":false,"in":"query","schema":{"type":"string"}},{"name":"range","required":false,"in":"query","schema":{"type":"string"}}],"responses":{"200":{"description":""},"400":{"$ref":"#/components/responses/BadRequest"},"401":{"$ref":"#/components/responses/Unauthorized"},"403":{"$ref":"#/components/responses/Forbidden"},"429":{"$ref":"#/components/responses/TooManyRequests"},"500":{"$ref":"#/components/responses/ServerError"}},"security":[{"JWT":[]},{"ApiKey":[]}],"tags":["CPQ Analytics"],"summary":"Get quotes trend","x-api-key-scopes":["*"]}},"/v1/analytics/cpq/orders/trend":{"get":{"operationId":"cpqAnalytics_getOrdersTrend","parameters":[{"name":"period","required":false,"in":"query","schema":{"type":"string"}},{"name":"range","required":false,"in":"query","schema":{"type":"string"}}],"responses":{"200":{"description":""},"400":{"$ref":"#/components/responses/BadRequest"},"401":{"$ref":"#/components/responses/Unauthorized"},"403":{"$ref":"#/components/responses/Forbidden"},"429":{"$ref":"#/components/responses/TooManyRequests"},"500":{"$ref":"#/components/responses/ServerError"}},"security":[{"JWT":[]},{"ApiKey":[]}],"tags":["CPQ Analytics"],"summary":"Get orders trend","x-api-key-scopes":["*"]}},"/v1/analytics/cpq/products/performance":{"get":{"operationId":"cpqAnalytics_getProductPerformance","parameters":[],"responses":{"200":{"description":""},"401":{"$ref":"#/components/responses/Unauthorized"},"403":{"$ref":"#/components/responses/Forbidden"},"429":{"$ref":"#/components/responses/TooManyRequests"},"500":{"$ref":"#/components/responses/ServerError"}},"security":[{"JWT":[]},{"ApiKey":[]}],"tags":["CPQ Analytics"],"summary":"Get product performance","x-api-key-scopes":["*"]}},"/v1/analytics/cpq/export":{"get":{"operationId":"cpqAnalytics_exportData","parameters":[],"responses":{"200":{"description":""},"401":{"$ref":"#/components/responses/Unauthorized"},"403":{"$ref":"#/components/responses/Forbidden"},"429":{"$ref":"#/components/responses/TooManyRequests"},"500":{"$ref":"#/components/responses/ServerError"}},"security":[{"JWT":[]},{"ApiKey":[]}],"tags":["CPQ Analytics"],"summary":"Export data","x-api-key-scopes":["*"]}},"/v1/analytics/cpq/quotes/age-analysis":{"get":{"operationId":"cpqAnalytics_getQuoteAgeAnalysis","parameters":[],"responses":{"200":{"description":""},"401":{"$ref":"#/components/responses/Unauthorized"},"403":{"$ref":"#/components/responses/Forbidden"},"429":{"$ref":"#/components/responses/TooManyRequests"},"500":{"$ref":"#/components/responses/ServerError"}},"security":[{"JWT":[]},{"ApiKey":[]}],"tags":["CPQ Analytics"],"summary":"Get quote age analysis","x-api-key-scopes":["*"]}},"/v1/territories/lead-routing":{"get":{"operationId":"territories_getLeadRouting","parameters":[],"responses":{"200":{"description":""},"401":{"$ref":"#/components/responses/Unauthorized"},"403":{"$ref":"#/components/responses/Forbidden"},"429":{"$ref":"#/components/responses/TooManyRequests"},"500":{"$ref":"#/components/responses/ServerError"}},"security":[{"JWT":[]},{"ApiKey":[]}],"tags":["Territories"],"summary":"Get lead routing","x-api-key-scopes":["*"]},"patch":{"operationId":"territories_setLeadRouting","parameters":[{"$ref":"#/components/parameters/IdempotencyKey"}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/SetLeadRoutingBody"}}}},"responses":{"200":{"description":""},"400":{"$ref":"#/components/responses/BadRequest"},"401":{"$ref":"#/components/responses/Unauthorized"},"403":{"$ref":"#/components/responses/Forbidden"},"409":{"$ref":"#/components/responses/Conflict"},"429":{"$ref":"#/components/responses/TooManyRequests"},"500":{"$ref":"#/components/responses/ServerError"}},"security":[{"JWT":[]},{"ApiKey":[]}],"tags":["Territories"],"summary":"Set lead routing","x-api-key-scopes":["*"]}},"/v1/territories":{"get":{"operationId":"territories_findAll","parameters":[],"responses":{"200":{"description":""},"401":{"$ref":"#/components/responses/Unauthorized"},"403":{"$ref":"#/components/responses/Forbidden"},"429":{"$ref":"#/components/responses/TooManyRequests"},"500":{"$ref":"#/components/responses/ServerError"}},"security":[{"JWT":[]},{"ApiKey":[]}],"tags":["Territories"],"summary":"List","x-api-key-scopes":["*"]},"post":{"operationId":"territories_create","parameters":[{"$ref":"#/components/parameters/IdempotencyKey"}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/CreateBody"}}}},"responses":{"201":{"description":"","content":{"application/json":{"schema":{"type":"object"}}}},"400":{"$ref":"#/components/responses/BadRequest"},"401":{"$ref":"#/components/responses/Unauthorized"},"403":{"$ref":"#/components/responses/Forbidden"},"409":{"$ref":"#/components/responses/Conflict"},"429":{"$ref":"#/components/responses/TooManyRequests"},"500":{"$ref":"#/components/responses/ServerError"}},"security":[{"JWT":[]},{"ApiKey":[]}],"tags":["Territories"],"summary":"Create","x-api-key-scopes":["*"]}},"/v1/territories/planning":{"get":{"operationId":"territories_getTerritoryPlanningData","parameters":[],"responses":{"200":{"description":""},"401":{"$ref":"#/components/responses/Unauthorized"},"403":{"$ref":"#/components/responses/Forbidden"},"429":{"$ref":"#/components/responses/TooManyRequests"},"500":{"$ref":"#/components/responses/ServerError"}},"security":[{"JWT":[]},{"ApiKey":[]}],"tags":["Territories"],"summary":"Get territory planning data","x-api-key-scopes":["*"]}},"/v1/territories/planning/simulate":{"post":{"operationId":"territories_simulateWhatIf","parameters":[{"$ref":"#/components/parameters/IdempotencyKey"}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/SimulateWhatIfBody"}}}},"responses":{"201":{"description":""},"400":{"$ref":"#/components/responses/BadRequest"},"401":{"$ref":"#/components/responses/Unauthorized"},"403":{"$ref":"#/components/responses/Forbidden"},"409":{"$ref":"#/components/responses/Conflict"},"429":{"$ref":"#/components/responses/TooManyRequests"},"500":{"$ref":"#/components/responses/ServerError"}},"security":[{"JWT":[]},{"ApiKey":[]}],"tags":["Territories"],"summary":"Simulate what if","x-api-key-scopes":["*"]}},"/v1/territories/owner-options":{"get":{"operationId":"territories_ownerOptions","parameters":[],"responses":{"200":{"description":""},"401":{"$ref":"#/components/responses/Unauthorized"},"403":{"$ref":"#/components/responses/Forbidden"},"429":{"$ref":"#/components/responses/TooManyRequests"},"500":{"$ref":"#/components/responses/ServerError"}},"security":[{"JWT":[]},{"ApiKey":[]}],"summary":"Who the caller may make a territory owner (active members; just themselves unless admin/manager).","tags":["Territories"],"x-api-key-scopes":["*"]}},"/v1/territories/stats":{"get":{"operationId":"territories_getStats","parameters":[],"responses":{"200":{"description":""},"401":{"$ref":"#/components/responses/Unauthorized"},"403":{"$ref":"#/components/responses/Forbidden"},"429":{"$ref":"#/components/responses/TooManyRequests"},"500":{"$ref":"#/components/responses/ServerError"}},"security":[{"JWT":[]},{"ApiKey":[]}],"tags":["Territories"],"summary":"Get stats","x-api-key-scopes":["*"]}},"/v1/territories/{id}":{"get":{"operationId":"territories_findOne","parameters":[{"name":"id","required":true,"in":"path","schema":{"type":"string"}}],"responses":{"200":{"description":"","content":{"application/json":{"schema":{"type":"object"}}}},"400":{"$ref":"#/components/responses/BadRequest"},"401":{"$ref":"#/components/responses/Unauthorized"},"403":{"$ref":"#/components/responses/Forbidden"},"404":{"$ref":"#/components/responses/NotFound"},"429":{"$ref":"#/components/responses/TooManyRequests"},"500":{"$ref":"#/components/responses/ServerError"}},"security":[{"JWT":[]},{"ApiKey":[]}],"tags":["Territories"],"summary":"Find one","x-api-key-scopes":["*"]},"patch":{"operationId":"territories_update","parameters":[{"name":"id","required":true,"in":"path","schema":{"type":"string"}},{"$ref":"#/components/parameters/IdempotencyKey"}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/UpdateBody"}}}},"responses":{"200":{"description":"","content":{"application/json":{"schema":{"type":"object"}}}},"400":{"$ref":"#/components/responses/BadRequest"},"401":{"$ref":"#/components/responses/Unauthorized"},"403":{"$ref":"#/components/responses/Forbidden"},"404":{"$ref":"#/components/responses/NotFound"},"409":{"$ref":"#/components/responses/Conflict"},"429":{"$ref":"#/components/responses/TooManyRequests"},"500":{"$ref":"#/components/responses/ServerError"}},"security":[{"JWT":[]},{"ApiKey":[]}],"tags":["Territories"],"summary":"Update","x-api-key-scopes":["*"]},"delete":{"operationId":"territories_delete","parameters":[{"name":"id","required":true,"in":"path","schema":{"type":"string"}}],"responses":{"200":{"description":""},"400":{"$ref":"#/components/responses/BadRequest"},"401":{"$ref":"#/components/responses/Unauthorized"},"403":{"$ref":"#/components/responses/Forbidden"},"404":{"$ref":"#/components/responses/NotFound"},"429":{"$ref":"#/components/responses/TooManyRequests"},"500":{"$ref":"#/components/responses/ServerError"}},"security":[{"JWT":[]},{"ApiKey":[]}],"tags":["Territories"],"summary":"Delete","x-api-key-scopes":["*"]}},"/v1/territories/{id}/accounts":{"get":{"operationId":"territories_getAccounts","parameters":[{"name":"id","required":true,"in":"path","schema":{"type":"string"}}],"responses":{"200":{"description":""},"400":{"$ref":"#/components/responses/BadRequest"},"401":{"$ref":"#/components/responses/Unauthorized"},"403":{"$ref":"#/components/responses/Forbidden"},"404":{"$ref":"#/components/responses/NotFound"},"429":{"$ref":"#/components/responses/TooManyRequests"},"500":{"$ref":"#/components/responses/ServerError"}},"security":[{"JWT":[]},{"ApiKey":[]}],"tags":["Territories"],"summary":"Get accounts","x-api-key-scopes":["*"]},"post":{"operationId":"territories_assignAccounts","parameters":[{"name":"id","required":true,"in":"path","schema":{"type":"string"}},{"$ref":"#/components/parameters/IdempotencyKey"}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/AssignAccountsBody"}}}},"responses":{"201":{"description":""},"400":{"$ref":"#/components/responses/BadRequest"},"401":{"$ref":"#/components/responses/Unauthorized"},"403":{"$ref":"#/components/responses/Forbidden"},"404":{"$ref":"#/components/responses/NotFound"},"409":{"$ref":"#/components/responses/Conflict"},"429":{"$ref":"#/components/responses/TooManyRequests"},"500":{"$ref":"#/components/responses/ServerError"}},"security":[{"JWT":[]},{"ApiKey":[]}],"tags":["Territories"],"summary":"Assign accounts","x-api-key-scopes":["*"]}},"/v1/territories/{id}/accounts/{accountId}":{"delete":{"operationId":"territories_removeAccount","parameters":[{"name":"id","required":true,"in":"path","schema":{"type":"string"}},{"name":"accountId","required":true,"in":"path","schema":{"type":"string"}}],"responses":{"200":{"description":""},"400":{"$ref":"#/components/responses/BadRequest"},"401":{"$ref":"#/components/responses/Unauthorized"},"403":{"$ref":"#/components/responses/Forbidden"},"404":{"$ref":"#/components/responses/NotFound"},"429":{"$ref":"#/components/responses/TooManyRequests"},"500":{"$ref":"#/components/responses/ServerError"}},"security":[{"JWT":[]},{"ApiKey":[]}],"tags":["Territories"],"summary":"Remove account","x-api-key-scopes":["*"]}},"/v1/territories/{id}/lead-routing":{"patch":{"operationId":"territories_setTerritoryLeadRouting","parameters":[{"name":"id","required":true,"in":"path","schema":{"type":"string"}},{"$ref":"#/components/parameters/IdempotencyKey"}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/SetTerritoryLeadRoutingBody"}}}},"responses":{"200":{"description":""},"400":{"$ref":"#/components/responses/BadRequest"},"401":{"$ref":"#/components/responses/Unauthorized"},"403":{"$ref":"#/components/responses/Forbidden"},"404":{"$ref":"#/components/responses/NotFound"},"409":{"$ref":"#/components/responses/Conflict"},"429":{"$ref":"#/components/responses/TooManyRequests"},"500":{"$ref":"#/components/responses/ServerError"}},"security":[{"JWT":[]},{"ApiKey":[]}],"summary":"Per-territory opt-out of lead routing (Territory.metadata.routeLeads).","tags":["Territories"],"x-api-key-scopes":["*"]}},"/v1/territories/{id}/leads/count":{"get":{"operationId":"territories_leadCount","parameters":[{"name":"id","required":true,"in":"path","schema":{"type":"string"}}],"responses":{"200":{"description":""},"400":{"$ref":"#/components/responses/BadRequest"},"401":{"$ref":"#/components/responses/Unauthorized"},"403":{"$ref":"#/components/responses/Forbidden"},"404":{"$ref":"#/components/responses/NotFound"},"429":{"$ref":"#/components/responses/TooManyRequests"},"500":{"$ref":"#/components/responses/ServerError"}},"security":[{"JWT":[]},{"ApiKey":[]}],"tags":["Territories"],"summary":"Lead count","x-api-key-scopes":["*"]}},"/v1/territories/{id}/assign-leads":{"post":{"operationId":"territories_assignLeads","parameters":[{"name":"id","required":true,"in":"path","schema":{"type":"string"}},{"$ref":"#/components/parameters/IdempotencyKey"}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/AssignLeadsBody"}}}},"responses":{"201":{"description":"","content":{"application/json":{"schema":{"type":"object"}}}},"400":{"$ref":"#/components/responses/BadRequest"},"401":{"$ref":"#/components/responses/Unauthorized"},"403":{"$ref":"#/components/responses/Forbidden"},"404":{"$ref":"#/components/responses/NotFound"},"409":{"$ref":"#/components/responses/Conflict"},"429":{"$ref":"#/components/responses/TooManyRequests"},"500":{"$ref":"#/components/responses/ServerError"}},"security":[{"JWT":[]},{"ApiKey":[]}],"summary":"Backfill unrouted leads matching the criteria onto the territory owner (cap 1000).","tags":["Territories"],"x-api-key-scopes":["*"]}},"/v1/territories/{id}/auto-assign":{"post":{"operationId":"territories_autoAssignAccounts","parameters":[{"name":"id","required":true,"in":"path","schema":{"type":"string"}},{"$ref":"#/components/parameters/IdempotencyKey"}],"responses":{"201":{"description":"","content":{"application/json":{"schema":{"type":"object"}}}},"400":{"$ref":"#/components/responses/BadRequest"},"401":{"$ref":"#/components/responses/Unauthorized"},"403":{"$ref":"#/components/responses/Forbidden"},"404":{"$ref":"#/components/responses/NotFound"},"409":{"$ref":"#/components/responses/Conflict"},"429":{"$ref":"#/components/responses/TooManyRequests"},"500":{"$ref":"#/components/responses/ServerError"}},"security":[{"JWT":[]},{"ApiKey":[]}],"tags":["Territories"],"summary":"Auto assign accounts","x-api-key-scopes":["*"]}},"/v1/territories/{id}/recalculate":{"post":{"operationId":"territories_recalculatePerformance","parameters":[{"name":"id","required":true,"in":"path","schema":{"type":"string"}},{"$ref":"#/components/parameters/IdempotencyKey"}],"responses":{"201":{"description":""},"400":{"$ref":"#/components/responses/BadRequest"},"401":{"$ref":"#/components/responses/Unauthorized"},"403":{"$ref":"#/components/responses/Forbidden"},"404":{"$ref":"#/components/responses/NotFound"},"409":{"$ref":"#/components/responses/Conflict"},"429":{"$ref":"#/components/responses/TooManyRequests"},"500":{"$ref":"#/components/responses/ServerError"}},"security":[{"JWT":[]},{"ApiKey":[]}],"tags":["Territories"],"summary":"Recalculate performance","x-api-key-scopes":["*"]}},"/v1/territories/{id}/cleanup-mismatched":{"post":{"operationId":"territories_cleanupMismatchedAccounts","parameters":[{"name":"id","required":true,"in":"path","schema":{"type":"string"}},{"$ref":"#/components/parameters/IdempotencyKey"}],"responses":{"201":{"description":""},"400":{"$ref":"#/components/responses/BadRequest"},"401":{"$ref":"#/components/responses/Unauthorized"},"403":{"$ref":"#/components/responses/Forbidden"},"404":{"$ref":"#/components/responses/NotFound"},"409":{"$ref":"#/components/responses/Conflict"},"429":{"$ref":"#/components/responses/TooManyRequests"},"500":{"$ref":"#/components/responses/ServerError"}},"security":[{"JWT":[]},{"ApiKey":[]}],"tags":["Territories"],"summary":"Cleanup mismatched accounts","x-api-key-scopes":["*"]}},"/v1/cases":{"post":{"operationId":"cases_create","parameters":[{"$ref":"#/components/parameters/IdempotencyKey"}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/CreateCaseDto"}}}},"responses":{"201":{"description":"Case","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Case"}}}},"400":{"$ref":"#/components/responses/BadRequest"},"401":{"$ref":"#/components/responses/Unauthorized"},"403":{"$ref":"#/components/responses/Forbidden"},"409":{"$ref":"#/components/responses/Conflict"},"429":{"$ref":"#/components/responses/TooManyRequests"},"500":{"$ref":"#/components/responses/ServerError"}},"security":[{"JWT":[]},{"ApiKey":[]}],"tags":["Cases"],"summary":"Create","x-api-key-scopes":["WRITE_CASES"]},"get":{"operationId":"cases_list","parameters":[{"name":"status","required":false,"in":"query","schema":{"type":"string"}},{"name":"priority","required":false,"in":"query","schema":{"type":"string"}},{"name":"accountId","required":false,"in":"query","schema":{"type":"string"}},{"name":"contactId","required":false,"in":"query","schema":{"type":"string"}},{"name":"ownerId","required":false,"in":"query","schema":{"type":"string"}},{"name":"search","required":false,"in":"query","schema":{"type":"string"}},{"name":"page","required":false,"in":"query","schema":{"type":"string"}},{"name":"limit","required":false,"in":"query","schema":{"type":"string"}},{"name":"sortBy","required":false,"in":"query","schema":{"type":"string"}},{"name":"sortOrder","required":false,"in":"query","schema":{"type":"string"}}],"responses":{"200":{"description":"CaseList","content":{"application/json":{"schema":{"$ref":"#/components/schemas/CaseList"}}}},"400":{"$ref":"#/components/responses/BadRequest"},"401":{"$ref":"#/components/responses/Unauthorized"},"403":{"$ref":"#/components/responses/Forbidden"},"429":{"$ref":"#/components/responses/TooManyRequests"},"500":{"$ref":"#/components/responses/ServerError"}},"security":[{"JWT":[]},{"ApiKey":[]}],"tags":["Cases"],"summary":"List","x-api-key-scopes":["READ_CASES"]}},"/v1/cases/stats":{"get":{"operationId":"cases_stats","parameters":[],"responses":{"200":{"description":""},"401":{"$ref":"#/components/responses/Unauthorized"},"403":{"$ref":"#/components/responses/Forbidden"},"429":{"$ref":"#/components/responses/TooManyRequests"},"500":{"$ref":"#/components/responses/ServerError"}},"security":[{"JWT":[]},{"ApiKey":[]}],"tags":["Cases"],"summary":"Stats","x-api-key-scopes":["READ_CASES"]}},"/v1/cases/assignees":{"get":{"operationId":"cases_assignees","parameters":[],"responses":{"200":{"description":""},"401":{"$ref":"#/components/responses/Unauthorized"},"403":{"$ref":"#/components/responses/Forbidden"},"429":{"$ref":"#/components/responses/TooManyRequests"},"500":{"$ref":"#/components/responses/ServerError"}},"security":[{"JWT":[]},{"ApiKey":[]}],"tags":["Cases"],"summary":"Assignees","x-api-key-scopes":["READ_CASES"]}},"/v1/cases/{id}":{"get":{"operationId":"cases_getById","parameters":[{"name":"id","required":true,"in":"path","schema":{"type":"string"}}],"responses":{"200":{"description":"Case","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Case"}}}},"400":{"$ref":"#/components/responses/BadRequest"},"401":{"$ref":"#/components/responses/Unauthorized"},"403":{"$ref":"#/components/responses/Forbidden"},"404":{"$ref":"#/components/responses/NotFound"},"429":{"$ref":"#/components/responses/TooManyRequests"},"500":{"$ref":"#/components/responses/ServerError"}},"security":[{"JWT":[]},{"ApiKey":[]}],"tags":["Cases"],"summary":"Get by id","x-api-key-scopes":["READ_CASES"]},"patch":{"operationId":"cases_update","parameters":[{"name":"id","required":true,"in":"path","schema":{"type":"string"}},{"$ref":"#/components/parameters/IdempotencyKey"}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/UpdateCaseDto"}}}},"responses":{"200":{"description":"Case","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Case"}}}},"400":{"$ref":"#/components/responses/BadRequest"},"401":{"$ref":"#/components/responses/Unauthorized"},"403":{"$ref":"#/components/responses/Forbidden"},"404":{"$ref":"#/components/responses/NotFound"},"409":{"$ref":"#/components/responses/Conflict"},"429":{"$ref":"#/components/responses/TooManyRequests"},"500":{"$ref":"#/components/responses/ServerError"}},"security":[{"JWT":[]},{"ApiKey":[]}],"tags":["Cases"],"summary":"Update","x-api-key-scopes":["WRITE_CASES"]},"delete":{"operationId":"cases_remove","parameters":[{"name":"id","required":true,"in":"path","schema":{"type":"string"}}],"responses":{"200":{"description":""},"400":{"$ref":"#/components/responses/BadRequest"},"401":{"$ref":"#/components/responses/Unauthorized"},"403":{"$ref":"#/components/responses/Forbidden"},"404":{"$ref":"#/components/responses/NotFound"},"429":{"$ref":"#/components/responses/TooManyRequests"},"500":{"$ref":"#/components/responses/ServerError"}},"security":[{"JWT":[]},{"ApiKey":[]}],"tags":["Cases"],"summary":"Remove","x-api-key-scopes":["WRITE_CASES"]}},"/v1/cases/{id}/comments":{"post":{"operationId":"cases_addComment","parameters":[{"name":"id","required":true,"in":"path","schema":{"type":"string"}},{"$ref":"#/components/parameters/IdempotencyKey"}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/AddCaseCommentDto"}}}},"responses":{"201":{"description":"","content":{"application/json":{"schema":{"type":"object"}}}},"400":{"$ref":"#/components/responses/BadRequest"},"401":{"$ref":"#/components/responses/Unauthorized"},"403":{"$ref":"#/components/responses/Forbidden"},"404":{"$ref":"#/components/responses/NotFound"},"409":{"$ref":"#/components/responses/Conflict"},"429":{"$ref":"#/components/responses/TooManyRequests"},"500":{"$ref":"#/components/responses/ServerError"}},"security":[{"JWT":[]},{"ApiKey":[]}],"tags":["Cases"],"summary":"Add comment","x-api-key-scopes":["WRITE_CASES"]}},"/v1/cases/{id}/assign":{"post":{"operationId":"cases_assign","parameters":[{"name":"id","required":true,"in":"path","schema":{"type":"string"}},{"$ref":"#/components/parameters/IdempotencyKey"}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/AssignCaseDto"}}}},"responses":{"201":{"description":"","content":{"application/json":{"schema":{"type":"object"}}}},"400":{"$ref":"#/components/responses/BadRequest"},"401":{"$ref":"#/components/responses/Unauthorized"},"403":{"$ref":"#/components/responses/Forbidden"},"404":{"$ref":"#/components/responses/NotFound"},"409":{"$ref":"#/components/responses/Conflict"},"429":{"$ref":"#/components/responses/TooManyRequests"},"500":{"$ref":"#/components/responses/ServerError"}},"security":[{"JWT":[]},{"ApiKey":[]}],"tags":["Cases"],"summary":"Assign","x-api-key-scopes":["WRITE_CASES"]}},"/v1/cases/{id}/status":{"post":{"operationId":"cases_changeStatus","parameters":[{"name":"id","required":true,"in":"path","schema":{"type":"string"}},{"$ref":"#/components/parameters/IdempotencyKey"}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ChangeCaseStatusDto"}}}},"responses":{"201":{"description":"","content":{"application/json":{"schema":{"type":"object"}}}},"400":{"$ref":"#/components/responses/BadRequest"},"401":{"$ref":"#/components/responses/Unauthorized"},"403":{"$ref":"#/components/responses/Forbidden"},"404":{"$ref":"#/components/responses/NotFound"},"409":{"$ref":"#/components/responses/Conflict"},"429":{"$ref":"#/components/responses/TooManyRequests"},"500":{"$ref":"#/components/responses/ServerError"}},"security":[{"JWT":[]},{"ApiKey":[]}],"tags":["Cases"],"summary":"Change status","x-api-key-scopes":["WRITE_CASES"]}},"/v1/cases/{id}/ai-summary":{"post":{"operationId":"cases_aiSummary","parameters":[{"name":"id","required":true,"in":"path","schema":{"type":"string"}},{"$ref":"#/components/parameters/IdempotencyKey"}],"responses":{"201":{"description":"","content":{"application/json":{"schema":{"type":"object"}}}},"400":{"$ref":"#/components/responses/BadRequest"},"401":{"$ref":"#/components/responses/Unauthorized"},"403":{"$ref":"#/components/responses/Forbidden"},"404":{"$ref":"#/components/responses/NotFound"},"409":{"$ref":"#/components/responses/Conflict"},"429":{"$ref":"#/components/responses/TooManyRequests"},"500":{"$ref":"#/components/responses/ServerError"}},"security":[{"JWT":[]},{"ApiKey":[]}],"tags":["Cases"],"summary":"Ai summary","x-api-key-scopes":["WRITE_CASES"]}},"/v1/playbooks/success":{"get":{"operationId":"playbooks_getSuccessPlaybooks","parameters":[{"name":"category","required":false,"in":"query","schema":{"type":"string"}}],"responses":{"200":{"description":""},"400":{"$ref":"#/components/responses/BadRequest"},"401":{"$ref":"#/components/responses/Unauthorized"},"403":{"$ref":"#/components/responses/Forbidden"},"429":{"$ref":"#/components/responses/TooManyRequests"},"500":{"$ref":"#/components/responses/ServerError"}},"security":[{"JWT":[]},{"ApiKey":[]}],"tags":["Playbooks"],"summary":"Get success playbooks","x-api-key-scopes":["*"]}},"/v1/playbooks/success/stats":{"get":{"operationId":"playbooks_getSuccessStats","parameters":[],"responses":{"200":{"description":""},"401":{"$ref":"#/components/responses/Unauthorized"},"403":{"$ref":"#/components/responses/Forbidden"},"429":{"$ref":"#/components/responses/TooManyRequests"},"500":{"$ref":"#/components/responses/ServerError"}},"security":[{"JWT":[]},{"ApiKey":[]}],"tags":["Playbooks"],"summary":"Get success stats","x-api-key-scopes":["*"]}},"/v1/playbooks/success/executions":{"get":{"operationId":"playbooks_getSuccessExecutions","parameters":[{"name":"playbookId","required":false,"in":"query","schema":{"type":"string"}}],"responses":{"200":{"description":""},"400":{"$ref":"#/components/responses/BadRequest"},"401":{"$ref":"#/components/responses/Unauthorized"},"403":{"$ref":"#/components/responses/Forbidden"},"429":{"$ref":"#/components/responses/TooManyRequests"},"500":{"$ref":"#/components/responses/ServerError"}},"security":[{"JWT":[]},{"ApiKey":[]}],"tags":["Playbooks"],"summary":"Get success executions","x-api-key-scopes":["*"]}},"/v1/playbooks":{"get":{"operationId":"playbooks_findAll","parameters":[{"name":"isActive","required":false,"in":"query","schema":{"type":"string"}},{"name":"trigger","required":false,"in":"query","schema":{"type":"string"}}],"responses":{"200":{"description":"","content":{"application/json":{"schema":{"type":"array","items":{"type":"object"}}}}},"400":{"$ref":"#/components/responses/BadRequest"},"401":{"$ref":"#/components/responses/Unauthorized"},"403":{"$ref":"#/components/responses/Forbidden"},"429":{"$ref":"#/components/responses/TooManyRequests"},"500":{"$ref":"#/components/responses/ServerError"}},"security":[{"JWT":[]},{"ApiKey":[]}],"tags":["Playbooks"],"summary":"List","x-api-key-scopes":["*"]},"post":{"operationId":"playbooks_create","parameters":[{"$ref":"#/components/parameters/IdempotencyKey"}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/CreateBody"}}}},"responses":{"201":{"description":"","content":{"application/json":{"schema":{"type":"object"}}}},"400":{"$ref":"#/components/responses/BadRequest"},"401":{"$ref":"#/components/responses/Unauthorized"},"403":{"$ref":"#/components/responses/Forbidden"},"409":{"$ref":"#/components/responses/Conflict"},"429":{"$ref":"#/components/responses/TooManyRequests"},"500":{"$ref":"#/components/responses/ServerError"}},"security":[{"JWT":[]},{"ApiKey":[]}],"tags":["Playbooks"],"summary":"Create","x-api-key-scopes":["*"]}},"/v1/playbooks/stats":{"get":{"operationId":"playbooks_getStats","parameters":[],"responses":{"200":{"description":""},"401":{"$ref":"#/components/responses/Unauthorized"},"403":{"$ref":"#/components/responses/Forbidden"},"429":{"$ref":"#/components/responses/TooManyRequests"},"500":{"$ref":"#/components/responses/ServerError"}},"security":[{"JWT":[]},{"ApiKey":[]}],"tags":["Playbooks"],"summary":"Get stats","x-api-key-scopes":["*"]}},"/v1/playbooks/{id}":{"get":{"operationId":"playbooks_findOne","parameters":[{"name":"id","required":true,"in":"path","schema":{"type":"string"}}],"responses":{"200":{"description":"","content":{"application/json":{"schema":{"type":"object"}}}},"400":{"$ref":"#/components/responses/BadRequest"},"401":{"$ref":"#/components/responses/Unauthorized"},"403":{"$ref":"#/components/responses/Forbidden"},"404":{"$ref":"#/components/responses/NotFound"},"429":{"$ref":"#/components/responses/TooManyRequests"},"500":{"$ref":"#/components/responses/ServerError"}},"security":[{"JWT":[]},{"ApiKey":[]}],"tags":["Playbooks"],"summary":"Find one","x-api-key-scopes":["*"]},"patch":{"operationId":"playbooks_update","parameters":[{"name":"id","required":true,"in":"path","schema":{"type":"string"}},{"$ref":"#/components/parameters/IdempotencyKey"}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/UpdateBody"}}}},"responses":{"200":{"description":"","content":{"application/json":{"schema":{"type":"object"}}}},"400":{"$ref":"#/components/responses/BadRequest"},"401":{"$ref":"#/components/responses/Unauthorized"},"403":{"$ref":"#/components/responses/Forbidden"},"404":{"$ref":"#/components/responses/NotFound"},"409":{"$ref":"#/components/responses/Conflict"},"429":{"$ref":"#/components/responses/TooManyRequests"},"500":{"$ref":"#/components/responses/ServerError"}},"security":[{"JWT":[]},{"ApiKey":[]}],"tags":["Playbooks"],"summary":"Update","x-api-key-scopes":["*"]},"delete":{"operationId":"playbooks_delete","parameters":[{"name":"id","required":true,"in":"path","schema":{"type":"string"}}],"responses":{"200":{"description":""},"400":{"$ref":"#/components/responses/BadRequest"},"401":{"$ref":"#/components/responses/Unauthorized"},"403":{"$ref":"#/components/responses/Forbidden"},"404":{"$ref":"#/components/responses/NotFound"},"429":{"$ref":"#/components/responses/TooManyRequests"},"500":{"$ref":"#/components/responses/ServerError"}},"security":[{"JWT":[]},{"ApiKey":[]}],"tags":["Playbooks"],"summary":"Delete","x-api-key-scopes":["*"]}},"/v1/playbooks/{id}/duplicate":{"post":{"operationId":"playbooks_duplicate","parameters":[{"name":"id","required":true,"in":"path","schema":{"type":"string"}},{"$ref":"#/components/parameters/IdempotencyKey"}],"responses":{"201":{"description":"","content":{"application/json":{"schema":{"type":"object"}}}},"400":{"$ref":"#/components/responses/BadRequest"},"401":{"$ref":"#/components/responses/Unauthorized"},"403":{"$ref":"#/components/responses/Forbidden"},"404":{"$ref":"#/components/responses/NotFound"},"409":{"$ref":"#/components/responses/Conflict"},"429":{"$ref":"#/components/responses/TooManyRequests"},"500":{"$ref":"#/components/responses/ServerError"}},"security":[{"JWT":[]},{"ApiKey":[]}],"tags":["Playbooks"],"summary":"Duplicate","x-api-key-scopes":["*"]}},"/v1/playbooks/{id}/steps":{"post":{"operationId":"playbooks_addStep","parameters":[{"name":"id","required":true,"in":"path","schema":{"type":"string"}},{"$ref":"#/components/parameters/IdempotencyKey"}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/AddStepBody"}}}},"responses":{"201":{"description":"","content":{"application/json":{"schema":{"type":"object"}}}},"400":{"$ref":"#/components/responses/BadRequest"},"401":{"$ref":"#/components/responses/Unauthorized"},"403":{"$ref":"#/components/responses/Forbidden"},"404":{"$ref":"#/components/responses/NotFound"},"409":{"$ref":"#/components/responses/Conflict"},"429":{"$ref":"#/components/responses/TooManyRequests"},"500":{"$ref":"#/components/responses/ServerError"}},"security":[{"JWT":[]},{"ApiKey":[]}],"tags":["Playbooks"],"summary":"Add step","x-api-key-scopes":["*"]}},"/v1/playbooks/{id}/steps/{stepId}":{"patch":{"operationId":"playbooks_updateStep","parameters":[{"name":"id","required":true,"in":"path","schema":{"type":"string"}},{"name":"stepId","required":true,"in":"path","schema":{"type":"string"}},{"$ref":"#/components/parameters/IdempotencyKey"}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/UpdateStepBody"}}}},"responses":{"200":{"description":"","content":{"application/json":{"schema":{"type":"object"}}}},"400":{"$ref":"#/components/responses/BadRequest"},"401":{"$ref":"#/components/responses/Unauthorized"},"403":{"$ref":"#/components/responses/Forbidden"},"404":{"$ref":"#/components/responses/NotFound"},"409":{"$ref":"#/components/responses/Conflict"},"429":{"$ref":"#/components/responses/TooManyRequests"},"500":{"$ref":"#/components/responses/ServerError"}},"security":[{"JWT":[]},{"ApiKey":[]}],"tags":["Playbooks"],"summary":"Update step","x-api-key-scopes":["*"]},"delete":{"operationId":"playbooks_deleteStep","parameters":[{"name":"id","required":true,"in":"path","schema":{"type":"string"}},{"name":"stepId","required":true,"in":"path","schema":{"type":"string"}}],"responses":{"200":{"description":"","content":{"application/json":{"schema":{"type":"object"}}}},"400":{"$ref":"#/components/responses/BadRequest"},"401":{"$ref":"#/components/responses/Unauthorized"},"403":{"$ref":"#/components/responses/Forbidden"},"404":{"$ref":"#/components/responses/NotFound"},"429":{"$ref":"#/components/responses/TooManyRequests"},"500":{"$ref":"#/components/responses/ServerError"}},"security":[{"JWT":[]},{"ApiKey":[]}],"tags":["Playbooks"],"summary":"Delete step","x-api-key-scopes":["*"]}},"/v1/playbooks/{id}/steps/reorder":{"post":{"operationId":"playbooks_reorderSteps","parameters":[{"name":"id","required":true,"in":"path","schema":{"type":"string"}},{"$ref":"#/components/parameters/IdempotencyKey"}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ReorderStepsBody"}}}},"responses":{"201":{"description":"","content":{"application/json":{"schema":{"type":"object"}}}},"400":{"$ref":"#/components/responses/BadRequest"},"401":{"$ref":"#/components/responses/Unauthorized"},"403":{"$ref":"#/components/responses/Forbidden"},"404":{"$ref":"#/components/responses/NotFound"},"409":{"$ref":"#/components/responses/Conflict"},"429":{"$ref":"#/components/responses/TooManyRequests"},"500":{"$ref":"#/components/responses/ServerError"}},"security":[{"JWT":[]},{"ApiKey":[]}],"tags":["Playbooks"],"summary":"Reorder steps","x-api-key-scopes":["*"]}},"/v1/playbooks/executions/list":{"get":{"operationId":"playbooks_getExecutions","parameters":[{"name":"playbookId","required":false,"in":"query","schema":{"type":"string"}},{"name":"dealId","required":false,"in":"query","schema":{"type":"string"}},{"name":"status","required":false,"in":"query","schema":{"type":"string"}}],"responses":{"200":{"description":"","content":{"application/json":{"schema":{"type":"array","items":{"type":"object"}}}}},"400":{"$ref":"#/components/responses/BadRequest"},"401":{"$ref":"#/components/responses/Unauthorized"},"403":{"$ref":"#/components/responses/Forbidden"},"429":{"$ref":"#/components/responses/TooManyRequests"},"500":{"$ref":"#/components/responses/ServerError"}},"security":[{"JWT":[]},{"ApiKey":[]}],"tags":["Playbooks"],"summary":"Get executions","x-api-key-scopes":["*"]}},"/v1/playbooks/executions/{executionId}":{"get":{"operationId":"playbooks_getExecution","parameters":[{"name":"executionId","required":true,"in":"path","schema":{"type":"string"}}],"responses":{"200":{"description":"","content":{"application/json":{"schema":{"type":"object"}}}},"400":{"$ref":"#/components/responses/BadRequest"},"401":{"$ref":"#/components/responses/Unauthorized"},"403":{"$ref":"#/components/responses/Forbidden"},"404":{"$ref":"#/components/responses/NotFound"},"429":{"$ref":"#/components/responses/TooManyRequests"},"500":{"$ref":"#/components/responses/ServerError"}},"security":[{"JWT":[]},{"ApiKey":[]}],"tags":["Playbooks"],"summary":"Get execution","x-api-key-scopes":["*"]}},"/v1/playbooks/{id}/start":{"post":{"operationId":"playbooks_startExecution","parameters":[{"name":"id","required":true,"in":"path","schema":{"type":"string"}},{"$ref":"#/components/parameters/IdempotencyKey"}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/StartExecutionBody"}}}},"responses":{"201":{"description":"","content":{"application/json":{"schema":{"type":"object"}}}},"400":{"$ref":"#/components/responses/BadRequest"},"401":{"$ref":"#/components/responses/Unauthorized"},"403":{"$ref":"#/components/responses/Forbidden"},"404":{"$ref":"#/components/responses/NotFound"},"409":{"$ref":"#/components/responses/Conflict"},"429":{"$ref":"#/components/responses/TooManyRequests"},"500":{"$ref":"#/components/responses/ServerError"}},"security":[{"JWT":[]},{"ApiKey":[]}],"tags":["Playbooks"],"summary":"Start execution","x-api-key-scopes":["*"]}},"/v1/playbooks/executions/record/{recordType}/{recordId}":{"get":{"operationId":"playbooks_getExecutionsForRecord","parameters":[{"name":"recordType","required":true,"in":"path","schema":{"enum":["account","lead","deal"],"type":"string"}},{"name":"recordId","required":true,"in":"path","schema":{"type":"string"}}],"responses":{"200":{"description":"","content":{"application/json":{"schema":{"type":"array","items":{"type":"object"}}}}},"400":{"$ref":"#/components/responses/BadRequest"},"401":{"$ref":"#/components/responses/Unauthorized"},"403":{"$ref":"#/components/responses/Forbidden"},"404":{"$ref":"#/components/responses/NotFound"},"429":{"$ref":"#/components/responses/TooManyRequests"},"500":{"$ref":"#/components/responses/ServerError"}},"security":[{"JWT":[]},{"ApiKey":[]}],"tags":["Playbooks"],"summary":"Get executions for record","x-api-key-scopes":["*"]}},"/v1/playbooks/executions/{executionId}/steps/{stepId}/complete":{"post":{"operationId":"playbooks_completeStep","parameters":[{"name":"executionId","required":true,"in":"path","schema":{"type":"string"}},{"name":"stepId","required":true,"in":"path","schema":{"type":"string"}},{"$ref":"#/components/parameters/IdempotencyKey"}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/CompleteStepBody"}}}},"responses":{"201":{"description":"","content":{"application/json":{"schema":{"type":"object"}}}},"400":{"$ref":"#/components/responses/BadRequest"},"401":{"$ref":"#/components/responses/Unauthorized"},"403":{"$ref":"#/components/responses/Forbidden"},"404":{"$ref":"#/components/responses/NotFound"},"409":{"$ref":"#/components/responses/Conflict"},"429":{"$ref":"#/components/responses/TooManyRequests"},"500":{"$ref":"#/components/responses/ServerError"}},"security":[{"JWT":[]},{"ApiKey":[]}],"tags":["Playbooks"],"summary":"Complete step","x-api-key-scopes":["*"]}},"/v1/playbooks/executions/{executionId}/steps/{stepId}/skip":{"post":{"operationId":"playbooks_skipStep","parameters":[{"name":"executionId","required":true,"in":"path","schema":{"type":"string"}},{"name":"stepId","required":true,"in":"path","schema":{"type":"string"}},{"$ref":"#/components/parameters/IdempotencyKey"}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/SkipStepBody"}}}},"responses":{"201":{"description":"","content":{"application/json":{"schema":{"type":"object"}}}},"400":{"$ref":"#/components/responses/BadRequest"},"401":{"$ref":"#/components/responses/Unauthorized"},"403":{"$ref":"#/components/responses/Forbidden"},"404":{"$ref":"#/components/responses/NotFound"},"409":{"$ref":"#/components/responses/Conflict"},"429":{"$ref":"#/components/responses/TooManyRequests"},"500":{"$ref":"#/components/responses/ServerError"}},"security":[{"JWT":[]},{"ApiKey":[]}],"tags":["Playbooks"],"summary":"Skip step","x-api-key-scopes":["*"]}},"/v1/playbooks/executions/{executionId}/cancel":{"post":{"operationId":"playbooks_cancelExecution","parameters":[{"name":"executionId","required":true,"in":"path","schema":{"type":"string"}},{"$ref":"#/components/parameters/IdempotencyKey"}],"responses":{"201":{"description":"","content":{"application/json":{"schema":{"type":"object"}}}},"400":{"$ref":"#/components/responses/BadRequest"},"401":{"$ref":"#/components/responses/Unauthorized"},"403":{"$ref":"#/components/responses/Forbidden"},"404":{"$ref":"#/components/responses/NotFound"},"409":{"$ref":"#/components/responses/Conflict"},"429":{"$ref":"#/components/responses/TooManyRequests"},"500":{"$ref":"#/components/responses/ServerError"}},"security":[{"JWT":[]},{"ApiKey":[]}],"tags":["Playbooks"],"summary":"Cancel execution","x-api-key-scopes":["*"]}},"/v1/sequences":{"post":{"operationId":"sequences_create","parameters":[{"$ref":"#/components/parameters/IdempotencyKey"}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/CreateBody"}}}},"responses":{"201":{"description":"","content":{"application/json":{"schema":{"type":"object"}}}},"400":{"$ref":"#/components/responses/BadRequest"},"401":{"$ref":"#/components/responses/Unauthorized"},"403":{"$ref":"#/components/responses/Forbidden"},"409":{"$ref":"#/components/responses/Conflict"},"429":{"$ref":"#/components/responses/TooManyRequests"},"500":{"$ref":"#/components/responses/ServerError"}},"security":[{"JWT":[]},{"ApiKey":[]}],"tags":["Sequences"],"summary":"Create","x-api-key-scopes":["*"]},"get":{"operationId":"sequences_findAll","parameters":[{"name":"status","required":false,"in":"query","schema":{"type":"string"}},{"name":"search","required":false,"in":"query","schema":{"type":"string"}},{"name":"page","required":false,"in":"query","schema":{"type":"string"}},{"name":"limit","required":false,"in":"query","schema":{"type":"string"}}],"responses":{"200":{"description":""},"400":{"$ref":"#/components/responses/BadRequest"},"401":{"$ref":"#/components/responses/Unauthorized"},"403":{"$ref":"#/components/responses/Forbidden"},"429":{"$ref":"#/components/responses/TooManyRequests"},"500":{"$ref":"#/components/responses/ServerError"}},"security":[{"JWT":[]},{"ApiKey":[]}],"tags":["Sequences"],"summary":"List","x-api-key-scopes":["*"]}},"/v1/sequences/stats":{"get":{"operationId":"sequences_getStats","parameters":[],"responses":{"200":{"description":""},"401":{"$ref":"#/components/responses/Unauthorized"},"403":{"$ref":"#/components/responses/Forbidden"},"429":{"$ref":"#/components/responses/TooManyRequests"},"500":{"$ref":"#/components/responses/ServerError"}},"security":[{"JWT":[]},{"ApiKey":[]}],"tags":["Sequences"],"summary":"Get stats","x-api-key-scopes":["*"]}},"/v1/sequences/delivery":{"get":{"operationId":"sequences_delivery","parameters":[],"responses":{"200":{"description":""},"401":{"$ref":"#/components/responses/Unauthorized"},"403":{"$ref":"#/components/responses/Forbidden"},"429":{"$ref":"#/components/responses/TooManyRequests"},"500":{"$ref":"#/components/responses/ServerError"}},"security":[{"JWT":[]},{"ApiKey":[]}],"summary":"Active + past enrollments of one lead/contact (tenant-scoped via the sequence).","tags":["Sequences"],"x-api-key-scopes":["*"]}},"/v1/sequences/enrollments/for-record":{"get":{"operationId":"sequences_getEnrollmentsForRecord","parameters":[{"name":"entityType","required":true,"in":"query","schema":{"type":"string"}},{"name":"entityId","required":true,"in":"query","schema":{"type":"string"}}],"responses":{"200":{"description":""},"400":{"$ref":"#/components/responses/BadRequest"},"401":{"$ref":"#/components/responses/Unauthorized"},"403":{"$ref":"#/components/responses/Forbidden"},"429":{"$ref":"#/components/responses/TooManyRequests"},"500":{"$ref":"#/components/responses/ServerError"}},"security":[{"JWT":[]},{"ApiKey":[]}],"tags":["Sequences"],"summary":"Get enrollments for record","x-api-key-scopes":["*"]}},"/v1/sequences/{id}":{"get":{"operationId":"sequences_findOne","parameters":[{"name":"id","required":true,"in":"path","schema":{"type":"string"}}],"responses":{"200":{"description":"","content":{"application/json":{"schema":{"type":"object"}}}},"400":{"$ref":"#/components/responses/BadRequest"},"401":{"$ref":"#/components/responses/Unauthorized"},"403":{"$ref":"#/components/responses/Forbidden"},"404":{"$ref":"#/components/responses/NotFound"},"429":{"$ref":"#/components/responses/TooManyRequests"},"500":{"$ref":"#/components/responses/ServerError"}},"security":[{"JWT":[]},{"ApiKey":[]}],"tags":["Sequences"],"summary":"Find one","x-api-key-scopes":["*"]},"patch":{"operationId":"sequences_update","parameters":[{"name":"id","required":true,"in":"path","schema":{"type":"string"}},{"$ref":"#/components/parameters/IdempotencyKey"}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/UpdateBody"}}}},"responses":{"200":{"description":"","content":{"application/json":{"schema":{"type":"object"}}}},"400":{"$ref":"#/components/responses/BadRequest"},"401":{"$ref":"#/components/responses/Unauthorized"},"403":{"$ref":"#/components/responses/Forbidden"},"404":{"$ref":"#/components/responses/NotFound"},"409":{"$ref":"#/components/responses/Conflict"},"429":{"$ref":"#/components/responses/TooManyRequests"},"500":{"$ref":"#/components/responses/ServerError"}},"security":[{"JWT":[]},{"ApiKey":[]}],"tags":["Sequences"],"summary":"Update","x-api-key-scopes":["*"]},"delete":{"operationId":"sequences_delete","parameters":[{"name":"id","required":true,"in":"path","schema":{"type":"string"}},{"name":"force","required":false,"in":"query","schema":{"type":"string"}}],"responses":{"200":{"description":""},"400":{"$ref":"#/components/responses/BadRequest"},"401":{"$ref":"#/components/responses/Unauthorized"},"403":{"$ref":"#/components/responses/Forbidden"},"404":{"$ref":"#/components/responses/NotFound"},"429":{"$ref":"#/components/responses/TooManyRequests"},"500":{"$ref":"#/components/responses/ServerError"}},"security":[{"JWT":[]},{"ApiKey":[]}],"tags":["Sequences"],"summary":"Delete","x-api-key-scopes":["*"]}},"/v1/sequences/{id}/duplicate":{"post":{"operationId":"sequences_duplicate","parameters":[{"name":"id","required":true,"in":"path","schema":{"type":"string"}},{"$ref":"#/components/parameters/IdempotencyKey"}],"responses":{"201":{"description":"","content":{"application/json":{"schema":{"type":"object"}}}},"400":{"$ref":"#/components/responses/BadRequest"},"401":{"$ref":"#/components/responses/Unauthorized"},"403":{"$ref":"#/components/responses/Forbidden"},"404":{"$ref":"#/components/responses/NotFound"},"409":{"$ref":"#/components/responses/Conflict"},"429":{"$ref":"#/components/responses/TooManyRequests"},"500":{"$ref":"#/components/responses/ServerError"}},"security":[{"JWT":[]},{"ApiKey":[]}],"tags":["Sequences"],"summary":"Duplicate","x-api-key-scopes":["*"]}},"/v1/sequences/{id}/toggle":{"post":{"operationId":"sequences_toggleStatus","parameters":[{"name":"id","required":true,"in":"path","schema":{"type":"string"}},{"$ref":"#/components/parameters/IdempotencyKey"}],"responses":{"201":{"description":"","content":{"application/json":{"schema":{"type":"object"}}}},"400":{"$ref":"#/components/responses/BadRequest"},"401":{"$ref":"#/components/responses/Unauthorized"},"403":{"$ref":"#/components/responses/Forbidden"},"404":{"$ref":"#/components/responses/NotFound"},"409":{"$ref":"#/components/responses/Conflict"},"429":{"$ref":"#/components/responses/TooManyRequests"},"500":{"$ref":"#/components/responses/ServerError"}},"security":[{"JWT":[]},{"ApiKey":[]}],"tags":["Sequences"],"summary":"Toggle status","x-api-key-scopes":["*"]}},"/v1/sequences/{id}/steps":{"post":{"operationId":"sequences_addStep","parameters":[{"name":"id","required":true,"in":"path","schema":{"type":"string"}},{"$ref":"#/components/parameters/IdempotencyKey"}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/AddStepBody"}}}},"responses":{"201":{"description":"","content":{"application/json":{"schema":{"type":"object"}}}},"400":{"$ref":"#/components/responses/BadRequest"},"401":{"$ref":"#/components/responses/Unauthorized"},"403":{"$ref":"#/components/responses/Forbidden"},"404":{"$ref":"#/components/responses/NotFound"},"409":{"$ref":"#/components/responses/Conflict"},"429":{"$ref":"#/components/responses/TooManyRequests"},"500":{"$ref":"#/components/responses/ServerError"}},"security":[{"JWT":[]},{"ApiKey":[]}],"tags":["Sequences"],"summary":"Add step","x-api-key-scopes":["*"]}},"/v1/sequences/{id}/steps/{stepId}":{"patch":{"operationId":"sequences_updateStep","parameters":[{"name":"id","required":true,"in":"path","schema":{"type":"string"}},{"name":"stepId","required":true,"in":"path","schema":{"type":"string"}},{"$ref":"#/components/parameters/IdempotencyKey"}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/UpdateStepBody"}}}},"responses":{"200":{"description":"","content":{"application/json":{"schema":{"type":"object"}}}},"400":{"$ref":"#/components/responses/BadRequest"},"401":{"$ref":"#/components/responses/Unauthorized"},"403":{"$ref":"#/components/responses/Forbidden"},"404":{"$ref":"#/components/responses/NotFound"},"409":{"$ref":"#/components/responses/Conflict"},"429":{"$ref":"#/components/responses/TooManyRequests"},"500":{"$ref":"#/components/responses/ServerError"}},"security":[{"JWT":[]},{"ApiKey":[]}],"tags":["Sequences"],"summary":"Update step","x-api-key-scopes":["*"]},"delete":{"operationId":"sequences_deleteStep","parameters":[{"name":"id","required":true,"in":"path","schema":{"type":"string"}},{"name":"stepId","required":true,"in":"path","schema":{"type":"string"}}],"responses":{"200":{"description":"","content":{"application/json":{"schema":{"type":"object"}}}},"400":{"$ref":"#/components/responses/BadRequest"},"401":{"$ref":"#/components/responses/Unauthorized"},"403":{"$ref":"#/components/responses/Forbidden"},"404":{"$ref":"#/components/responses/NotFound"},"429":{"$ref":"#/components/responses/TooManyRequests"},"500":{"$ref":"#/components/responses/ServerError"}},"security":[{"JWT":[]},{"ApiKey":[]}],"tags":["Sequences"],"summary":"Delete step","x-api-key-scopes":["*"]}},"/v1/sequences/{id}/steps/reorder":{"post":{"operationId":"sequences_reorderSteps","parameters":[{"name":"id","required":true,"in":"path","schema":{"type":"string"}},{"$ref":"#/components/parameters/IdempotencyKey"}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ReorderStepsBody"}}}},"responses":{"201":{"description":"","content":{"application/json":{"schema":{"type":"object"}}}},"400":{"$ref":"#/components/responses/BadRequest"},"401":{"$ref":"#/components/responses/Unauthorized"},"403":{"$ref":"#/components/responses/Forbidden"},"404":{"$ref":"#/components/responses/NotFound"},"409":{"$ref":"#/components/responses/Conflict"},"429":{"$ref":"#/components/responses/TooManyRequests"},"500":{"$ref":"#/components/responses/ServerError"}},"security":[{"JWT":[]},{"ApiKey":[]}],"tags":["Sequences"],"summary":"Reorder steps","x-api-key-scopes":["*"]}},"/v1/sequences/{id}/enrollments":{"get":{"operationId":"sequences_getEnrollments","parameters":[{"name":"id","required":true,"in":"path","schema":{"type":"string"}}],"responses":{"200":{"description":""},"400":{"$ref":"#/components/responses/BadRequest"},"401":{"$ref":"#/components/responses/Unauthorized"},"403":{"$ref":"#/components/responses/Forbidden"},"404":{"$ref":"#/components/responses/NotFound"},"429":{"$ref":"#/components/responses/TooManyRequests"},"500":{"$ref":"#/components/responses/ServerError"}},"security":[{"JWT":[]},{"ApiKey":[]}],"tags":["Sequences"],"summary":"Get enrollments","x-api-key-scopes":["*"]}},"/v1/sequences/{id}/enroll":{"post":{"operationId":"sequences_enrollContact","parameters":[{"name":"id","required":true,"in":"path","schema":{"type":"string"}},{"$ref":"#/components/parameters/IdempotencyKey"}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/EnrollContactBody"}}}},"responses":{"201":{"description":""},"400":{"$ref":"#/components/responses/BadRequest"},"401":{"$ref":"#/components/responses/Unauthorized"},"403":{"$ref":"#/components/responses/Forbidden"},"404":{"$ref":"#/components/responses/NotFound"},"409":{"$ref":"#/components/responses/Conflict"},"429":{"$ref":"#/components/responses/TooManyRequests"},"500":{"$ref":"#/components/responses/ServerError"}},"security":[{"JWT":[]},{"ApiKey":[]}],"tags":["Sequences"],"summary":"Enroll contact","x-api-key-scopes":["*"]}},"/v1/sequences/{id}/enroll/bulk":{"post":{"operationId":"sequences_bulkEnroll","parameters":[{"name":"id","required":true,"in":"path","schema":{"type":"string"}},{"$ref":"#/components/parameters/IdempotencyKey"}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/BulkEnrollBody"}}}},"responses":{"201":{"description":""},"400":{"$ref":"#/components/responses/BadRequest"},"401":{"$ref":"#/components/responses/Unauthorized"},"403":{"$ref":"#/components/responses/Forbidden"},"404":{"$ref":"#/components/responses/NotFound"},"409":{"$ref":"#/components/responses/Conflict"},"429":{"$ref":"#/components/responses/TooManyRequests"},"500":{"$ref":"#/components/responses/ServerError"}},"security":[{"JWT":[]},{"ApiKey":[]}],"summary":"Enroll up to 500 leads/contacts; skips records already active in this sequence.","tags":["Sequences"],"x-api-key-scopes":["*"]}},"/v1/sequences/{id}/process-step":{"post":{"operationId":"sequences_processStep","parameters":[{"name":"id","required":true,"in":"path","schema":{"type":"string"}},{"$ref":"#/components/parameters/IdempotencyKey"}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ProcessStepBody"}}}},"responses":{"201":{"description":"","content":{"application/json":{"schema":{"type":"object"}}}},"400":{"$ref":"#/components/responses/BadRequest"},"401":{"$ref":"#/components/responses/Unauthorized"},"403":{"$ref":"#/components/responses/Forbidden"},"404":{"$ref":"#/components/responses/NotFound"},"409":{"$ref":"#/components/responses/Conflict"},"429":{"$ref":"#/components/responses/TooManyRequests"},"500":{"$ref":"#/components/responses/ServerError"}},"security":[{"JWT":[]},{"ApiKey":[]}],"tags":["Sequences"],"summary":"Process step","x-api-key-scopes":["*"]}},"/v1/sequences/{id}/unenroll":{"post":{"operationId":"sequences_unenroll","parameters":[{"name":"id","required":true,"in":"path","schema":{"type":"string"}},{"$ref":"#/components/parameters/IdempotencyKey"}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/UnenrollBody"}}}},"responses":{"201":{"description":""},"400":{"$ref":"#/components/responses/BadRequest"},"401":{"$ref":"#/components/responses/Unauthorized"},"403":{"$ref":"#/components/responses/Forbidden"},"404":{"$ref":"#/components/responses/NotFound"},"409":{"$ref":"#/components/responses/Conflict"},"429":{"$ref":"#/components/responses/TooManyRequests"},"500":{"$ref":"#/components/responses/ServerError"}},"security":[{"JWT":[]},{"ApiKey":[]}],"tags":["Sequences"],"summary":"Unenroll","x-api-key-scopes":["*"]}},"/v1/sequences/{id}/pause-enrollment":{"post":{"operationId":"sequences_pauseEnrollment","parameters":[{"name":"id","required":true,"in":"path","schema":{"type":"string"}},{"$ref":"#/components/parameters/IdempotencyKey"}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/PauseEnrollmentBody"}}}},"responses":{"201":{"description":""},"400":{"$ref":"#/components/responses/BadRequest"},"401":{"$ref":"#/components/responses/Unauthorized"},"403":{"$ref":"#/components/responses/Forbidden"},"404":{"$ref":"#/components/responses/NotFound"},"409":{"$ref":"#/components/responses/Conflict"},"429":{"$ref":"#/components/responses/TooManyRequests"},"500":{"$ref":"#/components/responses/ServerError"}},"security":[{"JWT":[]},{"ApiKey":[]}],"tags":["Sequences"],"summary":"Pause enrollment","x-api-key-scopes":["*"]}},"/v1/sequences/{id}/resume-enrollment":{"post":{"operationId":"sequences_resumeEnrollment","parameters":[{"name":"id","required":true,"in":"path","schema":{"type":"string"}},{"$ref":"#/components/parameters/IdempotencyKey"}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ResumeEnrollmentBody"}}}},"responses":{"201":{"description":""},"400":{"$ref":"#/components/responses/BadRequest"},"401":{"$ref":"#/components/responses/Unauthorized"},"403":{"$ref":"#/components/responses/Forbidden"},"404":{"$ref":"#/components/responses/NotFound"},"409":{"$ref":"#/components/responses/Conflict"},"429":{"$ref":"#/components/responses/TooManyRequests"},"500":{"$ref":"#/components/responses/ServerError"}},"security":[{"JWT":[]},{"ApiKey":[]}],"tags":["Sequences"],"summary":"Resume enrollment","x-api-key-scopes":["*"]}},"/v1/collaboration/presence/{entityType}/{entityId}":{"get":{"operationId":"collaboration_getEntityViewers","parameters":[{"name":"entityType","required":true,"in":"path","schema":{"type":"string"}},{"name":"entityId","required":true,"in":"path","schema":{"type":"string"}}],"responses":{"200":{"description":""},"400":{"$ref":"#/components/responses/BadRequest"},"401":{"$ref":"#/components/responses/Unauthorized"},"403":{"$ref":"#/components/responses/Forbidden"},"404":{"$ref":"#/components/responses/NotFound"},"429":{"$ref":"#/components/responses/TooManyRequests"},"500":{"$ref":"#/components/responses/ServerError"}},"security":[{"JWT":[]},{"ApiKey":[]}],"tags":["Collaboration"],"summary":"Get entity viewers","x-api-key-scopes":["*"]}},"/v1/collaboration/presence/{entityType}/{entityId}/count":{"get":{"operationId":"collaboration_getViewerCount","parameters":[{"name":"entityType","required":true,"in":"path","schema":{"type":"string"}},{"name":"entityId","required":true,"in":"path","schema":{"type":"string"}}],"responses":{"200":{"description":""},"400":{"$ref":"#/components/responses/BadRequest"},"401":{"$ref":"#/components/responses/Unauthorized"},"403":{"$ref":"#/components/responses/Forbidden"},"404":{"$ref":"#/components/responses/NotFound"},"429":{"$ref":"#/components/responses/TooManyRequests"},"500":{"$ref":"#/components/responses/ServerError"}},"security":[{"JWT":[]},{"ApiKey":[]}],"summary":"Get viewer count for an entity","tags":["Collaboration"],"x-api-key-scopes":["*"]}},"/v1/collaboration/presence/summary":{"post":{"operationId":"collaboration_getPresenceSummary","parameters":[{"$ref":"#/components/parameters/IdempotencyKey"}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/GetPresenceSummaryBody"}}}},"responses":{"201":{"description":""},"400":{"$ref":"#/components/responses/BadRequest"},"401":{"$ref":"#/components/responses/Unauthorized"},"403":{"$ref":"#/components/responses/Forbidden"},"409":{"$ref":"#/components/responses/Conflict"},"429":{"$ref":"#/components/responses/TooManyRequests"},"500":{"$ref":"#/components/responses/ServerError"}},"security":[{"JWT":[]},{"ApiKey":[]}],"summary":"Get presence summary for multiple entities","tags":["Collaboration"],"x-api-key-scopes":["*"]}},"/v1/collaboration/locks/{entityType}/{entityId}":{"get":{"operationId":"collaboration_getLockStatus","parameters":[{"name":"entityType","required":true,"in":"path","schema":{"type":"string"}},{"name":"entityId","required":true,"in":"path","schema":{"type":"string"}}],"responses":{"200":{"description":""},"400":{"$ref":"#/components/responses/BadRequest"},"401":{"$ref":"#/components/responses/Unauthorized"},"403":{"$ref":"#/components/responses/Forbidden"},"404":{"$ref":"#/components/responses/NotFound"},"429":{"$ref":"#/components/responses/TooManyRequests"},"500":{"$ref":"#/components/responses/ServerError"}},"security":[{"JWT":[]},{"ApiKey":[]}],"tags":["Collaboration"],"summary":"Get lock status","x-api-key-scopes":["*"]},"post":{"operationId":"collaboration_acquireLock","parameters":[{"name":"entityType","required":true,"in":"path","schema":{"type":"string"}},{"name":"entityId","required":true,"in":"path","schema":{"type":"string"}},{"$ref":"#/components/parameters/IdempotencyKey"}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/AcquireLockBody"}}}},"responses":{"201":{"description":"","content":{"application/json":{"schema":{"type":"object"}}}},"400":{"$ref":"#/components/responses/BadRequest"},"401":{"$ref":"#/components/responses/Unauthorized"},"403":{"$ref":"#/components/responses/Forbidden"},"404":{"$ref":"#/components/responses/NotFound"},"409":{"$ref":"#/components/responses/Conflict"},"429":{"$ref":"#/components/responses/TooManyRequests"},"500":{"$ref":"#/components/responses/ServerError"}},"security":[{"JWT":[]},{"ApiKey":[]}],"summary":"Acquire a lock on an entity","tags":["Collaboration"],"x-api-key-scopes":["*"]},"delete":{"operationId":"collaboration_releaseLock","parameters":[{"name":"entityType","required":true,"in":"path","schema":{"type":"string"}},{"name":"entityId","required":true,"in":"path","schema":{"type":"string"}}],"responses":{"200":{"description":""},"400":{"$ref":"#/components/responses/BadRequest"},"401":{"$ref":"#/components/responses/Unauthorized"},"403":{"$ref":"#/components/responses/Forbidden"},"404":{"$ref":"#/components/responses/NotFound"},"429":{"$ref":"#/components/responses/TooManyRequests"},"500":{"$ref":"#/components/responses/ServerError"}},"security":[{"JWT":[]},{"ApiKey":[]}],"summary":"Release a lock on an entity","tags":["Collaboration"],"x-api-key-scopes":["*"]}},"/v1/collaboration/locks/{entityType}/{entityId}/refresh":{"post":{"operationId":"collaboration_refreshLock","parameters":[{"name":"entityType","required":true,"in":"path","schema":{"type":"string"}},{"name":"entityId","required":true,"in":"path","schema":{"type":"string"}},{"$ref":"#/components/parameters/IdempotencyKey"}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/RefreshLockBody"}}}},"responses":{"201":{"description":"","content":{"application/json":{"schema":{"type":"object"}}}},"400":{"$ref":"#/components/responses/BadRequest"},"401":{"$ref":"#/components/responses/Unauthorized"},"403":{"$ref":"#/components/responses/Forbidden"},"404":{"$ref":"#/components/responses/NotFound"},"409":{"$ref":"#/components/responses/Conflict"},"429":{"$ref":"#/components/responses/TooManyRequests"},"500":{"$ref":"#/components/responses/ServerError"}},"security":[{"JWT":[]},{"ApiKey":[]}],"summary":"Refresh a lock (extend TTL)","tags":["Collaboration"],"x-api-key-scopes":["*"]}},"/v1/collaboration/locks/{entityType}/{entityId}/owned":{"get":{"operationId":"collaboration_checkLockOwnership","parameters":[{"name":"entityType","required":true,"in":"path","schema":{"type":"string"}},{"name":"entityId","required":true,"in":"path","schema":{"type":"string"}}],"responses":{"200":{"description":""},"400":{"$ref":"#/components/responses/BadRequest"},"401":{"$ref":"#/components/responses/Unauthorized"},"403":{"$ref":"#/components/responses/Forbidden"},"404":{"$ref":"#/components/responses/NotFound"},"429":{"$ref":"#/components/responses/TooManyRequests"},"500":{"$ref":"#/components/responses/ServerError"}},"security":[{"JWT":[]},{"ApiKey":[]}],"summary":"Check if user owns a lock","tags":["Collaboration"],"x-api-key-scopes":["*"]}},"/v1/collaboration/locks/my-locks":{"get":{"operationId":"collaboration_getMyLocks","parameters":[],"responses":{"200":{"description":""},"401":{"$ref":"#/components/responses/Unauthorized"},"403":{"$ref":"#/components/responses/Forbidden"},"429":{"$ref":"#/components/responses/TooManyRequests"},"500":{"$ref":"#/components/responses/ServerError"}},"security":[{"JWT":[]},{"ApiKey":[]}],"summary":"Get all locks held by the current user","tags":["Collaboration"],"x-api-key-scopes":["*"]}},"/v1/collaboration/locks/{entityType}/{entityId}/force":{"delete":{"operationId":"collaboration_forceReleaseLock","parameters":[{"name":"entityType","required":true,"in":"path","schema":{"type":"string"}},{"name":"entityId","required":true,"in":"path","schema":{"type":"string"}},{"name":"confirm","required":true,"in":"query","schema":{"type":"string"}}],"responses":{"200":{"description":""},"400":{"$ref":"#/components/responses/BadRequest"},"401":{"$ref":"#/components/responses/Unauthorized"},"403":{"$ref":"#/components/responses/Forbidden"},"404":{"$ref":"#/components/responses/NotFound"},"429":{"$ref":"#/components/responses/TooManyRequests"},"500":{"$ref":"#/components/responses/ServerError"}},"security":[{"JWT":[]},{"ApiKey":[]}],"summary":"Force-release a lock. Only an admin or the current lock holder may do this.","tags":["Collaboration"],"x-api-key-scopes":["*"]}},"/v1/opportunities/{opportunityId}/splits":{"get":{"operationId":"splits_getOpportunitySplits","parameters":[{"name":"opportunityId","required":true,"in":"path","schema":{"type":"string"}}],"responses":{"200":{"description":""},"400":{"$ref":"#/components/responses/BadRequest"},"401":{"$ref":"#/components/responses/Unauthorized"},"403":{"$ref":"#/components/responses/Forbidden"},"404":{"$ref":"#/components/responses/NotFound"},"429":{"$ref":"#/components/responses/TooManyRequests"},"500":{"$ref":"#/components/responses/ServerError"}},"security":[{"JWT":[]},{"ApiKey":[]}],"tags":["Splits"],"summary":"Get opportunity splits","x-api-key-scopes":["READ_OPPORTUNITIES"]},"post":{"operationId":"splits_createSplit","parameters":[{"name":"opportunityId","required":true,"in":"path","schema":{"type":"string"}},{"$ref":"#/components/parameters/IdempotencyKey"}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/CreateSplitDto"}}}},"responses":{"201":{"description":"","content":{"application/json":{"schema":{"type":"object"}}}},"400":{"$ref":"#/components/responses/BadRequest"},"401":{"$ref":"#/components/responses/Unauthorized"},"403":{"$ref":"#/components/responses/Forbidden"},"404":{"$ref":"#/components/responses/NotFound"},"409":{"$ref":"#/components/responses/Conflict"},"429":{"$ref":"#/components/responses/TooManyRequests"},"500":{"$ref":"#/components/responses/ServerError"}},"security":[{"JWT":[]},{"ApiKey":[]}],"tags":["Splits"],"summary":"Create split","x-api-key-scopes":["WRITE_OPPORTUNITIES"]}},"/v1/opportunities/{opportunityId}/splits/eligible-users":{"get":{"operationId":"splits_eligibleUsers","parameters":[{"name":"opportunityId","required":true,"in":"path","schema":{"type":"string"}}],"responses":{"200":{"description":""},"400":{"$ref":"#/components/responses/BadRequest"},"401":{"$ref":"#/components/responses/Unauthorized"},"403":{"$ref":"#/components/responses/Forbidden"},"404":{"$ref":"#/components/responses/NotFound"},"429":{"$ref":"#/components/responses/TooManyRequests"},"500":{"$ref":"#/components/responses/ServerError"}},"security":[{"JWT":[]},{"ApiKey":[]}],"summary":"People who can be credited on this deal (active org members).","tags":["Splits"],"x-api-key-scopes":["READ_OPPORTUNITIES"]}},"/v1/opportunities/{opportunityId}/splits/apply":{"post":{"operationId":"splits_applySplits","parameters":[{"name":"opportunityId","required":true,"in":"path","schema":{"type":"string"}},{"$ref":"#/components/parameters/IdempotencyKey"}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ApplySplitsDto"}}}},"responses":{"201":{"description":""},"400":{"$ref":"#/components/responses/BadRequest"},"401":{"$ref":"#/components/responses/Unauthorized"},"403":{"$ref":"#/components/responses/Forbidden"},"404":{"$ref":"#/components/responses/NotFound"},"409":{"$ref":"#/components/responses/Conflict"},"429":{"$ref":"#/components/responses/TooManyRequests"},"500":{"$ref":"#/components/responses/ServerError"}},"security":[{"JWT":[]},{"ApiKey":[]}],"summary":"Upsert several splits in one transaction (applying AI suggestions).","tags":["Splits"],"x-api-key-scopes":["WRITE_OPPORTUNITIES"]}},"/v1/opportunities/{opportunityId}/splits/{splitId}":{"patch":{"operationId":"splits_updateSplit","parameters":[{"name":"opportunityId","required":true,"in":"path","schema":{"type":"string"}},{"name":"splitId","required":true,"in":"path","schema":{"type":"string"}},{"$ref":"#/components/parameters/IdempotencyKey"}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/UpdateSplitDto"}}}},"responses":{"200":{"description":"","content":{"application/json":{"schema":{"type":"object"}}}},"400":{"$ref":"#/components/responses/BadRequest"},"401":{"$ref":"#/components/responses/Unauthorized"},"403":{"$ref":"#/components/responses/Forbidden"},"404":{"$ref":"#/components/responses/NotFound"},"409":{"$ref":"#/components/responses/Conflict"},"429":{"$ref":"#/components/responses/TooManyRequests"},"500":{"$ref":"#/components/responses/ServerError"}},"security":[{"JWT":[]},{"ApiKey":[]}],"tags":["Splits"],"summary":"Update split","x-api-key-scopes":["WRITE_OPPORTUNITIES"]},"delete":{"operationId":"splits_deleteSplit","parameters":[{"name":"opportunityId","required":true,"in":"path","schema":{"type":"string"}},{"name":"splitId","required":true,"in":"path","schema":{"type":"string"}}],"responses":{"200":{"description":""},"400":{"$ref":"#/components/responses/BadRequest"},"401":{"$ref":"#/components/responses/Unauthorized"},"403":{"$ref":"#/components/responses/Forbidden"},"404":{"$ref":"#/components/responses/NotFound"},"429":{"$ref":"#/components/responses/TooManyRequests"},"500":{"$ref":"#/components/responses/ServerError"}},"security":[{"JWT":[]},{"ApiKey":[]}],"tags":["Splits"],"summary":"Delete split","x-api-key-scopes":["WRITE_OPPORTUNITIES"]}},"/v1/opportunities/{opportunityId}/splits/{splitId}/approve":{"post":{"operationId":"splits_approveSplit","parameters":[{"name":"opportunityId","required":true,"in":"path","schema":{"type":"string"}},{"name":"splitId","required":true,"in":"path","schema":{"type":"string"}},{"$ref":"#/components/parameters/IdempotencyKey"}],"responses":{"201":{"description":"","content":{"application/json":{"schema":{"type":"object"}}}},"400":{"$ref":"#/components/responses/BadRequest"},"401":{"$ref":"#/components/responses/Unauthorized"},"403":{"$ref":"#/components/responses/Forbidden"},"404":{"$ref":"#/components/responses/NotFound"},"409":{"$ref":"#/components/responses/Conflict"},"429":{"$ref":"#/components/responses/TooManyRequests"},"500":{"$ref":"#/components/responses/ServerError"}},"security":[{"JWT":[]},{"ApiKey":[]}],"tags":["Splits"],"summary":"Approve split","x-api-key-scopes":["WRITE_OPPORTUNITIES"]}},"/v1/opportunities/{opportunityId}/splits/{splitId}/reject":{"post":{"operationId":"splits_rejectSplit","parameters":[{"name":"opportunityId","required":true,"in":"path","schema":{"type":"string"}},{"name":"splitId","required":true,"in":"path","schema":{"type":"string"}},{"$ref":"#/components/parameters/IdempotencyKey"}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/RejectSplitBody"}}}},"responses":{"201":{"description":"","content":{"application/json":{"schema":{"type":"object"}}}},"400":{"$ref":"#/components/responses/BadRequest"},"401":{"$ref":"#/components/responses/Unauthorized"},"403":{"$ref":"#/components/responses/Forbidden"},"404":{"$ref":"#/components/responses/NotFound"},"409":{"$ref":"#/components/responses/Conflict"},"429":{"$ref":"#/components/responses/TooManyRequests"},"500":{"$ref":"#/components/responses/ServerError"}},"security":[{"JWT":[]},{"ApiKey":[]}],"tags":["Splits"],"summary":"Reject split","x-api-key-scopes":["WRITE_OPPORTUNITIES"]}},"/v1/splits/my-splits":{"get":{"operationId":"splits_getMySplits","parameters":[{"name":"status","required":true,"in":"query","schema":{"type":"string"}},{"name":"includeInForecast","required":true,"in":"query","schema":{"type":"string"}}],"responses":{"200":{"description":""},"400":{"$ref":"#/components/responses/BadRequest"},"401":{"$ref":"#/components/responses/Unauthorized"},"403":{"$ref":"#/components/responses/Forbidden"},"429":{"$ref":"#/components/responses/TooManyRequests"},"500":{"$ref":"#/components/responses/ServerError"}},"security":[{"JWT":[]},{"ApiKey":[]}],"tags":["Splits"],"summary":"Get my splits","x-api-key-scopes":["*"]}},"/v1/splits/team-splits":{"get":{"operationId":"splits_getTeamSplits","parameters":[{"name":"status","required":true,"in":"query","schema":{"type":"string"}},{"name":"userId","required":true,"in":"query","schema":{"type":"string"}}],"responses":{"200":{"description":"","content":{"application/json":{"schema":{"type":"array","items":{"type":"object"}}}}},"400":{"$ref":"#/components/responses/BadRequest"},"401":{"$ref":"#/components/responses/Unauthorized"},"403":{"$ref":"#/components/responses/Forbidden"},"429":{"$ref":"#/components/responses/TooManyRequests"},"500":{"$ref":"#/components/responses/ServerError"}},"security":[{"JWT":[]},{"ApiKey":[]}],"tags":["Splits"],"summary":"Get team splits","x-api-key-scopes":["*"]}},"/v1/splits/stats":{"get":{"operationId":"splits_getSplitStats","parameters":[],"responses":{"200":{"description":""},"401":{"$ref":"#/components/responses/Unauthorized"},"403":{"$ref":"#/components/responses/Forbidden"},"429":{"$ref":"#/components/responses/TooManyRequests"},"500":{"$ref":"#/components/responses/ServerError"}},"security":[{"JWT":[]},{"ApiKey":[]}],"tags":["Splits"],"summary":"Get split stats","x-api-key-scopes":["*"]}},"/v1/opportunities/{opportunityId}/splits/recalculate":{"post":{"operationId":"splits_recalculateSplitAmounts","parameters":[{"name":"opportunityId","required":true,"in":"path","schema":{"type":"string"}},{"$ref":"#/components/parameters/IdempotencyKey"}],"responses":{"201":{"description":"","content":{"application/json":{"schema":{"type":"object"}}}},"400":{"$ref":"#/components/responses/BadRequest"},"401":{"$ref":"#/components/responses/Unauthorized"},"403":{"$ref":"#/components/responses/Forbidden"},"404":{"$ref":"#/components/responses/NotFound"},"409":{"$ref":"#/components/responses/Conflict"},"429":{"$ref":"#/components/responses/TooManyRequests"},"500":{"$ref":"#/components/responses/ServerError"}},"security":[{"JWT":[]},{"ApiKey":[]}],"tags":["Splits"],"summary":"Recalculate split amounts","x-api-key-scopes":["WRITE_OPPORTUNITIES"]}},"/v1/opportunities/{opportunityId}/splits/ai/suggest":{"get":{"operationId":"splits_suggestSplits","parameters":[{"name":"opportunityId","required":true,"in":"path","schema":{"type":"string"}}],"responses":{"200":{"description":"","content":{"application/json":{"schema":{"type":"array","items":{"type":"object"}}}}},"400":{"$ref":"#/components/responses/BadRequest"},"401":{"$ref":"#/components/responses/Unauthorized"},"403":{"$ref":"#/components/responses/Forbidden"},"404":{"$ref":"#/components/responses/NotFound"},"429":{"$ref":"#/components/responses/TooManyRequests"},"500":{"$ref":"#/components/responses/ServerError"}},"security":[{"JWT":[]},{"ApiKey":[]}],"tags":["Splits"],"summary":"Suggest splits","x-api-key-scopes":["READ_OPPORTUNITIES"]}},"/v1/opportunities/{opportunityId}/splits/ai/quota-impact":{"get":{"operationId":"splits_analyzeQuotaImpact","parameters":[{"name":"opportunityId","required":true,"in":"path","schema":{"type":"string"}}],"responses":{"200":{"description":"","content":{"application/json":{"schema":{"type":"array","items":{"type":"object"}}}}},"400":{"$ref":"#/components/responses/BadRequest"},"401":{"$ref":"#/components/responses/Unauthorized"},"403":{"$ref":"#/components/responses/Forbidden"},"404":{"$ref":"#/components/responses/NotFound"},"429":{"$ref":"#/components/responses/TooManyRequests"},"500":{"$ref":"#/components/responses/ServerError"}},"security":[{"JWT":[]},{"ApiKey":[]}],"tags":["Splits"],"summary":"Analyze quota impact","x-api-key-scopes":["READ_OPPORTUNITIES"]}},"/v1/opportunities/{opportunityId}/splits/ai/conflicts":{"get":{"operationId":"splits_detectConflicts","parameters":[{"name":"opportunityId","required":true,"in":"path","schema":{"type":"string"}}],"responses":{"200":{"description":"","content":{"application/json":{"schema":{"type":"array","items":{"type":"object"}}}}},"400":{"$ref":"#/components/responses/BadRequest"},"401":{"$ref":"#/components/responses/Unauthorized"},"403":{"$ref":"#/components/responses/Forbidden"},"404":{"$ref":"#/components/responses/NotFound"},"429":{"$ref":"#/components/responses/TooManyRequests"},"500":{"$ref":"#/components/responses/ServerError"}},"security":[{"JWT":[]},{"ApiKey":[]}],"tags":["Splits"],"summary":"Detect conflicts","x-api-key-scopes":["READ_OPPORTUNITIES"]}},"/v1/opportunities/{opportunityId}/splits/ai/analytics":{"get":{"operationId":"splits_getAnalytics","parameters":[{"name":"opportunityId","required":true,"in":"path","schema":{"type":"string"}}],"responses":{"200":{"description":"","content":{"application/json":{"schema":{"type":"object"}}}},"400":{"$ref":"#/components/responses/BadRequest"},"401":{"$ref":"#/components/responses/Unauthorized"},"403":{"$ref":"#/components/responses/Forbidden"},"404":{"$ref":"#/components/responses/NotFound"},"429":{"$ref":"#/components/responses/TooManyRequests"},"500":{"$ref":"#/components/responses/ServerError"}},"security":[{"JWT":[]},{"ApiKey":[]}],"tags":["Splits"],"summary":"Get analytics","x-api-key-scopes":["READ_OPPORTUNITIES"]}},"/v1/opportunities/{opportunityId}/splits/ai/recommendation":{"get":{"operationId":"splits_getAIRecommendation","parameters":[{"name":"opportunityId","required":true,"in":"path","schema":{"type":"string"}}],"responses":{"200":{"description":""},"400":{"$ref":"#/components/responses/BadRequest"},"401":{"$ref":"#/components/responses/Unauthorized"},"403":{"$ref":"#/components/responses/Forbidden"},"404":{"$ref":"#/components/responses/NotFound"},"429":{"$ref":"#/components/responses/TooManyRequests"},"500":{"$ref":"#/components/responses/ServerError"}},"security":[{"JWT":[]},{"ApiKey":[]}],"tags":["Splits"],"summary":"Get airecommendation","x-api-key-scopes":["READ_OPPORTUNITIES"]}},"/v1/competitors":{"get":{"operationId":"competitors_findAll","parameters":[{"name":"tier","required":true,"in":"query","schema":{"type":"string"}},{"name":"status","required":true,"in":"query","schema":{"type":"string"}},{"name":"search","required":true,"in":"query","schema":{"type":"string"}}],"responses":{"200":{"description":""},"400":{"$ref":"#/components/responses/BadRequest"},"401":{"$ref":"#/components/responses/Unauthorized"},"403":{"$ref":"#/components/responses/Forbidden"},"429":{"$ref":"#/components/responses/TooManyRequests"},"500":{"$ref":"#/components/responses/ServerError"}},"security":[{"JWT":[]},{"ApiKey":[]}],"tags":["Competitors"],"summary":"List","x-api-key-scopes":["*"]},"post":{"operationId":"competitors_create","parameters":[{"$ref":"#/components/parameters/IdempotencyKey"}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/CreateCompetitorDto"}}}},"responses":{"201":{"description":""},"400":{"$ref":"#/components/responses/BadRequest"},"401":{"$ref":"#/components/responses/Unauthorized"},"403":{"$ref":"#/components/responses/Forbidden"},"409":{"$ref":"#/components/responses/Conflict"},"429":{"$ref":"#/components/responses/TooManyRequests"},"500":{"$ref":"#/components/responses/ServerError"}},"security":[{"JWT":[]},{"ApiKey":[]}],"tags":["Competitors"],"summary":"Create","x-api-key-scopes":["*"]}},"/v1/competitors/stats":{"get":{"operationId":"competitors_getStats","parameters":[],"responses":{"200":{"description":""},"401":{"$ref":"#/components/responses/Unauthorized"},"403":{"$ref":"#/components/responses/Forbidden"},"429":{"$ref":"#/components/responses/TooManyRequests"},"500":{"$ref":"#/components/responses/ServerError"}},"security":[{"JWT":[]},{"ApiKey":[]}],"tags":["Competitors"],"summary":"Get stats","x-api-key-scopes":["*"]}},"/v1/competitors/{id}":{"get":{"operationId":"competitors_findOne","parameters":[{"name":"id","required":true,"in":"path","schema":{"type":"string"}}],"responses":{"200":{"description":"","content":{"application/json":{"schema":{"type":"object"}}}},"400":{"$ref":"#/components/responses/BadRequest"},"401":{"$ref":"#/components/responses/Unauthorized"},"403":{"$ref":"#/components/responses/Forbidden"},"404":{"$ref":"#/components/responses/NotFound"},"429":{"$ref":"#/components/responses/TooManyRequests"},"500":{"$ref":"#/components/responses/ServerError"}},"security":[{"JWT":[]},{"ApiKey":[]}],"tags":["Competitors"],"summary":"Find one","x-api-key-scopes":["*"]},"patch":{"operationId":"competitors_update","parameters":[{"name":"id","required":true,"in":"path","schema":{"type":"string"}},{"$ref":"#/components/parameters/IdempotencyKey"}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/UpdateCompetitorDto"}}}},"responses":{"200":{"description":""},"400":{"$ref":"#/components/responses/BadRequest"},"401":{"$ref":"#/components/responses/Unauthorized"},"403":{"$ref":"#/components/responses/Forbidden"},"404":{"$ref":"#/components/responses/NotFound"},"409":{"$ref":"#/components/responses/Conflict"},"429":{"$ref":"#/components/responses/TooManyRequests"},"500":{"$ref":"#/components/responses/ServerError"}},"security":[{"JWT":[]},{"ApiKey":[]}],"tags":["Competitors"],"summary":"Update","x-api-key-scopes":["*"]},"delete":{"operationId":"competitors_delete","parameters":[{"name":"id","required":true,"in":"path","schema":{"type":"string"}}],"responses":{"200":{"description":""},"400":{"$ref":"#/components/responses/BadRequest"},"401":{"$ref":"#/components/responses/Unauthorized"},"403":{"$ref":"#/components/responses/Forbidden"},"404":{"$ref":"#/components/responses/NotFound"},"429":{"$ref":"#/components/responses/TooManyRequests"},"500":{"$ref":"#/components/responses/ServerError"}},"security":[{"JWT":[]},{"ApiKey":[]}],"tags":["Competitors"],"summary":"Delete","x-api-key-scopes":["*"]}},"/v1/competitors/{id}/products":{"get":{"operationId":"competitors_getProducts","parameters":[{"name":"id","required":true,"in":"path","schema":{"type":"string"}}],"responses":{"200":{"description":"","content":{"application/json":{"schema":{"type":"array","items":{"type":"object"}}}}},"400":{"$ref":"#/components/responses/BadRequest"},"401":{"$ref":"#/components/responses/Unauthorized"},"403":{"$ref":"#/components/responses/Forbidden"},"404":{"$ref":"#/components/responses/NotFound"},"429":{"$ref":"#/components/responses/TooManyRequests"},"500":{"$ref":"#/components/responses/ServerError"}},"security":[{"JWT":[]},{"ApiKey":[]}],"tags":["Competitors"],"summary":"Get products","x-api-key-scopes":["*"]},"post":{"operationId":"competitors_addProduct","parameters":[{"name":"id","required":true,"in":"path","schema":{"type":"string"}},{"$ref":"#/components/parameters/IdempotencyKey"}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/CreateCompetitorProductDto"}}}},"responses":{"201":{"description":"","content":{"application/json":{"schema":{"type":"object"}}}},"400":{"$ref":"#/components/responses/BadRequest"},"401":{"$ref":"#/components/responses/Unauthorized"},"403":{"$ref":"#/components/responses/Forbidden"},"404":{"$ref":"#/components/responses/NotFound"},"409":{"$ref":"#/components/responses/Conflict"},"429":{"$ref":"#/components/responses/TooManyRequests"},"500":{"$ref":"#/components/responses/ServerError"}},"security":[{"JWT":[]},{"ApiKey":[]}],"tags":["Competitors"],"summary":"Add product","x-api-key-scopes":["*"]}},"/v1/competitors/{competitorId}/products/{productId}":{"patch":{"operationId":"competitors_updateProduct","parameters":[{"name":"competitorId","required":true,"in":"path","schema":{"type":"string"}},{"name":"productId","required":true,"in":"path","schema":{"type":"string"}},{"$ref":"#/components/parameters/IdempotencyKey"}],"responses":{"200":{"description":""},"400":{"$ref":"#/components/responses/BadRequest"},"401":{"$ref":"#/components/responses/Unauthorized"},"403":{"$ref":"#/components/responses/Forbidden"},"404":{"$ref":"#/components/responses/NotFound"},"409":{"$ref":"#/components/responses/Conflict"},"429":{"$ref":"#/components/responses/TooManyRequests"},"500":{"$ref":"#/components/responses/ServerError"}},"security":[{"JWT":[]},{"ApiKey":[]}],"tags":["Competitors"],"summary":"Update product","x-api-key-scopes":["*"]},"delete":{"operationId":"competitors_deleteProduct","parameters":[{"name":"competitorId","required":true,"in":"path","schema":{"type":"string"}},{"name":"productId","required":true,"in":"path","schema":{"type":"string"}}],"responses":{"200":{"description":""},"400":{"$ref":"#/components/responses/BadRequest"},"401":{"$ref":"#/components/responses/Unauthorized"},"403":{"$ref":"#/components/responses/Forbidden"},"404":{"$ref":"#/components/responses/NotFound"},"429":{"$ref":"#/components/responses/TooManyRequests"},"500":{"$ref":"#/components/responses/ServerError"}},"security":[{"JWT":[]},{"ApiKey":[]}],"tags":["Competitors"],"summary":"Delete product","x-api-key-scopes":["*"]}},"/v1/competitors/{id}/battlecards":{"get":{"operationId":"competitors_getBattlecards","parameters":[{"name":"id","required":true,"in":"path","schema":{"type":"string"}},{"name":"activeOnly","required":true,"in":"query","schema":{"type":"string"}}],"responses":{"200":{"description":""},"400":{"$ref":"#/components/responses/BadRequest"},"401":{"$ref":"#/components/responses/Unauthorized"},"403":{"$ref":"#/components/responses/Forbidden"},"404":{"$ref":"#/components/responses/NotFound"},"429":{"$ref":"#/components/responses/TooManyRequests"},"500":{"$ref":"#/components/responses/ServerError"}},"security":[{"JWT":[]},{"ApiKey":[]}],"tags":["Competitors"],"summary":"Get battlecards","x-api-key-scopes":["*"]},"post":{"operationId":"competitors_createBattlecard","parameters":[{"name":"id","required":true,"in":"path","schema":{"type":"string"}},{"$ref":"#/components/parameters/IdempotencyKey"}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/CreateBattlecardDto"}}}},"responses":{"201":{"description":""},"400":{"$ref":"#/components/responses/BadRequest"},"401":{"$ref":"#/components/responses/Unauthorized"},"403":{"$ref":"#/components/responses/Forbidden"},"404":{"$ref":"#/components/responses/NotFound"},"409":{"$ref":"#/components/responses/Conflict"},"429":{"$ref":"#/components/responses/TooManyRequests"},"500":{"$ref":"#/components/responses/ServerError"}},"security":[{"JWT":[]},{"ApiKey":[]}],"tags":["Competitors"],"summary":"Create battlecard","x-api-key-scopes":["*"]}},"/v1/battlecards/{id}":{"patch":{"operationId":"competitors_updateBattlecard","parameters":[{"name":"id","required":true,"in":"path","schema":{"type":"string"}},{"$ref":"#/components/parameters/IdempotencyKey"}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/UpdateBattlecardDto"}}}},"responses":{"200":{"description":""},"400":{"$ref":"#/components/responses/BadRequest"},"401":{"$ref":"#/components/responses/Unauthorized"},"403":{"$ref":"#/components/responses/Forbidden"},"404":{"$ref":"#/components/responses/NotFound"},"409":{"$ref":"#/components/responses/Conflict"},"429":{"$ref":"#/components/responses/TooManyRequests"},"500":{"$ref":"#/components/responses/ServerError"}},"security":[{"JWT":[]},{"ApiKey":[]}],"tags":["Competitors"],"summary":"Update battlecard","x-api-key-scopes":["*"]},"delete":{"operationId":"competitors_deleteBattlecard","parameters":[{"name":"id","required":true,"in":"path","schema":{"type":"string"}}],"responses":{"200":{"description":""},"400":{"$ref":"#/components/responses/BadRequest"},"401":{"$ref":"#/components/responses/Unauthorized"},"403":{"$ref":"#/components/responses/Forbidden"},"404":{"$ref":"#/components/responses/NotFound"},"429":{"$ref":"#/components/responses/TooManyRequests"},"500":{"$ref":"#/components/responses/ServerError"}},"security":[{"JWT":[]},{"ApiKey":[]}],"tags":["Competitors"],"summary":"Delete battlecard","x-api-key-scopes":["*"]}},"/v1/opportunities/{opportunityId}/competitors":{"get":{"operationId":"competitors_getOpportunityCompetitors","parameters":[{"name":"opportunityId","required":true,"in":"path","schema":{"type":"string"}}],"responses":{"200":{"description":"","content":{"application/json":{"schema":{"type":"array","items":{"type":"object"}}}}},"400":{"$ref":"#/components/responses/BadRequest"},"401":{"$ref":"#/components/responses/Unauthorized"},"403":{"$ref":"#/components/responses/Forbidden"},"404":{"$ref":"#/components/responses/NotFound"},"429":{"$ref":"#/components/responses/TooManyRequests"},"500":{"$ref":"#/components/responses/ServerError"}},"security":[{"JWT":[]},{"ApiKey":[]}],"tags":["Competitors"],"summary":"Get opportunity competitors","x-api-key-scopes":["READ_OPPORTUNITIES"]},"post":{"operationId":"competitors_linkCompetitor","parameters":[{"name":"opportunityId","required":true,"in":"path","schema":{"type":"string"}},{"$ref":"#/components/parameters/IdempotencyKey"}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/LinkOpportunityCompetitorDto"}}}},"responses":{"201":{"description":"","content":{"application/json":{"schema":{"type":"object"}}}},"400":{"$ref":"#/components/responses/BadRequest"},"401":{"$ref":"#/components/responses/Unauthorized"},"403":{"$ref":"#/components/responses/Forbidden"},"404":{"$ref":"#/components/responses/NotFound"},"409":{"$ref":"#/components/responses/Conflict"},"429":{"$ref":"#/components/responses/TooManyRequests"},"500":{"$ref":"#/components/responses/ServerError"}},"security":[{"JWT":[]},{"ApiKey":[]}],"tags":["Competitors"],"summary":"Link competitor","x-api-key-scopes":["WRITE_OPPORTUNITIES"]}},"/v1/opportunities/{opportunityId}/competitors/{competitorId}":{"patch":{"operationId":"competitors_updateOpportunityCompetitor","parameters":[{"name":"opportunityId","required":true,"in":"path","schema":{"type":"string"}},{"name":"competitorId","required":true,"in":"path","schema":{"type":"string"}},{"$ref":"#/components/parameters/IdempotencyKey"}],"responses":{"200":{"description":"","content":{"application/json":{"schema":{"type":"object"}}}},"400":{"$ref":"#/components/responses/BadRequest"},"401":{"$ref":"#/components/responses/Unauthorized"},"403":{"$ref":"#/components/responses/Forbidden"},"404":{"$ref":"#/components/responses/NotFound"},"409":{"$ref":"#/components/responses/Conflict"},"429":{"$ref":"#/components/responses/TooManyRequests"},"500":{"$ref":"#/components/responses/ServerError"}},"security":[{"JWT":[]},{"ApiKey":[]}],"tags":["Competitors"],"summary":"Update opportunity competitor","x-api-key-scopes":["WRITE_OPPORTUNITIES"]},"delete":{"operationId":"competitors_unlinkCompetitor","parameters":[{"name":"opportunityId","required":true,"in":"path","schema":{"type":"string"}},{"name":"competitorId","required":true,"in":"path","schema":{"type":"string"}}],"responses":{"200":{"description":""},"400":{"$ref":"#/components/responses/BadRequest"},"401":{"$ref":"#/components/responses/Unauthorized"},"403":{"$ref":"#/components/responses/Forbidden"},"404":{"$ref":"#/components/responses/NotFound"},"429":{"$ref":"#/components/responses/TooManyRequests"},"500":{"$ref":"#/components/responses/ServerError"}},"security":[{"JWT":[]},{"ApiKey":[]}],"tags":["Competitors"],"summary":"Unlink competitor","x-api-key-scopes":["WRITE_OPPORTUNITIES"]}},"/v1/opportunities/{opportunityId}/competitors/{competitorId}/mark-winner":{"post":{"operationId":"competitors_markCompetitorAsWinner","parameters":[{"name":"opportunityId","required":true,"in":"path","schema":{"type":"string"}},{"name":"competitorId","required":true,"in":"path","schema":{"type":"string"}},{"$ref":"#/components/parameters/IdempotencyKey"}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/MarkCompetitorAsWinnerBody"}}}},"responses":{"201":{"description":""},"400":{"$ref":"#/components/responses/BadRequest"},"401":{"$ref":"#/components/responses/Unauthorized"},"403":{"$ref":"#/components/responses/Forbidden"},"404":{"$ref":"#/components/responses/NotFound"},"409":{"$ref":"#/components/responses/Conflict"},"429":{"$ref":"#/components/responses/TooManyRequests"},"500":{"$ref":"#/components/responses/ServerError"}},"security":[{"JWT":[]},{"ApiKey":[]}],"tags":["Competitors"],"summary":"Mark competitor as winner","x-api-key-scopes":["WRITE_OPPORTUNITIES"]}},"/v1/competitors/analytics/win-loss":{"get":{"operationId":"competitors_getWinLossAnalytics","parameters":[{"name":"competitorId","required":true,"in":"query","schema":{"type":"string"}},{"name":"dateFrom","required":true,"in":"query","schema":{"type":"string"}},{"name":"dateTo","required":true,"in":"query","schema":{"type":"string"}}],"responses":{"200":{"description":""},"400":{"$ref":"#/components/responses/BadRequest"},"401":{"$ref":"#/components/responses/Unauthorized"},"403":{"$ref":"#/components/responses/Forbidden"},"429":{"$ref":"#/components/responses/TooManyRequests"},"500":{"$ref":"#/components/responses/ServerError"}},"security":[{"JWT":[]},{"ApiKey":[]}],"tags":["Competitors"],"summary":"Get win loss analytics","x-api-key-scopes":["*"]}},"/v1/competitors/{id}/ai/generate-battlecard":{"post":{"operationId":"competitors_generateBattlecard","parameters":[{"name":"id","required":true,"in":"path","schema":{"type":"string"}},{"$ref":"#/components/parameters/IdempotencyKey"}],"responses":{"201":{"description":"","content":{"application/json":{"schema":{"type":"object"}}}},"400":{"$ref":"#/components/responses/BadRequest"},"401":{"$ref":"#/components/responses/Unauthorized"},"403":{"$ref":"#/components/responses/Forbidden"},"404":{"$ref":"#/components/responses/NotFound"},"409":{"$ref":"#/components/responses/Conflict"},"429":{"$ref":"#/components/responses/TooManyRequests"},"500":{"$ref":"#/components/responses/ServerError"}},"security":[{"JWT":[]},{"ApiKey":[]}],"tags":["Competitors"],"summary":"Generate battlecard","x-api-key-scopes":["*"]}},"/v1/competitors/{id}/ai/win-loss-patterns":{"get":{"operationId":"competitors_analyzeWinLossPatterns","parameters":[{"name":"id","required":true,"in":"path","schema":{"type":"string"}},{"name":"regenerate","required":true,"in":"query","schema":{"type":"string"}}],"responses":{"200":{"description":""},"400":{"$ref":"#/components/responses/BadRequest"},"401":{"$ref":"#/components/responses/Unauthorized"},"403":{"$ref":"#/components/responses/Forbidden"},"404":{"$ref":"#/components/responses/NotFound"},"429":{"$ref":"#/components/responses/TooManyRequests"},"500":{"$ref":"#/components/responses/ServerError"}},"security":[{"JWT":[]},{"ApiKey":[]}],"tags":["Competitors"],"summary":"Analyze win loss patterns","x-api-key-scopes":["*"]}},"/v1/competitors/{id}/ai/objection-response":{"post":{"operationId":"competitors_generateObjectionResponse","parameters":[{"name":"id","required":true,"in":"path","schema":{"type":"string"}},{"$ref":"#/components/parameters/IdempotencyKey"}],"responses":{"201":{"description":""},"400":{"$ref":"#/components/responses/BadRequest"},"401":{"$ref":"#/components/responses/Unauthorized"},"403":{"$ref":"#/components/responses/Forbidden"},"404":{"$ref":"#/components/responses/NotFound"},"409":{"$ref":"#/components/responses/Conflict"},"429":{"$ref":"#/components/responses/TooManyRequests"},"500":{"$ref":"#/components/responses/ServerError"}},"security":[{"JWT":[]},{"ApiKey":[]}],"tags":["Competitors"],"summary":"Generate objection response","x-api-key-scopes":["*"]}},"/v1/opportunities/{opportunityId}/ai/competitive-positioning":{"get":{"operationId":"competitors_getPositioningRecommendations","parameters":[{"name":"opportunityId","required":true,"in":"path","schema":{"type":"string"}}],"responses":{"200":{"description":"","content":{"application/json":{"schema":{"type":"array","items":{"type":"object"}}}}},"400":{"$ref":"#/components/responses/BadRequest"},"401":{"$ref":"#/components/responses/Unauthorized"},"403":{"$ref":"#/components/responses/Forbidden"},"404":{"$ref":"#/components/responses/NotFound"},"429":{"$ref":"#/components/responses/TooManyRequests"},"500":{"$ref":"#/components/responses/ServerError"}},"security":[{"JWT":[]},{"ApiKey":[]}],"tags":["Competitors"],"summary":"Get positioning recommendations","x-api-key-scopes":["READ_OPPORTUNITIES"]}},"/v1/competitors/ai/analyze-call":{"post":{"operationId":"competitors_analyzeCompetitiveCall","parameters":[{"$ref":"#/components/parameters/IdempotencyKey"}],"responses":{"201":{"description":""},"400":{"$ref":"#/components/responses/BadRequest"},"401":{"$ref":"#/components/responses/Unauthorized"},"403":{"$ref":"#/components/responses/Forbidden"},"409":{"$ref":"#/components/responses/Conflict"},"429":{"$ref":"#/components/responses/TooManyRequests"},"500":{"$ref":"#/components/responses/ServerError"}},"security":[{"JWT":[]},{"ApiKey":[]}],"tags":["Competitors"],"summary":"Analyze competitive call","x-api-key-scopes":["*"]}},"/v1/partners":{"get":{"operationId":"partners_findAll","parameters":[{"name":"status","required":true,"in":"query","schema":{"type":"string"}},{"name":"tier","required":true,"in":"query","schema":{"type":"string"}},{"name":"type","required":true,"in":"query","schema":{"type":"string"}},{"name":"search","required":true,"in":"query","schema":{"type":"string"}}],"responses":{"200":{"description":"","content":{"application/json":{"schema":{"type":"array","items":{"type":"object"}}}}},"400":{"$ref":"#/components/responses/BadRequest"},"401":{"$ref":"#/components/responses/Unauthorized"},"403":{"$ref":"#/components/responses/Forbidden"},"429":{"$ref":"#/components/responses/TooManyRequests"},"500":{"$ref":"#/components/responses/ServerError"}},"security":[{"JWT":[]},{"ApiKey":[]}],"tags":["Partners"],"summary":"List","x-api-key-scopes":["*"]},"post":{"operationId":"partners_create","parameters":[{"$ref":"#/components/parameters/IdempotencyKey"}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/CreatePartnerDto"}}}},"responses":{"201":{"description":"","content":{"application/json":{"schema":{"type":"object"}}}},"400":{"$ref":"#/components/responses/BadRequest"},"401":{"$ref":"#/components/responses/Unauthorized"},"403":{"$ref":"#/components/responses/Forbidden"},"409":{"$ref":"#/components/responses/Conflict"},"429":{"$ref":"#/components/responses/TooManyRequests"},"500":{"$ref":"#/components/responses/ServerError"}},"security":[{"JWT":[]},{"ApiKey":[]}],"tags":["Partners"],"summary":"Create","x-api-key-scopes":["*"]}},"/v1/partners/stats":{"get":{"operationId":"partners_getStats","parameters":[],"responses":{"200":{"description":""},"401":{"$ref":"#/components/responses/Unauthorized"},"403":{"$ref":"#/components/responses/Forbidden"},"429":{"$ref":"#/components/responses/TooManyRequests"},"500":{"$ref":"#/components/responses/ServerError"}},"security":[{"JWT":[]},{"ApiKey":[]}],"tags":["Partners"],"summary":"Get stats","x-api-key-scopes":["*"]}},"/v1/partners/{id}":{"get":{"operationId":"partners_findOne","parameters":[{"name":"id","required":true,"in":"path","schema":{"type":"string"}}],"responses":{"200":{"description":"","content":{"application/json":{"schema":{"type":"object"}}}},"400":{"$ref":"#/components/responses/BadRequest"},"401":{"$ref":"#/components/responses/Unauthorized"},"403":{"$ref":"#/components/responses/Forbidden"},"404":{"$ref":"#/components/responses/NotFound"},"429":{"$ref":"#/components/responses/TooManyRequests"},"500":{"$ref":"#/components/responses/ServerError"}},"security":[{"JWT":[]},{"ApiKey":[]}],"tags":["Partners"],"summary":"Find one","x-api-key-scopes":["*"]},"patch":{"operationId":"partners_update","parameters":[{"name":"id","required":true,"in":"path","schema":{"type":"string"}},{"$ref":"#/components/parameters/IdempotencyKey"}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/UpdatePartnerDto"}}}},"responses":{"200":{"description":"","content":{"application/json":{"schema":{"type":"object"}}}},"400":{"$ref":"#/components/responses/BadRequest"},"401":{"$ref":"#/components/responses/Unauthorized"},"403":{"$ref":"#/components/responses/Forbidden"},"404":{"$ref":"#/components/responses/NotFound"},"409":{"$ref":"#/components/responses/Conflict"},"429":{"$ref":"#/components/responses/TooManyRequests"},"500":{"$ref":"#/components/responses/ServerError"}},"security":[{"JWT":[]},{"ApiKey":[]}],"tags":["Partners"],"summary":"Update","x-api-key-scopes":["*"]},"delete":{"operationId":"partners_delete","parameters":[{"name":"id","required":true,"in":"path","schema":{"type":"string"}}],"responses":{"200":{"description":""},"400":{"$ref":"#/components/responses/BadRequest"},"401":{"$ref":"#/components/responses/Unauthorized"},"403":{"$ref":"#/components/responses/Forbidden"},"404":{"$ref":"#/components/responses/NotFound"},"429":{"$ref":"#/components/responses/TooManyRequests"},"500":{"$ref":"#/components/responses/ServerError"}},"security":[{"JWT":[]},{"ApiKey":[]}],"tags":["Partners"],"summary":"Delete","x-api-key-scopes":["*"]}},"/v1/partners/{id}/users":{"get":{"operationId":"partners_getPartnerUsers","parameters":[{"name":"id","required":true,"in":"path","schema":{"type":"string"}}],"responses":{"200":{"description":"","content":{"application/json":{"schema":{"type":"array","items":{"type":"object"}}}}},"400":{"$ref":"#/components/responses/BadRequest"},"401":{"$ref":"#/components/responses/Unauthorized"},"403":{"$ref":"#/components/responses/Forbidden"},"404":{"$ref":"#/components/responses/NotFound"},"429":{"$ref":"#/components/responses/TooManyRequests"},"500":{"$ref":"#/components/responses/ServerError"}},"security":[{"JWT":[]},{"ApiKey":[]}],"tags":["Partners"],"summary":"Get partner users","x-api-key-scopes":["*"]},"post":{"operationId":"partners_addPartnerUser","parameters":[{"name":"id","required":true,"in":"path","schema":{"type":"string"}},{"$ref":"#/components/parameters/IdempotencyKey"}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/AddPartnerUserDto"}}}},"responses":{"201":{"description":"","content":{"application/json":{"schema":{"type":"object"}}}},"400":{"$ref":"#/components/responses/BadRequest"},"401":{"$ref":"#/components/responses/Unauthorized"},"403":{"$ref":"#/components/responses/Forbidden"},"404":{"$ref":"#/components/responses/NotFound"},"409":{"$ref":"#/components/responses/Conflict"},"429":{"$ref":"#/components/responses/TooManyRequests"},"500":{"$ref":"#/components/responses/ServerError"}},"security":[{"JWT":[]},{"ApiKey":[]}],"tags":["Partners"],"summary":"Add partner user","x-api-key-scopes":["*"]}},"/v1/partners/{id}/users/invite":{"post":{"operationId":"partners_invitePartnerUser","parameters":[{"name":"id","required":true,"in":"path","schema":{"type":"string"}},{"$ref":"#/components/parameters/IdempotencyKey"}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/InvitePartnerUserDto"}}}},"responses":{"201":{"description":""},"400":{"$ref":"#/components/responses/BadRequest"},"401":{"$ref":"#/components/responses/Unauthorized"},"403":{"$ref":"#/components/responses/Forbidden"},"404":{"$ref":"#/components/responses/NotFound"},"409":{"$ref":"#/components/responses/Conflict"},"429":{"$ref":"#/components/responses/TooManyRequests"},"500":{"$ref":"#/components/responses/ServerError"}},"security":[{"JWT":[]},{"ApiKey":[]}],"tags":["Partners"],"summary":"Invite partner user","x-api-key-scopes":["*"]}},"/v1/partners/{partnerId}/users/{partnerUserId}":{"patch":{"operationId":"partners_updatePartnerUser","parameters":[{"name":"partnerId","required":true,"in":"path","schema":{"type":"string"}},{"name":"partnerUserId","required":true,"in":"path","schema":{"type":"string"}},{"$ref":"#/components/parameters/IdempotencyKey"}],"responses":{"200":{"description":"","content":{"application/json":{"schema":{"type":"object"}}}},"400":{"$ref":"#/components/responses/BadRequest"},"401":{"$ref":"#/components/responses/Unauthorized"},"403":{"$ref":"#/components/responses/Forbidden"},"404":{"$ref":"#/components/responses/NotFound"},"409":{"$ref":"#/components/responses/Conflict"},"429":{"$ref":"#/components/responses/TooManyRequests"},"500":{"$ref":"#/components/responses/ServerError"}},"security":[{"JWT":[]},{"ApiKey":[]}],"tags":["Partners"],"summary":"Update partner user","x-api-key-scopes":["*"]},"delete":{"operationId":"partners_removePartnerUser","parameters":[{"name":"partnerId","required":true,"in":"path","schema":{"type":"string"}},{"name":"partnerUserId","required":true,"in":"path","schema":{"type":"string"}}],"responses":{"200":{"description":""},"400":{"$ref":"#/components/responses/BadRequest"},"401":{"$ref":"#/components/responses/Unauthorized"},"403":{"$ref":"#/components/responses/Forbidden"},"404":{"$ref":"#/components/responses/NotFound"},"429":{"$ref":"#/components/responses/TooManyRequests"},"500":{"$ref":"#/components/responses/ServerError"}},"security":[{"JWT":[]},{"ApiKey":[]}],"tags":["Partners"],"summary":"Remove partner user","x-api-key-scopes":["*"]}},"/v1/partners/{id}/accounts":{"get":{"operationId":"partners_getPartnerAccounts","parameters":[{"name":"id","required":true,"in":"path","schema":{"type":"string"}}],"responses":{"200":{"description":"","content":{"application/json":{"schema":{"type":"array","items":{"type":"object"}}}}},"400":{"$ref":"#/components/responses/BadRequest"},"401":{"$ref":"#/components/responses/Unauthorized"},"403":{"$ref":"#/components/responses/Forbidden"},"404":{"$ref":"#/components/responses/NotFound"},"429":{"$ref":"#/components/responses/TooManyRequests"},"500":{"$ref":"#/components/responses/ServerError"}},"security":[{"JWT":[]},{"ApiKey":[]}],"tags":["Partners"],"summary":"Get partner accounts","x-api-key-scopes":["*"]},"post":{"operationId":"partners_assignAccount","parameters":[{"name":"id","required":true,"in":"path","schema":{"type":"string"}},{"$ref":"#/components/parameters/IdempotencyKey"}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/AssignAccountDto"}}}},"responses":{"201":{"description":"","content":{"application/json":{"schema":{"type":"object"}}}},"400":{"$ref":"#/components/responses/BadRequest"},"401":{"$ref":"#/components/responses/Unauthorized"},"403":{"$ref":"#/components/responses/Forbidden"},"404":{"$ref":"#/components/responses/NotFound"},"409":{"$ref":"#/components/responses/Conflict"},"429":{"$ref":"#/components/responses/TooManyRequests"},"500":{"$ref":"#/components/responses/ServerError"}},"security":[{"JWT":[]},{"ApiKey":[]}],"tags":["Partners"],"summary":"Assign account","x-api-key-scopes":["*"]}},"/v1/partners/{partnerId}/accounts/{accountId}":{"delete":{"operationId":"partners_unassignAccount","parameters":[{"name":"partnerId","required":true,"in":"path","schema":{"type":"string"}},{"name":"accountId","required":true,"in":"path","schema":{"type":"string"}}],"responses":{"200":{"description":""},"400":{"$ref":"#/components/responses/BadRequest"},"401":{"$ref":"#/components/responses/Unauthorized"},"403":{"$ref":"#/components/responses/Forbidden"},"404":{"$ref":"#/components/responses/NotFound"},"429":{"$ref":"#/components/responses/TooManyRequests"},"500":{"$ref":"#/components/responses/ServerError"}},"security":[{"JWT":[]},{"ApiKey":[]}],"tags":["Partners"],"summary":"Unassign account","x-api-key-scopes":["*"]}},"/v1/partners/{id}/registrations":{"get":{"operationId":"partners_getPartnerRegistrations","parameters":[{"name":"id","required":true,"in":"path","schema":{"type":"string"}},{"name":"status","required":true,"in":"query","schema":{"type":"string"}}],"responses":{"200":{"description":"","content":{"application/json":{"schema":{"type":"array","items":{"type":"object"}}}}},"400":{"$ref":"#/components/responses/BadRequest"},"401":{"$ref":"#/components/responses/Unauthorized"},"403":{"$ref":"#/components/responses/Forbidden"},"404":{"$ref":"#/components/responses/NotFound"},"429":{"$ref":"#/components/responses/TooManyRequests"},"500":{"$ref":"#/components/responses/ServerError"}},"security":[{"JWT":[]},{"ApiKey":[]}],"tags":["Partners"],"summary":"Get partner registrations","x-api-key-scopes":["*"]}},"/v1/partners/{partnerId}/registrations/{registrationId}/approve":{"post":{"operationId":"partners_approveRegistration","parameters":[{"name":"partnerId","required":true,"in":"path","schema":{"type":"string"}},{"name":"registrationId","required":true,"in":"path","schema":{"type":"string"}},{"$ref":"#/components/parameters/IdempotencyKey"}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ApproveRegistrationBody"}}}},"responses":{"201":{"description":"","content":{"application/json":{"schema":{"type":"object"}}}},"400":{"$ref":"#/components/responses/BadRequest"},"401":{"$ref":"#/components/responses/Unauthorized"},"403":{"$ref":"#/components/responses/Forbidden"},"404":{"$ref":"#/components/responses/NotFound"},"409":{"$ref":"#/components/responses/Conflict"},"429":{"$ref":"#/components/responses/TooManyRequests"},"500":{"$ref":"#/components/responses/ServerError"}},"security":[{"JWT":[]},{"ApiKey":[]}],"tags":["Partners"],"summary":"Approve registration","x-api-key-scopes":["*"]}},"/v1/partners/{partnerId}/registrations/{registrationId}/reject":{"post":{"operationId":"partners_rejectRegistration","parameters":[{"name":"partnerId","required":true,"in":"path","schema":{"type":"string"}},{"name":"registrationId","required":true,"in":"path","schema":{"type":"string"}},{"$ref":"#/components/parameters/IdempotencyKey"}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/RejectRegistrationBody"}}}},"responses":{"201":{"description":""},"400":{"$ref":"#/components/responses/BadRequest"},"401":{"$ref":"#/components/responses/Unauthorized"},"403":{"$ref":"#/components/responses/Forbidden"},"404":{"$ref":"#/components/responses/NotFound"},"409":{"$ref":"#/components/responses/Conflict"},"429":{"$ref":"#/components/responses/TooManyRequests"},"500":{"$ref":"#/components/responses/ServerError"}},"security":[{"JWT":[]},{"ApiKey":[]}],"tags":["Partners"],"summary":"Reject registration","x-api-key-scopes":["*"]}},"/v1/partners/{partnerId}/registrations/{registrationId}/convert":{"post":{"operationId":"partners_convertRegistration","parameters":[{"name":"partnerId","required":true,"in":"path","schema":{"type":"string"}},{"name":"registrationId","required":true,"in":"path","schema":{"type":"string"}},{"$ref":"#/components/parameters/IdempotencyKey"}],"responses":{"201":{"description":"","content":{"application/json":{"schema":{"type":"object"}}}},"400":{"$ref":"#/components/responses/BadRequest"},"401":{"$ref":"#/components/responses/Unauthorized"},"403":{"$ref":"#/components/responses/Forbidden"},"404":{"$ref":"#/components/responses/NotFound"},"409":{"$ref":"#/components/responses/Conflict"},"429":{"$ref":"#/components/responses/TooManyRequests"},"500":{"$ref":"#/components/responses/ServerError"}},"security":[{"JWT":[]},{"ApiKey":[]}],"tags":["Partners"],"summary":"Convert registration","x-api-key-scopes":["*"]}},"/v1/partners/{partnerId}/registrations/{registrationId}/ai/score":{"get":{"operationId":"partners_scoreRegistration","parameters":[{"name":"registrationId","required":true,"in":"path","schema":{"type":"string"}}],"responses":{"200":{"description":"","content":{"application/json":{"schema":{"type":"object"}}}},"400":{"$ref":"#/components/responses/BadRequest"},"401":{"$ref":"#/components/responses/Unauthorized"},"403":{"$ref":"#/components/responses/Forbidden"},"404":{"$ref":"#/components/responses/NotFound"},"429":{"$ref":"#/components/responses/TooManyRequests"},"500":{"$ref":"#/components/responses/ServerError"}},"security":[{"JWT":[]},{"ApiKey":[]}],"tags":["Partners"],"summary":"Score registration","x-api-key-scopes":["*"]}},"/v1/partners/ai/match-partners/{opportunityId}":{"get":{"operationId":"partners_matchPartners","parameters":[{"name":"opportunityId","required":true,"in":"path","schema":{"type":"string"}},{"name":"limit","required":true,"in":"query","schema":{"type":"string"}}],"responses":{"200":{"description":"","content":{"application/json":{"schema":{"type":"array","items":{"type":"object"}}}}},"400":{"$ref":"#/components/responses/BadRequest"},"401":{"$ref":"#/components/responses/Unauthorized"},"403":{"$ref":"#/components/responses/Forbidden"},"404":{"$ref":"#/components/responses/NotFound"},"429":{"$ref":"#/components/responses/TooManyRequests"},"500":{"$ref":"#/components/responses/ServerError"}},"security":[{"JWT":[]},{"ApiKey":[]}],"tags":["Partners"],"summary":"Match partners","x-api-key-scopes":["*"]}},"/v1/partners/{id}/ai/insights":{"get":{"operationId":"partners_getPartnerInsights","parameters":[{"name":"id","required":true,"in":"path","schema":{"type":"string"}}],"responses":{"200":{"description":"","content":{"application/json":{"schema":{"type":"array","items":{"type":"object"}}}}},"400":{"$ref":"#/components/responses/BadRequest"},"401":{"$ref":"#/components/responses/Unauthorized"},"403":{"$ref":"#/components/responses/Forbidden"},"404":{"$ref":"#/components/responses/NotFound"},"429":{"$ref":"#/components/responses/TooManyRequests"},"500":{"$ref":"#/components/responses/ServerError"}},"security":[{"JWT":[]},{"ApiKey":[]}],"tags":["Partners"],"summary":"Get partner insights","x-api-key-scopes":["*"]}},"/v1/partners/ai/co-selling":{"get":{"operationId":"partners_getCoSellingRecommendations","parameters":[{"name":"minDealSize","required":true,"in":"query","schema":{"type":"string"}},{"name":"limit","required":true,"in":"query","schema":{"type":"string"}}],"responses":{"200":{"description":"","content":{"application/json":{"schema":{"type":"array","items":{"type":"object"}}}}},"400":{"$ref":"#/components/responses/BadRequest"},"401":{"$ref":"#/components/responses/Unauthorized"},"403":{"$ref":"#/components/responses/Forbidden"},"429":{"$ref":"#/components/responses/TooManyRequests"},"500":{"$ref":"#/components/responses/ServerError"}},"security":[{"JWT":[]},{"ApiKey":[]}],"tags":["Partners"],"summary":"Get co selling recommendations","x-api-key-scopes":["*"]}},"/v1/partners/ai/auto-approve":{"post":{"operationId":"partners_processAutoApprovals","parameters":[{"$ref":"#/components/parameters/IdempotencyKey"}],"responses":{"201":{"description":""},"400":{"$ref":"#/components/responses/BadRequest"},"401":{"$ref":"#/components/responses/Unauthorized"},"403":{"$ref":"#/components/responses/Forbidden"},"409":{"$ref":"#/components/responses/Conflict"},"429":{"$ref":"#/components/responses/TooManyRequests"},"500":{"$ref":"#/components/responses/ServerError"}},"security":[{"JWT":[]},{"ApiKey":[]}],"tags":["Partners"],"summary":"Process auto approvals","x-api-key-scopes":["*"]}},"/v1/gamification/dashboard":{"get":{"operationId":"gamification_getDashboard","parameters":[{"name":"period","required":false,"in":"query","schema":{"type":"string"}}],"responses":{"200":{"description":"","content":{"application/json":{"schema":{"type":"object"}}}},"400":{"$ref":"#/components/responses/BadRequest"},"401":{"$ref":"#/components/responses/Unauthorized"},"403":{"$ref":"#/components/responses/Forbidden"},"429":{"$ref":"#/components/responses/TooManyRequests"},"500":{"$ref":"#/components/responses/ServerError"}},"security":[{"JWT":[]},{"ApiKey":[]}],"summary":"Full gamification dashboard: leaderboard + badges + challenges + personal stats","tags":["Gamification"],"x-api-key-scopes":["*"]}},"/v1/gamification/leaderboard":{"get":{"operationId":"gamification_getLeaderboard","parameters":[{"name":"period","required":false,"in":"query","schema":{"type":"string"}}],"responses":{"200":{"description":"","content":{"application/json":{"schema":{"type":"object"}}}},"400":{"$ref":"#/components/responses/BadRequest"},"401":{"$ref":"#/components/responses/Unauthorized"},"403":{"$ref":"#/components/responses/Forbidden"},"429":{"$ref":"#/components/responses/TooManyRequests"},"500":{"$ref":"#/components/responses/ServerError"}},"security":[{"JWT":[]},{"ApiKey":[]}],"summary":"Leaderboard entries for the given period","tags":["Gamification"],"x-api-key-scopes":["*"]}},"/v1/gamification/me/stats":{"get":{"operationId":"gamification_getPersonalStats","parameters":[{"name":"period","required":false,"in":"query","schema":{"type":"string"}}],"responses":{"200":{"description":"","content":{"application/json":{"schema":{"type":"object"}}}},"400":{"$ref":"#/components/responses/BadRequest"},"401":{"$ref":"#/components/responses/Unauthorized"},"403":{"$ref":"#/components/responses/Forbidden"},"429":{"$ref":"#/components/responses/TooManyRequests"},"500":{"$ref":"#/components/responses/ServerError"}},"security":[{"JWT":[]},{"ApiKey":[]}],"summary":"Personal stats for the authenticated user","tags":["Gamification"],"x-api-key-scopes":["*"]}},"/v1/gamification/badges":{"get":{"operationId":"gamification_getBadges","parameters":[],"responses":{"200":{"description":"","content":{"application/json":{"schema":{"type":"array","items":{"type":"object"}}}}},"401":{"$ref":"#/components/responses/Unauthorized"},"403":{"$ref":"#/components/responses/Forbidden"},"429":{"$ref":"#/components/responses/TooManyRequests"},"500":{"$ref":"#/components/responses/ServerError"}},"security":[{"JWT":[]},{"ApiKey":[]}],"summary":"All achievement badges with earned status for the current user","tags":["Gamification"],"x-api-key-scopes":["*"]}},"/v1/gamification/me/points":{"get":{"operationId":"gamification_getPointsBreakdown","parameters":[{"name":"period","required":false,"in":"query","schema":{"type":"string"}}],"responses":{"200":{"description":"","content":{"application/json":{"schema":{"type":"array","items":{"type":"object"}}}}},"400":{"$ref":"#/components/responses/BadRequest"},"401":{"$ref":"#/components/responses/Unauthorized"},"403":{"$ref":"#/components/responses/Forbidden"},"429":{"$ref":"#/components/responses/TooManyRequests"},"500":{"$ref":"#/components/responses/ServerError"}},"security":[{"JWT":[]},{"ApiKey":[]}],"summary":"Points breakdown for the authenticated user","tags":["Gamification"],"x-api-key-scopes":["*"]}},"/v1/gamification/challenges":{"get":{"operationId":"gamification_getChallenges","parameters":[],"responses":{"200":{"description":"","content":{"application/json":{"schema":{"type":"array","items":{"type":"object"}}}}},"401":{"$ref":"#/components/responses/Unauthorized"},"403":{"$ref":"#/components/responses/Forbidden"},"429":{"$ref":"#/components/responses/TooManyRequests"},"500":{"$ref":"#/components/responses/ServerError"}},"security":[{"JWT":[]},{"ApiKey":[]}],"summary":"Active team challenges","tags":["Gamification"],"x-api-key-scopes":["*"]}},"/v1/gamification/challenges/{id}/join":{"post":{"operationId":"gamification_joinChallenge","parameters":[{"name":"id","required":true,"in":"path","schema":{"type":"string"}},{"$ref":"#/components/parameters/IdempotencyKey"}],"responses":{"200":{"description":""},"400":{"$ref":"#/components/responses/BadRequest"},"401":{"$ref":"#/components/responses/Unauthorized"},"403":{"$ref":"#/components/responses/Forbidden"},"404":{"$ref":"#/components/responses/NotFound"},"409":{"$ref":"#/components/responses/Conflict"},"429":{"$ref":"#/components/responses/TooManyRequests"},"500":{"$ref":"#/components/responses/ServerError"}},"security":[{"JWT":[]},{"ApiKey":[]}],"summary":"Join a team challenge","tags":["Gamification"],"x-api-key-scopes":["*"]}},"/v1/deal-rooms/public/{shareId}":{"get":{"operationId":"dealRooms_getPublicRoom","parameters":[{"name":"shareId","required":true,"in":"path","schema":{"type":"string"}},{"name":"accessCode","required":false,"in":"query","schema":{"type":"string"}}],"responses":{"200":{"description":""},"400":{"$ref":"#/components/responses/BadRequest"},"404":{"$ref":"#/components/responses/NotFound"},"429":{"$ref":"#/components/responses/TooManyRequests"},"500":{"$ref":"#/components/responses/ServerError"}},"security":[],"tags":["Deal Rooms"],"summary":"Get public room"}},"/v1/deal-rooms":{"post":{"operationId":"dealRooms_create","parameters":[{"$ref":"#/components/parameters/IdempotencyKey"}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/CreateDealRoomDto"}}}},"responses":{"201":{"description":"","content":{"application/json":{"schema":{"type":"object"}}}},"400":{"$ref":"#/components/responses/BadRequest"},"401":{"$ref":"#/components/responses/Unauthorized"},"403":{"$ref":"#/components/responses/Forbidden"},"409":{"$ref":"#/components/responses/Conflict"},"429":{"$ref":"#/components/responses/TooManyRequests"},"500":{"$ref":"#/components/responses/ServerError"}},"security":[{"JWT":[]},{"ApiKey":[]}],"tags":["Deal Rooms"],"summary":"Create","x-api-key-scopes":["*"]},"get":{"operationId":"dealRooms_findAll","parameters":[],"responses":{"200":{"description":"","content":{"application/json":{"schema":{"type":"array","items":{"type":"object"}}}}},"401":{"$ref":"#/components/responses/Unauthorized"},"403":{"$ref":"#/components/responses/Forbidden"},"429":{"$ref":"#/components/responses/TooManyRequests"},"500":{"$ref":"#/components/responses/ServerError"}},"security":[{"JWT":[]},{"ApiKey":[]}],"tags":["Deal Rooms"],"summary":"List","x-api-key-scopes":["*"]}},"/v1/deal-rooms/opportunity/{opportunityId}":{"get":{"operationId":"dealRooms_findByOpportunity","parameters":[{"name":"opportunityId","required":true,"in":"path","schema":{"type":"string"}}],"responses":{"200":{"description":""},"400":{"$ref":"#/components/responses/BadRequest"},"401":{"$ref":"#/components/responses/Unauthorized"},"403":{"$ref":"#/components/responses/Forbidden"},"404":{"$ref":"#/components/responses/NotFound"},"429":{"$ref":"#/components/responses/TooManyRequests"},"500":{"$ref":"#/components/responses/ServerError"}},"security":[{"JWT":[]},{"ApiKey":[]}],"tags":["Deal Rooms"],"summary":"Find by opportunity","x-api-key-scopes":["*"]}},"/v1/deal-rooms/{id}":{"get":{"operationId":"dealRooms_findOne","parameters":[{"name":"id","required":true,"in":"path","schema":{"type":"string"}}],"responses":{"200":{"description":""},"400":{"$ref":"#/components/responses/BadRequest"},"401":{"$ref":"#/components/responses/Unauthorized"},"403":{"$ref":"#/components/responses/Forbidden"},"404":{"$ref":"#/components/responses/NotFound"},"429":{"$ref":"#/components/responses/TooManyRequests"},"500":{"$ref":"#/components/responses/ServerError"}},"security":[{"JWT":[]},{"ApiKey":[]}],"tags":["Deal Rooms"],"summary":"Find one","x-api-key-scopes":["*"]},"patch":{"operationId":"dealRooms_update","parameters":[{"name":"id","required":true,"in":"path","schema":{"type":"string"}},{"$ref":"#/components/parameters/IdempotencyKey"}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/UpdateDealRoomDto"}}}},"responses":{"200":{"description":"","content":{"application/json":{"schema":{"type":"object"}}}},"400":{"$ref":"#/components/responses/BadRequest"},"401":{"$ref":"#/components/responses/Unauthorized"},"403":{"$ref":"#/components/responses/Forbidden"},"404":{"$ref":"#/components/responses/NotFound"},"409":{"$ref":"#/components/responses/Conflict"},"429":{"$ref":"#/components/responses/TooManyRequests"},"500":{"$ref":"#/components/responses/ServerError"}},"security":[{"JWT":[]},{"ApiKey":[]}],"tags":["Deal Rooms"],"summary":"Update","x-api-key-scopes":["*"]},"delete":{"operationId":"dealRooms_remove","parameters":[{"name":"id","required":true,"in":"path","schema":{"type":"string"}}],"responses":{"200":{"description":""},"400":{"$ref":"#/components/responses/BadRequest"},"401":{"$ref":"#/components/responses/Unauthorized"},"403":{"$ref":"#/components/responses/Forbidden"},"404":{"$ref":"#/components/responses/NotFound"},"429":{"$ref":"#/components/responses/TooManyRequests"},"500":{"$ref":"#/components/responses/ServerError"}},"security":[{"JWT":[]},{"ApiKey":[]}],"tags":["Deal Rooms"],"summary":"Remove","x-api-key-scopes":["*"]}},"/v1/deal-rooms/{id}/action-items":{"post":{"operationId":"dealRooms_addActionItem","parameters":[{"name":"id","required":true,"in":"path","schema":{"type":"string"}},{"$ref":"#/components/parameters/IdempotencyKey"}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/CreateActionItemDto"}}}},"responses":{"201":{"description":""},"400":{"$ref":"#/components/responses/BadRequest"},"401":{"$ref":"#/components/responses/Unauthorized"},"403":{"$ref":"#/components/responses/Forbidden"},"404":{"$ref":"#/components/responses/NotFound"},"409":{"$ref":"#/components/responses/Conflict"},"429":{"$ref":"#/components/responses/TooManyRequests"},"500":{"$ref":"#/components/responses/ServerError"}},"security":[{"JWT":[]},{"ApiKey":[]}],"tags":["Deal Rooms"],"summary":"Add action item","x-api-key-scopes":["*"]}},"/v1/deal-rooms/{id}/action-items/{itemId}":{"patch":{"operationId":"dealRooms_updateActionItem","parameters":[{"name":"id","required":true,"in":"path","schema":{"type":"string"}},{"name":"itemId","required":true,"in":"path","schema":{"type":"string"}},{"$ref":"#/components/parameters/IdempotencyKey"}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/UpdateActionItemDto"}}}},"responses":{"200":{"description":""},"400":{"$ref":"#/components/responses/BadRequest"},"401":{"$ref":"#/components/responses/Unauthorized"},"403":{"$ref":"#/components/responses/Forbidden"},"404":{"$ref":"#/components/responses/NotFound"},"409":{"$ref":"#/components/responses/Conflict"},"429":{"$ref":"#/components/responses/TooManyRequests"},"500":{"$ref":"#/components/responses/ServerError"}},"security":[{"JWT":[]},{"ApiKey":[]}],"tags":["Deal Rooms"],"summary":"Update action item","x-api-key-scopes":["*"]},"delete":{"operationId":"dealRooms_deleteActionItem","parameters":[{"name":"id","required":true,"in":"path","schema":{"type":"string"}},{"name":"itemId","required":true,"in":"path","schema":{"type":"string"}}],"responses":{"200":{"description":""},"400":{"$ref":"#/components/responses/BadRequest"},"401":{"$ref":"#/components/responses/Unauthorized"},"403":{"$ref":"#/components/responses/Forbidden"},"404":{"$ref":"#/components/responses/NotFound"},"429":{"$ref":"#/components/responses/TooManyRequests"},"500":{"$ref":"#/components/responses/ServerError"}},"security":[{"JWT":[]},{"ApiKey":[]}],"tags":["Deal Rooms"],"summary":"Delete action item","x-api-key-scopes":["*"]}},"/v1/deal-rooms/{id}/documents":{"post":{"operationId":"dealRooms_addDocument","parameters":[{"name":"id","required":true,"in":"path","schema":{"type":"string"}},{"$ref":"#/components/parameters/IdempotencyKey"}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/AddDocumentDto"}}}},"responses":{"201":{"description":""},"400":{"$ref":"#/components/responses/BadRequest"},"401":{"$ref":"#/components/responses/Unauthorized"},"403":{"$ref":"#/components/responses/Forbidden"},"404":{"$ref":"#/components/responses/NotFound"},"409":{"$ref":"#/components/responses/Conflict"},"429":{"$ref":"#/components/responses/TooManyRequests"},"500":{"$ref":"#/components/responses/ServerError"}},"security":[{"JWT":[]},{"ApiKey":[]}],"tags":["Deal Rooms"],"summary":"Add document","x-api-key-scopes":["*"]}},"/v1/deal-rooms/{id}/documents/{docId}":{"delete":{"operationId":"dealRooms_deleteDocument","parameters":[{"name":"id","required":true,"in":"path","schema":{"type":"string"}},{"name":"docId","required":true,"in":"path","schema":{"type":"string"}}],"responses":{"200":{"description":""},"400":{"$ref":"#/components/responses/BadRequest"},"401":{"$ref":"#/components/responses/Unauthorized"},"403":{"$ref":"#/components/responses/Forbidden"},"404":{"$ref":"#/components/responses/NotFound"},"429":{"$ref":"#/components/responses/TooManyRequests"},"500":{"$ref":"#/components/responses/ServerError"}},"security":[{"JWT":[]},{"ApiKey":[]}],"tags":["Deal Rooms"],"summary":"Delete document","x-api-key-scopes":["*"]}},"/v1/deal-rooms/{id}/documents/{docId}/view":{"post":{"operationId":"dealRooms_trackDocumentView","parameters":[{"name":"id","required":true,"in":"path","schema":{"type":"string"}},{"name":"docId","required":true,"in":"path","schema":{"type":"string"}},{"$ref":"#/components/parameters/IdempotencyKey"}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/TrackDocumentViewDto"}}}},"responses":{"201":{"description":""},"400":{"$ref":"#/components/responses/BadRequest"},"401":{"$ref":"#/components/responses/Unauthorized"},"403":{"$ref":"#/components/responses/Forbidden"},"404":{"$ref":"#/components/responses/NotFound"},"409":{"$ref":"#/components/responses/Conflict"},"429":{"$ref":"#/components/responses/TooManyRequests"},"500":{"$ref":"#/components/responses/ServerError"}},"security":[{"JWT":[]},{"ApiKey":[]}],"tags":["Deal Rooms"],"summary":"Track document view","x-api-key-scopes":["*"]}},"/v1/deal-rooms/{id}/stakeholders":{"post":{"operationId":"dealRooms_addStakeholder","parameters":[{"name":"id","required":true,"in":"path","schema":{"type":"string"}},{"$ref":"#/components/parameters/IdempotencyKey"}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/AddStakeholderDto"}}}},"responses":{"201":{"description":""},"400":{"$ref":"#/components/responses/BadRequest"},"401":{"$ref":"#/components/responses/Unauthorized"},"403":{"$ref":"#/components/responses/Forbidden"},"404":{"$ref":"#/components/responses/NotFound"},"409":{"$ref":"#/components/responses/Conflict"},"429":{"$ref":"#/components/responses/TooManyRequests"},"500":{"$ref":"#/components/responses/ServerError"}},"security":[{"JWT":[]},{"ApiKey":[]}],"tags":["Deal Rooms"],"summary":"Add stakeholder","x-api-key-scopes":["*"]}},"/v1/deal-rooms/{id}/stakeholders/{stakeholderId}":{"delete":{"operationId":"dealRooms_removeStakeholder","parameters":[{"name":"id","required":true,"in":"path","schema":{"type":"string"}},{"name":"stakeholderId","required":true,"in":"path","schema":{"type":"string"}}],"responses":{"200":{"description":""},"400":{"$ref":"#/components/responses/BadRequest"},"401":{"$ref":"#/components/responses/Unauthorized"},"403":{"$ref":"#/components/responses/Forbidden"},"404":{"$ref":"#/components/responses/NotFound"},"429":{"$ref":"#/components/responses/TooManyRequests"},"500":{"$ref":"#/components/responses/ServerError"}},"security":[{"JWT":[]},{"ApiKey":[]}],"tags":["Deal Rooms"],"summary":"Remove stakeholder","x-api-key-scopes":["*"]}},"/v1/deal-rooms/{id}/timeline":{"get":{"operationId":"dealRooms_getTimeline","parameters":[{"name":"id","required":true,"in":"path","schema":{"type":"string"}}],"responses":{"200":{"description":""},"400":{"$ref":"#/components/responses/BadRequest"},"401":{"$ref":"#/components/responses/Unauthorized"},"403":{"$ref":"#/components/responses/Forbidden"},"404":{"$ref":"#/components/responses/NotFound"},"429":{"$ref":"#/components/responses/TooManyRequests"},"500":{"$ref":"#/components/responses/ServerError"}},"security":[{"JWT":[]},{"ApiKey":[]}],"tags":["Deal Rooms"],"summary":"Get timeline","x-api-key-scopes":["*"]}},"/v1/deal-rooms/{id}/notes":{"post":{"operationId":"dealRooms_addNote","parameters":[{"name":"id","required":true,"in":"path","schema":{"type":"string"}},{"$ref":"#/components/parameters/IdempotencyKey"}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/CreateNoteDto"}}}},"responses":{"201":{"description":""},"400":{"$ref":"#/components/responses/BadRequest"},"401":{"$ref":"#/components/responses/Unauthorized"},"403":{"$ref":"#/components/responses/Forbidden"},"404":{"$ref":"#/components/responses/NotFound"},"409":{"$ref":"#/components/responses/Conflict"},"429":{"$ref":"#/components/responses/TooManyRequests"},"500":{"$ref":"#/components/responses/ServerError"}},"security":[{"JWT":[]},{"ApiKey":[]}],"tags":["Deal Rooms"],"summary":"Add note","x-api-key-scopes":["*"]}},"/v1/deal-rooms/{id}/notes/{noteId}":{"delete":{"operationId":"dealRooms_deleteNote","parameters":[{"name":"id","required":true,"in":"path","schema":{"type":"string"}},{"name":"noteId","required":true,"in":"path","schema":{"type":"string"}}],"responses":{"200":{"description":""},"400":{"$ref":"#/components/responses/BadRequest"},"401":{"$ref":"#/components/responses/Unauthorized"},"403":{"$ref":"#/components/responses/Forbidden"},"404":{"$ref":"#/components/responses/NotFound"},"429":{"$ref":"#/components/responses/TooManyRequests"},"500":{"$ref":"#/components/responses/ServerError"}},"security":[{"JWT":[]},{"ApiKey":[]}],"tags":["Deal Rooms"],"summary":"Delete note","x-api-key-scopes":["*"]}},"/v1/custom-dashboards":{"post":{"operationId":"customDashboards_create","parameters":[{"$ref":"#/components/parameters/IdempotencyKey"}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/CreateDashboardDto"}}}},"responses":{"201":{"description":""},"400":{"$ref":"#/components/responses/BadRequest"},"401":{"$ref":"#/components/responses/Unauthorized"},"403":{"$ref":"#/components/responses/Forbidden"},"409":{"$ref":"#/components/responses/Conflict"},"429":{"$ref":"#/components/responses/TooManyRequests"},"500":{"$ref":"#/components/responses/ServerError"}},"security":[{"JWT":[]},{"ApiKey":[]}],"tags":["Custom Dashboards"],"summary":"Create","x-api-key-scopes":["*"]},"get":{"operationId":"customDashboards_findAll","parameters":[],"responses":{"200":{"description":""},"401":{"$ref":"#/components/responses/Unauthorized"},"403":{"$ref":"#/components/responses/Forbidden"},"429":{"$ref":"#/components/responses/TooManyRequests"},"500":{"$ref":"#/components/responses/ServerError"}},"security":[{"JWT":[]},{"ApiKey":[]}],"summary":"List all dashboards visible to the current user","tags":["Custom Dashboards"],"x-api-key-scopes":["*"]}},"/v1/custom-dashboards/widget-data":{"get":{"operationId":"customDashboards_getWidgetData","parameters":[],"responses":{"200":{"description":""},"401":{"$ref":"#/components/responses/Unauthorized"},"403":{"$ref":"#/components/responses/Forbidden"},"429":{"$ref":"#/components/responses/TooManyRequests"},"500":{"$ref":"#/components/responses/ServerError"}},"security":[{"JWT":[]},{"ApiKey":[]}],"summary":"Get widget data based on a widget config (data source + metric + filters)\nNOTE: This route is placed above /:id to prevent \"widget-data\" from\n      being captured as an :id parameter.","tags":["Custom Dashboards"],"x-api-key-scopes":["*"]}},"/v1/custom-dashboards/{id}":{"get":{"operationId":"customDashboards_findOne","parameters":[{"name":"id","required":true,"in":"path","schema":{"type":"string"}}],"responses":{"200":{"description":""},"400":{"$ref":"#/components/responses/BadRequest"},"401":{"$ref":"#/components/responses/Unauthorized"},"403":{"$ref":"#/components/responses/Forbidden"},"404":{"$ref":"#/components/responses/NotFound"},"429":{"$ref":"#/components/responses/TooManyRequests"},"500":{"$ref":"#/components/responses/ServerError"}},"security":[{"JWT":[]},{"ApiKey":[]}],"summary":"Get a single dashboard by ID (with all widgets)","tags":["Custom Dashboards"],"x-api-key-scopes":["*"]},"patch":{"operationId":"customDashboards_update","parameters":[{"name":"id","required":true,"in":"path","schema":{"type":"string"}},{"$ref":"#/components/parameters/IdempotencyKey"}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/UpdateDashboardDto"}}}},"responses":{"200":{"description":""},"400":{"$ref":"#/components/responses/BadRequest"},"401":{"$ref":"#/components/responses/Unauthorized"},"403":{"$ref":"#/components/responses/Forbidden"},"404":{"$ref":"#/components/responses/NotFound"},"409":{"$ref":"#/components/responses/Conflict"},"429":{"$ref":"#/components/responses/TooManyRequests"},"500":{"$ref":"#/components/responses/ServerError"}},"security":[{"JWT":[]},{"ApiKey":[]}],"summary":"Update a dashboard (name, description, visibility, isDefault, widgets)","tags":["Custom Dashboards"],"x-api-key-scopes":["*"]},"delete":{"operationId":"customDashboards_remove","parameters":[{"name":"id","required":true,"in":"path","schema":{"type":"string"}}],"responses":{"200":{"description":""},"400":{"$ref":"#/components/responses/BadRequest"},"401":{"$ref":"#/components/responses/Unauthorized"},"403":{"$ref":"#/components/responses/Forbidden"},"404":{"$ref":"#/components/responses/NotFound"},"429":{"$ref":"#/components/responses/TooManyRequests"},"500":{"$ref":"#/components/responses/ServerError"}},"security":[{"JWT":[]},{"ApiKey":[]}],"summary":"Delete a dashboard","tags":["Custom Dashboards"],"x-api-key-scopes":["*"]}},"/v1/custom-dashboards/{id}/duplicate":{"post":{"operationId":"customDashboards_duplicate","parameters":[{"name":"id","required":true,"in":"path","schema":{"type":"string"}},{"$ref":"#/components/parameters/IdempotencyKey"}],"responses":{"201":{"description":""},"400":{"$ref":"#/components/responses/BadRequest"},"401":{"$ref":"#/components/responses/Unauthorized"},"403":{"$ref":"#/components/responses/Forbidden"},"404":{"$ref":"#/components/responses/NotFound"},"409":{"$ref":"#/components/responses/Conflict"},"429":{"$ref":"#/components/responses/TooManyRequests"},"500":{"$ref":"#/components/responses/ServerError"}},"security":[{"JWT":[]},{"ApiKey":[]}],"summary":"Duplicate a dashboard (creates a private copy for the current user)","tags":["Custom Dashboards"],"x-api-key-scopes":["*"]}},"/v1/custom-dashboards/{id}/widgets":{"post":{"operationId":"customDashboards_addWidget","parameters":[{"name":"id","required":true,"in":"path","schema":{"type":"string"}},{"$ref":"#/components/parameters/IdempotencyKey"}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/AddWidgetDto"}}}},"responses":{"201":{"description":""},"400":{"$ref":"#/components/responses/BadRequest"},"401":{"$ref":"#/components/responses/Unauthorized"},"403":{"$ref":"#/components/responses/Forbidden"},"404":{"$ref":"#/components/responses/NotFound"},"409":{"$ref":"#/components/responses/Conflict"},"429":{"$ref":"#/components/responses/TooManyRequests"},"500":{"$ref":"#/components/responses/ServerError"}},"security":[{"JWT":[]},{"ApiKey":[]}],"tags":["Custom Dashboards"],"summary":"Add widget","x-api-key-scopes":["*"]}},"/v1/custom-dashboards/{id}/widgets/positions":{"put":{"operationId":"customDashboards_updateWidgetPositions","parameters":[{"name":"id","required":true,"in":"path","schema":{"type":"string"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/UpdateWidgetPositionsDto"}}}},"responses":{"200":{"description":""},"400":{"$ref":"#/components/responses/BadRequest"},"401":{"$ref":"#/components/responses/Unauthorized"},"403":{"$ref":"#/components/responses/Forbidden"},"404":{"$ref":"#/components/responses/NotFound"},"429":{"$ref":"#/components/responses/TooManyRequests"},"500":{"$ref":"#/components/responses/ServerError"}},"security":[{"JWT":[]},{"ApiKey":[]}],"summary":"Bulk update widget positions (after drag-and-drop reorder)","tags":["Custom Dashboards"],"x-api-key-scopes":["*"]}},"/v1/custom-dashboards/{id}/widgets/{widgetId}":{"patch":{"operationId":"customDashboards_updateWidget","parameters":[{"name":"id","required":true,"in":"path","schema":{"type":"string"}},{"name":"widgetId","required":true,"in":"path","schema":{"type":"string"}},{"$ref":"#/components/parameters/IdempotencyKey"}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/UpdateWidgetDto"}}}},"responses":{"200":{"description":""},"400":{"$ref":"#/components/responses/BadRequest"},"401":{"$ref":"#/components/responses/Unauthorized"},"403":{"$ref":"#/components/responses/Forbidden"},"404":{"$ref":"#/components/responses/NotFound"},"409":{"$ref":"#/components/responses/Conflict"},"429":{"$ref":"#/components/responses/TooManyRequests"},"500":{"$ref":"#/components/responses/ServerError"}},"security":[{"JWT":[]},{"ApiKey":[]}],"summary":"Update a specific widget's config, title, type, size, or position","tags":["Custom Dashboards"],"x-api-key-scopes":["*"]},"delete":{"operationId":"customDashboards_removeWidget","parameters":[{"name":"id","required":true,"in":"path","schema":{"type":"string"}},{"name":"widgetId","required":true,"in":"path","schema":{"type":"string"}}],"responses":{"200":{"description":""},"400":{"$ref":"#/components/responses/BadRequest"},"401":{"$ref":"#/components/responses/Unauthorized"},"403":{"$ref":"#/components/responses/Forbidden"},"404":{"$ref":"#/components/responses/NotFound"},"429":{"$ref":"#/components/responses/TooManyRequests"},"500":{"$ref":"#/components/responses/ServerError"}},"security":[{"JWT":[]},{"ApiKey":[]}],"summary":"Remove a widget from a dashboard","tags":["Custom Dashboards"],"x-api-key-scopes":["*"]}},"/v1/custom-reports/preview":{"post":{"operationId":"customReports_preview","parameters":[{"$ref":"#/components/parameters/IdempotencyKey"}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/PreviewReportDto"}}}},"responses":{"201":{"description":"","content":{"application/json":{"schema":{"type":"object"}}}},"400":{"$ref":"#/components/responses/BadRequest"},"401":{"$ref":"#/components/responses/Unauthorized"},"403":{"$ref":"#/components/responses/Forbidden"},"409":{"$ref":"#/components/responses/Conflict"},"429":{"$ref":"#/components/responses/TooManyRequests"},"500":{"$ref":"#/components/responses/ServerError"}},"security":[{"JWT":[]},{"ApiKey":[]}],"summary":"Preview a report config against live data.\nNOTE: static route declared above /:id.","tags":["Custom Reports"],"x-api-key-scopes":["*"]}},"/v1/custom-reports/fields/{entity}":{"get":{"operationId":"customReports_getEntityFields","parameters":[{"name":"entity","required":true,"in":"path","schema":{"type":"string"}}],"responses":{"200":{"description":"","content":{"application/json":{"schema":{"type":"array","items":{"type":"object"}}}}},"400":{"$ref":"#/components/responses/BadRequest"},"401":{"$ref":"#/components/responses/Unauthorized"},"403":{"$ref":"#/components/responses/Forbidden"},"404":{"$ref":"#/components/responses/NotFound"},"429":{"$ref":"#/components/responses/TooManyRequests"},"500":{"$ref":"#/components/responses/ServerError"}},"security":[{"JWT":[]},{"ApiKey":[]}],"summary":"Available fields for a given entity type.\nNOTE: static route declared above /:id.","tags":["Custom Reports"],"x-api-key-scopes":["*"]}},"/v1/custom-reports":{"get":{"operationId":"customReports_findAll","parameters":[],"responses":{"200":{"description":""},"401":{"$ref":"#/components/responses/Unauthorized"},"403":{"$ref":"#/components/responses/Forbidden"},"429":{"$ref":"#/components/responses/TooManyRequests"},"500":{"$ref":"#/components/responses/ServerError"}},"security":[{"JWT":[]},{"ApiKey":[]}],"summary":"List saved reports for the current user","tags":["Custom Reports"],"x-api-key-scopes":["*"]},"post":{"operationId":"customReports_create","parameters":[{"$ref":"#/components/parameters/IdempotencyKey"}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/CreateReportDto"}}}},"responses":{"201":{"description":""},"400":{"$ref":"#/components/responses/BadRequest"},"401":{"$ref":"#/components/responses/Unauthorized"},"403":{"$ref":"#/components/responses/Forbidden"},"409":{"$ref":"#/components/responses/Conflict"},"429":{"$ref":"#/components/responses/TooManyRequests"},"500":{"$ref":"#/components/responses/ServerError"}},"security":[{"JWT":[]},{"ApiKey":[]}],"summary":"Create a saved report","tags":["Custom Reports"],"x-api-key-scopes":["*"]}},"/v1/custom-reports/{id}/export":{"get":{"operationId":"customReports_export","parameters":[{"name":"id","required":true,"in":"path","schema":{"type":"string"}},{"name":"format","required":true,"in":"query","schema":{"type":"string"}}],"responses":{"200":{"description":""},"400":{"$ref":"#/components/responses/BadRequest"},"401":{"$ref":"#/components/responses/Unauthorized"},"403":{"$ref":"#/components/responses/Forbidden"},"404":{"$ref":"#/components/responses/NotFound"},"429":{"$ref":"#/components/responses/TooManyRequests"},"500":{"$ref":"#/components/responses/ServerError"}},"security":[{"JWT":[]},{"ApiKey":[]}],"summary":"Export a saved report as CSV or PDF","tags":["Custom Reports"],"x-api-key-scopes":["*"]}},"/v1/custom-reports/{id}/schedule":{"post":{"operationId":"customReports_schedule","parameters":[{"name":"id","required":true,"in":"path","schema":{"type":"string"}},{"$ref":"#/components/parameters/IdempotencyKey"}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ScheduleReportDto"}}}},"responses":{"201":{"description":""},"400":{"$ref":"#/components/responses/BadRequest"},"401":{"$ref":"#/components/responses/Unauthorized"},"403":{"$ref":"#/components/responses/Forbidden"},"404":{"$ref":"#/components/responses/NotFound"},"409":{"$ref":"#/components/responses/Conflict"},"429":{"$ref":"#/components/responses/TooManyRequests"},"500":{"$ref":"#/components/responses/ServerError"}},"security":[{"JWT":[]},{"ApiKey":[]}],"summary":"Schedule a report for recurring delivery","tags":["Custom Reports"],"x-api-key-scopes":["*"]}},"/v1/custom-reports/{id}":{"get":{"operationId":"customReports_findOne","parameters":[{"name":"id","required":true,"in":"path","schema":{"type":"string"}}],"responses":{"200":{"description":""},"400":{"$ref":"#/components/responses/BadRequest"},"401":{"$ref":"#/components/responses/Unauthorized"},"403":{"$ref":"#/components/responses/Forbidden"},"404":{"$ref":"#/components/responses/NotFound"},"429":{"$ref":"#/components/responses/TooManyRequests"},"500":{"$ref":"#/components/responses/ServerError"}},"security":[{"JWT":[]},{"ApiKey":[]}],"summary":"Get a single saved report","tags":["Custom Reports"],"x-api-key-scopes":["*"]},"patch":{"operationId":"customReports_update","parameters":[{"name":"id","required":true,"in":"path","schema":{"type":"string"}},{"$ref":"#/components/parameters/IdempotencyKey"}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/UpdateReportDto"}}}},"responses":{"200":{"description":""},"400":{"$ref":"#/components/responses/BadRequest"},"401":{"$ref":"#/components/responses/Unauthorized"},"403":{"$ref":"#/components/responses/Forbidden"},"404":{"$ref":"#/components/responses/NotFound"},"409":{"$ref":"#/components/responses/Conflict"},"429":{"$ref":"#/components/responses/TooManyRequests"},"500":{"$ref":"#/components/responses/ServerError"}},"security":[{"JWT":[]},{"ApiKey":[]}],"summary":"Update a saved report","tags":["Custom Reports"],"x-api-key-scopes":["*"]},"delete":{"operationId":"customReports_remove","parameters":[{"name":"id","required":true,"in":"path","schema":{"type":"string"}}],"responses":{"200":{"description":""},"400":{"$ref":"#/components/responses/BadRequest"},"401":{"$ref":"#/components/responses/Unauthorized"},"403":{"$ref":"#/components/responses/Forbidden"},"404":{"$ref":"#/components/responses/NotFound"},"429":{"$ref":"#/components/responses/TooManyRequests"},"500":{"$ref":"#/components/responses/ServerError"}},"security":[{"JWT":[]},{"ApiKey":[]}],"summary":"Delete a saved report","tags":["Custom Reports"],"x-api-key-scopes":["*"]}},"/v1/email-inbox/folders":{"get":{"operationId":"emailInbox_getFolders","parameters":[],"responses":{"200":{"description":"","content":{"application/json":{"schema":{"type":"array","items":{"type":"object"}}}}},"401":{"$ref":"#/components/responses/Unauthorized"},"403":{"$ref":"#/components/responses/Forbidden"},"429":{"$ref":"#/components/responses/TooManyRequests"},"500":{"$ref":"#/components/responses/ServerError"}},"security":[{"JWT":[]},{"ApiKey":[]}],"summary":"Get email folders with unread counts","tags":["Email Inbox"],"x-api-key-scopes":["*"]}},"/v1/email-inbox/threads":{"get":{"operationId":"emailInbox_getThreads","parameters":[],"responses":{"200":{"description":""},"401":{"$ref":"#/components/responses/Unauthorized"},"403":{"$ref":"#/components/responses/Forbidden"},"429":{"$ref":"#/components/responses/TooManyRequests"},"500":{"$ref":"#/components/responses/ServerError"}},"security":[{"JWT":[]},{"ApiKey":[]}],"summary":"List email threads with filtering and pagination","tags":["Email Inbox"],"x-api-key-scopes":["*"]}},"/v1/email-inbox/threads/{id}":{"get":{"operationId":"emailInbox_getThread","parameters":[{"name":"id","required":true,"in":"path","schema":{"type":"string"}}],"responses":{"200":{"description":"","content":{"application/json":{"schema":{"type":"object"}}}},"400":{"$ref":"#/components/responses/BadRequest"},"401":{"$ref":"#/components/responses/Unauthorized"},"403":{"$ref":"#/components/responses/Forbidden"},"404":{"$ref":"#/components/responses/NotFound"},"429":{"$ref":"#/components/responses/TooManyRequests"},"500":{"$ref":"#/components/responses/ServerError"}},"security":[{"JWT":[]},{"ApiKey":[]}],"summary":"Get thread with all messages","tags":["Email Inbox"],"x-api-key-scopes":["*"]}},"/v1/email-inbox/threads/{id}/summarize":{"post":{"operationId":"emailInbox_summarizeThread","parameters":[{"name":"id","required":true,"in":"path","schema":{"type":"string"}},{"name":"force","required":false,"in":"query","schema":{"type":"string"}},{"$ref":"#/components/parameters/IdempotencyKey"}],"responses":{"201":{"description":"","content":{"application/json":{"schema":{"type":"object"}}}},"400":{"$ref":"#/components/responses/BadRequest"},"401":{"$ref":"#/components/responses/Unauthorized"},"403":{"$ref":"#/components/responses/Forbidden"},"404":{"$ref":"#/components/responses/NotFound"},"409":{"$ref":"#/components/responses/Conflict"},"429":{"$ref":"#/components/responses/TooManyRequests"},"500":{"$ref":"#/components/responses/ServerError"}},"security":[{"JWT":[]},{"ApiKey":[]}],"tags":["Email Inbox"],"summary":"Summarize thread","x-api-key-scopes":["*"]}},"/v1/email-inbox/threads/{id}/draft-reply":{"post":{"operationId":"emailInbox_draftReply","parameters":[{"name":"id","required":true,"in":"path","schema":{"type":"string"}},{"$ref":"#/components/parameters/IdempotencyKey"}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/DraftReplyBody"}}}},"responses":{"201":{"description":"","content":{"application/json":{"schema":{"type":"object"}}}},"400":{"$ref":"#/components/responses/BadRequest"},"401":{"$ref":"#/components/responses/Unauthorized"},"403":{"$ref":"#/components/responses/Forbidden"},"404":{"$ref":"#/components/responses/NotFound"},"409":{"$ref":"#/components/responses/Conflict"},"429":{"$ref":"#/components/responses/TooManyRequests"},"500":{"$ref":"#/components/responses/ServerError"}},"security":[{"JWT":[]},{"ApiKey":[]}],"summary":"AI-drafted reply for the rep to review. Never sends.","tags":["Email Inbox"],"x-api-key-scopes":["*"]}},"/v1/email-inbox/send":{"post":{"operationId":"emailInbox_sendEmail","parameters":[{"$ref":"#/components/parameters/IdempotencyKey"}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/SendEmailDto"}}}},"responses":{"201":{"description":""},"400":{"$ref":"#/components/responses/BadRequest"},"401":{"$ref":"#/components/responses/Unauthorized"},"403":{"$ref":"#/components/responses/Forbidden"},"409":{"$ref":"#/components/responses/Conflict"},"429":{"$ref":"#/components/responses/TooManyRequests"},"500":{"$ref":"#/components/responses/ServerError"}},"security":[{"JWT":[]},{"ApiKey":[]}],"summary":"Send or schedule an email","tags":["Email Inbox"],"x-api-key-scopes":["*"]}},"/v1/email-inbox/drafts":{"post":{"operationId":"emailInbox_saveDraft","parameters":[{"$ref":"#/components/parameters/IdempotencyKey"}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/SaveDraftDto"}}}},"responses":{"201":{"description":""},"400":{"$ref":"#/components/responses/BadRequest"},"401":{"$ref":"#/components/responses/Unauthorized"},"403":{"$ref":"#/components/responses/Forbidden"},"409":{"$ref":"#/components/responses/Conflict"},"429":{"$ref":"#/components/responses/TooManyRequests"},"500":{"$ref":"#/components/responses/ServerError"}},"security":[{"JWT":[]},{"ApiKey":[]}],"summary":"Save or update a draft email","tags":["Email Inbox"],"x-api-key-scopes":["*"]}},"/v1/email-inbox/threads/{id}/read":{"patch":{"operationId":"emailInbox_markRead","parameters":[{"name":"id","required":true,"in":"path","schema":{"type":"string"}},{"$ref":"#/components/parameters/IdempotencyKey"}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/MarkReadDto"}}}},"responses":{"204":{"description":""},"400":{"$ref":"#/components/responses/BadRequest"},"401":{"$ref":"#/components/responses/Unauthorized"},"403":{"$ref":"#/components/responses/Forbidden"},"404":{"$ref":"#/components/responses/NotFound"},"409":{"$ref":"#/components/responses/Conflict"},"429":{"$ref":"#/components/responses/TooManyRequests"},"500":{"$ref":"#/components/responses/ServerError"}},"security":[{"JWT":[]},{"ApiKey":[]}],"summary":"Mark thread as read/unread","tags":["Email Inbox"],"x-api-key-scopes":["*"]}},"/v1/email-inbox/threads/{id}/star":{"patch":{"operationId":"emailInbox_toggleStar","parameters":[{"name":"id","required":true,"in":"path","schema":{"type":"string"}},{"$ref":"#/components/parameters/IdempotencyKey"}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ToggleStarDto"}}}},"responses":{"204":{"description":""},"400":{"$ref":"#/components/responses/BadRequest"},"401":{"$ref":"#/components/responses/Unauthorized"},"403":{"$ref":"#/components/responses/Forbidden"},"404":{"$ref":"#/components/responses/NotFound"},"409":{"$ref":"#/components/responses/Conflict"},"429":{"$ref":"#/components/responses/TooManyRequests"},"500":{"$ref":"#/components/responses/ServerError"}},"security":[{"JWT":[]},{"ApiKey":[]}],"summary":"Toggle star on a thread","tags":["Email Inbox"],"x-api-key-scopes":["*"]}},"/v1/email-inbox/threads/{id}/archive":{"post":{"operationId":"emailInbox_archiveThread","parameters":[{"name":"id","required":true,"in":"path","schema":{"type":"string"}},{"$ref":"#/components/parameters/IdempotencyKey"}],"responses":{"204":{"description":""},"400":{"$ref":"#/components/responses/BadRequest"},"401":{"$ref":"#/components/responses/Unauthorized"},"403":{"$ref":"#/components/responses/Forbidden"},"404":{"$ref":"#/components/responses/NotFound"},"409":{"$ref":"#/components/responses/Conflict"},"429":{"$ref":"#/components/responses/TooManyRequests"},"500":{"$ref":"#/components/responses/ServerError"}},"security":[{"JWT":[]},{"ApiKey":[]}],"summary":"Archive a thread","tags":["Email Inbox"],"x-api-key-scopes":["*"]}},"/v1/email-inbox/threads/bulk":{"post":{"operationId":"emailInbox_bulkAction","parameters":[{"$ref":"#/components/parameters/IdempotencyKey"}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/BulkActionDto"}}}},"responses":{"201":{"description":""},"400":{"$ref":"#/components/responses/BadRequest"},"401":{"$ref":"#/components/responses/Unauthorized"},"403":{"$ref":"#/components/responses/Forbidden"},"409":{"$ref":"#/components/responses/Conflict"},"429":{"$ref":"#/components/responses/TooManyRequests"},"500":{"$ref":"#/components/responses/ServerError"}},"security":[{"JWT":[]},{"ApiKey":[]}],"summary":"Bulk action on threads","tags":["Email Inbox"],"x-api-key-scopes":["*"]}},"/v1/email-inbox/threads/{id}/crm-links":{"post":{"operationId":"emailInbox_linkCrm","parameters":[{"name":"id","required":true,"in":"path","schema":{"type":"string"}},{"$ref":"#/components/parameters/IdempotencyKey"}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/LinkCrmDto"}}}},"responses":{"201":{"description":"","content":{"application/json":{"schema":{"type":"object"}}}},"400":{"$ref":"#/components/responses/BadRequest"},"401":{"$ref":"#/components/responses/Unauthorized"},"403":{"$ref":"#/components/responses/Forbidden"},"404":{"$ref":"#/components/responses/NotFound"},"409":{"$ref":"#/components/responses/Conflict"},"429":{"$ref":"#/components/responses/TooManyRequests"},"500":{"$ref":"#/components/responses/ServerError"}},"security":[{"JWT":[]},{"ApiKey":[]}],"summary":"Link CRM entity to thread","tags":["Email Inbox"],"x-api-key-scopes":["*"]}},"/v1/email-inbox/threads/{id}/crm-links/{entityType}/{entityId}":{"delete":{"operationId":"emailInbox_unlinkCrm","parameters":[{"name":"id","required":true,"in":"path","schema":{"type":"string"}},{"name":"entityType","required":true,"in":"path","schema":{"type":"string"}},{"name":"entityId","required":true,"in":"path","schema":{"type":"string"}}],"responses":{"204":{"description":""},"400":{"$ref":"#/components/responses/BadRequest"},"401":{"$ref":"#/components/responses/Unauthorized"},"403":{"$ref":"#/components/responses/Forbidden"},"404":{"$ref":"#/components/responses/NotFound"},"429":{"$ref":"#/components/responses/TooManyRequests"},"500":{"$ref":"#/components/responses/ServerError"}},"security":[{"JWT":[]},{"ApiKey":[]}],"summary":"Unlink CRM entity from thread","tags":["Email Inbox"],"x-api-key-scopes":["*"]}},"/v1/email-inbox/stats":{"get":{"operationId":"emailInbox_getStats","parameters":[],"responses":{"200":{"description":"","content":{"application/json":{"schema":{"type":"object"}}}},"401":{"$ref":"#/components/responses/Unauthorized"},"403":{"$ref":"#/components/responses/Forbidden"},"429":{"$ref":"#/components/responses/TooManyRequests"},"500":{"$ref":"#/components/responses/ServerError"}},"security":[{"JWT":[]},{"ApiKey":[]}],"summary":"Get inbox statistics","tags":["Email Inbox"],"x-api-key-scopes":["*"]}},"/v1/email-inbox/search":{"get":{"operationId":"emailInbox_advancedSearch","parameters":[],"responses":{"200":{"description":""},"401":{"$ref":"#/components/responses/Unauthorized"},"403":{"$ref":"#/components/responses/Forbidden"},"429":{"$ref":"#/components/responses/TooManyRequests"},"500":{"$ref":"#/components/responses/ServerError"}},"security":[{"JWT":[]},{"ApiKey":[]}],"summary":"Advanced email search","tags":["Email Inbox"],"x-api-key-scopes":["*"]}},"/v1/email-inbox/threads/read":{"patch":{"operationId":"emailInbox_batchMarkRead","parameters":[{"$ref":"#/components/parameters/IdempotencyKey"}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/BulkMarkReadDto"}}}},"responses":{"204":{"description":""},"400":{"$ref":"#/components/responses/BadRequest"},"401":{"$ref":"#/components/responses/Unauthorized"},"403":{"$ref":"#/components/responses/Forbidden"},"409":{"$ref":"#/components/responses/Conflict"},"429":{"$ref":"#/components/responses/TooManyRequests"},"500":{"$ref":"#/components/responses/ServerError"}},"security":[{"JWT":[]},{"ApiKey":[]}],"summary":"Batch mark threads as read/unread","tags":["Email Inbox"],"x-api-key-scopes":["*"]}},"/v1/email-inbox/threads/star":{"patch":{"operationId":"emailInbox_batchToggleStar","parameters":[{"$ref":"#/components/parameters/IdempotencyKey"}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/BulkToggleStarDto"}}}},"responses":{"204":{"description":""},"400":{"$ref":"#/components/responses/BadRequest"},"401":{"$ref":"#/components/responses/Unauthorized"},"403":{"$ref":"#/components/responses/Forbidden"},"409":{"$ref":"#/components/responses/Conflict"},"429":{"$ref":"#/components/responses/TooManyRequests"},"500":{"$ref":"#/components/responses/ServerError"}},"security":[{"JWT":[]},{"ApiKey":[]}],"summary":"Batch toggle star on threads","tags":["Email Inbox"],"x-api-key-scopes":["*"]}},"/v1/email-inbox/threads/archive":{"patch":{"operationId":"emailInbox_batchArchive","parameters":[{"$ref":"#/components/parameters/IdempotencyKey"}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/BulkArchiveDto"}}}},"responses":{"204":{"description":""},"400":{"$ref":"#/components/responses/BadRequest"},"401":{"$ref":"#/components/responses/Unauthorized"},"403":{"$ref":"#/components/responses/Forbidden"},"409":{"$ref":"#/components/responses/Conflict"},"429":{"$ref":"#/components/responses/TooManyRequests"},"500":{"$ref":"#/components/responses/ServerError"}},"security":[{"JWT":[]},{"ApiKey":[]}],"summary":"Batch archive threads","tags":["Email Inbox"],"x-api-key-scopes":["*"]}},"/v1/email-inbox/threads/move":{"patch":{"operationId":"emailInbox_moveToFolder","parameters":[{"$ref":"#/components/parameters/IdempotencyKey"}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/MoveToFolderDto"}}}},"responses":{"204":{"description":""},"400":{"$ref":"#/components/responses/BadRequest"},"401":{"$ref":"#/components/responses/Unauthorized"},"403":{"$ref":"#/components/responses/Forbidden"},"409":{"$ref":"#/components/responses/Conflict"},"429":{"$ref":"#/components/responses/TooManyRequests"},"500":{"$ref":"#/components/responses/ServerError"}},"security":[{"JWT":[]},{"ApiKey":[]}],"summary":"Move threads to folder","tags":["Email Inbox"],"x-api-key-scopes":["*"]}},"/v1/email-inbox/threads/delete":{"post":{"operationId":"emailInbox_deleteThreads","parameters":[{"$ref":"#/components/parameters/IdempotencyKey"}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/DeleteThreadsDto"}}}},"responses":{"204":{"description":""},"400":{"$ref":"#/components/responses/BadRequest"},"401":{"$ref":"#/components/responses/Unauthorized"},"403":{"$ref":"#/components/responses/Forbidden"},"409":{"$ref":"#/components/responses/Conflict"},"429":{"$ref":"#/components/responses/TooManyRequests"},"500":{"$ref":"#/components/responses/ServerError"}},"security":[{"JWT":[]},{"ApiKey":[]}],"summary":"Soft-delete threads","tags":["Email Inbox"],"x-api-key-scopes":["*"]}},"/v1/email-inbox/scheduled":{"get":{"operationId":"emailInbox_getScheduled","parameters":[],"responses":{"200":{"description":""},"401":{"$ref":"#/components/responses/Unauthorized"},"403":{"$ref":"#/components/responses/Forbidden"},"429":{"$ref":"#/components/responses/TooManyRequests"},"500":{"$ref":"#/components/responses/ServerError"}},"security":[{"JWT":[]},{"ApiKey":[]}],"summary":"Get scheduled emails","tags":["Email Inbox"],"x-api-key-scopes":["*"]}},"/v1/email-inbox/scheduled/{id}":{"delete":{"operationId":"emailInbox_cancelScheduled","parameters":[{"name":"id","required":true,"in":"path","schema":{"type":"string"}}],"responses":{"204":{"description":""},"400":{"$ref":"#/components/responses/BadRequest"},"401":{"$ref":"#/components/responses/Unauthorized"},"403":{"$ref":"#/components/responses/Forbidden"},"404":{"$ref":"#/components/responses/NotFound"},"429":{"$ref":"#/components/responses/TooManyRequests"},"500":{"$ref":"#/components/responses/ServerError"}},"security":[{"JWT":[]},{"ApiKey":[]}],"summary":"Cancel a scheduled email","tags":["Email Inbox"],"x-api-key-scopes":["*"]}},"/v1/email-inbox/threads/{id}/follow-up":{"post":{"operationId":"emailInbox_setFollowUpReminder","parameters":[{"name":"id","required":true,"in":"path","schema":{"type":"string"}},{"$ref":"#/components/parameters/IdempotencyKey"}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/SetFollowUpReminderDto"}}}},"responses":{"204":{"description":""},"400":{"$ref":"#/components/responses/BadRequest"},"401":{"$ref":"#/components/responses/Unauthorized"},"403":{"$ref":"#/components/responses/Forbidden"},"404":{"$ref":"#/components/responses/NotFound"},"409":{"$ref":"#/components/responses/Conflict"},"429":{"$ref":"#/components/responses/TooManyRequests"},"500":{"$ref":"#/components/responses/ServerError"}},"security":[{"JWT":[]},{"ApiKey":[]}],"summary":"Set follow-up reminder","tags":["Email Inbox"],"x-api-key-scopes":["*"]},"delete":{"operationId":"emailInbox_removeFollowUpReminder","parameters":[{"name":"id","required":true,"in":"path","schema":{"type":"string"}}],"responses":{"204":{"description":""},"400":{"$ref":"#/components/responses/BadRequest"},"401":{"$ref":"#/components/responses/Unauthorized"},"403":{"$ref":"#/components/responses/Forbidden"},"404":{"$ref":"#/components/responses/NotFound"},"429":{"$ref":"#/components/responses/TooManyRequests"},"500":{"$ref":"#/components/responses/ServerError"}},"security":[{"JWT":[]},{"ApiKey":[]}],"summary":"Remove follow-up reminder","tags":["Email Inbox"],"x-api-key-scopes":["*"]}},"/v1/guided-selling/use-cases":{"get":{"operationId":"guidedSelling_getUseCases","parameters":[],"responses":{"200":{"description":""},"401":{"$ref":"#/components/responses/Unauthorized"},"403":{"$ref":"#/components/responses/Forbidden"},"429":{"$ref":"#/components/responses/TooManyRequests"},"500":{"$ref":"#/components/responses/ServerError"}},"security":[{"JWT":[]},{"ApiKey":[]}],"summary":"Get use case categories for needs assessment","tags":["Guided Selling"],"x-api-key-scopes":["*"]}},"/v1/guided-selling/recommendations":{"post":{"operationId":"guidedSelling_getRecommendations","parameters":[{"$ref":"#/components/parameters/IdempotencyKey"}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/NeedsAssessmentDto"}}}},"responses":{"201":{"description":""},"400":{"$ref":"#/components/responses/BadRequest"},"401":{"$ref":"#/components/responses/Unauthorized"},"403":{"$ref":"#/components/responses/Forbidden"},"409":{"$ref":"#/components/responses/Conflict"},"429":{"$ref":"#/components/responses/TooManyRequests"},"500":{"$ref":"#/components/responses/ServerError"}},"security":[{"JWT":[]},{"ApiKey":[]}],"summary":"Get product recommendations based on selected use cases","tags":["Guided Selling"],"x-api-key-scopes":["*"]}},"/v1/guided-selling/bundle":{"post":{"operationId":"guidedSelling_buildBundle","parameters":[{"$ref":"#/components/parameters/IdempotencyKey"}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/BuildBundleDto"}}}},"responses":{"201":{"description":""},"400":{"$ref":"#/components/responses/BadRequest"},"401":{"$ref":"#/components/responses/Unauthorized"},"403":{"$ref":"#/components/responses/Forbidden"},"409":{"$ref":"#/components/responses/Conflict"},"429":{"$ref":"#/components/responses/TooManyRequests"},"500":{"$ref":"#/components/responses/ServerError"}},"security":[{"JWT":[]},{"ApiKey":[]}],"summary":"Build a bundle with auto-discount calculation","tags":["Guided Selling"],"x-api-key-scopes":["*"]}},"/v1/guided-selling/apply-to-quote/{quoteId}":{"post":{"operationId":"guidedSelling_applyBundleToQuote","parameters":[{"name":"quoteId","required":true,"in":"path","schema":{"type":"string"}},{"$ref":"#/components/parameters/IdempotencyKey"}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ApplyBundleToQuoteDto"}}}},"responses":{"201":{"description":""},"400":{"$ref":"#/components/responses/BadRequest"},"401":{"$ref":"#/components/responses/Unauthorized"},"403":{"$ref":"#/components/responses/Forbidden"},"404":{"$ref":"#/components/responses/NotFound"},"409":{"$ref":"#/components/responses/Conflict"},"429":{"$ref":"#/components/responses/TooManyRequests"},"500":{"$ref":"#/components/responses/ServerError"}},"security":[{"JWT":[]},{"ApiKey":[]}],"summary":"Apply a bundle to an existing quote","tags":["Guided Selling"],"x-api-key-scopes":["*"]}},"/v1/guided-selling/also-bought/{productId}":{"get":{"operationId":"guidedSelling_getAlsoBought","parameters":[{"name":"productId","required":true,"in":"path","schema":{"type":"string"}}],"responses":{"200":{"description":""},"400":{"$ref":"#/components/responses/BadRequest"},"401":{"$ref":"#/components/responses/Unauthorized"},"403":{"$ref":"#/components/responses/Forbidden"},"404":{"$ref":"#/components/responses/NotFound"},"429":{"$ref":"#/components/responses/TooManyRequests"},"500":{"$ref":"#/components/responses/ServerError"}},"security":[{"JWT":[]},{"ApiKey":[]}],"summary":"Get cross-sell recommendations for a product","tags":["Guided Selling"],"x-api-key-scopes":["*"]}},"/v1/guided-selling/pricing-rules":{"get":{"operationId":"guidedSelling_listPricingRules","parameters":[{"name":"isActive","required":false,"in":"query","schema":{"type":"boolean"}}],"responses":{"200":{"description":""},"400":{"$ref":"#/components/responses/BadRequest"},"401":{"$ref":"#/components/responses/Unauthorized"},"403":{"$ref":"#/components/responses/Forbidden"},"429":{"$ref":"#/components/responses/TooManyRequests"},"500":{"$ref":"#/components/responses/ServerError"}},"security":[{"JWT":[]},{"ApiKey":[]}],"summary":"List dynamic pricing rules","tags":["Guided Selling"],"x-api-key-scopes":["*"]},"post":{"operationId":"guidedSelling_createPricingRule","parameters":[{"$ref":"#/components/parameters/IdempotencyKey"}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/CreateDynamicPricingRuleDto"}}}},"responses":{"201":{"description":""},"400":{"$ref":"#/components/responses/BadRequest"},"401":{"$ref":"#/components/responses/Unauthorized"},"403":{"$ref":"#/components/responses/Forbidden"},"409":{"$ref":"#/components/responses/Conflict"},"429":{"$ref":"#/components/responses/TooManyRequests"},"500":{"$ref":"#/components/responses/ServerError"}},"security":[{"JWT":[]},{"ApiKey":[]}],"summary":"Create a dynamic pricing rule","tags":["Guided Selling"],"x-api-key-scopes":["*"]}},"/v1/guided-selling/pricing-rules/{id}":{"patch":{"operationId":"guidedSelling_updatePricingRule","parameters":[{"name":"id","required":true,"in":"path","schema":{"type":"string"}},{"$ref":"#/components/parameters/IdempotencyKey"}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/UpdateDynamicPricingRuleDto"}}}},"responses":{"200":{"description":""},"400":{"$ref":"#/components/responses/BadRequest"},"401":{"$ref":"#/components/responses/Unauthorized"},"403":{"$ref":"#/components/responses/Forbidden"},"404":{"$ref":"#/components/responses/NotFound"},"409":{"$ref":"#/components/responses/Conflict"},"429":{"$ref":"#/components/responses/TooManyRequests"},"500":{"$ref":"#/components/responses/ServerError"}},"security":[{"JWT":[]},{"ApiKey":[]}],"summary":"Update a dynamic pricing rule","tags":["Guided Selling"],"x-api-key-scopes":["*"]}},"/v1/guided-selling/pricing-rules/preview/{quoteId}":{"post":{"operationId":"guidedSelling_previewPricingRules","parameters":[{"name":"quoteId","required":true,"in":"path","schema":{"type":"string"}},{"$ref":"#/components/parameters/IdempotencyKey"}],"responses":{"201":{"description":""},"400":{"$ref":"#/components/responses/BadRequest"},"401":{"$ref":"#/components/responses/Unauthorized"},"403":{"$ref":"#/components/responses/Forbidden"},"404":{"$ref":"#/components/responses/NotFound"},"409":{"$ref":"#/components/responses/Conflict"},"429":{"$ref":"#/components/responses/TooManyRequests"},"500":{"$ref":"#/components/responses/ServerError"}},"security":[{"JWT":[]},{"ApiKey":[]}],"summary":"Preview which pricing rules apply to a quote","tags":["Guided Selling"],"x-api-key-scopes":["*"]}},"/v1/revenue-intelligence":{"get":{"operationId":"revenueIntelligence_getAll","parameters":[{"name":"range","required":false,"in":"query","schema":{"type":"string"}}],"responses":{"200":{"description":""},"400":{"$ref":"#/components/responses/BadRequest"},"401":{"$ref":"#/components/responses/Unauthorized"},"403":{"$ref":"#/components/responses/Forbidden"},"429":{"$ref":"#/components/responses/TooManyRequests"},"500":{"$ref":"#/components/responses/ServerError"}},"security":[{"JWT":[]},{"ApiKey":[]}],"summary":"Get all revenue intelligence data in a single call","tags":["Revenue Intelligence"],"x-api-key-scopes":["*"]}},"/v1/revenue-intelligence/kpis":{"get":{"operationId":"revenueIntelligence_getKPIs","parameters":[{"name":"range","required":false,"in":"query","schema":{"type":"string"}}],"responses":{"200":{"description":""},"400":{"$ref":"#/components/responses/BadRequest"},"401":{"$ref":"#/components/responses/Unauthorized"},"403":{"$ref":"#/components/responses/Forbidden"},"429":{"$ref":"#/components/responses/TooManyRequests"},"500":{"$ref":"#/components/responses/ServerError"}},"security":[{"JWT":[]},{"ApiKey":[]}],"summary":"Get revenue KPIs: MRR, ARR, NRR, GRR, Revenue per Account","tags":["Revenue Intelligence"],"x-api-key-scopes":["*"]}},"/v1/revenue-intelligence/waterfall":{"get":{"operationId":"revenueIntelligence_getWaterfall","parameters":[{"name":"range","required":false,"in":"query","schema":{"type":"string"}}],"responses":{"200":{"description":""},"400":{"$ref":"#/components/responses/BadRequest"},"401":{"$ref":"#/components/responses/Unauthorized"},"403":{"$ref":"#/components/responses/Forbidden"},"429":{"$ref":"#/components/responses/TooManyRequests"},"500":{"$ref":"#/components/responses/ServerError"}},"security":[{"JWT":[]},{"ApiKey":[]}],"summary":"Get revenue waterfall data showing MRR changes over a period","tags":["Revenue Intelligence"],"x-api-key-scopes":["*"]}},"/v1/revenue-intelligence/attribution":{"get":{"operationId":"revenueIntelligence_getAttribution","parameters":[{"name":"range","required":false,"in":"query","schema":{"type":"string"}}],"responses":{"200":{"description":""},"400":{"$ref":"#/components/responses/BadRequest"},"401":{"$ref":"#/components/responses/Unauthorized"},"403":{"$ref":"#/components/responses/Forbidden"},"429":{"$ref":"#/components/responses/TooManyRequests"},"500":{"$ref":"#/components/responses/ServerError"}},"security":[{"JWT":[]},{"ApiKey":[]}],"summary":"Get revenue attribution by channel, campaign, and rep","tags":["Revenue Intelligence"],"x-api-key-scopes":["*"]}},"/v1/revenue-intelligence/cohorts":{"get":{"operationId":"revenueIntelligence_getCohorts","parameters":[],"responses":{"200":{"description":""},"401":{"$ref":"#/components/responses/Unauthorized"},"403":{"$ref":"#/components/responses/Forbidden"},"429":{"$ref":"#/components/responses/TooManyRequests"},"500":{"$ref":"#/components/responses/ServerError"}},"security":[{"JWT":[]},{"ApiKey":[]}],"summary":"Get cohort retention data grouped by account creation quarter","tags":["Revenue Intelligence"],"x-api-key-scopes":["*"]}},"/v1/revenue-intelligence/leaks":{"get":{"operationId":"revenueIntelligence_getLeaks","parameters":[],"responses":{"200":{"description":"","content":{"application/json":{"schema":{"type":"array","items":{"type":"object"}}}}},"401":{"$ref":"#/components/responses/Unauthorized"},"403":{"$ref":"#/components/responses/Forbidden"},"429":{"$ref":"#/components/responses/TooManyRequests"},"500":{"$ref":"#/components/responses/ServerError"}},"security":[{"JWT":[]},{"ApiKey":[]}],"summary":"Get revenue leakage issues: stale deals, expiring contracts, declining accounts","tags":["Revenue Intelligence"],"x-api-key-scopes":["*"]}},"/v1/deal-scoring/{dealId}/score":{"get":{"operationId":"dealScoring_getDealScore","parameters":[{"name":"dealId","required":true,"in":"path","schema":{"type":"string"}}],"responses":{"200":{"description":""},"400":{"$ref":"#/components/responses/BadRequest"},"401":{"$ref":"#/components/responses/Unauthorized"},"403":{"$ref":"#/components/responses/Forbidden"},"404":{"$ref":"#/components/responses/NotFound"},"429":{"$ref":"#/components/responses/TooManyRequests"},"500":{"$ref":"#/components/responses/ServerError"}},"security":[{"JWT":[]},{"ApiKey":[]}],"summary":"Get the health score for a specific deal","tags":["Deal Scoring"],"x-api-key-scopes":["*"]}},"/v1/deal-scoring/{dealId}/insights":{"get":{"operationId":"dealScoring_getPredictiveInsights","parameters":[{"name":"dealId","required":true,"in":"path","schema":{"type":"string"}}],"responses":{"200":{"description":""},"400":{"$ref":"#/components/responses/BadRequest"},"401":{"$ref":"#/components/responses/Unauthorized"},"403":{"$ref":"#/components/responses/Forbidden"},"404":{"$ref":"#/components/responses/NotFound"},"429":{"$ref":"#/components/responses/TooManyRequests"},"500":{"$ref":"#/components/responses/ServerError"}},"security":[{"JWT":[]},{"ApiKey":[]}],"summary":"Get predictive insights for a specific deal","tags":["Deal Scoring"],"x-api-key-scopes":["*"]}},"/v1/deal-scoring/distribution":{"get":{"operationId":"dealScoring_getScoreDistribution","parameters":[],"responses":{"200":{"description":""},"401":{"$ref":"#/components/responses/Unauthorized"},"403":{"$ref":"#/components/responses/Forbidden"},"429":{"$ref":"#/components/responses/TooManyRequests"},"500":{"$ref":"#/components/responses/ServerError"}},"security":[{"JWT":[]},{"ApiKey":[]}],"summary":"Get score distribution across all open deals","tags":["Deal Scoring"],"x-api-key-scopes":["*"]}},"/v1/customer-360/{accountId}":{"get":{"operationId":"customer360_getCustomer360","parameters":[{"name":"accountId","required":true,"in":"path","schema":{"type":"string"}}],"responses":{"200":{"description":""},"400":{"$ref":"#/components/responses/BadRequest"},"401":{"$ref":"#/components/responses/Unauthorized"},"403":{"$ref":"#/components/responses/Forbidden"},"404":{"$ref":"#/components/responses/NotFound"},"429":{"$ref":"#/components/responses/TooManyRequests"},"500":{"$ref":"#/components/responses/ServerError"}},"security":[{"JWT":[]},{"ApiKey":[]}],"summary":"GET /customer-360/:accountId\nFull 360 view aggregating all data for an account","tags":["Customer 360"],"x-api-key-scopes":["*"]}},"/v1/customer-360/{accountId}/timeline":{"get":{"operationId":"customer360_getTimeline","parameters":[{"name":"accountId","required":true,"in":"path","schema":{"type":"string"}},{"name":"type","required":false,"in":"query","schema":{"type":"string"}},{"name":"page","required":false,"in":"query","schema":{"type":"string"}},{"name":"pageSize","required":false,"in":"query","schema":{"type":"string"}}],"responses":{"200":{"description":""},"400":{"$ref":"#/components/responses/BadRequest"},"401":{"$ref":"#/components/responses/Unauthorized"},"403":{"$ref":"#/components/responses/Forbidden"},"404":{"$ref":"#/components/responses/NotFound"},"429":{"$ref":"#/components/responses/TooManyRequests"},"500":{"$ref":"#/components/responses/ServerError"}},"security":[{"JWT":[]},{"ApiKey":[]}],"summary":"GET /customer-360/:accountId/timeline\nUnified timeline with optional type filter and pagination","tags":["Customer 360"],"x-api-key-scopes":["*"]}},"/v1/customer-360/{accountId}/contacts":{"get":{"operationId":"customer360_getContacts","parameters":[{"name":"accountId","required":true,"in":"path","schema":{"type":"string"}}],"responses":{"200":{"description":""},"400":{"$ref":"#/components/responses/BadRequest"},"401":{"$ref":"#/components/responses/Unauthorized"},"403":{"$ref":"#/components/responses/Forbidden"},"404":{"$ref":"#/components/responses/NotFound"},"429":{"$ref":"#/components/responses/TooManyRequests"},"500":{"$ref":"#/components/responses/ServerError"}},"security":[{"JWT":[]},{"ApiKey":[]}],"summary":"GET /customer-360/:accountId/contacts\nContacts with engagement scores","tags":["Customer 360"],"x-api-key-scopes":["*"]}},"/v1/customer-360/{accountId}/deals":{"get":{"operationId":"customer360_getDeals","parameters":[{"name":"accountId","required":true,"in":"path","schema":{"type":"string"}}],"responses":{"200":{"description":""},"400":{"$ref":"#/components/responses/BadRequest"},"401":{"$ref":"#/components/responses/Unauthorized"},"403":{"$ref":"#/components/responses/Forbidden"},"404":{"$ref":"#/components/responses/NotFound"},"429":{"$ref":"#/components/responses/TooManyRequests"},"500":{"$ref":"#/components/responses/ServerError"}},"security":[{"JWT":[]},{"ApiKey":[]}],"summary":"GET /customer-360/:accountId/deals\nDeal history for the account","tags":["Customer 360"],"x-api-key-scopes":["*"]}},"/v1/customer-360/{accountId}/documents":{"get":{"operationId":"customer360_getDocuments","parameters":[{"name":"accountId","required":true,"in":"path","schema":{"type":"string"}}],"responses":{"200":{"description":"","content":{"application/json":{"schema":{"type":"array","items":{"type":"object"}}}}},"400":{"$ref":"#/components/responses/BadRequest"},"401":{"$ref":"#/components/responses/Unauthorized"},"403":{"$ref":"#/components/responses/Forbidden"},"404":{"$ref":"#/components/responses/NotFound"},"429":{"$ref":"#/components/responses/TooManyRequests"},"500":{"$ref":"#/components/responses/ServerError"}},"security":[{"JWT":[]},{"ApiKey":[]}],"summary":"GET /customer-360/:accountId/documents\nRelated documents (quotes, contracts, orders)","tags":["Customer 360"],"x-api-key-scopes":["*"]}},"/v1/customer-360/{accountId}/signals":{"get":{"operationId":"customer360_getSignals","parameters":[{"name":"accountId","required":true,"in":"path","schema":{"type":"string"}}],"responses":{"200":{"description":""},"400":{"$ref":"#/components/responses/BadRequest"},"401":{"$ref":"#/components/responses/Unauthorized"},"403":{"$ref":"#/components/responses/Forbidden"},"404":{"$ref":"#/components/responses/NotFound"},"429":{"$ref":"#/components/responses/TooManyRequests"},"500":{"$ref":"#/components/responses/ServerError"}},"security":[{"JWT":[]},{"ApiKey":[]}],"summary":"GET /customer-360/:accountId/signals\nAccount signals and buying indicators","tags":["Customer 360"],"x-api-key-scopes":["*"]}},"/v1/account-health/dashboard":{"get":{"operationId":"accountHealth_getDashboard","parameters":[{"name":"status","required":false,"in":"query","schema":{"type":"string"}},{"name":"stage","required":false,"in":"query","schema":{"type":"string"}},{"name":"tier","required":false,"in":"query","schema":{"type":"string"}},{"name":"search","required":false,"in":"query","schema":{"type":"string"}}],"responses":{"200":{"description":""},"400":{"$ref":"#/components/responses/BadRequest"},"401":{"$ref":"#/components/responses/Unauthorized"},"403":{"$ref":"#/components/responses/Forbidden"},"429":{"$ref":"#/components/responses/TooManyRequests"},"500":{"$ref":"#/components/responses/ServerError"}},"security":[{"JWT":[]},{"ApiKey":[]}],"summary":"GET /account-health/dashboard\nHealth dashboard with filtering","tags":["Account Health"],"x-api-key-scopes":["*"]}},"/v1/account-health/distribution":{"get":{"operationId":"accountHealth_getDistribution","parameters":[],"responses":{"200":{"description":""},"401":{"$ref":"#/components/responses/Unauthorized"},"403":{"$ref":"#/components/responses/Forbidden"},"429":{"$ref":"#/components/responses/TooManyRequests"},"500":{"$ref":"#/components/responses/ServerError"}},"security":[{"JWT":[]},{"ApiKey":[]}],"summary":"GET /account-health/distribution\nHealth distribution chart data","tags":["Account Health"],"x-api-key-scopes":["*"]}},"/v1/account-health/churn/last-run":{"get":{"operationId":"accountHealth_getLastRecalculationRun","parameters":[],"responses":{"200":{"description":"","content":{"application/json":{"schema":{"type":"object"}}}},"401":{"$ref":"#/components/responses/Unauthorized"},"403":{"$ref":"#/components/responses/Forbidden"},"429":{"$ref":"#/components/responses/TooManyRequests"},"500":{"$ref":"#/components/responses/ServerError"}},"security":[{"JWT":[]},{"ApiKey":[]}],"summary":"Get last daily health recalculation result","tags":["Account Health"],"x-api-key-scopes":["*"]}},"/v1/account-health/churn/stats":{"get":{"operationId":"accountHealth_getSavePlanStats","parameters":[],"responses":{"200":{"description":""},"401":{"$ref":"#/components/responses/Unauthorized"},"403":{"$ref":"#/components/responses/Forbidden"},"429":{"$ref":"#/components/responses/TooManyRequests"},"500":{"$ref":"#/components/responses/ServerError"}},"security":[{"JWT":[]},{"ApiKey":[]}],"summary":"Get save plan outcome statistics","tags":["Account Health"],"x-api-key-scopes":["*"]}},"/v1/account-health/churn/recalculate":{"post":{"operationId":"accountHealth_triggerRecalculation","parameters":[{"$ref":"#/components/parameters/IdempotencyKey"}],"responses":{"201":{"description":"","content":{"application/json":{"schema":{"type":"object"}}}},"400":{"$ref":"#/components/responses/BadRequest"},"401":{"$ref":"#/components/responses/Unauthorized"},"403":{"$ref":"#/components/responses/Forbidden"},"409":{"$ref":"#/components/responses/Conflict"},"429":{"$ref":"#/components/responses/TooManyRequests"},"500":{"$ref":"#/components/responses/ServerError"}},"security":[{"JWT":[]},{"ApiKey":[]}],"summary":"Manually trigger daily health recalculation","tags":["Account Health"],"x-api-key-scopes":["*"]}},"/v1/account-health/{accountId}/health-score":{"get":{"operationId":"accountHealth_getHealthScore","parameters":[{"name":"accountId","required":true,"in":"path","schema":{"type":"string"}}],"responses":{"200":{"description":"","content":{"application/json":{"schema":{"type":"object"}}}},"400":{"$ref":"#/components/responses/BadRequest"},"401":{"$ref":"#/components/responses/Unauthorized"},"403":{"$ref":"#/components/responses/Forbidden"},"404":{"$ref":"#/components/responses/NotFound"},"429":{"$ref":"#/components/responses/TooManyRequests"},"500":{"$ref":"#/components/responses/ServerError"}},"security":[{"JWT":[]},{"ApiKey":[]}],"summary":"Calculate comprehensive health score with component breakdown","tags":["Account Health"],"x-api-key-scopes":["*"]}},"/v1/account-health/{accountId}/churn-prediction":{"get":{"operationId":"accountHealth_getChurnPrediction","parameters":[{"name":"accountId","required":true,"in":"path","schema":{"type":"string"}}],"responses":{"200":{"description":"","content":{"application/json":{"schema":{"type":"object"}}}},"400":{"$ref":"#/components/responses/BadRequest"},"401":{"$ref":"#/components/responses/Unauthorized"},"403":{"$ref":"#/components/responses/Forbidden"},"404":{"$ref":"#/components/responses/NotFound"},"429":{"$ref":"#/components/responses/TooManyRequests"},"500":{"$ref":"#/components/responses/ServerError"}},"security":[{"JWT":[]},{"ApiKey":[]}],"summary":"Predict churn probability with signals and historical comparison","tags":["Account Health"],"x-api-key-scopes":["*"]}},"/v1/account-health/{accountId}/save-plan":{"post":{"operationId":"accountHealth_generateSavePlan","parameters":[{"name":"accountId","required":true,"in":"path","schema":{"type":"string"}},{"$ref":"#/components/parameters/IdempotencyKey"}],"responses":{"201":{"description":"","content":{"application/json":{"schema":{"type":"object"}}}},"400":{"$ref":"#/components/responses/BadRequest"},"401":{"$ref":"#/components/responses/Unauthorized"},"403":{"$ref":"#/components/responses/Forbidden"},"404":{"$ref":"#/components/responses/NotFound"},"409":{"$ref":"#/components/responses/Conflict"},"429":{"$ref":"#/components/responses/TooManyRequests"},"500":{"$ref":"#/components/responses/ServerError"}},"security":[{"JWT":[]},{"ApiKey":[]}],"summary":"Generate AI-powered save plan with automated task creation","tags":["Account Health"],"x-api-key-scopes":["*"]},"get":{"operationId":"accountHealth_getActiveSavePlan","parameters":[{"name":"accountId","required":true,"in":"path","schema":{"type":"string"}}],"responses":{"200":{"description":"","content":{"application/json":{"schema":{"type":"object"}}}},"400":{"$ref":"#/components/responses/BadRequest"},"401":{"$ref":"#/components/responses/Unauthorized"},"403":{"$ref":"#/components/responses/Forbidden"},"404":{"$ref":"#/components/responses/NotFound"},"429":{"$ref":"#/components/responses/TooManyRequests"},"500":{"$ref":"#/components/responses/ServerError"}},"security":[{"JWT":[]},{"ApiKey":[]}],"summary":"Get the current active save plan for an account","tags":["Account Health"],"x-api-key-scopes":["*"]}},"/v1/account-health/{accountId}/save-plan/outcome":{"post":{"operationId":"accountHealth_trackSavePlanOutcome","parameters":[{"name":"accountId","required":true,"in":"path","schema":{"type":"string"}},{"$ref":"#/components/parameters/IdempotencyKey"}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/TrackSavePlanOutcomeBody"}}}},"responses":{"201":{"description":""},"400":{"$ref":"#/components/responses/BadRequest"},"401":{"$ref":"#/components/responses/Unauthorized"},"403":{"$ref":"#/components/responses/Forbidden"},"404":{"$ref":"#/components/responses/NotFound"},"409":{"$ref":"#/components/responses/Conflict"},"429":{"$ref":"#/components/responses/TooManyRequests"},"500":{"$ref":"#/components/responses/ServerError"}},"security":[{"JWT":[]},{"ApiKey":[]}],"summary":"Track save plan outcome (recovered/churned/still at risk)","tags":["Account Health"],"x-api-key-scopes":["*"]}},"/v1/account-health/{accountId}":{"get":{"operationId":"accountHealth_getAccountHealth","parameters":[{"name":"accountId","required":true,"in":"path","schema":{"type":"string"}}],"responses":{"200":{"description":"","content":{"application/json":{"schema":{"type":"object"}}}},"400":{"$ref":"#/components/responses/BadRequest"},"401":{"$ref":"#/components/responses/Unauthorized"},"403":{"$ref":"#/components/responses/Forbidden"},"404":{"$ref":"#/components/responses/NotFound"},"429":{"$ref":"#/components/responses/TooManyRequests"},"500":{"$ref":"#/components/responses/ServerError"}},"security":[{"JWT":[]},{"ApiKey":[]}],"tags":["Account Health"],"summary":"Get account health","x-api-key-scopes":["*"]}},"/v1/forecast-intelligence":{"get":{"operationId":"forecastIntelligence_getForecastIntelligence","parameters":[{"name":"quarter","required":false,"in":"query","description":"Fiscal quarter (1-4)","schema":{"type":"number"}},{"name":"year","required":false,"in":"query","description":"Fiscal year","schema":{"type":"number"}}],"responses":{"200":{"description":"","content":{"application/json":{"schema":{"type":"object"}}}},"400":{"$ref":"#/components/responses/BadRequest"},"401":{"$ref":"#/components/responses/Unauthorized"},"403":{"$ref":"#/components/responses/Forbidden"},"429":{"$ref":"#/components/responses/TooManyRequests"},"500":{"$ref":"#/components/responses/ServerError"}},"security":[{"JWT":[]},{"ApiKey":[]}],"summary":"Get full forecast intelligence dashboard data","tags":["Forecast Intelligence"],"x-api-key-scopes":["*"]}},"/v1/forecast-intelligence/explain":{"get":{"operationId":"forecastIntelligence_explain","parameters":[{"name":"quarter","required":false,"in":"query","schema":{"type":"number"}},{"name":"year","required":false,"in":"query","schema":{"type":"number"}}],"responses":{"200":{"description":"","content":{"application/json":{"schema":{"type":"object"}}}},"400":{"$ref":"#/components/responses/BadRequest"},"401":{"$ref":"#/components/responses/Unauthorized"},"403":{"$ref":"#/components/responses/Forbidden"},"429":{"$ref":"#/components/responses/TooManyRequests"},"500":{"$ref":"#/components/responses/ServerError"}},"security":[{"JWT":[]},{"ApiKey":[]}],"summary":"Explain the forecast figures from data","tags":["Forecast Intelligence"],"x-api-key-scopes":["*"]}},"/v1/forecast-intelligence/explain/narrative":{"post":{"operationId":"forecastIntelligence_explainNarrative","parameters":[{"name":"quarter","required":false,"in":"query","schema":{"type":"number"}},{"name":"year","required":false,"in":"query","schema":{"type":"number"}},{"$ref":"#/components/parameters/IdempotencyKey"}],"responses":{"201":{"description":""},"400":{"$ref":"#/components/responses/BadRequest"},"401":{"$ref":"#/components/responses/Unauthorized"},"403":{"$ref":"#/components/responses/Forbidden"},"409":{"$ref":"#/components/responses/Conflict"},"429":{"$ref":"#/components/responses/TooManyRequests"},"500":{"$ref":"#/components/responses/ServerError"}},"security":[{"JWT":[]},{"ApiKey":[]}],"summary":"AI narrative for the forecast explanation","tags":["Forecast Intelligence"],"x-api-key-scopes":["*"]}},"/v1/forecast-intelligence/predict":{"get":{"operationId":"forecastIntelligence_generateForecast","parameters":[{"name":"quarter","required":false,"in":"query","description":"Fiscal quarter (1-4)","schema":{"type":"number"}},{"name":"year","required":false,"in":"query","description":"Fiscal year","schema":{"type":"number"}}],"responses":{"200":{"description":"","content":{"application/json":{"schema":{"type":"object"}}}},"400":{"$ref":"#/components/responses/BadRequest"},"401":{"$ref":"#/components/responses/Unauthorized"},"403":{"$ref":"#/components/responses/Forbidden"},"429":{"$ref":"#/components/responses/TooManyRequests"},"500":{"$ref":"#/components/responses/ServerError"}},"security":[{"JWT":[]},{"ApiKey":[]}],"summary":"Generate predictive forecast with confidence intervals","tags":["Forecast Intelligence"],"x-api-key-scopes":["*"]}},"/v1/forecast-intelligence/accuracy":{"get":{"operationId":"forecastIntelligence_forecastAccuracy","parameters":[{"name":"lookbackQuarters","required":false,"in":"query","description":"Number of past quarters to analyze (default 6)","schema":{"type":"number"}}],"responses":{"200":{"description":""},"400":{"$ref":"#/components/responses/BadRequest"},"401":{"$ref":"#/components/responses/Unauthorized"},"403":{"$ref":"#/components/responses/Forbidden"},"429":{"$ref":"#/components/responses/TooManyRequests"},"500":{"$ref":"#/components/responses/ServerError"}},"security":[{"JWT":[]},{"ApiKey":[]}],"summary":"Forecast accuracy over time — predicted vs actual","tags":["Forecast Intelligence"],"x-api-key-scopes":["*"]}},"/v1/forecast-intelligence/waterfall":{"get":{"operationId":"forecastIntelligence_forecastWaterfall","parameters":[{"name":"quarter","required":false,"in":"query","description":"Fiscal quarter (1-4)","schema":{"type":"number"}},{"name":"year","required":false,"in":"query","description":"Fiscal year","schema":{"type":"number"}}],"responses":{"200":{"description":"","content":{"application/json":{"schema":{"type":"array","items":{"type":"object"}}}}},"400":{"$ref":"#/components/responses/BadRequest"},"401":{"$ref":"#/components/responses/Unauthorized"},"403":{"$ref":"#/components/responses/Forbidden"},"429":{"$ref":"#/components/responses/TooManyRequests"},"500":{"$ref":"#/components/responses/ServerError"}},"security":[{"JWT":[]},{"ApiKey":[]}],"summary":"Forecast waterfall — week-over-week changes","tags":["Forecast Intelligence"],"x-api-key-scopes":["*"]}},"/v1/forecast-intelligence/gap-analysis":{"get":{"operationId":"forecastIntelligence_gapAnalysis","parameters":[{"name":"quarter","required":false,"in":"query","description":"Fiscal quarter (1-4)","schema":{"type":"number"}},{"name":"year","required":false,"in":"query","description":"Fiscal year","schema":{"type":"number"}}],"responses":{"200":{"description":""},"400":{"$ref":"#/components/responses/BadRequest"},"401":{"$ref":"#/components/responses/Unauthorized"},"403":{"$ref":"#/components/responses/Forbidden"},"429":{"$ref":"#/components/responses/TooManyRequests"},"500":{"$ref":"#/components/responses/ServerError"}},"security":[{"JWT":[]},{"ApiKey":[]}],"summary":"Gap analysis — quota vs forecast gap per rep","tags":["Forecast Intelligence"],"x-api-key-scopes":["*"]}},"/v1/forecast-intelligence/deal-risks":{"get":{"operationId":"forecastIntelligence_dealRiskFlags","parameters":[{"name":"quarter","required":false,"in":"query","description":"Fiscal quarter (1-4)","schema":{"type":"number"}},{"name":"year","required":false,"in":"query","description":"Fiscal year","schema":{"type":"number"}}],"responses":{"200":{"description":"","content":{"application/json":{"schema":{"type":"array","items":{"type":"object"}}}}},"400":{"$ref":"#/components/responses/BadRequest"},"401":{"$ref":"#/components/responses/Unauthorized"},"403":{"$ref":"#/components/responses/Forbidden"},"429":{"$ref":"#/components/responses/TooManyRequests"},"500":{"$ref":"#/components/responses/ServerError"}},"security":[{"JWT":[]},{"ApiKey":[]}],"summary":"Deal risk flags — identify at-risk deals","tags":["Forecast Intelligence"],"x-api-key-scopes":["*"]}},"/v1/analytics/conversation-intelligence/metrics":{"get":{"operationId":"conversationIntelligence_getMetrics","parameters":[{"name":"repId","required":false,"in":"query","schema":{"type":"string"}},{"name":"dateRange","required":false,"in":"query","schema":{"type":"string"}},{"name":"startDate","required":false,"in":"query","schema":{"type":"string"}},{"name":"endDate","required":false,"in":"query","schema":{"type":"string"}}],"responses":{"200":{"description":"","content":{"application/json":{"schema":{"type":"object"}}}},"400":{"$ref":"#/components/responses/BadRequest"},"401":{"$ref":"#/components/responses/Unauthorized"},"403":{"$ref":"#/components/responses/Forbidden"},"429":{"$ref":"#/components/responses/TooManyRequests"},"500":{"$ref":"#/components/responses/ServerError"}},"security":[{"JWT":[]},{"ApiKey":[]}],"summary":"GET /analytics/conversation-intelligence/metrics\nReturns talk/listen ratios, filler words, competitor mentions,\nquestion/statement ratios, price sensitivity signals, and rep scorecards.","tags":["Conversation Intelligence"],"x-api-key-scopes":["*"]}},"/v1/analytics/conversation-intelligence/rep-profiles":{"get":{"operationId":"conversationIntelligence_getRepProfiles","parameters":[{"name":"repId","required":false,"in":"query","schema":{"type":"string"}},{"name":"dateRange","required":false,"in":"query","schema":{"type":"string"}},{"name":"startDate","required":false,"in":"query","schema":{"type":"string"}},{"name":"endDate","required":false,"in":"query","schema":{"type":"string"}}],"responses":{"200":{"description":"","content":{"application/json":{"schema":{"type":"array","items":{"type":"object"}}}}},"400":{"$ref":"#/components/responses/BadRequest"},"401":{"$ref":"#/components/responses/Unauthorized"},"403":{"$ref":"#/components/responses/Forbidden"},"429":{"$ref":"#/components/responses/TooManyRequests"},"500":{"$ref":"#/components/responses/ServerError"}},"security":[{"JWT":[]},{"ApiKey":[]}],"summary":"GET /analytics/conversation-intelligence/rep-profiles\nReturns coaching profiles for all reps in the organization.","tags":["Conversation Intelligence"],"x-api-key-scopes":["*"]}},"/v1/analytics/conversation-intelligence/rep-profiles/{repId}":{"get":{"operationId":"conversationIntelligence_getRepProfile","parameters":[{"name":"repId","required":true,"in":"path","schema":{"type":"string"}}],"responses":{"200":{"description":"","content":{"application/json":{"schema":{"type":"object"}}}},"400":{"$ref":"#/components/responses/BadRequest"},"401":{"$ref":"#/components/responses/Unauthorized"},"403":{"$ref":"#/components/responses/Forbidden"},"404":{"$ref":"#/components/responses/NotFound"},"429":{"$ref":"#/components/responses/TooManyRequests"},"500":{"$ref":"#/components/responses/ServerError"}},"security":[{"JWT":[]},{"ApiKey":[]}],"summary":"GET /analytics/conversation-intelligence/rep-profiles/:repId\nReturns detailed coaching profile for a single rep.","tags":["Conversation Intelligence"],"x-api-key-scopes":["*"]}},"/v1/deal-progression/rules":{"get":{"operationId":"dealProgression_listRules","parameters":[],"responses":{"200":{"description":""},"401":{"$ref":"#/components/responses/Unauthorized"},"403":{"$ref":"#/components/responses/Forbidden"},"429":{"$ref":"#/components/responses/TooManyRequests"},"500":{"$ref":"#/components/responses/ServerError"}},"security":[{"JWT":[]},{"ApiKey":[]}],"tags":["Deal Progression"],"summary":"List rules","x-api-key-scopes":["*"]},"post":{"operationId":"dealProgression_createRule","parameters":[{"$ref":"#/components/parameters/IdempotencyKey"}],"responses":{"201":{"description":""},"400":{"$ref":"#/components/responses/BadRequest"},"401":{"$ref":"#/components/responses/Unauthorized"},"403":{"$ref":"#/components/responses/Forbidden"},"409":{"$ref":"#/components/responses/Conflict"},"429":{"$ref":"#/components/responses/TooManyRequests"},"500":{"$ref":"#/components/responses/ServerError"}},"security":[{"JWT":[]},{"ApiKey":[]}],"tags":["Deal Progression"],"summary":"Create rule","x-api-key-scopes":["*"]}},"/v1/deal-progression/rules/{id}":{"get":{"operationId":"dealProgression_getRule","parameters":[{"name":"id","required":true,"in":"path","schema":{"type":"string"}}],"responses":{"200":{"description":""},"400":{"$ref":"#/components/responses/BadRequest"},"401":{"$ref":"#/components/responses/Unauthorized"},"403":{"$ref":"#/components/responses/Forbidden"},"404":{"$ref":"#/components/responses/NotFound"},"429":{"$ref":"#/components/responses/TooManyRequests"},"500":{"$ref":"#/components/responses/ServerError"}},"security":[{"JWT":[]},{"ApiKey":[]}],"tags":["Deal Progression"],"summary":"Get rule","x-api-key-scopes":["*"]},"patch":{"operationId":"dealProgression_updateRule","parameters":[{"name":"id","required":true,"in":"path","schema":{"type":"string"}},{"$ref":"#/components/parameters/IdempotencyKey"}],"responses":{"200":{"description":""},"400":{"$ref":"#/components/responses/BadRequest"},"401":{"$ref":"#/components/responses/Unauthorized"},"403":{"$ref":"#/components/responses/Forbidden"},"404":{"$ref":"#/components/responses/NotFound"},"409":{"$ref":"#/components/responses/Conflict"},"429":{"$ref":"#/components/responses/TooManyRequests"},"500":{"$ref":"#/components/responses/ServerError"}},"security":[{"JWT":[]},{"ApiKey":[]}],"tags":["Deal Progression"],"summary":"Update rule","x-api-key-scopes":["*"]},"delete":{"operationId":"dealProgression_deleteRule","parameters":[{"name":"id","required":true,"in":"path","schema":{"type":"string"}}],"responses":{"200":{"description":""},"400":{"$ref":"#/components/responses/BadRequest"},"401":{"$ref":"#/components/responses/Unauthorized"},"403":{"$ref":"#/components/responses/Forbidden"},"404":{"$ref":"#/components/responses/NotFound"},"429":{"$ref":"#/components/responses/TooManyRequests"},"500":{"$ref":"#/components/responses/ServerError"}},"security":[{"JWT":[]},{"ApiKey":[]}],"tags":["Deal Progression"],"summary":"Delete rule","x-api-key-scopes":["*"]}},"/v1/deal-progression/executions":{"get":{"operationId":"dealProgression_getExecutions","parameters":[{"name":"status","required":false,"in":"query","schema":{"type":"string"}},{"name":"ruleId","required":false,"in":"query","schema":{"type":"string"}},{"name":"dealId","required":false,"in":"query","schema":{"type":"string"}},{"name":"limit","required":false,"in":"query","schema":{"type":"string"}}],"responses":{"200":{"description":""},"400":{"$ref":"#/components/responses/BadRequest"},"401":{"$ref":"#/components/responses/Unauthorized"},"403":{"$ref":"#/components/responses/Forbidden"},"429":{"$ref":"#/components/responses/TooManyRequests"},"500":{"$ref":"#/components/responses/ServerError"}},"security":[{"JWT":[]},{"ApiKey":[]}],"tags":["Deal Progression"],"summary":"Get executions","x-api-key-scopes":["*"]}},"/v1/deal-progression/executions/{id}":{"get":{"operationId":"dealProgression_getExecution","parameters":[{"name":"id","required":true,"in":"path","schema":{"type":"string"}}],"responses":{"200":{"description":""},"400":{"$ref":"#/components/responses/BadRequest"},"401":{"$ref":"#/components/responses/Unauthorized"},"403":{"$ref":"#/components/responses/Forbidden"},"404":{"$ref":"#/components/responses/NotFound"},"429":{"$ref":"#/components/responses/TooManyRequests"},"500":{"$ref":"#/components/responses/ServerError"}},"security":[{"JWT":[]},{"ApiKey":[]}],"tags":["Deal Progression"],"summary":"Get execution","x-api-key-scopes":["*"]}},"/v1/deal-progression/executions/{id}/approve":{"post":{"operationId":"dealProgression_approveExecution","parameters":[{"name":"id","required":true,"in":"path","schema":{"type":"string"}},{"$ref":"#/components/parameters/IdempotencyKey"}],"responses":{"201":{"description":""},"400":{"$ref":"#/components/responses/BadRequest"},"401":{"$ref":"#/components/responses/Unauthorized"},"403":{"$ref":"#/components/responses/Forbidden"},"404":{"$ref":"#/components/responses/NotFound"},"409":{"$ref":"#/components/responses/Conflict"},"429":{"$ref":"#/components/responses/TooManyRequests"},"500":{"$ref":"#/components/responses/ServerError"}},"security":[{"JWT":[]},{"ApiKey":[]}],"tags":["Deal Progression"],"summary":"Approve execution","x-api-key-scopes":["*"]}},"/v1/deal-progression/executions/{id}/override":{"post":{"operationId":"dealProgression_overrideExecution","parameters":[{"name":"id","required":true,"in":"path","schema":{"type":"string"}},{"$ref":"#/components/parameters/IdempotencyKey"}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/OverrideExecutionBody"}}}},"responses":{"201":{"description":""},"400":{"$ref":"#/components/responses/BadRequest"},"401":{"$ref":"#/components/responses/Unauthorized"},"403":{"$ref":"#/components/responses/Forbidden"},"404":{"$ref":"#/components/responses/NotFound"},"409":{"$ref":"#/components/responses/Conflict"},"429":{"$ref":"#/components/responses/TooManyRequests"},"500":{"$ref":"#/components/responses/ServerError"}},"security":[{"JWT":[]},{"ApiKey":[]}],"tags":["Deal Progression"],"summary":"Override execution","x-api-key-scopes":["*"]}},"/v1/deal-progression/config":{"get":{"operationId":"dealProgression_getConfig","parameters":[],"responses":{"200":{"description":""},"401":{"$ref":"#/components/responses/Unauthorized"},"403":{"$ref":"#/components/responses/Forbidden"},"429":{"$ref":"#/components/responses/TooManyRequests"},"500":{"$ref":"#/components/responses/ServerError"}},"security":[{"JWT":[]},{"ApiKey":[]}],"tags":["Deal Progression"],"summary":"Get config","x-api-key-scopes":["*"]},"patch":{"operationId":"dealProgression_updateConfig","parameters":[{"$ref":"#/components/parameters/IdempotencyKey"}],"responses":{"200":{"description":""},"400":{"$ref":"#/components/responses/BadRequest"},"401":{"$ref":"#/components/responses/Unauthorized"},"403":{"$ref":"#/components/responses/Forbidden"},"409":{"$ref":"#/components/responses/Conflict"},"429":{"$ref":"#/components/responses/TooManyRequests"},"500":{"$ref":"#/components/responses/ServerError"}},"security":[{"JWT":[]},{"ApiKey":[]}],"tags":["Deal Progression"],"summary":"Update config","x-api-key-scopes":["*"]}},"/v1/deal-progression/stats":{"get":{"operationId":"dealProgression_getStats","parameters":[],"responses":{"200":{"description":""},"401":{"$ref":"#/components/responses/Unauthorized"},"403":{"$ref":"#/components/responses/Forbidden"},"429":{"$ref":"#/components/responses/TooManyRequests"},"500":{"$ref":"#/components/responses/ServerError"}},"security":[{"JWT":[]},{"ApiKey":[]}],"tags":["Deal Progression"],"summary":"Get stats","x-api-key-scopes":["*"]}},"/v1/deal-progression/trigger":{"post":{"operationId":"dealProgression_triggerManual","parameters":[{"$ref":"#/components/parameters/IdempotencyKey"}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/TriggerProgressionBody"}}}},"responses":{"201":{"description":""},"400":{"$ref":"#/components/responses/BadRequest"},"401":{"$ref":"#/components/responses/Unauthorized"},"403":{"$ref":"#/components/responses/Forbidden"},"409":{"$ref":"#/components/responses/Conflict"},"429":{"$ref":"#/components/responses/TooManyRequests"},"500":{"$ref":"#/components/responses/ServerError"}},"security":[{"JWT":[]},{"ApiKey":[]}],"tags":["Deal Progression"],"summary":"Trigger manual","x-api-key-scopes":["*"]}},"/v1/pipeline-simulation/scenarios":{"get":{"operationId":"pipelineSimulation_listScenarios","parameters":[],"responses":{"200":{"description":""},"401":{"$ref":"#/components/responses/Unauthorized"},"403":{"$ref":"#/components/responses/Forbidden"},"429":{"$ref":"#/components/responses/TooManyRequests"},"500":{"$ref":"#/components/responses/ServerError"}},"security":[{"JWT":[]},{"ApiKey":[]}],"tags":["Pipeline Simulation"],"summary":"List scenarios","x-api-key-scopes":["*"]},"post":{"operationId":"pipelineSimulation_createScenario","parameters":[{"$ref":"#/components/parameters/IdempotencyKey"}],"responses":{"201":{"description":""},"400":{"$ref":"#/components/responses/BadRequest"},"401":{"$ref":"#/components/responses/Unauthorized"},"403":{"$ref":"#/components/responses/Forbidden"},"409":{"$ref":"#/components/responses/Conflict"},"429":{"$ref":"#/components/responses/TooManyRequests"},"500":{"$ref":"#/components/responses/ServerError"}},"security":[{"JWT":[]},{"ApiKey":[]}],"tags":["Pipeline Simulation"],"summary":"Create scenario","x-api-key-scopes":["*"]}},"/v1/pipeline-simulation/scenarios/{id}/run":{"post":{"operationId":"pipelineSimulation_runScenario","parameters":[{"name":"id","required":true,"in":"path","schema":{"type":"string"}},{"$ref":"#/components/parameters/IdempotencyKey"}],"responses":{"201":{"description":""},"400":{"$ref":"#/components/responses/BadRequest"},"401":{"$ref":"#/components/responses/Unauthorized"},"403":{"$ref":"#/components/responses/Forbidden"},"404":{"$ref":"#/components/responses/NotFound"},"409":{"$ref":"#/components/responses/Conflict"},"429":{"$ref":"#/components/responses/TooManyRequests"},"500":{"$ref":"#/components/responses/ServerError"}},"security":[{"JWT":[]},{"ApiKey":[]}],"tags":["Pipeline Simulation"],"summary":"Run scenario","x-api-key-scopes":["*"]}},"/v1/pipeline-simulation/baseline":{"get":{"operationId":"pipelineSimulation_getBaseline","parameters":[],"responses":{"200":{"description":""},"401":{"$ref":"#/components/responses/Unauthorized"},"403":{"$ref":"#/components/responses/Forbidden"},"429":{"$ref":"#/components/responses/TooManyRequests"},"500":{"$ref":"#/components/responses/ServerError"}},"security":[{"JWT":[]},{"ApiKey":[]}],"tags":["Pipeline Simulation"],"summary":"Get baseline","x-api-key-scopes":["*"]}},"/v1/pipeline-simulation/stats":{"get":{"operationId":"pipelineSimulation_getStats","parameters":[],"responses":{"200":{"description":""},"401":{"$ref":"#/components/responses/Unauthorized"},"403":{"$ref":"#/components/responses/Forbidden"},"429":{"$ref":"#/components/responses/TooManyRequests"},"500":{"$ref":"#/components/responses/ServerError"}},"security":[{"JWT":[]},{"ApiKey":[]}],"tags":["Pipeline Simulation"],"summary":"Get stats","x-api-key-scopes":["*"]}},"/v1/pipeline-simulation/compare":{"post":{"operationId":"pipelineSimulation_compareScenarios","parameters":[{"$ref":"#/components/parameters/IdempotencyKey"}],"responses":{"201":{"description":""},"400":{"$ref":"#/components/responses/BadRequest"},"401":{"$ref":"#/components/responses/Unauthorized"},"403":{"$ref":"#/components/responses/Forbidden"},"409":{"$ref":"#/components/responses/Conflict"},"429":{"$ref":"#/components/responses/TooManyRequests"},"500":{"$ref":"#/components/responses/ServerError"}},"security":[{"JWT":[]},{"ApiKey":[]}],"tags":["Pipeline Simulation"],"summary":"Compare scenarios","x-api-key-scopes":["*"]}},"/v1/pipeline-simulation/scenarios/{id}":{"get":{"operationId":"pipelineSimulation_getScenario","parameters":[{"name":"id","required":true,"in":"path","schema":{"type":"string"}}],"responses":{"200":{"description":""},"400":{"$ref":"#/components/responses/BadRequest"},"401":{"$ref":"#/components/responses/Unauthorized"},"403":{"$ref":"#/components/responses/Forbidden"},"404":{"$ref":"#/components/responses/NotFound"},"429":{"$ref":"#/components/responses/TooManyRequests"},"500":{"$ref":"#/components/responses/ServerError"}},"security":[{"JWT":[]},{"ApiKey":[]}],"tags":["Pipeline Simulation"],"summary":"Get scenario","x-api-key-scopes":["*"]},"delete":{"operationId":"pipelineSimulation_deleteScenario","parameters":[{"name":"id","required":true,"in":"path","schema":{"type":"string"}}],"responses":{"200":{"description":""},"400":{"$ref":"#/components/responses/BadRequest"},"401":{"$ref":"#/components/responses/Unauthorized"},"403":{"$ref":"#/components/responses/Forbidden"},"404":{"$ref":"#/components/responses/NotFound"},"429":{"$ref":"#/components/responses/TooManyRequests"},"500":{"$ref":"#/components/responses/ServerError"}},"security":[{"JWT":[]},{"ApiKey":[]}],"tags":["Pipeline Simulation"],"summary":"Delete scenario","x-api-key-scopes":["*"]}},"/v1/buyer-intent/scores":{"get":{"operationId":"buyerIntent_getScores","parameters":[],"responses":{"200":{"description":""},"401":{"$ref":"#/components/responses/Unauthorized"},"403":{"$ref":"#/components/responses/Forbidden"},"429":{"$ref":"#/components/responses/TooManyRequests"},"500":{"$ref":"#/components/responses/ServerError"}},"security":[{"JWT":[]},{"ApiKey":[]}],"summary":"Get all buyer intent scores (multi-signal scoring)","tags":["Buyer Intent"],"x-api-key-scopes":["*"]}},"/v1/buyer-intent/scores/{contactId}":{"get":{"operationId":"buyerIntent_getContactScore","parameters":[{"name":"contactId","required":true,"in":"path","description":"Contact ID","schema":{"type":"string"}}],"responses":{"200":{"description":"","content":{"application/json":{"schema":{"type":"object"}}}},"400":{"$ref":"#/components/responses/BadRequest"},"401":{"$ref":"#/components/responses/Unauthorized"},"403":{"$ref":"#/components/responses/Forbidden"},"404":{"$ref":"#/components/responses/NotFound"},"429":{"$ref":"#/components/responses/TooManyRequests"},"500":{"$ref":"#/components/responses/ServerError"}},"security":[{"JWT":[]},{"ApiKey":[]}],"summary":"Get buyer intent score for a specific contact","tags":["Buyer Intent"],"x-api-key-scopes":["*"]}},"/v1/buyer-intent/accounts/{accountId}":{"get":{"operationId":"buyerIntent_getAccountIntent","parameters":[{"name":"accountId","required":true,"in":"path","description":"Account ID","schema":{"type":"string"}}],"responses":{"200":{"description":"","content":{"application/json":{"schema":{"type":"object"}}}},"400":{"$ref":"#/components/responses/BadRequest"},"401":{"$ref":"#/components/responses/Unauthorized"},"403":{"$ref":"#/components/responses/Forbidden"},"404":{"$ref":"#/components/responses/NotFound"},"429":{"$ref":"#/components/responses/TooManyRequests"},"500":{"$ref":"#/components/responses/ServerError"}},"security":[{"JWT":[]},{"ApiKey":[]}],"summary":"Get full intent signals breakdown for an account","tags":["Buyer Intent"],"x-api-key-scopes":["*"]}},"/v1/buyer-intent/accounts/{accountId}/history":{"get":{"operationId":"buyerIntent_getAccountHistory","parameters":[{"name":"accountId","required":true,"in":"path","description":"Account ID","schema":{"type":"string"}},{"name":"days","required":false,"in":"query","description":"Number of days of history (default 30, max 90)","schema":{"type":"string"}}],"responses":{"200":{"description":""},"400":{"$ref":"#/components/responses/BadRequest"},"401":{"$ref":"#/components/responses/Unauthorized"},"403":{"$ref":"#/components/responses/Forbidden"},"404":{"$ref":"#/components/responses/NotFound"},"429":{"$ref":"#/components/responses/TooManyRequests"},"500":{"$ref":"#/components/responses/ServerError"}},"security":[{"JWT":[]},{"ApiKey":[]}],"summary":"Get intent score history for an account (trend data)","tags":["Buyer Intent"],"x-api-key-scopes":["*"]}},"/v1/buyer-intent/accounts/{accountId}/recalculate":{"post":{"operationId":"buyerIntent_recalculateAccount","parameters":[{"name":"accountId","required":true,"in":"path","description":"Account ID","schema":{"type":"string"}},{"$ref":"#/components/parameters/IdempotencyKey"}],"responses":{"201":{"description":"","content":{"application/json":{"schema":{"type":"object"}}}},"400":{"$ref":"#/components/responses/BadRequest"},"401":{"$ref":"#/components/responses/Unauthorized"},"403":{"$ref":"#/components/responses/Forbidden"},"404":{"$ref":"#/components/responses/NotFound"},"409":{"$ref":"#/components/responses/Conflict"},"429":{"$ref":"#/components/responses/TooManyRequests"},"500":{"$ref":"#/components/responses/ServerError"}},"security":[{"JWT":[]},{"ApiKey":[]}],"summary":"Trigger on-demand intent score recalculation for an account","tags":["Buyer Intent"],"x-api-key-scopes":["*"]}},"/v1/buyer-intent/stats":{"get":{"operationId":"buyerIntent_getDashboardStats","parameters":[],"responses":{"200":{"description":""},"401":{"$ref":"#/components/responses/Unauthorized"},"403":{"$ref":"#/components/responses/Forbidden"},"429":{"$ref":"#/components/responses/TooManyRequests"},"500":{"$ref":"#/components/responses/ServerError"}},"security":[{"JWT":[]},{"ApiKey":[]}],"summary":"Get dashboard-level intent statistics","tags":["Buyer Intent"],"x-api-key-scopes":["*"]}},"/v1/buyer-intent/alerts":{"get":{"operationId":"buyerIntent_getAlerts","parameters":[],"responses":{"200":{"description":""},"401":{"$ref":"#/components/responses/Unauthorized"},"403":{"$ref":"#/components/responses/Forbidden"},"429":{"$ref":"#/components/responses/TooManyRequests"},"500":{"$ref":"#/components/responses/ServerError"}},"security":[{"JWT":[]},{"ApiKey":[]}],"summary":"Get intent alerts including surge detections","tags":["Buyer Intent"],"x-api-key-scopes":["*"]}},"/v1/buyer-intent/config":{"get":{"operationId":"buyerIntent_getConfig","parameters":[],"responses":{"200":{"description":""},"401":{"$ref":"#/components/responses/Unauthorized"},"403":{"$ref":"#/components/responses/Forbidden"},"429":{"$ref":"#/components/responses/TooManyRequests"},"500":{"$ref":"#/components/responses/ServerError"}},"security":[{"JWT":[]},{"ApiKey":[]}],"summary":"Get buyer intent scoring configuration","tags":["Buyer Intent"],"x-api-key-scopes":["*"]},"put":{"operationId":"buyerIntent_updateConfigPut","parameters":[],"responses":{"200":{"description":""},"400":{"$ref":"#/components/responses/BadRequest"},"401":{"$ref":"#/components/responses/Unauthorized"},"403":{"$ref":"#/components/responses/Forbidden"},"429":{"$ref":"#/components/responses/TooManyRequests"},"500":{"$ref":"#/components/responses/ServerError"}},"security":[{"JWT":[]},{"ApiKey":[]}],"summary":"Update buyer intent scoring configuration (full replace)","tags":["Buyer Intent"],"x-api-key-scopes":["*"]},"patch":{"operationId":"buyerIntent_updateConfig","parameters":[{"$ref":"#/components/parameters/IdempotencyKey"}],"responses":{"200":{"description":""},"400":{"$ref":"#/components/responses/BadRequest"},"401":{"$ref":"#/components/responses/Unauthorized"},"403":{"$ref":"#/components/responses/Forbidden"},"409":{"$ref":"#/components/responses/Conflict"},"429":{"$ref":"#/components/responses/TooManyRequests"},"500":{"$ref":"#/components/responses/ServerError"}},"security":[{"JWT":[]},{"ApiKey":[]}],"summary":"Partially update buyer intent scoring configuration","tags":["Buyer Intent"],"x-api-key-scopes":["*"]}},"/v1/buyer-intent/recalculate/{entityId}":{"post":{"operationId":"buyerIntent_recalculate","parameters":[{"name":"entityId","required":true,"in":"path","description":"Contact ID to recalculate","schema":{"type":"string"}},{"$ref":"#/components/parameters/IdempotencyKey"}],"responses":{"201":{"description":"","content":{"application/json":{"schema":{"type":"object"}}}},"400":{"$ref":"#/components/responses/BadRequest"},"401":{"$ref":"#/components/responses/Unauthorized"},"403":{"$ref":"#/components/responses/Forbidden"},"404":{"$ref":"#/components/responses/NotFound"},"409":{"$ref":"#/components/responses/Conflict"},"429":{"$ref":"#/components/responses/TooManyRequests"},"500":{"$ref":"#/components/responses/ServerError"}},"security":[{"JWT":[]},{"ApiKey":[]}],"summary":"Trigger recalculation for a contact (legacy endpoint)","tags":["Buyer Intent"],"x-api-key-scopes":["*"]}},"/v1/buyer-intent/top-prospects":{"get":{"operationId":"buyerIntent_getTopProspects","parameters":[{"name":"limit","required":false,"in":"query","description":"Number of results (default 50)","schema":{"type":"string"}}],"responses":{"200":{"description":""},"400":{"$ref":"#/components/responses/BadRequest"},"401":{"$ref":"#/components/responses/Unauthorized"},"403":{"$ref":"#/components/responses/Forbidden"},"429":{"$ref":"#/components/responses/TooManyRequests"},"500":{"$ref":"#/components/responses/ServerError"}},"security":[{"JWT":[]},{"ApiKey":[]}],"summary":"Get top prospects ranked by intent score","tags":["Buyer Intent"],"x-api-key-scopes":["*"]}},"/v1/objection-playbook/objections":{"get":{"operationId":"objectionPlaybook_listObjections","parameters":[{"name":"category","required":true,"in":"query","schema":{"type":"string"}},{"name":"search","required":true,"in":"query","schema":{"type":"string"}}],"responses":{"200":{"description":""},"400":{"$ref":"#/components/responses/BadRequest"},"401":{"$ref":"#/components/responses/Unauthorized"},"403":{"$ref":"#/components/responses/Forbidden"},"429":{"$ref":"#/components/responses/TooManyRequests"},"500":{"$ref":"#/components/responses/ServerError"}},"security":[{"JWT":[]},{"ApiKey":[]}],"tags":["Objection Playbook"],"summary":"List objections","x-api-key-scopes":["*"]}},"/v1/objection-playbook/objections/{id}":{"get":{"operationId":"objectionPlaybook_getObjection","parameters":[{"name":"id","required":true,"in":"path","schema":{"type":"string"}}],"responses":{"200":{"description":""},"400":{"$ref":"#/components/responses/BadRequest"},"401":{"$ref":"#/components/responses/Unauthorized"},"403":{"$ref":"#/components/responses/Forbidden"},"404":{"$ref":"#/components/responses/NotFound"},"429":{"$ref":"#/components/responses/TooManyRequests"},"500":{"$ref":"#/components/responses/ServerError"}},"security":[{"JWT":[]},{"ApiKey":[]}],"tags":["Objection Playbook"],"summary":"Get objection","x-api-key-scopes":["*"]}},"/v1/objection-playbook/detections":{"get":{"operationId":"objectionPlaybook_getDetections","parameters":[{"name":"opportunityId","required":true,"in":"query","schema":{"type":"string"}}],"responses":{"200":{"description":""},"400":{"$ref":"#/components/responses/BadRequest"},"401":{"$ref":"#/components/responses/Unauthorized"},"403":{"$ref":"#/components/responses/Forbidden"},"429":{"$ref":"#/components/responses/TooManyRequests"},"500":{"$ref":"#/components/responses/ServerError"}},"security":[{"JWT":[]},{"ApiKey":[]}],"tags":["Objection Playbook"],"summary":"Get detections","x-api-key-scopes":["*"]}},"/v1/objection-playbook/analytics":{"get":{"operationId":"objectionPlaybook_getAnalytics","parameters":[],"responses":{"200":{"description":""},"401":{"$ref":"#/components/responses/Unauthorized"},"403":{"$ref":"#/components/responses/Forbidden"},"429":{"$ref":"#/components/responses/TooManyRequests"},"500":{"$ref":"#/components/responses/ServerError"}},"security":[{"JWT":[]},{"ApiKey":[]}],"tags":["Objection Playbook"],"summary":"Get analytics","x-api-key-scopes":["*"]}},"/v1/objection-playbook/objections/top":{"get":{"operationId":"objectionPlaybook_getTopObjections","parameters":[{"name":"limit","required":true,"in":"query","schema":{"type":"string"}}],"responses":{"200":{"description":""},"400":{"$ref":"#/components/responses/BadRequest"},"401":{"$ref":"#/components/responses/Unauthorized"},"403":{"$ref":"#/components/responses/Forbidden"},"429":{"$ref":"#/components/responses/TooManyRequests"},"500":{"$ref":"#/components/responses/ServerError"}},"security":[{"JWT":[]},{"ApiKey":[]}],"tags":["Objection Playbook"],"summary":"Get top objections","x-api-key-scopes":["*"]}},"/v1/objection-playbook/objections/{id}/responses":{"get":{"operationId":"objectionPlaybook_getObjectionResponses","parameters":[{"name":"id","required":true,"in":"path","schema":{"type":"string"}}],"responses":{"200":{"description":""},"400":{"$ref":"#/components/responses/BadRequest"},"401":{"$ref":"#/components/responses/Unauthorized"},"403":{"$ref":"#/components/responses/Forbidden"},"404":{"$ref":"#/components/responses/NotFound"},"429":{"$ref":"#/components/responses/TooManyRequests"},"500":{"$ref":"#/components/responses/ServerError"}},"security":[{"JWT":[]},{"ApiKey":[]}],"tags":["Objection Playbook"],"summary":"Get objection responses","x-api-key-scopes":["*"]},"post":{"operationId":"objectionPlaybook_addObjectionResponse","parameters":[{"name":"id","required":true,"in":"path","schema":{"type":"string"}},{"$ref":"#/components/parameters/IdempotencyKey"}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/AddObjectionResponseBody"}}}},"responses":{"201":{"description":""},"400":{"$ref":"#/components/responses/BadRequest"},"401":{"$ref":"#/components/responses/Unauthorized"},"403":{"$ref":"#/components/responses/Forbidden"},"404":{"$ref":"#/components/responses/NotFound"},"409":{"$ref":"#/components/responses/Conflict"},"429":{"$ref":"#/components/responses/TooManyRequests"},"500":{"$ref":"#/components/responses/ServerError"}},"security":[{"JWT":[]},{"ApiKey":[]}],"tags":["Objection Playbook"],"summary":"Add objection response","x-api-key-scopes":["*"]}},"/v1/objection-playbook/generate-response":{"post":{"operationId":"objectionPlaybook_generateResponse","parameters":[{"$ref":"#/components/parameters/IdempotencyKey"}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/GenerateResponseBody"}}}},"responses":{"201":{"description":""},"400":{"$ref":"#/components/responses/BadRequest"},"401":{"$ref":"#/components/responses/Unauthorized"},"403":{"$ref":"#/components/responses/Forbidden"},"409":{"$ref":"#/components/responses/Conflict"},"429":{"$ref":"#/components/responses/TooManyRequests"},"500":{"$ref":"#/components/responses/ServerError"}},"security":[{"JWT":[]},{"ApiKey":[]}],"summary":"Generate AI response suggestions for an objection","tags":["Objection Playbook"],"x-api-key-scopes":["*"]}},"/v1/objection-playbook/detect":{"post":{"operationId":"objectionPlaybook_detectObjections","parameters":[{"$ref":"#/components/parameters/IdempotencyKey"}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"type":"object","properties":{"transcript":{"type":"string","description":"Call transcript or email body to analyze"}},"required":["transcript"]}}}},"responses":{"201":{"description":""},"400":{"$ref":"#/components/responses/BadRequest"},"401":{"$ref":"#/components/responses/Unauthorized"},"403":{"$ref":"#/components/responses/Forbidden"},"409":{"$ref":"#/components/responses/Conflict"},"429":{"$ref":"#/components/responses/TooManyRequests"},"500":{"$ref":"#/components/responses/ServerError"}},"security":[{"JWT":[]},{"ApiKey":[]}],"summary":"Detect objections from a transcript or email body using AI","tags":["Objection Playbook"],"x-api-key-scopes":["*"]}},"/v1/objection-playbook/suggest-response":{"post":{"operationId":"objectionPlaybook_suggestResponse","parameters":[{"$ref":"#/components/parameters/IdempotencyKey"}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"type":"object","properties":{"objectionId":{"type":"string","description":"ID of the detected objection"},"dealContext":{"type":"object","properties":{"stage":{"type":"string"},"value":{"type":"number"},"industry":{"type":"string"},"competitors":{"type":"array","items":{"type":"string"}},"accountName":{"type":"string"},"daysInStage":{"type":"number"}}}},"required":["objectionId"]}}}},"responses":{"201":{"description":""},"400":{"$ref":"#/components/responses/BadRequest"},"401":{"$ref":"#/components/responses/Unauthorized"},"403":{"$ref":"#/components/responses/Forbidden"},"409":{"$ref":"#/components/responses/Conflict"},"429":{"$ref":"#/components/responses/TooManyRequests"},"500":{"$ref":"#/components/responses/ServerError"}},"security":[{"JWT":[]},{"ApiKey":[]}],"summary":"Get AI-powered response suggestions for a detected objection","tags":["Objection Playbook"],"x-api-key-scopes":["*"]}},"/v1/objection-playbook/record-outcome":{"post":{"operationId":"objectionPlaybook_recordOutcome","parameters":[{"$ref":"#/components/parameters/IdempotencyKey"}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"type":"object","properties":{"objectionId":{"type":"string","description":"ID of the objection"},"responseUsed":{"type":"string","description":"Text of the response that was used"},"dealProgressed":{"type":"boolean","description":"Whether the deal moved forward after this response"},"category":{"type":"string","description":"Optional: objection category"}},"required":["objectionId","responseUsed","dealProgressed"]}}}},"responses":{"201":{"description":""},"400":{"$ref":"#/components/responses/BadRequest"},"401":{"$ref":"#/components/responses/Unauthorized"},"403":{"$ref":"#/components/responses/Forbidden"},"409":{"$ref":"#/components/responses/Conflict"},"429":{"$ref":"#/components/responses/TooManyRequests"},"500":{"$ref":"#/components/responses/ServerError"}},"security":[{"JWT":[]},{"ApiKey":[]}],"summary":"Record the outcome of a response to improve playbook learning","tags":["Objection Playbook"],"x-api-key-scopes":["*"]}},"/v1/objection-playbook/analyze-deal/{dealId}":{"post":{"operationId":"objectionPlaybook_analyzeDeal","parameters":[{"name":"dealId","required":true,"in":"path","schema":{"type":"string"}},{"$ref":"#/components/parameters/IdempotencyKey"}],"responses":{"201":{"description":""},"400":{"$ref":"#/components/responses/BadRequest"},"401":{"$ref":"#/components/responses/Unauthorized"},"403":{"$ref":"#/components/responses/Forbidden"},"404":{"$ref":"#/components/responses/NotFound"},"409":{"$ref":"#/components/responses/Conflict"},"429":{"$ref":"#/components/responses/TooManyRequests"},"500":{"$ref":"#/components/responses/ServerError"}},"security":[{"JWT":[]},{"ApiKey":[]}],"summary":"Analyze recent activities for a deal to auto-detect objections","tags":["Objection Playbook"],"x-api-key-scopes":["*"]}},"/v1/objection-playbook/process-transcript":{"post":{"operationId":"objectionPlaybook_processTranscript","parameters":[{"$ref":"#/components/parameters/IdempotencyKey"}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"type":"object","properties":{"activityId":{"type":"string","description":"Activity ID the transcript belongs to"},"transcript":{"type":"string","description":"Call transcript text"}},"required":["activityId","transcript"]}}}},"responses":{"201":{"description":""},"400":{"$ref":"#/components/responses/BadRequest"},"401":{"$ref":"#/components/responses/Unauthorized"},"403":{"$ref":"#/components/responses/Forbidden"},"409":{"$ref":"#/components/responses/Conflict"},"429":{"$ref":"#/components/responses/TooManyRequests"},"500":{"$ref":"#/components/responses/ServerError"}},"security":[{"JWT":[]},{"ApiKey":[]}],"summary":"Process a call transcript for objection detection (real-time hook)","tags":["Objection Playbook"],"x-api-key-scopes":["*"]}},"/v1/objection-playbook/responses/{responseId}/rate":{"post":{"operationId":"objectionPlaybook_rateResponse","parameters":[{"name":"responseId","required":true,"in":"path","schema":{"type":"string"}},{"$ref":"#/components/parameters/IdempotencyKey"}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/RateResponseBody"}}}},"responses":{"201":{"description":""},"400":{"$ref":"#/components/responses/BadRequest"},"401":{"$ref":"#/components/responses/Unauthorized"},"403":{"$ref":"#/components/responses/Forbidden"},"404":{"$ref":"#/components/responses/NotFound"},"409":{"$ref":"#/components/responses/Conflict"},"429":{"$ref":"#/components/responses/TooManyRequests"},"500":{"$ref":"#/components/responses/ServerError"}},"security":[{"JWT":[]},{"ApiKey":[]}],"summary":"Rate a generated response (feeds into learning)","tags":["Objection Playbook"],"x-api-key-scopes":["*"]}},"/v1/smart-email/compose":{"post":{"operationId":"smartEmail_compose","parameters":[{"$ref":"#/components/parameters/IdempotencyKey"}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ComposeSmartEmailDto"}}}},"responses":{"201":{"description":""},"400":{"$ref":"#/components/responses/BadRequest"},"401":{"$ref":"#/components/responses/Unauthorized"},"403":{"$ref":"#/components/responses/Forbidden"},"409":{"$ref":"#/components/responses/Conflict"},"429":{"$ref":"#/components/responses/TooManyRequests"},"500":{"$ref":"#/components/responses/ServerError"}},"security":[{"JWT":[]},{"ApiKey":[]}],"tags":["Smart Email"],"summary":"Compose","x-api-key-scopes":["*"]}},"/v1/smart-email/drafts":{"get":{"operationId":"smartEmail_listDrafts","parameters":[],"responses":{"200":{"description":""},"401":{"$ref":"#/components/responses/Unauthorized"},"403":{"$ref":"#/components/responses/Forbidden"},"429":{"$ref":"#/components/responses/TooManyRequests"},"500":{"$ref":"#/components/responses/ServerError"}},"security":[{"JWT":[]},{"ApiKey":[]}],"tags":["Smart Email"],"summary":"List drafts","x-api-key-scopes":["*"]}},"/v1/smart-email/drafts/{id}":{"get":{"operationId":"smartEmail_getDraft","parameters":[{"name":"id","required":true,"in":"path","schema":{"type":"string"}}],"responses":{"200":{"description":""},"400":{"$ref":"#/components/responses/BadRequest"},"401":{"$ref":"#/components/responses/Unauthorized"},"403":{"$ref":"#/components/responses/Forbidden"},"404":{"$ref":"#/components/responses/NotFound"},"429":{"$ref":"#/components/responses/TooManyRequests"},"500":{"$ref":"#/components/responses/ServerError"}},"security":[{"JWT":[]},{"ApiKey":[]}],"tags":["Smart Email"],"summary":"Get draft","x-api-key-scopes":["*"]},"patch":{"operationId":"smartEmail_updateDraft","parameters":[{"name":"id","required":true,"in":"path","schema":{"type":"string"}},{"$ref":"#/components/parameters/IdempotencyKey"}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/UpdateSmartEmailDraftDto"}}}},"responses":{"200":{"description":""},"400":{"$ref":"#/components/responses/BadRequest"},"401":{"$ref":"#/components/responses/Unauthorized"},"403":{"$ref":"#/components/responses/Forbidden"},"404":{"$ref":"#/components/responses/NotFound"},"409":{"$ref":"#/components/responses/Conflict"},"429":{"$ref":"#/components/responses/TooManyRequests"},"500":{"$ref":"#/components/responses/ServerError"}},"security":[{"JWT":[]},{"ApiKey":[]}],"tags":["Smart Email"],"summary":"Update draft","x-api-key-scopes":["*"]},"delete":{"operationId":"smartEmail_deleteDraft","parameters":[{"name":"id","required":true,"in":"path","schema":{"type":"string"}}],"responses":{"200":{"description":""},"400":{"$ref":"#/components/responses/BadRequest"},"401":{"$ref":"#/components/responses/Unauthorized"},"403":{"$ref":"#/components/responses/Forbidden"},"404":{"$ref":"#/components/responses/NotFound"},"429":{"$ref":"#/components/responses/TooManyRequests"},"500":{"$ref":"#/components/responses/ServerError"}},"security":[{"JWT":[]},{"ApiKey":[]}],"tags":["Smart Email"],"summary":"Delete draft","x-api-key-scopes":["*"]}},"/v1/smart-email/drafts/{id}/send":{"post":{"operationId":"smartEmail_sendDraft","parameters":[{"name":"id","required":true,"in":"path","schema":{"type":"string"}},{"$ref":"#/components/parameters/IdempotencyKey"}],"responses":{"201":{"description":""},"400":{"$ref":"#/components/responses/BadRequest"},"401":{"$ref":"#/components/responses/Unauthorized"},"403":{"$ref":"#/components/responses/Forbidden"},"404":{"$ref":"#/components/responses/NotFound"},"409":{"$ref":"#/components/responses/Conflict"},"429":{"$ref":"#/components/responses/TooManyRequests"},"500":{"$ref":"#/components/responses/ServerError"}},"security":[{"JWT":[]},{"ApiKey":[]}],"tags":["Smart Email"],"summary":"Send draft","x-api-key-scopes":["*"]}},"/v1/smart-email/drafts/{id}/schedule":{"post":{"operationId":"smartEmail_scheduleDraft","parameters":[{"name":"id","required":true,"in":"path","schema":{"type":"string"}},{"$ref":"#/components/parameters/IdempotencyKey"}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ScheduleSmartEmailDto"}}}},"responses":{"201":{"description":""},"400":{"$ref":"#/components/responses/BadRequest"},"401":{"$ref":"#/components/responses/Unauthorized"},"403":{"$ref":"#/components/responses/Forbidden"},"404":{"$ref":"#/components/responses/NotFound"},"409":{"$ref":"#/components/responses/Conflict"},"429":{"$ref":"#/components/responses/TooManyRequests"},"500":{"$ref":"#/components/responses/ServerError"}},"security":[{"JWT":[]},{"ApiKey":[]}],"tags":["Smart Email"],"summary":"Schedule draft","x-api-key-scopes":["*"]}},"/v1/smart-email/drafts/{id}/variants":{"get":{"operationId":"smartEmail_getVariants","parameters":[{"name":"id","required":true,"in":"path","schema":{"type":"string"}},{"name":"refresh","required":false,"in":"query","schema":{}}],"responses":{"200":{"description":"","content":{"application/json":{"schema":{"type":"array","items":{"type":"object"}}}}},"400":{"$ref":"#/components/responses/BadRequest"},"401":{"$ref":"#/components/responses/Unauthorized"},"403":{"$ref":"#/components/responses/Forbidden"},"404":{"$ref":"#/components/responses/NotFound"},"429":{"$ref":"#/components/responses/TooManyRequests"},"500":{"$ref":"#/components/responses/ServerError"}},"security":[{"JWT":[]},{"ApiKey":[]}],"tags":["Smart Email"],"summary":"Get variants","x-api-key-scopes":["*"]}},"/v1/smart-email/drafts/{id}/regenerate":{"post":{"operationId":"smartEmail_regenerateDraft","parameters":[{"name":"id","required":true,"in":"path","schema":{"type":"string"}},{"$ref":"#/components/parameters/IdempotencyKey"}],"responses":{"201":{"description":"","content":{"application/json":{"schema":{"type":"object"}}}},"400":{"$ref":"#/components/responses/BadRequest"},"401":{"$ref":"#/components/responses/Unauthorized"},"403":{"$ref":"#/components/responses/Forbidden"},"404":{"$ref":"#/components/responses/NotFound"},"409":{"$ref":"#/components/responses/Conflict"},"429":{"$ref":"#/components/responses/TooManyRequests"},"500":{"$ref":"#/components/responses/ServerError"}},"security":[{"JWT":[]},{"ApiKey":[]}],"tags":["Smart Email"],"summary":"Regenerate draft","x-api-key-scopes":["*"]}},"/v1/smart-email/send-time/{contactId}":{"get":{"operationId":"smartEmail_getSendTimeRecommendation","parameters":[{"name":"contactId","required":true,"in":"path","schema":{"type":"string"}}],"responses":{"200":{"description":"","content":{"application/json":{"schema":{"type":"object"}}}},"400":{"$ref":"#/components/responses/BadRequest"},"401":{"$ref":"#/components/responses/Unauthorized"},"403":{"$ref":"#/components/responses/Forbidden"},"404":{"$ref":"#/components/responses/NotFound"},"429":{"$ref":"#/components/responses/TooManyRequests"},"500":{"$ref":"#/components/responses/ServerError"}},"security":[{"JWT":[]},{"ApiKey":[]}],"tags":["Smart Email"],"summary":"Get send time recommendation","x-api-key-scopes":["*"]}},"/v1/smart-email/history/{contactId}":{"get":{"operationId":"smartEmail_getHistory","parameters":[{"name":"contactId","required":true,"in":"path","schema":{"type":"string"}},{"name":"limit","required":false,"in":"query","schema":{}}],"responses":{"200":{"description":""},"400":{"$ref":"#/components/responses/BadRequest"},"401":{"$ref":"#/components/responses/Unauthorized"},"403":{"$ref":"#/components/responses/Forbidden"},"404":{"$ref":"#/components/responses/NotFound"},"429":{"$ref":"#/components/responses/TooManyRequests"},"500":{"$ref":"#/components/responses/ServerError"}},"security":[{"JWT":[]},{"ApiKey":[]}],"tags":["Smart Email"],"summary":"Get history","x-api-key-scopes":["*"]}},"/v1/smart-email/stats":{"get":{"operationId":"smartEmail_getStats","parameters":[],"responses":{"200":{"description":""},"401":{"$ref":"#/components/responses/Unauthorized"},"403":{"$ref":"#/components/responses/Forbidden"},"429":{"$ref":"#/components/responses/TooManyRequests"},"500":{"$ref":"#/components/responses/ServerError"}},"security":[{"JWT":[]},{"ApiKey":[]}],"tags":["Smart Email"],"summary":"Get stats","x-api-key-scopes":["*"]}},"/v1/revenue-leakage/leakages":{"get":{"operationId":"revenueLeakage_listLeaks","parameters":[],"responses":{"200":{"description":""},"401":{"$ref":"#/components/responses/Unauthorized"},"403":{"$ref":"#/components/responses/Forbidden"},"429":{"$ref":"#/components/responses/TooManyRequests"},"500":{"$ref":"#/components/responses/ServerError"}},"security":[{"JWT":[]},{"ApiKey":[]}],"tags":["Revenue Leakage"],"summary":"List leaks","x-api-key-scopes":["*"]}},"/v1/revenue-leakage/stats":{"get":{"operationId":"revenueLeakage_getStats","parameters":[],"responses":{"200":{"description":""},"401":{"$ref":"#/components/responses/Unauthorized"},"403":{"$ref":"#/components/responses/Forbidden"},"429":{"$ref":"#/components/responses/TooManyRequests"},"500":{"$ref":"#/components/responses/ServerError"}},"security":[{"JWT":[]},{"ApiKey":[]}],"tags":["Revenue Leakage"],"summary":"Get stats","x-api-key-scopes":["*"]}},"/v1/revenue-leakage/config":{"get":{"operationId":"revenueLeakage_getConfig","parameters":[],"responses":{"200":{"description":""},"401":{"$ref":"#/components/responses/Unauthorized"},"403":{"$ref":"#/components/responses/Forbidden"},"429":{"$ref":"#/components/responses/TooManyRequests"},"500":{"$ref":"#/components/responses/ServerError"}},"security":[{"JWT":[]},{"ApiKey":[]}],"tags":["Revenue Leakage"],"summary":"Get config","x-api-key-scopes":["*"]}},"/v1/revenue-leakage/remediation-history":{"get":{"operationId":"revenueLeakage_getRemediationHistory","parameters":[],"responses":{"200":{"description":""},"401":{"$ref":"#/components/responses/Unauthorized"},"403":{"$ref":"#/components/responses/Forbidden"},"429":{"$ref":"#/components/responses/TooManyRequests"},"500":{"$ref":"#/components/responses/ServerError"}},"security":[{"JWT":[]},{"ApiKey":[]}],"tags":["Revenue Leakage"],"summary":"Get remediation history","x-api-key-scopes":["*"]}},"/v1/revenue-leakage/recovery-trend":{"get":{"operationId":"revenueLeakage_getRecoveryTrend","parameters":[],"responses":{"200":{"description":""},"401":{"$ref":"#/components/responses/Unauthorized"},"403":{"$ref":"#/components/responses/Forbidden"},"429":{"$ref":"#/components/responses/TooManyRequests"},"500":{"$ref":"#/components/responses/ServerError"}},"security":[{"JWT":[]},{"ApiKey":[]}],"tags":["Revenue Leakage"],"summary":"Get recovery trend","x-api-key-scopes":["*"]}},"/v1/revenue-leakage/leakages/{id}":{"get":{"operationId":"revenueLeakage_getLeak","parameters":[{"name":"id","required":true,"in":"path","schema":{"type":"string"}}],"responses":{"200":{"description":"","content":{"application/json":{"schema":{"type":"object"}}}},"400":{"$ref":"#/components/responses/BadRequest"},"401":{"$ref":"#/components/responses/Unauthorized"},"403":{"$ref":"#/components/responses/Forbidden"},"404":{"$ref":"#/components/responses/NotFound"},"429":{"$ref":"#/components/responses/TooManyRequests"},"500":{"$ref":"#/components/responses/ServerError"}},"security":[{"JWT":[]},{"ApiKey":[]}],"tags":["Revenue Leakage"],"summary":"Get leak","x-api-key-scopes":["*"]}},"/v1/revenue-leakage/leakages/{id}/remediate":{"post":{"operationId":"revenueLeakage_remediate","parameters":[{"name":"id","required":true,"in":"path","schema":{"type":"string"}},{"$ref":"#/components/parameters/IdempotencyKey"}],"responses":{"201":{"description":""},"400":{"$ref":"#/components/responses/BadRequest"},"401":{"$ref":"#/components/responses/Unauthorized"},"403":{"$ref":"#/components/responses/Forbidden"},"404":{"$ref":"#/components/responses/NotFound"},"409":{"$ref":"#/components/responses/Conflict"},"429":{"$ref":"#/components/responses/TooManyRequests"},"500":{"$ref":"#/components/responses/ServerError"}},"security":[{"JWT":[]},{"ApiKey":[]}],"tags":["Revenue Leakage"],"summary":"Remediate","x-api-key-scopes":["*"]}},"/v1/revenue-leakage/leakages/{id}/ignore":{"post":{"operationId":"revenueLeakage_ignore","parameters":[{"name":"id","required":true,"in":"path","schema":{"type":"string"}},{"$ref":"#/components/parameters/IdempotencyKey"}],"responses":{"201":{"description":""},"400":{"$ref":"#/components/responses/BadRequest"},"401":{"$ref":"#/components/responses/Unauthorized"},"403":{"$ref":"#/components/responses/Forbidden"},"404":{"$ref":"#/components/responses/NotFound"},"409":{"$ref":"#/components/responses/Conflict"},"429":{"$ref":"#/components/responses/TooManyRequests"},"500":{"$ref":"#/components/responses/ServerError"}},"security":[{"JWT":[]},{"ApiKey":[]}],"tags":["Revenue Leakage"],"summary":"Ignore","x-api-key-scopes":["*"]}},"/v1/meeting-briefings":{"get":{"operationId":"meetingBriefings_listBriefings","parameters":[],"responses":{"200":{"description":""},"401":{"$ref":"#/components/responses/Unauthorized"},"403":{"$ref":"#/components/responses/Forbidden"},"429":{"$ref":"#/components/responses/TooManyRequests"},"500":{"$ref":"#/components/responses/ServerError"}},"security":[{"JWT":[]},{"ApiKey":[]}],"summary":"List all meeting briefings for the current user","tags":["Meeting Briefings"],"x-api-key-scopes":["*"]}},"/v1/meeting-briefings/upcoming":{"get":{"operationId":"meetingBriefings_getUpcoming","parameters":[],"responses":{"200":{"description":""},"401":{"$ref":"#/components/responses/Unauthorized"},"403":{"$ref":"#/components/responses/Forbidden"},"429":{"$ref":"#/components/responses/TooManyRequests"},"500":{"$ref":"#/components/responses/ServerError"}},"security":[{"JWT":[]},{"ApiKey":[]}],"summary":"Get upcoming meetings with briefing status","tags":["Meeting Briefings"],"x-api-key-scopes":["*"]}},"/v1/meeting-briefings/config":{"get":{"operationId":"meetingBriefings_getConfig","parameters":[],"responses":{"200":{"description":""},"401":{"$ref":"#/components/responses/Unauthorized"},"403":{"$ref":"#/components/responses/Forbidden"},"429":{"$ref":"#/components/responses/TooManyRequests"},"500":{"$ref":"#/components/responses/ServerError"}},"security":[{"JWT":[]},{"ApiKey":[]}],"summary":"Get meeting briefing configuration for the current user","tags":["Meeting Briefings"],"x-api-key-scopes":["*"]},"put":{"operationId":"meetingBriefings_updateConfigPut","parameters":[],"responses":{"200":{"description":""},"400":{"$ref":"#/components/responses/BadRequest"},"401":{"$ref":"#/components/responses/Unauthorized"},"403":{"$ref":"#/components/responses/Forbidden"},"429":{"$ref":"#/components/responses/TooManyRequests"},"500":{"$ref":"#/components/responses/ServerError"}},"security":[{"JWT":[]},{"ApiKey":[]}],"summary":"Update meeting briefing configuration","tags":["Meeting Briefings"],"x-api-key-scopes":["*"]},"patch":{"operationId":"meetingBriefings_updateConfig","parameters":[{"$ref":"#/components/parameters/IdempotencyKey"}],"responses":{"200":{"description":""},"400":{"$ref":"#/components/responses/BadRequest"},"401":{"$ref":"#/components/responses/Unauthorized"},"403":{"$ref":"#/components/responses/Forbidden"},"409":{"$ref":"#/components/responses/Conflict"},"429":{"$ref":"#/components/responses/TooManyRequests"},"500":{"$ref":"#/components/responses/ServerError"}},"security":[{"JWT":[]},{"ApiKey":[]}],"summary":"Partially update meeting briefing configuration","tags":["Meeting Briefings"],"x-api-key-scopes":["*"]}},"/v1/meeting-briefings/{meetingId}":{"get":{"description":"Returns cached AI briefing if available, otherwise generates one on-demand. The briefing includes executive summary, talking points, risk flags, competitor intelligence, and suggested questions.","operationId":"meetingBriefings_getBriefing","parameters":[{"name":"meetingId","required":true,"in":"path","description":"The meeting activity ID","schema":{"type":"string"}}],"responses":{"200":{"description":"","content":{"application/json":{"schema":{"type":"object"}}}},"400":{"$ref":"#/components/responses/BadRequest"},"401":{"$ref":"#/components/responses/Unauthorized"},"403":{"$ref":"#/components/responses/Forbidden"},"404":{"$ref":"#/components/responses/NotFound"},"429":{"$ref":"#/components/responses/TooManyRequests"},"500":{"$ref":"#/components/responses/ServerError"}},"security":[{"JWT":[]},{"ApiKey":[]}],"summary":"Get AI-powered briefing for a meeting","tags":["Meeting Briefings"],"x-api-key-scopes":["*"]}},"/v1/meeting-briefings/{meetingId}/generate":{"post":{"description":"Forces generation of a fresh AI briefing regardless of cache state. The briefing gathers CRM context (attendees, deal stage, account health, competitor intelligence, interaction history) and uses AI to produce actionable meeting intelligence.","operationId":"meetingBriefings_generateBriefing","parameters":[{"name":"meetingId","required":true,"in":"path","description":"The meeting activity ID","schema":{"type":"string"}},{"$ref":"#/components/parameters/IdempotencyKey"}],"responses":{"201":{"description":""},"400":{"$ref":"#/components/responses/BadRequest"},"401":{"$ref":"#/components/responses/Unauthorized"},"403":{"$ref":"#/components/responses/Forbidden"},"404":{"$ref":"#/components/responses/NotFound"},"409":{"$ref":"#/components/responses/Conflict"},"429":{"$ref":"#/components/responses/TooManyRequests"},"500":{"$ref":"#/components/responses/ServerError"}},"security":[{"JWT":[]},{"ApiKey":[]}],"summary":"Generate or regenerate an AI briefing for a meeting","tags":["Meeting Briefings"],"x-api-key-scopes":["*"]}},"/v1/meeting-briefings/{meetingId}/regenerate":{"post":{"description":"Clears the cached briefing and generates a completely fresh one using the latest CRM data.","operationId":"meetingBriefings_regenerateBriefing","parameters":[{"name":"meetingId","required":true,"in":"path","description":"The meeting activity ID","schema":{"type":"string"}},{"$ref":"#/components/parameters/IdempotencyKey"}],"responses":{"201":{"description":""},"400":{"$ref":"#/components/responses/BadRequest"},"401":{"$ref":"#/components/responses/Unauthorized"},"403":{"$ref":"#/components/responses/Forbidden"},"404":{"$ref":"#/components/responses/NotFound"},"409":{"$ref":"#/components/responses/Conflict"},"429":{"$ref":"#/components/responses/TooManyRequests"},"500":{"$ref":"#/components/responses/ServerError"}},"security":[{"JWT":[]},{"ApiKey":[]}],"summary":"Regenerate an AI briefing with fresh data","tags":["Meeting Briefings"],"x-api-key-scopes":["*"]}},"/v1/digital-sales-rooms":{"get":{"operationId":"digitalSalesRooms_listRooms","parameters":[],"responses":{"200":{"description":""},"401":{"$ref":"#/components/responses/Unauthorized"},"403":{"$ref":"#/components/responses/Forbidden"},"429":{"$ref":"#/components/responses/TooManyRequests"},"500":{"$ref":"#/components/responses/ServerError"}},"security":[{"JWT":[]},{"ApiKey":[]}],"tags":["Digital Sales Rooms"],"summary":"List rooms","x-api-key-scopes":["*"]},"post":{"operationId":"digitalSalesRooms_createRoom","parameters":[{"$ref":"#/components/parameters/IdempotencyKey"}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/CreateDigitalSalesRoomDto"}}}},"responses":{"201":{"description":"","content":{"application/json":{"schema":{"type":"object"}}}},"400":{"$ref":"#/components/responses/BadRequest"},"401":{"$ref":"#/components/responses/Unauthorized"},"403":{"$ref":"#/components/responses/Forbidden"},"409":{"$ref":"#/components/responses/Conflict"},"429":{"$ref":"#/components/responses/TooManyRequests"},"500":{"$ref":"#/components/responses/ServerError"}},"security":[{"JWT":[]},{"ApiKey":[]}],"tags":["Digital Sales Rooms"],"summary":"Create room","x-api-key-scopes":["*"]}},"/v1/digital-sales-rooms/stats":{"get":{"operationId":"digitalSalesRooms_getStats","parameters":[],"responses":{"200":{"description":""},"401":{"$ref":"#/components/responses/Unauthorized"},"403":{"$ref":"#/components/responses/Forbidden"},"429":{"$ref":"#/components/responses/TooManyRequests"},"500":{"$ref":"#/components/responses/ServerError"}},"security":[{"JWT":[]},{"ApiKey":[]}],"tags":["Digital Sales Rooms"],"summary":"Get stats","x-api-key-scopes":["*"]}},"/v1/digital-sales-rooms/{id}":{"get":{"operationId":"digitalSalesRooms_getRoom","parameters":[{"name":"id","required":true,"in":"path","schema":{"type":"string"}}],"responses":{"200":{"description":""},"400":{"$ref":"#/components/responses/BadRequest"},"401":{"$ref":"#/components/responses/Unauthorized"},"403":{"$ref":"#/components/responses/Forbidden"},"404":{"$ref":"#/components/responses/NotFound"},"429":{"$ref":"#/components/responses/TooManyRequests"},"500":{"$ref":"#/components/responses/ServerError"}},"security":[{"JWT":[]},{"ApiKey":[]}],"tags":["Digital Sales Rooms"],"summary":"Get room","x-api-key-scopes":["*"]},"patch":{"operationId":"digitalSalesRooms_updateRoom","parameters":[{"name":"id","required":true,"in":"path","schema":{"type":"string"}},{"$ref":"#/components/parameters/IdempotencyKey"}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/UpdateDigitalSalesRoomDto"}}}},"responses":{"200":{"description":""},"400":{"$ref":"#/components/responses/BadRequest"},"401":{"$ref":"#/components/responses/Unauthorized"},"403":{"$ref":"#/components/responses/Forbidden"},"404":{"$ref":"#/components/responses/NotFound"},"409":{"$ref":"#/components/responses/Conflict"},"429":{"$ref":"#/components/responses/TooManyRequests"},"500":{"$ref":"#/components/responses/ServerError"}},"security":[{"JWT":[]},{"ApiKey":[]}],"tags":["Digital Sales Rooms"],"summary":"Update room","x-api-key-scopes":["*"]},"delete":{"operationId":"digitalSalesRooms_deleteRoom","parameters":[{"name":"id","required":true,"in":"path","schema":{"type":"string"}}],"responses":{"200":{"description":""},"400":{"$ref":"#/components/responses/BadRequest"},"401":{"$ref":"#/components/responses/Unauthorized"},"403":{"$ref":"#/components/responses/Forbidden"},"404":{"$ref":"#/components/responses/NotFound"},"429":{"$ref":"#/components/responses/TooManyRequests"},"500":{"$ref":"#/components/responses/ServerError"}},"security":[{"JWT":[]},{"ApiKey":[]}],"tags":["Digital Sales Rooms"],"summary":"Delete room","x-api-key-scopes":["*"]}},"/v1/digital-sales-rooms/{id}/toggle":{"post":{"operationId":"digitalSalesRooms_toggleRoom","parameters":[{"name":"id","required":true,"in":"path","schema":{"type":"string"}},{"$ref":"#/components/parameters/IdempotencyKey"}],"responses":{"201":{"description":""},"400":{"$ref":"#/components/responses/BadRequest"},"401":{"$ref":"#/components/responses/Unauthorized"},"403":{"$ref":"#/components/responses/Forbidden"},"404":{"$ref":"#/components/responses/NotFound"},"409":{"$ref":"#/components/responses/Conflict"},"429":{"$ref":"#/components/responses/TooManyRequests"},"500":{"$ref":"#/components/responses/ServerError"}},"security":[{"JWT":[]},{"ApiKey":[]}],"tags":["Digital Sales Rooms"],"summary":"Toggle room","x-api-key-scopes":["*"]}},"/v1/digital-sales-rooms/{id}/toggle-active":{"patch":{"operationId":"digitalSalesRooms_toggleActive","parameters":[{"name":"id","required":true,"in":"path","schema":{"type":"string"}},{"$ref":"#/components/parameters/IdempotencyKey"}],"responses":{"200":{"description":""},"400":{"$ref":"#/components/responses/BadRequest"},"401":{"$ref":"#/components/responses/Unauthorized"},"403":{"$ref":"#/components/responses/Forbidden"},"404":{"$ref":"#/components/responses/NotFound"},"409":{"$ref":"#/components/responses/Conflict"},"429":{"$ref":"#/components/responses/TooManyRequests"},"500":{"$ref":"#/components/responses/ServerError"}},"security":[{"JWT":[]},{"ApiKey":[]}],"tags":["Digital Sales Rooms"],"summary":"Toggle active","x-api-key-scopes":["*"]}},"/v1/digital-sales-rooms/{id}/regenerate-link":{"post":{"operationId":"digitalSalesRooms_regenerateLink","parameters":[{"name":"id","required":true,"in":"path","schema":{"type":"string"}},{"$ref":"#/components/parameters/IdempotencyKey"}],"responses":{"201":{"description":""},"400":{"$ref":"#/components/responses/BadRequest"},"401":{"$ref":"#/components/responses/Unauthorized"},"403":{"$ref":"#/components/responses/Forbidden"},"404":{"$ref":"#/components/responses/NotFound"},"409":{"$ref":"#/components/responses/Conflict"},"429":{"$ref":"#/components/responses/TooManyRequests"},"500":{"$ref":"#/components/responses/ServerError"}},"security":[{"JWT":[]},{"ApiKey":[]}],"tags":["Digital Sales Rooms"],"summary":"Regenerate link","x-api-key-scopes":["*"]}},"/v1/digital-sales-rooms/{id}/analytics":{"get":{"operationId":"digitalSalesRooms_getAnalytics","parameters":[{"name":"id","required":true,"in":"path","schema":{"type":"string"}}],"responses":{"200":{"description":""},"400":{"$ref":"#/components/responses/BadRequest"},"401":{"$ref":"#/components/responses/Unauthorized"},"403":{"$ref":"#/components/responses/Forbidden"},"404":{"$ref":"#/components/responses/NotFound"},"429":{"$ref":"#/components/responses/TooManyRequests"},"500":{"$ref":"#/components/responses/ServerError"}},"security":[{"JWT":[]},{"ApiKey":[]}],"tags":["Digital Sales Rooms"],"summary":"Get analytics","x-api-key-scopes":["*"]}},"/v1/digital-sales-rooms/{id}/visitors":{"get":{"operationId":"digitalSalesRooms_getVisitorLog","parameters":[{"name":"id","required":true,"in":"path","schema":{"type":"string"}}],"responses":{"200":{"description":""},"400":{"$ref":"#/components/responses/BadRequest"},"401":{"$ref":"#/components/responses/Unauthorized"},"403":{"$ref":"#/components/responses/Forbidden"},"404":{"$ref":"#/components/responses/NotFound"},"429":{"$ref":"#/components/responses/TooManyRequests"},"500":{"$ref":"#/components/responses/ServerError"}},"security":[{"JWT":[]},{"ApiKey":[]}],"tags":["Digital Sales Rooms"],"summary":"Get visitor log","x-api-key-scopes":["*"]}},"/v1/interactive-proposals/public/{shareId}":{"get":{"operationId":"interactiveProposals_getPublicProposal","parameters":[{"name":"shareId","required":true,"in":"path","schema":{"type":"string"}},{"name":"accessCode","required":false,"in":"query","schema":{"type":"string"}}],"responses":{"200":{"description":""},"400":{"$ref":"#/components/responses/BadRequest"},"404":{"$ref":"#/components/responses/NotFound"},"429":{"$ref":"#/components/responses/TooManyRequests"},"500":{"$ref":"#/components/responses/ServerError"}},"security":[],"tags":["Interactive Proposals"],"summary":"Get public proposal"}},"/v1/interactive-proposals/public/{shareId}/configure":{"post":{"operationId":"interactiveProposals_configurePublicProposal","parameters":[{"name":"shareId","required":true,"in":"path","schema":{"type":"string"}},{"$ref":"#/components/parameters/IdempotencyKey"}],"responses":{"201":{"description":""},"400":{"$ref":"#/components/responses/BadRequest"},"404":{"$ref":"#/components/responses/NotFound"},"409":{"$ref":"#/components/responses/Conflict"},"429":{"$ref":"#/components/responses/TooManyRequests"},"500":{"$ref":"#/components/responses/ServerError"}},"security":[],"tags":["Interactive Proposals"],"summary":"Configure public proposal"}},"/v1/interactive-proposals/public/{shareId}/comments":{"post":{"operationId":"interactiveProposals_commentPublicProposal","parameters":[{"name":"shareId","required":true,"in":"path","schema":{"type":"string"}},{"$ref":"#/components/parameters/IdempotencyKey"}],"responses":{"201":{"description":""},"400":{"$ref":"#/components/responses/BadRequest"},"404":{"$ref":"#/components/responses/NotFound"},"409":{"$ref":"#/components/responses/Conflict"},"429":{"$ref":"#/components/responses/TooManyRequests"},"500":{"$ref":"#/components/responses/ServerError"}},"security":[],"tags":["Interactive Proposals"],"summary":"Comment public proposal"}},"/v1/interactive-proposals":{"get":{"operationId":"interactiveProposals_listProposals","parameters":[],"responses":{"200":{"description":""},"401":{"$ref":"#/components/responses/Unauthorized"},"403":{"$ref":"#/components/responses/Forbidden"},"429":{"$ref":"#/components/responses/TooManyRequests"},"500":{"$ref":"#/components/responses/ServerError"}},"security":[{"JWT":[]},{"ApiKey":[]}],"tags":["Interactive Proposals"],"summary":"List proposals","x-api-key-scopes":["*"]},"post":{"operationId":"interactiveProposals_createProposal","parameters":[{"$ref":"#/components/parameters/IdempotencyKey"}],"responses":{"201":{"description":""},"400":{"$ref":"#/components/responses/BadRequest"},"401":{"$ref":"#/components/responses/Unauthorized"},"403":{"$ref":"#/components/responses/Forbidden"},"409":{"$ref":"#/components/responses/Conflict"},"429":{"$ref":"#/components/responses/TooManyRequests"},"500":{"$ref":"#/components/responses/ServerError"}},"security":[{"JWT":[]},{"ApiKey":[]}],"tags":["Interactive Proposals"],"summary":"Create proposal","x-api-key-scopes":["*"]}},"/v1/interactive-proposals/stats":{"get":{"operationId":"interactiveProposals_getStats","parameters":[],"responses":{"200":{"description":""},"401":{"$ref":"#/components/responses/Unauthorized"},"403":{"$ref":"#/components/responses/Forbidden"},"429":{"$ref":"#/components/responses/TooManyRequests"},"500":{"$ref":"#/components/responses/ServerError"}},"security":[{"JWT":[]},{"ApiKey":[]}],"tags":["Interactive Proposals"],"summary":"Get stats","x-api-key-scopes":["*"]}},"/v1/interactive-proposals/templates":{"get":{"operationId":"interactiveProposals_getTemplates","parameters":[],"responses":{"200":{"description":""},"401":{"$ref":"#/components/responses/Unauthorized"},"403":{"$ref":"#/components/responses/Forbidden"},"429":{"$ref":"#/components/responses/TooManyRequests"},"500":{"$ref":"#/components/responses/ServerError"}},"security":[{"JWT":[]},{"ApiKey":[]}],"tags":["Interactive Proposals"],"summary":"Get templates","x-api-key-scopes":["*"]}},"/v1/interactive-proposals/{id}":{"get":{"operationId":"interactiveProposals_getProposal","parameters":[{"name":"id","required":true,"in":"path","schema":{"type":"string"}}],"responses":{"200":{"description":""},"400":{"$ref":"#/components/responses/BadRequest"},"401":{"$ref":"#/components/responses/Unauthorized"},"403":{"$ref":"#/components/responses/Forbidden"},"404":{"$ref":"#/components/responses/NotFound"},"429":{"$ref":"#/components/responses/TooManyRequests"},"500":{"$ref":"#/components/responses/ServerError"}},"security":[{"JWT":[]},{"ApiKey":[]}],"tags":["Interactive Proposals"],"summary":"Get proposal","x-api-key-scopes":["*"]},"patch":{"operationId":"interactiveProposals_updateProposal","parameters":[{"name":"id","required":true,"in":"path","schema":{"type":"string"}},{"$ref":"#/components/parameters/IdempotencyKey"}],"responses":{"200":{"description":""},"400":{"$ref":"#/components/responses/BadRequest"},"401":{"$ref":"#/components/responses/Unauthorized"},"403":{"$ref":"#/components/responses/Forbidden"},"404":{"$ref":"#/components/responses/NotFound"},"409":{"$ref":"#/components/responses/Conflict"},"429":{"$ref":"#/components/responses/TooManyRequests"},"500":{"$ref":"#/components/responses/ServerError"}},"security":[{"JWT":[]},{"ApiKey":[]}],"tags":["Interactive Proposals"],"summary":"Update proposal","x-api-key-scopes":["*"]},"delete":{"operationId":"interactiveProposals_deleteProposal","parameters":[{"name":"id","required":true,"in":"path","schema":{"type":"string"}}],"responses":{"200":{"description":""},"400":{"$ref":"#/components/responses/BadRequest"},"401":{"$ref":"#/components/responses/Unauthorized"},"403":{"$ref":"#/components/responses/Forbidden"},"404":{"$ref":"#/components/responses/NotFound"},"429":{"$ref":"#/components/responses/TooManyRequests"},"500":{"$ref":"#/components/responses/ServerError"}},"security":[{"JWT":[]},{"ApiKey":[]}],"tags":["Interactive Proposals"],"summary":"Delete proposal","x-api-key-scopes":["*"]}},"/v1/interactive-proposals/{id}/share":{"post":{"operationId":"interactiveProposals_shareProposal","parameters":[{"name":"id","required":true,"in":"path","schema":{"type":"string"}},{"$ref":"#/components/parameters/IdempotencyKey"}],"responses":{"201":{"description":"","content":{"application/json":{"schema":{"type":"object"}}}},"400":{"$ref":"#/components/responses/BadRequest"},"401":{"$ref":"#/components/responses/Unauthorized"},"403":{"$ref":"#/components/responses/Forbidden"},"404":{"$ref":"#/components/responses/NotFound"},"409":{"$ref":"#/components/responses/Conflict"},"429":{"$ref":"#/components/responses/TooManyRequests"},"500":{"$ref":"#/components/responses/ServerError"}},"security":[{"JWT":[]},{"ApiKey":[]}],"tags":["Interactive Proposals"],"summary":"Share proposal","x-api-key-scopes":["*"]}},"/v1/interactive-proposals/{id}/analytics":{"get":{"operationId":"interactiveProposals_getAnalytics","parameters":[{"name":"id","required":true,"in":"path","schema":{"type":"string"}}],"responses":{"200":{"description":""},"400":{"$ref":"#/components/responses/BadRequest"},"401":{"$ref":"#/components/responses/Unauthorized"},"403":{"$ref":"#/components/responses/Forbidden"},"404":{"$ref":"#/components/responses/NotFound"},"429":{"$ref":"#/components/responses/TooManyRequests"},"500":{"$ref":"#/components/responses/ServerError"}},"security":[{"JWT":[]},{"ApiKey":[]}],"tags":["Interactive Proposals"],"summary":"Get analytics","x-api-key-scopes":["*"]}},"/v1/interactive-proposals/{id}/comments":{"get":{"operationId":"interactiveProposals_getComments","parameters":[{"name":"id","required":true,"in":"path","schema":{"type":"string"}}],"responses":{"200":{"description":"","content":{"application/json":{"schema":{"type":"array","items":{"type":"object"}}}}},"400":{"$ref":"#/components/responses/BadRequest"},"401":{"$ref":"#/components/responses/Unauthorized"},"403":{"$ref":"#/components/responses/Forbidden"},"404":{"$ref":"#/components/responses/NotFound"},"429":{"$ref":"#/components/responses/TooManyRequests"},"500":{"$ref":"#/components/responses/ServerError"}},"security":[{"JWT":[]},{"ApiKey":[]}],"tags":["Interactive Proposals"],"summary":"Get comments","x-api-key-scopes":["*"]}},"/v1/interactive-proposals/{id}/duplicate":{"post":{"operationId":"interactiveProposals_duplicateProposal","parameters":[{"name":"id","required":true,"in":"path","schema":{"type":"string"}},{"$ref":"#/components/parameters/IdempotencyKey"}],"responses":{"201":{"description":""},"400":{"$ref":"#/components/responses/BadRequest"},"401":{"$ref":"#/components/responses/Unauthorized"},"403":{"$ref":"#/components/responses/Forbidden"},"404":{"$ref":"#/components/responses/NotFound"},"409":{"$ref":"#/components/responses/Conflict"},"429":{"$ref":"#/components/responses/TooManyRequests"},"500":{"$ref":"#/components/responses/ServerError"}},"security":[{"JWT":[]},{"ApiKey":[]}],"tags":["Interactive Proposals"],"summary":"Duplicate proposal","x-api-key-scopes":["*"]}},"/v1/interactive-proposals/{id}/generate-section":{"post":{"operationId":"interactiveProposals_generateSection","parameters":[{"name":"id","required":true,"in":"path","schema":{"type":"string"}},{"$ref":"#/components/parameters/IdempotencyKey"}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/GenerateSectionBody"}}}},"responses":{"201":{"description":""},"400":{"$ref":"#/components/responses/BadRequest"},"401":{"$ref":"#/components/responses/Unauthorized"},"403":{"$ref":"#/components/responses/Forbidden"},"404":{"$ref":"#/components/responses/NotFound"},"409":{"$ref":"#/components/responses/Conflict"},"429":{"$ref":"#/components/responses/TooManyRequests"},"500":{"$ref":"#/components/responses/ServerError"}},"security":[{"JWT":[]},{"ApiKey":[]}],"summary":"Generate AI content for a single section of a proposal.\nBody: { sectionType, userPrompt?, tone? }","tags":["Interactive Proposals"],"x-api-key-scopes":["*"]}},"/v1/health-triage/cases":{"get":{"operationId":"healthAutoTriage_listCases","parameters":[],"responses":{"200":{"description":""},"401":{"$ref":"#/components/responses/Unauthorized"},"403":{"$ref":"#/components/responses/Forbidden"},"429":{"$ref":"#/components/responses/TooManyRequests"},"500":{"$ref":"#/components/responses/ServerError"}},"security":[{"JWT":[]},{"ApiKey":[]}],"tags":["Health Auto Triage"],"summary":"List cases","x-api-key-scopes":["*"]}},"/v1/health-triage/stats":{"get":{"operationId":"healthAutoTriage_getStats","parameters":[],"responses":{"200":{"description":""},"401":{"$ref":"#/components/responses/Unauthorized"},"403":{"$ref":"#/components/responses/Forbidden"},"429":{"$ref":"#/components/responses/TooManyRequests"},"500":{"$ref":"#/components/responses/ServerError"}},"security":[{"JWT":[]},{"ApiKey":[]}],"tags":["Health Auto Triage"],"summary":"Get stats","x-api-key-scopes":["*"]}},"/v1/health-triage/config":{"get":{"operationId":"healthAutoTriage_getConfig","parameters":[],"responses":{"200":{"description":""},"401":{"$ref":"#/components/responses/Unauthorized"},"403":{"$ref":"#/components/responses/Forbidden"},"429":{"$ref":"#/components/responses/TooManyRequests"},"500":{"$ref":"#/components/responses/ServerError"}},"security":[{"JWT":[]},{"ApiKey":[]}],"tags":["Health Auto Triage"],"summary":"Get config","x-api-key-scopes":["*"]},"patch":{"operationId":"healthAutoTriage_updateConfig","parameters":[{"$ref":"#/components/parameters/IdempotencyKey"}],"responses":{"200":{"description":""},"400":{"$ref":"#/components/responses/BadRequest"},"401":{"$ref":"#/components/responses/Unauthorized"},"403":{"$ref":"#/components/responses/Forbidden"},"409":{"$ref":"#/components/responses/Conflict"},"429":{"$ref":"#/components/responses/TooManyRequests"},"500":{"$ref":"#/components/responses/ServerError"}},"security":[{"JWT":[]},{"ApiKey":[]}],"tags":["Health Auto Triage"],"summary":"Update config","x-api-key-scopes":["*"]}},"/v1/health-triage/cases/{id}":{"get":{"operationId":"healthAutoTriage_getCase","parameters":[{"name":"id","required":true,"in":"path","schema":{"type":"string"}}],"responses":{"200":{"description":"","content":{"application/json":{"schema":{"type":"object"}}}},"400":{"$ref":"#/components/responses/BadRequest"},"401":{"$ref":"#/components/responses/Unauthorized"},"403":{"$ref":"#/components/responses/Forbidden"},"404":{"$ref":"#/components/responses/NotFound"},"429":{"$ref":"#/components/responses/TooManyRequests"},"500":{"$ref":"#/components/responses/ServerError"}},"security":[{"JWT":[]},{"ApiKey":[]}],"tags":["Health Auto Triage"],"summary":"Get case","x-api-key-scopes":["*"]}},"/v1/health-triage/cases/{id}/save-plan":{"post":{"operationId":"healthAutoTriage_savePlan","parameters":[{"name":"id","required":true,"in":"path","schema":{"type":"string"}},{"$ref":"#/components/parameters/IdempotencyKey"}],"responses":{"201":{"description":""},"400":{"$ref":"#/components/responses/BadRequest"},"401":{"$ref":"#/components/responses/Unauthorized"},"403":{"$ref":"#/components/responses/Forbidden"},"404":{"$ref":"#/components/responses/NotFound"},"409":{"$ref":"#/components/responses/Conflict"},"429":{"$ref":"#/components/responses/TooManyRequests"},"500":{"$ref":"#/components/responses/ServerError"}},"security":[{"JWT":[]},{"ApiKey":[]}],"tags":["Health Auto Triage"],"summary":"Save plan","x-api-key-scopes":["*"]}},"/v1/health-triage/cases/{id}/ignore":{"post":{"operationId":"healthAutoTriage_ignoreCase","parameters":[{"name":"id","required":true,"in":"path","schema":{"type":"string"}},{"$ref":"#/components/parameters/IdempotencyKey"}],"responses":{"201":{"description":""},"400":{"$ref":"#/components/responses/BadRequest"},"401":{"$ref":"#/components/responses/Unauthorized"},"403":{"$ref":"#/components/responses/Forbidden"},"404":{"$ref":"#/components/responses/NotFound"},"409":{"$ref":"#/components/responses/Conflict"},"429":{"$ref":"#/components/responses/TooManyRequests"},"500":{"$ref":"#/components/responses/ServerError"}},"security":[{"JWT":[]},{"ApiKey":[]}],"tags":["Health Auto Triage"],"summary":"Ignore case","x-api-key-scopes":["*"]}},"/v1/health-triage/cases/{id}/actions/{actionId}/execute":{"post":{"operationId":"healthAutoTriage_executePlanAction","parameters":[{"name":"id","required":true,"in":"path","schema":{"type":"string"}},{"name":"actionId","required":true,"in":"path","schema":{"type":"string"}},{"$ref":"#/components/parameters/IdempotencyKey"}],"responses":{"201":{"description":""},"400":{"$ref":"#/components/responses/BadRequest"},"401":{"$ref":"#/components/responses/Unauthorized"},"403":{"$ref":"#/components/responses/Forbidden"},"404":{"$ref":"#/components/responses/NotFound"},"409":{"$ref":"#/components/responses/Conflict"},"429":{"$ref":"#/components/responses/TooManyRequests"},"500":{"$ref":"#/components/responses/ServerError"}},"security":[{"JWT":[]},{"ApiKey":[]}],"tags":["Health Auto Triage"],"summary":"Execute plan action","x-api-key-scopes":["*"]}},"/v1/health-triage/cases/{id}/resolve":{"post":{"operationId":"healthAutoTriage_resolveCase","parameters":[{"name":"id","required":true,"in":"path","schema":{"type":"string"}},{"$ref":"#/components/parameters/IdempotencyKey"}],"responses":{"201":{"description":""},"400":{"$ref":"#/components/responses/BadRequest"},"401":{"$ref":"#/components/responses/Unauthorized"},"403":{"$ref":"#/components/responses/Forbidden"},"404":{"$ref":"#/components/responses/NotFound"},"409":{"$ref":"#/components/responses/Conflict"},"429":{"$ref":"#/components/responses/TooManyRequests"},"500":{"$ref":"#/components/responses/ServerError"}},"security":[{"JWT":[]},{"ApiKey":[]}],"tags":["Health Auto Triage"],"summary":"Resolve case","x-api-key-scopes":["*"]}},"/v1/health-triage/trends":{"get":{"operationId":"healthAutoTriage_getTrends","parameters":[],"responses":{"200":{"description":""},"401":{"$ref":"#/components/responses/Unauthorized"},"403":{"$ref":"#/components/responses/Forbidden"},"429":{"$ref":"#/components/responses/TooManyRequests"},"500":{"$ref":"#/components/responses/ServerError"}},"security":[{"JWT":[]},{"ApiKey":[]}],"tags":["Health Auto Triage"],"summary":"Get trends","x-api-key-scopes":["*"]}},"/v1/unified-comms/threads":{"get":{"operationId":"unifiedComms_getThreads","parameters":[{"name":"limit","required":false,"in":"query","schema":{"type":"string"}},{"name":"offset","required":false,"in":"query","schema":{"type":"string"}},{"name":"type","required":false,"in":"query","schema":{"type":"string"}}],"responses":{"200":{"description":"Unified thread list"},"400":{"$ref":"#/components/responses/BadRequest"},"401":{"$ref":"#/components/responses/Unauthorized"},"403":{"$ref":"#/components/responses/Forbidden"},"429":{"$ref":"#/components/responses/TooManyRequests"},"500":{"$ref":"#/components/responses/ServerError"}},"security":[{"JWT":[]},{"ApiKey":[]}],"summary":"Get unified communication threads across all channels","tags":["Unified Communications"],"x-api-key-scopes":["*"]}},"/v1/unified-comms/threads/{entityType}/{entityId}":{"get":{"operationId":"unifiedComms_getThreadsByEntity","parameters":[{"name":"entityType","required":true,"in":"path","schema":{"type":"string"}},{"name":"entityId","required":true,"in":"path","schema":{"type":"string"}}],"responses":{"200":{"description":"Entity communication timeline"},"400":{"$ref":"#/components/responses/BadRequest"},"401":{"$ref":"#/components/responses/Unauthorized"},"403":{"$ref":"#/components/responses/Forbidden"},"404":{"$ref":"#/components/responses/NotFound"},"429":{"$ref":"#/components/responses/TooManyRequests"},"500":{"$ref":"#/components/responses/ServerError"}},"security":[{"JWT":[]},{"ApiKey":[]}],"summary":"Get unified threads for a specific entity","tags":["Unified Communications"],"x-api-key-scopes":["*"]}},"/v1/unified-comms/summary":{"get":{"operationId":"unifiedComms_getSummary","parameters":[],"responses":{"200":{"description":"Communication summary statistics"},"401":{"$ref":"#/components/responses/Unauthorized"},"403":{"$ref":"#/components/responses/Forbidden"},"429":{"$ref":"#/components/responses/TooManyRequests"},"500":{"$ref":"#/components/responses/ServerError"}},"security":[{"JWT":[]},{"ApiKey":[]}],"summary":"Get communication summary across all channels","tags":["Unified Communications"],"x-api-key-scopes":["*"]}},"/v1/unified-comms/threads/{id}/read":{"post":{"operationId":"unifiedComms_markThreadRead","parameters":[{"name":"id","required":true,"in":"path","schema":{"type":"string"}},{"$ref":"#/components/parameters/IdempotencyKey"}],"responses":{"200":{"description":"Thread marked as read"},"400":{"$ref":"#/components/responses/BadRequest"},"401":{"$ref":"#/components/responses/Unauthorized"},"403":{"$ref":"#/components/responses/Forbidden"},"404":{"$ref":"#/components/responses/NotFound"},"409":{"$ref":"#/components/responses/Conflict"},"429":{"$ref":"#/components/responses/TooManyRequests"},"500":{"$ref":"#/components/responses/ServerError"}},"security":[{"JWT":[]},{"ApiKey":[]}],"summary":"Mark a thread as read","tags":["Unified Communications"],"x-api-key-scopes":["*"]}},"/v1/unified-comms/search":{"get":{"operationId":"unifiedComms_searchThreadsGet","parameters":[{"name":"q","required":true,"in":"query","schema":{"type":"string"}}],"responses":{"200":{"description":"Search results"},"400":{"$ref":"#/components/responses/BadRequest"},"401":{"$ref":"#/components/responses/Unauthorized"},"403":{"$ref":"#/components/responses/Forbidden"},"429":{"$ref":"#/components/responses/TooManyRequests"},"500":{"$ref":"#/components/responses/ServerError"}},"security":[{"JWT":[]},{"ApiKey":[]}],"summary":"Search across all communication channels (GET)","tags":["Unified Communications"],"x-api-key-scopes":["*"]},"post":{"operationId":"unifiedComms_searchThreads","parameters":[{"$ref":"#/components/parameters/IdempotencyKey"}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/SearchThreadsBody"}}}},"responses":{"200":{"description":"Search results"},"400":{"$ref":"#/components/responses/BadRequest"},"401":{"$ref":"#/components/responses/Unauthorized"},"403":{"$ref":"#/components/responses/Forbidden"},"409":{"$ref":"#/components/responses/Conflict"},"429":{"$ref":"#/components/responses/TooManyRequests"},"500":{"$ref":"#/components/responses/ServerError"}},"security":[{"JWT":[]},{"ApiKey":[]}],"summary":"Search across all communication channels","tags":["Unified Communications"],"x-api-key-scopes":["*"]}},"/v1/unified-comms/timeline/{entityType}/{entityId}":{"get":{"operationId":"unifiedComms_getEntityTimeline","parameters":[{"name":"entityType","required":true,"in":"path","schema":{"type":"string"}},{"name":"entityId","required":true,"in":"path","schema":{"type":"string"}}],"responses":{"200":{"description":"Entity timeline"},"400":{"$ref":"#/components/responses/BadRequest"},"401":{"$ref":"#/components/responses/Unauthorized"},"403":{"$ref":"#/components/responses/Forbidden"},"404":{"$ref":"#/components/responses/NotFound"},"429":{"$ref":"#/components/responses/TooManyRequests"},"500":{"$ref":"#/components/responses/ServerError"}},"security":[{"JWT":[]},{"ApiKey":[]}],"summary":"Get entity communication timeline","tags":["Unified Communications"],"x-api-key-scopes":["*"]}},"/v1/unified-comms/threads/{id}/summarize":{"post":{"operationId":"unifiedComms_summarizeThread","parameters":[{"name":"id","required":true,"in":"path","schema":{"type":"string"}},{"$ref":"#/components/parameters/IdempotencyKey"}],"responses":{"200":{"description":"Thread summary"},"400":{"$ref":"#/components/responses/BadRequest"},"401":{"$ref":"#/components/responses/Unauthorized"},"403":{"$ref":"#/components/responses/Forbidden"},"404":{"$ref":"#/components/responses/NotFound"},"409":{"$ref":"#/components/responses/Conflict"},"429":{"$ref":"#/components/responses/TooManyRequests"},"500":{"$ref":"#/components/responses/ServerError"}},"security":[{"JWT":[]},{"ApiKey":[]}],"summary":"Generate AI summary for a thread","tags":["Unified Communications"],"x-api-key-scopes":["*"]}},"/v1/nps-surveys":{"get":{"operationId":"npsSurveys_listSurveys","parameters":[],"responses":{"200":{"description":"List of NPS surveys"},"401":{"$ref":"#/components/responses/Unauthorized"},"403":{"$ref":"#/components/responses/Forbidden"},"429":{"$ref":"#/components/responses/TooManyRequests"},"500":{"$ref":"#/components/responses/ServerError"}},"security":[{"JWT":[]},{"ApiKey":[]}],"summary":"List all NPS surveys","tags":["NPS Surveys"],"x-api-key-scopes":["*"]},"post":{"operationId":"npsSurveys_createSurvey","parameters":[{"$ref":"#/components/parameters/IdempotencyKey"}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/CreateSurveyBody"}}}},"responses":{"201":{"description":"NPS survey created"},"400":{"$ref":"#/components/responses/BadRequest"},"401":{"$ref":"#/components/responses/Unauthorized"},"403":{"$ref":"#/components/responses/Forbidden"},"409":{"$ref":"#/components/responses/Conflict"},"429":{"$ref":"#/components/responses/TooManyRequests"},"500":{"$ref":"#/components/responses/ServerError"}},"security":[{"JWT":[]},{"ApiKey":[]}],"summary":"Create a new NPS survey","tags":["NPS Surveys"],"x-api-key-scopes":["*"]}},"/v1/nps-surveys/metrics/nps":{"get":{"operationId":"npsSurveys_getNpsMetricsFrontend","parameters":[],"responses":{"200":{"description":"NPS metrics overview"},"401":{"$ref":"#/components/responses/Unauthorized"},"403":{"$ref":"#/components/responses/Forbidden"},"429":{"$ref":"#/components/responses/TooManyRequests"},"500":{"$ref":"#/components/responses/ServerError"}},"security":[{"JWT":[]},{"ApiKey":[]}],"summary":"Get NPS metrics across all surveys (frontend path)","tags":["NPS Surveys"],"x-api-key-scopes":["*"]}},"/v1/nps-surveys/nps-metrics":{"get":{"operationId":"npsSurveys_getNpsMetrics","parameters":[],"responses":{"200":{"description":"NPS metrics overview"},"401":{"$ref":"#/components/responses/Unauthorized"},"403":{"$ref":"#/components/responses/Forbidden"},"429":{"$ref":"#/components/responses/TooManyRequests"},"500":{"$ref":"#/components/responses/ServerError"}},"security":[{"JWT":[]},{"ApiKey":[]}],"summary":"Get NPS metrics across all surveys","tags":["NPS Surveys"],"x-api-key-scopes":["*"]}},"/v1/nps-surveys/stats":{"get":{"operationId":"npsSurveys_getStats","parameters":[],"responses":{"200":{"description":"Survey statistics"},"401":{"$ref":"#/components/responses/Unauthorized"},"403":{"$ref":"#/components/responses/Forbidden"},"429":{"$ref":"#/components/responses/TooManyRequests"},"500":{"$ref":"#/components/responses/ServerError"}},"security":[{"JWT":[]},{"ApiKey":[]}],"summary":"Get NPS survey statistics","tags":["NPS Surveys"],"x-api-key-scopes":["*"]}},"/v1/nps-surveys/trend":{"get":{"operationId":"npsSurveys_getTrend","parameters":[{"name":"period","required":false,"in":"query","schema":{"type":"string"}}],"responses":{"200":{"description":"NPS trend data points"},"400":{"$ref":"#/components/responses/BadRequest"},"401":{"$ref":"#/components/responses/Unauthorized"},"403":{"$ref":"#/components/responses/Forbidden"},"429":{"$ref":"#/components/responses/TooManyRequests"},"500":{"$ref":"#/components/responses/ServerError"}},"security":[{"JWT":[]},{"ApiKey":[]}],"summary":"Get NPS trend over time","tags":["NPS Surveys"],"x-api-key-scopes":["*"]}},"/v1/nps-surveys/by-segment":{"get":{"operationId":"npsSurveys_getBySegment","parameters":[{"name":"segmentBy","required":false,"in":"query","schema":{"type":"string"}}],"responses":{"200":{"description":"NPS by segment"},"400":{"$ref":"#/components/responses/BadRequest"},"401":{"$ref":"#/components/responses/Unauthorized"},"403":{"$ref":"#/components/responses/Forbidden"},"429":{"$ref":"#/components/responses/TooManyRequests"},"500":{"$ref":"#/components/responses/ServerError"}},"security":[{"JWT":[]},{"ApiKey":[]}],"summary":"Get NPS breakdown by segment (account tier, industry)","tags":["NPS Surveys"],"x-api-key-scopes":["*"]}},"/v1/nps-surveys/{id}":{"get":{"operationId":"npsSurveys_getSurvey","parameters":[{"name":"id","required":true,"in":"path","schema":{"type":"string"}}],"responses":{"200":{"description":"NPS survey details"},"400":{"$ref":"#/components/responses/BadRequest"},"401":{"$ref":"#/components/responses/Unauthorized"},"403":{"$ref":"#/components/responses/Forbidden"},"404":{"$ref":"#/components/responses/NotFound"},"429":{"$ref":"#/components/responses/TooManyRequests"},"500":{"$ref":"#/components/responses/ServerError"}},"security":[{"JWT":[]},{"ApiKey":[]}],"summary":"Get a specific NPS survey","tags":["NPS Surveys"],"x-api-key-scopes":["*"]},"put":{"operationId":"npsSurveys_updateSurveyPut","parameters":[{"name":"id","required":true,"in":"path","schema":{"type":"string"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/UpdateSurveyPutBody"}}}},"responses":{"200":{"description":"NPS survey updated"},"400":{"$ref":"#/components/responses/BadRequest"},"401":{"$ref":"#/components/responses/Unauthorized"},"403":{"$ref":"#/components/responses/Forbidden"},"404":{"$ref":"#/components/responses/NotFound"},"429":{"$ref":"#/components/responses/TooManyRequests"},"500":{"$ref":"#/components/responses/ServerError"}},"security":[{"JWT":[]},{"ApiKey":[]}],"summary":"Update an NPS survey (PUT)","tags":["NPS Surveys"],"x-api-key-scopes":["*"]},"patch":{"operationId":"npsSurveys_updateSurvey","parameters":[{"name":"id","required":true,"in":"path","schema":{"type":"string"}},{"$ref":"#/components/parameters/IdempotencyKey"}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/UpdateSurveyBody"}}}},"responses":{"200":{"description":"NPS survey updated"},"400":{"$ref":"#/components/responses/BadRequest"},"401":{"$ref":"#/components/responses/Unauthorized"},"403":{"$ref":"#/components/responses/Forbidden"},"404":{"$ref":"#/components/responses/NotFound"},"409":{"$ref":"#/components/responses/Conflict"},"429":{"$ref":"#/components/responses/TooManyRequests"},"500":{"$ref":"#/components/responses/ServerError"}},"security":[{"JWT":[]},{"ApiKey":[]}],"summary":"Update an NPS survey","tags":["NPS Surveys"],"x-api-key-scopes":["*"]},"delete":{"operationId":"npsSurveys_deleteSurvey","parameters":[{"name":"id","required":true,"in":"path","schema":{"type":"string"}}],"responses":{"200":{"description":"NPS survey deleted"},"400":{"$ref":"#/components/responses/BadRequest"},"401":{"$ref":"#/components/responses/Unauthorized"},"403":{"$ref":"#/components/responses/Forbidden"},"404":{"$ref":"#/components/responses/NotFound"},"429":{"$ref":"#/components/responses/TooManyRequests"},"500":{"$ref":"#/components/responses/ServerError"}},"security":[{"JWT":[]},{"ApiKey":[]}],"summary":"Delete an NPS survey","tags":["NPS Surveys"],"x-api-key-scopes":["*"]}},"/v1/nps-surveys/{id}/toggle":{"post":{"operationId":"npsSurveys_toggleSurvey","parameters":[{"name":"id","required":true,"in":"path","schema":{"type":"string"}},{"$ref":"#/components/parameters/IdempotencyKey"}],"responses":{"200":{"description":"Survey toggled"},"400":{"$ref":"#/components/responses/BadRequest"},"401":{"$ref":"#/components/responses/Unauthorized"},"403":{"$ref":"#/components/responses/Forbidden"},"404":{"$ref":"#/components/responses/NotFound"},"409":{"$ref":"#/components/responses/Conflict"},"429":{"$ref":"#/components/responses/TooManyRequests"},"500":{"$ref":"#/components/responses/ServerError"}},"security":[{"JWT":[]},{"ApiKey":[]}],"summary":"Toggle survey active/paused state","tags":["NPS Surveys"],"x-api-key-scopes":["*"]}},"/v1/nps-surveys/{id}/send":{"post":{"operationId":"npsSurveys_sendNow","parameters":[{"name":"id","required":true,"in":"path","schema":{"type":"string"}},{"$ref":"#/components/parameters/IdempotencyKey"}],"responses":{"201":{"description":"Send counts"},"400":{"$ref":"#/components/responses/BadRequest"},"401":{"$ref":"#/components/responses/Unauthorized"},"403":{"$ref":"#/components/responses/Forbidden"},"404":{"$ref":"#/components/responses/NotFound"},"409":{"$ref":"#/components/responses/Conflict"},"429":{"$ref":"#/components/responses/TooManyRequests"},"500":{"$ref":"#/components/responses/ServerError"}},"security":[{"JWT":[]},{"ApiKey":[]}],"summary":"Email the survey to its audience now","tags":["NPS Surveys"],"x-api-key-scopes":["*"]}},"/v1/nps-surveys/{id}/responses":{"get":{"operationId":"npsSurveys_getSurveyResponses","parameters":[{"name":"id","required":true,"in":"path","schema":{"type":"string"}},{"name":"page","required":false,"in":"query","schema":{"type":"string"}},{"name":"limit","required":false,"in":"query","schema":{"type":"string"}},{"name":"category","required":false,"in":"query","schema":{"type":"string"}}],"responses":{"200":{"description":"Survey responses with NPS breakdown"},"400":{"$ref":"#/components/responses/BadRequest"},"401":{"$ref":"#/components/responses/Unauthorized"},"403":{"$ref":"#/components/responses/Forbidden"},"404":{"$ref":"#/components/responses/NotFound"},"429":{"$ref":"#/components/responses/TooManyRequests"},"500":{"$ref":"#/components/responses/ServerError"}},"security":[{"JWT":[]},{"ApiKey":[]}],"summary":"Get survey responses","tags":["NPS Surveys"],"x-api-key-scopes":["*"]},"post":{"operationId":"npsSurveys_submitResponse","parameters":[{"name":"id","required":true,"in":"path","schema":{"type":"string"}},{"$ref":"#/components/parameters/IdempotencyKey"}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/SubmitResponseBody"}}}},"responses":{"201":{"description":"Response recorded"},"400":{"$ref":"#/components/responses/BadRequest"},"401":{"$ref":"#/components/responses/Unauthorized"},"403":{"$ref":"#/components/responses/Forbidden"},"404":{"$ref":"#/components/responses/NotFound"},"409":{"$ref":"#/components/responses/Conflict"},"429":{"$ref":"#/components/responses/TooManyRequests"},"500":{"$ref":"#/components/responses/ServerError"}},"security":[{"JWT":[]},{"ApiKey":[]}],"summary":"Submit a response to a survey","tags":["NPS Surveys"],"x-api-key-scopes":["*"]}},"/v1/nps-surveys/{id}/responses/export":{"get":{"operationId":"npsSurveys_exportResponses","parameters":[{"name":"id","required":true,"in":"path","schema":{"type":"string"}},{"name":"format","required":true,"in":"query","schema":{"type":"string"}}],"responses":{"200":{"description":"Exported survey responses"},"400":{"$ref":"#/components/responses/BadRequest"},"401":{"$ref":"#/components/responses/Unauthorized"},"403":{"$ref":"#/components/responses/Forbidden"},"404":{"$ref":"#/components/responses/NotFound"},"429":{"$ref":"#/components/responses/TooManyRequests"},"500":{"$ref":"#/components/responses/ServerError"}},"security":[{"JWT":[]},{"ApiKey":[]}],"summary":"Export survey responses","tags":["NPS Surveys"],"x-api-key-scopes":["*"]}},"/v1/public/nps-surveys/{token}":{"get":{"operationId":"npsSurveyPublic_get","parameters":[{"name":"token","required":true,"in":"path","schema":{"type":"string"}}],"responses":{"200":{"description":""},"400":{"$ref":"#/components/responses/BadRequest"},"404":{"$ref":"#/components/responses/NotFound"},"429":{"$ref":"#/components/responses/TooManyRequests"},"500":{"$ref":"#/components/responses/ServerError"}},"summary":"Survey question for an emailed link","tags":["NPS Surveys"],"security":[]},"post":{"operationId":"npsSurveyPublic_answer","parameters":[{"name":"token","required":true,"in":"path","schema":{"type":"string"}},{"$ref":"#/components/parameters/IdempotencyKey"}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/PublicSurveyAnswerDto"}}}},"responses":{"201":{"description":""},"400":{"$ref":"#/components/responses/BadRequest"},"404":{"$ref":"#/components/responses/NotFound"},"409":{"$ref":"#/components/responses/Conflict"},"429":{"$ref":"#/components/responses/TooManyRequests"},"500":{"$ref":"#/components/responses/ServerError"}},"summary":"Record or revise the answer for an emailed link","tags":["NPS Surveys"],"security":[]}},"/v1/customer-portal/config":{"get":{"operationId":"customerPortal_getConfig","parameters":[],"responses":{"200":{"description":"Portal configuration"},"401":{"$ref":"#/components/responses/Unauthorized"},"403":{"$ref":"#/components/responses/Forbidden"},"429":{"$ref":"#/components/responses/TooManyRequests"},"500":{"$ref":"#/components/responses/ServerError"}},"security":[{"JWT":[]},{"ApiKey":[]}],"summary":"Get customer portal configuration","tags":["Customer Portal"],"x-api-key-scopes":["*"]},"patch":{"operationId":"customerPortal_updateConfig","parameters":[{"$ref":"#/components/parameters/IdempotencyKey"}],"responses":{"200":{"description":"Updated portal configuration"},"400":{"$ref":"#/components/responses/BadRequest"},"401":{"$ref":"#/components/responses/Unauthorized"},"403":{"$ref":"#/components/responses/Forbidden"},"409":{"$ref":"#/components/responses/Conflict"},"429":{"$ref":"#/components/responses/TooManyRequests"},"500":{"$ref":"#/components/responses/ServerError"}},"security":[{"JWT":[]},{"ApiKey":[]}],"summary":"Update customer portal configuration","tags":["Customer Portal"],"x-api-key-scopes":["*"]}},"/v1/customer-portal/users":{"get":{"operationId":"customerPortal_getUsers","parameters":[{"name":"accountId","required":false,"in":"query","schema":{"maxLength":64,"type":"string"}},{"name":"contactId","required":false,"in":"query","schema":{"maxLength":64,"type":"string"}}],"responses":{"200":{"description":"List of portal users"},"400":{"$ref":"#/components/responses/BadRequest"},"401":{"$ref":"#/components/responses/Unauthorized"},"403":{"$ref":"#/components/responses/Forbidden"},"429":{"$ref":"#/components/responses/TooManyRequests"},"500":{"$ref":"#/components/responses/ServerError"}},"security":[{"JWT":[]},{"ApiKey":[]}],"summary":"List portal users (optionally for one account or contact)","tags":["Customer Portal"],"x-api-key-scopes":["*"]}},"/v1/customer-portal/users/{id}":{"get":{"operationId":"customerPortal_getUser","parameters":[{"name":"id","required":true,"in":"path","schema":{"type":"string"}}],"responses":{"200":{"description":"Portal user details"},"400":{"$ref":"#/components/responses/BadRequest"},"401":{"$ref":"#/components/responses/Unauthorized"},"403":{"$ref":"#/components/responses/Forbidden"},"404":{"$ref":"#/components/responses/NotFound"},"429":{"$ref":"#/components/responses/TooManyRequests"},"500":{"$ref":"#/components/responses/ServerError"}},"security":[{"JWT":[]},{"ApiKey":[]}],"summary":"Get a single portal user","tags":["Customer Portal"],"x-api-key-scopes":["*"]},"delete":{"operationId":"customerPortal_removeUser","parameters":[{"name":"id","required":true,"in":"path","schema":{"type":"string"}}],"responses":{"200":{"description":"Portal access revoked"},"400":{"$ref":"#/components/responses/BadRequest"},"401":{"$ref":"#/components/responses/Unauthorized"},"403":{"$ref":"#/components/responses/Forbidden"},"404":{"$ref":"#/components/responses/NotFound"},"429":{"$ref":"#/components/responses/TooManyRequests"},"500":{"$ref":"#/components/responses/ServerError"}},"security":[{"JWT":[]},{"ApiKey":[]}],"summary":"Revoke portal access (kept for older clients)","tags":["Customer Portal"],"x-api-key-scopes":["*"]}},"/v1/customer-portal/invitations":{"post":{"operationId":"customerPortal_sendInvitation","parameters":[{"$ref":"#/components/parameters/IdempotencyKey"}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/InvitePortalUserDto"}}}},"responses":{"201":{"description":"Invitation created; inviteUrl is returned only when the email was not sent (EMAIL_NOT_CONFIGURED etc.)"},"400":{"$ref":"#/components/responses/BadRequest"},"401":{"$ref":"#/components/responses/Unauthorized"},"403":{"$ref":"#/components/responses/Forbidden"},"409":{"$ref":"#/components/responses/Conflict"},"429":{"$ref":"#/components/responses/TooManyRequests"},"500":{"$ref":"#/components/responses/ServerError"}},"security":[{"JWT":[]},{"ApiKey":[]}],"summary":"Invite a contact to the customer portal","tags":["Customer Portal"],"x-api-key-scopes":["*"]},"get":{"operationId":"customerPortal_getInvitations","parameters":[],"responses":{"200":{"description":"Pending invitations"},"401":{"$ref":"#/components/responses/Unauthorized"},"403":{"$ref":"#/components/responses/Forbidden"},"429":{"$ref":"#/components/responses/TooManyRequests"},"500":{"$ref":"#/components/responses/ServerError"}},"security":[{"JWT":[]},{"ApiKey":[]}],"summary":"List pending portal invitations","tags":["Customer Portal"],"x-api-key-scopes":["*"]}},"/v1/customer-portal/users/invite":{"post":{"operationId":"customerPortal_inviteUser","parameters":[{"$ref":"#/components/parameters/IdempotencyKey"}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/InvitePortalUserDto"}}}},"responses":{"201":{"description":""},"400":{"$ref":"#/components/responses/BadRequest"},"401":{"$ref":"#/components/responses/Unauthorized"},"403":{"$ref":"#/components/responses/Forbidden"},"409":{"$ref":"#/components/responses/Conflict"},"429":{"$ref":"#/components/responses/TooManyRequests"},"500":{"$ref":"#/components/responses/ServerError"}},"security":[{"JWT":[]},{"ApiKey":[]}],"summary":"Invite a contact to the customer portal","tags":["Customer Portal"],"x-api-key-scopes":["*"]}},"/v1/customer-portal/users/{id}/access":{"delete":{"operationId":"customerPortal_revokeAccess","parameters":[{"name":"id","required":true,"in":"path","schema":{"type":"string"}}],"responses":{"200":{"description":"Portal access revoked"},"400":{"$ref":"#/components/responses/BadRequest"},"401":{"$ref":"#/components/responses/Unauthorized"},"403":{"$ref":"#/components/responses/Forbidden"},"404":{"$ref":"#/components/responses/NotFound"},"429":{"$ref":"#/components/responses/TooManyRequests"},"500":{"$ref":"#/components/responses/ServerError"}},"security":[{"JWT":[]},{"ApiKey":[]}],"summary":"Revoke portal access (ends their sessions)","tags":["Customer Portal"],"x-api-key-scopes":["*"]}},"/v1/customer-portal/stats":{"get":{"operationId":"customerPortal_getStats","parameters":[],"responses":{"200":{"description":"Portal statistics"},"401":{"$ref":"#/components/responses/Unauthorized"},"403":{"$ref":"#/components/responses/Forbidden"},"429":{"$ref":"#/components/responses/TooManyRequests"},"500":{"$ref":"#/components/responses/ServerError"}},"security":[{"JWT":[]},{"ApiKey":[]}],"summary":"Get customer portal statistics","tags":["Customer Portal"],"x-api-key-scopes":["*"]}},"/v1/customer-portal/sessions":{"get":{"operationId":"customerPortal_getSessions","parameters":[],"responses":{"200":{"description":"Recent sign-ins"},"401":{"$ref":"#/components/responses/Unauthorized"},"403":{"$ref":"#/components/responses/Forbidden"},"429":{"$ref":"#/components/responses/TooManyRequests"},"500":{"$ref":"#/components/responses/ServerError"}},"security":[{"JWT":[]},{"ApiKey":[]}],"summary":"Get portal sign-ins from the last 24 hours","tags":["Customer Portal"],"x-api-key-scopes":["*"]}},"/v1/customer-portal/features/{featureId}/toggle":{"patch":{"operationId":"customerPortal_toggleFeature","parameters":[{"name":"featureId","required":true,"in":"path","schema":{"type":"string"}},{"$ref":"#/components/parameters/IdempotencyKey"}],"responses":{"200":{"description":"Feature toggled"},"400":{"$ref":"#/components/responses/BadRequest"},"401":{"$ref":"#/components/responses/Unauthorized"},"403":{"$ref":"#/components/responses/Forbidden"},"404":{"$ref":"#/components/responses/NotFound"},"409":{"$ref":"#/components/responses/Conflict"},"429":{"$ref":"#/components/responses/TooManyRequests"},"500":{"$ref":"#/components/responses/ServerError"}},"security":[{"JWT":[]},{"ApiKey":[]}],"summary":"Toggle a portal feature","tags":["Customer Portal"],"x-api-key-scopes":["*"]}},"/v1/auto-enrichment/config":{"get":{"operationId":"autoEnrichment_getConfig","parameters":[],"responses":{"200":{"description":"Enrichment configuration"},"401":{"$ref":"#/components/responses/Unauthorized"},"403":{"$ref":"#/components/responses/Forbidden"},"429":{"$ref":"#/components/responses/TooManyRequests"},"500":{"$ref":"#/components/responses/ServerError"}},"security":[{"JWT":[]},{"ApiKey":[]}],"summary":"Get auto-enrichment configuration","tags":["Auto Enrichment"],"x-api-key-scopes":["*"]},"put":{"operationId":"autoEnrichment_updateConfigPut","parameters":[],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/UpdateEnrichmentConfigDto"}}}},"responses":{"200":{"description":"Updated enrichment configuration"},"400":{"$ref":"#/components/responses/BadRequest"},"401":{"$ref":"#/components/responses/Unauthorized"},"403":{"$ref":"#/components/responses/Forbidden"},"429":{"$ref":"#/components/responses/TooManyRequests"},"500":{"$ref":"#/components/responses/ServerError"}},"security":[{"JWT":[]},{"ApiKey":[]}],"summary":"Update auto-enrichment configuration (PUT)","tags":["Auto Enrichment"],"x-api-key-scopes":["*"]},"patch":{"operationId":"autoEnrichment_updateConfig","parameters":[{"$ref":"#/components/parameters/IdempotencyKey"}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/UpdateEnrichmentConfigDto"}}}},"responses":{"200":{"description":"Updated enrichment configuration"},"400":{"$ref":"#/components/responses/BadRequest"},"401":{"$ref":"#/components/responses/Unauthorized"},"403":{"$ref":"#/components/responses/Forbidden"},"409":{"$ref":"#/components/responses/Conflict"},"429":{"$ref":"#/components/responses/TooManyRequests"},"500":{"$ref":"#/components/responses/ServerError"}},"security":[{"JWT":[]},{"ApiKey":[]}],"summary":"Update auto-enrichment configuration","tags":["Auto Enrichment"],"x-api-key-scopes":["*"]}},"/v1/auto-enrichment/jobs":{"get":{"operationId":"autoEnrichment_getJobs","parameters":[{"name":"entityType","required":false,"in":"query","schema":{"type":"string"}},{"name":"status","required":false,"in":"query","schema":{"type":"string"}}],"responses":{"200":{"description":"List of enrichment jobs"},"400":{"$ref":"#/components/responses/BadRequest"},"401":{"$ref":"#/components/responses/Unauthorized"},"403":{"$ref":"#/components/responses/Forbidden"},"429":{"$ref":"#/components/responses/TooManyRequests"},"500":{"$ref":"#/components/responses/ServerError"}},"security":[{"JWT":[]},{"ApiKey":[]}],"summary":"List enrichment jobs","tags":["Auto Enrichment"],"x-api-key-scopes":["*"]}},"/v1/auto-enrichment/jobs/{id}":{"get":{"operationId":"autoEnrichment_getJob","parameters":[{"name":"id","required":true,"in":"path","schema":{"type":"string"}}],"responses":{"200":{"description":"Enrichment job details"},"400":{"$ref":"#/components/responses/BadRequest"},"401":{"$ref":"#/components/responses/Unauthorized"},"403":{"$ref":"#/components/responses/Forbidden"},"404":{"$ref":"#/components/responses/NotFound"},"429":{"$ref":"#/components/responses/TooManyRequests"},"500":{"$ref":"#/components/responses/ServerError"}},"security":[{"JWT":[]},{"ApiKey":[]}],"summary":"Get enrichment job details","tags":["Auto Enrichment"],"x-api-key-scopes":["*"]}},"/v1/auto-enrichment/conflicts":{"get":{"operationId":"autoEnrichment_getConflicts","parameters":[],"responses":{"200":{"description":"List of conflicts"},"401":{"$ref":"#/components/responses/Unauthorized"},"403":{"$ref":"#/components/responses/Forbidden"},"429":{"$ref":"#/components/responses/TooManyRequests"},"500":{"$ref":"#/components/responses/ServerError"}},"security":[{"JWT":[]},{"ApiKey":[]}],"summary":"Get enrichment conflicts needing review","tags":["Auto Enrichment"],"x-api-key-scopes":["*"]}},"/v1/auto-enrichment/conflicts/{id}/resolve":{"put":{"operationId":"autoEnrichment_resolveConflictPut","parameters":[{"name":"id","required":true,"in":"path","schema":{"type":"string"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ResolveConflictBody"}}}},"responses":{"200":{"description":"Conflict resolved"},"400":{"$ref":"#/components/responses/BadRequest"},"401":{"$ref":"#/components/responses/Unauthorized"},"403":{"$ref":"#/components/responses/Forbidden"},"404":{"$ref":"#/components/responses/NotFound"},"429":{"$ref":"#/components/responses/TooManyRequests"},"500":{"$ref":"#/components/responses/ServerError"}},"security":[{"JWT":[]},{"ApiKey":[]}],"summary":"Resolve an enrichment conflict (PUT)","tags":["Auto Enrichment"],"x-api-key-scopes":["*"]},"post":{"operationId":"autoEnrichment_resolveConflict","parameters":[{"name":"id","required":true,"in":"path","schema":{"type":"string"}},{"$ref":"#/components/parameters/IdempotencyKey"}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ResolveConflictBody"}}}},"responses":{"200":{"description":"Conflict resolved"},"400":{"$ref":"#/components/responses/BadRequest"},"401":{"$ref":"#/components/responses/Unauthorized"},"403":{"$ref":"#/components/responses/Forbidden"},"404":{"$ref":"#/components/responses/NotFound"},"409":{"$ref":"#/components/responses/Conflict"},"429":{"$ref":"#/components/responses/TooManyRequests"},"500":{"$ref":"#/components/responses/ServerError"}},"security":[{"JWT":[]},{"ApiKey":[]}],"summary":"Resolve an enrichment conflict","tags":["Auto Enrichment"],"x-api-key-scopes":["*"]}},"/v1/auto-enrichment/stats":{"get":{"operationId":"autoEnrichment_getStats","parameters":[],"responses":{"200":{"description":"Enrichment statistics"},"401":{"$ref":"#/components/responses/Unauthorized"},"403":{"$ref":"#/components/responses/Forbidden"},"429":{"$ref":"#/components/responses/TooManyRequests"},"500":{"$ref":"#/components/responses/ServerError"}},"security":[{"JWT":[]},{"ApiKey":[]}],"summary":"Get enrichment statistics","tags":["Auto Enrichment"],"x-api-key-scopes":["*"]}},"/v1/auto-enrichment/jobs/{id}/retry":{"post":{"operationId":"autoEnrichment_retryJob","parameters":[{"name":"id","required":true,"in":"path","schema":{"type":"string"}},{"$ref":"#/components/parameters/IdempotencyKey"}],"responses":{"200":{"description":"Job queued for retry"},"400":{"$ref":"#/components/responses/BadRequest"},"401":{"$ref":"#/components/responses/Unauthorized"},"403":{"$ref":"#/components/responses/Forbidden"},"404":{"$ref":"#/components/responses/NotFound"},"409":{"$ref":"#/components/responses/Conflict"},"429":{"$ref":"#/components/responses/TooManyRequests"},"500":{"$ref":"#/components/responses/ServerError"}},"security":[{"JWT":[]},{"ApiKey":[]}],"summary":"Retry a failed enrichment job","tags":["Auto Enrichment"],"x-api-key-scopes":["*"]}},"/v1/auto-enrichment/pause":{"post":{"operationId":"autoEnrichment_pausePipeline","parameters":[{"$ref":"#/components/parameters/IdempotencyKey"}],"responses":{"200":{"description":"Pipeline paused"},"400":{"$ref":"#/components/responses/BadRequest"},"401":{"$ref":"#/components/responses/Unauthorized"},"403":{"$ref":"#/components/responses/Forbidden"},"409":{"$ref":"#/components/responses/Conflict"},"429":{"$ref":"#/components/responses/TooManyRequests"},"500":{"$ref":"#/components/responses/ServerError"}},"security":[{"JWT":[]},{"ApiKey":[]}],"summary":"Pause enrichment pipeline","tags":["Auto Enrichment"],"x-api-key-scopes":["*"]}},"/v1/auto-enrichment/resume":{"post":{"operationId":"autoEnrichment_resumePipeline","parameters":[{"$ref":"#/components/parameters/IdempotencyKey"}],"responses":{"200":{"description":"Pipeline resumed"},"400":{"$ref":"#/components/responses/BadRequest"},"401":{"$ref":"#/components/responses/Unauthorized"},"403":{"$ref":"#/components/responses/Forbidden"},"409":{"$ref":"#/components/responses/Conflict"},"429":{"$ref":"#/components/responses/TooManyRequests"},"500":{"$ref":"#/components/responses/ServerError"}},"security":[{"JWT":[]},{"ApiKey":[]}],"summary":"Resume enrichment pipeline","tags":["Auto Enrichment"],"x-api-key-scopes":["*"]}},"/v1/auto-enrichment/credits":{"get":{"operationId":"autoEnrichment_getCreditUsage","parameters":[],"responses":{"200":{"description":"Credit usage"},"401":{"$ref":"#/components/responses/Unauthorized"},"403":{"$ref":"#/components/responses/Forbidden"},"429":{"$ref":"#/components/responses/TooManyRequests"},"500":{"$ref":"#/components/responses/ServerError"}},"security":[{"JWT":[]},{"ApiKey":[]}],"summary":"Get credit usage breakdown","tags":["Auto Enrichment"],"x-api-key-scopes":["*"]}},"/v1/duplicate-detection/sets":{"get":{"operationId":"duplicateDetection_getDuplicateSets","parameters":[{"name":"entityType","required":false,"in":"query","schema":{"type":"string"}},{"name":"status","required":false,"in":"query","schema":{"type":"string"}},{"name":"limit","required":false,"in":"query","schema":{"type":"string"}}],"responses":{"200":{"description":"List of duplicate sets"},"400":{"$ref":"#/components/responses/BadRequest"},"401":{"$ref":"#/components/responses/Unauthorized"},"403":{"$ref":"#/components/responses/Forbidden"},"429":{"$ref":"#/components/responses/TooManyRequests"},"500":{"$ref":"#/components/responses/ServerError"}},"security":[{"JWT":[]},{"ApiKey":[]}],"summary":"List duplicate sets","tags":["Duplicate Detection"],"x-api-key-scopes":["*"]}},"/v1/duplicate-detection/sets/{id}":{"get":{"operationId":"duplicateDetection_getDuplicateSet","parameters":[{"name":"id","required":true,"in":"path","schema":{"type":"string"}}],"responses":{"200":{"description":"Duplicate set with member details"},"400":{"$ref":"#/components/responses/BadRequest"},"401":{"$ref":"#/components/responses/Unauthorized"},"403":{"$ref":"#/components/responses/Forbidden"},"404":{"$ref":"#/components/responses/NotFound"},"429":{"$ref":"#/components/responses/TooManyRequests"},"500":{"$ref":"#/components/responses/ServerError"}},"security":[{"JWT":[]},{"ApiKey":[]}],"summary":"Get duplicate set details with enriched member data","tags":["Duplicate Detection"],"x-api-key-scopes":["*"]}},"/v1/duplicate-detection/sets/{id}/preview":{"post":{"operationId":"duplicateDetection_getMergePreviewFrontend","parameters":[{"name":"id","required":true,"in":"path","schema":{"type":"string"}},{"$ref":"#/components/parameters/IdempotencyKey"}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/MergePreviewBodyDto"}}}},"responses":{"200":{"description":"Merge preview"},"400":{"$ref":"#/components/responses/BadRequest"},"401":{"$ref":"#/components/responses/Unauthorized"},"403":{"$ref":"#/components/responses/Forbidden"},"404":{"$ref":"#/components/responses/NotFound"},"409":{"$ref":"#/components/responses/Conflict"},"429":{"$ref":"#/components/responses/TooManyRequests"},"500":{"$ref":"#/components/responses/ServerError"}},"security":[{"JWT":[]},{"ApiKey":[]}],"summary":"Preview merge result for a duplicate set (frontend path)","tags":["Duplicate Detection"],"x-api-key-scopes":["*"]}},"/v1/duplicate-detection/sets/{id}/merge-preview":{"post":{"operationId":"duplicateDetection_getMergePreview","parameters":[{"name":"id","required":true,"in":"path","schema":{"type":"string"}},{"$ref":"#/components/parameters/IdempotencyKey"}],"responses":{"200":{"description":"Merge preview with conflicts and suggestions"},"400":{"$ref":"#/components/responses/BadRequest"},"401":{"$ref":"#/components/responses/Unauthorized"},"403":{"$ref":"#/components/responses/Forbidden"},"404":{"$ref":"#/components/responses/NotFound"},"409":{"$ref":"#/components/responses/Conflict"},"429":{"$ref":"#/components/responses/TooManyRequests"},"500":{"$ref":"#/components/responses/ServerError"}},"security":[{"JWT":[]},{"ApiKey":[]}],"summary":"Preview merge result for a duplicate set","tags":["Duplicate Detection"],"x-api-key-scopes":["*"]}},"/v1/duplicate-detection/sets/{id}/merge":{"post":{"operationId":"duplicateDetection_mergeDuplicateSet","parameters":[{"name":"id","required":true,"in":"path","schema":{"type":"string"}},{"$ref":"#/components/parameters/IdempotencyKey"}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/MergeDuplicateSetBody"}}}},"responses":{"200":{"description":"Entities merged successfully"},"400":{"$ref":"#/components/responses/BadRequest"},"401":{"$ref":"#/components/responses/Unauthorized"},"403":{"$ref":"#/components/responses/Forbidden"},"404":{"$ref":"#/components/responses/NotFound"},"409":{"$ref":"#/components/responses/Conflict"},"429":{"$ref":"#/components/responses/TooManyRequests"},"500":{"$ref":"#/components/responses/ServerError"}},"security":[{"JWT":[]},{"ApiKey":[]}],"summary":"Merge duplicate entities","tags":["Duplicate Detection"],"x-api-key-scopes":["*"]}},"/v1/duplicate-detection/sets/{id}/dismiss":{"post":{"operationId":"duplicateDetection_dismissDuplicateSet","parameters":[{"name":"id","required":true,"in":"path","schema":{"type":"string"}},{"$ref":"#/components/parameters/IdempotencyKey"}],"responses":{"200":{"description":"Duplicate set dismissed"},"400":{"$ref":"#/components/responses/BadRequest"},"401":{"$ref":"#/components/responses/Unauthorized"},"403":{"$ref":"#/components/responses/Forbidden"},"404":{"$ref":"#/components/responses/NotFound"},"409":{"$ref":"#/components/responses/Conflict"},"429":{"$ref":"#/components/responses/TooManyRequests"},"500":{"$ref":"#/components/responses/ServerError"}},"security":[{"JWT":[]},{"ApiKey":[]}],"summary":"Dismiss a duplicate set","tags":["Duplicate Detection"],"x-api-key-scopes":["*"]}},"/v1/duplicate-detection/stats":{"get":{"operationId":"duplicateDetection_getStats","parameters":[],"responses":{"200":{"description":"Duplicate detection stats"},"401":{"$ref":"#/components/responses/Unauthorized"},"403":{"$ref":"#/components/responses/Forbidden"},"429":{"$ref":"#/components/responses/TooManyRequests"},"500":{"$ref":"#/components/responses/ServerError"}},"security":[{"JWT":[]},{"ApiKey":[]}],"summary":"Get duplicate detection statistics","tags":["Duplicate Detection"],"x-api-key-scopes":["*"]}},"/v1/duplicate-detection/config":{"get":{"operationId":"duplicateDetection_getConfig","parameters":[],"responses":{"200":{"description":"Duplicate detection config"},"401":{"$ref":"#/components/responses/Unauthorized"},"403":{"$ref":"#/components/responses/Forbidden"},"429":{"$ref":"#/components/responses/TooManyRequests"},"500":{"$ref":"#/components/responses/ServerError"}},"security":[{"JWT":[]},{"ApiKey":[]}],"summary":"Get duplicate detection configuration","tags":["Duplicate Detection"],"x-api-key-scopes":["*"]},"patch":{"operationId":"duplicateDetection_updateConfig","parameters":[{"$ref":"#/components/parameters/IdempotencyKey"}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/UpdateDuplicateDetectionConfigDto"}}}},"responses":{"200":{"description":"Updated config"},"400":{"$ref":"#/components/responses/BadRequest"},"401":{"$ref":"#/components/responses/Unauthorized"},"403":{"$ref":"#/components/responses/Forbidden"},"409":{"$ref":"#/components/responses/Conflict"},"429":{"$ref":"#/components/responses/TooManyRequests"},"500":{"$ref":"#/components/responses/ServerError"}},"security":[{"JWT":[]},{"ApiKey":[]}],"summary":"Update duplicate detection configuration","tags":["Duplicate Detection"],"x-api-key-scopes":["*"]}},"/v1/duplicate-detection/scan":{"post":{"operationId":"duplicateDetection_triggerScan","parameters":[{"$ref":"#/components/parameters/IdempotencyKey"}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/TriggerScanBody"}}}},"responses":{"200":{"description":"Scan initiated"},"400":{"$ref":"#/components/responses/BadRequest"},"401":{"$ref":"#/components/responses/Unauthorized"},"403":{"$ref":"#/components/responses/Forbidden"},"409":{"$ref":"#/components/responses/Conflict"},"429":{"$ref":"#/components/responses/TooManyRequests"},"500":{"$ref":"#/components/responses/ServerError"}},"security":[{"JWT":[]},{"ApiKey":[]}],"summary":"Trigger a full duplicate scan","tags":["Duplicate Detection"],"x-api-key-scopes":["*"]}},"/v1/duplicate-detection/scan-record":{"post":{"operationId":"duplicateDetection_scanRecord","parameters":[{"$ref":"#/components/parameters/IdempotencyKey"}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ScanRecordBody"}}}},"responses":{"200":{"description":"List of potential duplicate candidates with confidence scores"},"400":{"$ref":"#/components/responses/BadRequest"},"401":{"$ref":"#/components/responses/Unauthorized"},"403":{"$ref":"#/components/responses/Forbidden"},"409":{"$ref":"#/components/responses/Conflict"},"429":{"$ref":"#/components/responses/TooManyRequests"},"500":{"$ref":"#/components/responses/ServerError"}},"security":[{"JWT":[]},{"ApiKey":[]}],"summary":"Scan a specific record for potential duplicates using fuzzy matching","tags":["Duplicate Detection"],"x-api-key-scopes":["*"]}},"/v1/duplicate-detection/merge-history":{"get":{"operationId":"duplicateDetection_getMergeHistory","parameters":[{"name":"limit","required":false,"in":"query","schema":{"type":"string"}}],"responses":{"200":{"description":"Merge history"},"400":{"$ref":"#/components/responses/BadRequest"},"401":{"$ref":"#/components/responses/Unauthorized"},"403":{"$ref":"#/components/responses/Forbidden"},"429":{"$ref":"#/components/responses/TooManyRequests"},"500":{"$ref":"#/components/responses/ServerError"}},"security":[{"JWT":[]},{"ApiKey":[]}],"summary":"Get merge history","tags":["Duplicate Detection"],"x-api-key-scopes":["*"]}},"/v1/relationship-maps/maps":{"post":{"operationId":"relationshipMap_createMap","parameters":[{"$ref":"#/components/parameters/IdempotencyKey"}],"responses":{"201":{"description":"Map created"},"400":{"$ref":"#/components/responses/BadRequest"},"401":{"$ref":"#/components/responses/Unauthorized"},"403":{"$ref":"#/components/responses/Forbidden"},"409":{"$ref":"#/components/responses/Conflict"},"429":{"$ref":"#/components/responses/TooManyRequests"},"500":{"$ref":"#/components/responses/ServerError"}},"security":[{"JWT":[]},{"ApiKey":[]}],"summary":"Create a new persistent relationship map","tags":["Relationship Maps"],"x-api-key-scopes":["*"]}},"/v1/relationship-maps/maps/account/{accountId}":{"get":{"operationId":"relationshipMap_getMapsForAccount","parameters":[{"name":"accountId","required":true,"in":"path","schema":{"type":"string"}}],"responses":{"200":{"description":"List of maps for the account"},"400":{"$ref":"#/components/responses/BadRequest"},"401":{"$ref":"#/components/responses/Unauthorized"},"403":{"$ref":"#/components/responses/Forbidden"},"404":{"$ref":"#/components/responses/NotFound"},"429":{"$ref":"#/components/responses/TooManyRequests"},"500":{"$ref":"#/components/responses/ServerError"}},"security":[{"JWT":[]},{"ApiKey":[]}],"summary":"Get all persistent maps for an account","tags":["Relationship Maps"],"x-api-key-scopes":["*"]}},"/v1/relationship-maps/maps/deal/{dealId}":{"get":{"operationId":"relationshipMap_getMapsForDeal","parameters":[{"name":"dealId","required":true,"in":"path","schema":{"type":"string"}}],"responses":{"200":{"description":"List of maps for the deal"},"400":{"$ref":"#/components/responses/BadRequest"},"401":{"$ref":"#/components/responses/Unauthorized"},"403":{"$ref":"#/components/responses/Forbidden"},"404":{"$ref":"#/components/responses/NotFound"},"429":{"$ref":"#/components/responses/TooManyRequests"},"500":{"$ref":"#/components/responses/ServerError"}},"security":[{"JWT":[]},{"ApiKey":[]}],"summary":"Get all persistent maps for a deal","tags":["Relationship Maps"],"x-api-key-scopes":["*"]}},"/v1/relationship-maps/maps/{mapId}":{"get":{"operationId":"relationshipMap_getMapById","parameters":[{"name":"mapId","required":true,"in":"path","schema":{"type":"string"}}],"responses":{"200":{"description":"Map with nodes and edges"},"400":{"$ref":"#/components/responses/BadRequest"},"401":{"$ref":"#/components/responses/Unauthorized"},"403":{"$ref":"#/components/responses/Forbidden"},"404":{"$ref":"#/components/responses/NotFound"},"429":{"$ref":"#/components/responses/TooManyRequests"},"500":{"$ref":"#/components/responses/ServerError"}},"security":[{"JWT":[]},{"ApiKey":[]}],"summary":"Get a persistent map by ID","tags":["Relationship Maps"],"x-api-key-scopes":["*"]},"delete":{"operationId":"relationshipMap_deleteMap","parameters":[{"name":"mapId","required":true,"in":"path","schema":{"type":"string"}}],"responses":{"200":{"description":"Map deleted"},"400":{"$ref":"#/components/responses/BadRequest"},"401":{"$ref":"#/components/responses/Unauthorized"},"403":{"$ref":"#/components/responses/Forbidden"},"404":{"$ref":"#/components/responses/NotFound"},"429":{"$ref":"#/components/responses/TooManyRequests"},"500":{"$ref":"#/components/responses/ServerError"}},"security":[{"JWT":[]},{"ApiKey":[]}],"summary":"Delete a persistent map","tags":["Relationship Maps"],"x-api-key-scopes":["*"]}},"/v1/relationship-maps/maps/{mapId}/nodes":{"post":{"operationId":"relationshipMap_addNode","parameters":[{"name":"mapId","required":true,"in":"path","schema":{"type":"string"}},{"$ref":"#/components/parameters/IdempotencyKey"}],"responses":{"201":{"description":"Node added"},"400":{"$ref":"#/components/responses/BadRequest"},"401":{"$ref":"#/components/responses/Unauthorized"},"403":{"$ref":"#/components/responses/Forbidden"},"404":{"$ref":"#/components/responses/NotFound"},"409":{"$ref":"#/components/responses/Conflict"},"429":{"$ref":"#/components/responses/TooManyRequests"},"500":{"$ref":"#/components/responses/ServerError"}},"security":[{"JWT":[]},{"ApiKey":[]}],"summary":"Add a node to a persistent map","tags":["Relationship Maps"],"x-api-key-scopes":["*"]}},"/v1/relationship-maps/maps/{mapId}/nodes/{nodeId}/position":{"patch":{"operationId":"relationshipMap_updateNodePosition","parameters":[{"name":"mapId","required":true,"in":"path","schema":{"type":"string"}},{"name":"nodeId","required":true,"in":"path","schema":{"type":"string"}},{"$ref":"#/components/parameters/IdempotencyKey"}],"responses":{"200":{"description":"Node position updated"},"400":{"$ref":"#/components/responses/BadRequest"},"401":{"$ref":"#/components/responses/Unauthorized"},"403":{"$ref":"#/components/responses/Forbidden"},"404":{"$ref":"#/components/responses/NotFound"},"409":{"$ref":"#/components/responses/Conflict"},"429":{"$ref":"#/components/responses/TooManyRequests"},"500":{"$ref":"#/components/responses/ServerError"}},"security":[{"JWT":[]},{"ApiKey":[]}],"summary":"Update a node position on the canvas","tags":["Relationship Maps"],"x-api-key-scopes":["*"]}},"/v1/relationship-maps/maps/{mapId}/nodes/{nodeId}":{"delete":{"operationId":"relationshipMap_deleteNode","parameters":[{"name":"mapId","required":true,"in":"path","schema":{"type":"string"}},{"name":"nodeId","required":true,"in":"path","schema":{"type":"string"}}],"responses":{"200":{"description":"Node deleted"},"400":{"$ref":"#/components/responses/BadRequest"},"401":{"$ref":"#/components/responses/Unauthorized"},"403":{"$ref":"#/components/responses/Forbidden"},"404":{"$ref":"#/components/responses/NotFound"},"429":{"$ref":"#/components/responses/TooManyRequests"},"500":{"$ref":"#/components/responses/ServerError"}},"security":[{"JWT":[]},{"ApiKey":[]}],"summary":"Delete a node from a persistent map","tags":["Relationship Maps"],"x-api-key-scopes":["*"]}},"/v1/relationship-maps/maps/{mapId}/edges":{"post":{"operationId":"relationshipMap_addEdgePersistent","parameters":[{"name":"mapId","required":true,"in":"path","schema":{"type":"string"}},{"$ref":"#/components/parameters/IdempotencyKey"}],"responses":{"201":{"description":"Edge added"},"400":{"$ref":"#/components/responses/BadRequest"},"401":{"$ref":"#/components/responses/Unauthorized"},"403":{"$ref":"#/components/responses/Forbidden"},"404":{"$ref":"#/components/responses/NotFound"},"409":{"$ref":"#/components/responses/Conflict"},"429":{"$ref":"#/components/responses/TooManyRequests"},"500":{"$ref":"#/components/responses/ServerError"}},"security":[{"JWT":[]},{"ApiKey":[]}],"summary":"Add an edge to a persistent map","tags":["Relationship Maps"],"x-api-key-scopes":["*"]}},"/v1/relationship-maps/maps/{mapId}/edges/{edgeId}":{"delete":{"operationId":"relationshipMap_deleteEdgePersistent","parameters":[{"name":"mapId","required":true,"in":"path","schema":{"type":"string"}},{"name":"edgeId","required":true,"in":"path","schema":{"type":"string"}}],"responses":{"200":{"description":"Edge deleted"},"400":{"$ref":"#/components/responses/BadRequest"},"401":{"$ref":"#/components/responses/Unauthorized"},"403":{"$ref":"#/components/responses/Forbidden"},"404":{"$ref":"#/components/responses/NotFound"},"429":{"$ref":"#/components/responses/TooManyRequests"},"500":{"$ref":"#/components/responses/ServerError"}},"security":[{"JWT":[]},{"ApiKey":[]}],"summary":"Delete an edge from a persistent map","tags":["Relationship Maps"],"x-api-key-scopes":["*"]}},"/v1/relationship-maps/maps/{mapId}/auto-populate":{"post":{"operationId":"relationshipMap_autoPopulate","parameters":[{"name":"mapId","required":true,"in":"path","schema":{"type":"string"}},{"$ref":"#/components/parameters/IdempotencyKey"}],"responses":{"200":{"description":"Nodes auto-created from contacts"},"400":{"$ref":"#/components/responses/BadRequest"},"401":{"$ref":"#/components/responses/Unauthorized"},"403":{"$ref":"#/components/responses/Forbidden"},"404":{"$ref":"#/components/responses/NotFound"},"409":{"$ref":"#/components/responses/Conflict"},"429":{"$ref":"#/components/responses/TooManyRequests"},"500":{"$ref":"#/components/responses/ServerError"}},"security":[{"JWT":[]},{"ApiKey":[]}],"summary":"Auto-populate a map from account contacts","tags":["Relationship Maps"],"x-api-key-scopes":["*"]}},"/v1/relationship-maps/maps/{mapId}/nodes/{nodeId}/influence":{"get":{"operationId":"relationshipMap_calculateInfluence","parameters":[{"name":"mapId","required":true,"in":"path","schema":{"type":"string"}},{"name":"nodeId","required":true,"in":"path","schema":{"type":"string"}}],"responses":{"200":{"description":"Influence score breakdown"},"400":{"$ref":"#/components/responses/BadRequest"},"401":{"$ref":"#/components/responses/Unauthorized"},"403":{"$ref":"#/components/responses/Forbidden"},"404":{"$ref":"#/components/responses/NotFound"},"429":{"$ref":"#/components/responses/TooManyRequests"},"500":{"$ref":"#/components/responses/ServerError"}},"security":[{"JWT":[]},{"ApiKey":[]}],"summary":"Calculate influence score for a node","tags":["Relationship Maps"],"x-api-key-scopes":["*"]}},"/v1/relationship-maps/gaps":{"get":{"operationId":"relationshipMap_analyzeGaps","parameters":[],"responses":{"200":{"description":"Gap analysis results"},"401":{"$ref":"#/components/responses/Unauthorized"},"403":{"$ref":"#/components/responses/Forbidden"},"429":{"$ref":"#/components/responses/TooManyRequests"},"500":{"$ref":"#/components/responses/ServerError"}},"security":[{"JWT":[]},{"ApiKey":[]}],"summary":"Analyze role gaps across all accounts","tags":["Relationship Maps"],"x-api-key-scopes":["*"]}},"/v1/relationship-maps/stats":{"get":{"operationId":"relationshipMap_getStats","parameters":[],"responses":{"200":{"description":"Relationship map statistics"},"401":{"$ref":"#/components/responses/Unauthorized"},"403":{"$ref":"#/components/responses/Forbidden"},"429":{"$ref":"#/components/responses/TooManyRequests"},"500":{"$ref":"#/components/responses/ServerError"}},"security":[{"JWT":[]},{"ApiKey":[]}],"summary":"Get relationship map statistics across all accounts","tags":["Relationship Maps"],"x-api-key-scopes":["*"]}},"/v1/relationship-maps/accounts":{"get":{"operationId":"relationshipMap_getAccountSummariesIndex","parameters":[],"responses":{"200":{"description":"Account summaries"},"401":{"$ref":"#/components/responses/Unauthorized"},"403":{"$ref":"#/components/responses/Forbidden"},"429":{"$ref":"#/components/responses/TooManyRequests"},"500":{"$ref":"#/components/responses/ServerError"}},"security":[{"JWT":[]},{"ApiKey":[]}],"summary":"Get account summaries for overview","tags":["Relationship Maps"],"x-api-key-scopes":["*"]}},"/v1/relationship-maps/{accountId}":{"get":{"operationId":"relationshipMap_getRelationshipMap","parameters":[{"name":"accountId","required":true,"in":"path","schema":{"type":"string"}}],"responses":{"200":{"description":"Account relationship map with nodes and edges"},"400":{"$ref":"#/components/responses/BadRequest"},"401":{"$ref":"#/components/responses/Unauthorized"},"403":{"$ref":"#/components/responses/Forbidden"},"404":{"$ref":"#/components/responses/NotFound"},"429":{"$ref":"#/components/responses/TooManyRequests"},"500":{"$ref":"#/components/responses/ServerError"}},"security":[{"JWT":[]},{"ApiKey":[]}],"summary":"Get relationship map for an account","tags":["Relationship Maps"],"x-api-key-scopes":["*"]}},"/v1/relationship-maps/{accountId}/generate":{"post":{"operationId":"relationshipMap_generateRelationshipMap","parameters":[{"name":"accountId","required":true,"in":"path","schema":{"type":"string"}},{"$ref":"#/components/parameters/IdempotencyKey"}],"responses":{"200":{"description":"Refreshed relationship map"},"400":{"$ref":"#/components/responses/BadRequest"},"401":{"$ref":"#/components/responses/Unauthorized"},"403":{"$ref":"#/components/responses/Forbidden"},"404":{"$ref":"#/components/responses/NotFound"},"409":{"$ref":"#/components/responses/Conflict"},"429":{"$ref":"#/components/responses/TooManyRequests"},"500":{"$ref":"#/components/responses/ServerError"}},"security":[{"JWT":[]},{"ApiKey":[]}],"summary":"Generate/refresh relationship map for an account","tags":["Relationship Maps"],"x-api-key-scopes":["*"]}},"/v1/relationship-maps/{accountId}/insights":{"get":{"operationId":"relationshipMap_getInsights","parameters":[{"name":"accountId","required":true,"in":"path","schema":{"type":"string"}}],"responses":{"200":{"description":"Account relationship insights"},"400":{"$ref":"#/components/responses/BadRequest"},"401":{"$ref":"#/components/responses/Unauthorized"},"403":{"$ref":"#/components/responses/Forbidden"},"404":{"$ref":"#/components/responses/NotFound"},"429":{"$ref":"#/components/responses/TooManyRequests"},"500":{"$ref":"#/components/responses/ServerError"}},"security":[{"JWT":[]},{"ApiKey":[]}],"summary":"Get relationship insights for an account","tags":["Relationship Maps"],"x-api-key-scopes":["*"]}},"/v1/relationship-maps/{accountId}/white-space":{"get":{"operationId":"relationshipMap_getWhiteSpace","parameters":[{"name":"accountId","required":true,"in":"path","schema":{"type":"string"}}],"responses":{"200":{"description":"White-space analysis"},"400":{"$ref":"#/components/responses/BadRequest"},"401":{"$ref":"#/components/responses/Unauthorized"},"403":{"$ref":"#/components/responses/Forbidden"},"404":{"$ref":"#/components/responses/NotFound"},"429":{"$ref":"#/components/responses/TooManyRequests"},"500":{"$ref":"#/components/responses/ServerError"}},"security":[{"JWT":[]},{"ApiKey":[]}],"summary":"Identify white-space opportunities in account contacts","tags":["Relationship Maps"],"x-api-key-scopes":["*"]}},"/v1/relationship-maps/{accountId}/nodes/{nodeId}":{"patch":{"operationId":"relationshipMap_updateNode","parameters":[{"name":"accountId","required":true,"in":"path","schema":{"type":"string"}},{"name":"nodeId","required":true,"in":"path","schema":{"type":"string"}},{"$ref":"#/components/parameters/IdempotencyKey"}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/UpdateNodeBody"}}}},"responses":{"200":{"description":"Node updated"},"400":{"$ref":"#/components/responses/BadRequest"},"401":{"$ref":"#/components/responses/Unauthorized"},"403":{"$ref":"#/components/responses/Forbidden"},"404":{"$ref":"#/components/responses/NotFound"},"409":{"$ref":"#/components/responses/Conflict"},"429":{"$ref":"#/components/responses/TooManyRequests"},"500":{"$ref":"#/components/responses/ServerError"}},"security":[{"JWT":[]},{"ApiKey":[]}],"summary":"Update a node in the relationship map","tags":["Relationship Maps"],"x-api-key-scopes":["*"]}},"/v1/relationship-maps/generate":{"post":{"operationId":"relationshipMap_generateMap","parameters":[{"$ref":"#/components/parameters/IdempotencyKey"}],"responses":{"200":{"description":"Generated relationship map"},"400":{"$ref":"#/components/responses/BadRequest"},"401":{"$ref":"#/components/responses/Unauthorized"},"403":{"$ref":"#/components/responses/Forbidden"},"409":{"$ref":"#/components/responses/Conflict"},"429":{"$ref":"#/components/responses/TooManyRequests"},"500":{"$ref":"#/components/responses/ServerError"}},"security":[{"JWT":[]},{"ApiKey":[]}],"summary":"Generate a relationship map from dto","tags":["Relationship Maps"],"x-api-key-scopes":["*"]}},"/v1/relationship-maps/{accountId}/edges":{"post":{"operationId":"relationshipMap_addEdge","parameters":[{"name":"accountId","required":true,"in":"path","schema":{"type":"string"}},{"$ref":"#/components/parameters/IdempotencyKey"}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/AddAccountEdgeBody"}}}},"responses":{"200":{"description":"Edge added"},"400":{"$ref":"#/components/responses/BadRequest"},"401":{"$ref":"#/components/responses/Unauthorized"},"403":{"$ref":"#/components/responses/Forbidden"},"404":{"$ref":"#/components/responses/NotFound"},"409":{"$ref":"#/components/responses/Conflict"},"429":{"$ref":"#/components/responses/TooManyRequests"},"500":{"$ref":"#/components/responses/ServerError"}},"security":[{"JWT":[]},{"ApiKey":[]}],"summary":"Add an edge to the relationship map","tags":["Relationship Maps"],"x-api-key-scopes":["*"]}},"/v1/relationship-maps/{accountId}/edges/{edgeId}":{"delete":{"operationId":"relationshipMap_removeEdge","parameters":[{"name":"accountId","required":true,"in":"path","schema":{"type":"string"}},{"name":"edgeId","required":true,"in":"path","schema":{"type":"string"}}],"responses":{"200":{"description":"Edge removed"},"400":{"$ref":"#/components/responses/BadRequest"},"401":{"$ref":"#/components/responses/Unauthorized"},"403":{"$ref":"#/components/responses/Forbidden"},"404":{"$ref":"#/components/responses/NotFound"},"429":{"$ref":"#/components/responses/TooManyRequests"},"500":{"$ref":"#/components/responses/ServerError"}},"security":[{"JWT":[]},{"ApiKey":[]}],"summary":"Remove an edge from the relationship map","tags":["Relationship Maps"],"x-api-key-scopes":["*"]}},"/v1/relationship-maps/{accountId}/refresh":{"post":{"operationId":"relationshipMap_refreshMap","parameters":[{"name":"accountId","required":true,"in":"path","schema":{"type":"string"}},{"$ref":"#/components/parameters/IdempotencyKey"}],"responses":{"200":{"description":"Refreshed map"},"400":{"$ref":"#/components/responses/BadRequest"},"401":{"$ref":"#/components/responses/Unauthorized"},"403":{"$ref":"#/components/responses/Forbidden"},"404":{"$ref":"#/components/responses/NotFound"},"409":{"$ref":"#/components/responses/Conflict"},"429":{"$ref":"#/components/responses/TooManyRequests"},"500":{"$ref":"#/components/responses/ServerError"}},"security":[{"JWT":[]},{"ApiKey":[]}],"summary":"Refresh a relationship map","tags":["Relationship Maps"],"x-api-key-scopes":["*"]}},"/v1/win-loss-intelligence/analyses":{"get":{"operationId":"winLossIntelligence_getAnalyses","parameters":[{"name":"outcome","required":false,"in":"query","schema":{"type":"string"}},{"name":"competitorId","required":false,"in":"query","schema":{"type":"string"}},{"name":"limit","required":false,"in":"query","schema":{"type":"string"}}],"responses":{"200":{"description":"List of win/loss analyses"},"400":{"$ref":"#/components/responses/BadRequest"},"401":{"$ref":"#/components/responses/Unauthorized"},"403":{"$ref":"#/components/responses/Forbidden"},"429":{"$ref":"#/components/responses/TooManyRequests"},"500":{"$ref":"#/components/responses/ServerError"}},"security":[{"JWT":[]},{"ApiKey":[]}],"summary":"List win/loss analyses for closed opportunities","tags":["Win/Loss Intelligence"],"x-api-key-scopes":["*"]},"post":{"operationId":"winLossIntelligence_createAnalysis","parameters":[{"$ref":"#/components/parameters/IdempotencyKey"}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/CreateAnalysisBody"}}}},"responses":{"201":{"description":"Analysis created"},"400":{"$ref":"#/components/responses/BadRequest"},"401":{"$ref":"#/components/responses/Unauthorized"},"403":{"$ref":"#/components/responses/Forbidden"},"409":{"$ref":"#/components/responses/Conflict"},"429":{"$ref":"#/components/responses/TooManyRequests"},"500":{"$ref":"#/components/responses/ServerError"}},"security":[{"JWT":[]},{"ApiKey":[]}],"summary":"Create a manual win/loss analysis","tags":["Win/Loss Intelligence"],"x-api-key-scopes":["*"]}},"/v1/win-loss-intelligence/analyses/{id}":{"get":{"operationId":"winLossIntelligence_getAnalysis","parameters":[{"name":"id","required":true,"in":"path","schema":{"type":"string"}}],"responses":{"200":{"description":"Detailed win/loss analysis"},"400":{"$ref":"#/components/responses/BadRequest"},"401":{"$ref":"#/components/responses/Unauthorized"},"403":{"$ref":"#/components/responses/Forbidden"},"404":{"$ref":"#/components/responses/NotFound"},"429":{"$ref":"#/components/responses/TooManyRequests"},"500":{"$ref":"#/components/responses/ServerError"}},"security":[{"JWT":[]},{"ApiKey":[]}],"summary":"Get detailed win/loss analysis for an opportunity","tags":["Win/Loss Intelligence"],"x-api-key-scopes":["*"]}},"/v1/win-loss-intelligence/analyses/auto-analyze":{"post":{"operationId":"winLossIntelligence_autoAnalyzeFrontend","parameters":[{"$ref":"#/components/parameters/IdempotencyKey"}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/AutoAnalyzeFrontendBody"}}}},"responses":{"200":{"description":"Auto-generated analysis"},"400":{"$ref":"#/components/responses/BadRequest"},"401":{"$ref":"#/components/responses/Unauthorized"},"403":{"$ref":"#/components/responses/Forbidden"},"409":{"$ref":"#/components/responses/Conflict"},"429":{"$ref":"#/components/responses/TooManyRequests"},"500":{"$ref":"#/components/responses/ServerError"}},"security":[{"JWT":[]},{"ApiKey":[]}],"summary":"Auto-analyze a deal (frontend path)","tags":["Win/Loss Intelligence"],"x-api-key-scopes":["*"]}},"/v1/win-loss-intelligence/auto-analyze/{dealId}":{"post":{"operationId":"winLossIntelligence_autoAnalyze","parameters":[{"name":"dealId","required":true,"in":"path","schema":{"type":"string"}},{"$ref":"#/components/parameters/IdempotencyKey"}],"responses":{"200":{"description":"Auto-generated analysis"},"400":{"$ref":"#/components/responses/BadRequest"},"401":{"$ref":"#/components/responses/Unauthorized"},"403":{"$ref":"#/components/responses/Forbidden"},"404":{"$ref":"#/components/responses/NotFound"},"409":{"$ref":"#/components/responses/Conflict"},"429":{"$ref":"#/components/responses/TooManyRequests"},"500":{"$ref":"#/components/responses/ServerError"}},"security":[{"JWT":[]},{"ApiKey":[]}],"summary":"Auto-analyze a closed deal using available data","tags":["Win/Loss Intelligence"],"x-api-key-scopes":["*"]}},"/v1/win-loss-intelligence/competitor-win-rates":{"get":{"operationId":"winLossIntelligence_getCompetitorWinRates","parameters":[],"responses":{"200":{"description":"Competitor win rates"},"401":{"$ref":"#/components/responses/Unauthorized"},"403":{"$ref":"#/components/responses/Forbidden"},"429":{"$ref":"#/components/responses/TooManyRequests"},"500":{"$ref":"#/components/responses/ServerError"}},"security":[{"JWT":[]},{"ApiKey":[]}],"summary":"Get win rates by competitor (frontend path)","tags":["Win/Loss Intelligence"],"x-api-key-scopes":["*"]}},"/v1/win-loss-intelligence/competitor-rates":{"get":{"operationId":"winLossIntelligence_getCompetitorRates","parameters":[],"responses":{"200":{"description":"Competitor win/loss rates"},"401":{"$ref":"#/components/responses/Unauthorized"},"403":{"$ref":"#/components/responses/Forbidden"},"429":{"$ref":"#/components/responses/TooManyRequests"},"500":{"$ref":"#/components/responses/ServerError"}},"security":[{"JWT":[]},{"ApiKey":[]}],"summary":"Get win/loss rates by competitor","tags":["Win/Loss Intelligence"],"x-api-key-scopes":["*"]}},"/v1/win-loss-intelligence/patterns":{"get":{"operationId":"winLossIntelligence_getPatterns","parameters":[],"responses":{"200":{"description":"Win/loss patterns and trends"},"401":{"$ref":"#/components/responses/Unauthorized"},"403":{"$ref":"#/components/responses/Forbidden"},"429":{"$ref":"#/components/responses/TooManyRequests"},"500":{"$ref":"#/components/responses/ServerError"}},"security":[{"JWT":[]},{"ApiKey":[]}],"summary":"Get win/loss patterns across deals","tags":["Win/Loss Intelligence"],"x-api-key-scopes":["*"]}},"/v1/win-loss-intelligence/battlecard-updates":{"get":{"operationId":"winLossIntelligence_getBattlecardUpdates","parameters":[],"responses":{"200":{"description":"Battlecard updates"},"401":{"$ref":"#/components/responses/Unauthorized"},"403":{"$ref":"#/components/responses/Forbidden"},"429":{"$ref":"#/components/responses/TooManyRequests"},"500":{"$ref":"#/components/responses/ServerError"}},"security":[{"JWT":[]},{"ApiKey":[]}],"summary":"Pending battlecard update suggestions","tags":["Win/Loss Intelligence"],"x-api-key-scopes":["*"]}},"/v1/win-loss-intelligence/battlecard-updates/generate":{"post":{"operationId":"winLossIntelligence_generateBattlecardUpdates","parameters":[{"$ref":"#/components/parameters/IdempotencyKey"}],"responses":{"200":{"description":"Suggestions (aiGenerated flag)"},"400":{"$ref":"#/components/responses/BadRequest"},"401":{"$ref":"#/components/responses/Unauthorized"},"403":{"$ref":"#/components/responses/Forbidden"},"409":{"$ref":"#/components/responses/Conflict"},"429":{"$ref":"#/components/responses/TooManyRequests"},"500":{"$ref":"#/components/responses/ServerError"}},"security":[{"JWT":[]},{"ApiKey":[]}],"summary":"Generate battlecard suggestions from win/loss reasons","tags":["Win/Loss Intelligence"],"x-api-key-scopes":["*"]}},"/v1/win-loss-intelligence/battlecard-updates/{updateId}/apply":{"post":{"operationId":"winLossIntelligence_applyBattlecardUpdate","parameters":[{"name":"updateId","required":true,"in":"path","schema":{"type":"string"}},{"$ref":"#/components/parameters/IdempotencyKey"}],"responses":{"200":{"description":"Applied (idempotent)"},"400":{"$ref":"#/components/responses/BadRequest"},"401":{"$ref":"#/components/responses/Unauthorized"},"403":{"$ref":"#/components/responses/Forbidden"},"404":{"$ref":"#/components/responses/NotFound"},"409":{"$ref":"#/components/responses/Conflict"},"429":{"$ref":"#/components/responses/TooManyRequests"},"500":{"$ref":"#/components/responses/ServerError"}},"security":[{"JWT":[]},{"ApiKey":[]}],"summary":"Apply a battlecard update","tags":["Win/Loss Intelligence"],"x-api-key-scopes":["*"]}},"/v1/win-loss-intelligence/battlecard-updates/{updateId}/dismiss":{"post":{"operationId":"winLossIntelligence_dismissBattlecardUpdate","parameters":[{"name":"updateId","required":true,"in":"path","schema":{"type":"string"}},{"$ref":"#/components/parameters/IdempotencyKey"}],"responses":{"201":{"description":""},"400":{"$ref":"#/components/responses/BadRequest"},"401":{"$ref":"#/components/responses/Unauthorized"},"403":{"$ref":"#/components/responses/Forbidden"},"404":{"$ref":"#/components/responses/NotFound"},"409":{"$ref":"#/components/responses/Conflict"},"429":{"$ref":"#/components/responses/TooManyRequests"},"500":{"$ref":"#/components/responses/ServerError"}},"security":[{"JWT":[]},{"ApiKey":[]}],"summary":"Dismiss a battlecard update","tags":["Win/Loss Intelligence"],"x-api-key-scopes":["*"]}},"/v1/win-loss-intelligence/stats":{"get":{"operationId":"winLossIntelligence_getStats","parameters":[],"responses":{"200":{"description":"Win/loss statistics"},"401":{"$ref":"#/components/responses/Unauthorized"},"403":{"$ref":"#/components/responses/Forbidden"},"429":{"$ref":"#/components/responses/TooManyRequests"},"500":{"$ref":"#/components/responses/ServerError"}},"security":[{"JWT":[]},{"ApiKey":[]}],"summary":"Get win/loss statistics","tags":["Win/Loss Intelligence"],"x-api-key-scopes":["*"]}},"/v1/data-freshness/report":{"get":{"operationId":"dataFreshness_getReport","parameters":[],"responses":{"200":{"description":"Data freshness report"},"401":{"$ref":"#/components/responses/Unauthorized"},"403":{"$ref":"#/components/responses/Forbidden"},"429":{"$ref":"#/components/responses/TooManyRequests"},"500":{"$ref":"#/components/responses/ServerError"}},"security":[{"JWT":[]},{"ApiKey":[]}],"summary":"Generate a data freshness report","tags":["Data Freshness"],"x-api-key-scopes":["*"]}},"/v1/data-freshness/changes":{"get":{"operationId":"dataFreshness_getChanges","parameters":[{"name":"entityType","required":false,"in":"query","schema":{"type":"string"}},{"name":"since","required":false,"in":"query","schema":{"type":"string"}},{"name":"limit","required":false,"in":"query","schema":{"type":"string"}}],"responses":{"200":{"description":"Recent data changes"},"400":{"$ref":"#/components/responses/BadRequest"},"401":{"$ref":"#/components/responses/Unauthorized"},"403":{"$ref":"#/components/responses/Forbidden"},"429":{"$ref":"#/components/responses/TooManyRequests"},"500":{"$ref":"#/components/responses/ServerError"}},"security":[{"JWT":[]},{"ApiKey":[]}],"summary":"Get recent data changes across entities","tags":["Data Freshness"],"x-api-key-scopes":["*"]}},"/v1/data-freshness/jobs":{"get":{"operationId":"dataFreshness_getJobs","parameters":[],"responses":{"200":{"description":"List of freshness check jobs"},"401":{"$ref":"#/components/responses/Unauthorized"},"403":{"$ref":"#/components/responses/Forbidden"},"429":{"$ref":"#/components/responses/TooManyRequests"},"500":{"$ref":"#/components/responses/ServerError"}},"security":[{"JWT":[]},{"ApiKey":[]}],"summary":"List freshness check jobs","tags":["Data Freshness"],"x-api-key-scopes":["*"]},"post":{"operationId":"dataFreshness_createJob","parameters":[{"$ref":"#/components/parameters/IdempotencyKey"}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/CreateJobBody"}}}},"responses":{"201":{"description":"Freshness check job created"},"400":{"$ref":"#/components/responses/BadRequest"},"401":{"$ref":"#/components/responses/Unauthorized"},"403":{"$ref":"#/components/responses/Forbidden"},"409":{"$ref":"#/components/responses/Conflict"},"429":{"$ref":"#/components/responses/TooManyRequests"},"500":{"$ref":"#/components/responses/ServerError"}},"security":[{"JWT":[]},{"ApiKey":[]}],"summary":"Create a new freshness check job","tags":["Data Freshness"],"x-api-key-scopes":["*"]}},"/v1/data-freshness/jobs/{id}":{"delete":{"operationId":"dataFreshness_deleteJob","parameters":[{"name":"id","required":true,"in":"path","schema":{"type":"string"}}],"responses":{"200":{"description":"Job deleted"},"400":{"$ref":"#/components/responses/BadRequest"},"401":{"$ref":"#/components/responses/Unauthorized"},"403":{"$ref":"#/components/responses/Forbidden"},"404":{"$ref":"#/components/responses/NotFound"},"429":{"$ref":"#/components/responses/TooManyRequests"},"500":{"$ref":"#/components/responses/ServerError"}},"security":[{"JWT":[]},{"ApiKey":[]}],"summary":"Delete a freshness check job","tags":["Data Freshness"],"x-api-key-scopes":["*"]}},"/v1/data-freshness/config":{"get":{"operationId":"dataFreshness_getConfig","parameters":[],"responses":{"200":{"description":"Freshness configuration"},"401":{"$ref":"#/components/responses/Unauthorized"},"403":{"$ref":"#/components/responses/Forbidden"},"429":{"$ref":"#/components/responses/TooManyRequests"},"500":{"$ref":"#/components/responses/ServerError"}},"security":[{"JWT":[]},{"ApiKey":[]}],"summary":"Get data freshness configuration","tags":["Data Freshness"],"x-api-key-scopes":["*"]},"patch":{"operationId":"dataFreshness_updateConfig","parameters":[{"$ref":"#/components/parameters/IdempotencyKey"}],"responses":{"200":{"description":"Updated freshness configuration"},"400":{"$ref":"#/components/responses/BadRequest"},"401":{"$ref":"#/components/responses/Unauthorized"},"403":{"$ref":"#/components/responses/Forbidden"},"409":{"$ref":"#/components/responses/Conflict"},"429":{"$ref":"#/components/responses/TooManyRequests"},"500":{"$ref":"#/components/responses/ServerError"}},"security":[{"JWT":[]},{"ApiKey":[]}],"summary":"Update data freshness configuration","tags":["Data Freshness"],"x-api-key-scopes":["*"]},"put":{"operationId":"dataFreshness_updateConfigPut","parameters":[],"responses":{"200":{"description":"Updated freshness configuration"},"400":{"$ref":"#/components/responses/BadRequest"},"401":{"$ref":"#/components/responses/Unauthorized"},"403":{"$ref":"#/components/responses/Forbidden"},"429":{"$ref":"#/components/responses/TooManyRequests"},"500":{"$ref":"#/components/responses/ServerError"}},"security":[{"JWT":[]},{"ApiKey":[]}],"summary":"Update data freshness configuration (PUT alias)","tags":["Data Freshness"],"x-api-key-scopes":["*"]}},"/v1/data-freshness/jobs/{id}/cancel":{"post":{"operationId":"dataFreshness_cancelJob","parameters":[{"name":"id","required":true,"in":"path","schema":{"type":"string"}},{"$ref":"#/components/parameters/IdempotencyKey"}],"responses":{"201":{"description":""},"400":{"$ref":"#/components/responses/BadRequest"},"401":{"$ref":"#/components/responses/Unauthorized"},"403":{"$ref":"#/components/responses/Forbidden"},"404":{"$ref":"#/components/responses/NotFound"},"409":{"description":"Job already finished"},"429":{"$ref":"#/components/responses/TooManyRequests"},"500":{"$ref":"#/components/responses/ServerError"}},"security":[{"JWT":[]},{"ApiKey":[]}],"summary":"Cancel a freshness check job","tags":["Data Freshness"],"x-api-key-scopes":["*"]}},"/v1/data-freshness/stale":{"get":{"operationId":"dataFreshness_getStaleRecords","parameters":[{"name":"entityType","required":true,"in":"query","schema":{"type":"string"}},{"name":"limit","required":true,"in":"query","schema":{"type":"string"}}],"responses":{"200":{"description":"Stale records"},"400":{"$ref":"#/components/responses/BadRequest"},"401":{"$ref":"#/components/responses/Unauthorized"},"403":{"$ref":"#/components/responses/Forbidden"},"429":{"$ref":"#/components/responses/TooManyRequests"},"500":{"$ref":"#/components/responses/ServerError"}},"security":[{"JWT":[]},{"ApiKey":[]}],"summary":"Get stale records","tags":["Data Freshness"],"x-api-key-scopes":["*"]}},"/v1/data-freshness/stats":{"get":{"operationId":"dataFreshness_getStats","parameters":[],"responses":{"200":{"description":"Freshness statistics"},"401":{"$ref":"#/components/responses/Unauthorized"},"403":{"$ref":"#/components/responses/Forbidden"},"429":{"$ref":"#/components/responses/TooManyRequests"},"500":{"$ref":"#/components/responses/ServerError"}},"security":[{"JWT":[]},{"ApiKey":[]}],"summary":"Get data freshness statistics","tags":["Data Freshness"],"x-api-key-scopes":["*"]}},"/v1/revenue-attribution/report":{"get":{"operationId":"revenueAttribution_getReport","parameters":[],"responses":{"200":{"description":"Revenue attribution report"},"401":{"$ref":"#/components/responses/Unauthorized"},"403":{"$ref":"#/components/responses/Forbidden"},"429":{"$ref":"#/components/responses/TooManyRequests"},"500":{"$ref":"#/components/responses/ServerError"}},"security":[{"JWT":[]},{"ApiKey":[]}],"summary":"Generate a revenue attribution report","tags":["Revenue Attribution"],"x-api-key-scopes":["*"]}},"/v1/revenue-attribution/channels":{"get":{"operationId":"revenueAttribution_getChannels","parameters":[{"name":"model","required":false,"in":"query","schema":{"enum":["first_touch","last_touch","linear","time_decay","u_shaped","w_shaped","custom"],"type":"string"}},{"name":"startDate","required":false,"in":"query","description":"ISO date string","schema":{"type":"string"}},{"name":"endDate","required":false,"in":"query","description":"ISO date string","schema":{"type":"string"}}],"responses":{"200":{"description":"Multi-touch channel attribution breakdown"},"400":{"$ref":"#/components/responses/BadRequest"},"401":{"$ref":"#/components/responses/Unauthorized"},"403":{"$ref":"#/components/responses/Forbidden"},"429":{"$ref":"#/components/responses/TooManyRequests"},"500":{"$ref":"#/components/responses/ServerError"}},"security":[{"JWT":[]},{"ApiKey":[]}],"summary":"Get multi-touch channel attribution (aggregated across deals)","tags":["Revenue Attribution"],"x-api-key-scopes":["*"]}},"/v1/revenue-attribution/channel-breakdown":{"get":{"operationId":"revenueAttribution_getChannelBreakdown","parameters":[],"responses":{"200":{"description":"Channel revenue breakdown"},"401":{"$ref":"#/components/responses/Unauthorized"},"403":{"$ref":"#/components/responses/Forbidden"},"429":{"$ref":"#/components/responses/TooManyRequests"},"500":{"$ref":"#/components/responses/ServerError"}},"security":[{"JWT":[]},{"ApiKey":[]}],"summary":"Get revenue breakdown by channel (legacy simple view)","tags":["Revenue Attribution"],"x-api-key-scopes":["*"]}},"/v1/revenue-attribution/campaign-roi":{"get":{"operationId":"revenueAttribution_getCampaignRoi","parameters":[],"responses":{"200":{"description":"Campaign ROI data"},"401":{"$ref":"#/components/responses/Unauthorized"},"403":{"$ref":"#/components/responses/Forbidden"},"429":{"$ref":"#/components/responses/TooManyRequests"},"500":{"$ref":"#/components/responses/ServerError"}},"security":[{"JWT":[]},{"ApiKey":[]}],"summary":"Get campaign ROI analysis (legacy simple view)","tags":["Revenue Attribution"],"x-api-key-scopes":["*"]}},"/v1/revenue-attribution/campaign-roi/multi-touch":{"get":{"operationId":"revenueAttribution_getCampaignROIMultiTouch","parameters":[{"name":"startDate","required":false,"in":"query","description":"ISO date string","schema":{"type":"string"}},{"name":"endDate","required":false,"in":"query","description":"ISO date string","schema":{"type":"string"}}],"responses":{"200":{"description":"Multi-touch campaign ROI data"},"400":{"$ref":"#/components/responses/BadRequest"},"401":{"$ref":"#/components/responses/Unauthorized"},"403":{"$ref":"#/components/responses/Forbidden"},"429":{"$ref":"#/components/responses/TooManyRequests"},"500":{"$ref":"#/components/responses/ServerError"}},"security":[{"JWT":[]},{"ApiKey":[]}],"summary":"Get multi-touch campaign ROI with attribution models applied","tags":["Revenue Attribution"],"x-api-key-scopes":["*"]}},"/v1/revenue-attribution/config":{"get":{"operationId":"revenueAttribution_getConfig","parameters":[],"responses":{"200":{"description":"Attribution configuration"},"401":{"$ref":"#/components/responses/Unauthorized"},"403":{"$ref":"#/components/responses/Forbidden"},"429":{"$ref":"#/components/responses/TooManyRequests"},"500":{"$ref":"#/components/responses/ServerError"}},"security":[{"JWT":[]},{"ApiKey":[]}],"summary":"Get revenue attribution configuration","tags":["Revenue Attribution"],"x-api-key-scopes":["*"]},"patch":{"operationId":"revenueAttribution_updateConfig","parameters":[{"$ref":"#/components/parameters/IdempotencyKey"}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/UpdateAttributionConfigBody"}}}},"responses":{"200":{"description":"Updated attribution configuration"},"400":{"$ref":"#/components/responses/BadRequest"},"401":{"$ref":"#/components/responses/Unauthorized"},"403":{"$ref":"#/components/responses/Forbidden"},"409":{"$ref":"#/components/responses/Conflict"},"429":{"$ref":"#/components/responses/TooManyRequests"},"500":{"$ref":"#/components/responses/ServerError"}},"security":[{"JWT":[]},{"ApiKey":[]}],"summary":"Update revenue attribution configuration","tags":["Revenue Attribution"],"x-api-key-scopes":["*"]}},"/v1/revenue-attribution/deal/{dealId}":{"get":{"operationId":"revenueAttribution_getDealAttribution","parameters":[{"name":"dealId","required":true,"in":"path","schema":{"type":"string"}},{"name":"model","required":false,"in":"query","schema":{"enum":["first_touch","last_touch","linear","time_decay","u_shaped","w_shaped","custom"],"type":"string"}}],"responses":{"200":{"description":"Deal attribution with touchpoint timeline"},"400":{"$ref":"#/components/responses/BadRequest"},"401":{"$ref":"#/components/responses/Unauthorized"},"403":{"$ref":"#/components/responses/Forbidden"},"404":{"$ref":"#/components/responses/NotFound"},"429":{"$ref":"#/components/responses/TooManyRequests"},"500":{"$ref":"#/components/responses/ServerError"}},"security":[{"JWT":[]},{"ApiKey":[]}],"summary":"Get full multi-touch attribution for a specific deal","tags":["Revenue Attribution"],"x-api-key-scopes":["*"]}},"/v1/revenue-attribution/touchpoints/{dealId}":{"get":{"operationId":"revenueAttribution_getTouchpoints","parameters":[{"name":"dealId","required":true,"in":"path","schema":{"type":"string"}}],"responses":{"200":{"description":"Deal touchpoint attribution"},"400":{"$ref":"#/components/responses/BadRequest"},"401":{"$ref":"#/components/responses/Unauthorized"},"403":{"$ref":"#/components/responses/Forbidden"},"404":{"$ref":"#/components/responses/NotFound"},"429":{"$ref":"#/components/responses/TooManyRequests"},"500":{"$ref":"#/components/responses/ServerError"}},"security":[{"JWT":[]},{"ApiKey":[]}],"summary":"Get touchpoints and attribution for a specific deal (legacy)","tags":["Revenue Attribution"],"x-api-key-scopes":["*"]}},"/v1/revenue-attribution/compare-models":{"get":{"operationId":"revenueAttribution_compareModels","parameters":[{"name":"startDate","required":false,"in":"query","description":"ISO date string","schema":{"type":"string"}},{"name":"endDate","required":false,"in":"query","description":"ISO date string","schema":{"type":"string"}}],"responses":{"200":{"description":"Model comparison showing revenue shifts between models"},"400":{"$ref":"#/components/responses/BadRequest"},"401":{"$ref":"#/components/responses/Unauthorized"},"403":{"$ref":"#/components/responses/Forbidden"},"429":{"$ref":"#/components/responses/TooManyRequests"},"500":{"$ref":"#/components/responses/ServerError"}},"security":[{"JWT":[]},{"ApiKey":[]}],"summary":"Compare all attribution models on the same data","tags":["Revenue Attribution"],"x-api-key-scopes":["*"]}},"/v1/revenue-attribution/stats":{"get":{"operationId":"revenueAttribution_getStats","parameters":[],"responses":{"200":{"description":"Attribution statistics"},"401":{"$ref":"#/components/responses/Unauthorized"},"403":{"$ref":"#/components/responses/Forbidden"},"429":{"$ref":"#/components/responses/TooManyRequests"},"500":{"$ref":"#/components/responses/ServerError"}},"security":[{"JWT":[]},{"ApiKey":[]}],"summary":"Get revenue attribution statistics","tags":["Revenue Attribution"],"x-api-key-scopes":["*"]}},"/v1/data-quality/report":{"get":{"operationId":"dataQuality_getReport","parameters":[],"responses":{"200":{"description":""},"401":{"$ref":"#/components/responses/Unauthorized"},"403":{"$ref":"#/components/responses/Forbidden"},"429":{"$ref":"#/components/responses/TooManyRequests"},"500":{"$ref":"#/components/responses/ServerError"}},"security":[{"JWT":[]},{"ApiKey":[]}],"tags":["Data Quality"],"summary":"Get report","x-api-key-scopes":["*"]}},"/v1/data-quality/entities/{entityType}":{"get":{"operationId":"dataQuality_getEntityScoreFrontend","parameters":[{"name":"entityType","required":true,"in":"path","schema":{"type":"string"}}],"responses":{"200":{"description":""},"400":{"$ref":"#/components/responses/BadRequest"},"401":{"$ref":"#/components/responses/Unauthorized"},"403":{"$ref":"#/components/responses/Forbidden"},"404":{"$ref":"#/components/responses/NotFound"},"429":{"$ref":"#/components/responses/TooManyRequests"},"500":{"$ref":"#/components/responses/ServerError"}},"security":[{"JWT":[]},{"ApiKey":[]}],"tags":["Data Quality"],"summary":"Get entity score frontend","x-api-key-scopes":["*"]}},"/v1/data-quality/entity-score/{entityType}":{"get":{"operationId":"dataQuality_getEntityScore","parameters":[{"name":"entityType","required":true,"in":"path","schema":{"type":"string"}}],"responses":{"200":{"description":""},"400":{"$ref":"#/components/responses/BadRequest"},"401":{"$ref":"#/components/responses/Unauthorized"},"403":{"$ref":"#/components/responses/Forbidden"},"404":{"$ref":"#/components/responses/NotFound"},"429":{"$ref":"#/components/responses/TooManyRequests"},"500":{"$ref":"#/components/responses/ServerError"}},"security":[{"JWT":[]},{"ApiKey":[]}],"tags":["Data Quality"],"summary":"Get entity score","x-api-key-scopes":["*"]}},"/v1/data-quality/issues":{"get":{"operationId":"dataQuality_getIssues","parameters":[{"name":"entityType","required":false,"in":"query","schema":{"type":"string"}},{"name":"severity","required":false,"in":"query","schema":{"type":"string"}},{"name":"page","required":false,"in":"query","schema":{"type":"string"}},{"name":"limit","required":false,"in":"query","schema":{"type":"string"}}],"responses":{"200":{"description":""},"400":{"$ref":"#/components/responses/BadRequest"},"401":{"$ref":"#/components/responses/Unauthorized"},"403":{"$ref":"#/components/responses/Forbidden"},"429":{"$ref":"#/components/responses/TooManyRequests"},"500":{"$ref":"#/components/responses/ServerError"}},"security":[{"JWT":[]},{"ApiKey":[]}],"tags":["Data Quality"],"summary":"Get issues","x-api-key-scopes":["*"]}},"/v1/data-quality/issues/{id}/fix":{"post":{"operationId":"dataQuality_fixIssue","parameters":[{"name":"id","required":true,"in":"path","schema":{"type":"string"}},{"$ref":"#/components/parameters/IdempotencyKey"}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/FixIssueBody"}}}},"responses":{"201":{"description":"","content":{"application/json":{"schema":{"type":"object"}}}},"400":{"$ref":"#/components/responses/BadRequest"},"401":{"$ref":"#/components/responses/Unauthorized"},"403":{"$ref":"#/components/responses/Forbidden"},"404":{"$ref":"#/components/responses/NotFound"},"409":{"$ref":"#/components/responses/Conflict"},"429":{"$ref":"#/components/responses/TooManyRequests"},"500":{"$ref":"#/components/responses/ServerError"}},"security":[{"JWT":[]},{"ApiKey":[]}],"tags":["Data Quality"],"summary":"Fix issue","x-api-key-scopes":["*"]}},"/v1/data-quality/issues/bulk-fix":{"post":{"operationId":"dataQuality_bulkFixIssues","parameters":[{"$ref":"#/components/parameters/IdempotencyKey"}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/BulkFixBody"}}}},"responses":{"201":{"description":""},"400":{"$ref":"#/components/responses/BadRequest"},"401":{"$ref":"#/components/responses/Unauthorized"},"403":{"$ref":"#/components/responses/Forbidden"},"409":{"$ref":"#/components/responses/Conflict"},"429":{"$ref":"#/components/responses/TooManyRequests"},"500":{"$ref":"#/components/responses/ServerError"}},"security":[{"JWT":[]},{"ApiKey":[]}],"tags":["Data Quality"],"summary":"Bulk fix issues","x-api-key-scopes":["*"]}},"/v1/data-quality/config":{"get":{"operationId":"dataQuality_getConfig","parameters":[],"responses":{"200":{"description":""},"401":{"$ref":"#/components/responses/Unauthorized"},"403":{"$ref":"#/components/responses/Forbidden"},"429":{"$ref":"#/components/responses/TooManyRequests"},"500":{"$ref":"#/components/responses/ServerError"}},"security":[{"JWT":[]},{"ApiKey":[]}],"tags":["Data Quality"],"summary":"Get config","x-api-key-scopes":["*"]},"patch":{"operationId":"dataQuality_updateConfig","parameters":[{"$ref":"#/components/parameters/IdempotencyKey"}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/UpdateConfigBody"}}}},"responses":{"200":{"description":""},"400":{"$ref":"#/components/responses/BadRequest"},"401":{"$ref":"#/components/responses/Unauthorized"},"403":{"$ref":"#/components/responses/Forbidden"},"409":{"$ref":"#/components/responses/Conflict"},"429":{"$ref":"#/components/responses/TooManyRequests"},"500":{"$ref":"#/components/responses/ServerError"}},"security":[{"JWT":[]},{"ApiKey":[]}],"tags":["Data Quality"],"summary":"Update config","x-api-key-scopes":["*"]}},"/v1/data-quality/scan":{"post":{"operationId":"dataQuality_triggerScan","parameters":[{"$ref":"#/components/parameters/IdempotencyKey"}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/TriggerScanBody"}}}},"responses":{"201":{"description":""},"400":{"$ref":"#/components/responses/BadRequest"},"401":{"$ref":"#/components/responses/Unauthorized"},"403":{"$ref":"#/components/responses/Forbidden"},"409":{"$ref":"#/components/responses/Conflict"},"429":{"$ref":"#/components/responses/TooManyRequests"},"500":{"$ref":"#/components/responses/ServerError"}},"security":[{"JWT":[]},{"ApiKey":[]}],"tags":["Data Quality"],"summary":"Trigger scan","x-api-key-scopes":["*"]}},"/v1/data-quality/stats":{"get":{"operationId":"dataQuality_getStats","parameters":[],"responses":{"200":{"description":""},"401":{"$ref":"#/components/responses/Unauthorized"},"403":{"$ref":"#/components/responses/Forbidden"},"429":{"$ref":"#/components/responses/TooManyRequests"},"500":{"$ref":"#/components/responses/ServerError"}},"security":[{"JWT":[]},{"ApiKey":[]}],"tags":["Data Quality"],"summary":"Get stats","x-api-key-scopes":["*"]}},"/v1/data-quality/history":{"get":{"operationId":"dataQuality_getHistory","parameters":[{"name":"entityType","required":false,"in":"query","schema":{"type":"string"}},{"name":"days","required":false,"in":"query","schema":{"type":"string"}}],"responses":{"200":{"description":""},"400":{"$ref":"#/components/responses/BadRequest"},"401":{"$ref":"#/components/responses/Unauthorized"},"403":{"$ref":"#/components/responses/Forbidden"},"429":{"$ref":"#/components/responses/TooManyRequests"},"500":{"$ref":"#/components/responses/ServerError"}},"security":[{"JWT":[]},{"ApiKey":[]}],"tags":["Data Quality"],"summary":"Get history","x-api-key-scopes":["*"]}},"/v1/data-quality/historical-scores":{"get":{"operationId":"dataQuality_getHistoricalScores","parameters":[{"name":"entityType","required":false,"in":"query","schema":{"type":"string"}},{"name":"days","required":false,"in":"query","schema":{"type":"string"}}],"responses":{"200":{"description":""},"400":{"$ref":"#/components/responses/BadRequest"},"401":{"$ref":"#/components/responses/Unauthorized"},"403":{"$ref":"#/components/responses/Forbidden"},"429":{"$ref":"#/components/responses/TooManyRequests"},"500":{"$ref":"#/components/responses/ServerError"}},"security":[{"JWT":[]},{"ApiKey":[]}],"tags":["Data Quality"],"summary":"Get historical scores","x-api-key-scopes":["*"]}},"/v1/sales-inbox/queue":{"get":{"operationId":"salesInbox_getQueue","parameters":[{"name":"priority","required":false,"in":"query","schema":{"type":"string"}},{"name":"type","required":false,"in":"query","schema":{"type":"string"}},{"name":"page","required":false,"in":"query","schema":{"type":"string"}},{"name":"limit","required":false,"in":"query","schema":{"type":"string"}}],"responses":{"200":{"description":""},"400":{"$ref":"#/components/responses/BadRequest"},"401":{"$ref":"#/components/responses/Unauthorized"},"403":{"$ref":"#/components/responses/Forbidden"},"429":{"$ref":"#/components/responses/TooManyRequests"},"500":{"$ref":"#/components/responses/ServerError"}},"security":[{"JWT":[]},{"ApiKey":[]}],"tags":["Sales Inbox"],"summary":"Get queue","x-api-key-scopes":["*"]}},"/v1/sales-inbox/actions/{id}":{"get":{"operationId":"salesInbox_getAction","parameters":[{"name":"id","required":true,"in":"path","schema":{"type":"string"}}],"responses":{"200":{"description":""},"400":{"$ref":"#/components/responses/BadRequest"},"401":{"$ref":"#/components/responses/Unauthorized"},"403":{"$ref":"#/components/responses/Forbidden"},"404":{"$ref":"#/components/responses/NotFound"},"429":{"$ref":"#/components/responses/TooManyRequests"},"500":{"$ref":"#/components/responses/ServerError"}},"security":[{"JWT":[]},{"ApiKey":[]}],"tags":["Sales Inbox"],"summary":"Get action","x-api-key-scopes":["*"]}},"/v1/sales-inbox/actions/{id}/complete":{"post":{"operationId":"salesInbox_completeAction","parameters":[{"name":"id","required":true,"in":"path","schema":{"type":"string"}},{"$ref":"#/components/parameters/IdempotencyKey"}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/CompleteActionBody"}}}},"responses":{"201":{"description":""},"400":{"$ref":"#/components/responses/BadRequest"},"401":{"$ref":"#/components/responses/Unauthorized"},"403":{"$ref":"#/components/responses/Forbidden"},"404":{"$ref":"#/components/responses/NotFound"},"409":{"$ref":"#/components/responses/Conflict"},"429":{"$ref":"#/components/responses/TooManyRequests"},"500":{"$ref":"#/components/responses/ServerError"}},"security":[{"JWT":[]},{"ApiKey":[]}],"tags":["Sales Inbox"],"summary":"Complete action","x-api-key-scopes":["*"]}},"/v1/sales-inbox/actions/{id}/snooze":{"post":{"operationId":"salesInbox_snoozeAction","parameters":[{"name":"id","required":true,"in":"path","schema":{"type":"string"}},{"$ref":"#/components/parameters/IdempotencyKey"}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/SnoozeActionBody"}}}},"responses":{"201":{"description":""},"400":{"$ref":"#/components/responses/BadRequest"},"401":{"$ref":"#/components/responses/Unauthorized"},"403":{"$ref":"#/components/responses/Forbidden"},"404":{"$ref":"#/components/responses/NotFound"},"409":{"$ref":"#/components/responses/Conflict"},"429":{"$ref":"#/components/responses/TooManyRequests"},"500":{"$ref":"#/components/responses/ServerError"}},"security":[{"JWT":[]},{"ApiKey":[]}],"tags":["Sales Inbox"],"summary":"Snooze action","x-api-key-scopes":["*"]}},"/v1/sales-inbox/actions/{id}/dismiss":{"post":{"operationId":"salesInbox_dismissAction","parameters":[{"name":"id","required":true,"in":"path","schema":{"type":"string"}},{"$ref":"#/components/parameters/IdempotencyKey"}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/DismissActionBody"}}}},"responses":{"201":{"description":""},"400":{"$ref":"#/components/responses/BadRequest"},"401":{"$ref":"#/components/responses/Unauthorized"},"403":{"$ref":"#/components/responses/Forbidden"},"404":{"$ref":"#/components/responses/NotFound"},"409":{"$ref":"#/components/responses/Conflict"},"429":{"$ref":"#/components/responses/TooManyRequests"},"500":{"$ref":"#/components/responses/ServerError"}},"security":[{"JWT":[]},{"ApiKey":[]}],"tags":["Sales Inbox"],"summary":"Dismiss action","x-api-key-scopes":["*"]}},"/v1/sales-inbox/briefing":{"get":{"operationId":"salesInbox_getBriefing","parameters":[],"responses":{"200":{"description":""},"401":{"$ref":"#/components/responses/Unauthorized"},"403":{"$ref":"#/components/responses/Forbidden"},"429":{"$ref":"#/components/responses/TooManyRequests"},"500":{"$ref":"#/components/responses/ServerError"}},"security":[{"JWT":[]},{"ApiKey":[]}],"tags":["Sales Inbox"],"summary":"Get briefing","x-api-key-scopes":["*"]}},"/v1/sales-inbox/daily-briefing":{"get":{"operationId":"salesInbox_getDailyBriefing","parameters":[],"responses":{"200":{"description":""},"401":{"$ref":"#/components/responses/Unauthorized"},"403":{"$ref":"#/components/responses/Forbidden"},"429":{"$ref":"#/components/responses/TooManyRequests"},"500":{"$ref":"#/components/responses/ServerError"}},"security":[{"JWT":[]},{"ApiKey":[]}],"tags":["Sales Inbox"],"summary":"Get daily briefing","x-api-key-scopes":["*"]}},"/v1/sales-inbox/stats":{"get":{"operationId":"salesInbox_getStats","parameters":[],"responses":{"200":{"description":""},"401":{"$ref":"#/components/responses/Unauthorized"},"403":{"$ref":"#/components/responses/Forbidden"},"429":{"$ref":"#/components/responses/TooManyRequests"},"500":{"$ref":"#/components/responses/ServerError"}},"security":[{"JWT":[]},{"ApiKey":[]}],"tags":["Sales Inbox"],"summary":"Get stats","x-api-key-scopes":["*"]}},"/v1/sales-inbox/config":{"get":{"operationId":"salesInbox_getConfig","parameters":[],"responses":{"200":{"description":""},"401":{"$ref":"#/components/responses/Unauthorized"},"403":{"$ref":"#/components/responses/Forbidden"},"429":{"$ref":"#/components/responses/TooManyRequests"},"500":{"$ref":"#/components/responses/ServerError"}},"security":[{"JWT":[]},{"ApiKey":[]}],"tags":["Sales Inbox"],"summary":"Get config","x-api-key-scopes":["*"]},"patch":{"operationId":"salesInbox_updateConfig","parameters":[{"$ref":"#/components/parameters/IdempotencyKey"}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/UpdateConfigBody"}}}},"responses":{"200":{"description":""},"400":{"$ref":"#/components/responses/BadRequest"},"401":{"$ref":"#/components/responses/Unauthorized"},"403":{"$ref":"#/components/responses/Forbidden"},"409":{"$ref":"#/components/responses/Conflict"},"429":{"$ref":"#/components/responses/TooManyRequests"},"500":{"$ref":"#/components/responses/ServerError"}},"security":[{"JWT":[]},{"ApiKey":[]}],"tags":["Sales Inbox"],"summary":"Update config","x-api-key-scopes":["*"]}},"/v1/sales-inbox/queue/refresh":{"post":{"operationId":"salesInbox_queueRefresh","parameters":[{"$ref":"#/components/parameters/IdempotencyKey"}],"responses":{"201":{"description":""},"400":{"$ref":"#/components/responses/BadRequest"},"401":{"$ref":"#/components/responses/Unauthorized"},"403":{"$ref":"#/components/responses/Forbidden"},"409":{"$ref":"#/components/responses/Conflict"},"429":{"$ref":"#/components/responses/TooManyRequests"},"500":{"$ref":"#/components/responses/ServerError"}},"security":[{"JWT":[]},{"ApiKey":[]}],"tags":["Sales Inbox"],"summary":"Queue refresh","x-api-key-scopes":["*"]}},"/v1/sales-inbox/refresh":{"post":{"operationId":"salesInbox_refresh","parameters":[{"$ref":"#/components/parameters/IdempotencyKey"}],"responses":{"201":{"description":""},"400":{"$ref":"#/components/responses/BadRequest"},"401":{"$ref":"#/components/responses/Unauthorized"},"403":{"$ref":"#/components/responses/Forbidden"},"409":{"$ref":"#/components/responses/Conflict"},"429":{"$ref":"#/components/responses/TooManyRequests"},"500":{"$ref":"#/components/responses/ServerError"}},"security":[{"JWT":[]},{"ApiKey":[]}],"tags":["Sales Inbox"],"summary":"Refresh","x-api-key-scopes":["*"]}},"/v1/mobile-command/parse":{"post":{"operationId":"mobileCommand_parseCommand","parameters":[{"$ref":"#/components/parameters/IdempotencyKey"}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ParseCommandBody"}}}},"responses":{"201":{"description":""},"400":{"$ref":"#/components/responses/BadRequest"},"401":{"$ref":"#/components/responses/Unauthorized"},"403":{"$ref":"#/components/responses/Forbidden"},"409":{"$ref":"#/components/responses/Conflict"},"429":{"$ref":"#/components/responses/TooManyRequests"},"500":{"$ref":"#/components/responses/ServerError"}},"security":[{"JWT":[]},{"ApiKey":[]}],"tags":["Mobile Command"],"summary":"Parse command","x-api-key-scopes":["*"]}},"/v1/mobile-command/commands/{id}/execute":{"post":{"operationId":"mobileCommand_executeCommandFrontend","parameters":[{"name":"id","required":true,"in":"path","schema":{"type":"string"}},{"$ref":"#/components/parameters/IdempotencyKey"}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ExecuteCommandFrontendBody"}}}},"responses":{"201":{"description":""},"400":{"$ref":"#/components/responses/BadRequest"},"401":{"$ref":"#/components/responses/Unauthorized"},"403":{"$ref":"#/components/responses/Forbidden"},"404":{"$ref":"#/components/responses/NotFound"},"409":{"$ref":"#/components/responses/Conflict"},"429":{"$ref":"#/components/responses/TooManyRequests"},"500":{"$ref":"#/components/responses/ServerError"}},"security":[{"JWT":[]},{"ApiKey":[]}],"tags":["Mobile Command"],"summary":"Execute command frontend","x-api-key-scopes":["*"]}},"/v1/mobile-command/execute/{id}":{"post":{"operationId":"mobileCommand_executeCommand","parameters":[{"name":"id","required":true,"in":"path","schema":{"type":"string"}},{"$ref":"#/components/parameters/IdempotencyKey"}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ExecuteCommandBody"}}}},"responses":{"201":{"description":""},"400":{"$ref":"#/components/responses/BadRequest"},"401":{"$ref":"#/components/responses/Unauthorized"},"403":{"$ref":"#/components/responses/Forbidden"},"404":{"$ref":"#/components/responses/NotFound"},"409":{"$ref":"#/components/responses/Conflict"},"429":{"$ref":"#/components/responses/TooManyRequests"},"500":{"$ref":"#/components/responses/ServerError"}},"security":[{"JWT":[]},{"ApiKey":[]}],"tags":["Mobile Command"],"summary":"Execute command","x-api-key-scopes":["*"]}},"/v1/mobile-command/history":{"get":{"operationId":"mobileCommand_getHistory","parameters":[{"name":"page","required":false,"in":"query","schema":{"type":"string"}},{"name":"limit","required":false,"in":"query","schema":{"type":"string"}}],"responses":{"200":{"description":""},"400":{"$ref":"#/components/responses/BadRequest"},"401":{"$ref":"#/components/responses/Unauthorized"},"403":{"$ref":"#/components/responses/Forbidden"},"429":{"$ref":"#/components/responses/TooManyRequests"},"500":{"$ref":"#/components/responses/ServerError"}},"security":[{"JWT":[]},{"ApiKey":[]}],"tags":["Mobile Command"],"summary":"Get history","x-api-key-scopes":["*"]}},"/v1/mobile-command/suggestions":{"get":{"operationId":"mobileCommand_getSuggestions","parameters":[{"name":"input","required":false,"in":"query","schema":{"type":"string"}}],"responses":{"200":{"description":""},"400":{"$ref":"#/components/responses/BadRequest"},"401":{"$ref":"#/components/responses/Unauthorized"},"403":{"$ref":"#/components/responses/Forbidden"},"429":{"$ref":"#/components/responses/TooManyRequests"},"500":{"$ref":"#/components/responses/ServerError"}},"security":[{"JWT":[]},{"ApiKey":[]}],"tags":["Mobile Command"],"summary":"Get suggestions","x-api-key-scopes":["*"]}},"/v1/mobile-command/quick-actions":{"get":{"operationId":"mobileCommand_getQuickActions","parameters":[],"responses":{"200":{"description":""},"401":{"$ref":"#/components/responses/Unauthorized"},"403":{"$ref":"#/components/responses/Forbidden"},"429":{"$ref":"#/components/responses/TooManyRequests"},"500":{"$ref":"#/components/responses/ServerError"}},"security":[{"JWT":[]},{"ApiKey":[]}],"tags":["Mobile Command"],"summary":"Get quick actions","x-api-key-scopes":["*"]}},"/v1/mobile-command/stats":{"get":{"operationId":"mobileCommand_getStats","parameters":[],"responses":{"200":{"description":""},"401":{"$ref":"#/components/responses/Unauthorized"},"403":{"$ref":"#/components/responses/Forbidden"},"429":{"$ref":"#/components/responses/TooManyRequests"},"500":{"$ref":"#/components/responses/ServerError"}},"security":[{"JWT":[]},{"ApiKey":[]}],"tags":["Mobile Command"],"summary":"Get stats","x-api-key-scopes":["*"]}},"/v1/mobile-command/commands/{id}/undo":{"post":{"operationId":"mobileCommand_undoCommandFrontend","parameters":[{"name":"id","required":true,"in":"path","schema":{"type":"string"}},{"$ref":"#/components/parameters/IdempotencyKey"}],"responses":{"201":{"description":""},"400":{"$ref":"#/components/responses/BadRequest"},"401":{"$ref":"#/components/responses/Unauthorized"},"403":{"$ref":"#/components/responses/Forbidden"},"404":{"$ref":"#/components/responses/NotFound"},"409":{"$ref":"#/components/responses/Conflict"},"429":{"$ref":"#/components/responses/TooManyRequests"},"500":{"$ref":"#/components/responses/ServerError"}},"security":[{"JWT":[]},{"ApiKey":[]}],"tags":["Mobile Command"],"summary":"Undo command frontend","x-api-key-scopes":["*"]}},"/v1/mobile-command/undo/{id}":{"post":{"operationId":"mobileCommand_undoCommand","parameters":[{"name":"id","required":true,"in":"path","schema":{"type":"string"}},{"$ref":"#/components/parameters/IdempotencyKey"}],"responses":{"201":{"description":""},"400":{"$ref":"#/components/responses/BadRequest"},"401":{"$ref":"#/components/responses/Unauthorized"},"403":{"$ref":"#/components/responses/Forbidden"},"404":{"$ref":"#/components/responses/NotFound"},"409":{"$ref":"#/components/responses/Conflict"},"429":{"$ref":"#/components/responses/TooManyRequests"},"500":{"$ref":"#/components/responses/ServerError"}},"security":[{"JWT":[]},{"ApiKey":[]}],"tags":["Mobile Command"],"summary":"Undo command","x-api-key-scopes":["*"]}},"/v1/smart-assignment/recommendations":{"get":{"operationId":"smartAssignment_getRecommendations","parameters":[{"name":"entityType","required":false,"in":"query","schema":{"type":"string"}},{"name":"status","required":false,"in":"query","schema":{"type":"string"}},{"name":"page","required":false,"in":"query","schema":{"type":"string"}},{"name":"limit","required":false,"in":"query","schema":{"type":"string"}}],"responses":{"200":{"description":""},"400":{"$ref":"#/components/responses/BadRequest"},"401":{"$ref":"#/components/responses/Unauthorized"},"403":{"$ref":"#/components/responses/Forbidden"},"429":{"$ref":"#/components/responses/TooManyRequests"},"500":{"$ref":"#/components/responses/ServerError"}},"security":[{"JWT":[]},{"ApiKey":[]}],"tags":["Smart Assignment"],"summary":"Get recommendations","x-api-key-scopes":["*"]}},"/v1/smart-assignment/recommendations/{id}":{"get":{"operationId":"smartAssignment_getRecommendation","parameters":[{"name":"id","required":true,"in":"path","schema":{"type":"string"}}],"responses":{"200":{"description":""},"400":{"$ref":"#/components/responses/BadRequest"},"401":{"$ref":"#/components/responses/Unauthorized"},"403":{"$ref":"#/components/responses/Forbidden"},"404":{"$ref":"#/components/responses/NotFound"},"429":{"$ref":"#/components/responses/TooManyRequests"},"500":{"$ref":"#/components/responses/ServerError"}},"security":[{"JWT":[]},{"ApiKey":[]}],"tags":["Smart Assignment"],"summary":"Get recommendation","x-api-key-scopes":["*"]}},"/v1/smart-assignment/recommendations/{id}/accept":{"post":{"operationId":"smartAssignment_acceptRecommendation","parameters":[{"name":"id","required":true,"in":"path","schema":{"type":"string"}},{"$ref":"#/components/parameters/IdempotencyKey"}],"responses":{"201":{"description":""},"400":{"$ref":"#/components/responses/BadRequest"},"401":{"$ref":"#/components/responses/Unauthorized"},"403":{"$ref":"#/components/responses/Forbidden"},"404":{"$ref":"#/components/responses/NotFound"},"409":{"$ref":"#/components/responses/Conflict"},"429":{"$ref":"#/components/responses/TooManyRequests"},"500":{"$ref":"#/components/responses/ServerError"}},"security":[{"JWT":[]},{"ApiKey":[]}],"tags":["Smart Assignment"],"summary":"Accept recommendation","x-api-key-scopes":["*"]}},"/v1/smart-assignment/recommendations/{id}/override":{"post":{"operationId":"smartAssignment_overrideRecommendation","parameters":[{"name":"id","required":true,"in":"path","schema":{"type":"string"}},{"$ref":"#/components/parameters/IdempotencyKey"}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/OverrideRecommendationBody"}}}},"responses":{"201":{"description":""},"400":{"$ref":"#/components/responses/BadRequest"},"401":{"$ref":"#/components/responses/Unauthorized"},"403":{"$ref":"#/components/responses/Forbidden"},"404":{"$ref":"#/components/responses/NotFound"},"409":{"$ref":"#/components/responses/Conflict"},"429":{"$ref":"#/components/responses/TooManyRequests"},"500":{"$ref":"#/components/responses/ServerError"}},"security":[{"JWT":[]},{"ApiKey":[]}],"tags":["Smart Assignment"],"summary":"Override recommendation","x-api-key-scopes":["*"]}},"/v1/smart-assignment/rep-profiles":{"get":{"operationId":"smartAssignment_getRepProfiles","parameters":[{"name":"page","required":false,"in":"query","schema":{"type":"string"}},{"name":"limit","required":false,"in":"query","schema":{"type":"string"}}],"responses":{"200":{"description":""},"400":{"$ref":"#/components/responses/BadRequest"},"401":{"$ref":"#/components/responses/Unauthorized"},"403":{"$ref":"#/components/responses/Forbidden"},"429":{"$ref":"#/components/responses/TooManyRequests"},"500":{"$ref":"#/components/responses/ServerError"}},"security":[{"JWT":[]},{"ApiKey":[]}],"tags":["Smart Assignment"],"summary":"Get rep profiles","x-api-key-scopes":["*"]}},"/v1/smart-assignment/config":{"get":{"operationId":"smartAssignment_getConfig","parameters":[],"responses":{"200":{"description":""},"401":{"$ref":"#/components/responses/Unauthorized"},"403":{"$ref":"#/components/responses/Forbidden"},"429":{"$ref":"#/components/responses/TooManyRequests"},"500":{"$ref":"#/components/responses/ServerError"}},"security":[{"JWT":[]},{"ApiKey":[]}],"tags":["Smart Assignment"],"summary":"Get config","x-api-key-scopes":["*"]},"patch":{"operationId":"smartAssignment_updateConfig","parameters":[{"$ref":"#/components/parameters/IdempotencyKey"}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/UpdateConfigBody"}}}},"responses":{"200":{"description":""},"400":{"$ref":"#/components/responses/BadRequest"},"401":{"$ref":"#/components/responses/Unauthorized"},"403":{"$ref":"#/components/responses/Forbidden"},"409":{"$ref":"#/components/responses/Conflict"},"429":{"$ref":"#/components/responses/TooManyRequests"},"500":{"$ref":"#/components/responses/ServerError"}},"security":[{"JWT":[]},{"ApiKey":[]}],"tags":["Smart Assignment"],"summary":"Update config","x-api-key-scopes":["*"]}},"/v1/smart-assignment/stats":{"get":{"operationId":"smartAssignment_getStats","parameters":[],"responses":{"200":{"description":""},"401":{"$ref":"#/components/responses/Unauthorized"},"403":{"$ref":"#/components/responses/Forbidden"},"429":{"$ref":"#/components/responses/TooManyRequests"},"500":{"$ref":"#/components/responses/ServerError"}},"security":[{"JWT":[]},{"ApiKey":[]}],"tags":["Smart Assignment"],"summary":"Get stats","x-api-key-scopes":["*"]}},"/v1/smart-assignment/simulate":{"post":{"operationId":"smartAssignment_simulateAssignment","parameters":[{"$ref":"#/components/parameters/IdempotencyKey"}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/SimulateAssignmentBody"}}}},"responses":{"201":{"description":""},"400":{"$ref":"#/components/responses/BadRequest"},"401":{"$ref":"#/components/responses/Unauthorized"},"403":{"$ref":"#/components/responses/Forbidden"},"409":{"$ref":"#/components/responses/Conflict"},"429":{"$ref":"#/components/responses/TooManyRequests"},"500":{"$ref":"#/components/responses/ServerError"}},"security":[{"JWT":[]},{"ApiKey":[]}],"tags":["Smart Assignment"],"summary":"Simulate assignment","x-api-key-scopes":["*"]}},"/v1/smart-assignment/history":{"get":{"operationId":"smartAssignment_getHistory","parameters":[],"responses":{"200":{"description":""},"401":{"$ref":"#/components/responses/Unauthorized"},"403":{"$ref":"#/components/responses/Forbidden"},"429":{"$ref":"#/components/responses/TooManyRequests"},"500":{"$ref":"#/components/responses/ServerError"}},"security":[{"JWT":[]},{"ApiKey":[]}],"tags":["Smart Assignment"],"summary":"Get history","x-api-key-scopes":["*"]}},"/v1/cross-object-workflows":{"get":{"operationId":"crossObjectWorkflows_listWorkflows","parameters":[{"name":"status","required":false,"in":"query","schema":{"type":"string"}},{"name":"page","required":false,"in":"query","schema":{"type":"string"}},{"name":"limit","required":false,"in":"query","schema":{"type":"string"}}],"responses":{"200":{"description":""},"400":{"$ref":"#/components/responses/BadRequest"},"401":{"$ref":"#/components/responses/Unauthorized"},"403":{"$ref":"#/components/responses/Forbidden"},"429":{"$ref":"#/components/responses/TooManyRequests"},"500":{"$ref":"#/components/responses/ServerError"}},"security":[{"JWT":[]},{"ApiKey":[]}],"tags":["Cross-Object Workflows"],"summary":"List workflows","x-api-key-scopes":["*"]},"post":{"operationId":"crossObjectWorkflows_createWorkflow","parameters":[{"$ref":"#/components/parameters/IdempotencyKey"}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/CreateWorkflowBody"}}}},"responses":{"201":{"description":""},"400":{"$ref":"#/components/responses/BadRequest"},"401":{"$ref":"#/components/responses/Unauthorized"},"403":{"$ref":"#/components/responses/Forbidden"},"409":{"$ref":"#/components/responses/Conflict"},"429":{"$ref":"#/components/responses/TooManyRequests"},"500":{"$ref":"#/components/responses/ServerError"}},"security":[{"JWT":[]},{"ApiKey":[]}],"tags":["Cross-Object Workflows"],"summary":"Create workflow","x-api-key-scopes":["*"]}},"/v1/cross-object-workflows/executions":{"get":{"operationId":"crossObjectWorkflows_getAllExecutions","parameters":[],"responses":{"200":{"description":""},"401":{"$ref":"#/components/responses/Unauthorized"},"403":{"$ref":"#/components/responses/Forbidden"},"429":{"$ref":"#/components/responses/TooManyRequests"},"500":{"$ref":"#/components/responses/ServerError"}},"security":[{"JWT":[]},{"ApiKey":[]}],"tags":["Cross-Object Workflows"],"summary":"Get all executions","x-api-key-scopes":["*"]}},"/v1/cross-object-workflows/stats":{"get":{"operationId":"crossObjectWorkflows_getStats","parameters":[],"responses":{"200":{"description":""},"401":{"$ref":"#/components/responses/Unauthorized"},"403":{"$ref":"#/components/responses/Forbidden"},"429":{"$ref":"#/components/responses/TooManyRequests"},"500":{"$ref":"#/components/responses/ServerError"}},"security":[{"JWT":[]},{"ApiKey":[]}],"tags":["Cross-Object Workflows"],"summary":"Get stats","x-api-key-scopes":["*"]}},"/v1/cross-object-workflows/{id}":{"get":{"operationId":"crossObjectWorkflows_getWorkflow","parameters":[{"name":"id","required":true,"in":"path","schema":{"type":"string"}}],"responses":{"200":{"description":"","content":{"application/json":{"schema":{"type":"object"}}}},"400":{"$ref":"#/components/responses/BadRequest"},"401":{"$ref":"#/components/responses/Unauthorized"},"403":{"$ref":"#/components/responses/Forbidden"},"404":{"$ref":"#/components/responses/NotFound"},"429":{"$ref":"#/components/responses/TooManyRequests"},"500":{"$ref":"#/components/responses/ServerError"}},"security":[{"JWT":[]},{"ApiKey":[]}],"tags":["Cross-Object Workflows"],"summary":"Get workflow","x-api-key-scopes":["*"]},"patch":{"operationId":"crossObjectWorkflows_updateWorkflow","parameters":[{"name":"id","required":true,"in":"path","schema":{"type":"string"}},{"$ref":"#/components/parameters/IdempotencyKey"}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/UpdateWorkflowBody"}}}},"responses":{"200":{"description":""},"400":{"$ref":"#/components/responses/BadRequest"},"401":{"$ref":"#/components/responses/Unauthorized"},"403":{"$ref":"#/components/responses/Forbidden"},"404":{"$ref":"#/components/responses/NotFound"},"409":{"$ref":"#/components/responses/Conflict"},"429":{"$ref":"#/components/responses/TooManyRequests"},"500":{"$ref":"#/components/responses/ServerError"}},"security":[{"JWT":[]},{"ApiKey":[]}],"tags":["Cross-Object Workflows"],"summary":"Update workflow","x-api-key-scopes":["*"]},"delete":{"operationId":"crossObjectWorkflows_deleteWorkflow","parameters":[{"name":"id","required":true,"in":"path","schema":{"type":"string"}}],"responses":{"200":{"description":""},"400":{"$ref":"#/components/responses/BadRequest"},"401":{"$ref":"#/components/responses/Unauthorized"},"403":{"$ref":"#/components/responses/Forbidden"},"404":{"$ref":"#/components/responses/NotFound"},"429":{"$ref":"#/components/responses/TooManyRequests"},"500":{"$ref":"#/components/responses/ServerError"}},"security":[{"JWT":[]},{"ApiKey":[]}],"tags":["Cross-Object Workflows"],"summary":"Delete workflow","x-api-key-scopes":["*"]}},"/v1/cross-object-workflows/{id}/toggle":{"post":{"operationId":"crossObjectWorkflows_toggleWorkflow","parameters":[{"name":"id","required":true,"in":"path","schema":{"type":"string"}},{"$ref":"#/components/parameters/IdempotencyKey"}],"responses":{"201":{"description":""},"400":{"$ref":"#/components/responses/BadRequest"},"401":{"$ref":"#/components/responses/Unauthorized"},"403":{"$ref":"#/components/responses/Forbidden"},"404":{"$ref":"#/components/responses/NotFound"},"409":{"$ref":"#/components/responses/Conflict"},"429":{"$ref":"#/components/responses/TooManyRequests"},"500":{"$ref":"#/components/responses/ServerError"}},"security":[{"JWT":[]},{"ApiKey":[]}],"tags":["Cross-Object Workflows"],"summary":"Toggle workflow","x-api-key-scopes":["*"]}},"/v1/cross-object-workflows/{id}/executions":{"get":{"operationId":"crossObjectWorkflows_getExecutions","parameters":[{"name":"id","required":true,"in":"path","schema":{"type":"string"}},{"name":"page","required":false,"in":"query","schema":{"type":"string"}},{"name":"limit","required":false,"in":"query","schema":{"type":"string"}}],"responses":{"200":{"description":""},"400":{"$ref":"#/components/responses/BadRequest"},"401":{"$ref":"#/components/responses/Unauthorized"},"403":{"$ref":"#/components/responses/Forbidden"},"404":{"$ref":"#/components/responses/NotFound"},"429":{"$ref":"#/components/responses/TooManyRequests"},"500":{"$ref":"#/components/responses/ServerError"}},"security":[{"JWT":[]},{"ApiKey":[]}],"tags":["Cross-Object Workflows"],"summary":"Get executions","x-api-key-scopes":["*"]}},"/v1/cross-object-workflows/{id}/test":{"post":{"operationId":"crossObjectWorkflows_testWorkflow","parameters":[{"name":"id","required":true,"in":"path","schema":{"type":"string"}},{"$ref":"#/components/parameters/IdempotencyKey"}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/TestWorkflowBody"}}}},"responses":{"201":{"description":""},"400":{"$ref":"#/components/responses/BadRequest"},"401":{"$ref":"#/components/responses/Unauthorized"},"403":{"$ref":"#/components/responses/Forbidden"},"404":{"$ref":"#/components/responses/NotFound"},"409":{"$ref":"#/components/responses/Conflict"},"429":{"$ref":"#/components/responses/TooManyRequests"},"500":{"$ref":"#/components/responses/ServerError"}},"security":[{"JWT":[]},{"ApiKey":[]}],"tags":["Cross-Object Workflows"],"summary":"Test workflow","x-api-key-scopes":["*"]}},"/v1/cross-object-workflows/{id}/clone":{"post":{"operationId":"crossObjectWorkflows_cloneWorkflow","parameters":[{"name":"id","required":true,"in":"path","schema":{"type":"string"}},{"$ref":"#/components/parameters/IdempotencyKey"}],"responses":{"201":{"description":""},"400":{"$ref":"#/components/responses/BadRequest"},"401":{"$ref":"#/components/responses/Unauthorized"},"403":{"$ref":"#/components/responses/Forbidden"},"404":{"$ref":"#/components/responses/NotFound"},"409":{"$ref":"#/components/responses/Conflict"},"429":{"$ref":"#/components/responses/TooManyRequests"},"500":{"$ref":"#/components/responses/ServerError"}},"security":[{"JWT":[]},{"ApiKey":[]}],"tags":["Cross-Object Workflows"],"summary":"Clone workflow","x-api-key-scopes":["*"]}},"/v1/bulk-operations":{"get":{"operationId":"bulkOperations_listOperations","parameters":[{"name":"status","required":false,"in":"query","schema":{"type":"string"}},{"name":"entityType","required":false,"in":"query","schema":{"type":"string"}},{"name":"page","required":false,"in":"query","schema":{"type":"string"}},{"name":"limit","required":false,"in":"query","schema":{"type":"string"}}],"responses":{"200":{"description":""},"400":{"$ref":"#/components/responses/BadRequest"},"401":{"$ref":"#/components/responses/Unauthorized"},"403":{"$ref":"#/components/responses/Forbidden"},"429":{"$ref":"#/components/responses/TooManyRequests"},"500":{"$ref":"#/components/responses/ServerError"}},"security":[{"JWT":[]},{"ApiKey":[]}],"tags":["Bulk Operations"],"summary":"List operations","x-api-key-scopes":["*"]},"post":{"operationId":"bulkOperations_createOperation","parameters":[{"$ref":"#/components/parameters/IdempotencyKey"}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/CreateOperationBody"}}}},"responses":{"201":{"description":""},"400":{"$ref":"#/components/responses/BadRequest"},"401":{"$ref":"#/components/responses/Unauthorized"},"403":{"$ref":"#/components/responses/Forbidden"},"409":{"$ref":"#/components/responses/Conflict"},"429":{"$ref":"#/components/responses/TooManyRequests"},"500":{"$ref":"#/components/responses/ServerError"}},"security":[{"JWT":[]},{"ApiKey":[]}],"tags":["Bulk Operations"],"summary":"Create operation","x-api-key-scopes":["*"]}},"/v1/bulk-operations/preview":{"post":{"operationId":"bulkOperations_previewOperation","parameters":[{"$ref":"#/components/parameters/IdempotencyKey"}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/PreviewOperationBody"}}}},"responses":{"201":{"description":"","content":{"application/json":{"schema":{"type":"object"}}}},"400":{"$ref":"#/components/responses/BadRequest"},"401":{"$ref":"#/components/responses/Unauthorized"},"403":{"$ref":"#/components/responses/Forbidden"},"409":{"$ref":"#/components/responses/Conflict"},"429":{"$ref":"#/components/responses/TooManyRequests"},"500":{"$ref":"#/components/responses/ServerError"}},"security":[{"JWT":[]},{"ApiKey":[]}],"tags":["Bulk Operations"],"summary":"Preview operation","x-api-key-scopes":["*"]}},"/v1/bulk-operations/stats":{"get":{"operationId":"bulkOperations_getStats","parameters":[],"responses":{"200":{"description":""},"401":{"$ref":"#/components/responses/Unauthorized"},"403":{"$ref":"#/components/responses/Forbidden"},"429":{"$ref":"#/components/responses/TooManyRequests"},"500":{"$ref":"#/components/responses/ServerError"}},"security":[{"JWT":[]},{"ApiKey":[]}],"tags":["Bulk Operations"],"summary":"Get stats","x-api-key-scopes":["*"]}},"/v1/bulk-operations/{id}":{"get":{"operationId":"bulkOperations_getOperation","parameters":[{"name":"id","required":true,"in":"path","schema":{"type":"string"}}],"responses":{"200":{"description":""},"400":{"$ref":"#/components/responses/BadRequest"},"401":{"$ref":"#/components/responses/Unauthorized"},"403":{"$ref":"#/components/responses/Forbidden"},"404":{"$ref":"#/components/responses/NotFound"},"429":{"$ref":"#/components/responses/TooManyRequests"},"500":{"$ref":"#/components/responses/ServerError"}},"security":[{"JWT":[]},{"ApiKey":[]}],"tags":["Bulk Operations"],"summary":"Get operation","x-api-key-scopes":["*"]},"delete":{"operationId":"bulkOperations_cancelOperation","parameters":[{"name":"id","required":true,"in":"path","schema":{"type":"string"}}],"responses":{"200":{"description":""},"400":{"$ref":"#/components/responses/BadRequest"},"401":{"$ref":"#/components/responses/Unauthorized"},"403":{"$ref":"#/components/responses/Forbidden"},"404":{"$ref":"#/components/responses/NotFound"},"429":{"$ref":"#/components/responses/TooManyRequests"},"500":{"$ref":"#/components/responses/ServerError"}},"security":[{"JWT":[]},{"ApiKey":[]}],"tags":["Bulk Operations"],"summary":"Cancel operation","x-api-key-scopes":["*"]}},"/v1/bulk-operations/{id}/cancel":{"post":{"operationId":"bulkOperations_cancelOperationPost","parameters":[{"name":"id","required":true,"in":"path","schema":{"type":"string"}},{"$ref":"#/components/parameters/IdempotencyKey"}],"responses":{"201":{"description":""},"400":{"$ref":"#/components/responses/BadRequest"},"401":{"$ref":"#/components/responses/Unauthorized"},"403":{"$ref":"#/components/responses/Forbidden"},"404":{"$ref":"#/components/responses/NotFound"},"409":{"$ref":"#/components/responses/Conflict"},"429":{"$ref":"#/components/responses/TooManyRequests"},"500":{"$ref":"#/components/responses/ServerError"}},"security":[{"JWT":[]},{"ApiKey":[]}],"tags":["Bulk Operations"],"summary":"Cancel operation post","x-api-key-scopes":["*"]}},"/v1/bulk-operations/{id}/undo":{"post":{"operationId":"bulkOperations_undoOperation","parameters":[{"name":"id","required":true,"in":"path","schema":{"type":"string"}},{"$ref":"#/components/parameters/IdempotencyKey"}],"responses":{"201":{"description":""},"400":{"$ref":"#/components/responses/BadRequest"},"401":{"$ref":"#/components/responses/Unauthorized"},"403":{"$ref":"#/components/responses/Forbidden"},"404":{"$ref":"#/components/responses/NotFound"},"409":{"$ref":"#/components/responses/Conflict"},"429":{"$ref":"#/components/responses/TooManyRequests"},"500":{"$ref":"#/components/responses/ServerError"}},"security":[{"JWT":[]},{"ApiKey":[]}],"tags":["Bulk Operations"],"summary":"Undo operation","x-api-key-scopes":["*"]}},"/v1/bulk-operations/{id}/log":{"get":{"operationId":"bulkOperations_getOperationLog","parameters":[{"name":"id","required":true,"in":"path","schema":{"type":"string"}},{"name":"page","required":false,"in":"query","schema":{"type":"string"}},{"name":"limit","required":false,"in":"query","schema":{"type":"string"}}],"responses":{"200":{"description":""},"400":{"$ref":"#/components/responses/BadRequest"},"401":{"$ref":"#/components/responses/Unauthorized"},"403":{"$ref":"#/components/responses/Forbidden"},"404":{"$ref":"#/components/responses/NotFound"},"429":{"$ref":"#/components/responses/TooManyRequests"},"500":{"$ref":"#/components/responses/ServerError"}},"security":[{"JWT":[]},{"ApiKey":[]}],"tags":["Bulk Operations"],"summary":"Get operation log","x-api-key-scopes":["*"]}},"/v1/sandboxes":{"get":{"operationId":"sandbox_listSandboxes","parameters":[{"name":"page","required":false,"in":"query","schema":{"type":"string"}},{"name":"limit","required":false,"in":"query","schema":{"type":"string"}}],"responses":{"200":{"description":""},"400":{"$ref":"#/components/responses/BadRequest"},"401":{"$ref":"#/components/responses/Unauthorized"},"403":{"$ref":"#/components/responses/Forbidden"},"429":{"$ref":"#/components/responses/TooManyRequests"},"500":{"$ref":"#/components/responses/ServerError"}},"security":[{"JWT":[]},{"ApiKey":[]}],"tags":["Sandboxes"],"summary":"List sandboxes","x-api-key-scopes":["*"]},"post":{"operationId":"sandbox_createSandbox","parameters":[{"$ref":"#/components/parameters/IdempotencyKey"}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/CreateSandboxBody"}}}},"responses":{"201":{"description":""},"400":{"$ref":"#/components/responses/BadRequest"},"401":{"$ref":"#/components/responses/Unauthorized"},"403":{"$ref":"#/components/responses/Forbidden"},"409":{"$ref":"#/components/responses/Conflict"},"429":{"$ref":"#/components/responses/TooManyRequests"},"500":{"$ref":"#/components/responses/ServerError"}},"security":[{"JWT":[]},{"ApiKey":[]}],"tags":["Sandboxes"],"summary":"Create sandbox","x-api-key-scopes":["*"]}},"/v1/sandboxes/stats":{"get":{"operationId":"sandbox_getStats","parameters":[],"responses":{"200":{"description":""},"401":{"$ref":"#/components/responses/Unauthorized"},"403":{"$ref":"#/components/responses/Forbidden"},"429":{"$ref":"#/components/responses/TooManyRequests"},"500":{"$ref":"#/components/responses/ServerError"}},"security":[{"JWT":[]},{"ApiKey":[]}],"tags":["Sandboxes"],"summary":"Get stats","x-api-key-scopes":["*"]}},"/v1/sandboxes/deployments":{"get":{"operationId":"sandbox_getDeployments","parameters":[{"name":"page","required":false,"in":"query","schema":{"type":"string"}},{"name":"limit","required":false,"in":"query","schema":{"type":"string"}}],"responses":{"200":{"description":""},"400":{"$ref":"#/components/responses/BadRequest"},"401":{"$ref":"#/components/responses/Unauthorized"},"403":{"$ref":"#/components/responses/Forbidden"},"429":{"$ref":"#/components/responses/TooManyRequests"},"500":{"$ref":"#/components/responses/ServerError"}},"security":[{"JWT":[]},{"ApiKey":[]}],"tags":["Sandboxes"],"summary":"Get deployments","x-api-key-scopes":["*"]}},"/v1/sandboxes/deployment-history":{"get":{"operationId":"sandbox_getDeploymentHistory","parameters":[{"name":"page","required":false,"in":"query","schema":{"type":"string"}},{"name":"limit","required":false,"in":"query","schema":{"type":"string"}}],"responses":{"200":{"description":""},"400":{"$ref":"#/components/responses/BadRequest"},"401":{"$ref":"#/components/responses/Unauthorized"},"403":{"$ref":"#/components/responses/Forbidden"},"429":{"$ref":"#/components/responses/TooManyRequests"},"500":{"$ref":"#/components/responses/ServerError"}},"security":[{"JWT":[]},{"ApiKey":[]}],"tags":["Sandboxes"],"summary":"Get deployment history","x-api-key-scopes":["*"]}},"/v1/sandboxes/{id}":{"get":{"operationId":"sandbox_getSandbox","parameters":[{"name":"id","required":true,"in":"path","schema":{"type":"string"}}],"responses":{"200":{"description":""},"400":{"$ref":"#/components/responses/BadRequest"},"401":{"$ref":"#/components/responses/Unauthorized"},"403":{"$ref":"#/components/responses/Forbidden"},"404":{"$ref":"#/components/responses/NotFound"},"429":{"$ref":"#/components/responses/TooManyRequests"},"500":{"$ref":"#/components/responses/ServerError"}},"security":[{"JWT":[]},{"ApiKey":[]}],"tags":["Sandboxes"],"summary":"Get sandbox","x-api-key-scopes":["*"]},"delete":{"operationId":"sandbox_deleteSandbox","parameters":[{"name":"id","required":true,"in":"path","schema":{"type":"string"}}],"responses":{"200":{"description":""},"400":{"$ref":"#/components/responses/BadRequest"},"401":{"$ref":"#/components/responses/Unauthorized"},"403":{"$ref":"#/components/responses/Forbidden"},"404":{"$ref":"#/components/responses/NotFound"},"429":{"$ref":"#/components/responses/TooManyRequests"},"500":{"$ref":"#/components/responses/ServerError"}},"security":[{"JWT":[]},{"ApiKey":[]}],"tags":["Sandboxes"],"summary":"Delete sandbox","x-api-key-scopes":["*"]}},"/v1/sandboxes/{id}/refresh":{"post":{"operationId":"sandbox_refreshSandbox","parameters":[{"name":"id","required":true,"in":"path","schema":{"type":"string"}},{"$ref":"#/components/parameters/IdempotencyKey"}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/RefreshSandboxBody"}}}},"responses":{"201":{"description":""},"400":{"$ref":"#/components/responses/BadRequest"},"401":{"$ref":"#/components/responses/Unauthorized"},"403":{"$ref":"#/components/responses/Forbidden"},"404":{"$ref":"#/components/responses/NotFound"},"409":{"$ref":"#/components/responses/Conflict"},"429":{"$ref":"#/components/responses/TooManyRequests"},"500":{"$ref":"#/components/responses/ServerError"}},"security":[{"JWT":[]},{"ApiKey":[]}],"tags":["Sandboxes"],"summary":"Refresh sandbox","x-api-key-scopes":["*"]}},"/v1/sandboxes/{id}/change-sets":{"get":{"operationId":"sandbox_listChangeSets","parameters":[{"name":"id","required":true,"in":"path","schema":{"type":"string"}},{"name":"page","required":false,"in":"query","schema":{"type":"string"}},{"name":"limit","required":false,"in":"query","schema":{"type":"string"}}],"responses":{"200":{"description":""},"400":{"$ref":"#/components/responses/BadRequest"},"401":{"$ref":"#/components/responses/Unauthorized"},"403":{"$ref":"#/components/responses/Forbidden"},"404":{"$ref":"#/components/responses/NotFound"},"429":{"$ref":"#/components/responses/TooManyRequests"},"500":{"$ref":"#/components/responses/ServerError"}},"security":[{"JWT":[]},{"ApiKey":[]}],"tags":["Sandboxes"],"summary":"List change sets","x-api-key-scopes":["*"]},"post":{"operationId":"sandbox_createChangeSet","parameters":[{"name":"id","required":true,"in":"path","schema":{"type":"string"}},{"$ref":"#/components/parameters/IdempotencyKey"}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/CreateChangeSetBody"}}}},"responses":{"201":{"description":""},"400":{"$ref":"#/components/responses/BadRequest"},"401":{"$ref":"#/components/responses/Unauthorized"},"403":{"$ref":"#/components/responses/Forbidden"},"404":{"$ref":"#/components/responses/NotFound"},"409":{"$ref":"#/components/responses/Conflict"},"429":{"$ref":"#/components/responses/TooManyRequests"},"500":{"$ref":"#/components/responses/ServerError"}},"security":[{"JWT":[]},{"ApiKey":[]}],"tags":["Sandboxes"],"summary":"Create change set","x-api-key-scopes":["*"]}},"/v1/sandboxes/{id}/change-sets/{setId}/validate":{"post":{"operationId":"sandbox_validateChangeSet","parameters":[{"name":"id","required":true,"in":"path","schema":{"type":"string"}},{"name":"setId","required":true,"in":"path","schema":{"type":"string"}},{"$ref":"#/components/parameters/IdempotencyKey"}],"responses":{"201":{"description":""},"400":{"$ref":"#/components/responses/BadRequest"},"401":{"$ref":"#/components/responses/Unauthorized"},"403":{"$ref":"#/components/responses/Forbidden"},"404":{"$ref":"#/components/responses/NotFound"},"409":{"$ref":"#/components/responses/Conflict"},"429":{"$ref":"#/components/responses/TooManyRequests"},"500":{"$ref":"#/components/responses/ServerError"}},"security":[{"JWT":[]},{"ApiKey":[]}],"tags":["Sandboxes"],"summary":"Validate change set","x-api-key-scopes":["*"]}},"/v1/sandboxes/deploy":{"post":{"operationId":"sandbox_deployBody","parameters":[{"$ref":"#/components/parameters/IdempotencyKey"}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/DeployBodyBody"}}}},"responses":{"201":{"description":""},"400":{"$ref":"#/components/responses/BadRequest"},"401":{"$ref":"#/components/responses/Unauthorized"},"403":{"$ref":"#/components/responses/Forbidden"},"409":{"$ref":"#/components/responses/Conflict"},"429":{"$ref":"#/components/responses/TooManyRequests"},"500":{"$ref":"#/components/responses/ServerError"}},"security":[{"JWT":[]},{"ApiKey":[]}],"tags":["Sandboxes"],"summary":"Deploy body","x-api-key-scopes":["*"]}},"/v1/sandboxes/change-sets/{setId}/deploy":{"post":{"operationId":"sandbox_deployChangeSet","parameters":[{"name":"setId","required":true,"in":"path","schema":{"type":"string"}},{"$ref":"#/components/parameters/IdempotencyKey"}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/DeployChangeSetBody"}}}},"responses":{"201":{"description":""},"400":{"$ref":"#/components/responses/BadRequest"},"401":{"$ref":"#/components/responses/Unauthorized"},"403":{"$ref":"#/components/responses/Forbidden"},"404":{"$ref":"#/components/responses/NotFound"},"409":{"$ref":"#/components/responses/Conflict"},"429":{"$ref":"#/components/responses/TooManyRequests"},"500":{"$ref":"#/components/responses/ServerError"}},"security":[{"JWT":[]},{"ApiKey":[]}],"tags":["Sandboxes"],"summary":"Deploy change set","x-api-key-scopes":["*"]}},"/v1/agent-marketplace":{"get":{"operationId":"agentMarketplace_getAgentsRoot","parameters":[{"name":"category","required":false,"in":"query","schema":{"type":"string"}},{"name":"search","required":false,"in":"query","schema":{"type":"string"}},{"name":"sortBy","required":false,"in":"query","schema":{"type":"string"}},{"name":"pricing","required":false,"in":"query","schema":{"type":"string"}},{"name":"sort","required":false,"in":"query","schema":{"type":"string"}},{"name":"page","required":false,"in":"query","schema":{"type":"string"}},{"name":"limit","required":false,"in":"query","schema":{"type":"string"}}],"responses":{"200":{"description":""},"400":{"$ref":"#/components/responses/BadRequest"},"401":{"$ref":"#/components/responses/Unauthorized"},"403":{"$ref":"#/components/responses/Forbidden"},"429":{"$ref":"#/components/responses/TooManyRequests"},"500":{"$ref":"#/components/responses/ServerError"}},"security":[{"JWT":[]},{"ApiKey":[]}],"summary":"List available marketplace agents (root)","tags":["Agent Marketplace"],"x-api-key-scopes":["*"]}},"/v1/agent-marketplace/agents":{"get":{"operationId":"agentMarketplace_getAgents","parameters":[{"name":"category","required":false,"in":"query","schema":{"type":"string"}},{"name":"search","required":false,"in":"query","schema":{"type":"string"}},{"name":"sortBy","required":false,"in":"query","schema":{"enum":["rating","installs","newest"],"type":"string"}},{"name":"page","required":false,"in":"query","schema":{"type":"string"}},{"name":"limit","required":false,"in":"query","schema":{"type":"string"}}],"responses":{"200":{"description":""},"400":{"$ref":"#/components/responses/BadRequest"},"401":{"$ref":"#/components/responses/Unauthorized"},"403":{"$ref":"#/components/responses/Forbidden"},"429":{"$ref":"#/components/responses/TooManyRequests"},"500":{"$ref":"#/components/responses/ServerError"}},"security":[{"JWT":[]},{"ApiKey":[]}],"summary":"List available marketplace agents","tags":["Agent Marketplace"],"x-api-key-scopes":["*"]}},"/v1/agent-marketplace/agents/{id}":{"get":{"operationId":"agentMarketplace_getAgentById","parameters":[{"name":"id","required":true,"in":"path","description":"Agent ID","schema":{"type":"string"}}],"responses":{"200":{"description":""},"400":{"$ref":"#/components/responses/BadRequest"},"401":{"$ref":"#/components/responses/Unauthorized"},"403":{"$ref":"#/components/responses/Forbidden"},"404":{"$ref":"#/components/responses/NotFound"},"429":{"$ref":"#/components/responses/TooManyRequests"},"500":{"$ref":"#/components/responses/ServerError"}},"security":[{"JWT":[]},{"ApiKey":[]}],"summary":"Get agent details","tags":["Agent Marketplace"],"x-api-key-scopes":["*"]}},"/v1/agent-marketplace/agents/{id}/install":{"post":{"operationId":"agentMarketplace_installAgent","parameters":[{"name":"id","required":true,"in":"path","description":"Agent ID","schema":{"type":"string"}},{"$ref":"#/components/parameters/IdempotencyKey"}],"responses":{"201":{"description":"","content":{"application/json":{"schema":{"type":"object"}}}},"400":{"$ref":"#/components/responses/BadRequest"},"401":{"$ref":"#/components/responses/Unauthorized"},"403":{"$ref":"#/components/responses/Forbidden"},"404":{"$ref":"#/components/responses/NotFound"},"409":{"$ref":"#/components/responses/Conflict"},"429":{"$ref":"#/components/responses/TooManyRequests"},"500":{"$ref":"#/components/responses/ServerError"}},"security":[{"JWT":[]},{"ApiKey":[]}],"summary":"Install an agent for the organization","tags":["Agent Marketplace"],"x-api-key-scopes":["*"]}},"/v1/agent-marketplace/agents/{id}/uninstall":{"delete":{"operationId":"agentMarketplace_uninstallAgent","parameters":[{"name":"id","required":true,"in":"path","description":"Agent ID","schema":{"type":"string"}}],"responses":{"200":{"description":""},"400":{"$ref":"#/components/responses/BadRequest"},"401":{"$ref":"#/components/responses/Unauthorized"},"403":{"$ref":"#/components/responses/Forbidden"},"404":{"$ref":"#/components/responses/NotFound"},"429":{"$ref":"#/components/responses/TooManyRequests"},"500":{"$ref":"#/components/responses/ServerError"}},"security":[{"JWT":[]},{"ApiKey":[]}],"summary":"Uninstall an agent","tags":["Agent Marketplace"],"x-api-key-scopes":["*"]}},"/v1/agent-marketplace/agents/{id}/configure":{"patch":{"operationId":"agentMarketplace_configureAgent","parameters":[{"name":"id","required":true,"in":"path","description":"Agent ID","schema":{"type":"string"}},{"$ref":"#/components/parameters/IdempotencyKey"}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ConfigureAgentBody"}}}},"responses":{"200":{"description":"","content":{"application/json":{"schema":{"type":"object"}}}},"400":{"$ref":"#/components/responses/BadRequest"},"401":{"$ref":"#/components/responses/Unauthorized"},"403":{"$ref":"#/components/responses/Forbidden"},"404":{"$ref":"#/components/responses/NotFound"},"409":{"$ref":"#/components/responses/Conflict"},"429":{"$ref":"#/components/responses/TooManyRequests"},"500":{"$ref":"#/components/responses/ServerError"}},"security":[{"JWT":[]},{"ApiKey":[]}],"summary":"Update agent configuration","tags":["Agent Marketplace"],"x-api-key-scopes":["*"]}},"/v1/agent-marketplace/agents/{id}/reviews":{"get":{"operationId":"agentMarketplace_getAgentReviews","parameters":[{"name":"id","required":true,"in":"path","description":"Agent ID","schema":{"type":"string"}},{"name":"page","required":false,"in":"query","schema":{"type":"string"}},{"name":"limit","required":false,"in":"query","schema":{"type":"string"}}],"responses":{"200":{"description":""},"400":{"$ref":"#/components/responses/BadRequest"},"401":{"$ref":"#/components/responses/Unauthorized"},"403":{"$ref":"#/components/responses/Forbidden"},"404":{"$ref":"#/components/responses/NotFound"},"429":{"$ref":"#/components/responses/TooManyRequests"},"500":{"$ref":"#/components/responses/ServerError"}},"security":[{"JWT":[]},{"ApiKey":[]}],"summary":"Get reviews for an agent","tags":["Agent Marketplace"],"x-api-key-scopes":["*"]},"post":{"operationId":"agentMarketplace_createReview","parameters":[{"name":"id","required":true,"in":"path","description":"Agent ID","schema":{"type":"string"}},{"$ref":"#/components/parameters/IdempotencyKey"}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/CreateReviewBody"}}}},"responses":{"201":{"description":""},"400":{"$ref":"#/components/responses/BadRequest"},"401":{"$ref":"#/components/responses/Unauthorized"},"403":{"$ref":"#/components/responses/Forbidden"},"404":{"$ref":"#/components/responses/NotFound"},"409":{"$ref":"#/components/responses/Conflict"},"429":{"$ref":"#/components/responses/TooManyRequests"},"500":{"$ref":"#/components/responses/ServerError"}},"security":[{"JWT":[]},{"ApiKey":[]}],"summary":"Submit a review for an agent","tags":["Agent Marketplace"],"x-api-key-scopes":["*"]}},"/v1/agent-marketplace/installations":{"get":{"operationId":"agentMarketplace_getInstallations","parameters":[],"responses":{"200":{"description":""},"401":{"$ref":"#/components/responses/Unauthorized"},"403":{"$ref":"#/components/responses/Forbidden"},"429":{"$ref":"#/components/responses/TooManyRequests"},"500":{"$ref":"#/components/responses/ServerError"}},"security":[{"JWT":[]},{"ApiKey":[]}],"summary":"List installed agents for the organization","tags":["Agent Marketplace"],"x-api-key-scopes":["*"]}},"/v1/agent-marketplace/publish":{"post":{"operationId":"agentMarketplace_publishAgentFrontend","parameters":[{"$ref":"#/components/parameters/IdempotencyKey"}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/PublishAgentBody"}}}},"responses":{"201":{"description":""},"400":{"$ref":"#/components/responses/BadRequest"},"401":{"$ref":"#/components/responses/Unauthorized"},"403":{"$ref":"#/components/responses/Forbidden"},"409":{"$ref":"#/components/responses/Conflict"},"429":{"$ref":"#/components/responses/TooManyRequests"},"500":{"$ref":"#/components/responses/ServerError"}},"security":[{"JWT":[]},{"ApiKey":[]}],"summary":"Publish an agent (frontend path)","tags":["Agent Marketplace"],"x-api-key-scopes":["*"]}},"/v1/agent-marketplace/agents/publish":{"post":{"operationId":"agentMarketplace_publishAgent","parameters":[{"$ref":"#/components/parameters/IdempotencyKey"}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/PublishAgentBody"}}}},"responses":{"201":{"description":""},"400":{"$ref":"#/components/responses/BadRequest"},"401":{"$ref":"#/components/responses/Unauthorized"},"403":{"$ref":"#/components/responses/Forbidden"},"409":{"$ref":"#/components/responses/Conflict"},"429":{"$ref":"#/components/responses/TooManyRequests"},"500":{"$ref":"#/components/responses/ServerError"}},"security":[{"JWT":[]},{"ApiKey":[]}],"summary":"Publish an agent to the marketplace","tags":["Agent Marketplace"],"x-api-key-scopes":["*"]}},"/v1/agent-marketplace/stats":{"get":{"operationId":"agentMarketplace_getStats","parameters":[],"responses":{"200":{"description":""},"401":{"$ref":"#/components/responses/Unauthorized"},"403":{"$ref":"#/components/responses/Forbidden"},"429":{"$ref":"#/components/responses/TooManyRequests"},"500":{"$ref":"#/components/responses/ServerError"}},"security":[{"JWT":[]},{"ApiKey":[]}],"summary":"Get marketplace statistics for the organization","tags":["Agent Marketplace"],"x-api-key-scopes":["*"]}},"/v1/agent-marketplace/featured":{"get":{"operationId":"agentMarketplace_getFeatured","parameters":[],"responses":{"200":{"description":""},"401":{"$ref":"#/components/responses/Unauthorized"},"403":{"$ref":"#/components/responses/Forbidden"},"429":{"$ref":"#/components/responses/TooManyRequests"},"500":{"$ref":"#/components/responses/ServerError"}},"security":[{"JWT":[]},{"ApiKey":[]}],"summary":"Get featured marketplace agents","tags":["Agent Marketplace"],"x-api-key-scopes":["*"]}},"/v1/agent-marketplace/trending":{"get":{"operationId":"agentMarketplace_getTrending","parameters":[],"responses":{"200":{"description":""},"401":{"$ref":"#/components/responses/Unauthorized"},"403":{"$ref":"#/components/responses/Forbidden"},"429":{"$ref":"#/components/responses/TooManyRequests"},"500":{"$ref":"#/components/responses/ServerError"}},"security":[{"JWT":[]},{"ApiKey":[]}],"summary":"Get trending marketplace agents","tags":["Agent Marketplace"],"x-api-key-scopes":["*"]}},"/v1/agent-marketplace/{id}":{"get":{"operationId":"agentMarketplace_getAgentByIdRoot","parameters":[{"name":"id","required":true,"in":"path","schema":{"type":"string"}}],"responses":{"200":{"description":""},"400":{"$ref":"#/components/responses/BadRequest"},"401":{"$ref":"#/components/responses/Unauthorized"},"403":{"$ref":"#/components/responses/Forbidden"},"404":{"$ref":"#/components/responses/NotFound"},"429":{"$ref":"#/components/responses/TooManyRequests"},"500":{"$ref":"#/components/responses/ServerError"}},"security":[{"JWT":[]},{"ApiKey":[]}],"summary":"Get agent details (frontend root path)","tags":["Agent Marketplace"],"x-api-key-scopes":["*"]}},"/v1/agent-marketplace/{id}/install":{"post":{"operationId":"agentMarketplace_installAgentRoot","parameters":[{"name":"id","required":true,"in":"path","schema":{"type":"string"}},{"$ref":"#/components/parameters/IdempotencyKey"}],"responses":{"201":{"description":"","content":{"application/json":{"schema":{"type":"object"}}}},"400":{"$ref":"#/components/responses/BadRequest"},"401":{"$ref":"#/components/responses/Unauthorized"},"403":{"$ref":"#/components/responses/Forbidden"},"404":{"$ref":"#/components/responses/NotFound"},"409":{"$ref":"#/components/responses/Conflict"},"429":{"$ref":"#/components/responses/TooManyRequests"},"500":{"$ref":"#/components/responses/ServerError"}},"security":[{"JWT":[]},{"ApiKey":[]}],"summary":"Install an agent (frontend root path)","tags":["Agent Marketplace"],"x-api-key-scopes":["*"]},"delete":{"operationId":"agentMarketplace_uninstallAgentRoot","parameters":[{"name":"id","required":true,"in":"path","schema":{"type":"string"}}],"responses":{"200":{"description":""},"400":{"$ref":"#/components/responses/BadRequest"},"401":{"$ref":"#/components/responses/Unauthorized"},"403":{"$ref":"#/components/responses/Forbidden"},"404":{"$ref":"#/components/responses/NotFound"},"429":{"$ref":"#/components/responses/TooManyRequests"},"500":{"$ref":"#/components/responses/ServerError"}},"security":[{"JWT":[]},{"ApiKey":[]}],"summary":"Uninstall an agent (frontend root path)","tags":["Agent Marketplace"],"x-api-key-scopes":["*"]}},"/v1/agent-marketplace/{id}/config":{"patch":{"operationId":"agentMarketplace_configureAgentRoot","parameters":[{"name":"id","required":true,"in":"path","schema":{"type":"string"}},{"$ref":"#/components/parameters/IdempotencyKey"}],"responses":{"200":{"description":"","content":{"application/json":{"schema":{"type":"object"}}}},"400":{"$ref":"#/components/responses/BadRequest"},"401":{"$ref":"#/components/responses/Unauthorized"},"403":{"$ref":"#/components/responses/Forbidden"},"404":{"$ref":"#/components/responses/NotFound"},"409":{"$ref":"#/components/responses/Conflict"},"429":{"$ref":"#/components/responses/TooManyRequests"},"500":{"$ref":"#/components/responses/ServerError"}},"security":[{"JWT":[]},{"ApiKey":[]}],"summary":"Configure an agent (frontend root path)","tags":["Agent Marketplace"],"x-api-key-scopes":["*"]}},"/v1/agent-marketplace/{id}/reviews":{"get":{"operationId":"agentMarketplace_getAgentReviewsRoot","parameters":[{"name":"id","required":true,"in":"path","schema":{"type":"string"}},{"name":"page","required":false,"in":"query","schema":{"type":"string"}},{"name":"limit","required":false,"in":"query","schema":{"type":"string"}}],"responses":{"200":{"description":""},"400":{"$ref":"#/components/responses/BadRequest"},"401":{"$ref":"#/components/responses/Unauthorized"},"403":{"$ref":"#/components/responses/Forbidden"},"404":{"$ref":"#/components/responses/NotFound"},"429":{"$ref":"#/components/responses/TooManyRequests"},"500":{"$ref":"#/components/responses/ServerError"}},"security":[{"JWT":[]},{"ApiKey":[]}],"summary":"Get reviews for an agent (frontend root path)","tags":["Agent Marketplace"],"x-api-key-scopes":["*"]},"post":{"operationId":"agentMarketplace_createReviewRoot","parameters":[{"name":"id","required":true,"in":"path","schema":{"type":"string"}},{"$ref":"#/components/parameters/IdempotencyKey"}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/CreateReviewRootBody"}}}},"responses":{"201":{"description":""},"400":{"$ref":"#/components/responses/BadRequest"},"401":{"$ref":"#/components/responses/Unauthorized"},"403":{"$ref":"#/components/responses/Forbidden"},"404":{"$ref":"#/components/responses/NotFound"},"409":{"$ref":"#/components/responses/Conflict"},"429":{"$ref":"#/components/responses/TooManyRequests"},"500":{"$ref":"#/components/responses/ServerError"}},"security":[{"JWT":[]},{"ApiKey":[]}],"summary":"Submit a review (frontend root path)","tags":["Agent Marketplace"],"x-api-key-scopes":["*"]}},"/v1/embedded-analytics/tokens":{"get":{"operationId":"embeddedAnalytics_getTokens","parameters":[{"name":"status","required":false,"in":"query","schema":{"enum":["ACTIVE","REVOKED","EXPIRED"],"type":"string"}},{"name":"page","required":false,"in":"query","schema":{"type":"string"}},{"name":"limit","required":false,"in":"query","schema":{"type":"string"}}],"responses":{"200":{"description":""},"400":{"$ref":"#/components/responses/BadRequest"},"401":{"$ref":"#/components/responses/Unauthorized"},"403":{"$ref":"#/components/responses/Forbidden"},"429":{"$ref":"#/components/responses/TooManyRequests"},"500":{"$ref":"#/components/responses/ServerError"}},"security":[{"JWT":[]},{"ApiKey":[]}],"summary":"List all embed tokens","tags":["Embedded Analytics"],"x-api-key-scopes":["*"]},"post":{"operationId":"embeddedAnalytics_createToken","parameters":[{"$ref":"#/components/parameters/IdempotencyKey"}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/CreateTokenBody"}}}},"responses":{"201":{"description":""},"400":{"$ref":"#/components/responses/BadRequest"},"401":{"$ref":"#/components/responses/Unauthorized"},"403":{"$ref":"#/components/responses/Forbidden"},"409":{"$ref":"#/components/responses/Conflict"},"429":{"$ref":"#/components/responses/TooManyRequests"},"500":{"$ref":"#/components/responses/ServerError"}},"security":[{"JWT":[]},{"ApiKey":[]}],"summary":"Create a new embed token","tags":["Embedded Analytics"],"x-api-key-scopes":["*"]}},"/v1/embedded-analytics/tokens/{id}":{"get":{"operationId":"embeddedAnalytics_getTokenById","parameters":[{"name":"id","required":true,"in":"path","description":"Token ID","schema":{"type":"string"}}],"responses":{"200":{"description":""},"400":{"$ref":"#/components/responses/BadRequest"},"401":{"$ref":"#/components/responses/Unauthorized"},"403":{"$ref":"#/components/responses/Forbidden"},"404":{"$ref":"#/components/responses/NotFound"},"429":{"$ref":"#/components/responses/TooManyRequests"},"500":{"$ref":"#/components/responses/ServerError"}},"security":[{"JWT":[]},{"ApiKey":[]}],"summary":"Get embed token details","tags":["Embedded Analytics"],"x-api-key-scopes":["*"]},"patch":{"operationId":"embeddedAnalytics_updateToken","parameters":[{"name":"id","required":true,"in":"path","description":"Token ID","schema":{"type":"string"}},{"$ref":"#/components/parameters/IdempotencyKey"}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/UpdateTokenBody"}}}},"responses":{"200":{"description":""},"400":{"$ref":"#/components/responses/BadRequest"},"401":{"$ref":"#/components/responses/Unauthorized"},"403":{"$ref":"#/components/responses/Forbidden"},"404":{"$ref":"#/components/responses/NotFound"},"409":{"$ref":"#/components/responses/Conflict"},"429":{"$ref":"#/components/responses/TooManyRequests"},"500":{"$ref":"#/components/responses/ServerError"}},"security":[{"JWT":[]},{"ApiKey":[]}],"summary":"Update embed token settings","tags":["Embedded Analytics"],"x-api-key-scopes":["*"]},"delete":{"operationId":"embeddedAnalytics_deleteToken","parameters":[{"name":"id","required":true,"in":"path","description":"Token ID","schema":{"type":"string"}}],"responses":{"200":{"description":""},"400":{"$ref":"#/components/responses/BadRequest"},"401":{"$ref":"#/components/responses/Unauthorized"},"403":{"$ref":"#/components/responses/Forbidden"},"404":{"$ref":"#/components/responses/NotFound"},"429":{"$ref":"#/components/responses/TooManyRequests"},"500":{"$ref":"#/components/responses/ServerError"}},"security":[{"JWT":[]},{"ApiKey":[]}],"summary":"Delete an embed token","tags":["Embedded Analytics"],"x-api-key-scopes":["*"]}},"/v1/embedded-analytics/tokens/{id}/revoke":{"post":{"operationId":"embeddedAnalytics_revokeToken","parameters":[{"name":"id","required":true,"in":"path","description":"Token ID","schema":{"type":"string"}},{"$ref":"#/components/parameters/IdempotencyKey"}],"responses":{"200":{"description":""},"400":{"$ref":"#/components/responses/BadRequest"},"401":{"$ref":"#/components/responses/Unauthorized"},"403":{"$ref":"#/components/responses/Forbidden"},"404":{"$ref":"#/components/responses/NotFound"},"409":{"$ref":"#/components/responses/Conflict"},"429":{"$ref":"#/components/responses/TooManyRequests"},"500":{"$ref":"#/components/responses/ServerError"}},"security":[{"JWT":[]},{"ApiKey":[]}],"summary":"Revoke an embed token","tags":["Embedded Analytics"],"x-api-key-scopes":["*"]}},"/v1/embedded-analytics/tokens/{id}/preview":{"get":{"operationId":"embeddedAnalytics_getTokenPreview","parameters":[{"name":"id","required":true,"in":"path","description":"Token ID","schema":{"type":"string"}}],"responses":{"200":{"description":""},"400":{"$ref":"#/components/responses/BadRequest"},"401":{"$ref":"#/components/responses/Unauthorized"},"403":{"$ref":"#/components/responses/Forbidden"},"404":{"$ref":"#/components/responses/NotFound"},"429":{"$ref":"#/components/responses/TooManyRequests"},"500":{"$ref":"#/components/responses/ServerError"}},"security":[{"JWT":[]},{"ApiKey":[]}],"summary":"Preview embedded dashboard configuration","tags":["Embedded Analytics"],"x-api-key-scopes":["*"]}},"/v1/embedded-analytics/tokens/{id}/usage":{"get":{"operationId":"embeddedAnalytics_getTokenUsage","parameters":[{"name":"id","required":true,"in":"path","description":"Token ID","schema":{"type":"string"}}],"responses":{"200":{"description":""},"400":{"$ref":"#/components/responses/BadRequest"},"401":{"$ref":"#/components/responses/Unauthorized"},"403":{"$ref":"#/components/responses/Forbidden"},"404":{"$ref":"#/components/responses/NotFound"},"429":{"$ref":"#/components/responses/TooManyRequests"},"500":{"$ref":"#/components/responses/ServerError"}},"security":[{"JWT":[]},{"ApiKey":[]}],"summary":"Get token usage analytics","tags":["Embedded Analytics"],"x-api-key-scopes":["*"]}},"/v1/embedded-analytics/stats":{"get":{"operationId":"embeddedAnalytics_getStats","parameters":[],"responses":{"200":{"description":""},"401":{"$ref":"#/components/responses/Unauthorized"},"403":{"$ref":"#/components/responses/Forbidden"},"429":{"$ref":"#/components/responses/TooManyRequests"},"500":{"$ref":"#/components/responses/ServerError"}},"security":[{"JWT":[]},{"ApiKey":[]}],"summary":"Get overall embedded analytics statistics","tags":["Embedded Analytics"],"x-api-key-scopes":["*"]}},"/v1/embedded-analytics/tokens/{id}/regenerate":{"post":{"operationId":"embeddedAnalytics_regenerateToken","parameters":[{"name":"id","required":true,"in":"path","description":"Token ID","schema":{"type":"string"}},{"$ref":"#/components/parameters/IdempotencyKey"}],"responses":{"200":{"description":""},"400":{"$ref":"#/components/responses/BadRequest"},"401":{"$ref":"#/components/responses/Unauthorized"},"403":{"$ref":"#/components/responses/Forbidden"},"404":{"$ref":"#/components/responses/NotFound"},"409":{"$ref":"#/components/responses/Conflict"},"429":{"$ref":"#/components/responses/TooManyRequests"},"500":{"$ref":"#/components/responses/ServerError"}},"security":[{"JWT":[]},{"ApiKey":[]}],"summary":"Regenerate embed token value","tags":["Embedded Analytics"],"x-api-key-scopes":["*"]}},"/v1/webhook-ai-workflows":{"get":{"operationId":"webhookAiWorkflows_getTriggersRoot","parameters":[{"name":"status","required":false,"in":"query","schema":{"type":"string"}},{"name":"eventType","required":false,"in":"query","schema":{"type":"string"}},{"name":"page","required":false,"in":"query","schema":{"type":"string"}},{"name":"limit","required":false,"in":"query","schema":{"type":"string"}}],"responses":{"200":{"description":""},"400":{"$ref":"#/components/responses/BadRequest"},"401":{"$ref":"#/components/responses/Unauthorized"},"403":{"$ref":"#/components/responses/Forbidden"},"429":{"$ref":"#/components/responses/TooManyRequests"},"500":{"$ref":"#/components/responses/ServerError"}},"security":[{"JWT":[]},{"ApiKey":[]}],"summary":"List all webhook AI triggers (root)","tags":["Webhook AI Workflows"],"x-api-key-scopes":["*"]},"post":{"operationId":"webhookAiWorkflows_createTriggerRoot","parameters":[{"$ref":"#/components/parameters/IdempotencyKey"}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/CreateTriggerBody"}}}},"responses":{"201":{"description":"","content":{"application/json":{"schema":{"type":"object"}}}},"400":{"$ref":"#/components/responses/BadRequest"},"401":{"$ref":"#/components/responses/Unauthorized"},"403":{"$ref":"#/components/responses/Forbidden"},"409":{"$ref":"#/components/responses/Conflict"},"429":{"$ref":"#/components/responses/TooManyRequests"},"500":{"$ref":"#/components/responses/ServerError"}},"security":[{"JWT":[]},{"ApiKey":[]}],"summary":"Create a webhook trigger (root)","tags":["Webhook AI Workflows"],"x-api-key-scopes":["*"]}},"/v1/webhook-ai-workflows/executions":{"get":{"operationId":"webhookAiWorkflows_getAllExecutions","parameters":[],"responses":{"200":{"description":"","content":{"application/json":{"schema":{"type":"array","items":{"type":"object"}}}}},"401":{"$ref":"#/components/responses/Unauthorized"},"403":{"$ref":"#/components/responses/Forbidden"},"429":{"$ref":"#/components/responses/TooManyRequests"},"500":{"$ref":"#/components/responses/ServerError"}},"security":[{"JWT":[]},{"ApiKey":[]}],"summary":"List all executions across triggers","tags":["Webhook AI Workflows"],"x-api-key-scopes":["*"]}},"/v1/webhook-ai-workflows/triggers":{"get":{"operationId":"webhookAiWorkflows_getTriggers","parameters":[{"name":"status","required":false,"in":"query","schema":{"enum":["ACTIVE","PAUSED"],"type":"string"}},{"name":"eventType","required":false,"in":"query","schema":{"type":"string"}},{"name":"page","required":false,"in":"query","schema":{"type":"string"}},{"name":"limit","required":false,"in":"query","schema":{"type":"string"}}],"responses":{"200":{"description":""},"400":{"$ref":"#/components/responses/BadRequest"},"401":{"$ref":"#/components/responses/Unauthorized"},"403":{"$ref":"#/components/responses/Forbidden"},"429":{"$ref":"#/components/responses/TooManyRequests"},"500":{"$ref":"#/components/responses/ServerError"}},"security":[{"JWT":[]},{"ApiKey":[]}],"summary":"List all webhook AI triggers","tags":["Webhook AI Workflows"],"x-api-key-scopes":["*"]},"post":{"operationId":"webhookAiWorkflows_createTrigger","parameters":[{"$ref":"#/components/parameters/IdempotencyKey"}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/CreateTriggerBody"}}}},"responses":{"201":{"description":"","content":{"application/json":{"schema":{"type":"object"}}}},"400":{"$ref":"#/components/responses/BadRequest"},"401":{"$ref":"#/components/responses/Unauthorized"},"403":{"$ref":"#/components/responses/Forbidden"},"409":{"$ref":"#/components/responses/Conflict"},"429":{"$ref":"#/components/responses/TooManyRequests"},"500":{"$ref":"#/components/responses/ServerError"}},"security":[{"JWT":[]},{"ApiKey":[]}],"summary":"Create a new webhook AI trigger","tags":["Webhook AI Workflows"],"x-api-key-scopes":["*"]}},"/v1/webhook-ai-workflows/triggers/{id}":{"get":{"operationId":"webhookAiWorkflows_getTriggerById","parameters":[{"name":"id","required":true,"in":"path","description":"Trigger ID","schema":{"type":"string"}}],"responses":{"200":{"description":"","content":{"application/json":{"schema":{"type":"object"}}}},"400":{"$ref":"#/components/responses/BadRequest"},"401":{"$ref":"#/components/responses/Unauthorized"},"403":{"$ref":"#/components/responses/Forbidden"},"404":{"$ref":"#/components/responses/NotFound"},"429":{"$ref":"#/components/responses/TooManyRequests"},"500":{"$ref":"#/components/responses/ServerError"}},"security":[{"JWT":[]},{"ApiKey":[]}],"summary":"Get webhook trigger details","tags":["Webhook AI Workflows"],"x-api-key-scopes":["*"]},"patch":{"operationId":"webhookAiWorkflows_updateTrigger","parameters":[{"name":"id","required":true,"in":"path","description":"Trigger ID","schema":{"type":"string"}},{"$ref":"#/components/parameters/IdempotencyKey"}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/UpdateTriggerBody"}}}},"responses":{"200":{"description":"","content":{"application/json":{"schema":{"type":"object"}}}},"400":{"$ref":"#/components/responses/BadRequest"},"401":{"$ref":"#/components/responses/Unauthorized"},"403":{"$ref":"#/components/responses/Forbidden"},"404":{"$ref":"#/components/responses/NotFound"},"409":{"$ref":"#/components/responses/Conflict"},"429":{"$ref":"#/components/responses/TooManyRequests"},"500":{"$ref":"#/components/responses/ServerError"}},"security":[{"JWT":[]},{"ApiKey":[]}],"summary":"Update a webhook trigger","tags":["Webhook AI Workflows"],"x-api-key-scopes":["*"]},"delete":{"operationId":"webhookAiWorkflows_deleteTrigger","parameters":[{"name":"id","required":true,"in":"path","description":"Trigger ID","schema":{"type":"string"}}],"responses":{"200":{"description":""},"400":{"$ref":"#/components/responses/BadRequest"},"401":{"$ref":"#/components/responses/Unauthorized"},"403":{"$ref":"#/components/responses/Forbidden"},"404":{"$ref":"#/components/responses/NotFound"},"429":{"$ref":"#/components/responses/TooManyRequests"},"500":{"$ref":"#/components/responses/ServerError"}},"security":[{"JWT":[]},{"ApiKey":[]}],"summary":"Delete a webhook trigger","tags":["Webhook AI Workflows"],"x-api-key-scopes":["*"]}},"/v1/webhook-ai-workflows/triggers/{id}/toggle":{"post":{"operationId":"webhookAiWorkflows_toggleTrigger","parameters":[{"name":"id","required":true,"in":"path","description":"Trigger ID","schema":{"type":"string"}},{"$ref":"#/components/parameters/IdempotencyKey"}],"responses":{"200":{"description":"","content":{"application/json":{"schema":{"type":"object"}}}},"400":{"$ref":"#/components/responses/BadRequest"},"401":{"$ref":"#/components/responses/Unauthorized"},"403":{"$ref":"#/components/responses/Forbidden"},"404":{"$ref":"#/components/responses/NotFound"},"409":{"$ref":"#/components/responses/Conflict"},"429":{"$ref":"#/components/responses/TooManyRequests"},"500":{"$ref":"#/components/responses/ServerError"}},"security":[{"JWT":[]},{"ApiKey":[]}],"summary":"Toggle trigger between active and paused","tags":["Webhook AI Workflows"],"x-api-key-scopes":["*"]}},"/v1/webhook-ai-workflows/triggers/{id}/executions":{"get":{"operationId":"webhookAiWorkflows_getTriggerExecutions","parameters":[{"name":"id","required":true,"in":"path","description":"Trigger ID","schema":{"type":"string"}},{"name":"page","required":false,"in":"query","schema":{"type":"string"}},{"name":"limit","required":false,"in":"query","schema":{"type":"string"}}],"responses":{"200":{"description":""},"400":{"$ref":"#/components/responses/BadRequest"},"401":{"$ref":"#/components/responses/Unauthorized"},"403":{"$ref":"#/components/responses/Forbidden"},"404":{"$ref":"#/components/responses/NotFound"},"429":{"$ref":"#/components/responses/TooManyRequests"},"500":{"$ref":"#/components/responses/ServerError"}},"security":[{"JWT":[]},{"ApiKey":[]}],"summary":"Get trigger execution history","tags":["Webhook AI Workflows"],"x-api-key-scopes":["*"]}},"/v1/webhook-ai-workflows/triggers/{id}/test":{"post":{"operationId":"webhookAiWorkflows_testTrigger","parameters":[{"name":"id","required":true,"in":"path","description":"Trigger ID","schema":{"type":"string"}},{"$ref":"#/components/parameters/IdempotencyKey"}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/TestTriggerBody"}}}},"responses":{"200":{"description":""},"400":{"$ref":"#/components/responses/BadRequest"},"401":{"$ref":"#/components/responses/Unauthorized"},"403":{"$ref":"#/components/responses/Forbidden"},"404":{"$ref":"#/components/responses/NotFound"},"409":{"$ref":"#/components/responses/Conflict"},"429":{"$ref":"#/components/responses/TooManyRequests"},"500":{"$ref":"#/components/responses/ServerError"}},"security":[{"JWT":[]},{"ApiKey":[]}],"summary":"Test a webhook trigger with sample payload","tags":["Webhook AI Workflows"],"x-api-key-scopes":["*"]}},"/v1/webhook-ai-workflows/triggers/{id}/regenerate-secret":{"post":{"operationId":"webhookAiWorkflows_regenerateSecret","parameters":[{"name":"id","required":true,"in":"path","description":"Trigger ID","schema":{"type":"string"}},{"$ref":"#/components/parameters/IdempotencyKey"}],"responses":{"200":{"description":""},"400":{"$ref":"#/components/responses/BadRequest"},"401":{"$ref":"#/components/responses/Unauthorized"},"403":{"$ref":"#/components/responses/Forbidden"},"404":{"$ref":"#/components/responses/NotFound"},"409":{"$ref":"#/components/responses/Conflict"},"429":{"$ref":"#/components/responses/TooManyRequests"},"500":{"$ref":"#/components/responses/ServerError"}},"security":[{"JWT":[]},{"ApiKey":[]}],"summary":"Regenerate webhook secret for a trigger","tags":["Webhook AI Workflows"],"x-api-key-scopes":["*"]}},"/v1/webhook-ai-workflows/stats":{"get":{"operationId":"webhookAiWorkflows_getStats","parameters":[],"responses":{"200":{"description":""},"401":{"$ref":"#/components/responses/Unauthorized"},"403":{"$ref":"#/components/responses/Forbidden"},"429":{"$ref":"#/components/responses/TooManyRequests"},"500":{"$ref":"#/components/responses/ServerError"}},"security":[{"JWT":[]},{"ApiKey":[]}],"summary":"Get webhook AI workflow statistics","tags":["Webhook AI Workflows"],"x-api-key-scopes":["*"]}},"/v1/webhook-ai-workflows/{id}":{"get":{"operationId":"webhookAiWorkflows_getTriggerByIdRoot","parameters":[{"name":"id","required":true,"in":"path","schema":{"type":"string"}}],"responses":{"200":{"description":"","content":{"application/json":{"schema":{"type":"object"}}}},"400":{"$ref":"#/components/responses/BadRequest"},"401":{"$ref":"#/components/responses/Unauthorized"},"403":{"$ref":"#/components/responses/Forbidden"},"404":{"$ref":"#/components/responses/NotFound"},"429":{"$ref":"#/components/responses/TooManyRequests"},"500":{"$ref":"#/components/responses/ServerError"}},"security":[{"JWT":[]},{"ApiKey":[]}],"summary":"Get trigger by ID (root)","tags":["Webhook AI Workflows"],"x-api-key-scopes":["*"]},"patch":{"operationId":"webhookAiWorkflows_updateTriggerRoot","parameters":[{"name":"id","required":true,"in":"path","schema":{"type":"string"}},{"$ref":"#/components/parameters/IdempotencyKey"}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/UpdateTriggerBody"}}}},"responses":{"200":{"description":"","content":{"application/json":{"schema":{"type":"object"}}}},"400":{"$ref":"#/components/responses/BadRequest"},"401":{"$ref":"#/components/responses/Unauthorized"},"403":{"$ref":"#/components/responses/Forbidden"},"404":{"$ref":"#/components/responses/NotFound"},"409":{"$ref":"#/components/responses/Conflict"},"429":{"$ref":"#/components/responses/TooManyRequests"},"500":{"$ref":"#/components/responses/ServerError"}},"security":[{"JWT":[]},{"ApiKey":[]}],"summary":"Update trigger (root)","tags":["Webhook AI Workflows"],"x-api-key-scopes":["*"]},"delete":{"operationId":"webhookAiWorkflows_deleteTriggerRoot","parameters":[{"name":"id","required":true,"in":"path","schema":{"type":"string"}}],"responses":{"200":{"description":""},"400":{"$ref":"#/components/responses/BadRequest"},"401":{"$ref":"#/components/responses/Unauthorized"},"403":{"$ref":"#/components/responses/Forbidden"},"404":{"$ref":"#/components/responses/NotFound"},"429":{"$ref":"#/components/responses/TooManyRequests"},"500":{"$ref":"#/components/responses/ServerError"}},"security":[{"JWT":[]},{"ApiKey":[]}],"summary":"Delete trigger (root)","tags":["Webhook AI Workflows"],"x-api-key-scopes":["*"]}},"/v1/webhook-ai-workflows/{id}/toggle":{"post":{"operationId":"webhookAiWorkflows_toggleTriggerRoot","parameters":[{"name":"id","required":true,"in":"path","schema":{"type":"string"}},{"$ref":"#/components/parameters/IdempotencyKey"}],"responses":{"200":{"description":"","content":{"application/json":{"schema":{"type":"object"}}}},"400":{"$ref":"#/components/responses/BadRequest"},"401":{"$ref":"#/components/responses/Unauthorized"},"403":{"$ref":"#/components/responses/Forbidden"},"404":{"$ref":"#/components/responses/NotFound"},"409":{"$ref":"#/components/responses/Conflict"},"429":{"$ref":"#/components/responses/TooManyRequests"},"500":{"$ref":"#/components/responses/ServerError"}},"security":[{"JWT":[]},{"ApiKey":[]}],"summary":"Toggle trigger (root)","tags":["Webhook AI Workflows"],"x-api-key-scopes":["*"]}},"/v1/webhook-ai-workflows/{id}/executions":{"get":{"operationId":"webhookAiWorkflows_getTriggerExecutionsRoot","parameters":[{"name":"id","required":true,"in":"path","schema":{"type":"string"}},{"name":"page","required":false,"in":"query","schema":{"type":"string"}},{"name":"limit","required":false,"in":"query","schema":{"type":"string"}}],"responses":{"200":{"description":""},"400":{"$ref":"#/components/responses/BadRequest"},"401":{"$ref":"#/components/responses/Unauthorized"},"403":{"$ref":"#/components/responses/Forbidden"},"404":{"$ref":"#/components/responses/NotFound"},"429":{"$ref":"#/components/responses/TooManyRequests"},"500":{"$ref":"#/components/responses/ServerError"}},"security":[{"JWT":[]},{"ApiKey":[]}],"summary":"Get trigger executions (root)","tags":["Webhook AI Workflows"],"x-api-key-scopes":["*"]}},"/v1/webhook-ai-workflows/{id}/test":{"post":{"operationId":"webhookAiWorkflows_testTriggerRoot","parameters":[{"name":"id","required":true,"in":"path","schema":{"type":"string"}},{"$ref":"#/components/parameters/IdempotencyKey"}],"responses":{"200":{"description":""},"400":{"$ref":"#/components/responses/BadRequest"},"401":{"$ref":"#/components/responses/Unauthorized"},"403":{"$ref":"#/components/responses/Forbidden"},"404":{"$ref":"#/components/responses/NotFound"},"409":{"$ref":"#/components/responses/Conflict"},"429":{"$ref":"#/components/responses/TooManyRequests"},"500":{"$ref":"#/components/responses/ServerError"}},"security":[{"JWT":[]},{"ApiKey":[]}],"summary":"Test trigger (root)","tags":["Webhook AI Workflows"],"x-api-key-scopes":["*"]}},"/v1/webhook-ai-workflows/{id}/regenerate-secret":{"post":{"operationId":"webhookAiWorkflows_regenerateSecretRoot","parameters":[{"name":"id","required":true,"in":"path","schema":{"type":"string"}},{"$ref":"#/components/parameters/IdempotencyKey"}],"responses":{"200":{"description":""},"400":{"$ref":"#/components/responses/BadRequest"},"401":{"$ref":"#/components/responses/Unauthorized"},"403":{"$ref":"#/components/responses/Forbidden"},"404":{"$ref":"#/components/responses/NotFound"},"409":{"$ref":"#/components/responses/Conflict"},"429":{"$ref":"#/components/responses/TooManyRequests"},"500":{"$ref":"#/components/responses/ServerError"}},"security":[{"JWT":[]},{"ApiKey":[]}],"summary":"Regenerate secret (root)","tags":["Webhook AI Workflows"],"x-api-key-scopes":["*"]}},"/v1/graphql":{"post":{"operationId":"graphql_run","parameters":[{"$ref":"#/components/parameters/IdempotencyKey"}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/GraphqlRequestDto"}}}},"responses":{"200":{"description":"GraphqlResponse","content":{"application/json":{"schema":{"$ref":"#/components/schemas/GraphqlResponse"}}}},"400":{"$ref":"#/components/responses/BadRequest"},"401":{"$ref":"#/components/responses/Unauthorized"},"403":{"$ref":"#/components/responses/Forbidden"},"409":{"$ref":"#/components/responses/Conflict"},"429":{"$ref":"#/components/responses/TooManyRequests"},"500":{"$ref":"#/components/responses/ServerError"}},"security":[{"JWT":[]},{"ApiKey":[]}],"summary":"Run a GraphQL query or mutation (subscriptions: graphql-ws on the same path)","tags":["GraphQL"]}},"/v1/predictive-routing/predictions":{"get":{"operationId":"predictiveRouting_getPredictions","parameters":[{"name":"status","required":false,"in":"query","schema":{"enum":["PENDING","ACCEPTED","OVERRIDDEN"],"type":"string"}},{"name":"entityType","required":false,"in":"query","schema":{"enum":["LEAD","OPPORTUNITY"],"type":"string"}},{"name":"assignedTo","required":false,"in":"query","schema":{"type":"string"}},{"name":"page","required":false,"in":"query","schema":{"type":"string"}},{"name":"limit","required":false,"in":"query","schema":{"type":"string"}}],"responses":{"200":{"description":""},"400":{"$ref":"#/components/responses/BadRequest"},"401":{"$ref":"#/components/responses/Unauthorized"},"403":{"$ref":"#/components/responses/Forbidden"},"429":{"$ref":"#/components/responses/TooManyRequests"},"500":{"$ref":"#/components/responses/ServerError"}},"security":[{"JWT":[]},{"ApiKey":[]}],"summary":"List routing predictions","tags":["Predictive Routing"],"x-api-key-scopes":["*"]}},"/v1/predictive-routing/predictions/{id}":{"get":{"operationId":"predictiveRouting_getPredictionById","parameters":[{"name":"id","required":true,"in":"path","description":"Prediction ID","schema":{"type":"string"}}],"responses":{"200":{"description":"","content":{"application/json":{"schema":{"type":"object"}}}},"400":{"$ref":"#/components/responses/BadRequest"},"401":{"$ref":"#/components/responses/Unauthorized"},"403":{"$ref":"#/components/responses/Forbidden"},"404":{"$ref":"#/components/responses/NotFound"},"429":{"$ref":"#/components/responses/TooManyRequests"},"500":{"$ref":"#/components/responses/ServerError"}},"security":[{"JWT":[]},{"ApiKey":[]}],"summary":"Get routing prediction details","tags":["Predictive Routing"],"x-api-key-scopes":["*"]}},"/v1/predictive-routing/predictions/{id}/route":{"post":{"operationId":"predictiveRouting_routePrediction","parameters":[{"name":"id","required":true,"in":"path","description":"Prediction ID","schema":{"type":"string"}},{"$ref":"#/components/parameters/IdempotencyKey"}],"responses":{"200":{"description":"","content":{"application/json":{"schema":{"type":"object"}}}},"400":{"$ref":"#/components/responses/BadRequest"},"401":{"$ref":"#/components/responses/Unauthorized"},"403":{"$ref":"#/components/responses/Forbidden"},"404":{"$ref":"#/components/responses/NotFound"},"409":{"$ref":"#/components/responses/Conflict"},"429":{"$ref":"#/components/responses/TooManyRequests"},"500":{"$ref":"#/components/responses/ServerError"}},"security":[{"JWT":[]},{"ApiKey":[]}],"summary":"Accept and execute a routing prediction","tags":["Predictive Routing"],"x-api-key-scopes":["*"]}},"/v1/predictive-routing/predictions/{id}/override":{"post":{"operationId":"predictiveRouting_overridePrediction","parameters":[{"name":"id","required":true,"in":"path","description":"Prediction ID","schema":{"type":"string"}},{"$ref":"#/components/parameters/IdempotencyKey"}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/OverridePredictionBody"}}}},"responses":{"200":{"description":"","content":{"application/json":{"schema":{"type":"object"}}}},"400":{"$ref":"#/components/responses/BadRequest"},"401":{"$ref":"#/components/responses/Unauthorized"},"403":{"$ref":"#/components/responses/Forbidden"},"404":{"$ref":"#/components/responses/NotFound"},"409":{"$ref":"#/components/responses/Conflict"},"429":{"$ref":"#/components/responses/TooManyRequests"},"500":{"$ref":"#/components/responses/ServerError"}},"security":[{"JWT":[]},{"ApiKey":[]}],"summary":"Override a prediction with manual assignment","tags":["Predictive Routing"],"x-api-key-scopes":["*"]}},"/v1/predictive-routing/model":{"get":{"operationId":"predictiveRouting_getModel","parameters":[],"responses":{"200":{"description":"","content":{"application/json":{"schema":{"type":"object"}}}},"401":{"$ref":"#/components/responses/Unauthorized"},"403":{"$ref":"#/components/responses/Forbidden"},"429":{"$ref":"#/components/responses/TooManyRequests"},"500":{"$ref":"#/components/responses/ServerError"}},"security":[{"JWT":[]},{"ApiKey":[]}],"summary":"Get routing model information","tags":["Predictive Routing"],"x-api-key-scopes":["*"]}},"/v1/predictive-routing/stats":{"get":{"operationId":"predictiveRouting_getStats","parameters":[],"responses":{"200":{"description":""},"401":{"$ref":"#/components/responses/Unauthorized"},"403":{"$ref":"#/components/responses/Forbidden"},"429":{"$ref":"#/components/responses/TooManyRequests"},"500":{"$ref":"#/components/responses/ServerError"}},"security":[{"JWT":[]},{"ApiKey":[]}],"summary":"Get predictive routing statistics","tags":["Predictive Routing"],"x-api-key-scopes":["*"]}},"/v1/predictive-routing/config":{"get":{"operationId":"predictiveRouting_getConfig","parameters":[],"responses":{"200":{"description":""},"401":{"$ref":"#/components/responses/Unauthorized"},"403":{"$ref":"#/components/responses/Forbidden"},"429":{"$ref":"#/components/responses/TooManyRequests"},"500":{"$ref":"#/components/responses/ServerError"}},"security":[{"JWT":[]},{"ApiKey":[]}],"summary":"Get predictive routing configuration","tags":["Predictive Routing"],"x-api-key-scopes":["*"]},"put":{"operationId":"predictiveRouting_updateConfig","parameters":[],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/UpdateConfigBody"}}}},"responses":{"200":{"description":"","content":{"application/json":{"schema":{"type":"object"}}}},"400":{"$ref":"#/components/responses/BadRequest"},"401":{"$ref":"#/components/responses/Unauthorized"},"403":{"$ref":"#/components/responses/Forbidden"},"429":{"$ref":"#/components/responses/TooManyRequests"},"500":{"$ref":"#/components/responses/ServerError"}},"security":[{"JWT":[]},{"ApiKey":[]}],"summary":"Update predictive routing configuration","tags":["Predictive Routing"],"x-api-key-scopes":["*"]}},"/v1/predictive-routing/model/retrain":{"post":{"operationId":"predictiveRouting_retrainModel","parameters":[{"$ref":"#/components/parameters/IdempotencyKey"}],"responses":{"200":{"description":"","content":{"application/json":{"schema":{"type":"object"}}}},"400":{"$ref":"#/components/responses/BadRequest"},"401":{"$ref":"#/components/responses/Unauthorized"},"403":{"$ref":"#/components/responses/Forbidden"},"409":{"$ref":"#/components/responses/Conflict"},"429":{"$ref":"#/components/responses/TooManyRequests"},"500":{"$ref":"#/components/responses/ServerError"}},"security":[{"JWT":[]},{"ApiKey":[]}],"summary":"Trigger routing model retraining","tags":["Predictive Routing"],"x-api-key-scopes":["*"]}},"/v1/predictive-routing/history":{"get":{"operationId":"predictiveRouting_getHistory","parameters":[{"name":"page","required":false,"in":"query","schema":{"type":"string"}},{"name":"limit","required":false,"in":"query","schema":{"type":"string"}},{"name":"startDate","required":false,"in":"query","schema":{"type":"string"}},{"name":"endDate","required":false,"in":"query","schema":{"type":"string"}}],"responses":{"200":{"description":""},"400":{"$ref":"#/components/responses/BadRequest"},"401":{"$ref":"#/components/responses/Unauthorized"},"403":{"$ref":"#/components/responses/Forbidden"},"429":{"$ref":"#/components/responses/TooManyRequests"},"500":{"$ref":"#/components/responses/ServerError"}},"security":[{"JWT":[]},{"ApiKey":[]}],"summary":"Get routing history","tags":["Predictive Routing"],"x-api-key-scopes":["*"]}},"/v1/localization/config":{"get":{"operationId":"localization_getConfig","parameters":[],"responses":{"200":{"description":"","content":{"application/json":{"schema":{"type":"object"}}}},"401":{"$ref":"#/components/responses/Unauthorized"},"403":{"$ref":"#/components/responses/Forbidden"},"429":{"$ref":"#/components/responses/TooManyRequests"},"500":{"$ref":"#/components/responses/ServerError"}},"security":[{"JWT":[]},{"ApiKey":[]}],"summary":"Get localization configuration","tags":["Localization"],"x-api-key-scopes":["*"]},"put":{"operationId":"localization_updateConfig","parameters":[],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/UpdateConfigBody"}}}},"responses":{"200":{"description":"","content":{"application/json":{"schema":{"type":"object"}}}},"400":{"$ref":"#/components/responses/BadRequest"},"401":{"$ref":"#/components/responses/Unauthorized"},"403":{"$ref":"#/components/responses/Forbidden"},"429":{"$ref":"#/components/responses/TooManyRequests"},"500":{"$ref":"#/components/responses/ServerError"}},"security":[{"JWT":[]},{"ApiKey":[]}],"summary":"Update localization configuration","tags":["Localization"],"x-api-key-scopes":["*"]}},"/v1/localization/languages":{"get":{"operationId":"localization_getLanguages","parameters":[],"responses":{"200":{"description":""},"401":{"$ref":"#/components/responses/Unauthorized"},"403":{"$ref":"#/components/responses/Forbidden"},"429":{"$ref":"#/components/responses/TooManyRequests"},"500":{"$ref":"#/components/responses/ServerError"}},"security":[{"JWT":[]},{"ApiKey":[]}],"summary":"List enabled languages","tags":["Localization"],"x-api-key-scopes":["*"]},"post":{"operationId":"localization_addLanguage","parameters":[{"$ref":"#/components/parameters/IdempotencyKey"}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/AddLanguageBody"}}}},"responses":{"201":{"description":""},"400":{"$ref":"#/components/responses/BadRequest"},"401":{"$ref":"#/components/responses/Unauthorized"},"403":{"$ref":"#/components/responses/Forbidden"},"409":{"$ref":"#/components/responses/Conflict"},"429":{"$ref":"#/components/responses/TooManyRequests"},"500":{"$ref":"#/components/responses/ServerError"}},"security":[{"JWT":[]},{"ApiKey":[]}],"summary":"Add a new language","tags":["Localization"],"x-api-key-scopes":["*"]}},"/v1/localization/languages/{code}":{"delete":{"operationId":"localization_removeLanguage","parameters":[{"name":"code","required":true,"in":"path","description":"Language code (e.g. en, es, fr)","schema":{"type":"string"}}],"responses":{"200":{"description":""},"400":{"$ref":"#/components/responses/BadRequest"},"401":{"$ref":"#/components/responses/Unauthorized"},"403":{"$ref":"#/components/responses/Forbidden"},"404":{"$ref":"#/components/responses/NotFound"},"429":{"$ref":"#/components/responses/TooManyRequests"},"500":{"$ref":"#/components/responses/ServerError"}},"security":[{"JWT":[]},{"ApiKey":[]}],"summary":"Remove a language","tags":["Localization"],"x-api-key-scopes":["*"]}},"/v1/localization/currencies":{"get":{"operationId":"localization_getCurrencies","parameters":[],"responses":{"200":{"description":""},"401":{"$ref":"#/components/responses/Unauthorized"},"403":{"$ref":"#/components/responses/Forbidden"},"429":{"$ref":"#/components/responses/TooManyRequests"},"500":{"$ref":"#/components/responses/ServerError"}},"security":[{"JWT":[]},{"ApiKey":[]}],"summary":"List configured currencies","tags":["Localization"],"x-api-key-scopes":["*"]},"post":{"operationId":"localization_addCurrency","parameters":[{"$ref":"#/components/parameters/IdempotencyKey"}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/AddCurrencyBody"}}}},"responses":{"201":{"description":""},"400":{"$ref":"#/components/responses/BadRequest"},"401":{"$ref":"#/components/responses/Unauthorized"},"403":{"$ref":"#/components/responses/Forbidden"},"409":{"$ref":"#/components/responses/Conflict"},"429":{"$ref":"#/components/responses/TooManyRequests"},"500":{"$ref":"#/components/responses/ServerError"}},"security":[{"JWT":[]},{"ApiKey":[]}],"summary":"Add a new currency","tags":["Localization"],"x-api-key-scopes":["*"]}},"/v1/localization/currencies/{code}":{"delete":{"operationId":"localization_removeCurrency","parameters":[{"name":"code","required":true,"in":"path","description":"Currency code (e.g. USD, EUR, GBP)","schema":{"type":"string"}}],"responses":{"200":{"description":""},"400":{"$ref":"#/components/responses/BadRequest"},"401":{"$ref":"#/components/responses/Unauthorized"},"403":{"$ref":"#/components/responses/Forbidden"},"404":{"$ref":"#/components/responses/NotFound"},"429":{"$ref":"#/components/responses/TooManyRequests"},"500":{"$ref":"#/components/responses/ServerError"}},"security":[{"JWT":[]},{"ApiKey":[]}],"summary":"Remove a currency","tags":["Localization"],"x-api-key-scopes":["*"]}},"/v1/localization/currencies/refresh-rates":{"post":{"operationId":"localization_refreshRates","parameters":[{"$ref":"#/components/parameters/IdempotencyKey"}],"responses":{"200":{"description":"","content":{"application/json":{"schema":{"type":"object"}}}},"400":{"$ref":"#/components/responses/BadRequest"},"401":{"$ref":"#/components/responses/Unauthorized"},"403":{"$ref":"#/components/responses/Forbidden"},"409":{"$ref":"#/components/responses/Conflict"},"429":{"$ref":"#/components/responses/TooManyRequests"},"500":{"$ref":"#/components/responses/ServerError"}},"security":[{"JWT":[]},{"ApiKey":[]}],"summary":"Refresh exchange rates for all configured currencies","tags":["Localization"],"x-api-key-scopes":["*"]}},"/v1/localization/translations":{"get":{"operationId":"localization_getTranslations","parameters":[{"name":"language","required":false,"in":"query","schema":{"type":"string"}},{"name":"namespace","required":false,"in":"query","schema":{"type":"string"}},{"name":"search","required":false,"in":"query","schema":{"type":"string"}},{"name":"page","required":false,"in":"query","schema":{"type":"string"}},{"name":"limit","required":false,"in":"query","schema":{"type":"string"}}],"responses":{"200":{"description":""},"400":{"$ref":"#/components/responses/BadRequest"},"401":{"$ref":"#/components/responses/Unauthorized"},"403":{"$ref":"#/components/responses/Forbidden"},"429":{"$ref":"#/components/responses/TooManyRequests"},"500":{"$ref":"#/components/responses/ServerError"}},"security":[{"JWT":[]},{"ApiKey":[]}],"summary":"Get translations","tags":["Localization"],"x-api-key-scopes":["*"]}},"/v1/localization/translations/{key}":{"put":{"operationId":"localization_upsertTranslation","parameters":[{"name":"key","required":true,"in":"path","description":"Translation key","schema":{"type":"string"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/UpsertTranslationBody"}}}},"responses":{"200":{"description":"","content":{"application/json":{"schema":{"type":"object"}}}},"400":{"$ref":"#/components/responses/BadRequest"},"401":{"$ref":"#/components/responses/Unauthorized"},"403":{"$ref":"#/components/responses/Forbidden"},"404":{"$ref":"#/components/responses/NotFound"},"429":{"$ref":"#/components/responses/TooManyRequests"},"500":{"$ref":"#/components/responses/ServerError"}},"security":[{"JWT":[]},{"ApiKey":[]}],"summary":"Create or update a translation","tags":["Localization"],"x-api-key-scopes":["*"]}},"/v1/localization/stats":{"get":{"operationId":"localization_getStats","parameters":[],"responses":{"200":{"description":""},"401":{"$ref":"#/components/responses/Unauthorized"},"403":{"$ref":"#/components/responses/Forbidden"},"429":{"$ref":"#/components/responses/TooManyRequests"},"500":{"$ref":"#/components/responses/ServerError"}},"security":[{"JWT":[]},{"ApiKey":[]}],"summary":"Get localization statistics","tags":["Localization"],"x-api-key-scopes":["*"]}},"/v1/localization/convert":{"post":{"operationId":"localization_convertCurrency","parameters":[{"$ref":"#/components/parameters/IdempotencyKey"}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ConvertCurrencyBody"}}}},"responses":{"200":{"description":""},"400":{"$ref":"#/components/responses/BadRequest"},"401":{"$ref":"#/components/responses/Unauthorized"},"403":{"$ref":"#/components/responses/Forbidden"},"409":{"$ref":"#/components/responses/Conflict"},"429":{"$ref":"#/components/responses/TooManyRequests"},"500":{"$ref":"#/components/responses/ServerError"}},"security":[{"JWT":[]},{"ApiKey":[]}],"summary":"Convert amount between currencies","tags":["Localization"],"x-api-key-scopes":["*"]}},"/v1/coaching-roleplay/sessions":{"get":{"operationId":"coachingRolePlay_getSessions","parameters":[{"name":"status","required":false,"in":"query","schema":{"type":"string"}}],"responses":{"200":{"description":""},"400":{"$ref":"#/components/responses/BadRequest"},"401":{"$ref":"#/components/responses/Unauthorized"},"403":{"$ref":"#/components/responses/Forbidden"},"429":{"$ref":"#/components/responses/TooManyRequests"},"500":{"$ref":"#/components/responses/ServerError"}},"security":[{"JWT":[]},{"ApiKey":[]}],"tags":["Coaching Role-Play"],"summary":"Get sessions","x-api-key-scopes":["*"]},"post":{"operationId":"coachingRolePlay_startSession","parameters":[{"$ref":"#/components/parameters/IdempotencyKey"}],"responses":{"201":{"description":""},"400":{"$ref":"#/components/responses/BadRequest"},"401":{"$ref":"#/components/responses/Unauthorized"},"403":{"$ref":"#/components/responses/Forbidden"},"409":{"$ref":"#/components/responses/Conflict"},"429":{"$ref":"#/components/responses/TooManyRequests"},"500":{"$ref":"#/components/responses/ServerError"}},"security":[{"JWT":[]},{"ApiKey":[]}],"tags":["Coaching Role-Play"],"summary":"Start session","x-api-key-scopes":["*"]}},"/v1/coaching-roleplay/sessions/{id}":{"get":{"operationId":"coachingRolePlay_getSession","parameters":[{"name":"id","required":true,"in":"path","schema":{"type":"string"}}],"responses":{"200":{"description":"","content":{"application/json":{"schema":{"type":"object"}}}},"400":{"$ref":"#/components/responses/BadRequest"},"401":{"$ref":"#/components/responses/Unauthorized"},"403":{"$ref":"#/components/responses/Forbidden"},"404":{"$ref":"#/components/responses/NotFound"},"429":{"$ref":"#/components/responses/TooManyRequests"},"500":{"$ref":"#/components/responses/ServerError"}},"security":[{"JWT":[]},{"ApiKey":[]}],"tags":["Coaching Role-Play"],"summary":"Get session","x-api-key-scopes":["*"]}},"/v1/coaching-roleplay/sessions/{id}/messages":{"post":{"operationId":"coachingRolePlay_sendMessage","parameters":[{"name":"id","required":true,"in":"path","schema":{"type":"string"}},{"$ref":"#/components/parameters/IdempotencyKey"}],"responses":{"201":{"description":""},"400":{"$ref":"#/components/responses/BadRequest"},"401":{"$ref":"#/components/responses/Unauthorized"},"403":{"$ref":"#/components/responses/Forbidden"},"404":{"$ref":"#/components/responses/NotFound"},"409":{"$ref":"#/components/responses/Conflict"},"429":{"$ref":"#/components/responses/TooManyRequests"},"500":{"$ref":"#/components/responses/ServerError"}},"security":[{"JWT":[]},{"ApiKey":[]}],"tags":["Coaching Role-Play"],"summary":"Send message","x-api-key-scopes":["*"]}},"/v1/coaching-roleplay/sessions/{id}/end":{"post":{"operationId":"coachingRolePlay_endSession","parameters":[{"name":"id","required":true,"in":"path","schema":{"type":"string"}},{"$ref":"#/components/parameters/IdempotencyKey"}],"responses":{"201":{"description":"","content":{"application/json":{"schema":{"type":"object"}}}},"400":{"$ref":"#/components/responses/BadRequest"},"401":{"$ref":"#/components/responses/Unauthorized"},"403":{"$ref":"#/components/responses/Forbidden"},"404":{"$ref":"#/components/responses/NotFound"},"409":{"$ref":"#/components/responses/Conflict"},"429":{"$ref":"#/components/responses/TooManyRequests"},"500":{"$ref":"#/components/responses/ServerError"}},"security":[{"JWT":[]},{"ApiKey":[]}],"tags":["Coaching Role-Play"],"summary":"End session","x-api-key-scopes":["*"]}},"/v1/coaching-roleplay/sessions/{id}/scorecard":{"get":{"operationId":"coachingRolePlay_getScorecard","parameters":[{"name":"id","required":true,"in":"path","schema":{"type":"string"}}],"responses":{"200":{"description":"","content":{"application/json":{"schema":{"type":"object"}}}},"400":{"$ref":"#/components/responses/BadRequest"},"401":{"$ref":"#/components/responses/Unauthorized"},"403":{"$ref":"#/components/responses/Forbidden"},"404":{"$ref":"#/components/responses/NotFound"},"429":{"$ref":"#/components/responses/TooManyRequests"},"500":{"$ref":"#/components/responses/ServerError"}},"security":[{"JWT":[]},{"ApiKey":[]}],"tags":["Coaching Role-Play"],"summary":"Get scorecard","x-api-key-scopes":["*"]}},"/v1/coaching-roleplay/sessions/{id}/coaching-feedback":{"get":{"operationId":"coachingRolePlay_getCoachingFeedback","parameters":[{"name":"id","required":true,"in":"path","schema":{"type":"string"}}],"responses":{"200":{"description":"","content":{"application/json":{"schema":{"type":"object"}}}},"400":{"$ref":"#/components/responses/BadRequest"},"401":{"$ref":"#/components/responses/Unauthorized"},"403":{"$ref":"#/components/responses/Forbidden"},"404":{"$ref":"#/components/responses/NotFound"},"429":{"$ref":"#/components/responses/TooManyRequests"},"500":{"$ref":"#/components/responses/ServerError"}},"security":[{"JWT":[]},{"ApiKey":[]}],"tags":["Coaching Role-Play"],"summary":"Get coaching feedback","x-api-key-scopes":["*"]}},"/v1/coaching-roleplay/sessions/{id}/review":{"post":{"operationId":"coachingRolePlay_reviewSession","parameters":[{"name":"id","required":true,"in":"path","schema":{"type":"string"}},{"$ref":"#/components/parameters/IdempotencyKey"}],"responses":{"201":{"description":"","content":{"application/json":{"schema":{"type":"object"}}}},"400":{"$ref":"#/components/responses/BadRequest"},"401":{"$ref":"#/components/responses/Unauthorized"},"403":{"$ref":"#/components/responses/Forbidden"},"404":{"$ref":"#/components/responses/NotFound"},"409":{"$ref":"#/components/responses/Conflict"},"429":{"$ref":"#/components/responses/TooManyRequests"},"500":{"$ref":"#/components/responses/ServerError"}},"security":[{"JWT":[]},{"ApiKey":[]}],"tags":["Coaching Role-Play"],"summary":"Review session","x-api-key-scopes":["*"]}},"/v1/coaching-roleplay/personas":{"get":{"operationId":"coachingRolePlay_getPersonas","parameters":[],"responses":{"200":{"description":"","content":{"application/json":{"schema":{"type":"array","items":{"type":"object"}}}}},"401":{"$ref":"#/components/responses/Unauthorized"},"403":{"$ref":"#/components/responses/Forbidden"},"429":{"$ref":"#/components/responses/TooManyRequests"},"500":{"$ref":"#/components/responses/ServerError"}},"security":[{"JWT":[]},{"ApiKey":[]}],"tags":["Coaching Role-Play"],"summary":"Get personas","x-api-key-scopes":["*"]},"post":{"operationId":"coachingRolePlay_createPersona","parameters":[{"$ref":"#/components/parameters/IdempotencyKey"}],"responses":{"201":{"description":"","content":{"application/json":{"schema":{"type":"object"}}}},"400":{"$ref":"#/components/responses/BadRequest"},"401":{"$ref":"#/components/responses/Unauthorized"},"403":{"$ref":"#/components/responses/Forbidden"},"409":{"$ref":"#/components/responses/Conflict"},"429":{"$ref":"#/components/responses/TooManyRequests"},"500":{"$ref":"#/components/responses/ServerError"}},"security":[{"JWT":[]},{"ApiKey":[]}],"tags":["Coaching Role-Play"],"summary":"Create persona","x-api-key-scopes":["*"]}},"/v1/coaching-roleplay/stats":{"get":{"operationId":"coachingRolePlay_getStats","parameters":[],"responses":{"200":{"description":""},"401":{"$ref":"#/components/responses/Unauthorized"},"403":{"$ref":"#/components/responses/Forbidden"},"429":{"$ref":"#/components/responses/TooManyRequests"},"500":{"$ref":"#/components/responses/ServerError"}},"security":[{"JWT":[]},{"ApiKey":[]}],"tags":["Coaching Role-Play"],"summary":"Get stats","x-api-key-scopes":["*"]}},"/v1/coaching-roleplay/leaderboard":{"get":{"operationId":"coachingRolePlay_getLeaderboard","parameters":[],"responses":{"200":{"description":""},"401":{"$ref":"#/components/responses/Unauthorized"},"403":{"$ref":"#/components/responses/Forbidden"},"429":{"$ref":"#/components/responses/TooManyRequests"},"500":{"$ref":"#/components/responses/ServerError"}},"security":[{"JWT":[]},{"ApiKey":[]}],"tags":["Coaching Role-Play"],"summary":"Get leaderboard","x-api-key-scopes":["*"]}},"/v1/ai/insights":{"get":{"operationId":"aI_getInsights","parameters":[],"responses":{"200":{"description":"","content":{"application/json":{"schema":{"type":"object"}}}},"401":{"$ref":"#/components/responses/Unauthorized"},"403":{"$ref":"#/components/responses/Forbidden"},"429":{"$ref":"#/components/responses/TooManyRequests"},"500":{"$ref":"#/components/responses/ServerError"}},"security":[{"JWT":[]},{"ApiKey":[]}],"tags":["AI"],"summary":"Get insights","x-api-key-scopes":["*"]}},"/v1/ai/insights/deals/{id}":{"get":{"operationId":"aI_getDealInsights","parameters":[{"name":"id","required":true,"in":"path","schema":{"type":"string"}}],"responses":{"200":{"description":"","content":{"application/json":{"schema":{"type":"array","items":{"type":"object"}}}}},"400":{"$ref":"#/components/responses/BadRequest"},"401":{"$ref":"#/components/responses/Unauthorized"},"403":{"$ref":"#/components/responses/Forbidden"},"404":{"$ref":"#/components/responses/NotFound"},"429":{"$ref":"#/components/responses/TooManyRequests"},"500":{"$ref":"#/components/responses/ServerError"}},"security":[{"JWT":[]},{"ApiKey":[]}],"tags":["AI"],"summary":"Get deal insights","x-api-key-scopes":["*"]}},"/v1/ai/insights/leads":{"get":{"operationId":"aI_getLeadInsights","parameters":[],"responses":{"200":{"description":"","content":{"application/json":{"schema":{"type":"array","items":{"type":"object"}}}}},"401":{"$ref":"#/components/responses/Unauthorized"},"403":{"$ref":"#/components/responses/Forbidden"},"429":{"$ref":"#/components/responses/TooManyRequests"},"500":{"$ref":"#/components/responses/ServerError"}},"security":[{"JWT":[]},{"ApiKey":[]}],"tags":["AI"],"summary":"Get lead insights","x-api-key-scopes":["*"]}},"/v1/ai/insights/{id}/dismiss":{"post":{"operationId":"aI_dismissInsight","parameters":[{"name":"id","required":true,"in":"path","schema":{"type":"string"}},{"$ref":"#/components/parameters/IdempotencyKey"}],"responses":{"201":{"description":""},"400":{"$ref":"#/components/responses/BadRequest"},"401":{"$ref":"#/components/responses/Unauthorized"},"403":{"$ref":"#/components/responses/Forbidden"},"404":{"$ref":"#/components/responses/NotFound"},"409":{"$ref":"#/components/responses/Conflict"},"429":{"$ref":"#/components/responses/TooManyRequests"},"500":{"$ref":"#/components/responses/ServerError"}},"security":[{"JWT":[]},{"ApiKey":[]}],"tags":["AI"],"summary":"Dismiss insight","x-api-key-scopes":["*"]}},"/v1/discount-rules":{"get":{"operationId":"discountRules_findAll","parameters":[],"responses":{"200":{"description":""},"401":{"$ref":"#/components/responses/Unauthorized"},"403":{"$ref":"#/components/responses/Forbidden"},"429":{"$ref":"#/components/responses/TooManyRequests"},"500":{"$ref":"#/components/responses/ServerError"}},"security":[{"JWT":[]},{"ApiKey":[]}],"summary":"List discount rules","tags":["Discount Rules"],"x-api-key-scopes":["*"]},"post":{"operationId":"discountRules_create","parameters":[{"$ref":"#/components/parameters/IdempotencyKey"}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/CreateDiscountRuleDto"}}}},"responses":{"201":{"description":""},"400":{"$ref":"#/components/responses/BadRequest"},"401":{"$ref":"#/components/responses/Unauthorized"},"403":{"$ref":"#/components/responses/Forbidden"},"409":{"$ref":"#/components/responses/Conflict"},"429":{"$ref":"#/components/responses/TooManyRequests"},"500":{"$ref":"#/components/responses/ServerError"}},"security":[{"JWT":[]},{"ApiKey":[]}],"summary":"Create a discount rule","tags":["Discount Rules"],"x-api-key-scopes":["*"]}},"/v1/discount-rules/stats":{"get":{"operationId":"discountRules_getStats","parameters":[],"responses":{"200":{"description":""},"401":{"$ref":"#/components/responses/Unauthorized"},"403":{"$ref":"#/components/responses/Forbidden"},"429":{"$ref":"#/components/responses/TooManyRequests"},"500":{"$ref":"#/components/responses/ServerError"}},"security":[{"JWT":[]},{"ApiKey":[]}],"summary":"Get discount rule statistics","tags":["Discount Rules"],"x-api-key-scopes":["*"]}},"/v1/discount-rules/code/{code}":{"get":{"operationId":"discountRules_findByCode","parameters":[{"name":"code","required":true,"in":"path","schema":{"type":"string"}}],"responses":{"200":{"description":"","content":{"application/json":{"schema":{"type":"object"}}}},"400":{"$ref":"#/components/responses/BadRequest"},"401":{"$ref":"#/components/responses/Unauthorized"},"403":{"$ref":"#/components/responses/Forbidden"},"404":{"$ref":"#/components/responses/NotFound"},"429":{"$ref":"#/components/responses/TooManyRequests"},"500":{"$ref":"#/components/responses/ServerError"}},"security":[{"JWT":[]},{"ApiKey":[]}],"summary":"Get a discount rule by promo code","tags":["Discount Rules"],"x-api-key-scopes":["*"]}},"/v1/discount-rules/applicable/{quoteId}":{"get":{"operationId":"discountRules_getApplicableRules","parameters":[{"name":"quoteId","required":true,"in":"path","schema":{"type":"string"}}],"responses":{"200":{"description":""},"400":{"$ref":"#/components/responses/BadRequest"},"401":{"$ref":"#/components/responses/Unauthorized"},"403":{"$ref":"#/components/responses/Forbidden"},"404":{"$ref":"#/components/responses/NotFound"},"429":{"$ref":"#/components/responses/TooManyRequests"},"500":{"$ref":"#/components/responses/ServerError"}},"security":[{"JWT":[]},{"ApiKey":[]}],"summary":"List rules applicable to a quote","tags":["Discount Rules"],"x-api-key-scopes":["*"]}},"/v1/discount-rules/{id}":{"get":{"operationId":"discountRules_findOne","parameters":[{"name":"id","required":true,"in":"path","schema":{"type":"string"}}],"responses":{"200":{"description":""},"400":{"$ref":"#/components/responses/BadRequest"},"401":{"$ref":"#/components/responses/Unauthorized"},"403":{"$ref":"#/components/responses/Forbidden"},"404":{"$ref":"#/components/responses/NotFound"},"429":{"$ref":"#/components/responses/TooManyRequests"},"500":{"$ref":"#/components/responses/ServerError"}},"security":[{"JWT":[]},{"ApiKey":[]}],"summary":"Get a discount rule","tags":["Discount Rules"],"x-api-key-scopes":["*"]},"patch":{"operationId":"discountRules_update","parameters":[{"name":"id","required":true,"in":"path","schema":{"type":"string"}},{"$ref":"#/components/parameters/IdempotencyKey"}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/UpdateDiscountRuleDto"}}}},"responses":{"200":{"description":""},"400":{"$ref":"#/components/responses/BadRequest"},"401":{"$ref":"#/components/responses/Unauthorized"},"403":{"$ref":"#/components/responses/Forbidden"},"404":{"$ref":"#/components/responses/NotFound"},"409":{"$ref":"#/components/responses/Conflict"},"429":{"$ref":"#/components/responses/TooManyRequests"},"500":{"$ref":"#/components/responses/ServerError"}},"security":[{"JWT":[]},{"ApiKey":[]}],"summary":"Update a discount rule","tags":["Discount Rules"],"x-api-key-scopes":["*"]},"delete":{"operationId":"discountRules_remove","parameters":[{"name":"id","required":true,"in":"path","schema":{"type":"string"}}],"responses":{"200":{"description":""},"400":{"$ref":"#/components/responses/BadRequest"},"401":{"$ref":"#/components/responses/Unauthorized"},"403":{"$ref":"#/components/responses/Forbidden"},"404":{"$ref":"#/components/responses/NotFound"},"429":{"$ref":"#/components/responses/TooManyRequests"},"500":{"$ref":"#/components/responses/ServerError"}},"security":[{"JWT":[]},{"ApiKey":[]}],"summary":"Delete a discount rule","tags":["Discount Rules"],"x-api-key-scopes":["*"]}},"/v1/discount-rules/{id}/clone":{"post":{"operationId":"discountRules_clone","parameters":[{"name":"id","required":true,"in":"path","schema":{"type":"string"}},{"$ref":"#/components/parameters/IdempotencyKey"}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/CloneDiscountRuleDto"}}}},"responses":{"201":{"description":""},"400":{"$ref":"#/components/responses/BadRequest"},"401":{"$ref":"#/components/responses/Unauthorized"},"403":{"$ref":"#/components/responses/Forbidden"},"404":{"$ref":"#/components/responses/NotFound"},"409":{"$ref":"#/components/responses/Conflict"},"429":{"$ref":"#/components/responses/TooManyRequests"},"500":{"$ref":"#/components/responses/ServerError"}},"security":[{"JWT":[]},{"ApiKey":[]}],"summary":"Clone a discount rule","tags":["Discount Rules"],"x-api-key-scopes":["*"]}},"/v1/discount-rules/{id}/toggle-active":{"post":{"operationId":"discountRules_toggleActive","parameters":[{"name":"id","required":true,"in":"path","schema":{"type":"string"}},{"$ref":"#/components/parameters/IdempotencyKey"}],"responses":{"201":{"description":""},"400":{"$ref":"#/components/responses/BadRequest"},"401":{"$ref":"#/components/responses/Unauthorized"},"403":{"$ref":"#/components/responses/Forbidden"},"404":{"$ref":"#/components/responses/NotFound"},"409":{"$ref":"#/components/responses/Conflict"},"429":{"$ref":"#/components/responses/TooManyRequests"},"500":{"$ref":"#/components/responses/ServerError"}},"security":[{"JWT":[]},{"ApiKey":[]}],"summary":"Toggle a discount rule active/inactive","tags":["Discount Rules"],"x-api-key-scopes":["*"]}},"/v1/discount-rules/validate":{"post":{"operationId":"discountRules_validateCode","parameters":[{"$ref":"#/components/parameters/IdempotencyKey"}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ValidateCodeDto"}}}},"responses":{"201":{"description":"","content":{"application/json":{"schema":{"type":"object"}}}},"400":{"$ref":"#/components/responses/BadRequest"},"401":{"$ref":"#/components/responses/Unauthorized"},"403":{"$ref":"#/components/responses/Forbidden"},"409":{"$ref":"#/components/responses/Conflict"},"429":{"$ref":"#/components/responses/TooManyRequests"},"500":{"$ref":"#/components/responses/ServerError"}},"security":[{"JWT":[]},{"ApiKey":[]}],"summary":"Validate a promo code against a quote","tags":["Discount Rules"],"x-api-key-scopes":["*"]}},"/v1/discount-rules/apply":{"post":{"operationId":"discountRules_applyToQuote","parameters":[{"$ref":"#/components/parameters/IdempotencyKey"}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ApplyDiscountDto"}}}},"responses":{"201":{"description":"","content":{"application/json":{"schema":{"type":"object"}}}},"400":{"$ref":"#/components/responses/BadRequest"},"401":{"$ref":"#/components/responses/Unauthorized"},"403":{"$ref":"#/components/responses/Forbidden"},"409":{"$ref":"#/components/responses/Conflict"},"429":{"$ref":"#/components/responses/TooManyRequests"},"500":{"$ref":"#/components/responses/ServerError"}},"security":[{"JWT":[]},{"ApiKey":[]}],"summary":"Apply a discount rule to a quote","tags":["Discount Rules"],"x-api-key-scopes":["*"]}},"/v1/discount-rules/quotes/{quoteId}/rules/{ruleId}":{"delete":{"operationId":"discountRules_removeFromQuote","parameters":[{"name":"quoteId","required":true,"in":"path","schema":{"type":"string"}},{"name":"ruleId","required":true,"in":"path","schema":{"type":"string"}}],"responses":{"200":{"description":""},"400":{"$ref":"#/components/responses/BadRequest"},"401":{"$ref":"#/components/responses/Unauthorized"},"403":{"$ref":"#/components/responses/Forbidden"},"404":{"$ref":"#/components/responses/NotFound"},"429":{"$ref":"#/components/responses/TooManyRequests"},"500":{"$ref":"#/components/responses/ServerError"}},"security":[{"JWT":[]},{"ApiKey":[]}],"summary":"Remove an applied discount from a quote","tags":["Discount Rules"],"x-api-key-scopes":["*"]}},"/v1/quote-versions/stats":{"get":{"operationId":"quoteVersions_getStats","parameters":[],"responses":{"200":{"description":""},"401":{"$ref":"#/components/responses/Unauthorized"},"403":{"$ref":"#/components/responses/Forbidden"},"429":{"$ref":"#/components/responses/TooManyRequests"},"500":{"$ref":"#/components/responses/ServerError"}},"security":[{"JWT":[]},{"ApiKey":[]}],"summary":"Org-wide quote version statistics","tags":["Quote Versions"],"x-api-key-scopes":["*"]}},"/v1/quotes/{quoteId}/versions":{"get":{"operationId":"quoteVersions_listVersions","parameters":[{"name":"quoteId","required":true,"in":"path","schema":{"type":"string"}}],"responses":{"200":{"description":""},"400":{"$ref":"#/components/responses/BadRequest"},"401":{"$ref":"#/components/responses/Unauthorized"},"403":{"$ref":"#/components/responses/Forbidden"},"404":{"$ref":"#/components/responses/NotFound"},"429":{"$ref":"#/components/responses/TooManyRequests"},"500":{"$ref":"#/components/responses/ServerError"}},"security":[{"JWT":[]},{"ApiKey":[]}],"summary":"List versions for a quote","tags":["Quote Versions"],"x-api-key-scopes":["READ_QUOTES"]},"post":{"operationId":"quoteVersions_createVersion","parameters":[{"name":"quoteId","required":true,"in":"path","schema":{"type":"string"}},{"$ref":"#/components/parameters/IdempotencyKey"}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/CreateQuoteVersionDto"}}}},"responses":{"201":{"description":""},"400":{"$ref":"#/components/responses/BadRequest"},"401":{"$ref":"#/components/responses/Unauthorized"},"403":{"$ref":"#/components/responses/Forbidden"},"404":{"$ref":"#/components/responses/NotFound"},"409":{"$ref":"#/components/responses/Conflict"},"429":{"$ref":"#/components/responses/TooManyRequests"},"500":{"$ref":"#/components/responses/ServerError"}},"security":[{"JWT":[]},{"ApiKey":[]}],"summary":"Snapshot the current quote as a new version","tags":["Quote Versions"],"x-api-key-scopes":["WRITE_QUOTES"]}},"/v1/quotes/{quoteId}/versions/latest":{"get":{"operationId":"quoteVersions_getLatest","parameters":[{"name":"quoteId","required":true,"in":"path","schema":{"type":"string"}}],"responses":{"200":{"description":"","content":{"application/json":{"schema":{"type":"object"}}}},"400":{"$ref":"#/components/responses/BadRequest"},"401":{"$ref":"#/components/responses/Unauthorized"},"403":{"$ref":"#/components/responses/Forbidden"},"404":{"$ref":"#/components/responses/NotFound"},"429":{"$ref":"#/components/responses/TooManyRequests"},"500":{"$ref":"#/components/responses/ServerError"}},"security":[{"JWT":[]},{"ApiKey":[]}],"summary":"Get the latest version of a quote","tags":["Quote Versions"],"x-api-key-scopes":["READ_QUOTES"]}},"/v1/quotes/{quoteId}/versions/count":{"get":{"operationId":"quoteVersions_getCount","parameters":[{"name":"quoteId","required":true,"in":"path","schema":{"type":"string"}}],"responses":{"200":{"description":""},"400":{"$ref":"#/components/responses/BadRequest"},"401":{"$ref":"#/components/responses/Unauthorized"},"403":{"$ref":"#/components/responses/Forbidden"},"404":{"$ref":"#/components/responses/NotFound"},"429":{"$ref":"#/components/responses/TooManyRequests"},"500":{"$ref":"#/components/responses/ServerError"}},"security":[{"JWT":[]},{"ApiKey":[]}],"summary":"Count versions of a quote","tags":["Quote Versions"],"x-api-key-scopes":["READ_QUOTES"]}},"/v1/quotes/{quoteId}/versions/number/{versionNumber}":{"get":{"operationId":"quoteVersions_getByNumber","parameters":[{"name":"quoteId","required":true,"in":"path","schema":{"type":"string"}},{"name":"versionNumber","required":true,"in":"path","schema":{"type":"number"}}],"responses":{"200":{"description":""},"400":{"$ref":"#/components/responses/BadRequest"},"401":{"$ref":"#/components/responses/Unauthorized"},"403":{"$ref":"#/components/responses/Forbidden"},"404":{"$ref":"#/components/responses/NotFound"},"429":{"$ref":"#/components/responses/TooManyRequests"},"500":{"$ref":"#/components/responses/ServerError"}},"security":[{"JWT":[]},{"ApiKey":[]}],"summary":"Get a version by number","tags":["Quote Versions"],"x-api-key-scopes":["READ_QUOTES"]}},"/v1/quotes/{quoteId}/versions/{versionId}/changes-since":{"get":{"operationId":"quoteVersions_changesSince","parameters":[{"name":"quoteId","required":true,"in":"path","schema":{"type":"string"}},{"name":"versionId","required":true,"in":"path","schema":{"type":"string"}}],"responses":{"200":{"description":""},"400":{"$ref":"#/components/responses/BadRequest"},"401":{"$ref":"#/components/responses/Unauthorized"},"403":{"$ref":"#/components/responses/Forbidden"},"404":{"$ref":"#/components/responses/NotFound"},"429":{"$ref":"#/components/responses/TooManyRequests"},"500":{"$ref":"#/components/responses/ServerError"}},"security":[{"JWT":[]},{"ApiKey":[]}],"summary":"Diff a stored version against the current quote","tags":["Quote Versions"],"x-api-key-scopes":["READ_QUOTES"]}},"/v1/quotes/{quoteId}/versions/{versionId}":{"get":{"operationId":"quoteVersions_getVersion","parameters":[{"name":"quoteId","required":true,"in":"path","schema":{"type":"string"}},{"name":"versionId","required":true,"in":"path","schema":{"type":"string"}}],"responses":{"200":{"description":""},"400":{"$ref":"#/components/responses/BadRequest"},"401":{"$ref":"#/components/responses/Unauthorized"},"403":{"$ref":"#/components/responses/Forbidden"},"404":{"$ref":"#/components/responses/NotFound"},"429":{"$ref":"#/components/responses/TooManyRequests"},"500":{"$ref":"#/components/responses/ServerError"}},"security":[{"JWT":[]},{"ApiKey":[]}],"summary":"Get one version","tags":["Quote Versions"],"x-api-key-scopes":["READ_QUOTES"]},"delete":{"operationId":"quoteVersions_deleteVersion","parameters":[{"name":"quoteId","required":true,"in":"path","schema":{"type":"string"}},{"name":"versionId","required":true,"in":"path","schema":{"type":"string"}}],"responses":{"200":{"description":""},"400":{"$ref":"#/components/responses/BadRequest"},"401":{"$ref":"#/components/responses/Unauthorized"},"403":{"$ref":"#/components/responses/Forbidden"},"404":{"$ref":"#/components/responses/NotFound"},"429":{"$ref":"#/components/responses/TooManyRequests"},"500":{"$ref":"#/components/responses/ServerError"}},"security":[{"JWT":[]},{"ApiKey":[]}],"summary":"Delete a version (admin only)","tags":["Quote Versions"],"x-api-key-scopes":["WRITE_QUOTES"]}},"/v1/quotes/{quoteId}/versions/restore":{"post":{"operationId":"quoteVersions_restoreVersion","parameters":[{"name":"quoteId","required":true,"in":"path","schema":{"type":"string"}},{"$ref":"#/components/parameters/IdempotencyKey"}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/RestoreVersionDto"}}}},"responses":{"201":{"description":""},"400":{"$ref":"#/components/responses/BadRequest"},"401":{"$ref":"#/components/responses/Unauthorized"},"403":{"$ref":"#/components/responses/Forbidden"},"404":{"$ref":"#/components/responses/NotFound"},"409":{"$ref":"#/components/responses/Conflict"},"429":{"$ref":"#/components/responses/TooManyRequests"},"500":{"$ref":"#/components/responses/ServerError"}},"security":[{"JWT":[]},{"ApiKey":[]}],"summary":"Restore a quote to a previous version","tags":["Quote Versions"],"x-api-key-scopes":["WRITE_QUOTES"]}},"/v1/quotes/{quoteId}/versions/compare":{"post":{"operationId":"quoteVersions_compareVersions","parameters":[{"name":"quoteId","required":true,"in":"path","schema":{"type":"string"}},{"$ref":"#/components/parameters/IdempotencyKey"}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/CompareVersionsDto"}}}},"responses":{"201":{"description":""},"400":{"$ref":"#/components/responses/BadRequest"},"401":{"$ref":"#/components/responses/Unauthorized"},"403":{"$ref":"#/components/responses/Forbidden"},"404":{"$ref":"#/components/responses/NotFound"},"409":{"$ref":"#/components/responses/Conflict"},"429":{"$ref":"#/components/responses/TooManyRequests"},"500":{"$ref":"#/components/responses/ServerError"}},"security":[{"JWT":[]},{"ApiKey":[]}],"summary":"Compare two versions of a quote","tags":["Quote Versions"],"x-api-key-scopes":["WRITE_QUOTES"]}},"/v1/before-save-hooks":{"get":{"operationId":"beforeSaveHooks_list","parameters":[],"responses":{"200":{"description":"BeforeSaveHookViewArray","content":{"application/json":{"schema":{"$ref":"#/components/schemas/BeforeSaveHookViewArray"}}}},"401":{"$ref":"#/components/responses/Unauthorized"},"403":{"$ref":"#/components/responses/Forbidden"},"429":{"$ref":"#/components/responses/TooManyRequests"},"500":{"$ref":"#/components/responses/ServerError"}},"security":[{"JWT":[]},{"ApiKey":[]}],"tags":["Before-Save Hooks"],"summary":"List","x-api-key-scopes":["*"]},"post":{"operationId":"beforeSaveHooks_create","parameters":[],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/CreateBeforeSaveHookDto"}}}},"responses":{"201":{"description":"BeforeSaveHookWithSecret","content":{"application/json":{"schema":{"$ref":"#/components/schemas/BeforeSaveHookWithSecret"}}}},"400":{"$ref":"#/components/responses/BadRequest"},"401":{"$ref":"#/components/responses/Unauthorized"},"403":{"$ref":"#/components/responses/Forbidden"},"429":{"$ref":"#/components/responses/TooManyRequests"},"500":{"$ref":"#/components/responses/ServerError"}},"security":[{"JWT":[]},{"ApiKey":[]}],"summary":"Register a hook; the signing secret is returned once","tags":["Before-Save Hooks"],"x-api-key-scopes":["*"]}},"/v1/before-save-hooks/{id}":{"get":{"operationId":"beforeSaveHooks_get","parameters":[{"name":"id","required":true,"in":"path","schema":{"type":"string"}}],"responses":{"200":{"description":"BeforeSaveHookView","content":{"application/json":{"schema":{"$ref":"#/components/schemas/BeforeSaveHookView"}}}},"400":{"$ref":"#/components/responses/BadRequest"},"401":{"$ref":"#/components/responses/Unauthorized"},"403":{"$ref":"#/components/responses/Forbidden"},"404":{"$ref":"#/components/responses/NotFound"},"429":{"$ref":"#/components/responses/TooManyRequests"},"500":{"$ref":"#/components/responses/ServerError"}},"security":[{"JWT":[]},{"ApiKey":[]}],"tags":["Before-Save Hooks"],"summary":"Get","x-api-key-scopes":["*"]},"patch":{"operationId":"beforeSaveHooks_update","parameters":[{"name":"id","required":true,"in":"path","schema":{"type":"string"}},{"$ref":"#/components/parameters/IdempotencyKey"}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/UpdateBeforeSaveHookDto"}}}},"responses":{"200":{"description":"BeforeSaveHookView","content":{"application/json":{"schema":{"$ref":"#/components/schemas/BeforeSaveHookView"}}}},"400":{"$ref":"#/components/responses/BadRequest"},"401":{"$ref":"#/components/responses/Unauthorized"},"403":{"$ref":"#/components/responses/Forbidden"},"404":{"$ref":"#/components/responses/NotFound"},"409":{"$ref":"#/components/responses/Conflict"},"429":{"$ref":"#/components/responses/TooManyRequests"},"500":{"$ref":"#/components/responses/ServerError"}},"security":[{"JWT":[]},{"ApiKey":[]}],"tags":["Before-Save Hooks"],"summary":"Update","x-api-key-scopes":["*"]},"delete":{"operationId":"beforeSaveHooks_remove","parameters":[{"name":"id","required":true,"in":"path","schema":{"type":"string"}}],"responses":{"200":{"description":"DeletedResponse","content":{"application/json":{"schema":{"$ref":"#/components/schemas/DeletedResponse"}}}},"400":{"$ref":"#/components/responses/BadRequest"},"401":{"$ref":"#/components/responses/Unauthorized"},"403":{"$ref":"#/components/responses/Forbidden"},"404":{"$ref":"#/components/responses/NotFound"},"429":{"$ref":"#/components/responses/TooManyRequests"},"500":{"$ref":"#/components/responses/ServerError"}},"security":[{"JWT":[]},{"ApiKey":[]}],"tags":["Before-Save Hooks"],"summary":"Remove","x-api-key-scopes":["*"]}},"/v1/before-save-hooks/{id}/rotate-secret":{"post":{"operationId":"beforeSaveHooks_rotate","parameters":[{"name":"id","required":true,"in":"path","schema":{"type":"string"}}],"responses":{"201":{"description":"SecretResponse","content":{"application/json":{"schema":{"$ref":"#/components/schemas/SecretResponse"}}}},"400":{"$ref":"#/components/responses/BadRequest"},"401":{"$ref":"#/components/responses/Unauthorized"},"403":{"$ref":"#/components/responses/Forbidden"},"404":{"$ref":"#/components/responses/NotFound"},"429":{"$ref":"#/components/responses/TooManyRequests"},"500":{"$ref":"#/components/responses/ServerError"}},"security":[{"JWT":[]},{"ApiKey":[]}],"tags":["Before-Save Hooks"],"summary":"Rotate","x-api-key-scopes":["*"]}},"/v1/before-save-hooks/{id}/test":{"post":{"operationId":"beforeSaveHooks_test","parameters":[{"name":"id","required":true,"in":"path","schema":{"type":"string"}},{"$ref":"#/components/parameters/IdempotencyKey"}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/TestBeforeSaveHookDto"}}}},"responses":{"201":{"description":"HookTestResult","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HookTestResult"}}}},"400":{"$ref":"#/components/responses/BadRequest"},"401":{"$ref":"#/components/responses/Unauthorized"},"403":{"$ref":"#/components/responses/Forbidden"},"404":{"$ref":"#/components/responses/NotFound"},"409":{"$ref":"#/components/responses/Conflict"},"429":{"$ref":"#/components/responses/TooManyRequests"},"500":{"$ref":"#/components/responses/ServerError"}},"security":[{"JWT":[]},{"ApiKey":[]}],"summary":"Send a sample record; nothing is saved. Returns the decision, request and response","tags":["Before-Save Hooks"],"x-api-key-scopes":["*"]}},"/v1/before-save-hooks/{id}/invocations":{"get":{"operationId":"beforeSaveHooks_invocationsPage","parameters":[{"name":"id","required":true,"in":"path","schema":{"type":"string"}},{"name":"page","required":false,"in":"query","schema":{"default":1,"type":"string"}},{"name":"limit","required":false,"in":"query","schema":{"default":20,"type":"string"}},{"name":"status","required":false,"in":"query","schema":{"type":"string","enum":["SUCCEEDED","FAILED","TIMEOUT","BLOCKED","REJECTED","CIRCUIT_OPEN"]}}],"responses":{"200":{"description":"ExtensionInvocationPage","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ExtensionInvocationPage"}}}},"400":{"$ref":"#/components/responses/BadRequest"},"401":{"$ref":"#/components/responses/Unauthorized"},"403":{"$ref":"#/components/responses/Forbidden"},"404":{"$ref":"#/components/responses/NotFound"},"429":{"$ref":"#/components/responses/TooManyRequests"},"500":{"$ref":"#/components/responses/ServerError"}},"security":[{"JWT":[]},{"ApiKey":[]}],"tags":["Before-Save Hooks"],"summary":"Invocations page","x-api-key-scopes":["*"]}},"/v1/before-save-hooks/{id}/invocations/{invocationId}":{"get":{"operationId":"beforeSaveHooks_invocation","parameters":[{"name":"id","required":true,"in":"path","schema":{"type":"string"}},{"name":"invocationId","required":true,"in":"path","schema":{"type":"string"}}],"responses":{"200":{"description":"ExtensionInvocation","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ExtensionInvocation"}}}},"400":{"$ref":"#/components/responses/BadRequest"},"401":{"$ref":"#/components/responses/Unauthorized"},"403":{"$ref":"#/components/responses/Forbidden"},"404":{"$ref":"#/components/responses/NotFound"},"429":{"$ref":"#/components/responses/TooManyRequests"},"500":{"$ref":"#/components/responses/ServerError"}},"security":[{"JWT":[]},{"ApiKey":[]}],"tags":["Before-Save Hooks"],"summary":"Invocation","x-api-key-scopes":["*"]}},"/v1/before-save-hooks/{id}/invocations/{invocationId}/replay":{"post":{"operationId":"beforeSaveHooks_replay","parameters":[{"name":"id","required":true,"in":"path","schema":{"type":"string"}},{"name":"invocationId","required":true,"in":"path","schema":{"type":"string"}},{"$ref":"#/components/parameters/IdempotencyKey"}],"responses":{"201":{"description":"HookTestResult","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HookTestResult"}}}},"400":{"$ref":"#/components/responses/BadRequest"},"401":{"$ref":"#/components/responses/Unauthorized"},"403":{"$ref":"#/components/responses/Forbidden"},"404":{"$ref":"#/components/responses/NotFound"},"409":{"$ref":"#/components/responses/Conflict"},"429":{"$ref":"#/components/responses/TooManyRequests"},"500":{"$ref":"#/components/responses/ServerError"}},"security":[{"JWT":[]},{"ApiKey":[]}],"summary":"Re-send the logged payload as a test (the original save is not re-run)","tags":["Before-Save Hooks"],"x-api-key-scopes":["*"]}},"/v1/after-save-triggers":{"get":{"operationId":"afterSaveTriggers_list","parameters":[],"responses":{"200":{"description":"AfterSaveTriggerArray","content":{"application/json":{"schema":{"$ref":"#/components/schemas/AfterSaveTriggerArray"}}}},"401":{"$ref":"#/components/responses/Unauthorized"},"403":{"$ref":"#/components/responses/Forbidden"},"429":{"$ref":"#/components/responses/TooManyRequests"},"500":{"$ref":"#/components/responses/ServerError"}},"security":[{"JWT":[]},{"ApiKey":[]}],"tags":["After-Save Triggers"],"summary":"List","x-api-key-scopes":["*"]},"post":{"operationId":"afterSaveTriggers_create","parameters":[],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/CreateAfterSaveTriggerDto"}}}},"responses":{"201":{"description":"AfterSaveTrigger","content":{"application/json":{"schema":{"$ref":"#/components/schemas/AfterSaveTrigger"}}}},"400":{"$ref":"#/components/responses/BadRequest"},"401":{"$ref":"#/components/responses/Unauthorized"},"403":{"$ref":"#/components/responses/Forbidden"},"429":{"$ref":"#/components/responses/TooManyRequests"},"500":{"$ref":"#/components/responses/ServerError"}},"security":[{"JWT":[]},{"ApiKey":[]}],"summary":"Run a function after every matching save","tags":["After-Save Triggers"],"x-api-key-scopes":["*"]}},"/v1/after-save-triggers/{id}":{"get":{"operationId":"afterSaveTriggers_get","parameters":[{"name":"id","required":true,"in":"path","schema":{"type":"string"}}],"responses":{"200":{"description":"AfterSaveTrigger","content":{"application/json":{"schema":{"$ref":"#/components/schemas/AfterSaveTrigger"}}}},"400":{"$ref":"#/components/responses/BadRequest"},"401":{"$ref":"#/components/responses/Unauthorized"},"403":{"$ref":"#/components/responses/Forbidden"},"404":{"$ref":"#/components/responses/NotFound"},"429":{"$ref":"#/components/responses/TooManyRequests"},"500":{"$ref":"#/components/responses/ServerError"}},"security":[{"JWT":[]},{"ApiKey":[]}],"tags":["After-Save Triggers"],"summary":"Get","x-api-key-scopes":["*"]},"patch":{"operationId":"afterSaveTriggers_update","parameters":[{"name":"id","required":true,"in":"path","schema":{"type":"string"}},{"$ref":"#/components/parameters/IdempotencyKey"}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/UpdateAfterSaveTriggerDto"}}}},"responses":{"200":{"description":"AfterSaveTrigger","content":{"application/json":{"schema":{"$ref":"#/components/schemas/AfterSaveTrigger"}}}},"400":{"$ref":"#/components/responses/BadRequest"},"401":{"$ref":"#/components/responses/Unauthorized"},"403":{"$ref":"#/components/responses/Forbidden"},"404":{"$ref":"#/components/responses/NotFound"},"409":{"$ref":"#/components/responses/Conflict"},"429":{"$ref":"#/components/responses/TooManyRequests"},"500":{"$ref":"#/components/responses/ServerError"}},"security":[{"JWT":[]},{"ApiKey":[]}],"tags":["After-Save Triggers"],"summary":"Update","x-api-key-scopes":["*"]},"delete":{"operationId":"afterSaveTriggers_remove","parameters":[{"name":"id","required":true,"in":"path","schema":{"type":"string"}}],"responses":{"200":{"description":"DeletedResponse","content":{"application/json":{"schema":{"$ref":"#/components/schemas/DeletedResponse"}}}},"400":{"$ref":"#/components/responses/BadRequest"},"401":{"$ref":"#/components/responses/Unauthorized"},"403":{"$ref":"#/components/responses/Forbidden"},"404":{"$ref":"#/components/responses/NotFound"},"429":{"$ref":"#/components/responses/TooManyRequests"},"500":{"$ref":"#/components/responses/ServerError"}},"security":[{"JWT":[]},{"ApiKey":[]}],"tags":["After-Save Triggers"],"summary":"Remove","x-api-key-scopes":["*"]}},"/v1/after-save-triggers/{id}/test":{"post":{"operationId":"afterSaveTriggers_test","parameters":[{"name":"id","required":true,"in":"path","schema":{"type":"string"}},{"$ref":"#/components/parameters/IdempotencyKey"}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/TestAfterSaveTriggerDto"}}}},"responses":{"201":{"description":"AfterSaveTestResult","content":{"application/json":{"schema":{"$ref":"#/components/schemas/AfterSaveTestResult"}}}},"400":{"$ref":"#/components/responses/BadRequest"},"401":{"$ref":"#/components/responses/Unauthorized"},"403":{"$ref":"#/components/responses/Forbidden"},"404":{"$ref":"#/components/responses/NotFound"},"409":{"$ref":"#/components/responses/Conflict"},"429":{"$ref":"#/components/responses/TooManyRequests"},"500":{"$ref":"#/components/responses/ServerError"}},"security":[{"JWT":[]},{"ApiKey":[]}],"summary":"Run the function with a sample record (its own salesos.* writes are real)","tags":["After-Save Triggers"],"x-api-key-scopes":["*"]}},"/v1/custom-actions/meta":{"get":{"operationId":"customActions_meta","parameters":[],"responses":{"200":{"description":""},"401":{"$ref":"#/components/responses/Unauthorized"},"403":{"$ref":"#/components/responses/Forbidden"},"429":{"$ref":"#/components/responses/TooManyRequests"},"500":{"$ref":"#/components/responses/ServerError"}},"security":[{"JWT":[]},{"ApiKey":[]}],"summary":"Objects, their fields and the schema field types the editors offer","tags":["Custom Actions"],"x-api-key-scopes":["*"]}},"/v1/custom-actions/for-record":{"get":{"operationId":"customActions_forRecord","parameters":[{"name":"objectType","required":true,"in":"query","schema":{"type":"string"}}],"responses":{"200":{"description":"ManualCustomActionArray","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ManualCustomActionArray"}}}},"400":{"$ref":"#/components/responses/BadRequest"},"401":{"$ref":"#/components/responses/Unauthorized"},"403":{"$ref":"#/components/responses/Forbidden"},"429":{"$ref":"#/components/responses/TooManyRequests"},"500":{"$ref":"#/components/responses/ServerError"}},"security":[{"JWT":[]},{"ApiKey":[]}],"summary":"Actions a person may run from a record page of this object","tags":["Custom Actions"],"x-api-key-scopes":["*"]}},"/v1/custom-actions":{"get":{"operationId":"customActions_list","parameters":[],"responses":{"200":{"description":"CustomActionViewArray","content":{"application/json":{"schema":{"$ref":"#/components/schemas/CustomActionViewArray"}}}},"401":{"$ref":"#/components/responses/Unauthorized"},"403":{"$ref":"#/components/responses/Forbidden"},"429":{"$ref":"#/components/responses/TooManyRequests"},"500":{"$ref":"#/components/responses/ServerError"}},"security":[{"JWT":[]},{"ApiKey":[]}],"tags":["Custom Actions"],"summary":"List","x-api-key-scopes":["*"]},"post":{"operationId":"customActions_create","parameters":[],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/CreateCustomActionDto"}}}},"responses":{"201":{"description":"CustomActionWithSecret","content":{"application/json":{"schema":{"$ref":"#/components/schemas/CustomActionWithSecret"}}}},"400":{"$ref":"#/components/responses/BadRequest"},"401":{"$ref":"#/components/responses/Unauthorized"},"403":{"$ref":"#/components/responses/Forbidden"},"429":{"$ref":"#/components/responses/TooManyRequests"},"500":{"$ref":"#/components/responses/ServerError"}},"security":[{"JWT":[]},{"ApiKey":[]}],"summary":"Register an action; the signing secret is returned once","tags":["Custom Actions"],"x-api-key-scopes":["*"]}},"/v1/custom-actions/{id}":{"get":{"operationId":"customActions_get","parameters":[{"name":"id","required":true,"in":"path","schema":{"type":"string"}}],"responses":{"200":{"description":"CustomActionView","content":{"application/json":{"schema":{"$ref":"#/components/schemas/CustomActionView"}}}},"400":{"$ref":"#/components/responses/BadRequest"},"401":{"$ref":"#/components/responses/Unauthorized"},"403":{"$ref":"#/components/responses/Forbidden"},"404":{"$ref":"#/components/responses/NotFound"},"429":{"$ref":"#/components/responses/TooManyRequests"},"500":{"$ref":"#/components/responses/ServerError"}},"security":[{"JWT":[]},{"ApiKey":[]}],"tags":["Custom Actions"],"summary":"Get","x-api-key-scopes":["*"]},"patch":{"operationId":"customActions_update","parameters":[{"name":"id","required":true,"in":"path","schema":{"type":"string"}},{"$ref":"#/components/parameters/IdempotencyKey"}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/UpdateCustomActionDto"}}}},"responses":{"200":{"description":"CustomActionView","content":{"application/json":{"schema":{"$ref":"#/components/schemas/CustomActionView"}}}},"400":{"$ref":"#/components/responses/BadRequest"},"401":{"$ref":"#/components/responses/Unauthorized"},"403":{"$ref":"#/components/responses/Forbidden"},"404":{"$ref":"#/components/responses/NotFound"},"409":{"$ref":"#/components/responses/Conflict"},"429":{"$ref":"#/components/responses/TooManyRequests"},"500":{"$ref":"#/components/responses/ServerError"}},"security":[{"JWT":[]},{"ApiKey":[]}],"tags":["Custom Actions"],"summary":"Update","x-api-key-scopes":["*"]},"delete":{"operationId":"customActions_remove","parameters":[{"name":"id","required":true,"in":"path","schema":{"type":"string"}}],"responses":{"200":{"description":"DeletedResponse","content":{"application/json":{"schema":{"$ref":"#/components/schemas/DeletedResponse"}}}},"400":{"$ref":"#/components/responses/BadRequest"},"401":{"$ref":"#/components/responses/Unauthorized"},"403":{"$ref":"#/components/responses/Forbidden"},"404":{"$ref":"#/components/responses/NotFound"},"429":{"$ref":"#/components/responses/TooManyRequests"},"500":{"$ref":"#/components/responses/ServerError"}},"security":[{"JWT":[]},{"ApiKey":[]}],"tags":["Custom Actions"],"summary":"Remove","x-api-key-scopes":["*"]}},"/v1/custom-actions/{id}/rotate-secret":{"post":{"operationId":"customActions_rotate","parameters":[{"name":"id","required":true,"in":"path","schema":{"type":"string"}}],"responses":{"201":{"description":"SecretResponse","content":{"application/json":{"schema":{"$ref":"#/components/schemas/SecretResponse"}}}},"400":{"$ref":"#/components/responses/BadRequest"},"401":{"$ref":"#/components/responses/Unauthorized"},"403":{"$ref":"#/components/responses/Forbidden"},"404":{"$ref":"#/components/responses/NotFound"},"429":{"$ref":"#/components/responses/TooManyRequests"},"500":{"$ref":"#/components/responses/ServerError"}},"security":[{"JWT":[]},{"ApiKey":[]}],"summary":"Replace the signing secret (returned once)","tags":["Custom Actions"],"x-api-key-scopes":["*"]}},"/v1/custom-actions/{id}/test":{"post":{"operationId":"customActions_test","parameters":[{"name":"id","required":true,"in":"path","schema":{"type":"string"}},{"$ref":"#/components/parameters/IdempotencyKey"}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/TestCustomActionDto"}}}},"responses":{"201":{"description":"ActionRunResult","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ActionRunResult"}}}},"400":{"$ref":"#/components/responses/BadRequest"},"401":{"$ref":"#/components/responses/Unauthorized"},"403":{"$ref":"#/components/responses/Forbidden"},"404":{"$ref":"#/components/responses/NotFound"},"409":{"$ref":"#/components/responses/Conflict"},"429":{"$ref":"#/components/responses/TooManyRequests"},"500":{"$ref":"#/components/responses/ServerError"}},"security":[{"JWT":[]},{"ApiKey":[]}],"summary":"Call the endpoint with sample input; returns the request and response","tags":["Custom Actions"],"x-api-key-scopes":["*"]}},"/v1/custom-actions/{id}/run":{"post":{"operationId":"customActions_run","parameters":[{"name":"id","required":true,"in":"path","schema":{"type":"string"}},{"$ref":"#/components/parameters/IdempotencyKey"}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/RunCustomActionDto"}}}},"responses":{"201":{"description":"ManualActionRunResult","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ManualActionRunResult"}}}},"400":{"$ref":"#/components/responses/BadRequest"},"401":{"$ref":"#/components/responses/Unauthorized"},"403":{"$ref":"#/components/responses/Forbidden"},"404":{"$ref":"#/components/responses/NotFound"},"409":{"$ref":"#/components/responses/Conflict"},"429":{"$ref":"#/components/responses/TooManyRequests"},"500":{"$ref":"#/components/responses/ServerError"}},"security":[{"JWT":[]},{"ApiKey":[]}],"summary":"Run the action on a record (record inputs mapped, outputs written back)","tags":["Custom Actions"],"x-api-key-scopes":["*"]}},"/v1/custom-actions/{id}/invocations":{"get":{"operationId":"customActions_invocationsPage","parameters":[{"name":"id","required":true,"in":"path","schema":{"type":"string"}},{"name":"page","required":false,"in":"query","schema":{"default":1,"type":"string"}},{"name":"limit","required":false,"in":"query","schema":{"default":20,"type":"string"}},{"name":"status","required":false,"in":"query","schema":{"type":"string","enum":["SUCCEEDED","FAILED","TIMEOUT","BLOCKED","REJECTED","CIRCUIT_OPEN"]}}],"responses":{"200":{"description":"ExtensionInvocationPage","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ExtensionInvocationPage"}}}},"400":{"$ref":"#/components/responses/BadRequest"},"401":{"$ref":"#/components/responses/Unauthorized"},"403":{"$ref":"#/components/responses/Forbidden"},"404":{"$ref":"#/components/responses/NotFound"},"429":{"$ref":"#/components/responses/TooManyRequests"},"500":{"$ref":"#/components/responses/ServerError"}},"security":[{"JWT":[]},{"ApiKey":[]}],"tags":["Custom Actions"],"summary":"Invocations page","x-api-key-scopes":["*"]}},"/v1/custom-actions/{id}/invocations/{invocationId}":{"get":{"operationId":"customActions_invocation","parameters":[{"name":"id","required":true,"in":"path","schema":{"type":"string"}},{"name":"invocationId","required":true,"in":"path","schema":{"type":"string"}}],"responses":{"200":{"description":"ExtensionInvocation","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ExtensionInvocation"}}}},"400":{"$ref":"#/components/responses/BadRequest"},"401":{"$ref":"#/components/responses/Unauthorized"},"403":{"$ref":"#/components/responses/Forbidden"},"404":{"$ref":"#/components/responses/NotFound"},"429":{"$ref":"#/components/responses/TooManyRequests"},"500":{"$ref":"#/components/responses/ServerError"}},"security":[{"JWT":[]},{"ApiKey":[]}],"tags":["Custom Actions"],"summary":"Invocation","x-api-key-scopes":["*"]}},"/v1/custom-actions/{id}/invocations/{invocationId}/replay":{"post":{"operationId":"customActions_replay","parameters":[{"name":"id","required":true,"in":"path","schema":{"type":"string"}},{"name":"invocationId","required":true,"in":"path","schema":{"type":"string"}},{"$ref":"#/components/parameters/IdempotencyKey"}],"responses":{"201":{"description":"ActionRunResult","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ActionRunResult"}}}},"400":{"$ref":"#/components/responses/BadRequest"},"401":{"$ref":"#/components/responses/Unauthorized"},"403":{"$ref":"#/components/responses/Forbidden"},"404":{"$ref":"#/components/responses/NotFound"},"409":{"$ref":"#/components/responses/Conflict"},"429":{"$ref":"#/components/responses/TooManyRequests"},"500":{"$ref":"#/components/responses/ServerError"}},"security":[{"JWT":[]},{"ApiKey":[]}],"summary":"Send the same input again (new invocation id; no record write-back)","tags":["Custom Actions"],"x-api-key-scopes":["*"]}},"/v1/functions/meta":{"get":{"operationId":"functions_meta","parameters":[],"responses":{"200":{"description":""},"401":{"$ref":"#/components/responses/Unauthorized"},"403":{"$ref":"#/components/responses/Forbidden"},"429":{"$ref":"#/components/responses/TooManyRequests"},"500":{"$ref":"#/components/responses/ServerError"}},"security":[{"JWT":[]},{"ApiKey":[]}],"summary":"Limits, scopes, event types and starter code for the editor","tags":["Functions"],"x-api-key-scopes":["*"]}},"/v1/functions":{"get":{"operationId":"functions_list","parameters":[],"responses":{"200":{"description":"ServerlessFunctionViewArray","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ServerlessFunctionViewArray"}}}},"401":{"$ref":"#/components/responses/Unauthorized"},"403":{"$ref":"#/components/responses/Forbidden"},"429":{"$ref":"#/components/responses/TooManyRequests"},"500":{"$ref":"#/components/responses/ServerError"}},"security":[{"JWT":[]},{"ApiKey":[]}],"summary":"List functions","tags":["Functions"],"x-api-key-scopes":["*"]},"post":{"operationId":"functions_create","parameters":[{"$ref":"#/components/parameters/IdempotencyKey"}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/CreateFunctionDto"}}}},"responses":{"201":{"description":"ServerlessFunctionDetail","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ServerlessFunctionDetail"}}}},"400":{"$ref":"#/components/responses/BadRequest"},"401":{"$ref":"#/components/responses/Unauthorized"},"403":{"$ref":"#/components/responses/Forbidden"},"409":{"$ref":"#/components/responses/Conflict"},"429":{"$ref":"#/components/responses/TooManyRequests"},"500":{"$ref":"#/components/responses/ServerError"}},"security":[{"JWT":[]},{"ApiKey":[]}],"summary":"Create a function (optionally with version 1, deployed)","tags":["Functions"],"x-api-key-scopes":["*"]}},"/v1/functions/{id}":{"get":{"operationId":"functions_get","parameters":[{"name":"id","required":true,"in":"path","schema":{"type":"string"}}],"responses":{"200":{"description":"ServerlessFunctionDetail","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ServerlessFunctionDetail"}}}},"400":{"$ref":"#/components/responses/BadRequest"},"401":{"$ref":"#/components/responses/Unauthorized"},"403":{"$ref":"#/components/responses/Forbidden"},"404":{"$ref":"#/components/responses/NotFound"},"429":{"$ref":"#/components/responses/TooManyRequests"},"500":{"$ref":"#/components/responses/ServerError"}},"security":[{"JWT":[]},{"ApiKey":[]}],"summary":"A function with its settings and secret names","tags":["Functions"],"x-api-key-scopes":["*"]},"patch":{"operationId":"functions_update","parameters":[{"name":"id","required":true,"in":"path","schema":{"type":"string"}},{"$ref":"#/components/parameters/IdempotencyKey"}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/UpdateFunctionDto"}}}},"responses":{"200":{"description":"ServerlessFunctionDetail","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ServerlessFunctionDetail"}}}},"400":{"$ref":"#/components/responses/BadRequest"},"401":{"$ref":"#/components/responses/Unauthorized"},"403":{"$ref":"#/components/responses/Forbidden"},"404":{"$ref":"#/components/responses/NotFound"},"409":{"$ref":"#/components/responses/Conflict"},"429":{"$ref":"#/components/responses/TooManyRequests"},"500":{"$ref":"#/components/responses/ServerError"}},"security":[{"JWT":[]},{"ApiKey":[]}],"summary":"Update settings (triggers, limits, network allow-list, scopes)","tags":["Functions"],"x-api-key-scopes":["*"]},"delete":{"operationId":"functions_remove","parameters":[{"name":"id","required":true,"in":"path","schema":{"type":"string"}}],"responses":{"200":{"description":"DeletedResponse","content":{"application/json":{"schema":{"$ref":"#/components/schemas/DeletedResponse"}}}},"400":{"$ref":"#/components/responses/BadRequest"},"401":{"$ref":"#/components/responses/Unauthorized"},"403":{"$ref":"#/components/responses/Forbidden"},"404":{"$ref":"#/components/responses/NotFound"},"429":{"$ref":"#/components/responses/TooManyRequests"},"500":{"$ref":"#/components/responses/ServerError"}},"security":[{"JWT":[]},{"ApiKey":[]}],"summary":"Delete a function, its versions, secrets and schedule","tags":["Functions"],"x-api-key-scopes":["*"]}},"/v1/functions/{id}/versions":{"get":{"operationId":"functions_versions","parameters":[{"name":"id","required":true,"in":"path","schema":{"type":"string"}},{"name":"page","required":false,"in":"query","schema":{"default":1,"type":"string"}},{"name":"limit","required":false,"in":"query","schema":{"default":20,"type":"string"}}],"responses":{"200":{"description":"ServerlessFunctionVersionPage","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ServerlessFunctionVersionPage"}}}},"400":{"$ref":"#/components/responses/BadRequest"},"401":{"$ref":"#/components/responses/Unauthorized"},"403":{"$ref":"#/components/responses/Forbidden"},"404":{"$ref":"#/components/responses/NotFound"},"429":{"$ref":"#/components/responses/TooManyRequests"},"500":{"$ref":"#/components/responses/ServerError"}},"security":[{"JWT":[]},{"ApiKey":[]}],"summary":"Versions, newest first (server-paged, without source)","tags":["Functions"],"x-api-key-scopes":["*"]},"post":{"operationId":"functions_createVersion","parameters":[{"name":"id","required":true,"in":"path","schema":{"type":"string"}},{"$ref":"#/components/parameters/IdempotencyKey"}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/CreateFunctionVersionDto"}}}},"responses":{"201":{"description":"ServerlessFunctionVersionSummary","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ServerlessFunctionVersionSummary"}}}},"400":{"$ref":"#/components/responses/BadRequest"},"401":{"$ref":"#/components/responses/Unauthorized"},"403":{"$ref":"#/components/responses/Forbidden"},"404":{"$ref":"#/components/responses/NotFound"},"409":{"$ref":"#/components/responses/Conflict"},"429":{"$ref":"#/components/responses/TooManyRequests"},"500":{"$ref":"#/components/responses/ServerError"}},"security":[{"JWT":[]},{"ApiKey":[]}],"summary":"Save a new immutable version (compiled now; syntax errors are a 400)","tags":["Functions"],"x-api-key-scopes":["*"]}},"/v1/functions/{id}/versions/{versionId}":{"get":{"operationId":"functions_version","parameters":[{"name":"id","required":true,"in":"path","schema":{"type":"string"}},{"name":"versionId","required":true,"in":"path","schema":{"type":"string"}}],"responses":{"200":{"description":"ServerlessFunctionVersion","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ServerlessFunctionVersion"}}}},"400":{"$ref":"#/components/responses/BadRequest"},"401":{"$ref":"#/components/responses/Unauthorized"},"403":{"$ref":"#/components/responses/Forbidden"},"404":{"$ref":"#/components/responses/NotFound"},"429":{"$ref":"#/components/responses/TooManyRequests"},"500":{"$ref":"#/components/responses/ServerError"}},"security":[{"JWT":[]},{"ApiKey":[]}],"summary":"One version with its source","tags":["Functions"],"x-api-key-scopes":["*"]}},"/v1/functions/{id}/deploy":{"post":{"operationId":"functions_deploy","parameters":[{"name":"id","required":true,"in":"path","schema":{"type":"string"}},{"$ref":"#/components/parameters/IdempotencyKey"}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/DeployFunctionDto"}}}},"responses":{"200":{"description":"ServerlessFunctionDetail","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ServerlessFunctionDetail"}}}},"400":{"$ref":"#/components/responses/BadRequest"},"401":{"$ref":"#/components/responses/Unauthorized"},"403":{"$ref":"#/components/responses/Forbidden"},"404":{"$ref":"#/components/responses/NotFound"},"409":{"$ref":"#/components/responses/Conflict"},"429":{"$ref":"#/components/responses/TooManyRequests"},"500":{"$ref":"#/components/responses/ServerError"}},"security":[{"JWT":[]},{"ApiKey":[]}],"summary":"Make a version the one that runs","tags":["Functions"],"x-api-key-scopes":["*"]}},"/v1/functions/{id}/rollback":{"post":{"operationId":"functions_rollback","parameters":[{"name":"id","required":true,"in":"path","schema":{"type":"string"}},{"$ref":"#/components/parameters/IdempotencyKey"}],"responses":{"200":{"description":"ServerlessFunctionDetail","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ServerlessFunctionDetail"}}}},"400":{"$ref":"#/components/responses/BadRequest"},"401":{"$ref":"#/components/responses/Unauthorized"},"403":{"$ref":"#/components/responses/Forbidden"},"404":{"$ref":"#/components/responses/NotFound"},"409":{"$ref":"#/components/responses/Conflict"},"429":{"$ref":"#/components/responses/TooManyRequests"},"500":{"$ref":"#/components/responses/ServerError"}},"security":[{"JWT":[]},{"ApiKey":[]}],"summary":"Deploy the version before the active one","tags":["Functions"],"x-api-key-scopes":["*"]}},"/v1/functions/{id}/secrets":{"get":{"operationId":"functions_secrets","parameters":[{"name":"id","required":true,"in":"path","schema":{"type":"string"}}],"responses":{"200":{"description":"FunctionSecretNameArray","content":{"application/json":{"schema":{"$ref":"#/components/schemas/FunctionSecretNameArray"}}}},"400":{"$ref":"#/components/responses/BadRequest"},"401":{"$ref":"#/components/responses/Unauthorized"},"403":{"$ref":"#/components/responses/Forbidden"},"404":{"$ref":"#/components/responses/NotFound"},"429":{"$ref":"#/components/responses/TooManyRequests"},"500":{"$ref":"#/components/responses/ServerError"}},"security":[{"JWT":[]},{"ApiKey":[]}],"summary":"Secret names (values are never returned)","tags":["Functions"],"x-api-key-scopes":["*"]}},"/v1/functions/{id}/secrets/{name}":{"put":{"operationId":"functions_setSecret","parameters":[{"name":"id","required":true,"in":"path","schema":{"type":"string"}},{"name":"name","required":true,"in":"path","schema":{"type":"string"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/SetFunctionSecretDto"}}}},"responses":{"200":{"description":"FunctionSecretSaved","content":{"application/json":{"schema":{"$ref":"#/components/schemas/FunctionSecretSaved"}}}},"400":{"$ref":"#/components/responses/BadRequest"},"401":{"$ref":"#/components/responses/Unauthorized"},"403":{"$ref":"#/components/responses/Forbidden"},"404":{"$ref":"#/components/responses/NotFound"},"429":{"$ref":"#/components/responses/TooManyRequests"},"500":{"$ref":"#/components/responses/ServerError"}},"security":[{"JWT":[]},{"ApiKey":[]}],"summary":"Set a secret (stored encrypted)","tags":["Functions"],"x-api-key-scopes":["*"]},"delete":{"operationId":"functions_deleteSecret","parameters":[{"name":"id","required":true,"in":"path","schema":{"type":"string"}},{"name":"name","required":true,"in":"path","schema":{"type":"string"}}],"responses":{"200":{"description":"DeletedResponse","content":{"application/json":{"schema":{"$ref":"#/components/schemas/DeletedResponse"}}}},"400":{"$ref":"#/components/responses/BadRequest"},"401":{"$ref":"#/components/responses/Unauthorized"},"403":{"$ref":"#/components/responses/Forbidden"},"404":{"$ref":"#/components/responses/NotFound"},"429":{"$ref":"#/components/responses/TooManyRequests"},"500":{"$ref":"#/components/responses/ServerError"}},"security":[{"JWT":[]},{"ApiKey":[]}],"summary":"Delete a secret","tags":["Functions"],"x-api-key-scopes":["*"]}},"/v1/functions/{id}/test":{"post":{"operationId":"functions_test","parameters":[{"name":"id","required":true,"in":"path","schema":{"type":"string"}},{"$ref":"#/components/parameters/IdempotencyKey"}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/TestFunctionDto"}}}},"responses":{"200":{"description":"FunctionRunResult","content":{"application/json":{"schema":{"$ref":"#/components/schemas/FunctionRunResult"}}}},"400":{"$ref":"#/components/responses/BadRequest"},"401":{"$ref":"#/components/responses/Unauthorized"},"403":{"$ref":"#/components/responses/Forbidden"},"404":{"$ref":"#/components/responses/NotFound"},"409":{"$ref":"#/components/responses/Conflict"},"429":{"$ref":"#/components/responses/TooManyRequests"},"500":{"$ref":"#/components/responses/ServerError"}},"security":[{"JWT":[]},{"ApiKey":[]}],"summary":"Run with sample input (saved version or unsaved source); logs are returned","tags":["Functions"],"x-api-key-scopes":["*"]}},"/v1/functions/{id}/invocations":{"get":{"operationId":"functions_invocationList","parameters":[{"name":"id","required":true,"in":"path","schema":{"type":"string"}},{"name":"page","required":false,"in":"query","schema":{"default":1,"type":"string"}},{"name":"limit","required":false,"in":"query","schema":{"default":20,"type":"string"}},{"name":"status","required":false,"in":"query","schema":{"type":"string","enum":["SUCCEEDED","FAILED","TIMEOUT","MEMORY_LIMIT","THROTTLED","CRASHED"]}},{"name":"trigger","required":false,"in":"query","schema":{"type":"string","enum":["HTTP","WORKFLOW","ACTION","EVENT","SCHEDULE","TEST"]}}],"responses":{"200":{"description":"ServerlessFunctionInvocationPage","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ServerlessFunctionInvocationPage"}}}},"400":{"$ref":"#/components/responses/BadRequest"},"401":{"$ref":"#/components/responses/Unauthorized"},"403":{"$ref":"#/components/responses/Forbidden"},"404":{"$ref":"#/components/responses/NotFound"},"429":{"$ref":"#/components/responses/TooManyRequests"},"500":{"$ref":"#/components/responses/ServerError"}},"security":[{"JWT":[]},{"ApiKey":[]}],"summary":"Invocation log (server-paged)","tags":["Functions"],"x-api-key-scopes":["*"]}},"/v1/functions/{id}/invocations/{invocationId}":{"get":{"operationId":"functions_invocation","parameters":[{"name":"id","required":true,"in":"path","schema":{"type":"string"}},{"name":"invocationId","required":true,"in":"path","schema":{"type":"string"}}],"responses":{"200":{"description":"ServerlessFunctionInvocation","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ServerlessFunctionInvocation"}}}},"400":{"$ref":"#/components/responses/BadRequest"},"401":{"$ref":"#/components/responses/Unauthorized"},"403":{"$ref":"#/components/responses/Forbidden"},"404":{"$ref":"#/components/responses/NotFound"},"429":{"$ref":"#/components/responses/TooManyRequests"},"500":{"$ref":"#/components/responses/ServerError"}},"security":[{"JWT":[]},{"ApiKey":[]}],"summary":"One invocation with input, output and captured logs","tags":["Functions"],"x-api-key-scopes":["*"]}},"/v1/functions/{id}/invoke":{"post":{"operationId":"functionsInvoke_invoke","parameters":[{"name":"id","required":true,"in":"path","schema":{"type":"string"}},{"name":"x-salesos-function-depth","required":true,"in":"header","schema":{"type":"string"}},{"$ref":"#/components/parameters/IdempotencyKey"}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/InvokeFunctionDto"}}}},"responses":{"200":{"description":"FunctionInvokeResult","content":{"application/json":{"schema":{"$ref":"#/components/schemas/FunctionInvokeResult"}}}},"400":{"$ref":"#/components/responses/BadRequest"},"401":{"$ref":"#/components/responses/Unauthorized"},"403":{"$ref":"#/components/responses/Forbidden"},"404":{"$ref":"#/components/responses/NotFound"},"409":{"$ref":"#/components/responses/Conflict"},"429":{"$ref":"#/components/responses/TooManyRequests"},"500":{"$ref":"#/components/responses/ServerError"}},"security":[{"JWT":[]},{"ApiKey":[]}],"summary":"Invoke a function over HTTP (id or apiName); needs INVOKE_FUNCTIONS for keys and tokens","tags":["Functions"],"x-api-key-scopes":["INVOKE_FUNCTIONS"]}},"/v1/events/org-catalog":{"get":{"operationId":"customEvents_catalog","parameters":[],"responses":{"200":{"description":"OrgEventCatalog","content":{"application/json":{"schema":{"$ref":"#/components/schemas/OrgEventCatalog"}}}},"401":{"$ref":"#/components/responses/Unauthorized"},"403":{"$ref":"#/components/responses/Forbidden"},"429":{"$ref":"#/components/responses/TooManyRequests"},"500":{"$ref":"#/components/responses/ServerError"}},"security":[{"JWT":[]},{"ApiKey":[]}],"summary":"The event catalog plus this organization's custom event types","tags":["Events"],"x-api-key-scopes":["READ_EVENTS"]}},"/v1/events/custom/{apiName}":{"post":{"operationId":"customEvents_publish","parameters":[{"name":"apiName","required":true,"in":"path","schema":{"type":"string"}},{"$ref":"#/components/parameters/IdempotencyKey"}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/PublishCustomEventDto"}}}},"responses":{"202":{"description":"PublishedCustomEvent","content":{"application/json":{"schema":{"$ref":"#/components/schemas/PublishedCustomEvent"}}}},"400":{"$ref":"#/components/responses/BadRequest"},"401":{"$ref":"#/components/responses/Unauthorized"},"403":{"$ref":"#/components/responses/Forbidden"},"404":{"$ref":"#/components/responses/NotFound"},"409":{"$ref":"#/components/responses/Conflict"},"429":{"$ref":"#/components/responses/TooManyRequests"},"500":{"$ref":"#/components/responses/ServerError"}},"security":[{"JWT":[]},{"ApiKey":[]}],"summary":"Publish a custom event (custom.<apiName>); the payload is validated against its schema","tags":["Events"],"x-api-key-scopes":["PUBLISH_EVENTS"]}},"/v1/oauth/authorize":{"get":{"operationId":"oAuth_authorize","parameters":[{"name":"response_type","required":false,"in":"query","schema":{"example":"code","type":"string"}},{"name":"client_id","required":false,"in":"query","schema":{"type":"string"}},{"name":"redirect_uri","required":false,"in":"query","schema":{"type":"string"}},{"name":"scope","required":false,"in":"query","schema":{"example":"READ_LEADS offline_access","type":"string"}},{"name":"state","required":false,"in":"query","schema":{"type":"string"}},{"name":"code_challenge","required":false,"in":"query","schema":{"type":"string"}},{"name":"code_challenge_method","required":false,"in":"query","schema":{"example":"S256","type":"string"}},{"name":"nonce","required":false,"in":"query","schema":{"type":"string"}},{"name":"prompt","required":false,"in":"query","schema":{"type":"string","enum":["none","consent","login"]}}],"responses":{"200":{"description":""},"400":{"$ref":"#/components/responses/BadRequest"},"429":{"$ref":"#/components/responses/TooManyRequests"},"500":{"$ref":"#/components/responses/ServerError"}},"summary":"Start an authorization request (redirects to the SalesOS consent screen)","tags":["OAuth"],"security":[]}},"/v1/oauth/token":{"post":{"operationId":"oAuth_token","parameters":[{"$ref":"#/components/parameters/IdempotencyKey"}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/TokenRequestDto"}}}},"responses":{"201":{"description":""},"400":{"$ref":"#/components/responses/BadRequest"},"409":{"$ref":"#/components/responses/Conflict"},"429":{"$ref":"#/components/responses/TooManyRequests"},"500":{"$ref":"#/components/responses/ServerError"}},"summary":"Token endpoint: authorization_code (+PKCE), refresh_token, client_credentials","tags":["OAuth"],"security":[]}},"/v1/oauth/revoke":{"post":{"operationId":"oAuth_revoke","parameters":[{"$ref":"#/components/parameters/IdempotencyKey"}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/TokenRequestDto"}}}},"responses":{"201":{"description":""},"400":{"$ref":"#/components/responses/BadRequest"},"409":{"$ref":"#/components/responses/Conflict"},"429":{"$ref":"#/components/responses/TooManyRequests"},"500":{"$ref":"#/components/responses/ServerError"}},"summary":"Revoke an access or refresh token (RFC 7009)","tags":["OAuth"],"security":[]}},"/v1/oauth/introspect":{"post":{"operationId":"oAuth_introspect","parameters":[{"$ref":"#/components/parameters/IdempotencyKey"}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/TokenRequestDto"}}}},"responses":{"201":{"description":""},"400":{"$ref":"#/components/responses/BadRequest"},"409":{"$ref":"#/components/responses/Conflict"},"429":{"$ref":"#/components/responses/TooManyRequests"},"500":{"$ref":"#/components/responses/ServerError"}},"summary":"Introspect one of the calling client's tokens (RFC 7662)","tags":["OAuth"],"security":[]}},"/v1/oauth/userinfo":{"get":{"operationId":"oAuth_userinfoGet","parameters":[],"responses":{"200":{"description":""},"429":{"$ref":"#/components/responses/TooManyRequests"},"500":{"$ref":"#/components/responses/ServerError"}},"summary":"OpenID Connect userinfo for an access token with the openid scope","tags":["OAuth"],"security":[]},"post":{"operationId":"oAuth_userinfoPost","parameters":[{"$ref":"#/components/parameters/IdempotencyKey"}],"responses":{"200":{"description":""},"400":{"$ref":"#/components/responses/BadRequest"},"409":{"$ref":"#/components/responses/Conflict"},"429":{"$ref":"#/components/responses/TooManyRequests"},"500":{"$ref":"#/components/responses/ServerError"}},"summary":"OpenID Connect userinfo (POST form)","tags":["OAuth"],"security":[]}},"/v1/oauth/jwks":{"get":{"operationId":"oAuth_jwks","parameters":[],"responses":{"200":{"description":""},"429":{"$ref":"#/components/responses/TooManyRequests"},"500":{"$ref":"#/components/responses/ServerError"}},"summary":"JSON Web Key Set for id_token signatures","tags":["OAuth"],"security":[]}},"/v1/oauth/scopes":{"get":{"operationId":"oAuth_scopes","parameters":[],"responses":{"200":{"description":""},"429":{"$ref":"#/components/responses/TooManyRequests"},"500":{"$ref":"#/components/responses/ServerError"}},"summary":"Every scope an OAuth app may request, in plain language","tags":["OAuth"],"security":[]}},"/v1/app-runtime/installation":{"get":{"operationId":"appRuntime_installation","parameters":[],"responses":{"200":{"description":""},"401":{"$ref":"#/components/responses/Unauthorized"},"403":{"$ref":"#/components/responses/Forbidden"},"429":{"$ref":"#/components/responses/TooManyRequests"},"500":{"$ref":"#/components/responses/ServerError"}},"security":[{"JWT":[]},{"ApiKey":[]}],"summary":"The calling app's installation in this organization: version, granted scopes and settings","tags":["App Runtime"]}},"/v1/marketplace/listings":{"get":{"operationId":"marketplacePublic_listings","parameters":[{"name":"q","required":false,"in":"query","description":"Search name, tagline, publisher and description","schema":{"maxLength":100,"type":"string"}},{"name":"category","required":false,"in":"query","description":"A category key from GET /marketplace/categories","schema":{"maxLength":40,"type":"string"}},{"name":"sort","required":false,"in":"query","schema":{"type":"string","enum":["popular","rating","newest","name"]}},{"name":"page","required":false,"in":"query","schema":{"minimum":1,"maximum":1000,"default":1,"type":"number"}},{"name":"limit","required":false,"in":"query","schema":{"minimum":1,"maximum":50,"default":24,"type":"number"}}],"responses":{"200":{"description":"MarketplaceListingPage","content":{"application/json":{"schema":{"$ref":"#/components/schemas/MarketplaceListingPage"}}}},"400":{"$ref":"#/components/responses/BadRequest"},"429":{"$ref":"#/components/responses/TooManyRequests"},"500":{"$ref":"#/components/responses/ServerError"}},"summary":"Search approved marketplace listings","tags":["Marketplace"],"security":[]}},"/v1/marketplace/categories":{"get":{"operationId":"marketplacePublic_categories","parameters":[],"responses":{"200":{"description":"MarketplaceCategoryArray","content":{"application/json":{"schema":{"$ref":"#/components/schemas/MarketplaceCategoryArray"}}}},"429":{"$ref":"#/components/responses/TooManyRequests"},"500":{"$ref":"#/components/responses/ServerError"}},"summary":"Marketplace categories with listing counts","tags":["Marketplace"],"security":[]}},"/v1/marketplace/listings/{slug}":{"get":{"operationId":"marketplacePublic_listing","parameters":[{"name":"slug","required":true,"in":"path","schema":{"type":"string"}}],"responses":{"200":{"description":"MarketplaceListingDetail","content":{"application/json":{"schema":{"$ref":"#/components/schemas/MarketplaceListingDetail"}}}},"400":{"$ref":"#/components/responses/BadRequest"},"404":{"$ref":"#/components/responses/NotFound"},"429":{"$ref":"#/components/responses/TooManyRequests"},"500":{"$ref":"#/components/responses/ServerError"}},"summary":"One approved listing: description, screenshots, requested scopes in plain language, components","tags":["Marketplace"],"security":[]}},"/v1/marketplace/listings/{slug}/reviews":{"get":{"operationId":"marketplacePublic_reviews","parameters":[{"name":"slug","required":true,"in":"path","schema":{"type":"string"}},{"name":"page","required":false,"in":"query","schema":{"minimum":1,"maximum":1000,"default":1,"type":"number"}},{"name":"limit","required":false,"in":"query","schema":{"minimum":1,"maximum":50,"default":20,"type":"number"}}],"responses":{"200":{"description":"MarketplaceReviewPage","content":{"application/json":{"schema":{"$ref":"#/components/schemas/MarketplaceReviewPage"}}}},"400":{"$ref":"#/components/responses/BadRequest"},"404":{"$ref":"#/components/responses/NotFound"},"429":{"$ref":"#/components/responses/TooManyRequests"},"500":{"$ref":"#/components/responses/ServerError"}},"summary":"A listing's ratings and reviews, newest first","tags":["Marketplace"],"security":[]}},"/v1/metadata/types":{"get":{"operationId":"metadata_types","parameters":[],"responses":{"200":{"description":"","content":{"application/json":{"schema":{"type":"object","properties":{"formatVersion":{"type":"integer"},"projectFile":{"type":"string"},"defaultSourceDir":{"type":"string"},"schema":{"type":"string"},"limits":{"type":"object","additionalProperties":{"type":"integer"}},"types":{"type":"array","items":{"type":"object","additionalProperties":true}}}}}}},"401":{"$ref":"#/components/responses/Unauthorized"},"403":{"$ref":"#/components/responses/Forbidden"},"429":{"$ref":"#/components/responses/TooManyRequests"},"500":{"$ref":"#/components/responses/ServerError"}},"security":[{"JWT":[]},{"ApiKey":[]}],"summary":"Component types, source paths and limits of the source format","tags":["Metadata"],"x-api-key-scopes":["MANAGE_METADATA"]}},"/v1/metadata/retrieve":{"post":{"operationId":"metadata_retrieve","parameters":[],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/RetrieveMetadataDto"}}}},"responses":{"200":{"description":"","content":{"application/json":{"schema":{"type":"object","properties":{"formatVersion":{"type":"integer"},"organizationId":{"type":"string"},"retrievedAt":{"type":"string","format":"date-time"},"project":{"type":"object","additionalProperties":true},"sourceDir":{"type":"string"},"files":{"type":"object","additionalProperties":{"type":"string"}},"components":{"type":"array","items":{"type":"object","properties":{"type":{"type":"string"},"key":{"type":"string"},"path":{"type":"string"}}}}}}}}},"400":{"$ref":"#/components/responses/BadRequest"},"401":{"$ref":"#/components/responses/Unauthorized"},"403":{"$ref":"#/components/responses/Forbidden"},"429":{"$ref":"#/components/responses/TooManyRequests"},"500":{"$ref":"#/components/responses/ServerError"}},"security":[{"JWT":[]},{"ApiKey":[]}],"summary":"Retrieve metadata as source files (all types, chosen types or chosen components)","tags":["Metadata"],"x-api-key-scopes":["MANAGE_METADATA"]}},"/v1/metadata/deploy":{"post":{"operationId":"metadata_deploy","parameters":[{"$ref":"#/components/parameters/IdempotencyKey"}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/DeployMetadataDto"}}}},"responses":{"202":{"description":"","content":{"application/json":{"schema":{"type":"object","properties":{"id":{"type":"string"},"status":{"type":"string","enum":["QUEUED","RUNNING","SUCCEEDED","FAILED","CANCELED"]},"checkOnly":{"type":"boolean"},"activate":{"type":"boolean"},"runTests":{"type":"string","enum":["NONE","SPECIFIED","ALL"]},"phase":{"type":"string"},"done":{"type":"integer"},"total":{"type":"integer"},"label":{"type":"string","nullable":true},"packageHash":{"type":"string"},"componentCount":{"type":"integer"},"summary":{"type":"object","additionalProperties":{"type":"integer"},"nullable":true},"errorMessage":{"type":"string","nullable":true},"rerunOfId":{"type":"string","nullable":true},"createdById":{"type":"string"},"createdByEmail":{"type":"string","nullable":true},"createdByName":{"type":"string","nullable":true},"authMethod":{"type":"string","enum":["session","api_key","oauth"]},"startedAt":{"type":"string","format":"date-time","nullable":true},"finishedAt":{"type":"string","format":"date-time","nullable":true},"createdAt":{"type":"string","format":"date-time"}}}}}},"400":{"$ref":"#/components/responses/BadRequest"},"401":{"$ref":"#/components/responses/Unauthorized"},"403":{"$ref":"#/components/responses/Forbidden"},"409":{"$ref":"#/components/responses/Conflict"},"429":{"$ref":"#/components/responses/TooManyRequests"},"500":{"$ref":"#/components/responses/ServerError"}},"security":[{"JWT":[]},{"ApiKey":[]}],"summary":"Queue a deploy (or checkOnly validation) of source files; poll GET /metadata/deploys/:id","tags":["Metadata"],"x-api-key-scopes":["MANAGE_METADATA"]}},"/v1/metadata/deploys":{"get":{"operationId":"metadata_list","parameters":[{"name":"page","required":false,"in":"query","schema":{"default":1,"type":"string"}},{"name":"limit","required":false,"in":"query","schema":{"default":20,"type":"string"}},{"name":"status","required":false,"in":"query","schema":{"type":"string","enum":["QUEUED","RUNNING","SUCCEEDED","FAILED","CANCELED"]}}],"responses":{"200":{"description":"","content":{"application/json":{"schema":{"type":"object","properties":{"data":{"type":"array","items":{"type":"object","properties":{"id":{"type":"string"},"status":{"type":"string","enum":["QUEUED","RUNNING","SUCCEEDED","FAILED","CANCELED"]},"checkOnly":{"type":"boolean"},"activate":{"type":"boolean"},"runTests":{"type":"string","enum":["NONE","SPECIFIED","ALL"]},"phase":{"type":"string"},"done":{"type":"integer"},"total":{"type":"integer"},"label":{"type":"string","nullable":true},"packageHash":{"type":"string"},"componentCount":{"type":"integer"},"summary":{"type":"object","additionalProperties":{"type":"integer"},"nullable":true},"errorMessage":{"type":"string","nullable":true},"rerunOfId":{"type":"string","nullable":true},"createdById":{"type":"string"},"createdByEmail":{"type":"string","nullable":true},"createdByName":{"type":"string","nullable":true},"authMethod":{"type":"string","enum":["session","api_key","oauth"]},"startedAt":{"type":"string","format":"date-time","nullable":true},"finishedAt":{"type":"string","format":"date-time","nullable":true},"createdAt":{"type":"string","format":"date-time"}}}},"total":{"type":"integer"},"page":{"type":"integer"},"limit":{"type":"integer"},"totalPages":{"type":"integer"}}}}}},"400":{"$ref":"#/components/responses/BadRequest"},"401":{"$ref":"#/components/responses/Unauthorized"},"403":{"$ref":"#/components/responses/Forbidden"},"429":{"$ref":"#/components/responses/TooManyRequests"},"500":{"$ref":"#/components/responses/ServerError"}},"security":[{"JWT":[]},{"ApiKey":[]}],"summary":"Deploy history, newest first (server-paged)","tags":["Metadata"],"x-api-key-scopes":["MANAGE_METADATA"]}},"/v1/metadata/deploys/{id}":{"get":{"operationId":"metadata_get","parameters":[{"name":"id","required":true,"in":"path","schema":{"type":"string"}}],"responses":{"200":{"description":"","content":{"application/json":{"schema":{"allOf":[{"type":"object","properties":{"id":{"type":"string"},"status":{"type":"string","enum":["QUEUED","RUNNING","SUCCEEDED","FAILED","CANCELED"]},"checkOnly":{"type":"boolean"},"activate":{"type":"boolean"},"runTests":{"type":"string","enum":["NONE","SPECIFIED","ALL"]},"phase":{"type":"string"},"done":{"type":"integer"},"total":{"type":"integer"},"label":{"type":"string","nullable":true},"packageHash":{"type":"string"},"componentCount":{"type":"integer"},"summary":{"type":"object","additionalProperties":{"type":"integer"},"nullable":true},"errorMessage":{"type":"string","nullable":true},"rerunOfId":{"type":"string","nullable":true},"createdById":{"type":"string"},"createdByEmail":{"type":"string","nullable":true},"createdByName":{"type":"string","nullable":true},"authMethod":{"type":"string","enum":["session","api_key","oauth"]},"startedAt":{"type":"string","format":"date-time","nullable":true},"finishedAt":{"type":"string","format":"date-time","nullable":true},"createdAt":{"type":"string","format":"date-time"}}},{"type":"object","properties":{"packageAvailable":{"type":"boolean"},"testResults":{"type":"object","properties":{"runTests":{"type":"string"},"total":{"type":"integer"},"passed":{"type":"integer"},"failed":{"type":"integer"},"durationMs":{"type":"integer"},"results":{"type":"array","items":{"type":"object","properties":{"id":{"type":"string"},"kind":{"type":"string","enum":["FUNCTION","FLOW","VALIDATION_RULE","FORMULA"]},"name":{"type":"string"},"target":{"type":"string"},"path":{"type":"string"},"source":{"type":"string","enum":["package","org"]},"status":{"type":"string","enum":["passed","failed","error","skipped"]},"durationMs":{"type":"integer"},"message":{"type":"string","nullable":true},"details":{"type":"object","additionalProperties":true}}}}},"nullable":true},"results":{"type":"array","items":{"type":"object","properties":{"type":{"type":"string"},"key":{"type":"string"},"name":{"type":"string"},"path":{"type":"string","nullable":true},"action":{"type":"string","enum":["CREATE","UPDATE","UNCHANGED","DELETE","SKIP"]},"status":{"type":"string","enum":["planned","validated","succeeded","unchanged","failed","rolled_back","skipped"]},"problems":{"type":"array","items":{"type":"object","properties":{"severity":{"type":"string","enum":["error","warning"]},"message":{"type":"string"}}}},"targetId":{"type":"string"},"note":{"type":"string"}}}}}}]}}}},"400":{"$ref":"#/components/responses/BadRequest"},"401":{"$ref":"#/components/responses/Unauthorized"},"403":{"$ref":"#/components/responses/Forbidden"},"404":{"$ref":"#/components/responses/NotFound"},"429":{"$ref":"#/components/responses/TooManyRequests"},"500":{"$ref":"#/components/responses/ServerError"}},"security":[{"JWT":[]},{"ApiKey":[]}],"summary":"One deploy: status, progress and the result per component","tags":["Metadata"],"x-api-key-scopes":["MANAGE_METADATA"]}},"/v1/metadata/deploys/{id}/check":{"post":{"operationId":"metadata_rerun","parameters":[{"name":"id","required":true,"in":"path","schema":{"type":"string"}},{"$ref":"#/components/parameters/IdempotencyKey"}],"responses":{"202":{"description":"","content":{"application/json":{"schema":{"type":"object","properties":{"id":{"type":"string"},"status":{"type":"string","enum":["QUEUED","RUNNING","SUCCEEDED","FAILED","CANCELED"]},"checkOnly":{"type":"boolean"},"activate":{"type":"boolean"},"runTests":{"type":"string","enum":["NONE","SPECIFIED","ALL"]},"phase":{"type":"string"},"done":{"type":"integer"},"total":{"type":"integer"},"label":{"type":"string","nullable":true},"packageHash":{"type":"string"},"componentCount":{"type":"integer"},"summary":{"type":"object","additionalProperties":{"type":"integer"},"nullable":true},"errorMessage":{"type":"string","nullable":true},"rerunOfId":{"type":"string","nullable":true},"createdById":{"type":"string"},"createdByEmail":{"type":"string","nullable":true},"createdByName":{"type":"string","nullable":true},"authMethod":{"type":"string","enum":["session","api_key","oauth"]},"startedAt":{"type":"string","format":"date-time","nullable":true},"finishedAt":{"type":"string","format":"date-time","nullable":true},"createdAt":{"type":"string","format":"date-time"}}}}}},"400":{"$ref":"#/components/responses/BadRequest"},"401":{"$ref":"#/components/responses/Unauthorized"},"403":{"$ref":"#/components/responses/Forbidden"},"404":{"$ref":"#/components/responses/NotFound"},"409":{"$ref":"#/components/responses/Conflict"},"429":{"$ref":"#/components/responses/TooManyRequests"},"500":{"$ref":"#/components/responses/ServerError"}},"security":[{"JWT":[]},{"ApiKey":[]}],"summary":"Re-run a deploy's package as check-only against the org as it is now","tags":["Metadata"],"x-api-key-scopes":["MANAGE_METADATA"]}},"/v1/metadata/test-policy":{"get":{"operationId":"metadata_testPolicy","parameters":[],"responses":{"200":{"description":"","content":{"application/json":{"schema":{"type":"object","properties":{"requireTestsFor":{"type":"array","items":{"type":"string","enum":["FUNCTION","FLOW"]}}}}}}},"401":{"$ref":"#/components/responses/Unauthorized"},"403":{"$ref":"#/components/responses/Forbidden"},"429":{"$ref":"#/components/responses/TooManyRequests"},"500":{"$ref":"#/components/responses/ServerError"}},"security":[{"JWT":[]},{"ApiKey":[]}],"summary":"The org policy for deploy tests (component types that need a covering test)","tags":["Metadata"],"x-api-key-scopes":["MANAGE_METADATA"]},"put":{"operationId":"metadata_setTestPolicy","parameters":[],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/MetadataTestPolicyDto"}}}},"responses":{"200":{"description":"","content":{"application/json":{"schema":{"type":"object","properties":{"requireTestsFor":{"type":"array","items":{"type":"string","enum":["FUNCTION","FLOW"]}}}}}}},"400":{"$ref":"#/components/responses/BadRequest"},"401":{"$ref":"#/components/responses/Unauthorized"},"403":{"$ref":"#/components/responses/Forbidden"},"429":{"$ref":"#/components/responses/TooManyRequests"},"500":{"$ref":"#/components/responses/ServerError"}},"security":[{"JWT":[]},{"ApiKey":[]}],"summary":"Require a covering test for every function or flow a deploy creates or changes","tags":["Metadata"],"x-api-key-scopes":["MANAGE_METADATA"]}},"/v1/metadata/deploys/{id}/cancel":{"post":{"operationId":"metadata_cancel","parameters":[{"name":"id","required":true,"in":"path","schema":{"type":"string"}},{"$ref":"#/components/parameters/IdempotencyKey"}],"responses":{"200":{"description":"","content":{"application/json":{"schema":{"allOf":[{"type":"object","properties":{"id":{"type":"string"},"status":{"type":"string","enum":["QUEUED","RUNNING","SUCCEEDED","FAILED","CANCELED"]},"checkOnly":{"type":"boolean"},"activate":{"type":"boolean"},"runTests":{"type":"string","enum":["NONE","SPECIFIED","ALL"]},"phase":{"type":"string"},"done":{"type":"integer"},"total":{"type":"integer"},"label":{"type":"string","nullable":true},"packageHash":{"type":"string"},"componentCount":{"type":"integer"},"summary":{"type":"object","additionalProperties":{"type":"integer"},"nullable":true},"errorMessage":{"type":"string","nullable":true},"rerunOfId":{"type":"string","nullable":true},"createdById":{"type":"string"},"createdByEmail":{"type":"string","nullable":true},"createdByName":{"type":"string","nullable":true},"authMethod":{"type":"string","enum":["session","api_key","oauth"]},"startedAt":{"type":"string","format":"date-time","nullable":true},"finishedAt":{"type":"string","format":"date-time","nullable":true},"createdAt":{"type":"string","format":"date-time"}}},{"type":"object","properties":{"packageAvailable":{"type":"boolean"},"testResults":{"type":"object","properties":{"runTests":{"type":"string"},"total":{"type":"integer"},"passed":{"type":"integer"},"failed":{"type":"integer"},"durationMs":{"type":"integer"},"results":{"type":"array","items":{"type":"object","properties":{"id":{"type":"string"},"kind":{"type":"string","enum":["FUNCTION","FLOW","VALIDATION_RULE","FORMULA"]},"name":{"type":"string"},"target":{"type":"string"},"path":{"type":"string"},"source":{"type":"string","enum":["package","org"]},"status":{"type":"string","enum":["passed","failed","error","skipped"]},"durationMs":{"type":"integer"},"message":{"type":"string","nullable":true},"details":{"type":"object","additionalProperties":true}}}}},"nullable":true},"results":{"type":"array","items":{"type":"object","properties":{"type":{"type":"string"},"key":{"type":"string"},"name":{"type":"string"},"path":{"type":"string","nullable":true},"action":{"type":"string","enum":["CREATE","UPDATE","UNCHANGED","DELETE","SKIP"]},"status":{"type":"string","enum":["planned","validated","succeeded","unchanged","failed","rolled_back","skipped"]},"problems":{"type":"array","items":{"type":"object","properties":{"severity":{"type":"string","enum":["error","warning"]},"message":{"type":"string"}}}},"targetId":{"type":"string"},"note":{"type":"string"}}}}}}]}}}},"400":{"$ref":"#/components/responses/BadRequest"},"401":{"$ref":"#/components/responses/Unauthorized"},"403":{"$ref":"#/components/responses/Forbidden"},"404":{"$ref":"#/components/responses/NotFound"},"409":{"$ref":"#/components/responses/Conflict"},"429":{"$ref":"#/components/responses/TooManyRequests"},"500":{"$ref":"#/components/responses/ServerError"}},"security":[{"JWT":[]},{"ApiKey":[]}],"summary":"Cancel a queued deploy","tags":["Metadata"],"x-api-key-scopes":["MANAGE_METADATA"]}},"/v1/flows":{"get":{"operationId":"flowRun_list","parameters":[{"name":"status","required":false,"in":"query","schema":{"type":"string","enum":["ACTIVE"]}},{"name":"context","required":false,"in":"query","description":"e.g. `record:LEAD`, `list:ACCOUNT`, `page`, `standalone`.","schema":{"type":"string"}}],"responses":{"200":{"description":"","content":{"application/json":{"schema":{"$ref":"#/components/schemas/FlowListView"}}}},"400":{"$ref":"#/components/responses/BadRequest"},"401":{"$ref":"#/components/responses/Unauthorized"},"403":{"$ref":"#/components/responses/Forbidden"},"429":{"$ref":"#/components/responses/TooManyRequests"},"500":{"$ref":"#/components/responses/ServerError"}},"security":[{"JWT":[]},{"ApiKey":[]}],"summary":"Active flows (optionally for one launch context)","tags":["Flows"]}},"/v1/flows/interviews":{"get":{"operationId":"flowRun_mine","parameters":[],"responses":{"200":{"description":"","content":{"application/json":{"schema":{"$ref":"#/components/schemas/FlowInterviewListView"}}}},"401":{"$ref":"#/components/responses/Unauthorized"},"403":{"$ref":"#/components/responses/Forbidden"},"429":{"$ref":"#/components/responses/TooManyRequests"},"500":{"$ref":"#/components/responses/ServerError"}},"security":[{"JWT":[]},{"ApiKey":[]}],"summary":"Your paused interviews, to resume","tags":["Flows"]}},"/v1/flows/{idOrApiName}/interviews":{"post":{"operationId":"flowRun_start","parameters":[{"name":"idOrApiName","required":true,"in":"path","schema":{"type":"string"}},{"$ref":"#/components/parameters/IdempotencyKey"}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/StartInterviewDto"}}}},"responses":{"201":{"description":"","content":{"application/json":{"schema":{"$ref":"#/components/schemas/FlowInterviewView"}}}},"400":{"$ref":"#/components/responses/BadRequest"},"401":{"$ref":"#/components/responses/Unauthorized"},"403":{"$ref":"#/components/responses/Forbidden"},"404":{"$ref":"#/components/responses/NotFound"},"409":{"$ref":"#/components/responses/Conflict"},"429":{"$ref":"#/components/responses/TooManyRequests"},"500":{"$ref":"#/components/responses/ServerError"}},"security":[{"JWT":[]},{"ApiKey":[]}],"summary":"Start a flow (runs to its first screen or the end)","tags":["Flows"]}},"/v1/flows/interviews/{id}":{"get":{"operationId":"flowRun_get","parameters":[{"name":"id","required":true,"in":"path","schema":{"type":"string"}}],"responses":{"200":{"description":"","content":{"application/json":{"schema":{"$ref":"#/components/schemas/FlowInterviewView"}}}},"400":{"$ref":"#/components/responses/BadRequest"},"401":{"$ref":"#/components/responses/Unauthorized"},"403":{"$ref":"#/components/responses/Forbidden"},"404":{"$ref":"#/components/responses/NotFound"},"429":{"$ref":"#/components/responses/TooManyRequests"},"500":{"$ref":"#/components/responses/ServerError"}},"security":[{"JWT":[]},{"ApiKey":[]}],"summary":"Resume: the interview’s current screen or result","tags":["Flows"]}},"/v1/flows/interviews/{id}/next":{"post":{"operationId":"flowRun_next","parameters":[{"name":"id","required":true,"in":"path","schema":{"type":"string"}},{"$ref":"#/components/parameters/IdempotencyKey"}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/InterviewStepDto"}}}},"responses":{"200":{"description":"","content":{"application/json":{"schema":{"$ref":"#/components/schemas/FlowInterviewView"}}}},"400":{"$ref":"#/components/responses/BadRequest"},"401":{"$ref":"#/components/responses/Unauthorized"},"403":{"$ref":"#/components/responses/Forbidden"},"404":{"$ref":"#/components/responses/NotFound"},"409":{"$ref":"#/components/responses/Conflict"},"429":{"$ref":"#/components/responses/TooManyRequests"},"500":{"$ref":"#/components/responses/ServerError"}},"security":[{"JWT":[]},{"ApiKey":[]}],"summary":"Submit the current screen (validated server-side) and continue","tags":["Flows"]}},"/v1/flows/interviews/{id}/back":{"post":{"operationId":"flowRun_back","parameters":[{"name":"id","required":true,"in":"path","schema":{"type":"string"}},{"$ref":"#/components/parameters/IdempotencyKey"}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/InterviewRevisionDto"}}}},"responses":{"200":{"description":"","content":{"application/json":{"schema":{"$ref":"#/components/schemas/FlowInterviewView"}}}},"400":{"$ref":"#/components/responses/BadRequest"},"401":{"$ref":"#/components/responses/Unauthorized"},"403":{"$ref":"#/components/responses/Forbidden"},"404":{"$ref":"#/components/responses/NotFound"},"409":{"$ref":"#/components/responses/Conflict"},"429":{"$ref":"#/components/responses/TooManyRequests"},"500":{"$ref":"#/components/responses/ServerError"}},"security":[{"JWT":[]},{"ApiKey":[]}],"summary":"Return to the previous screen (when no write happened since)","tags":["Flows"]}},"/v1/flows/interviews/{id}/cancel":{"post":{"operationId":"flowRun_cancel","parameters":[{"name":"id","required":true,"in":"path","schema":{"type":"string"}},{"$ref":"#/components/parameters/IdempotencyKey"}],"responses":{"200":{"description":"","content":{"application/json":{"schema":{"$ref":"#/components/schemas/FlowInterviewView"}}}},"400":{"$ref":"#/components/responses/BadRequest"},"401":{"$ref":"#/components/responses/Unauthorized"},"403":{"$ref":"#/components/responses/Forbidden"},"404":{"$ref":"#/components/responses/NotFound"},"409":{"$ref":"#/components/responses/Conflict"},"429":{"$ref":"#/components/responses/TooManyRequests"},"500":{"$ref":"#/components/responses/ServerError"}},"security":[{"JWT":[]},{"ApiKey":[]}],"summary":"Cancel an interview","tags":["Flows"]}},"/v1/webhooks/listen":{"post":{"operationId":"eventStream_listen","parameters":[],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ListenEventsDto"}}}},"responses":{"200":{"description":"text/event-stream: `ready`, then `event` frames (data = webhook envelope JSON), `dropped`, `end`","content":{"text/event-stream":{"schema":{"type":"string"}}}},"400":{"$ref":"#/components/responses/BadRequest"},"401":{"$ref":"#/components/responses/Unauthorized"},"403":{"$ref":"#/components/responses/Forbidden"},"429":{"$ref":"#/components/responses/TooManyRequests"},"500":{"$ref":"#/components/responses/ServerError"}},"security":[{"JWT":[]},{"ApiKey":[]}],"summary":"Stream live catalog events as Server-Sent Events (text/event-stream); each `event` frame is the webhook envelope body","tags":["Webhooks"],"x-api-key-scopes":["WRITE_WEBHOOKS"]}},"/v1/webhooks/listen/trigger":{"post":{"operationId":"eventStream_trigger","parameters":[{"$ref":"#/components/parameters/IdempotencyKey"}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/TriggerEventDto"}}}},"responses":{"200":{"description":"","content":{"application/json":{"schema":{"type":"object","properties":{"eventId":{"type":"string"},"type":{"type":"string"},"delivered":{"type":"integer"}}}}}},"400":{"$ref":"#/components/responses/BadRequest"},"401":{"$ref":"#/components/responses/Unauthorized"},"403":{"$ref":"#/components/responses/Forbidden"},"409":{"$ref":"#/components/responses/Conflict"},"429":{"$ref":"#/components/responses/TooManyRequests"},"500":{"$ref":"#/components/responses/ServerError"}},"security":[{"JWT":[]},{"ApiKey":[]}],"summary":"Send an event type's catalog sample (test: true) to this org's listen sessions only","tags":["Webhooks"],"x-api-key-scopes":["WRITE_WEBHOOKS"]}}},"info":{"title":"SalesOS API","description":"Programmatic access to SalesOS CRM data, CPQ, automation and AI. Guides: https://docs.salesos.org/developers. Every response carries an `API-Version` header; deprecated operations add `Deprecation`, `Sunset` and `Link` headers.","version":"1.1.0","contact":{}},"tags":[{"name":"GraphQL","description":"Read-only GraphQL over the CRM, including custom objects"},{"name":"Leads","description":"Lead management and conversion"},{"name":"Contacts","description":"Contact records and relationships"},{"name":"Accounts","description":"Account/company management"},{"name":"Opportunities","description":"Opportunity tracking and pipeline"},{"name":"Pipelines","description":"Sales pipeline configuration"},{"name":"Products","description":"Product catalog management"},{"name":"Quotes","description":"Quote creation and management"},{"name":"Quote Versions","description":"Quote revision history"},{"name":"Orders","description":"Order processing and fulfillment"},{"name":"Contracts","description":"Contract lifecycle management"},{"name":"Tasks","description":"Task management and assignment"},{"name":"Cases","description":"Customer service cases and comments"},{"name":"Activities","description":"Activity tracking and logging"},{"name":"Notes","description":"Notes on records"},{"name":"Campaigns","description":"Marketing campaign management"},{"name":"Competitors","description":"Competitor tracking and battlecards"},{"name":"Custom Objects","description":"User-defined entities and their records"},{"name":"Custom Fields","description":"Custom field definitions on standard objects"},{"name":"Deal Scoring","description":"AI-powered deal health scoring"},{"name":"Deal Progression","description":"Deal stage progression tracking and velocity"},{"name":"Deal Rooms","description":"Collaborative digital sales rooms"},{"name":"Digital Sales Rooms","description":"Buyer-facing deal collaboration spaces"},{"name":"Buyer Intent","description":"Buyer engagement signals and intent scoring"},{"name":"Pipeline Simulation","description":"What-if scenario modeling for pipeline"},{"name":"Account Health","description":"Account health scoring and monitoring"},{"name":"Health Auto Triage","description":"Automatic detection of at-risk accounts"},{"name":"Price Books","description":"Price book management"},{"name":"Discount Rules","description":"Discount approval rules and thresholds"},{"name":"Tax Rates","description":"Tax rate configuration"},{"name":"Approval Workflows","description":"Multi-step approval processes"},{"name":"Interactive Proposals","description":"Dynamic trackable proposals"},{"name":"Invoice Management","description":"Invoice creation, sending, and tracking"},{"name":"Splits","description":"Revenue and commission split configuration"},{"name":"Territories","description":"Sales territory management"},{"name":"Assignment Rules","description":"Lead and record routing rules"},{"name":"Quota & Forecast","description":"Quotas, forecast submissions and snapshots"},{"name":"Sequences","description":"Multi-step outreach sequences"},{"name":"Sales Inbox","description":"AI-prioritized sales inbox"},{"name":"Smart Email","description":"AI-powered email composition"},{"name":"Smart Capture","description":"Automatic activity logging"},{"name":"Conversations","description":"Conversation threads and messaging"},{"name":"Call Intelligence","description":"Call recording analysis and insights"},{"name":"Conversation Intelligence","description":"AI analysis of sales conversations"},{"name":"Meetings","description":"Meeting scheduling and management"},{"name":"Meeting Briefings","description":"AI-generated pre-meeting briefings"},{"name":"Smart Scheduler","description":"Intelligent meeting scheduling"},{"name":"Calendar Integrations","description":"Calendar sync and management"},{"name":"Email Templates","description":"Email template management"},{"name":"Email Inbox","description":"Email inbox sync and management"},{"name":"Email Integrations","description":"Email provider connections"},{"name":"Email Tracking","description":"Email open and click tracking"},{"name":"Unified Communications","description":"Aggregated communication timeline"},{"name":"Team Messages","description":"Internal team messaging"},{"name":"CPQ Analytics","description":"Configure-Price-Quote analytics"},{"name":"Reports","description":"Reporting and analytics"},{"name":"Custom Reports","description":"Saved report definitions and runs"},{"name":"Dashboard","description":"Dashboard data and widgets"},{"name":"Custom Dashboards","description":"User-created custom dashboards"},{"name":"Embedded Analytics","description":"Embeddable analytics widgets"},{"name":"Forecast Intelligence","description":"AI-powered revenue forecasting"},{"name":"Revenue Intelligence","description":"Revenue analytics and channel attribution"},{"name":"Revenue Leakage","description":"At-risk deal detection and remediation"},{"name":"Revenue Attribution","description":"Multi-touch revenue attribution"},{"name":"Win/Loss Intelligence","description":"Win/loss analysis and competitive insights"},{"name":"AI","description":"AI assistant and natural language queries"},{"name":"Agents","description":"AI agent management and execution"},{"name":"Agent Marketplace","description":"Pre-built AI agent library"},{"name":"Digital Workers","description":"Automated task execution bots"},{"name":"Playbooks","description":"Sales playbook management"},{"name":"Workflows","description":"Automation workflow management"},{"name":"Flows","description":"Run screen flows: start, resume, submit screens, go back, cancel"},{"name":"Cross-Object Workflows","description":"Workflows spanning multiple objects"},{"name":"Webhook AI Workflows","description":"AI-enhanced webhook automations"},{"name":"Predictive Routing","description":"AI-powered lead/deal routing"},{"name":"Smart Assignment","description":"Intelligent record assignment rules"},{"name":"Guided Selling","description":"AI product matching and recommendations"},{"name":"Coaching Role-Play","description":"AI sales coaching roleplay sessions"},{"name":"Coaching Effectiveness","description":"Coaching outcome metrics"},{"name":"Coaching Goals","description":"Coaching goal tracking"},{"name":"Objection Playbook","description":"Objection detection and response playbooks"},{"name":"Gamification","description":"Points, leaderboards, and challenges"},{"name":"Duplicate Detection","description":"Duplicate record detection and merge"},{"name":"Data Enrichment","description":"External data enrichment"},{"name":"Auto Enrichment","description":"Automatic record enrichment triggers"},{"name":"Data Quality","description":"Data quality scoring and monitoring"},{"name":"Data Freshness","description":"Record freshness tracking"},{"name":"Bulk Operations","description":"Mass record operations"},{"name":"Bulk API","description":"Asynchronous bulk import/export jobs"},{"name":"Import/Export","description":"Data import and export"},{"name":"Collaboration","description":"Team collaboration features"},{"name":"Customer Portal","description":"Customer-facing self-service portal"},{"name":"Partner Portal","description":"Partner deal registration and portal"},{"name":"Partners","description":"Partner management"},{"name":"NPS Surveys","description":"Net Promoter Score surveys"},{"name":"Web Forms","description":"Web form builder and lead capture"},{"name":"Documents","description":"Document management and storage"},{"name":"E-Signature","description":"Electronic signature workflows"},{"name":"Payments","description":"Payment processing and billing"},{"name":"Webhooks","description":"Webhook subscription management"},{"name":"Events","description":"Catalog of webhook event types and their JSON Schemas; your organization's custom events: catalog and publish"},{"name":"Custom Actions","description":"Your HTTPS endpoints as named actions for workflows, the copilot and record pages"},{"name":"Before-Save Hooks","description":"Synchronous allow / deny / patch calls to your endpoint or function before a record is saved"},{"name":"After-Save Triggers","description":"Serverless functions that run synchronously after a record is saved (post-commit; failures are warnings)"},{"name":"Functions","description":"Your TypeScript/JavaScript run in the SalesOS sandbox: versions, deploys, secrets, triggers, HTTP invoke"},{"name":"Metadata","description":"Metadata as code: retrieve source files, deploy (or check-only) as an async job, deploy history"},{"name":"App Runtime","description":"An installed app's own installation: version, granted scopes and settings (OAuth token)"},{"name":"Marketplace","description":"Approved marketplace apps: search, categories, listing detail with requested scopes, reviews (no auth)"},{"name":"API Keys","description":"API key management"},{"name":"OAuth","description":"OAuth 2.0 authorization server: authorize, token, revoke, introspect, userinfo"},{"name":"Search","description":"Global search across all entities"},{"name":"Notifications","description":"Notification management"},{"name":"Localization","description":"Language and regional settings"},{"name":"Mobile Command","description":"Natural language mobile commands"},{"name":"Relationship Maps","description":"Org chart and stakeholder mapping"},{"name":"Customer 360","description":"Unified customer profile view"},{"name":"Integrations","description":"Third-party integration management"},{"name":"Sandboxes","description":"Sandbox environment management"},{"name":"Users","description":"User profile and preferences"}],"servers":[{"url":"https://api.salesos.org","description":"Production"}],"components":{"securitySchemes":{"JWT":{"scheme":"bearer","bearerFormat":"JWT","type":"http","description":"Session token from the SalesOS web app."},"ApiKey":{"type":"apiKey","in":"header","name":"X-API-Key","description":"API key from Settings → API Keys. `Authorization: ApiKey <key>` is also accepted. Each operation lists the scope it needs under `x-api-key-scopes`."}},"schemas":{"CreateConversationDto":{"type":"object","properties":{"title":{"type":"string"},"metadata":{"type":"object","properties":{"recordId":{"type":"string"},"recordType":{"type":"string"}},"required":[]}}},"MessageContextDto":{"type":"object","properties":{"route":{"type":"string","maxLength":500},"entityType":{"type":"string","maxLength":50},"entityId":{"type":"string","maxLength":100},"entityName":{"type":"string","maxLength":200}}},"CreateMessageDto":{"type":"object","properties":{"content":{"type":"string","maxLength":4000},"mode":{"enum":["local","salesforce","oracle","oracle_cx","oracle_portal","documents"],"type":"string"},"context":{"$ref":"#/components/schemas/MessageContextDto"}},"required":["content"]},"ExtractMetadataDto":{"type":"object","properties":{}},"UpdateConversationDto":{"type":"object","properties":{}},"CallSearchFiltersDto":{"type":"object","properties":{"query":{"type":"string"},"phrases":{"type":"array","items":{"type":"string"}},"participants":{"type":"array","items":{"type":"string"}},"accountName":{"type":"string"},"accountId":{"type":"string"},"opportunityId":{"type":"string"},"trackers":{"type":"array","items":{"type":"string"}},"dateFrom":{"type":"string"},"dateTo":{"type":"string"},"platform":{"enum":["zoom","teams","google_meet","webex","other"],"type":"string"},"mentionedBy":{"enum":["any","internal","external"],"type":"string"},"minDuration":{"type":"number"},"maxDuration":{"type":"number"},"sentiment":{"enum":["positive","neutral","negative"],"type":"string"},"limit":{"type":"number"},"offset":{"type":"number"}}},"SavedSearchDto":{"type":"object","properties":{"name":{"type":"string"},"filters":{"$ref":"#/components/schemas/CallSearchFiltersDto"},"isDefault":{"type":"boolean"}},"required":["name","filters"]},"TrackerDefinitionDto":{"type":"object","properties":{"name":{"type":"string"},"category":{"type":"string"},"keywords":{"type":"array","items":{"type":"string"}},"phrases":{"type":"array","items":{"type":"string"}},"isEnabled":{"type":"boolean"}},"required":["name","category","keywords"]},"CreateStreamDto":{"type":"object","properties":{"name":{"type":"string"},"filters":{"$ref":"#/components/schemas/CallSearchFiltersDto"},"description":{"type":"string"},"notifyOnNew":{"type":"boolean"}},"required":["name","filters"]},"CreateLeadDto":{"type":"object","properties":{"salutation":{"type":"string"},"firstName":{"type":"string"},"lastName":{"type":"string"},"company":{"type":"string"},"title":{"type":"string"},"email":{"type":"string","format":"email"},"phone":{"type":"string"},"website":{"type":"string"},"leadSource":{"type":"string","enum":["OTHER","WEB","PHONE_INQUIRY","PARTNER_REFERRAL","PURCHASED_LIST","EXTERNAL_REFERRAL","EMPLOYEE_REFERRAL","TRADE_SHOW","WEB_FORM","SOCIAL_MEDIA","EMAIL_CAMPAIGN","WEBINAR","COLD_CALL"]},"status":{"type":"string","enum":["NEW","CONTACTED","QUALIFIED","UNQUALIFIED","NURTURING","CONVERTED","LOST"]},"rating":{"type":"string","enum":["HOT","WARM","COLD"]},"industry":{"type":"string"},"numberOfEmployees":{"type":"number"},"annualRevenue":{"type":"number"},"street":{"type":"string"},"city":{"type":"string"},"state":{"type":"string"},"postalCode":{"type":"string"},"country":{"type":"string"},"description":{"type":"string"},"painPoints":{"type":"array","items":{"type":"string"}},"budget":{"type":"number"},"timeline":{"type":"string"}},"required":["firstName","lastName"]},"UpdateLeadDto":{"type":"object","properties":{"status":{"type":"string","enum":["NEW","CONTACTED","QUALIFIED","UNQUALIFIED","NURTURING","CONVERTED","LOST"]},"rating":{"type":"string","enum":["HOT","WARM","COLD"]},"isQualified":{"type":"boolean"},"disqualifiedReason":{"type":"string"},"leadScore":{"type":"number"},"buyingIntent":{"type":"string","enum":["HIGH","MEDIUM","LOW","UNKNOWN"]},"ownerId":{"type":"string","description":"Reassign; must be an active member of the caller's organization."}}},"ConvertLeadDto":{"type":"object","properties":{"createAccount":{"type":"boolean","default":true},"createContact":{"type":"boolean","default":true},"createOpportunity":{"type":"boolean","default":true},"opportunityName":{"type":"string"},"opportunityAmount":{"type":"number"},"accountName":{"type":"string"},"existingAccountId":{"type":"string"},"opportunityCloseDate":{"type":"string"},"opportunityStageId":{"type":"string","description":"Pipeline stage for the new deal; defaults to the first open stage of the default pipeline."},"qualify":{"type":"boolean","description":"Qualify an unqualified lead as part of converting it."},"ownerId":{"type":"string","description":"Owner for the created records; defaults to the lead's owner (not the converting user)."}}},"BulkUpdateBody":{"type":"object","properties":{}},"BulkDeleteBody":{"type":"object","properties":{}},"BulkAssignBody":{"type":"object","properties":{}},"BulkEnrichDto":{"type":"object","properties":{"entityType":{"type":"string","description":"Entity type to enrich","enum":["lead","contact","account"]},"ids":{"description":"Entity IDs to enrich","type":"array","items":{"type":"string"}},"provider":{"type":"string","description":"Specific provider to use","enum":["zoominfo","apollo","clearbit"]},"force":{"type":"boolean","description":"Force re-enrichment even if recently enriched","default":false}},"required":["entityType","ids"]},"ConfigureBody":{"type":"object","properties":{}},"Object":{"type":"object","properties":{}},"WorkflowCondition":{"type":"object","properties":{"field":{"type":"string"},"operator":{"type":"string","enum":["EQUALS","NOT_EQUALS","CONTAINS","NOT_CONTAINS","STARTS_WITH","ENDS_WITH","GREATER_THAN","LESS_THAN","GREATER_THAN_OR_EQUAL","LESS_THAN_OR_EQUAL","IS_EMPTY","IS_NOT_EMPTY","CHANGED","CHANGED_TO","CHANGED_FROM"]},"value":{"type":"object"}},"required":["field","operator"]},"WorkflowAction":{"type":"object","properties":{"type":{"type":"string","enum":["SEND_EMAIL","CREATE_TASK","UPDATE_FIELD","SEND_NOTIFICATION","WEBHOOK_CALL","ASSIGN_OWNER","ADD_TAG","REMOVE_TAG","CREATE_ACTIVITY","CUSTOM_ACTION","FUNCTION","RUN_FLOW","PUBLISH_EVENT"]},"config":{"type":"object"},"condition":{"type":"object"}},"required":["type","config"]},"CreateWorkflowDto":{"type":"object","properties":{"name":{"type":"string"},"description":{"type":"string"},"triggerType":{"type":"string","enum":["RECORD_CREATED","RECORD_UPDATED","RECORD_DELETED","FIELD_CHANGED","STAGE_CHANGED","TIME_BASED","WEBHOOK","MANUAL"]},"triggerEntity":{"type":"object"},"triggerConfig":{"type":"object","additionalProperties":true},"conditions":{"type":"array","items":{"$ref":"#/components/schemas/WorkflowCondition"}},"actions":{"type":"array","items":{"$ref":"#/components/schemas/WorkflowAction"}},"runOnce":{"type":"boolean"},"delayMinutes":{"type":"number","minimum":0}},"required":["name","triggerType","triggerEntity","actions"]},"UpdateWorkflowDto":{"type":"object","properties":{"name":{"type":"string"},"description":{"type":"string"},"status":{"type":"string","enum":["ACTIVE","INACTIVE","DRAFT"]},"triggerType":{"type":"string","enum":["RECORD_CREATED","RECORD_UPDATED","RECORD_DELETED","FIELD_CHANGED","STAGE_CHANGED","TIME_BASED","WEBHOOK","MANUAL"]},"triggerEntity":{"type":"object"},"triggerConfig":{"type":"object","additionalProperties":true},"conditions":{"type":"array","items":{"$ref":"#/components/schemas/WorkflowCondition"}},"actions":{"type":"array","items":{"$ref":"#/components/schemas/WorkflowAction"}},"runOnce":{"type":"boolean"},"delayMinutes":{"type":"number","minimum":0}}},"TriggerWorkflowDto":{"type":"object","properties":{"workflowId":{"type":"string"},"entityType":{"type":"object"},"entityId":{"type":"string"},"context":{"type":"object","additionalProperties":true}},"required":["workflowId","entityType","entityId"]},"QuietHoursDto":{"type":"object","properties":{"enabled":{"type":"boolean"},"start":{"type":"string"},"end":{"type":"string"},"timezone":{"type":"string"},"followProfile":{"type":"boolean","description":"Follow the profile time zone (true) or keep `timezone` (false)."}}},"DigestDto":{"type":"object","properties":{"enabled":{"type":"boolean"},"time":{"type":"string"},"timezone":{"type":"string"},"followProfile":{"type":"boolean","description":"Follow the profile time zone (true) or keep `timezone` (false)."}}},"UpdateNotificationPreferencesDto":{"type":"object","properties":{"events":{"type":"object","additionalProperties":true,"description":"{ [eventKey]: { inApp?, email?, push? } } — keys validated against the catalog."},"quietHours":{"$ref":"#/components/schemas/QuietHoursDto"},"digest":{"$ref":"#/components/schemas/DigestDto"},"emailCategories":{"type":"object","additionalProperties":{"type":"boolean"},"description":"{ [category]: boolean } for the optional email categories."}}},"CreateWebhookDto":{"type":"object","properties":{"name":{"type":"string","description":"Webhook name"},"description":{"type":"string","description":"Webhook description"},"url":{"type":"string","format":"uri","description":"Webhook endpoint URL"},"events":{"description":"Events to subscribe to","example":["lead.created","opportunity.won"],"type":"array","items":{"type":"string"}},"headers":{"type":"object","additionalProperties":{"type":"string"},"description":"Custom headers to send with requests"},"isActive":{"type":"boolean","description":"Is webhook active","default":true},"retryAttempts":{"type":"number","minimum":0,"maximum":10,"description":"Number of retry attempts on failure","default":3},"retryDelaySeconds":{"type":"number","minimum":10,"maximum":3600,"description":"Delay between retries in seconds","default":60},"payloadVersion":{"type":"number","enum":[1,2],"description":"Payload format: 2 = versioned envelope {id,type,version,occurredAt,organizationId,data}; 1 = legacy {event,eventId,timestamp,data}","default":2},"secret":{"type":"string","minLength":16,"maxLength":128,"description":"Signing secret (16–128 chars). Generated (whsec_…) when omitted."},"namedCredentialId":{"type":"string","nullable":true,"description":"Named credential whose auth is added to every delivery; the URL must sit under its base URL. Empty string clears it."}},"required":["name","url","events"]},"UpdateWebhookDto":{"type":"object","properties":{"name":{"type":"string","description":"Webhook name"},"description":{"type":"string","description":"Webhook description"},"url":{"type":"string","format":"uri","description":"Webhook endpoint URL"},"events":{"description":"Events to subscribe to","type":"array","items":{"type":"string"}},"headers":{"type":"object","additionalProperties":{"type":"string"},"description":"Custom headers to send with requests"},"isActive":{"type":"boolean","description":"Is webhook active"},"retryAttempts":{"type":"number","minimum":0,"maximum":10,"description":"Number of retry attempts on failure"},"retryDelaySeconds":{"type":"number","minimum":10,"maximum":3600,"description":"Delay between retries in seconds"},"payloadVersion":{"type":"number","enum":[1,2],"description":"Payload format: 2 = versioned envelope {id,type,version,occurredAt,organizationId,data}; 1 = legacy {event,eventId,timestamp,data}","default":2},"namedCredentialId":{"type":"string","nullable":true,"description":"Named credential whose auth is added to every delivery; the URL must sit under its base URL. Empty string clears it."}}},"TestWebhookDto":{"type":"object","properties":{"type":{"type":"string","description":"Catalog event type whose sample payload is sent (defaults to the first subscribed event)","example":"opportunity.stage_changed"},"event":{"type":"string","description":"Older clients sent `event`.","deprecated":true}}},"SendEmailDto":{"type":"object","properties":{}},"ConditionDto":{"type":"object","properties":{"field":{"type":"string","description":"Field to evaluate"},"operator":{"enum":["EQUALS","NOT_EQUALS","CONTAINS","NOT_CONTAINS","STARTS_WITH","ENDS_WITH","GREATER_THAN","GREATER_THAN_OR_EQUAL","LESS_THAN","LESS_THAN_OR_EQUAL","IN","NOT_IN","IS_EMPTY","IS_NOT_EMPTY","BETWEEN"],"type":"string","description":"Comparison operator"},"value":{"type":"string","description":"Value to compare against"},"order":{"type":"number","description":"Condition order"}},"required":["field","operator","value"]},"AssigneeDto":{"type":"object","properties":{"userId":{"type":"string","description":"User ID to assign to"},"teamId":{"type":"string","description":"Team ID to assign to"},"weight":{"type":"number","description":"Weight for weighted assignment","default":1},"order":{"type":"number","description":"Assignee order"},"maxActiveRecords":{"type":"number","nullable":true,"description":"Skip this assignee once they own this many open records"}}},"CreateAssignmentRuleDto":{"type":"object","properties":{"name":{"type":"string","description":"Rule name"},"description":{"type":"string","description":"Rule description"},"entity":{"enum":["LEAD","CONTACT","OPPORTUNITY"],"type":"string","description":"Entity type this rule applies to"},"method":{"enum":["ROUND_ROBIN","LOAD_BALANCED","FIXED","TERRITORY","LEAD_SCORE"],"type":"string","description":"Assignment method","default":"ROUND_ROBIN"},"isActive":{"type":"boolean","description":"Is rule active","default":true},"order":{"type":"number","description":"Rule order/priority"},"conditions":{"description":"Rule conditions","type":"array","items":{"$ref":"#/components/schemas/ConditionDto"}},"assignees":{"description":"Rule assignees","type":"array","items":{"$ref":"#/components/schemas/AssigneeDto"}},"fallbackOwnerId":{"type":"string","nullable":true,"description":"Owner used when no assignee qualifies"},"notifyAssignee":{"type":"boolean","description":"Notify the assignee when this rule assigns a record","default":true}},"required":["name","entity"]},"UpdateAssignmentRuleDto":{"type":"object","properties":{"name":{"type":"string","description":"Rule name"},"description":{"type":"string","description":"Rule description"},"method":{"enum":["ROUND_ROBIN","LOAD_BALANCED","FIXED","TERRITORY","LEAD_SCORE"],"type":"string","description":"Assignment method"},"isActive":{"type":"boolean","description":"Is rule active"},"order":{"type":"number","description":"Rule order/priority"},"fallbackOwnerId":{"type":"string","nullable":true,"description":"Owner used when no assignee qualifies (null clears)"},"notifyAssignee":{"type":"boolean","description":"Notify the assignee when this rule assigns a record"}}},"AddConditionBody":{"type":"object","properties":{}},"UpdateConditionsBody":{"type":"object","properties":{}},"AddAssigneeBody":{"type":"object","properties":{}},"UpdateAssigneesBody":{"type":"object","properties":{}},"TestRuleBody":{"type":"object","properties":{}},"TestAllRulesBody":{"type":"object","properties":{}},"ExecuteForRecordBody":{"type":"object","properties":{}},"CloneBody":{"type":"object","properties":{}},"ReorderBody":{"type":"object","properties":{}},"EvaluateRulesBody":{"type":"object","properties":{}},"UpdateAgentConfigDto":{"type":"object","properties":{"enabled":{"type":"boolean","description":"Enable or disable the agent"},"requiresApproval":{"type":"boolean","description":"Require approval for actions"},"scheduleEnabled":{"type":"boolean","description":"Enable scheduled execution"},"scheduleCron":{"type":"string","description":"Cron expression for scheduling"},"maxExecutionTimeMs":{"type":"number","description":"Max execution time in ms"},"maxLLMCalls":{"type":"number","description":"Max LLM calls per execution"},"maxAlertsPerExecution":{"type":"number","description":"Max alerts per execution"},"rateLimitPerHour":{"type":"number","description":"Rate limit per hour"},"rateLimitPerDay":{"type":"number","description":"Rate limit per day"}}},"AIStatusResponse":{"type":"object","properties":{"available":{"type":"boolean"},"primaryProvider":{"type":"object","nullable":true},"fallbackProvider":{"type":"object","nullable":true},"openaiStatus":{"type":"object"},"anthropicStatus":{"type":"object"}},"required":["available","primaryProvider","fallbackProvider","openaiStatus","anthropicStatus"]},"EmailDraftDto":{"type":"object","properties":{"recipientName":{"type":"string","description":"Name of the email recipient"},"recipientCompany":{"type":"string","description":"Company name of the recipient"},"purpose":{"type":"string","description":"Purpose of the email (e.g., follow-up, introduction, proposal)"},"tone":{"type":"string","description":"Tone of the email","default":"professional and friendly"},"additionalContext":{"type":"string","description":"Additional context or information to include"},"recipientTitle":{"type":"string","description":"Recipient job title"},"dealStage":{"type":"string","description":"Current deal stage"},"dealValue":{"type":"number","description":"Deal value in dollars"},"painPoints":{"description":"Known pain points of the prospect","type":"array","items":{"type":"string"}},"lastInteraction":{"type":"string","description":"Summary of last interaction"},"competitors":{"description":"Competitors being considered","type":"array","items":{"type":"string"}},"provider":{"type":"string","description":"Preferred AI provider","enum":["openai","anthropic","auto"]}},"required":["recipientName","recipientCompany","purpose"]},"DealAnalysisDto":{"type":"object","properties":{"name":{"type":"string","description":"Name of the deal"},"value":{"type":"number","description":"Value of the deal in dollars"},"stage":{"type":"string","description":"Current stage of the deal (e.g., Prospecting, Negotiation, Closing)"},"notes":{"type":"string","description":"Notes about the deal"},"activities":{"description":"List of recent activities","type":"array","items":{"type":"string"}},"daysInStage":{"type":"number","description":"Number of days in current stage"},"provider":{"type":"string","description":"Preferred AI provider","enum":["openai","anthropic","auto"]}},"required":["name","value","stage"]},"LeadScoringDto":{"type":"object","properties":{"name":{"type":"string","description":"Name of the lead"},"company":{"type":"string","description":"Company name"},"title":{"type":"string","description":"Job title"},"source":{"type":"string","description":"Lead source (e.g., Website, Referral, Event)"},"email":{"type":"string","description":"Email address"},"phone":{"type":"string","description":"Phone number"},"activities":{"description":"Recent activities","type":"array","items":{"type":"string"}},"notes":{"type":"string","description":"Additional notes"},"website":{"type":"string","description":"Company website"},"industry":{"type":"string","description":"Industry"},"companySize":{"type":"string","description":"Company size (e.g., 1-10, 11-50, 51-200)"},"engagementLevel":{"type":"string","description":"Engagement level"},"provider":{"type":"string","description":"Preferred AI provider","enum":["openai","anthropic","auto"]}},"required":["name"]},"MeetingSummarizeDto":{"type":"object","properties":{"transcript":{"type":"string","description":"Meeting transcript or notes to summarize"},"provider":{"type":"string","description":"Preferred AI provider","enum":["openai","anthropic","auto"]}},"required":["transcript"]},"FollowUpDto":{"type":"object","properties":{"lastInteraction":{"type":"string","description":"Description of the last interaction"},"lastInteractionDate":{"type":"string","description":"Date of the last interaction"},"dealStage":{"type":"string","description":"Current deal stage"},"objections":{"description":"List of objections raised","type":"array","items":{"type":"string"}},"dealValue":{"type":"number","description":"Value of the deal"},"contactName":{"type":"string","description":"Contact name"},"companyName":{"type":"string","description":"Company name"},"previousActions":{"description":"List of previous actions taken","type":"array","items":{"type":"string"}},"dealNotes":{"type":"string","description":"Additional deal notes"},"provider":{"type":"string","description":"Preferred AI provider","enum":["openai","anthropic","auto"]}}},"CompletionDto":{"type":"object","properties":{"prompt":{"type":"string","description":"The prompt to send to the AI"},"systemPrompt":{"type":"string","description":"System prompt to guide AI behavior"},"maxTokens":{"type":"number","description":"Maximum tokens in response","default":1000},"temperature":{"type":"number","description":"Temperature for response creativity (0-1)","default":0.7},"provider":{"type":"string","description":"Preferred AI provider","enum":["openai","anthropic","auto"]}},"required":["prompt"]},"CreateOpportunityDto":{"type":"object","properties":{"name":{"type":"string"},"accountId":{"type":"string"},"amount":{"type":"number"},"closeDate":{"type":"string"},"opportunitySource":{"type":"string"},"type":{"type":"string"},"stage":{"type":"string","enum":["PROSPECTING","QUALIFICATION","NEEDS_ANALYSIS","VALUE_PROPOSITION","DECISION_MAKERS_IDENTIFIED","PERCEPTION_ANALYSIS","PROPOSAL_PRICE_QUOTE","NEGOTIATION_REVIEW","CLOSED_WON","CLOSED_LOST"]},"probability":{"type":"number"},"needsAnalysis":{"type":"string"},"proposedSolution":{"type":"string"},"competitors":{"type":"array","items":{"type":"string"}},"nextStep":{"type":"string"},"description":{"type":"string"},"campaignId":{"type":"string"},"pipelineId":{"type":"string"},"stageId":{"type":"string"}},"required":["name","accountId"]},"UpdateOpportunityDto":{"type":"object","properties":{"name":{"type":"string"},"stage":{"type":"string","enum":["PROSPECTING","QUALIFICATION","NEEDS_ANALYSIS","VALUE_PROPOSITION","DECISION_MAKERS_IDENTIFIED","PERCEPTION_ANALYSIS","PROPOSAL_PRICE_QUOTE","NEGOTIATION_REVIEW","CLOSED_WON","CLOSED_LOST"]},"amount":{"type":"number"},"probability":{"type":"number"},"closeDate":{"type":"string"},"description":{"type":"string"},"type":{"type":"string"},"opportunitySource":{"type":"string"},"accountId":{"type":"string"},"campaignId":{"type":"string"},"pipelineId":{"type":"string"},"stageId":{"type":"string"},"isWon":{"type":"boolean"},"isClosed":{"type":"boolean"},"discount":{"type":"number"},"nextStep":{"type":"string"},"lossReason":{"type":"string"},"closeDateChangeReason":{"type":"string","description":"Why the close date moved; journaled on metadata.closeDateHistory.","maxLength":200}}},"CloseLostBody":{"type":"object","properties":{}},"AddContactBody":{"type":"object","properties":{}},"UpdateContactBody":{"type":"object","properties":{}},"BulkUpdateStageBody":{"type":"object","properties":{}},"MEDDICScoreDto":{"type":"object","properties":{"metrics":{"enum":["complete","partial","missing"],"type":"string"},"economicBuyer":{"enum":["identified","engaged","unknown"],"type":"string"},"decisionCriteria":{"enum":["complete","partial","missing"],"type":"string"},"decisionProcess":{"enum":["complete","partial","missing"],"type":"string"},"identifyPain":{"enum":["complete","partial","missing"],"type":"string"},"champion":{"enum":["strong","developing","none"],"type":"string"},"score":{"type":"number","minimum":0,"maximum":100}},"required":["metrics","economicBuyer","decisionCriteria","decisionProcess","identifyPain","champion","score"]},"DealWarningDto":{"type":"object","properties":{"type":{"type":"string","enum":["stale","no-next-step","close-date-passed","no-activity","missing-contact"]},"message":{"type":"string"},"severity":{"type":"string","enum":["medium","low","high"]}},"required":["type","message","severity"]},"PipelineDealResponseDto":{"type":"object","properties":{"id":{"type":"string"},"name":{"type":"string"},"accountId":{"type":"string"},"accountName":{"type":"string"},"amount":{"type":"number"},"stage":{"type":"string"},"probability":{"type":"number"},"closeDate":{"format":"date-time","type":"string","nullable":true},"forecastCategory":{"type":"string","enum":["commit","most-likely","best-case","key-deals","must-win","low-likelihood"]},"meddic":{"$ref":"#/components/schemas/MEDDICScoreDto"},"warnings":{"type":"array","items":{"$ref":"#/components/schemas/DealWarningDto"}},"contactCount":{"type":"number"},"owner":{"type":"object","properties":{"id":{"type":"string"},"name":{"type":"string"},"email":{"type":"string"},"avatarUrl":{"type":"string"}},"required":["id","name","email"]},"opportunityTeam":{"type":"array","items":{"type":"object","properties":{"id":{"type":"string"},"name":{"type":"string"},"role":{"type":"string"}},"required":["id","name","role"]}},"activities":{"type":"array","items":{"type":"object","properties":{"date":{"format":"date-time","type":"string"},"type":{"type":"string"},"count":{"type":"number"}},"required":["date","type","count"]}},"lastActivityDate":{"format":"date-time","type":"string","nullable":true},"createdAt":{"format":"date-time","type":"string"},"updatedAt":{"format":"date-time","type":"string"}},"required":["id","name","accountId","accountName","amount","stage","probability","closeDate","forecastCategory","meddic","warnings","contactCount","owner","activities","lastActivityDate","createdAt","updatedAt"]},"ForecastSummaryDto":{"type":"object","properties":{"category":{"type":"string","enum":["commit","most-likely","best-case","key-deals","must-win","low-likelihood"]},"label":{"type":"string"},"totalAmount":{"type":"number"},"dealCount":{"type":"number"},"previousAmount":{"type":"number"},"previousCount":{"type":"number"},"changeAmount":{"type":"number"},"changeCount":{"type":"number"}},"required":["category","label","totalAmount","dealCount"]},"PipelineStatsResponseDto":{"type":"object","properties":{"targetAttainment":{"type":"number"},"pipelineCoverage":{"type":"number"},"totalPipeline":{"type":"number"},"averageDealSize":{"type":"number"},"winRate":{"type":"number"},"forecasts":{"type":"array","items":{"$ref":"#/components/schemas/ForecastSummaryDto"}},"staleDealsCount":{"type":"number"},"atRiskDealsCount":{"type":"number"}},"required":["targetAttainment","pipelineCoverage","totalPipeline","averageDealSize","winRate","forecasts","staleDealsCount","atRiskDealsCount"]},"UpdateMEDDICDto":{"type":"object","properties":{"opportunityId":{"type":"string"},"metrics":{"type":"string","enum":["complete","partial","missing"]},"economicBuyer":{"type":"string","enum":["identified","engaged","unknown"]},"decisionCriteria":{"type":"string","enum":["complete","partial","missing"]},"decisionProcess":{"type":"string","enum":["complete","partial","missing"]},"identifyPain":{"type":"string","enum":["complete","partial","missing"]},"champion":{"type":"string","enum":["strong","developing","none"]},"notes":{"type":"string"}},"required":["opportunityId"]},"UpdateForecastCategoryDto":{"type":"object","properties":{"opportunityId":{"type":"string"},"forecastCategory":{"type":"string","enum":["commit","most-likely","best-case","key-deals","must-win","low-likelihood"]},"reason":{"type":"string"}},"required":["opportunityId","forecastCategory"]},"ValidateCouponDto":{"type":"object","properties":{}},"CreateCheckoutSessionDto":{"type":"object","properties":{}},"UpdateBillingCustomerDto":{"type":"object","properties":{}},"CancelSubscriptionDto":{"type":"object","properties":{}},"ResumeSubscriptionDto":{"type":"object","properties":{}},"ChangeSubscriptionPlanDto":{"type":"object","properties":{}},"AddPaymentMethodDto":{"type":"object","properties":{}},"CreateInvoiceBody":{"type":"object","properties":{}},"UpdateDunningConfigBody":{"type":"object","properties":{}},"UpdateInvoiceBody":{"type":"object","properties":{}},"SendInvoiceBody":{"type":"object","properties":{}},"RecordPaymentFrontendBody":{"type":"object","properties":{}},"RecordPaymentBody":{"type":"object","properties":{}},"VoidInvoiceBody":{"type":"object","properties":{}},"CreateFromOrderBodyBody":{"type":"object","properties":{}},"CreateTaxRateDto":{"type":"object","properties":{"name":{"type":"string"},"description":{"type":"string"},"taxType":{"enum":["CUSTOM","SALES","VAT","GST","HST","PST"],"type":"string"},"rate":{"type":"number","minimum":0},"country":{"type":"string"},"region":{"type":"string"},"city":{"type":"string"},"postalCode":{"type":"string"},"isDefault":{"type":"boolean"},"isCompound":{"type":"boolean"},"isActive":{"type":"boolean"},"effectiveFrom":{"type":"string"},"effectiveTo":{"type":"string"}},"required":["name","taxType","rate","country"]},"UpdateTaxRateDto":{"type":"object","properties":{"name":{"type":"string"},"description":{"type":"string"},"taxType":{"enum":["CUSTOM","SALES","VAT","GST","HST","PST"],"type":"string"},"rate":{"type":"number","minimum":0},"country":{"type":"string"},"region":{"type":"string"},"city":{"type":"string"},"postalCode":{"type":"string"},"isDefault":{"type":"boolean"},"isCompound":{"type":"boolean"},"isActive":{"type":"boolean"},"effectiveFrom":{"type":"string"},"effectiveTo":{"type":"string"}}},"CalculateTaxDto":{"type":"object","properties":{"country":{"type":"string"},"region":{"type":"string"},"city":{"type":"string"},"postalCode":{"type":"string"},"subtotal":{"type":"number","minimum":0}},"required":["country","subtotal"]},"BulkImportTaxRatesDto":{"type":"object","properties":{"rates":{"type":"array","items":{"$ref":"#/components/schemas/CreateTaxRateDto"}}},"required":["rates"]},"CreateAccountDto":{"type":"object","properties":{"name":{"type":"string"},"type":{"type":"string","enum":["PROSPECT","CUSTOMER","PARTNER","RESELLER","COMPETITOR","OTHER"]},"industry":{"type":"string"},"phone":{"type":"string"},"fax":{"type":"string"},"website":{"type":"string"},"domain":{"type":"string"},"billingStreet":{"type":"string"},"billingCity":{"type":"string"},"billingState":{"type":"string"},"billingPostalCode":{"type":"string"},"billingCountry":{"type":"string"},"shippingStreet":{"type":"string"},"shippingCity":{"type":"string"},"shippingState":{"type":"string"},"shippingPostalCode":{"type":"string"},"shippingCountry":{"type":"string"},"numberOfEmployees":{"type":"number"},"annualRevenue":{"type":"number"},"description":{"type":"string"},"accountStatus":{"type":"string","enum":["ACTIVE","INACTIVE","PENDING","CHURNED"]},"rating":{"type":"string","enum":["HOT","WARM","COLD"]},"healthScore":{"type":"number"},"churnRisk":{"type":"string","enum":["HIGH","MEDIUM","LOW","NONE"]},"painPoints":{"type":"array","items":{"type":"string"}},"techStack":{"type":"array","items":{"type":"string"}},"competitors":{"type":"array","items":{"type":"string"}},"parentAccountId":{"type":"string"}},"required":["name"]},"UpdateAccountDto":{"type":"object","properties":{}},"CreateContactDto":{"type":"object","properties":{"accountId":{"type":"string"},"firstName":{"type":"string"},"lastName":{"type":"string"},"salutation":{"type":"string"},"email":{"type":"string","format":"email"},"phone":{"type":"string"},"mobilePhone":{"type":"string"},"title":{"type":"string"},"department":{"type":"string"},"role":{"type":"string","enum":["CHAMPION","ECONOMIC_BUYER","DECISION_MAKER","INFLUENCER","END_USER","GATEKEEPER","BLOCKER","TECHNICAL_BUYER"]},"seniorityLevel":{"type":"string","enum":["MANAGER","OWNER","IC","SENIOR_MANAGER","DIRECTOR","SENIOR_DIRECTOR","VP","SVP","C_LEVEL","BOARD"]},"buyingPower":{"type":"string","enum":["NONE","DECISION_MAKER","INFLUENCER","RECOMMENDER","BUDGET_HOLDER"]},"reportsToId":{"type":"string"},"mailingStreet":{"type":"string"},"mailingCity":{"type":"string"},"mailingState":{"type":"string"},"mailingPostalCode":{"type":"string"},"mailingCountry":{"type":"string"},"linkedinUrl":{"type":"string","format":"uri"},"twitterHandle":{"type":"string"},"description":{"type":"string"},"influenceLevel":{"type":"string","enum":["HIGH","MEDIUM","LOW"]},"contactStatus":{"type":"string","enum":["ACTIVE","INACTIVE","BOUNCED","UNSUBSCRIBED"]},"doNotCall":{"type":"boolean"},"doNotEmail":{"type":"boolean"},"emailOptOut":{"type":"boolean"}},"required":["firstName","lastName"]},"UpdateContactDto":{"type":"object","properties":{}},"ApproveActionDto":{"type":"object","properties":{"approved":{"type":"boolean","description":"Whether to approve or reject the action"},"rejectionReason":{"type":"string","description":"Reason for rejection (if rejected)"}},"required":["approved"]},"ScheduleMeetingDto":{"type":"object","properties":{}},"JoinAdHocMeetingDto":{"type":"object","properties":{}},"ValidateMeetingUrlBody":{"type":"object","properties":{}},"CreateMeetingDto":{"type":"object","properties":{}},"SearchMeetingsBody":{"type":"object","properties":{}},"ExchangeRealtimeSdpBody":{"type":"object","properties":{}},"ReceiveRealtimeTranscriptBody":{"type":"object","properties":{}},"UploadTranscriptDto":{"type":"object","properties":{}},"MeetingAnalysisResultDto":{"type":"object","properties":{}},"GenerateSummaryDto":{"type":"object","properties":{"includeActionItems":{"type":"boolean"},"autoApproveActions":{"type":"boolean"},"customPrompt":{"type":"string"},"meetingType":{"type":"string","enum":["sales","customer","coaching","internal"]}}},"ActionItemModificationDto":{"type":"object","properties":{"actionId":{"type":"string"},"owner":{"type":"string"},"ownerEmail":{"type":"string"},"dueDate":{"type":"string"},"priority":{"type":"string"},"title":{"type":"string"}},"required":["actionId"]},"ApproveActionsDto":{"type":"object","properties":{"approvedActionIds":{"type":"array","items":{"type":"string"}},"rejectedActionIds":{"type":"array","items":{"type":"string"}},"modifications":{"type":"array","items":{"$ref":"#/components/schemas/ActionItemModificationDto"}},"createTasks":{"type":"boolean"},"createCoachingActionItems":{"type":"boolean"}},"required":["approvedActionIds"]},"UpdateMeetingDto":{"type":"object","properties":{}},"CreateActivityDto":{"type":"object","properties":{"type":{"type":"string","enum":["OTHER","WEBINAR","EMAIL","DEMO","CALL","MEETING","PRESENTATION","PROPOSAL_SENT","CONTRACT_SENT","FOLLOW_UP","RESEARCH","INTERNAL_NOTE","LINKEDIN_MESSAGE","SITE_VISIT"]},"subject":{"type":"string"},"description":{"type":"string"},"outcome":{"type":"string"},"activityDate":{"type":"string"},"duration":{"type":"number"},"leadId":{"type":"string"},"accountId":{"type":"string"},"contactId":{"type":"string"},"opportunityId":{"type":"string"},"conversationId":{"type":"string"}},"required":["type","subject"]},"CreateTaskDto":{"type":"object","properties":{"subject":{"type":"string"},"description":{"type":"string"},"status":{"type":"string","enum":["COMPLETED","IN_PROGRESS","NOT_STARTED","WAITING","DEFERRED"]},"priority":{"type":"string","enum":["HIGH","LOW","NORMAL","URGENT"]},"dueDate":{"type":"string"},"reminderDate":{"type":"string"},"assignedToId":{"type":"string"},"leadId":{"type":"string"},"accountId":{"type":"string"},"contactId":{"type":"string"},"opportunityId":{"type":"string"},"type":{"type":"string","enum":["CALL","EMAIL","MEETING","FOLLOW_UP","OTHER"]}},"required":["subject"]},"UpdateTaskDto":{"type":"object","properties":{"subject":{"type":"string"},"description":{"type":"string"},"status":{"type":"string","enum":["COMPLETED","IN_PROGRESS","NOT_STARTED","WAITING","DEFERRED"]},"priority":{"type":"string","enum":["HIGH","LOW","NORMAL","URGENT"]},"dueDate":{"type":"string"},"reminderDate":{"type":"string"},"completedDate":{"type":"string"},"assignedToId":{"type":"string"},"leadId":{"type":"string"},"accountId":{"type":"string"},"contactId":{"type":"string"},"opportunityId":{"type":"string"},"type":{"type":"string","enum":["CALL","EMAIL","MEETING","FOLLOW_UP","OTHER"]}}},"SendTrackedEmailDto":{"type":"object","properties":{}},"InboundEmailWebhookDto":{"type":"object","properties":{}},"ProcessStatusWebhookBody":{"type":"object","properties":{}},"UpdateDraftBody":{"type":"object","properties":{}},"CpqAutomationSettingsBody":{"type":"object","properties":{}},"CreateQuoteDto":{"type":"object","properties":{"name":{"type":"string"},"accountId":{"type":"string"},"opportunityId":{"type":"string"},"contactId":{"type":"string"},"priceBookId":{"type":"string"},"status":{"type":"string","enum":["DRAFT","PENDING_APPROVAL","APPROVED","SENT","ACCEPTED","REJECTED","EXPIRED"]},"validUntil":{"type":"string"},"expirationDate":{"type":"string"},"discount":{"type":"number"},"discountPercent":{"type":"number"},"tax":{"type":"number"},"taxPercent":{"type":"number"},"taxMode":{"type":"string","description":"AUTO: tax from the org's tax rates for the quote's address. MANUAL: `tax` as entered.","enum":["AUTO","MANUAL"]},"shippingHandling":{"type":"number"},"shippingCost":{"type":"number"},"description":{"type":"string"},"notes":{"type":"string"},"paymentTerms":{"type":"string"},"terms":{"type":"string"},"billingStreet":{"type":"string"},"billingCity":{"type":"string"},"billingState":{"type":"string"},"billingPostalCode":{"type":"string"},"billingCountry":{"type":"string"},"shippingStreet":{"type":"string"},"shippingCity":{"type":"string"},"shippingState":{"type":"string"},"shippingPostalCode":{"type":"string"},"shippingCountry":{"type":"string"},"billingAddress":{"type":"object","additionalProperties":true},"shippingAddress":{"type":"object","additionalProperties":true},"lineItems":{"type":"array","items":{"type":"object"}}},"required":["name","accountId","opportunityId"]},"UpdateQuoteDto":{"type":"object","properties":{"subtotal":{"type":"number"},"total":{"type":"number"},"totalPrice":{"type":"number"},"sentDate":{"type":"string"},"acceptedDate":{"type":"string"},"rejectedDate":{"type":"string"},"sentAt":{"type":"string"},"acceptedAt":{"type":"string"},"rejectedAt":{"type":"string"},"rejectedReason":{"type":"string"},"rejectionReason":{"type":"string"},"metadata":{"type":"object","additionalProperties":true}}},"AddLineItemBody":{"type":"object","properties":{}},"UpdateLineItemBody":{"type":"object","properties":{}},"SendQuoteDto":{"type":"object","properties":{"deliveryMethod":{"type":"string","enum":["email","manual"]},"recipientEmail":{"type":"string","description":"Defaults to the quote's contact.","format":"email"},"ccEmails":{"maxItems":10,"type":"array","items":{"type":"string","format":"email"}},"subject":{"type":"string","maxLength":200},"message":{"type":"string","maxLength":10000},"attachPdf":{"type":"boolean"},"templateId":{"type":"string","description":"Accepted for older clients; there are no stored quote email templates."}}},"WorkflowConditionDto":{"type":"object","properties":{"field":{"type":"string"},"operator":{"type":"string","enum":["EQUALS","NOT_EQUALS","GREATER_THAN","LESS_THAN","GREATER_THAN_OR_EQUALS","LESS_THAN_OR_EQUALS","CONTAINS","IN"]},"value":{"type":"object"}},"required":["field","operator","value"]},"ApprovalStatusValuesDto":{"type":"object","properties":{"PENDING":{"type":"string"},"APPROVED":{"type":"string"},"REJECTED":{"type":"string"},"RECALLED":{"type":"string"}}},"ApprovalFieldUpdateDto":{"type":"object","properties":{"field":{"type":"string"},"value":{"type":"object"}},"required":["field"]},"ApprovalFieldUpdatesDto":{"type":"object","properties":{"onSubmit":{"type":"array","items":{"$ref":"#/components/schemas/ApprovalFieldUpdateDto"}},"onApprove":{"type":"array","items":{"$ref":"#/components/schemas/ApprovalFieldUpdateDto"}},"onReject":{"type":"array","items":{"$ref":"#/components/schemas/ApprovalFieldUpdateDto"}},"onRecall":{"type":"array","items":{"$ref":"#/components/schemas/ApprovalFieldUpdateDto"}}}},"CreateApprovalWorkflowDto":{"type":"object","properties":{"name":{"type":"string"},"description":{"type":"string"},"entity":{"type":"string","enum":["QUOTE","DISCOUNT","ORDER","CONTRACT","CUSTOM_OBJECT","LEAD","CONTACT","ACCOUNT","OPPORTUNITY","CASE","TASK"]},"customObjectName":{"type":"string","description":"Required when entity is CUSTOM_OBJECT: the object's API name.","pattern":"^[a-z][a-z0-9_]{0,62}$"},"conditions":{"type":"array","items":{"$ref":"#/components/schemas/WorkflowConditionDto"}},"isActive":{"type":"boolean"},"priority":{"type":"number","minimum":0},"lockRecord":{"type":"boolean","description":"Lock the record while a request is pending (standard and custom objects; never quotes)."},"allowRecall":{"type":"boolean"},"statusField":{"type":"string","nullable":true,"description":"Record field that mirrors the request status (null clears it)."},"statusValues":{"$ref":"#/components/schemas/ApprovalStatusValuesDto"},"fieldUpdates":{"$ref":"#/components/schemas/ApprovalFieldUpdatesDto"}},"required":["name","entity"]},"UpdateApprovalWorkflowDto":{"type":"object","properties":{"name":{"type":"string"},"description":{"type":"string"},"entity":{"type":"string","enum":["QUOTE","DISCOUNT","ORDER","CONTRACT","CUSTOM_OBJECT","LEAD","CONTACT","ACCOUNT","OPPORTUNITY","CASE","TASK"]},"customObjectName":{"type":"string","pattern":"^[a-z][a-z0-9_]{0,62}$"},"conditions":{"type":"array","items":{"$ref":"#/components/schemas/WorkflowConditionDto"}},"isActive":{"type":"boolean"},"priority":{"type":"number","minimum":0},"lockRecord":{"type":"boolean","description":"Lock the record while a request is pending (standard and custom objects; never quotes)."},"allowRecall":{"type":"boolean"},"statusField":{"type":"string","nullable":true,"description":"Record field that mirrors the request status (null clears it)."},"statusValues":{"$ref":"#/components/schemas/ApprovalStatusValuesDto"},"fieldUpdates":{"$ref":"#/components/schemas/ApprovalFieldUpdatesDto"}}},"CloneWorkflowDto":{"type":"object","properties":{"name":{"type":"string"}},"required":["name"]},"CreateApprovalStepDto":{"type":"object","properties":{"order":{"type":"number","minimum":1},"name":{"type":"string"},"description":{"type":"string"},"approverType":{"type":"string","enum":["USER","ROLE","MANAGER","SKIP_LEVEL_MANAGER"]},"approverId":{"type":"string"},"roleId":{"type":"string"},"autoApproveAfterHours":{"type":"number","minimum":1},"autoRejectAfterHours":{"type":"number","minimum":1},"requireComment":{"type":"boolean"},"allowDelegation":{"type":"boolean"}},"required":["order","name","approverType"]},"UpdateApprovalStepDto":{"type":"object","properties":{"order":{"type":"number","minimum":1},"name":{"type":"string"},"description":{"type":"string"},"approverType":{"type":"string","enum":["USER","ROLE","MANAGER","SKIP_LEVEL_MANAGER"]},"approverId":{"type":"string"},"roleId":{"type":"string"},"autoApproveAfterHours":{"type":"number","minimum":1},"autoRejectAfterHours":{"type":"number","minimum":1},"requireComment":{"type":"boolean"},"allowDelegation":{"type":"boolean"}}},"ReorderStepsDto":{"type":"object","properties":{"stepIds":{"type":"array","items":{"type":"string"}}},"required":["stepIds"]},"CreateContractBody":{"type":"object","properties":{}},"UpdateContractBody":{"type":"object","properties":{}},"AmendContractBody":{"type":"object","properties":{}},"CreateCampaignBody":{"type":"object","properties":{}},"AddCampaignMembersBody":{"type":"object","properties":{}},"UpdateCampaignMemberStatusBody":{"type":"object","properties":{}},"UpdateContentBody":{"type":"object","properties":{}},"SendCampaignBody":{"type":"object","properties":{}},"UpdateCampaignBody":{"type":"object","properties":{}},"CreateNoteBody":{"type":"object","properties":{}},"UpdateNoteBody":{"type":"object","properties":{}},"CreateVoiceNoteBody":{"type":"object","properties":{}},"BulkProcessActionsBody":{"type":"object","properties":{}},"SignalResponse":{"type":"object","properties":{"id":{"type":"string"},"accountId":{"type":"string"},"accountName":{"type":"string"},"type":{"enum":["COMPETITIVE_THREAT","EXPANSION","EXEC_CHANGE","FUNDING","NEWS","USAGE_SPIKE","USAGE_DECLINE","ENGAGEMENT_SPIKE","ENGAGEMENT_DECLINE","TECH_CHANGE","CONTRACT_RENEWAL","BUDGET_CYCLE"],"type":"string"},"title":{"type":"string"},"description":{"type":"string"},"confidence":{"type":"number"},"source":{"enum":["MANUAL","NEWS","INTERNAL_CRM","ZOOMINFO","SNOWFLAKE","NEWSLETTER","SIXSENSE"],"type":"string"},"sourceId":{"type":"string"},"data":{"type":"object","additionalProperties":true},"recommendedAction":{"type":"string"},"status":{"enum":["PENDING","EXPIRED","DISMISSED","ACKNOWLEDGED","ACTIONED"],"type":"string"},"priority":{"enum":["HIGH","MEDIUM","LOW","CRITICAL"],"type":"string"},"acknowledgedAt":{"format":"date-time","type":"string"},"acknowledgedBy":{"type":"string"},"actionedAt":{"format":"date-time","type":"string"},"actionedBy":{"type":"string"},"dismissedAt":{"format":"date-time","type":"string"},"dismissedBy":{"type":"string"},"dismissReason":{"type":"string"},"expiresAt":{"format":"date-time","type":"string"},"createdAt":{"format":"date-time","type":"string"},"updatedAt":{"format":"date-time","type":"string"}},"required":["id","accountId","type","title","confidence","source","status","priority","createdAt","updatedAt"]},"SignalsSummary":{"type":"object","properties":{"pending":{"type":"number"},"critical":{"type":"number"},"high":{"type":"number"},"actioned":{"type":"number"},"byType":{"type":"object","additionalProperties":{"type":"number"}},"bySource":{"type":"object","additionalProperties":{"type":"number"}}},"required":["pending","critical","high","actioned","byType","bySource"]},"CreateSignalDto":{"type":"object","properties":{"accountId":{"type":"string"},"type":{"type":"string","enum":["COMPETITIVE_THREAT","EXPANSION","EXEC_CHANGE","FUNDING","NEWS","USAGE_SPIKE","USAGE_DECLINE","ENGAGEMENT_SPIKE","ENGAGEMENT_DECLINE","TECH_CHANGE","CONTRACT_RENEWAL","BUDGET_CYCLE"]},"title":{"type":"string"},"description":{"type":"string"},"confidence":{"type":"number","minimum":0,"maximum":1},"source":{"type":"string","enum":["MANUAL","NEWS","INTERNAL_CRM","ZOOMINFO","SNOWFLAKE","NEWSLETTER","SIXSENSE"]},"sourceId":{"type":"string"},"data":{"type":"object","additionalProperties":true},"recommendedAction":{"type":"string"},"priority":{"type":"string","enum":["HIGH","MEDIUM","LOW","CRITICAL"]}},"required":["accountId","type","title","source"]},"AcknowledgeSignalDto":{"type":"object","properties":{"action":{"type":"string","enum":["action","acknowledge","dismiss"]},"notes":{"type":"string"}},"required":["action"]},"SignalRecommendationResponse":{"type":"object","properties":{"id":{"type":"string"},"signalId":{"type":"string"},"accountId":{"type":"string"},"action":{"type":"string"},"rationale":{"type":"string"},"priority":{"type":"string"},"confidence":{"type":"number"},"suggestedAssignee":{"type":"string"},"playbookId":{"type":"string"},"suggestedContent":{"type":"object","properties":{"emailSubject":{"type":"string"},"emailBody":{"type":"string"},"talkingPoints":{"type":"array","items":{"type":"string"}}},"required":[]},"status":{"type":"string"},"createdAt":{"format":"date-time","type":"string"}},"required":["id","signalId","accountId","action","rationale","priority","confidence","status","createdAt"]},"ExecuteRecommendationDto":{"type":"object","properties":{"modifications":{"type":"object","additionalProperties":true}}},"GenerateCoachingAgendaDto":{"type":"object","properties":{"repId":{"type":"string"},"repEmail":{"type":"string"},"focusAreas":{"type":"array","items":{"type":"string"}}}},"CoachingAgendaResponse":{"type":"object","properties":{"id":{"type":"string"},"repId":{"type":"string"},"repName":{"type":"string"},"managerId":{"type":"string"},"agenda":{"type":"object"},"pipelineSnapshot":{"type":"object"},"performanceSnapshot":{"type":"object"},"status":{"enum":["DRAFT","COMPLETED","CANCELLED","SCHEDULED","IN_PROGRESS"],"type":"string"},"scheduledFor":{"format":"date-time","type":"string"},"completedAt":{"format":"date-time","type":"string"},"sessionNotes":{"type":"string"},"followUpActions":{"type":"array","items":{"type":"object"}},"createdAt":{"format":"date-time","type":"string"},"updatedAt":{"format":"date-time","type":"string"}},"required":["id","repId","managerId","agenda","status","createdAt","updatedAt"]},"UpdateCoachingAgendaDto":{"type":"object","properties":{"status":{"type":"string","enum":["DRAFT","COMPLETED","CANCELLED","SCHEDULED","IN_PROGRESS"]},"sessionNotes":{"type":"string"},"followUpActions":{"type":"array","items":{"type":"object"}},"outcome":{"type":"object","additionalProperties":true}}},"AnalyzePlaybookDto":{"type":"object","properties":{"playbookId":{"type":"string"}}},"CompareSessionsDto":{"type":"object","properties":{"sessionId1":{"type":"string"},"sessionId2":{"type":"string"}},"required":["sessionId1","sessionId2"]},"CreatePipelineStageDto":{"type":"object","properties":{"name":{"type":"string"},"displayName":{"type":"string"},"color":{"type":"string"},"probability":{"type":"number","minimum":0,"maximum":100},"isClosedWon":{"type":"boolean"},"isClosedLost":{"type":"boolean"},"sortOrder":{"type":"number"},"maxDaysInStage":{"type":"number","nullable":true,"description":"SLA: flag deals that sit in this stage longer than this many days.","minimum":1,"maximum":3650},"requiredFields":{"description":"Opportunity fields that must be non-empty to ENTER this stage (allow-listed).","type":"array","items":{"type":"string"}},"exitCriteria":{"description":"Display-only checklist shown to reps.","type":"array","items":{"type":"string","maxLength":200}}},"required":["name","displayName","color","probability"]},"CreatePipelineDto":{"type":"object","properties":{"name":{"type":"string"},"description":{"type":"string"},"isDefault":{"type":"boolean"},"color":{"type":"string"},"stages":{"type":"array","items":{"$ref":"#/components/schemas/CreatePipelineStageDto"}}},"required":["name"]},"UpdatePipelineDto":{"type":"object","properties":{"name":{"type":"string"},"description":{"type":"string"},"isDefault":{"type":"boolean"},"isActive":{"type":"boolean"},"color":{"type":"string"},"sortOrder":{"type":"number"}}},"DuplicatePipelineDto":{"type":"object","properties":{"name":{"type":"string"}},"required":["name"]},"UpdatePipelineStageDto":{"type":"object","properties":{"name":{"type":"string"},"displayName":{"type":"string"},"color":{"type":"string"},"probability":{"type":"number","minimum":0,"maximum":100},"isClosedWon":{"type":"boolean"},"isClosedLost":{"type":"boolean"},"sortOrder":{"type":"number"},"maxDaysInStage":{"type":"number","nullable":true,"minimum":1,"maximum":3650},"requiredFields":{"type":"array","items":{"type":"string"}},"exitCriteria":{"type":"array","items":{"type":"string","maxLength":200}}}},"ReorderStagesDto":{"type":"object","properties":{"stageIds":{"type":"array","items":{"type":"string"}}},"required":["stageIds"]},"CreateProductDto":{"type":"object","properties":{"name":{"type":"string"},"sku":{"type":"string"},"description":{"type":"string"},"type":{"type":"string","enum":["PRODUCT","SERVICE","SUBSCRIPTION","LICENSE","BUNDLE"]},"category":{"type":"string","enum":["OTHER","TRAINING","SOFTWARE","HARDWARE","CONSULTING","SUPPORT"]},"listPrice":{"type":"number","minimum":0},"unitPrice":{"type":"number","minimum":0},"costPrice":{"type":"number","minimum":0},"currency":{"type":"string"},"billingFrequency":{"type":"string","enum":["ONE_TIME","MONTHLY","QUARTERLY","ANNUAL","USAGE_BASED"]},"isActive":{"type":"boolean"},"features":{"type":"array","items":{"type":"string"}},"tags":{"type":"array","items":{"type":"string"}}},"required":["name","sku","listPrice"]},"UpdateProductDto":{"type":"object","properties":{}},"CreateQuotaDto":{"type":"object","properties":{"userId":{"type":"string"},"teamId":{"type":"string"},"period":{"type":"string"},"periodType":{"type":"string","enum":["MONTH","QUARTER","YEAR"]},"target":{"type":"number","minimum":0},"currency":{"type":"string"},"startDate":{"type":"string"},"endDate":{"type":"string"}},"required":["period","target"]},"BulkQuotaDto":{"type":"object","properties":{"quotas":{"maxItems":500,"type":"array","items":{"$ref":"#/components/schemas/CreateQuotaDto"}}},"required":["quotas"]},"CopyQuotasDto":{"type":"object","properties":{"period":{"type":"string"},"periodType":{"type":"string","enum":["MONTH","QUARTER","YEAR"]}},"required":["period"]},"SubmitForecastDto":{"type":"object","properties":{"userId":{"type":"string"},"period":{"type":"string"},"periodType":{"type":"string","enum":["MONTH","QUARTER","YEAR"]},"commit":{"type":"number","minimum":0},"bestCase":{"type":"number","minimum":0},"pipeline":{"type":"number","minimum":0},"currency":{"type":"string"},"notes":{"type":"string"}},"required":["period"]},"SetDealForecastCategoryDto":{"type":"object","properties":{"category":{"type":"string","nullable":true,"enum":["PIPELINE","BEST_CASE","COMMIT","OMITTED"]},"reason":{"type":"string"}},"required":["category"]},"GenerateDocumentBody":{"type":"object","properties":{}},"DocumentTemplateBody":{"type":"object","properties":{}},"TriggerAgentDto":{"type":"object","properties":{"agentType":{"type":"string","enum":["DEAL_HEALTH","PIPELINE_ACCELERATION","ACCOUNT_INTELLIGENCE","OUTREACH_OPTIMIZATION","MEETING_PREP","COACHING","COMPETITIVE_INTELLIGENCE","NEXT_BEST_ACTION","WIN_CYCLE_ANALYZER","DATA_ENRICHMENT","WORKFLOW_AUTOMATION","LISTENING","REASONING","LEARN_MORE","EMAIL_ACTION","CRM_ACTION","MEETING_ACTION"],"description":"Type of agent to trigger"},"entityType":{"type":"string","description":"Entity type to target (Lead, Opportunity, Account, etc.)"},"entityId":{"type":"string","description":"Entity ID to target"},"priority":{"type":"string","enum":["LOW","MEDIUM","HIGH","URGENT"],"description":"Execution priority"},"metadata":{"type":"object","description":"Additional metadata for the agent"}},"required":["agentType"]},"UpdateOrgAgentSettingsDto":{"type":"object","properties":{"agentsEnabled":{"type":"boolean","description":"Whether agents may run for the organization"},"organizationId":{"type":"string","description":"Target organization (system ADMIN only; defaults to the session org)"}},"required":["agentsEnabled"]},"UpdateAlertDto":{"type":"object","properties":{"status":{"type":"string","enum":["ACKNOWLEDGED","ACTIONED","DISMISSED"],"description":"New alert status"},"notes":{"type":"string","description":"Notes about the action taken"}},"required":["status"]},"CreateRequestBody":{"type":"object","properties":{}},"SendLinkBody":{"type":"object","properties":{}},"WorkingHoursBody":{"type":"object","properties":{}},"UpdateSchedulerConfigBody":{"type":"object","properties":{}},"PublicBookingDto":{"type":"object","properties":{}},"CreateTokenBody":{"type":"object","properties":{}},"SendMessageDto":{"type":"object","properties":{}},"UpdateCurrentUserDto":{"type":"object","properties":{"name":{"type":"string"},"firstName":{"type":"string"},"lastName":{"type":"string"},"email":{"type":"string","format":"email"},"avatarUrl":{"type":"string"},"jobTitle":{"type":"string"},"department":{"type":"string"},"phone":{"type":"string"},"mobilePhone":{"type":"string"},"location":{"type":"string"},"timezone":{"type":"string"}}},"UpdateQuotaBody":{"type":"object","properties":{}},"UpdatePrivacyPreferencesDto":{"type":"object","properties":{"analyticsEnabled":{"type":"boolean"},"personalizationEnabled":{"type":"boolean"},"crashReportingEnabled":{"type":"boolean"},"aiTrainingConsent":{"type":"boolean"},"contextRetentionEnabled":{"type":"boolean"},"marketingEmailsEnabled":{"type":"boolean"},"productUpdatesEnabled":{"type":"boolean"},"retentionPeriodDays":{"type":"number","minimum":30,"maximum":365}}},"CreateDataExportRequestDto":{"type":"object","properties":{"reason":{"type":"string"}}},"CreateDataDeletionRequestDto":{"type":"object","properties":{"reason":{"type":"string"},"confirmationPhrase":{"type":"string"}},"required":["confirmationPhrase"]},"CreateAccountDeletionRequestDto":{"type":"object","properties":{"reason":{"type":"string"},"confirmationPhrase":{"type":"string"},"password":{"type":"string"}},"required":["confirmationPhrase","password"]},"UpdateEmailNotificationPreferencesBody":{"type":"object","properties":{}},"PatchEmailNotificationPreferencesBody":{"type":"object","properties":{}},"CreateTemplateBody":{"type":"object","properties":{}},"UpdateTemplateBody":{"type":"object","properties":{}},"CreateActionItemDto":{"type":"object","properties":{}},"UpdateActionItemDto":{"type":"object","properties":{}},"ResolveCustomLookupsDto":{"type":"object","properties":{"field":{"type":"string"},"values":{"maxItems":1000,"type":"array","items":{"type":"string"}}},"required":["field","values"]},"FieldMappingDto":{"type":"object","properties":{"sourceField":{"type":"string"},"targetField":{"type":"string"},"defaultValue":{"type":"string"},"transformation":{"type":"string"},"transform":{"type":"string"}},"required":["sourceField","targetField"]},"ImportOptionsDto":{"type":"object","properties":{"entityType":{"type":"string","enum":["LEAD","CONTACT","ACCOUNT","OPPORTUNITY"]},"fieldMappings":{"type":"array","items":{"$ref":"#/components/schemas/FieldMappingDto"}},"skipDuplicates":{"type":"boolean"},"duplicateCheckField":{"type":"string"},"updateExisting":{"type":"boolean"},"skipFirstRow":{"type":"boolean"},"dateFormat":{"type":"string"},"sourceCRM":{"type":"string"}},"required":["entityType"]},"ExportRequestDto":{"type":"object","properties":{"entityType":{"type":"string","enum":["LEAD","CONTACT","ACCOUNT","OPPORTUNITY","ACTIVITY","TASK"]},"format":{"type":"string","enum":["CSV","EXCEL","JSON"]},"fields":{"type":"array","items":{"type":"string"}},"filters":{"type":"object","additionalProperties":true},"startDate":{"type":"string"},"endDate":{"type":"string"},"ids":{"type":"array","items":{"type":"string"}}},"required":["entityType"]},"SuggestMappingsBody":{"type":"object","properties":{}},"DetectCRMBody":{"type":"object","properties":{}},"CreateMigrationBody":{"type":"object","properties":{}},"ApiPullDto":{"type":"object","properties":{}},"UpdatePlanDto":{"type":"object","properties":{}},"InviteDto":{"type":"object","properties":{}},"ReportFilterDto":{"type":"object","properties":{"dateRange":{"type":"string","enum":["TODAY","YESTERDAY","THIS_WEEK","LAST_WEEK","THIS_MONTH","LAST_MONTH","THIS_QUARTER","LAST_QUARTER","THIS_YEAR","LAST_YEAR","CUSTOM"]},"startDate":{"type":"string"},"endDate":{"type":"string"},"ownerIds":{"type":"array","items":{"type":"string"}},"stages":{"type":"array","items":{"type":"string"}},"sources":{"type":"array","items":{"type":"string"}},"minAmount":{"type":"number"},"maxAmount":{"type":"number"}}},"GenerateReportDto":{"type":"object","properties":{"type":{"type":"string","enum":["PIPELINE","WIN_RATE","ACTIVITY","REVENUE","LEAD_CONVERSION","FORECAST","CUSTOM"]},"chartType":{"type":"string","enum":["BAR","LINE","PIE","FUNNEL","TABLE","KPI"]},"groupBy":{"type":"string","enum":["DAY","WEEK","MONTH","QUARTER","YEAR","OWNER","STAGE","SOURCE","INDUSTRY","TYPE"]},"filters":{"$ref":"#/components/schemas/ReportFilterDto"}},"required":["type"]},"OAuthAppDto":{"type":"object","properties":{}},"InitiateOAuthDto":{"type":"object","properties":{"provider":{"type":"string","enum":["OUTLOOK","GMAIL","IMAP"]},"redirectUri":{"type":"string"}},"required":["provider"]},"UpdateEmailConnectionDto":{"type":"object","properties":{"syncEnabled":{"type":"boolean"},"syncIncoming":{"type":"boolean"},"syncOutgoing":{"type":"boolean"}}},"InitiateCalendarOAuthDto":{"type":"object","properties":{"provider":{"type":"string","enum":["GOOGLE","OUTLOOK","APPLE"]},"redirectUri":{"type":"string"}},"required":["provider"]},"UpdateCalendarConnectionDto":{"type":"object","properties":{"syncEnabled":{"type":"boolean"},"syncPastDays":{"type":"number","minimum":1,"maximum":365},"syncFutureDays":{"type":"number","minimum":1,"maximum":365},"calendarId":{"type":"string"}}},"CreateEventBody":{"type":"object","properties":{}},"CreateChannelDto":{"type":"object","properties":{}},"UpdateChannelDto":{"type":"object","properties":{}},"AddMembersDto":{"type":"object","properties":{}},"UpdateMessageDto":{"type":"object","properties":{}},"ReactionDto":{"type":"object","properties":{}},"PicklistValueInputDto":{"type":"object","properties":{"id":{"type":"string"},"value":{"type":"string"},"label":{"type":"string"},"isActive":{"type":"boolean"},"isDefault":{"type":"boolean"},"sortOrder":{"type":"number"}},"required":["value"]},"CreateCustomFieldDto":{"type":"object","properties":{"name":{"type":"string","description":"API name (auto-generated if not provided)"},"label":{"type":"string","description":"Display label"},"description":{"type":"string","description":"Field description"},"entity":{"enum":["LEAD","CONTACT","ACCOUNT","OPPORTUNITY","PRODUCT","QUOTE"],"type":"string","description":"Entity this field belongs to"},"fieldType":{"enum":["TEXT","TEXTAREA","NUMBER","CURRENCY","DATE","DATETIME","CHECKBOX","PICKLIST","MULTI_PICKLIST","EMAIL","PHONE","URL","LOOKUP","FORMULA","ROLLUP_SUMMARY"],"type":"string","description":"Field type"},"isRequired":{"type":"boolean","description":"Is field required"},"isUnique":{"type":"boolean","description":"Is field value unique"},"defaultValue":{"type":"string","description":"Default value"},"picklistValues":{"description":"Picklist values for PICKLIST or MULTI_PICKLIST types","type":"array","items":{"$ref":"#/components/schemas/PicklistValueInputDto"}},"lookupEntity":{"enum":["LEAD","CONTACT","ACCOUNT","OPPORTUNITY","PRODUCT","QUOTE"],"type":"string","description":"Target entity for LOOKUP type"},"lookupObject":{"type":"string","pattern":"^custom:[a-z][a-z0-9_]{0,62}$","description":"LOOKUP to a custom object: custom:<apiName> (lookupEntity stays empty)"},"lookupDeleteBehavior":{"enum":["CLEAR","RESTRICT"],"type":"string","description":"What deleting the lookup target does to this value"},"controllingField":{"type":"string","description":"Dependent picklist: name of the controlling PICKLIST or CHECKBOX field on the same entity"},"dependentValues":{"type":"object","additionalProperties":{"type":"array","items":{"type":"string"}},"description":"Controlling value → allowed values of this picklist"},"trackHistory":{"type":"boolean","description":"Record field history for this field"},"precision":{"type":"number","description":"Decimal precision for NUMBER/CURRENCY types"},"minValue":{"type":"number","description":"Minimum value for NUMBER/CURRENCY types"},"maxValue":{"type":"number","description":"Maximum value for NUMBER/CURRENCY types"},"maxLength":{"type":"number","description":"Maximum length for TEXT types"},"pattern":{"type":"string","description":"Regex validation pattern"},"formulaConfig":{"type":"object","description":"Required for FORMULA fields: { expression, returnType }","example":{"expression":"amount * probability / 100","returnType":"CURRENCY"}},"rollupConfig":{"type":"object","description":"Required for ROLLUP_SUMMARY fields: { childEntity, aggregate, aggregateField, filters }","example":{"childEntity":"OPPORTUNITY","aggregate":"SUM","aggregateField":"amount","filters":[{"field":"isClosed","operator":"EQUALS","value":false}]}}},"required":["label","entity","fieldType"]},"PreviewDerivedFieldDto":{"type":"object","properties":{"entity":{"enum":["LEAD","CONTACT","ACCOUNT","OPPORTUNITY","PRODUCT","QUOTE"],"type":"string"},"fieldType":{"enum":["FORMULA","ROLLUP_SUMMARY"],"type":"string"},"formulaConfig":{"type":"object","description":"Required when fieldType is FORMULA"},"rollupConfig":{"type":"object","description":"Required when fieldType is ROLLUP_SUMMARY"},"fieldId":{"type":"string","description":"Existing field id when editing — excluded from the cycle graph"},"fieldName":{"type":"string","description":"Proposed API name; enables self-reference and cycle checks"},"entityId":{"type":"string","description":"Sample record id — when given, the definition is also evaluated"}},"required":["entity","fieldType"]},"UpdateCustomFieldDto":{"type":"object","properties":{"lookupDeleteBehavior":{"enum":["CLEAR","RESTRICT"],"type":"string","description":"What deleting the lookup target does to this value"},"controllingField":{"type":"string","description":"Dependent picklist: name of the controlling PICKLIST or CHECKBOX field on the same entity"},"dependentValues":{"type":"object","additionalProperties":{"type":"array","items":{"type":"string"}},"description":"Controlling value → allowed values of this picklist"},"trackHistory":{"type":"boolean","description":"Record field history for this field"},"label":{"type":"string","description":"Display label"},"description":{"type":"string","description":"Field description"},"fieldType":{"enum":["TEXT","TEXTAREA","NUMBER","CURRENCY","DATE","DATETIME","CHECKBOX","PICKLIST","MULTI_PICKLIST","EMAIL","PHONE","URL","LOOKUP","FORMULA","ROLLUP_SUMMARY"],"type":"string","description":"Field type (cannot be changed after creation)"},"isRequired":{"type":"boolean","description":"Is field required"},"isUnique":{"type":"boolean","description":"Is field value unique"},"isActive":{"type":"boolean","description":"Is field active"},"defaultValue":{"type":"string","description":"Default value"},"picklistValues":{"description":"Picklist values","type":"array","items":{"$ref":"#/components/schemas/PicklistValueInputDto"}},"precision":{"type":"number","description":"Decimal precision"},"minValue":{"type":"number","description":"Minimum value"},"maxValue":{"type":"number","description":"Maximum value"},"maxLength":{"type":"number","description":"Maximum length"},"pattern":{"type":"string","description":"Regex validation pattern"},"formulaConfig":{"type":"object","description":"FORMULA config: { expression, returnType }"},"rollupConfig":{"type":"object","description":"ROLLUP_SUMMARY config: { childEntity, aggregate, aggregateField, filters }"}}},"AddPicklistValueBody":{"type":"object","properties":{}},"UpdatePicklistValueBody":{"type":"object","properties":{}},"ReorderPicklistValuesBody":{"type":"object","properties":{}},"SetFieldValueDto":{"type":"object","properties":{"fieldId":{"type":"string","description":"Custom field ID"},"entityType":{"enum":["LEAD","CONTACT","ACCOUNT","OPPORTUNITY","PRODUCT","QUOTE"],"type":"string","description":"Entity type"},"entityId":{"type":"string","description":"Entity record ID"},"value":{"type":"object","description":"Field value (null clears it)"}},"required":["fieldId","entityType","entityId","value"]},"CreatePriceBookDto":{"type":"object","properties":{"name":{"type":"string","description":"Price book name"},"description":{"type":"string","description":"Description"},"currency":{"type":"string","description":"Currency code","default":"USD"},"isStandard":{"type":"boolean","description":"Is this the standard price book"},"validFrom":{"type":"string","description":"Valid from date"},"validTo":{"type":"string","description":"Valid to date"}},"required":["name"]},"UpdatePriceBookDto":{"type":"object","properties":{"name":{"type":"string","description":"Price book name"},"description":{"type":"string","description":"Description"},"currency":{"type":"string","description":"Currency code"},"isActive":{"type":"boolean","description":"Is active"},"validFrom":{"type":"string","description":"Valid from date"},"validTo":{"type":"string","description":"Valid to date"}}},"CreatePriceBookEntryDto":{"type":"object","properties":{"productId":{"type":"string","description":"Product ID"},"listPrice":{"type":"number","description":"List price"},"unitPrice":{"type":"number","description":"Unit price override"},"minQuantity":{"type":"number","description":"Minimum quantity","default":1},"discountTiers":{"description":"Discount tiers array","type":"array","items":{"type":"string"}}},"required":["productId","listPrice"]},"CreateEntriesBulkBody":{"type":"object","properties":{}},"UpdatePriceBookEntryDto":{"type":"object","properties":{"listPrice":{"type":"number","description":"List price"},"unitPrice":{"type":"number","description":"Unit price override"},"minQuantity":{"type":"number","description":"Minimum quantity"},"discountTiers":{"description":"Discount tiers array","type":"array","items":{"type":"string"}},"isActive":{"type":"boolean","description":"Is active"}}},"WebFormFieldOptionDto":{"type":"object","properties":{"label":{"type":"string"},"value":{"type":"string"}},"required":["label","value"]},"WebFormFieldDto":{"type":"object","properties":{"name":{"type":"string","description":"Field name (used as form field name)"},"label":{"type":"string","description":"Field label (displayed to user)"},"type":{"type":"string","enum":["text","email","phone","textarea","select","checkbox","radio","number","date"],"description":"Field type"},"required":{"type":"boolean","description":"Is field required"},"placeholder":{"type":"string","description":"Placeholder text"},"options":{"description":"Options for select/radio fields","type":"array","items":{"$ref":"#/components/schemas/WebFormFieldOptionDto"}}},"required":["name","label","type"]},"CreateWebFormDto":{"type":"object","properties":{"name":{"type":"string","description":"Form name"},"description":{"type":"string","description":"Form description"},"fields":{"description":"Form fields configuration","type":"array","items":{"$ref":"#/components/schemas/WebFormFieldDto"}},"settings":{"type":"object","properties":{"submitButtonText":{"type":"string"},"showLabels":{"type":"boolean"},"showPlaceholders":{"type":"boolean"},"enableCaptcha":{"type":"boolean"},"doubleOptIn":{"type":"boolean"},"autoResponderEnabled":{"type":"boolean"},"autoResponderSubject":{"type":"string"},"autoResponderBody":{"type":"string"}},"required":[]},"styling":{"type":"object","properties":{"backgroundColor":{"type":"string"},"textColor":{"type":"string"},"buttonColor":{"type":"string"},"buttonTextColor":{"type":"string"},"fontFamily":{"type":"string"},"borderRadius":{"type":"string"},"padding":{"type":"string"},"customCss":{"type":"string"}},"required":[]},"redirectUrl":{"type":"string","description":"Redirect URL after submission"},"thankYouMessage":{"type":"string","description":"Thank you message after submission"},"notificationEmails":{"description":"Email addresses to notify on submission","type":"array","items":{"type":"string"}},"assignmentRuleId":{"type":"string","description":"Assignment rule ID to apply to leads"},"isActive":{"type":"boolean","description":"Is form active","default":true}},"required":["name"]},"UpdateWebFormDto":{"type":"object","properties":{"name":{"type":"string","description":"Form name"},"description":{"type":"string","description":"Form description"},"fields":{"description":"Form fields configuration","type":"array","items":{"$ref":"#/components/schemas/WebFormFieldDto"}},"settings":{"type":"object","properties":{"submitButtonText":{"type":"string"},"showLabels":{"type":"boolean"},"showPlaceholders":{"type":"boolean"},"enableCaptcha":{"type":"boolean"},"doubleOptIn":{"type":"boolean"},"autoResponderEnabled":{"type":"boolean"},"autoResponderSubject":{"type":"string"},"autoResponderBody":{"type":"string"}},"required":[]},"styling":{"type":"object","properties":{"backgroundColor":{"type":"string"},"textColor":{"type":"string"},"buttonColor":{"type":"string"},"buttonTextColor":{"type":"string"},"fontFamily":{"type":"string"},"borderRadius":{"type":"string"},"padding":{"type":"string"},"customCss":{"type":"string"}},"required":[]},"redirectUrl":{"type":"string","description":"Redirect URL after submission"},"thankYouMessage":{"type":"string","description":"Thank you message after submission"},"notificationEmails":{"description":"Email addresses to notify on submission","type":"array","items":{"type":"string"}},"assignmentRuleId":{"type":"string","description":"Assignment rule ID to apply to leads"},"isActive":{"type":"boolean","description":"Is form active"}}},"SubmitWebFormDto":{"type":"object","properties":{"data":{"type":"object","additionalProperties":true,"description":"Form field values"}},"required":["data"]},"CreateApiKeyDto":{"type":"object","properties":{"name":{"type":"string","maxLength":120,"description":"API key name"},"description":{"type":"string","maxLength":500,"description":"API key description"},"scopes":{"maxItems":64,"description":"Scopes: READ_<RESOURCE> / WRITE_<RESOURCE> per resource (e.g. READ_LEADS), or * for everything.","default":["read"],"example":["READ_LEADS","WRITE_CONTACTS"],"type":"array","items":{"type":"string"}},"rateLimit":{"type":"number","minimum":1,"maximum":1000000,"description":"Requests allowed per window","default":1000},"rateLimitWindow":{"type":"number","minimum":1,"maximum":86400,"description":"Rate limit window in seconds","default":3600},"allowedIps":{"maxItems":100,"description":"IP allow-list: addresses or CIDR blocks (203.0.113.0/24, 2001:db8::/32). Empty allows any IP.","example":["203.0.113.0/24"],"type":"array","items":{"type":"string"}},"expiresAt":{"type":"string","description":"When the key stops working (ISO 8601). Omit for no expiry."}},"required":["name"]},"UpdateApiKeyDto":{"type":"object","properties":{"name":{"type":"string","maxLength":120,"description":"API key name"},"description":{"type":"string","maxLength":500,"description":"API key description"},"scopes":{"maxItems":64,"description":"Scopes/permissions for the key","type":"array","items":{"type":"string"}},"rateLimit":{"type":"number","minimum":1,"maximum":1000000,"description":"Requests allowed per window"},"rateLimitWindow":{"type":"number","minimum":1,"maximum":86400,"description":"Rate limit window in seconds"},"allowedIps":{"maxItems":100,"description":"IP allow-list: addresses or CIDR blocks; [] allows any IP","type":"array","items":{"type":"string"}},"expiresAt":{"type":"string","nullable":true,"description":"Expiry (ISO 8601); null removes it"},"status":{"enum":["ACTIVE","REVOKED","EXPIRED"],"type":"string","description":"API key status"}}},"RotateApiKeyDto":{"type":"object","properties":{"overlapHours":{"type":"number","minimum":0,"maximum":168,"description":"Hours the old secret keeps working after rotation (0 revokes it immediately).","default":24}}},"CreateBulkJobDto":{"type":"object","properties":{"object":{"type":"string","pattern":"^(lead|contact|account|opportunity|task|custom:[a-z0-9_]{1,64})$","description":"lead | contact | account | opportunity | task, or custom:<objectApiName>","example":"contact"},"operation":{"enum":["insert","upsert","update","delete","export"],"type":"string"},"externalIdField":{"type":"string","maxLength":100,"description":"Upsert key (required for upsert; optional for update/delete, default \"id\"): a text column such as \"email\", or \"customFields.<apiName>\"","example":"email"},"contentType":{"enum":["csv","jsonl"],"type":"string","description":"Input/export format. Inferred from the uploaded file name when omitted; `records` implies jsonl."},"data":{"type":"string","description":"Inline CSV or JSON-lines input, instead of a multipart `file` upload"},"records":{"maxItems":50000,"description":"Inline input rows as a JSON array (JSON body only)","type":"array","items":{"type":"object"}},"fields":{"maxItems":200,"description":"Export only: columns to include (comma-separated in multipart). Custom fields as customFields.<apiName>.","type":"array","items":{"type":"string"}},"filter":{"type":"object","additionalProperties":true,"description":"Export only: field equality filters on the object’s own columns, e.g. {\"status\":\"NEW\"}"}},"required":["object","operation"]},"CustomObjectFieldInput":{"type":"object","properties":{"name":{"type":"string","description":"API name (derived from the label when omitted)"},"label":{"type":"string"},"type":{"type":"string","description":"TEXT, TEXTAREA, NUMBER, CURRENCY, PERCENT, DATE, DATETIME, CHECKBOX, PICKLIST, MULTI_PICKLIST, EMAIL, PHONE, URL, LOOKUP, MASTER_DETAIL, FORMULA, ROLLUP_SUMMARY"},"description":{"type":"string"},"required":{"type":"boolean"},"defaultValue":{"type":"object"},"options":{"type":"array","items":{"type":"string"}},"lookupTarget":{"type":"string","description":"LOOKUP / MASTER_DETAIL target: LEAD, CONTACT, ACCOUNT, OPPORTUNITY, TASK, CASE or custom:<apiName>"},"lookupObjectId":{"type":"string","description":"Alias of lookupTarget (custom object id or API name)"},"onDelete":{"type":"string","enum":["CLEAR","RESTRICT","CASCADE"],"description":"What deleting the target does: lookups CLEAR | RESTRICT, master-detail CASCADE | RESTRICT"},"controllingField":{"type":"string","description":"Dependent picklist: the controlling field name"},"dependentValues":{"type":"object","additionalProperties":{"type":"array","items":{"type":"string"}},"description":"Controlling value → allowed values of this picklist"},"trackHistory":{"type":"boolean","description":"Record field history for this field"},"formula":{"type":"object","additionalProperties":true,"description":"FORMULA: { expression, returnType }"},"rollup":{"type":"object","additionalProperties":true,"description":"ROLLUP_SUMMARY: { childObject, relationshipField, aggregate, aggregateField?, filters? }"}}},"CreateCustomObjectBody":{"type":"object","properties":{"nameField":{"type":"string","description":"Text field that labels records"},"fields":{"type":"array","items":{"$ref":"#/components/schemas/CustomObjectFieldInput"}}}},"UpdateCustomObjectBody":{"type":"object","properties":{"nameField":{"type":"string","nullable":true}}},"AddFieldBody":{"type":"object","properties":{"name":{"type":"string","description":"API name (derived from the label when omitted)"},"label":{"type":"string"},"type":{"type":"string","description":"TEXT, TEXTAREA, NUMBER, CURRENCY, PERCENT, DATE, DATETIME, CHECKBOX, PICKLIST, MULTI_PICKLIST, EMAIL, PHONE, URL, LOOKUP, MASTER_DETAIL, FORMULA, ROLLUP_SUMMARY"},"description":{"type":"string"},"required":{"type":"boolean"},"defaultValue":{"type":"object"},"options":{"type":"array","items":{"type":"string"}},"lookupTarget":{"type":"string","description":"LOOKUP / MASTER_DETAIL target: LEAD, CONTACT, ACCOUNT, OPPORTUNITY, TASK, CASE or custom:<apiName>"},"lookupObjectId":{"type":"string","description":"Alias of lookupTarget (custom object id or API name)"},"onDelete":{"type":"string","enum":["CLEAR","RESTRICT","CASCADE"],"description":"What deleting the target does: lookups CLEAR | RESTRICT, master-detail CASCADE | RESTRICT"},"controllingField":{"type":"string","description":"Dependent picklist: the controlling field name"},"dependentValues":{"type":"object","additionalProperties":{"type":"array","items":{"type":"string"}},"description":"Controlling value → allowed values of this picklist"},"trackHistory":{"type":"boolean","description":"Record field history for this field"},"formula":{"type":"object","additionalProperties":true,"description":"FORMULA: { expression, returnType }"},"rollup":{"type":"object","additionalProperties":true,"description":"ROLLUP_SUMMARY: { childObject, relationshipField, aggregate, aggregateField?, filters? }"}}},"UpdateFieldBody":{"type":"object","properties":{"name":{"type":"string","description":"API name (derived from the label when omitted)"},"label":{"type":"string"},"type":{"type":"string","description":"TEXT, TEXTAREA, NUMBER, CURRENCY, PERCENT, DATE, DATETIME, CHECKBOX, PICKLIST, MULTI_PICKLIST, EMAIL, PHONE, URL, LOOKUP, MASTER_DETAIL, FORMULA, ROLLUP_SUMMARY"},"description":{"type":"string"},"required":{"type":"boolean"},"defaultValue":{"type":"object"},"options":{"type":"array","items":{"type":"string"}},"lookupTarget":{"type":"string","description":"LOOKUP / MASTER_DETAIL target: LEAD, CONTACT, ACCOUNT, OPPORTUNITY, TASK, CASE or custom:<apiName>"},"lookupObjectId":{"type":"string","description":"Alias of lookupTarget (custom object id or API name)"},"onDelete":{"type":"string","enum":["CLEAR","RESTRICT","CASCADE"],"description":"What deleting the target does: lookups CLEAR | RESTRICT, master-detail CASCADE | RESTRICT"},"controllingField":{"type":"string","description":"Dependent picklist: the controlling field name"},"dependentValues":{"type":"object","additionalProperties":{"type":"array","items":{"type":"string"}},"description":"Controlling value → allowed values of this picklist"},"trackHistory":{"type":"boolean","description":"Record field history for this field"},"formula":{"type":"object","additionalProperties":true,"description":"FORMULA: { expression, returnType }"},"rollup":{"type":"object","additionalProperties":true,"description":"ROLLUP_SUMMARY: { childObject, relationshipField, aggregate, aggregateField?, filters? }"}}},"BulkUpdateRecordsBody":{"type":"object","properties":{"ids":{"description":"Up to 200 record ids","type":"array","items":{"type":"string"}},"field":{"type":"string","description":"Field API name to set"},"value":{"type":"object","description":"New value (null clears)"}}},"CreateRecordBody":{"type":"object","properties":{"data":{"type":"object","additionalProperties":true}}},"UpdateRecordBody":{"type":"object","properties":{"data":{"type":"object","additionalProperties":true}}},"CreateOrderBody":{"type":"object","properties":{}},"ConvertQuoteToOrderBody":{"type":"object","properties":{}},"UpdateOrderBody":{"type":"object","properties":{}},"UpdateFulfillmentBody":{"type":"object","properties":{}},"UpdatePaymentBody":{"type":"object","properties":{}},"ShipOrderBody":{"type":"object","properties":{}},"SendOrderEmailBody":{"type":"object","properties":{"kind":{"type":"string","enum":["confirmation","shipped","delivered"]},"recipientEmail":{"type":"string","format":"email"},"ccEmails":{"maxItems":10,"type":"array","items":{"type":"string","format":"email"}},"message":{"type":"string","maxLength":10000},"attachPdf":{"type":"boolean"}}},"SignBody":{"type":"object","properties":{}},"DeclineBody":{"type":"object","properties":{}},"UpdateRequestBody":{"type":"object","properties":{}},"SetLeadRoutingBody":{"type":"object","properties":{}},"SimulateWhatIfBody":{"type":"object","properties":{}},"CreateBody":{"type":"object","properties":{}},"UpdateBody":{"type":"object","properties":{}},"AssignAccountsBody":{"type":"object","properties":{}},"SetTerritoryLeadRoutingBody":{"type":"object","properties":{}},"AssignLeadsBody":{"type":"object","properties":{}},"CreateCaseDto":{"type":"object","properties":{"subject":{"type":"string","maxLength":300},"description":{"type":"string","maxLength":20000},"status":{"type":"string","enum":["NEW","OPEN","PENDING_CUSTOMER","ESCALATED","RESOLVED","CLOSED"]},"priority":{"type":"string","enum":["LOW","MEDIUM","HIGH","URGENT"]},"type":{"type":"string","enum":["QUESTION","INCIDENT","PROBLEM","FEATURE_REQUEST","BILLING","OTHER"]},"origin":{"type":"string","enum":["EMAIL","PHONE","WEB","CHAT","PORTAL","INTERNAL"]},"accountId":{"type":"string"},"contactId":{"type":"string"},"opportunityId":{"type":"string"},"assignedToId":{"type":"string"},"slaDueAt":{"type":"string"},"tags":{"type":"array","items":{"type":"string"}}},"required":["subject"]},"UpdateCaseDto":{"type":"object","properties":{}},"AddCaseCommentDto":{"type":"object","properties":{"body":{"type":"string","maxLength":20000},"isInternal":{"type":"boolean"}},"required":["body"]},"AssignCaseDto":{"type":"object","properties":{"assignedToId":{"type":"string","nullable":true}}},"ChangeCaseStatusDto":{"type":"object","properties":{"status":{"type":"string","enum":["NEW","OPEN","PENDING_CUSTOMER","ESCALATED","RESOLVED","CLOSED"]}},"required":["status"]},"AddStepBody":{"type":"object","properties":{}},"UpdateStepBody":{"type":"object","properties":{}},"ReorderStepsBody":{"type":"object","properties":{}},"StartExecutionBody":{"type":"object","properties":{}},"CompleteStepBody":{"type":"object","properties":{}},"SkipStepBody":{"type":"object","properties":{}},"EnrollContactBody":{"type":"object","properties":{}},"BulkEnrollBody":{"type":"object","properties":{}},"ProcessStepBody":{"type":"object","properties":{}},"UnenrollBody":{"type":"object","properties":{}},"PauseEnrollmentBody":{"type":"object","properties":{}},"ResumeEnrollmentBody":{"type":"object","properties":{}},"GetPresenceSummaryBody":{"type":"object","properties":{}},"AcquireLockBody":{"type":"object","properties":{}},"RefreshLockBody":{"type":"object","properties":{}},"CreateSplitDto":{"type":"object","properties":{"userId":{"type":"string"},"splitType":{"type":"string","enum":["REFERRAL","REVENUE","OVERLAY","QUOTA","MANAGEMENT"]},"splitPercent":{"type":"number","minimum":0,"maximum":100},"includeInQuota":{"type":"boolean"},"includeInForecast":{"type":"boolean"},"notes":{"type":"string"}},"required":["userId","splitPercent"]},"ApplySplitItemDto":{"type":"object","properties":{"userId":{"type":"string"},"splitType":{"type":"string","enum":["REFERRAL","REVENUE","OVERLAY","QUOTA","MANAGEMENT"]},"splitPercent":{"type":"number","minimum":0,"maximum":100}},"required":["userId","splitPercent"]},"ApplySplitsDto":{"type":"object","properties":{"splits":{"minItems":1,"maxItems":20,"type":"array","items":{"$ref":"#/components/schemas/ApplySplitItemDto"}}},"required":["splits"]},"UpdateSplitDto":{"type":"object","properties":{"splitType":{"type":"string","enum":["REFERRAL","REVENUE","OVERLAY","QUOTA","MANAGEMENT"]},"splitPercent":{"type":"number","minimum":0,"maximum":100},"includeInQuota":{"type":"boolean"},"includeInForecast":{"type":"boolean"},"notes":{"type":"string"}}},"RejectSplitBody":{"type":"object","properties":{}},"CreateCompetitorDto":{"type":"object","properties":{"name":{"type":"string"},"website":{"type":"string"},"logoUrl":{"type":"string"},"description":{"type":"string"},"tier":{"type":"string","enum":["PRIMARY","SECONDARY","EMERGING","INDIRECT"]},"strengths":{"type":"array","items":{"type":"string"}},"weaknesses":{"type":"array","items":{"type":"string"}},"differentiators":{"type":"array","items":{"type":"string"}},"targetMarket":{"type":"string"},"pricingModel":{"type":"string"}},"required":["name"]},"UpdateCompetitorDto":{"type":"object","properties":{"name":{"type":"string"},"website":{"type":"string"},"logoUrl":{"type":"string"},"description":{"type":"string"},"tier":{"type":"string","enum":["PRIMARY","SECONDARY","EMERGING","INDIRECT"]},"status":{"type":"string","enum":["ACTIVE","INACTIVE","ACQUIRED","MERGED"]},"strengths":{"type":"array","items":{"type":"string"}},"weaknesses":{"type":"array","items":{"type":"string"}},"differentiators":{"type":"array","items":{"type":"string"}},"targetMarket":{"type":"string"},"pricingModel":{"type":"string"}}},"CreateCompetitorProductDto":{"type":"object","properties":{"name":{"type":"string"},"comparableToProductId":{"type":"string"},"featureGaps":{"type":"array","items":{"type":"string"}},"featureAdvantages":{"type":"array","items":{"type":"string"}},"positioning":{"type":"string"},"pricingInfo":{"type":"string"}},"required":["name"]},"CreateBattlecardDto":{"type":"object","properties":{"title":{"type":"string"},"overview":{"type":"string"},"keyTalkingPoints":{"type":"array","items":{"type":"string"}},"objectionHandling":{"type":"array","items":{"type":"object","properties":{"objection":{"type":"string"},"response":{"type":"string"}},"required":["objection","response"]}},"trapQuestions":{"type":"array","items":{"type":"string"}},"isActive":{"type":"boolean"}},"required":["title"]},"UpdateBattlecardDto":{"type":"object","properties":{"title":{"type":"string"},"overview":{"type":"string"},"keyTalkingPoints":{"type":"array","items":{"type":"string"}},"objectionHandling":{"type":"array","items":{"type":"object","properties":{"objection":{"type":"string"},"response":{"type":"string"}},"required":["objection","response"]}},"trapQuestions":{"type":"array","items":{"type":"string"}},"isActive":{"type":"boolean"}}},"LinkOpportunityCompetitorDto":{"type":"object","properties":{"competitorId":{"type":"string"},"isPrimary":{"type":"boolean"},"threatLevel":{"type":"string","enum":["HIGH","MEDIUM","LOW","CRITICAL"]},"notes":{"type":"string"}},"required":["competitorId"]},"MarkCompetitorAsWinnerBody":{"type":"object","properties":{}},"CreatePartnerDto":{"type":"object","properties":{"companyName":{"type":"string"},"website":{"type":"string"},"type":{"type":"string","enum":["RESELLER","REFERRAL","TECHNOLOGY","SYSTEM_INTEGRATOR","OEM","AFFILIATE"]},"tier":{"type":"string","enum":["REGISTERED","SILVER","GOLD","PLATINUM"]},"status":{"type":"string","enum":["SUSPENDED","PENDING","PROSPECT","APPROVED","TERMINATED"]},"commissionRate":{"type":"number","minimum":0,"maximum":100},"portalEnabled":{"type":"boolean"}},"required":["companyName"]},"UpdatePartnerDto":{"type":"object","properties":{"companyName":{"type":"string"},"website":{"type":"string"},"type":{"type":"string","enum":["RESELLER","REFERRAL","TECHNOLOGY","SYSTEM_INTEGRATOR","OEM","AFFILIATE"]},"tier":{"type":"string","enum":["REGISTERED","SILVER","GOLD","PLATINUM"]},"status":{"type":"string","enum":["SUSPENDED","PENDING","PROSPECT","APPROVED","TERMINATED"]},"commissionRate":{"type":"number","minimum":0,"maximum":100},"portalEnabled":{"type":"boolean"}}},"AddPartnerUserDto":{"type":"object","properties":{"userId":{"type":"string"},"role":{"type":"string","enum":["ADMIN","MANAGER","VIEWER","MEMBER"]},"isPrimary":{"type":"boolean"}},"required":["userId"]},"InvitePartnerUserDto":{"type":"object","properties":{"email":{"type":"string"},"name":{"type":"string"},"role":{"type":"string","enum":["ADMIN","MANAGER","VIEWER","MEMBER"]},"isPrimary":{"type":"boolean"}},"required":["email"]},"AssignAccountDto":{"type":"object","properties":{"accountId":{"type":"string"},"isExclusive":{"type":"boolean"}},"required":["accountId"]},"ApproveRegistrationBody":{"type":"object","properties":{}},"RejectRegistrationBody":{"type":"object","properties":{}},"CreateDealRoomDto":{"type":"object","properties":{}},"UpdateDealRoomDto":{"type":"object","properties":{}},"AddDocumentDto":{"type":"object","properties":{}},"TrackDocumentViewDto":{"type":"object","properties":{}},"AddStakeholderDto":{"type":"object","properties":{}},"CreateNoteDto":{"type":"object","properties":{}},"UpdateConfigBody":{"type":"object","properties":{}},"CreateDashboardDto":{"type":"object","properties":{}},"UpdateDashboardDto":{"type":"object","properties":{}},"AddWidgetDto":{"type":"object","properties":{}},"UpdateWidgetPositionsDto":{"type":"object","properties":{}},"UpdateWidgetDto":{"type":"object","properties":{}},"PreviewReportDto":{"type":"object","properties":{}},"CreateReportDto":{"type":"object","properties":{}},"ScheduleReportDto":{"type":"object","properties":{}},"UpdateReportDto":{"type":"object","properties":{}},"DraftReplyBody":{"type":"object","properties":{}},"SaveDraftDto":{"type":"object","properties":{}},"MarkReadDto":{"type":"object","properties":{}},"ToggleStarDto":{"type":"object","properties":{}},"BulkActionDto":{"type":"object","properties":{}},"LinkCrmDto":{"type":"object","properties":{}},"BulkMarkReadDto":{"type":"object","properties":{}},"BulkToggleStarDto":{"type":"object","properties":{}},"BulkArchiveDto":{"type":"object","properties":{}},"MoveToFolderDto":{"type":"object","properties":{}},"DeleteThreadsDto":{"type":"object","properties":{}},"SetFollowUpReminderDto":{"type":"object","properties":{}},"NeedsAssessmentDto":{"type":"object","properties":{"useCaseIds":{"description":"Selected use case IDs","type":"array","items":{"type":"string"}},"accountId":{"type":"string","description":"Account ID for history-based recommendations"},"industry":{"type":"string","description":"Industry vertical"},"companySize":{"type":"string","description":"Company size tier","enum":["SMALL","MEDIUM","LARGE","ENTERPRISE"]},"budget":{"type":"string","description":"Budget tier","enum":["LOW","MEDIUM","HIGH","ENTERPRISE"]}},"required":["useCaseIds"]},"BuildBundleDto":{"type":"object","properties":{"productIds":{"description":"Product IDs to include in bundle","type":"array","items":{"type":"string"}},"quantities":{"type":"object","description":"Quantities keyed by product ID","example":{"prod_abc":2,"prod_def":1}},"contractLength":{"type":"number","description":"Contract length in months (for contract-length discounts)"}},"required":["productIds","quantities"]},"ApplyBundleToQuoteDto":{"type":"object","properties":{"productIds":{"description":"Product IDs in the bundle","type":"array","items":{"type":"string"}},"quantities":{"type":"object","description":"Quantities keyed by product ID"},"contractLength":{"type":"number","description":"Contract length in months"}},"required":["productIds","quantities"]},"PricingConditionDto":{"type":"object","properties":{"field":{"type":"string","description":"Condition field to evaluate","enum":["volume","contract_length","account_tier","deal_size","product_category","customer_type","region"]},"operator":{"type":"string","description":"Comparison operator","enum":["EQUALS","NOT_EQUALS","GREATER_THAN","LESS_THAN","GREATER_EQUAL","LESS_EQUAL","IN","NOT_IN","BETWEEN"]},"value":{"type":"object","description":"Comparison value (string or number)"},"valueEnd":{"type":"object","description":"End value for BETWEEN operator"}},"required":["field","operator","value"]},"PricingActionDto":{"type":"object","properties":{"type":{"type":"string","description":"Action type","enum":["DISCOUNT_PERCENT","DISCOUNT_FIXED","PRICE_OVERRIDE","MARKUP_PERCENT"]},"value":{"type":"number","description":"Action value (percent or fixed amount)"},"maxDiscount":{"type":"number","description":"Maximum discount cap for percentage discounts"},"appliesToProductIds":{"description":"Limit action to specific product IDs","type":"array","items":{"type":"string"}},"appliesToCategories":{"description":"Limit action to specific product categories","type":"array","items":{"type":"string"}}},"required":["type","value"]},"CreateDynamicPricingRuleDto":{"type":"object","properties":{"name":{"type":"string","description":"Rule name"},"description":{"type":"string","description":"Rule description"},"conditions":{"description":"Conditions that must be met","type":"array","items":{"$ref":"#/components/schemas/PricingConditionDto"}},"conditionLogic":{"type":"string","description":"Logic for combining conditions","enum":["AND","OR"]},"action":{"description":"Action to take when conditions are met","allOf":[{"$ref":"#/components/schemas/PricingActionDto"}]},"priority":{"type":"number","description":"Priority (lower = higher priority)","default":100},"isActive":{"type":"boolean","description":"Whether rule is active","default":true},"validFrom":{"type":"string","description":"Valid from date (ISO string)"},"validTo":{"type":"string","description":"Valid to date (ISO string)"},"maxUsage":{"type":"number","description":"Maximum number of times this rule can be used"}},"required":["name","conditions","conditionLogic","action"]},"UpdateDynamicPricingRuleDto":{"type":"object","properties":{"name":{"type":"string","description":"Rule name"},"description":{"type":"string","description":"Rule description"},"conditions":{"description":"Conditions that must be met","type":"array","items":{"$ref":"#/components/schemas/PricingConditionDto"}},"conditionLogic":{"type":"string","description":"Logic for combining conditions","enum":["AND","OR"]},"action":{"description":"Action to take when conditions are met","allOf":[{"$ref":"#/components/schemas/PricingActionDto"}]},"priority":{"type":"number","description":"Priority (lower = higher priority)"},"isActive":{"type":"boolean","description":"Whether rule is active"},"validFrom":{"type":"string","description":"Valid from date (ISO string)"},"validTo":{"type":"string","description":"Valid to date (ISO string)"},"maxUsage":{"type":"number","description":"Maximum number of times this rule can be used"}}},"TrackSavePlanOutcomeBody":{"type":"object","properties":{}},"OverrideExecutionBody":{"type":"object","properties":{}},"TriggerProgressionBody":{"type":"object","properties":{}},"AddObjectionResponseBody":{"type":"object","properties":{}},"GenerateResponseBody":{"type":"object","properties":{}},"RateResponseBody":{"type":"object","properties":{}},"ComposeSmartEmailDto":{"type":"object","properties":{"contactId":{"type":"string"},"opportunityId":{"type":"string"},"dealId":{"type":"string"},"threadId":{"type":"string"},"inReplyToMessageId":{"type":"string"},"purpose":{"type":"string"},"recipientName":{"type":"string"},"companyName":{"type":"string"},"subject":{"type":"string"},"body":{"type":"string"},"tone":{"type":"string"},"style":{"type":"string"},"intent":{"type":"string"},"conversationSummary":{"type":"string"},"toEmails":{"type":"array","items":{"type":"string"}}}},"UpdateSmartEmailDraftDto":{"type":"object","properties":{"subject":{"type":"string"},"bodyHtml":{"type":"string"},"toEmails":{"type":"array","items":{"type":"string"}},"ccEmails":{"type":"array","items":{"type":"string"}}}},"ScheduleSmartEmailDto":{"type":"object","properties":{"sendAt":{"type":"string"},"scheduledAt":{"type":"string"},"timezone":{"type":"string"}}},"CreateDigitalSalesRoomDto":{"type":"object","properties":{"opportunityId":{"type":"string"},"name":{"type":"string"},"welcomeMessage":{"type":"string"},"branding":{"type":"object","additionalProperties":true}},"required":["opportunityId"]},"UpdateDigitalSalesRoomDto":{"type":"object","properties":{"name":{"type":"string"},"welcomeMessage":{"type":"string"},"branding":{"type":"object","additionalProperties":true},"stage":{"type":"string","enum":["ACTIVE","PAUSED"]},"isActive":{"type":"boolean"}}},"GenerateSectionBody":{"type":"object","properties":{}},"SearchThreadsBody":{"type":"object","properties":{}},"CreateSurveyBody":{"type":"object","properties":{}},"UpdateSurveyPutBody":{"type":"object","properties":{}},"UpdateSurveyBody":{"type":"object","properties":{}},"SubmitResponseBody":{"type":"object","properties":{}},"PublicSurveyAnswerDto":{"type":"object","properties":{}},"InvitePortalUserDto":{"type":"object","properties":{"contactId":{"type":"string","maxLength":64},"sendEmail":{"type":"boolean"}},"required":["contactId"]},"UpdateEnrichmentConfigDto":{"type":"object","properties":{"isEnabled":{"type":"boolean"},"autoEnrichNewLeads":{"type":"boolean"},"autoEnrichNewContacts":{"type":"boolean"},"autoEnrichNewAccounts":{"type":"boolean"},"enrichmentProvider":{"type":"string"},"enrichmentFrequencyDays":{"type":"number"},"conflictResolution":{"enum":["auto_overwrite","manual_review","keep_existing"],"type":"string"},"fieldsToEnrich":{"type":"array","items":{"type":"string"}},"triggers":{"type":"array","items":{"type":"object"}},"providerPriority":{"type":"array","items":{"type":"string"}},"mergeStrategy":{"type":"string"},"autoMerge":{"type":"boolean"},"creditBudget":{"type":"object","additionalProperties":true}}},"ResolveConflictBody":{"type":"object","properties":{}},"MergePreviewBodyDto":{"type":"object","properties":{"survivorId":{"type":"string"}}},"MergeDuplicateSetBody":{"type":"object","properties":{}},"UpdateDuplicateDetectionConfigDto":{"type":"object","properties":{"isEnabled":{"type":"boolean"},"autoScanOnCreate":{"type":"boolean"},"autoScanOnUpdate":{"type":"boolean"},"minimumConfidence":{"type":"number"},"entityTypes":{"type":"array","items":{"type":"string"}},"matchFields":{"type":"object","additionalProperties":{"type":"array","items":{"type":"string"}}},"scanFrequencyHours":{"type":"number"}}},"TriggerScanBody":{"type":"object","properties":{}},"ScanRecordBody":{"type":"object","properties":{}},"UpdateNodeBody":{"type":"object","properties":{}},"AddAccountEdgeBody":{"type":"object","properties":{}},"CreateAnalysisBody":{"type":"object","properties":{}},"AutoAnalyzeFrontendBody":{"type":"object","properties":{}},"CreateJobBody":{"type":"object","properties":{}},"UpdateAttributionConfigBody":{"type":"object","properties":{}},"FixIssueBody":{"type":"object","properties":{}},"BulkFixBody":{"type":"object","properties":{}},"CompleteActionBody":{"type":"object","properties":{}},"SnoozeActionBody":{"type":"object","properties":{}},"DismissActionBody":{"type":"object","properties":{}},"ParseCommandBody":{"type":"object","properties":{}},"ExecuteCommandFrontendBody":{"type":"object","properties":{}},"ExecuteCommandBody":{"type":"object","properties":{}},"OverrideRecommendationBody":{"type":"object","properties":{}},"SimulateAssignmentBody":{"type":"object","properties":{}},"CreateWorkflowBody":{"type":"object","properties":{}},"UpdateWorkflowBody":{"type":"object","properties":{}},"TestWorkflowBody":{"type":"object","properties":{}},"CreateOperationBody":{"type":"object","properties":{}},"PreviewOperationBody":{"type":"object","properties":{}},"CreateSandboxBody":{"type":"object","properties":{}},"RefreshSandboxBody":{"type":"object","properties":{}},"CreateChangeSetBody":{"type":"object","properties":{}},"DeployBodyBody":{"type":"object","properties":{}},"DeployChangeSetBody":{"type":"object","properties":{}},"ConfigureAgentBody":{"type":"object","properties":{}},"CreateReviewBody":{"type":"object","properties":{}},"PublishAgentBody":{"type":"object","properties":{}},"CreateReviewRootBody":{"type":"object","properties":{}},"UpdateTokenBody":{"type":"object","properties":{}},"CreateTriggerBody":{"type":"object","properties":{}},"UpdateTriggerBody":{"type":"object","properties":{}},"TestTriggerBody":{"type":"object","properties":{}},"GraphqlRequestDto":{"type":"object","properties":{}},"OverridePredictionBody":{"type":"object","properties":{}},"AddLanguageBody":{"type":"object","properties":{}},"AddCurrencyBody":{"type":"object","properties":{}},"UpsertTranslationBody":{"type":"object","properties":{}},"ConvertCurrencyBody":{"type":"object","properties":{}},"CreateDiscountRuleDto":{"type":"object","properties":{"name":{"type":"string"},"description":{"type":"string"},"type":{"type":"string","enum":["BUNDLE","VOLUME","PROMO_CODE","CUSTOMER_SEGMENT","TIME_LIMITED"]},"code":{"type":"string"},"discount":{"type":"number","minimum":0},"discountType":{"type":"string","enum":["PERCENTAGE","FIXED_AMOUNT"]},"conditions":{"type":"object","additionalProperties":true},"validFrom":{"type":"string"},"validTo":{"type":"string"},"isActive":{"type":"boolean"},"priority":{"type":"number"},"stackable":{"type":"boolean"},"maxUses":{"type":"number","minimum":0}},"required":["name","type","discount","discountType"]},"UpdateDiscountRuleDto":{"type":"object","properties":{"name":{"type":"string"},"description":{"type":"string"},"code":{"type":"string"},"discount":{"type":"number","minimum":0},"discountType":{"type":"string","enum":["PERCENTAGE","FIXED_AMOUNT"]},"conditions":{"type":"object","additionalProperties":true},"validFrom":{"type":"string"},"validTo":{"type":"string"},"isActive":{"type":"boolean"},"priority":{"type":"number"},"stackable":{"type":"boolean"},"maxUses":{"type":"number","minimum":0}}},"CloneDiscountRuleDto":{"type":"object","properties":{"name":{"type":"string"}},"required":["name"]},"ValidateCodeDto":{"type":"object","properties":{"code":{"type":"string"},"quoteId":{"type":"string"}},"required":["code","quoteId"]},"ApplyDiscountDto":{"type":"object","properties":{"quoteId":{"type":"string"},"code":{"type":"string"},"ruleId":{"type":"string"}},"required":["quoteId"]},"CreateQuoteVersionDto":{"type":"object","properties":{"reason":{"type":"string"},"description":{"type":"string"}}},"RestoreVersionDto":{"type":"object","properties":{"versionId":{"type":"string"},"reason":{"type":"string"},"createBackup":{"type":"boolean"}},"required":["versionId"]},"CompareVersionsDto":{"type":"object","properties":{"versionAId":{"type":"string"},"versionBId":{"type":"string"}},"required":["versionAId","versionBId"]},"CreateBeforeSaveHookDto":{"type":"object","properties":{"name":{"type":"string","maxLength":120,"example":"Credit check"},"description":{"type":"string","maxLength":1000},"objectType":{"type":"string","example":"OPPORTUNITY","description":"LEAD | CONTACT | ACCOUNT | OPPORTUNITY | TASK | CASE | custom:<apiName>"},"operations":{"type":"array","items":{"required":true,"minItems":1,"items":{"type":"string","enum":["CREATE","UPDATE","DELETE"]},"example":["CREATE","UPDATE"],"type":"array"}},"url":{"type":"string","maxLength":2048,"description":"https:// endpoint that receives the proposed record (omit when functionId is set)"},"functionId":{"type":"string","nullable":true,"description":"A serverless function that decides instead of a URL (same {allow, patch, message} contract). Empty string switches back to url."},"timeoutMs":{"type":"number","minimum":250,"maximum":5000,"default":3000},"failureMode":{"enum":["FAIL_OPEN","FAIL_CLOSED"],"type":"string","default":"FAIL_OPEN"},"position":{"type":"number","minimum":0,"maximum":1000,"description":"Hooks on the same object run in ascending order"},"isActive":{"type":"boolean"}},"required":["name","objectType","operations"]},"UpdateBeforeSaveHookDto":{"type":"object","properties":{"name":{"type":"string","maxLength":120,"example":"Credit check"},"description":{"type":"string","maxLength":1000},"objectType":{"type":"string","example":"OPPORTUNITY","description":"LEAD | CONTACT | ACCOUNT | OPPORTUNITY | TASK | CASE | custom:<apiName>"},"operations":{"minItems":1,"items":{"type":"string","enum":["CREATE","UPDATE","DELETE"]},"example":["CREATE","UPDATE"],"type":"array"},"url":{"type":"string","maxLength":2048,"description":"https:// endpoint that receives the proposed record (omit when functionId is set)"},"functionId":{"type":"string","nullable":true,"description":"A serverless function that decides instead of a URL (same {allow, patch, message} contract). Empty string switches back to url."},"timeoutMs":{"type":"number","minimum":250,"maximum":5000,"default":3000},"failureMode":{"enum":["FAIL_OPEN","FAIL_CLOSED"],"type":"string","default":"FAIL_OPEN"},"position":{"type":"number","minimum":0,"maximum":1000,"description":"Hooks on the same object run in ascending order"},"isActive":{"type":"boolean"}}},"TestBeforeSaveHookDto":{"type":"object","properties":{"operation":{"enum":["CREATE","UPDATE","DELETE"],"type":"string"},"record":{"type":"object","additionalProperties":true,"description":"Sample proposed record"},"previous":{"type":"object","additionalProperties":true,"description":"Sample stored record (updates and deletes)"}}},"CreateAfterSaveTriggerDto":{"type":"object","properties":{"name":{"type":"string","maxLength":120,"example":"Sync to ERP"},"description":{"type":"string","maxLength":1000},"objectType":{"type":"string","example":"OPPORTUNITY","description":"LEAD | CONTACT | ACCOUNT | OPPORTUNITY | TASK | CASE | custom:<apiName>"},"operations":{"type":"array","items":{"required":true,"minItems":1,"items":{"type":"string","enum":["CREATE","UPDATE","DELETE"]},"example":["CREATE","UPDATE"],"type":"array"}},"functionId":{"type":"string","description":"The serverless function to run"},"timeoutMs":{"type":"number","minimum":250,"maximum":10000,"default":5000},"position":{"type":"number","minimum":0,"maximum":1000,"description":"Triggers on the same object run in ascending order"},"isActive":{"type":"boolean"}},"required":["name","objectType","operations","functionId"]},"UpdateAfterSaveTriggerDto":{"type":"object","properties":{"name":{"type":"string","maxLength":120,"example":"Sync to ERP"},"description":{"type":"string","maxLength":1000},"objectType":{"type":"string","example":"OPPORTUNITY","description":"LEAD | CONTACT | ACCOUNT | OPPORTUNITY | TASK | CASE | custom:<apiName>"},"operations":{"minItems":1,"items":{"type":"string","enum":["CREATE","UPDATE","DELETE"]},"example":["CREATE","UPDATE"],"type":"array"},"functionId":{"type":"string","description":"The serverless function to run"},"timeoutMs":{"type":"number","minimum":250,"maximum":10000,"default":5000},"position":{"type":"number","minimum":0,"maximum":1000,"description":"Triggers on the same object run in ascending order"},"isActive":{"type":"boolean"}}},"TestAfterSaveTriggerDto":{"type":"object","properties":{"operation":{"enum":["CREATE","UPDATE","DELETE"],"type":"string"},"record":{"type":"object","additionalProperties":true,"description":"Sample saved record"},"previous":{"type":"object","additionalProperties":true,"description":"Sample previous record (updates)"}}},"CreateCustomActionDto":{"type":"object","properties":{"apiName":{"type":"string","pattern":"^[a-z][a-z0-9_]{1,47}$","description":"Stable identifier, also the copilot tool suffix","example":"enrich_company"},"label":{"type":"string","maxLength":120,"example":"Enrich company"},"description":{"type":"string","maxLength":1000},"url":{"type":"string","maxLength":2048,"description":"https:// endpoint that receives signed POSTs (omit when functionId is set)"},"functionId":{"type":"string","nullable":true,"maxLength":64,"description":"A serverless function that implements the action instead of an endpoint; null to switch back to url"},"namedCredentialId":{"type":"string","nullable":true,"maxLength":64,"description":"A named credential to call instead of url: the request goes to its base URL + calloutPath with its auth. null to switch back to url"},"calloutPath":{"type":"string","maxLength":2048,"description":"Path under the named credential's base URL (default /)","example":"/v1/enrich"},"inputSchema":{"type":"object","additionalProperties":true,"description":"JSON Schema (object of scalar fields) for the request `input`"},"outputSchema":{"type":"object","additionalProperties":true,"description":"JSON Schema (object of scalar fields) the response must match"},"kind":{"enum":["READ","WRITE"],"type":"string","description":"WRITE actions need confirmation in the copilot and approval for agents"},"idempotent":{"type":"boolean","description":"Safe to repeat: enables retries (same Idempotency-Key)"},"maxRetries":{"type":"number","minimum":0,"maximum":3},"timeoutMs":{"type":"number","minimum":500,"maximum":30000,"default":10000},"objectTypes":{"example":["ACCOUNT","custom:invoice"],"type":"array","items":{"type":"string"}},"allowManual":{"type":"boolean","description":"Show a Run action button on record pages"},"exposeAsTool":{"type":"boolean","description":"Offer the action to the copilot as a tool"},"toolDescription":{"type":"string","maxLength":1000,"description":"What the assistant is told the tool does"},"inputMapping":{"type":"object","additionalProperties":true,"description":"{ inputName: \"record.field\" | { value } } for record runs"},"outputMapping":{"type":"object","additionalProperties":{"type":"string"},"description":"{ outputName: \"recordField\" } written back after record runs"},"isActive":{"type":"boolean"}},"required":["apiName","label","inputSchema","outputSchema","kind"]},"UpdateCustomActionDto":{"type":"object","properties":{"label":{"type":"string","maxLength":120,"example":"Enrich company"},"description":{"type":"string","maxLength":1000},"url":{"type":"string","maxLength":2048,"description":"https:// endpoint that receives signed POSTs (omit when functionId is set)"},"functionId":{"type":"string","nullable":true,"maxLength":64,"description":"A serverless function that implements the action instead of an endpoint; null to switch back to url"},"namedCredentialId":{"type":"string","nullable":true,"maxLength":64,"description":"A named credential to call instead of url: the request goes to its base URL + calloutPath with its auth. null to switch back to url"},"calloutPath":{"type":"string","maxLength":2048,"description":"Path under the named credential's base URL (default /)","example":"/v1/enrich"},"inputSchema":{"type":"object","additionalProperties":true,"description":"JSON Schema (object of scalar fields) for the request `input`"},"outputSchema":{"type":"object","additionalProperties":true,"description":"JSON Schema (object of scalar fields) the response must match"},"kind":{"enum":["READ","WRITE"],"type":"string","description":"WRITE actions need confirmation in the copilot and approval for agents"},"idempotent":{"type":"boolean","description":"Safe to repeat: enables retries (same Idempotency-Key)"},"maxRetries":{"type":"number","minimum":0,"maximum":3},"timeoutMs":{"type":"number","minimum":500,"maximum":30000,"default":10000},"objectTypes":{"example":["ACCOUNT","custom:invoice"],"type":"array","items":{"type":"string"}},"allowManual":{"type":"boolean","description":"Show a Run action button on record pages"},"exposeAsTool":{"type":"boolean","description":"Offer the action to the copilot as a tool"},"toolDescription":{"type":"string","maxLength":1000,"description":"What the assistant is told the tool does"},"inputMapping":{"type":"object","additionalProperties":true,"description":"{ inputName: \"record.field\" | { value } } for record runs"},"outputMapping":{"type":"object","additionalProperties":{"type":"string"},"description":"{ outputName: \"recordField\" } written back after record runs"},"isActive":{"type":"boolean"}}},"TestCustomActionDto":{"type":"object","properties":{"input":{"type":"object","additionalProperties":true,"description":"Sample input (validated against the input schema)"}}},"RunCustomActionDto":{"type":"object","properties":{"objectType":{"type":"string","example":"ACCOUNT","description":"LEAD | CONTACT | ACCOUNT | OPPORTUNITY | TASK | custom:<apiName>"},"recordId":{"type":"string"},"input":{"type":"object","additionalProperties":true,"description":"Values for inputs the record mapping does not fill"}},"required":["objectType","recordId"]},"CreateFunctionDto":{"type":"object","properties":{"apiName":{"type":"string","pattern":"^[a-z][a-z0-9_]{1,47}$","description":"Stable identifier (workflow steps, HTTP path)","example":"score_lead"},"name":{"type":"string","maxLength":120,"example":"Score lead"},"description":{"type":"string","maxLength":1000},"source":{"type":"string","maxLength":262144,"description":"Source of version 1; when given, it is compiled and deployed"},"language":{"enum":["javascript","typescript"],"type":"string","default":"typescript"},"envVars":{"type":"object","additionalProperties":{"type":"string"},"description":"Non-secret configuration, readable as `env` (UPPER_SNAKE_CASE names)"},"timeoutMs":{"type":"number","minimum":1000,"maximum":30000,"default":10000},"memoryMb":{"type":"number","minimum":16,"maximum":128,"default":128},"allowedHosts":{"maxItems":20,"description":"Hosts fetch() may reach: api.example.com or *.example.com","type":"array","items":{"type":"string"}},"runAsUserId":{"type":"string","description":"Member the salesos.* client acts as (default: you)"},"runAsAdmin":{"type":"boolean","description":"Keep the run-as user's admin visibility (off: an admin runs as a regular member)","default":false},"scopes":{"maxItems":64,"description":"READ_/WRITE_<RESOURCE> scopes for salesos.*","type":"array","items":{"type":"string"}},"httpEnabled":{"type":"boolean","description":"Expose POST /functions/:id/invoke","default":false},"eventTypes":{"maxItems":20,"description":"Catalog event types that trigger the function","type":"array","items":{"type":"string"}},"schedule":{"type":"string","nullable":true,"maxLength":120,"description":"Five-field cron (UTC), at most every 5 minutes; null to clear"},"isActive":{"type":"boolean","default":true}},"required":["apiName","name"]},"UpdateFunctionDto":{"type":"object","properties":{"name":{"type":"string","maxLength":120,"example":"Score lead"},"description":{"type":"string","maxLength":1000},"envVars":{"type":"object","additionalProperties":{"type":"string"},"description":"Non-secret configuration, readable as `env` (UPPER_SNAKE_CASE names)"},"timeoutMs":{"type":"number","minimum":1000,"maximum":30000,"default":10000},"memoryMb":{"type":"number","minimum":16,"maximum":128,"default":128},"allowedHosts":{"maxItems":20,"description":"Hosts fetch() may reach: api.example.com or *.example.com","type":"array","items":{"type":"string"}},"runAsUserId":{"type":"string","description":"Member the salesos.* client acts as (default: you)"},"runAsAdmin":{"type":"boolean","description":"Keep the run-as user's admin visibility (off: an admin runs as a regular member)","default":false},"scopes":{"maxItems":64,"description":"READ_/WRITE_<RESOURCE> scopes for salesos.*","type":"array","items":{"type":"string"}},"httpEnabled":{"type":"boolean","description":"Expose POST /functions/:id/invoke","default":false},"eventTypes":{"maxItems":20,"description":"Catalog event types that trigger the function","type":"array","items":{"type":"string"}},"schedule":{"type":"string","nullable":true,"maxLength":120,"description":"Five-field cron (UTC), at most every 5 minutes; null to clear"},"isActive":{"type":"boolean","default":true}}},"CreateFunctionVersionDto":{"type":"object","properties":{"source":{"type":"string","maxLength":262144,"description":"TypeScript or JavaScript exporting a default (input, context) handler"},"language":{"enum":["javascript","typescript"],"type":"string"},"note":{"type":"string","maxLength":500},"deploy":{"type":"boolean","description":"Deploy the new version immediately","default":false}},"required":["source","language"]},"DeployFunctionDto":{"type":"object","properties":{"versionId":{"type":"string"}},"required":["versionId"]},"SetFunctionSecretDto":{"type":"object","properties":{"value":{"type":"string","maxLength":8192,"description":"Stored encrypted; never returned"}},"required":["value"]},"TestFunctionDto":{"type":"object","properties":{"input":{"type":"object","additionalProperties":true,"description":"Sample input"},"source":{"type":"string","maxLength":262144,"description":"Unsaved source to run instead of a saved version"},"language":{"enum":["javascript","typescript"],"type":"string"},"versionId":{"type":"string","description":"Run this saved version (default: the deployed one)"}}},"InvokeFunctionDto":{"type":"object","properties":{"input":{"type":"object","additionalProperties":true,"description":"Passed to the handler as `input`"}}},"PublishCustomEventDto":{"type":"object","properties":{"payload":{"type":"object","additionalProperties":true,"description":"The event's data; validated against the type's current schema","example":{"orderId":"SO-1042","carrier":"UPS"}}},"required":["payload"]},"TokenRequestDto":{"type":"object","properties":{"grant_type":{"type":"string","enum":["authorization_code","refresh_token","client_credentials"]},"code":{"type":"string"},"redirect_uri":{"type":"string"},"code_verifier":{"type":"string"},"refresh_token":{"type":"string"},"scope":{"type":"string"},"client_id":{"type":"string"},"client_secret":{"type":"string"},"token":{"type":"string","description":"revoke / introspect"},"token_type_hint":{"type":"string","enum":["access_token","refresh_token"]}}},"MetadataComponentRefDto":{"type":"object","properties":{"type":{"enum":["CUSTOM_OBJECT","CUSTOM_FIELD","CUSTOM_ACTION","BEFORE_SAVE_HOOK","VALIDATION_RULE","WORKFLOW","FUNCTION","PAGE_LAYOUT","PAGE","APP_PAGE","FLOW","APPROVAL_PROCESS","CUSTOM_LABEL","TRANSLATION","PROFILE","REPORT","DASHBOARD","EMAIL_TEMPLATE","LIST_VIEW","ASSIGNMENT_RULE","NAMED_CREDENTIAL","CUSTOM_EVENT_TYPE","AFTER_SAVE_TRIGGER"],"type":"string"},"key":{"type":"string","maxLength":300,"description":"Stable key: apiName, ENTITY:name, OBJECT:name (hooks), OBJECT:profile (layouts)"}},"required":["type","key"]},"RetrieveMetadataDto":{"type":"object","properties":{"types":{"type":"array","items":{"type":"string","enum":["CUSTOM_OBJECT","CUSTOM_FIELD","CUSTOM_ACTION","BEFORE_SAVE_HOOK","VALIDATION_RULE","WORKFLOW","FUNCTION","PAGE_LAYOUT","PAGE","APP_PAGE","FLOW","APPROVAL_PROCESS","CUSTOM_LABEL","TRANSLATION","PROFILE","REPORT","DASHBOARD","EMAIL_TEMPLATE","LIST_VIEW","ASSIGNMENT_RULE","NAMED_CREDENTIAL","CUSTOM_EVENT_TYPE","AFTER_SAVE_TRIGGER"]},"description":"Types to retrieve (default: all)"},"components":{"maxItems":600,"description":"Only these components","type":"array","items":{"$ref":"#/components/schemas/MetadataComponentRefDto"}},"projectName":{"type":"string","maxLength":100,"description":"Project name written into salesos.project.json"}}},"DeployMetadataDto":{"type":"object","properties":{"project":{"type":"object","additionalProperties":true,"description":"Parsed salesos.project.json"},"files":{"type":"object","additionalProperties":{"type":"string"},"description":"Component files relative to the project sourceDir: { \"objects/invoice.object.json\": \"<file text>\" }"},"checkOnly":{"type":"boolean","description":"Validate only; nothing is written","default":false},"activate":{"type":"boolean","description":"New custom actions, hooks and functions start active (functions only when every declared secret is set)","default":false},"destructive":{"maxItems":200,"description":"Components to delete from the target (destructive changes)","type":"array","items":{"$ref":"#/components/schemas/MetadataComponentRefDto"}},"label":{"type":"string","maxLength":200,"description":"Shown in deploy history"},"runTests":{"enum":["NONE","SPECIFIED","ALL"],"type":"string","default":"SPECIFIED","description":"Tests to run before anything is written: NONE, SPECIFIED (the package's tests) or ALL (the package's plus the tests earlier deploys left in the org). A failing test fails the deploy."}},"required":["files"]},"MetadataTestPolicyDto":{"type":"object","properties":{"requireTestsFor":{"type":"array","items":{"type":"string","enum":["FUNCTION","FLOW"]},"description":"Component types a deploy may only create or change when a test in the run covers each one"}},"required":["requireTestsFor"]},"FlowSummaryView":{"type":"object","properties":{"id":{"type":"string"},"apiName":{"type":"string"},"label":{"type":"string"},"description":{"type":"string","nullable":true},"type":{"type":"string","enum":["SCREEN","AUTOLAUNCHED"]},"launchContexts":{"description":"record:<OBJECT>, record:custom:<api>, list:<OBJECT>, page, standalone, autolaunched","type":"array","items":{"type":"string"}}},"required":["id","apiName","label","type","launchContexts"]},"FlowListView":{"type":"object","properties":{"data":{"type":"array","items":{"$ref":"#/components/schemas/FlowSummaryView"}}},"required":["data"]},"FlowInterviewSummaryView":{"type":"object","properties":{"id":{"type":"string"},"flowId":{"type":"string"},"flowApiName":{"type":"string"},"flowLabel":{"type":"string"},"status":{"type":"string"},"currentElement":{"type":"string","nullable":true},"updatedAt":{"format":"date-time","type":"string"},"createdAt":{"format":"date-time","type":"string"}},"required":["id","flowId","flowApiName","flowLabel","status","updatedAt","createdAt"]},"FlowInterviewListView":{"type":"object","properties":{"data":{"type":"array","items":{"$ref":"#/components/schemas/FlowInterviewSummaryView"}}},"required":["data"]},"StartInterviewDto":{"type":"object","properties":{"recordId":{"type":"string","maxLength":64},"objectType":{"type":"string","description":"LEAD, CONTACT, ACCOUNT, OPPORTUNITY, TASK or custom:<apiName>.","pattern":"^(LEAD|CONTACT|ACCOUNT|OPPORTUNITY|TASK|CASE|lead|contact|account|opportunity|task|custom:[a-z][a-z0-9_]{0,62})$"},"recordIds":{"description":"List actions: the selected record ids (become the `recordIds` collection).","maxItems":1000,"type":"array","items":{"type":"string"}},"inputs":{"type":"object","additionalProperties":true,"description":"Values for input variables."},"debug":{"type":"boolean","description":"Admins: run with the variable inspector and trace."},"dryRun":{"type":"boolean","description":"Admins (debug): skip record writes, actions and email."},"versionId":{"type":"string","description":"Admins (debug): run this version (e.g. the draft) instead of the active one."}}},"FlowScreenFieldView":{"type":"object","properties":{"name":{"type":"string"},"type":{"type":"string"},"label":{"type":"string","nullable":true},"helpText":{"type":"string","nullable":true},"required":{"type":"boolean"},"value":{"type":"object","description":"Current value"},"text":{"type":"string","nullable":true,"description":"Rendered display / rich text"},"options":{"nullable":true,"type":"array","items":{"type":"object","properties":{"value":{"type":"string"},"label":{"type":"string"}}}},"multiple":{"type":"boolean"},"controllingField":{"type":"string","nullable":true},"dependentValues":{"type":"object","additionalProperties":{"type":"array","items":{"type":"string"}},"nullable":true},"lookupObject":{"type":"string","nullable":true},"min":{"type":"number","nullable":true},"max":{"type":"number","nullable":true},"maxLength":{"type":"number","nullable":true},"visibleWhen":{"type":"object","additionalProperties":true,"nullable":true,"description":"Conditions on other screen fields the client evaluates live"}},"required":["name","type","required","multiple"]},"FlowScreenView":{"type":"object","properties":{"elementId":{"type":"string"},"label":{"type":"string","nullable":true},"nextLabel":{"type":"string","nullable":true},"fields":{"type":"array","items":{"$ref":"#/components/schemas/FlowScreenFieldView"}},"canGoBack":{"type":"boolean"},"isLast":{"type":"boolean"}},"required":["elementId","fields","canGoBack","isLast"]},"FlowErrorView":{"type":"object","properties":{"code":{"type":"string"},"message":{"type":"string"},"elementId":{"type":"string","nullable":true}},"required":["code","message"]},"FlowInterviewView":{"type":"object","properties":{"id":{"type":"string"},"flowId":{"type":"string"},"flowApiName":{"type":"string"},"flowLabel":{"type":"string"},"version":{"type":"number"},"status":{"type":"string","enum":["RUNNING","PAUSED","COMPLETED","FAILED","CANCELLED"]},"revision":{"type":"number","description":"Send it back with next/back; a stale one is 409 FLOW_STALE_SCREEN"},"debug":{"type":"boolean"},"screen":{"nullable":true,"type":"object","allOf":[{"$ref":"#/components/schemas/FlowScreenView"}]},"message":{"type":"string","nullable":true},"error":{"nullable":true,"type":"object","allOf":[{"$ref":"#/components/schemas/FlowErrorView"}]},"outputs":{"type":"object","additionalProperties":true,"nullable":true}},"required":["id","flowId","flowApiName","flowLabel","version","status","revision","debug"]},"InterviewStepDto":{"type":"object","properties":{"revision":{"type":"number","minimum":0},"values":{"type":"object","additionalProperties":true,"description":"Screen field name → value."}},"required":["revision"]},"InterviewRevisionDto":{"type":"object","properties":{"revision":{"type":"number","minimum":0}},"required":["revision"]},"ListenEventsDto":{"type":"object","properties":{"events":{"maxItems":64,"description":"Catalog event types to stream (e.g. lead.created, opportunity.*); all when omitted","type":"array","items":{"type":"string","maxLength":80}}}},"TriggerEventDto":{"type":"object","properties":{"type":{"type":"string","maxLength":80,"description":"Catalog event type; its catalog sample is sent, flagged test: true","example":"lead.created"}},"required":["type"]},"DeletedResponse":{"type":"object","properties":{"deleted":{"type":"boolean"}},"required":["deleted"]},"DeletedRecordResponse":{"type":"object","properties":{"id":{"type":"string"},"deleted":{"type":"boolean"},"deletedAt":{"type":"string","format":"date-time"}},"required":["id","deleted","deletedAt"]},"SuccessResponse":{"type":"object","properties":{"success":{"type":"boolean"}},"required":["success"]},"MessageResponse":{"type":"object","properties":{"message":{"type":"string"}},"required":["message"]},"SecretResponse":{"type":"object","properties":{"secret":{"type":"string","description":"The new signing secret. Shown once."}},"required":["secret"]},"BulkActionFailure":{"type":"object","properties":{"id":{"type":"string"},"error":{"type":"string"}},"required":["id","error"]},"BulkActionResult":{"type":"object","properties":{"message":{"type":"string"},"count":{"type":"number","description":"Records changed"},"unchanged":{"type":"number","description":"Records that already had the values"},"failed":{"type":"array","items":{"$ref":"#/components/schemas/BulkActionFailure"}}},"required":["message","count"]},"LeadConversionResult":{"type":"object","properties":{"accountId":{"type":"string","nullable":true},"contactId":{"type":"string","nullable":true},"opportunityId":{"type":"string","nullable":true},"reusedAccountId":{"type":"string","nullable":true,"description":"Set when an existing account (same domain or name) was reused"},"reusedContactId":{"type":"string","nullable":true,"description":"Set when an existing contact (same email) was reused"}},"required":["accountId","contactId","opportunityId","reusedAccountId","reusedContactId"]},"DeletedWithMessage":{"type":"object","properties":{"id":{"type":"string"},"message":{"type":"string"}},"required":["id","message"]},"PaginationMeta":{"type":"object","properties":{"page":{"type":"number"},"limit":{"type":"number"},"total":{"type":"number"},"totalPages":{"type":"number"}},"required":["page","limit","total","totalPages"]},"CircuitStatus":{"type":"object","properties":{"state":{"type":"string","enum":["CLOSED","OPEN","HALF_OPEN"]},"failures":{"type":"number"},"retryAt":{"type":"string","nullable":true,"format":"date-time"}},"required":["state","failures","retryAt"]},"ManagedBy":{"type":"object","properties":{"installationId":{"type":"string"},"componentId":{"type":"string"},"appId":{"type":"string"},"appName":{"type":"string"},"appSlug":{"type":"string"}},"required":["installationId","componentId","appId","appName","appSlug"]},"SchemaFieldDescription":{"type":"object","properties":{"name":{"type":"string"},"type":{"type":"string","enum":["string","number","integer","boolean","string[]"]},"required":{"type":"boolean"},"description":{"type":"string"},"enumValues":{"type":"array","items":{"type":"string"}}},"required":["name","type"]},"ManualCustomAction":{"type":"object","properties":{"id":{"type":"string"},"apiName":{"type":"string"},"label":{"type":"string"},"description":{"type":"string","nullable":true},"kind":{"type":"string","enum":["READ","WRITE"]},"inputFields":{"type":"array","items":{"$ref":"#/components/schemas/SchemaFieldDescription"}},"inputMapping":{"type":"object","nullable":true,"additionalProperties":true},"outputMapping":{"type":"object","nullable":true,"additionalProperties":true}},"required":["id","apiName","label","description","kind","inputFields","inputMapping","outputMapping"]},"ActionRunResult":{"type":"object","properties":{"invocationId":{"type":"string"},"ok":{"type":"boolean"},"status":{"type":"string","enum":["SUCCEEDED","FAILED","TIMEOUT","BLOCKED","CIRCUIT_OPEN"]},"output":{"type":"object","nullable":true,"additionalProperties":true},"statusCode":{"type":"number","nullable":true},"latencyMs":{"type":"number"},"attempts":{"type":"number"},"errorCode":{"type":"string","nullable":true},"errorMessage":{"type":"string","nullable":true},"requestHeaders":{"type":"object","additionalProperties":{"type":"string"}},"requestBody":{"type":"object","additionalProperties":true},"responseBody":{"type":"string"}},"required":["invocationId","ok","status","output","statusCode","latencyMs","attempts","errorCode","errorMessage","requestHeaders","requestBody","responseBody"]},"ManualActionRunResult":{"type":"object","properties":{"invocationId":{"type":"string"},"ok":{"type":"boolean"},"status":{"type":"string","enum":["SUCCEEDED","FAILED","TIMEOUT","BLOCKED","CIRCUIT_OPEN"]},"output":{"type":"object","nullable":true,"additionalProperties":true},"statusCode":{"type":"number","nullable":true},"latencyMs":{"type":"number"},"attempts":{"type":"number"},"errorCode":{"type":"string","nullable":true},"errorMessage":{"type":"string","nullable":true},"requestHeaders":{"type":"object","additionalProperties":{"type":"string"}},"requestBody":{"type":"object","additionalProperties":true},"responseBody":{"type":"string"},"applied":{"description":"Record fields the outputs were written to","type":"array","items":{"type":"string"}},"writeError":{"type":"string","nullable":true}},"required":["invocationId","ok","status","output","statusCode","latencyMs","attempts","errorCode","errorMessage","requestHeaders","requestBody","responseBody"]},"HookTestResult":{"type":"object","properties":{"invocationId":{"type":"string"},"status":{"type":"string"},"decision":{"type":"string","enum":["ALLOW","DENY","ERROR"]},"message":{"type":"string","nullable":true},"patch":{"type":"object","additionalProperties":true},"statusCode":{"type":"number","nullable":true},"latencyMs":{"type":"number"},"errorCode":{"type":"string","nullable":true},"errorMessage":{"type":"string","nullable":true},"requestHeaders":{"type":"object","additionalProperties":{"type":"string"}},"requestBody":{"type":"object","additionalProperties":true},"responseBody":{"type":"string","nullable":true}},"required":["invocationId","status","decision","message","patch","statusCode","latencyMs","errorCode","errorMessage","requestHeaders","requestBody","responseBody"]},"AfterSaveTestResult":{"type":"object","properties":{"invocationId":{"type":"string"},"ok":{"type":"boolean"},"status":{"type":"string"},"output":{"type":"object","description":"Whatever the handler returned (JSON)"},"errorCode":{"type":"string","nullable":true},"errorMessage":{"type":"string","nullable":true},"durationMs":{"type":"number"},"requestBody":{"type":"object","additionalProperties":true,"description":"The payload the function received"}},"required":["invocationId","ok","status","output","errorCode","errorMessage","durationMs","requestBody"]},"PublishedCustomEvent":{"type":"object","properties":{"eventId":{"type":"string","example":"evt_3f9c2a7d1b8e4c60a5d2f1e0b9c8a7d6"},"type":{"type":"string","example":"custom.order_shipped"},"version":{"type":"number","description":"Schema version the payload was validated against"},"occurredAt":{"type":"string","format":"date-time"},"webhooks":{"type":"number","description":"Webhooks the event was sent to"}},"required":["eventId","type","version","occurredAt","webhooks"]},"OrgCustomEventType":{"type":"object","properties":{"type":{"type":"string","example":"custom.order_shipped"},"version":{"type":"number"},"category":{"type":"string","example":"custom"},"label":{"type":"string"},"description":{"type":"string"},"schema":{"type":"object","additionalProperties":true,"description":"Payload JSON Schema"},"isActive":{"type":"boolean"},"publishAccess":{"type":"string","enum":["ADMINS","MEMBERS"]}},"required":["type","version","category","label","description","schema","isActive","publishAccess"]},"OrgEventCatalog":{"type":"object","properties":{"catalogVersion":{"type":"number"},"envelope":{"type":"object","additionalProperties":true},"signature":{"type":"object","additionalProperties":true},"events":{"type":"array","items":{"type":"object","additionalProperties":true},"description":"Catalog events (as GET /v1/events/catalog)"},"custom":{"type":"array","items":{"$ref":"#/components/schemas/OrgCustomEventType"}}},"required":["catalogVersion","envelope","signature","events","custom"]},"FunctionSecretName":{"type":"object","properties":{"name":{"type":"string"},"createdAt":{"type":"string","format":"date-time"},"updatedAt":{"type":"string","format":"date-time"}},"required":["name","createdAt","updatedAt"]},"FunctionSecretSaved":{"type":"object","properties":{"name":{"type":"string"},"saved":{"type":"boolean"}},"required":["name","saved"]},"FunctionRunResult":{"type":"object","properties":{"invocationId":{"type":"string"},"ok":{"type":"boolean"},"status":{"type":"string","enum":["SUCCEEDED","FAILED","TIMEOUT","MEMORY_LIMIT","THROTTLED","CRASHED"]},"output":{"type":"object","description":"Whatever the handler returned (JSON)"},"errorCode":{"type":"string","nullable":true},"errorMessage":{"type":"string","nullable":true},"durationMs":{"type":"number"},"cpuMs":{"type":"number"},"memoryBytes":{"type":"number"},"stdout":{"type":"string"},"stderr":{"type":"string"},"logsTruncated":{"type":"boolean"},"version":{"type":"number","nullable":true}},"required":["invocationId","ok","status","output","errorCode","errorMessage","durationMs","cpuMs","memoryBytes","stdout","stderr","logsTruncated","version"]},"ErrorSummary":{"type":"object","properties":{"code":{"type":"string","nullable":true},"message":{"type":"string","nullable":true}},"required":["code","message"]},"FunctionInvokeResult":{"type":"object","properties":{"invocationId":{"type":"string"},"status":{"type":"string"},"ok":{"type":"boolean"},"output":{"type":"object","description":"Whatever the handler returned (JSON)"},"error":{"nullable":true,"type":"object","allOf":[{"$ref":"#/components/schemas/ErrorSummary"}]},"durationMs":{"type":"number"},"version":{"type":"number","nullable":true}},"required":["invocationId","status","ok","output","error","durationMs","version"]},"WebhookSecretRotated":{"type":"object","properties":{"id":{"type":"string"},"secret":{"type":"string","description":"Shown once."},"message":{"type":"string"}},"required":["id","secret","message"]},"WebhookTestResult":{"type":"object","properties":{"success":{"type":"boolean"},"message":{"type":"string"},"deliveryId":{"type":"string"},"eventId":{"type":"string"},"type":{"type":"string"},"statusCode":{"type":"number","nullable":true},"responseStatus":{"type":"number","nullable":true,"deprecated":true},"responseTime":{"type":"number","nullable":true},"responseBody":{"type":"string","nullable":true},"error":{"type":"string","nullable":true},"errorMessage":{"type":"string","nullable":true}},"required":["success","message","deliveryId","eventId","type","statusCode","responseStatus","responseTime","responseBody","error","errorMessage"]},"ApiKeyCreated":{"type":"object","properties":{"id":{"type":"string"},"name":{"type":"string"},"key":{"type":"string","description":"The full key. Shown once."},"keyPrefix":{"type":"string"},"scopes":{"type":"array","items":{"type":"string"}},"rateLimit":{"type":"number"},"rateLimitWindow":{"type":"number"},"ipWhitelist":{"type":"array","items":{"type":"string"}},"expiresAt":{"type":"string","nullable":true,"format":"date-time"},"createdAt":{"type":"string","format":"date-time"},"message":{"type":"string"}},"required":["id","name","key","keyPrefix","scopes","rateLimit","rateLimitWindow","ipWhitelist","expiresAt","createdAt","message"]},"ApiKeyRegenerated":{"type":"object","properties":{"id":{"type":"string"},"key":{"type":"string","description":"The full key. Shown once."},"keyPrefix":{"type":"string"},"message":{"type":"string"}},"required":["id","key","keyPrefix","message"]},"PreviousApiKey":{"type":"object","properties":{"id":{"type":"string"},"keyPrefix":{"type":"string"},"status":{"type":"string","enum":["ACTIVE","REVOKED"]},"expiresAt":{"type":"string","nullable":true,"format":"date-time"}},"required":["id","keyPrefix","status","expiresAt"]},"CustomFieldValueView":{"type":"object","properties":{"fieldId":{"type":"string"},"fieldName":{"type":"string"},"fieldLabel":{"type":"string"},"fieldType":{"type":"string"},"value":{"type":"object","description":"Typed by the field type; null when unset"},"computed":{"type":"boolean","description":"FORMULA / ROLLUP_SUMMARY value evaluated on read"},"error":{"type":"string","description":"Why a computed value is missing"}},"required":["fieldId","fieldName","fieldLabel","fieldType","value"]},"CustomObjectField":{"type":"object","properties":{"id":{"type":"string"},"name":{"type":"string","description":"API name, the key in record `data`"},"label":{"type":"string"},"type":{"type":"string"},"required":{"type":"boolean"},"defaultValue":{"type":"object"},"options":{"type":"array","items":{"type":"string"}},"description":{"type":"string"},"lookupTarget":{"type":"string","description":"LOOKUP / MASTER_DETAIL target: LEAD, CONTACT, ACCOUNT, OPPORTUNITY, TASK, CASE or custom:<apiName>"},"onDelete":{"type":"string","enum":["CLEAR","RESTRICT","CASCADE"]},"controllingField":{"type":"string","description":"Dependent picklist: controlling field name"},"dependentValues":{"type":"object","additionalProperties":{"type":"array","items":{"type":"string"}}},"trackHistory":{"type":"boolean"},"formula":{"type":"object","additionalProperties":true},"rollup":{"type":"object","additionalProperties":true}},"required":["id","name","label","type","required"]},"MarketplacePublisherSummary":{"type":"object","properties":{"name":{"type":"string"},"verified":{"type":"boolean","description":"At least one domain is verified"},"verifiedDomains":{"type":"array","items":{"type":"string"}}},"required":["name","verified","verifiedDomains"]},"MarketplaceRatingSummary":{"type":"object","properties":{"average":{"type":"number","nullable":true,"description":"1–5, one decimal"},"count":{"type":"number"}},"required":["average","count"]},"MarketplaceListingSummary":{"type":"object","properties":{"id":{"type":"string"},"slug":{"type":"string"},"appId":{"type":"string"},"name":{"type":"string"},"tagline":{"type":"string"},"categories":{"type":"array","items":{"type":"string"}},"icon":{"type":"string","nullable":true},"pricing":{"type":"string","enum":["FREE","PAID_EXTERNAL"]},"publisher":{"$ref":"#/components/schemas/MarketplacePublisherSummary"},"version":{"type":"string","description":"The approved version"},"versionId":{"type":"string"},"installCount":{"type":"number"},"rating":{"$ref":"#/components/schemas/MarketplaceRatingSummary"},"approvedAt":{"type":"string","nullable":true,"format":"date-time"}},"required":["id","slug","appId","name","tagline","categories","icon","pricing","publisher","version","versionId","installCount","rating","approvedAt"]},"MarketplaceListingPage":{"type":"object","properties":{"data":{"type":"array","items":{"$ref":"#/components/schemas/MarketplaceListingSummary"}},"page":{"type":"number"},"limit":{"type":"number"},"total":{"type":"number"},"totalPages":{"type":"number"},"hasMore":{"type":"boolean"}},"required":["data","page","limit","total","totalPages","hasMore"]},"MarketplaceCategory":{"type":"object","properties":{"key":{"type":"string"},"label":{"type":"string"},"count":{"type":"number","description":"Listed apps in the category"}},"required":["key","label","count"]},"MarketplacePublisher":{"type":"object","properties":{"name":{"type":"string"},"verified":{"type":"boolean","description":"At least one domain is verified"},"verifiedDomains":{"type":"array","items":{"type":"string"}},"website":{"type":"string","nullable":true}},"required":["name","verified","verifiedDomains","website"]},"MarketplaceListingUrls":{"type":"object","properties":{"homepage":{"type":"string","nullable":true},"support":{"type":"string","nullable":true},"supportEmail":{"type":"string","nullable":true},"privacyPolicy":{"type":"string","nullable":true},"termsOfService":{"type":"string","nullable":true}},"required":["homepage","support","supportEmail","privacyPolicy","termsOfService"]},"MarketplaceScope":{"type":"object","properties":{"scope":{"type":"string"},"description":{"type":"string"},"justification":{"type":"string","nullable":true,"description":"The publisher's reason"}},"required":["scope","description","justification"]},"ManifestObjectSummary":{"type":"object","properties":{"key":{"type":"string"},"label":{"type":"string"},"fields":{"type":"number","description":"Number of fields"}},"required":["key","label","fields"]},"ManifestFieldSummary":{"type":"object","properties":{"key":{"type":"string"},"object":{"type":"string"},"label":{"type":"string"},"type":{"type":"string"}},"required":["key","object","label","type"]},"ManifestActionSummary":{"type":"object","properties":{"key":{"type":"string"},"label":{"type":"string"},"kind":{"type":"string","enum":["READ","WRITE"]},"url":{"type":"string"}},"required":["key","label","kind","url"]},"ManifestHookSummary":{"type":"object","properties":{"key":{"type":"string"},"name":{"type":"string"},"objectType":{"type":"string"},"operations":{"type":"array","items":{"type":"string"}},"failureMode":{"type":"string","enum":["FAIL_OPEN","FAIL_CLOSED"]},"url":{"type":"string"}},"required":["key","name","objectType","operations","failureMode","url"]},"ManifestWebhookSummary":{"type":"object","properties":{"key":{"type":"string"},"url":{"type":"string"},"events":{"type":"array","items":{"type":"string"}}},"required":["key","url","events"]},"ManifestUiExtensionSummary":{"type":"object","properties":{"key":{"type":"string"},"slot":{"type":"string"},"label":{"type":"string"}},"required":["key","slot","label"]},"AppComponentsSummary":{"type":"object","properties":{"customObjects":{"type":"array","items":{"$ref":"#/components/schemas/ManifestObjectSummary"}},"customFields":{"type":"array","items":{"$ref":"#/components/schemas/ManifestFieldSummary"}},"customActions":{"type":"array","items":{"$ref":"#/components/schemas/ManifestActionSummary"}},"beforeSaveHooks":{"type":"array","items":{"$ref":"#/components/schemas/ManifestHookSummary"}},"webhooks":{"type":"array","items":{"$ref":"#/components/schemas/ManifestWebhookSummary"}},"uiExtensions":{"type":"array","items":{"$ref":"#/components/schemas/ManifestUiExtensionSummary"}}},"required":["customObjects","customFields","customActions","beforeSaveHooks","webhooks","uiExtensions"]},"MarketplaceListingDetail":{"type":"object","properties":{"id":{"type":"string"},"slug":{"type":"string"},"appId":{"type":"string"},"name":{"type":"string"},"tagline":{"type":"string"},"categories":{"type":"array","items":{"type":"string"}},"icon":{"type":"string","nullable":true},"pricing":{"type":"string","enum":["FREE","PAID_EXTERNAL"]},"publisher":{"$ref":"#/components/schemas/MarketplacePublisher"},"version":{"type":"string","description":"The approved version"},"versionId":{"type":"string"},"installCount":{"type":"number"},"rating":{"$ref":"#/components/schemas/MarketplaceRatingSummary"},"approvedAt":{"type":"string","nullable":true,"format":"date-time"},"description":{"type":"string"},"screenshots":{"type":"array","items":{"type":"string"}},"pricingNote":{"type":"string","nullable":true},"urls":{"$ref":"#/components/schemas/MarketplaceListingUrls"},"scopes":{"type":"array","items":{"$ref":"#/components/schemas/MarketplaceScope"}},"components":{"$ref":"#/components/schemas/AppComponentsSummary"}},"required":["id","slug","appId","name","tagline","categories","icon","pricing","publisher","version","versionId","installCount","rating","approvedAt","description","screenshots","pricingNote","urls","scopes","components"]},"MarketplaceReview":{"type":"object","properties":{"id":{"type":"string"},"rating":{"type":"number","minimum":1,"maximum":5},"title":{"type":"string","nullable":true},"body":{"type":"string"},"author":{"type":"string","description":"The reviewer's first name"},"publisherReply":{"type":"string","nullable":true},"publisherRepliedAt":{"type":"string","nullable":true,"format":"date-time"},"createdAt":{"type":"string","format":"date-time"},"updatedAt":{"type":"string","format":"date-time"}},"required":["id","rating","title","body","author","publisherReply","publisherRepliedAt","createdAt","updatedAt"]},"MarketplaceReviewPage":{"type":"object","properties":{"data":{"type":"array","items":{"$ref":"#/components/schemas/MarketplaceReview"}},"page":{"type":"number"},"limit":{"type":"number"},"total":{"type":"number"},"totalPages":{"type":"number"},"hasMore":{"type":"boolean"},"summary":{"$ref":"#/components/schemas/MarketplaceRatingSummary"}},"required":["data","page","limit","total","totalPages","hasMore","summary"]},"BulkJobLinks":{"type":"object","properties":{"self":{"type":"string"},"results":{"type":"string"},"failures":{"type":"string"}},"required":["self","results","failures"]},"BulkJobView":{"type":"object","properties":{"id":{"type":"string"},"object":{"type":"string","description":"lead | contact | account | opportunity | task | custom:<apiName>"},"operation":{"type":"string","enum":["insert","upsert","update","delete","export"]},"externalIdField":{"type":"string","nullable":true},"contentType":{"type":"string"},"status":{"type":"string","enum":["QUEUED","PROCESSING","COMPLETED","FAILED","CANCELLED"]},"totalRows":{"type":"number"},"processedRows":{"type":"number"},"successRows":{"type":"number"},"failedRows":{"type":"number"},"error":{"type":"string","nullable":true},"createdAt":{"type":"string","format":"date-time"},"startedAt":{"type":"string","nullable":true,"format":"date-time"},"completedAt":{"type":"string","nullable":true,"format":"date-time"},"filesExpireAt":{"type":"string","nullable":true,"format":"date-time"},"links":{"$ref":"#/components/schemas/BulkJobLinks"}},"required":["id","object","operation","externalIdField","contentType","status","totalRows","processedRows","successRows","failedRows","error","createdAt","startedAt","completedAt","filesExpireAt","links"]},"BulkJobPage":{"type":"object","properties":{"data":{"type":"array","items":{"$ref":"#/components/schemas/BulkJobView"}},"total":{"type":"number"},"page":{"type":"number"},"limit":{"type":"number"},"totalPages":{"type":"number"}},"required":["data","total","page","limit","totalPages"]},"GraphqlErrorLocation":{"type":"object","properties":{"line":{"type":"number"},"column":{"type":"number"}},"required":["line","column"]},"GraphqlError":{"type":"object","properties":{"message":{"type":"string"},"locations":{"type":"array","items":{"$ref":"#/components/schemas/GraphqlErrorLocation"}},"path":{"type":"array","items":{"oneOf":[{"type":"string"},{"type":"integer"}]}},"extensions":{"type":"object","additionalProperties":true,"description":"`code` carries the REST error code, e.g. VALIDATION_RULE_FAILED"}},"required":["message"]},"GraphqlResponse":{"type":"object","properties":{"data":{"type":"object","nullable":true,"additionalProperties":true},"errors":{"type":"array","items":{"$ref":"#/components/schemas/GraphqlError"}}},"required":["data"]},"Lead":{"type":"object","description":"A Lead record. Responses may include related records and computed fields beyond these columns.","properties":{"id":{"type":"string"},"ownerId":{"type":"string"},"organizationId":{"type":"string"},"salesforceId":{"type":"string","nullable":true},"salutation":{"type":"string","nullable":true},"firstName":{"type":"string"},"lastName":{"type":"string"},"company":{"type":"string","nullable":true},"title":{"type":"string","nullable":true},"email":{"type":"string","nullable":true},"phone":{"type":"string","nullable":true},"website":{"type":"string","nullable":true},"leadSource":{"type":"string","enum":["WEB","PHONE_INQUIRY","PARTNER_REFERRAL","PURCHASED_LIST","EXTERNAL_REFERRAL","EMPLOYEE_REFERRAL","TRADE_SHOW","WEB_FORM","SOCIAL_MEDIA","EMAIL_CAMPAIGN","WEBINAR","COLD_CALL","OTHER"]},"status":{"type":"string","enum":["NEW","CONTACTED","QUALIFIED","UNQUALIFIED","NURTURING","CONVERTED","LOST"]},"rating":{"type":"string","enum":["HOT","WARM","COLD"],"nullable":true},"industry":{"type":"string","nullable":true},"numberOfEmployees":{"type":"integer","nullable":true},"annualRevenue":{"type":"number","nullable":true},"street":{"type":"string","nullable":true},"city":{"type":"string","nullable":true},"state":{"type":"string","nullable":true},"postalCode":{"type":"string","nullable":true},"country":{"type":"string","nullable":true},"isQualified":{"type":"boolean"},"qualifiedDate":{"type":"string","format":"date-time","nullable":true},"disqualifiedReason":{"type":"string","nullable":true},"leadScore":{"type":"integer","nullable":true},"buyingIntent":{"type":"string","enum":["HIGH","MEDIUM","LOW","UNKNOWN"],"nullable":true},"description":{"type":"string","nullable":true},"painPoints":{"type":"array","items":{"type":"string"}},"budget":{"type":"number","nullable":true},"timeline":{"type":"string","nullable":true},"convertedDate":{"type":"string","format":"date-time","nullable":true},"convertedAccountId":{"type":"string","nullable":true},"convertedContactId":{"type":"string","nullable":true},"convertedOpportunityId":{"type":"string","nullable":true},"tags":{"type":"array","items":{"type":"string"}},"lastContactedAt":{"type":"string","format":"date-time","nullable":true},"assignedAt":{"type":"string","format":"date-time","nullable":true},"firstTouchAt":{"type":"string","format":"date-time","nullable":true},"territoryId":{"type":"string","nullable":true},"metadata":{"nullable":true},"createdAt":{"type":"string","format":"date-time"},"updatedAt":{"type":"string","format":"date-time"}},"required":["id","ownerId","organizationId","firstName","lastName","leadSource","status","isQualified","painPoints","tags","createdAt","updatedAt"]},"LeadList":{"type":"object","description":"A page of Lead records. See the pagination guide for page/limit/sortBy/sortOrder.","properties":{"data":{"type":"array","items":{"$ref":"#/components/schemas/Lead"}},"page":{"type":"integer","example":1},"limit":{"type":"integer","example":50},"total":{"type":"integer"},"totalPages":{"type":"integer"},"hasMore":{"type":"boolean"}},"required":["data","page","limit","total","totalPages","hasMore"]},"LeadArray":{"type":"array","items":{"$ref":"#/components/schemas/Lead"}},"Contact":{"type":"object","description":"A Contact record. Responses may include related records and computed fields beyond these columns.","properties":{"id":{"type":"string"},"accountId":{"type":"string","nullable":true},"ownerId":{"type":"string"},"organizationId":{"type":"string"},"reportsToId":{"type":"string","nullable":true},"salutation":{"type":"string","nullable":true},"firstName":{"type":"string"},"lastName":{"type":"string"},"email":{"type":"string","nullable":true},"phone":{"type":"string","nullable":true},"mobilePhone":{"type":"string","nullable":true},"title":{"type":"string","nullable":true},"department":{"type":"string","nullable":true},"role":{"type":"string","enum":["CHAMPION","ECONOMIC_BUYER","DECISION_MAKER","INFLUENCER","END_USER","GATEKEEPER","BLOCKER","TECHNICAL_BUYER"],"nullable":true},"seniorityLevel":{"type":"string","enum":["IC","MANAGER","SENIOR_MANAGER","DIRECTOR","SENIOR_DIRECTOR","VP","SVP","C_LEVEL","BOARD","OWNER"],"nullable":true},"buyingPower":{"type":"string","enum":["NONE","INFLUENCER","RECOMMENDER","DECISION_MAKER","BUDGET_HOLDER"],"nullable":true},"mailingStreet":{"type":"string","nullable":true},"mailingCity":{"type":"string","nullable":true},"mailingState":{"type":"string","nullable":true},"mailingPostalCode":{"type":"string","nullable":true},"mailingCountry":{"type":"string","nullable":true},"linkedinUrl":{"type":"string","nullable":true},"twitterHandle":{"type":"string","nullable":true},"avatarUrl":{"type":"string","nullable":true},"description":{"type":"string","nullable":true},"engagementScore":{"type":"integer","nullable":true},"responseRate":{"type":"number","nullable":true},"communicationStyle":{"type":"string","nullable":true},"interests":{"type":"array","items":{"type":"string"}},"tags":{"type":"array","items":{"type":"string"}},"influenceLevel":{"type":"string","enum":["HIGH","MEDIUM","LOW"],"nullable":true},"contactStatus":{"type":"string","enum":["ACTIVE","INACTIVE","BOUNCED","UNSUBSCRIBED"]},"doNotCall":{"type":"boolean"},"doNotEmail":{"type":"boolean"},"emailOptOut":{"type":"boolean"},"lastContactedAt":{"type":"string","format":"date-time","nullable":true},"lastEmailDate":{"type":"string","format":"date-time","nullable":true},"lastCallDate":{"type":"string","format":"date-time","nullable":true},"metadata":{"nullable":true},"createdAt":{"type":"string","format":"date-time"},"updatedAt":{"type":"string","format":"date-time"}},"required":["id","ownerId","organizationId","firstName","lastName","interests","tags","contactStatus","doNotCall","doNotEmail","emailOptOut","createdAt","updatedAt"]},"ContactList":{"type":"object","description":"A page of Contact records. See the pagination guide for page/limit/sortBy/sortOrder.","properties":{"data":{"type":"array","items":{"$ref":"#/components/schemas/Contact"}},"page":{"type":"integer","example":1},"limit":{"type":"integer","example":50},"total":{"type":"integer"},"totalPages":{"type":"integer"},"hasMore":{"type":"boolean"}},"required":["data","page","limit","total","totalPages","hasMore"]},"ContactArray":{"type":"array","items":{"$ref":"#/components/schemas/Contact"}},"Account":{"type":"object","description":"A Account record. Responses may include related records and computed fields beyond these columns.","properties":{"id":{"type":"string"},"ownerId":{"type":"string"},"organizationId":{"type":"string"},"salesforceId":{"type":"string","nullable":true},"parentAccountId":{"type":"string","nullable":true},"name":{"type":"string"},"website":{"type":"string","nullable":true},"domain":{"type":"string","nullable":true},"phone":{"type":"string","nullable":true},"fax":{"type":"string","nullable":true},"industry":{"type":"string","nullable":true},"type":{"type":"string","enum":["PROSPECT","CUSTOMER","PARTNER","RESELLER","COMPETITOR","OTHER"]},"numberOfEmployees":{"type":"integer","nullable":true},"annualRevenue":{"type":"number","nullable":true},"description":{"type":"string","nullable":true},"billingStreet":{"type":"string","nullable":true},"billingCity":{"type":"string","nullable":true},"billingState":{"type":"string","nullable":true},"billingPostalCode":{"type":"string","nullable":true},"billingCountry":{"type":"string","nullable":true},"shippingStreet":{"type":"string","nullable":true},"shippingCity":{"type":"string","nullable":true},"shippingState":{"type":"string","nullable":true},"shippingPostalCode":{"type":"string","nullable":true},"shippingCountry":{"type":"string","nullable":true},"accountStatus":{"type":"string","enum":["ACTIVE","INACTIVE","PENDING","CHURNED"]},"rating":{"type":"string","enum":["HOT","WARM","COLD"],"nullable":true},"healthScore":{"type":"integer","nullable":true},"lifetimeValue":{"type":"number","nullable":true},"churnRisk":{"type":"string","enum":["HIGH","MEDIUM","LOW","NONE"],"nullable":true},"painPoints":{"type":"array","items":{"type":"string"}},"techStack":{"type":"array","items":{"type":"string"}},"competitors":{"type":"array","items":{"type":"string"}},"isStrategic":{"type":"boolean"},"tier":{"type":"string","nullable":true},"region":{"type":"string","nullable":true},"externalId":{"type":"string","nullable":true},"tags":{"type":"array","items":{"type":"string"}},"lastActivityDate":{"type":"string","format":"date-time","nullable":true},"nextActivityDate":{"type":"string","format":"date-time","nullable":true},"metadata":{"nullable":true},"createdAt":{"type":"string","format":"date-time"},"updatedAt":{"type":"string","format":"date-time"}},"required":["id","ownerId","organizationId","name","type","accountStatus","painPoints","techStack","competitors","isStrategic","tags","createdAt","updatedAt"]},"AccountList":{"type":"object","description":"A page of Account records. See the pagination guide for page/limit/sortBy/sortOrder.","properties":{"data":{"type":"array","items":{"$ref":"#/components/schemas/Account"}},"page":{"type":"integer","example":1},"limit":{"type":"integer","example":50},"total":{"type":"integer"},"totalPages":{"type":"integer"},"hasMore":{"type":"boolean"}},"required":["data","page","limit","total","totalPages","hasMore"]},"AccountArray":{"type":"array","items":{"$ref":"#/components/schemas/Account"}},"Opportunity":{"type":"object","description":"A Opportunity record. Responses may include related records and computed fields beyond these columns.","properties":{"id":{"type":"string"},"accountId":{"type":"string"},"ownerId":{"type":"string"},"organizationId":{"type":"string"},"campaignId":{"type":"string","nullable":true},"pipelineId":{"type":"string","nullable":true},"stageId":{"type":"string","nullable":true},"salesforceId":{"type":"string","nullable":true},"name":{"type":"string"},"opportunitySource":{"type":"string","enum":["EXISTING_CUSTOMER","NEW_CUSTOMER","PARTNER","EMPLOYEE_REFERRAL","EXTERNAL_REFERRAL","ADVERTISEMENT","TRADE_SHOW","WEB","WORD_OF_MOUTH","OTHER"],"nullable":true},"type":{"type":"string","enum":["NEW_BUSINESS","EXISTING_BUSINESS","UPSELL","CROSS_SELL","RENEWAL"],"nullable":true},"stage":{"type":"string","enum":["PROSPECTING","QUALIFICATION","NEEDS_ANALYSIS","VALUE_PROPOSITION","DECISION_MAKERS_IDENTIFIED","PERCEPTION_ANALYSIS","PROPOSAL_PRICE_QUOTE","NEGOTIATION_REVIEW","CLOSED_WON","CLOSED_LOST"]},"amount":{"type":"number","nullable":true},"probability":{"type":"integer","nullable":true},"expectedRevenue":{"type":"number","nullable":true},"discount":{"type":"number","nullable":true},"currency":{"type":"string"},"closeDate":{"type":"string","format":"date-time","nullable":true},"createdDate":{"type":"string","format":"date-time"},"lastActivityDate":{"type":"string","format":"date-time","nullable":true},"nextActivityDate":{"type":"string","format":"date-time","nullable":true},"originalCloseDate":{"type":"string","format":"date-time","nullable":true},"closeDatePushCount":{"type":"integer"},"closeDateSlipDays":{"type":"integer"},"stageEnteredAt":{"type":"string","format":"date-time","nullable":true},"forecastCategory":{"type":"string","enum":["PIPELINE","BEST_CASE","COMMIT","OMITTED"],"nullable":true},"forecastCategorySetAt":{"type":"string","format":"date-time","nullable":true},"needsAnalysis":{"type":"string","nullable":true},"proposedSolution":{"type":"string","nullable":true},"competitors":{"type":"array","items":{"type":"string"}},"nextStep":{"type":"string","nullable":true},"winProbability":{"type":"number","nullable":true},"riskFactors":{"type":"array","items":{"type":"string"}},"recommendedActions":{"type":"array","items":{"type":"string"}},"tags":{"type":"array","items":{"type":"string"}},"dealVelocity":{"type":"integer","nullable":true},"isClosed":{"type":"boolean"},"isWon":{"type":"boolean"},"lostReason":{"type":"string","nullable":true},"closedDate":{"type":"string","format":"date-time","nullable":true},"metadata":{"nullable":true},"createdAt":{"type":"string","format":"date-time"},"updatedAt":{"type":"string","format":"date-time"}},"required":["id","accountId","ownerId","organizationId","name","stage","currency","createdDate","closeDatePushCount","closeDateSlipDays","competitors","riskFactors","recommendedActions","tags","isClosed","isWon","createdAt","updatedAt"]},"OpportunityList":{"type":"object","description":"A page of Opportunity records. See the pagination guide for page/limit/sortBy/sortOrder.","properties":{"data":{"type":"array","items":{"$ref":"#/components/schemas/Opportunity"}},"page":{"type":"integer","example":1},"limit":{"type":"integer","example":50},"total":{"type":"integer"},"totalPages":{"type":"integer"},"hasMore":{"type":"boolean"}},"required":["data","page","limit","total","totalPages","hasMore"]},"OpportunityArray":{"type":"array","items":{"$ref":"#/components/schemas/Opportunity"}},"Task":{"type":"object","description":"A Task record. Responses may include related records and computed fields beyond these columns.","properties":{"id":{"type":"string"},"ownerId":{"type":"string"},"organizationId":{"type":"string"},"assignedToId":{"type":"string","nullable":true},"leadId":{"type":"string","nullable":true},"accountId":{"type":"string","nullable":true},"contactId":{"type":"string","nullable":true},"opportunityId":{"type":"string","nullable":true},"meetingSessionId":{"type":"string","nullable":true},"subject":{"type":"string"},"description":{"type":"string","nullable":true},"status":{"type":"string","enum":["NOT_STARTED","IN_PROGRESS","WAITING","DEFERRED","COMPLETED"]},"priority":{"type":"string","enum":["LOW","NORMAL","HIGH","URGENT"]},"dueDate":{"type":"string","format":"date-time","nullable":true},"reminderDate":{"type":"string","format":"date-time","nullable":true},"reminderSent":{"type":"boolean"},"completedDate":{"type":"string","format":"date-time","nullable":true},"metadata":{"nullable":true},"createdAt":{"type":"string","format":"date-time"},"updatedAt":{"type":"string","format":"date-time"}},"required":["id","ownerId","organizationId","subject","status","priority","reminderSent","createdAt","updatedAt"]},"TaskList":{"type":"object","description":"A page of Task records. See the pagination guide for page/limit/sortBy/sortOrder.","properties":{"data":{"type":"array","items":{"$ref":"#/components/schemas/Task"}},"page":{"type":"integer","example":1},"limit":{"type":"integer","example":50},"total":{"type":"integer"},"totalPages":{"type":"integer"},"hasMore":{"type":"boolean"}},"required":["data","page","limit","total","totalPages","hasMore"]},"Quote":{"type":"object","description":"A Quote record. Responses may include related records and computed fields beyond these columns.","properties":{"id":{"type":"string"},"opportunityId":{"type":"string"},"accountId":{"type":"string"},"ownerId":{"type":"string"},"organizationId":{"type":"string"},"quoteNumber":{"type":"string"},"name":{"type":"string"},"status":{"type":"string","enum":["DRAFT","PENDING_APPROVAL","APPROVED","SENT","ACCEPTED","REJECTED","EXPIRED"]},"subtotal":{"type":"number"},"discount":{"type":"number"},"discountPercent":{"type":"number","nullable":true},"tax":{"type":"number"},"shippingHandling":{"type":"number"},"taxMode":{"type":"string"},"taxRate":{"type":"number","nullable":true},"taxDetails":{"nullable":true},"totalPrice":{"type":"number"},"currency":{"type":"string"},"validUntil":{"type":"string","format":"date-time","nullable":true},"paymentTerms":{"type":"string","nullable":true},"description":{"type":"string","nullable":true},"billingStreet":{"type":"string","nullable":true},"billingCity":{"type":"string","nullable":true},"billingState":{"type":"string","nullable":true},"billingPostalCode":{"type":"string","nullable":true},"billingCountry":{"type":"string","nullable":true},"shippingStreet":{"type":"string","nullable":true},"shippingCity":{"type":"string","nullable":true},"shippingState":{"type":"string","nullable":true},"shippingPostalCode":{"type":"string","nullable":true},"shippingCountry":{"type":"string","nullable":true},"sentDate":{"type":"string","format":"date-time","nullable":true},"acceptedDate":{"type":"string","format":"date-time","nullable":true},"rejectedDate":{"type":"string","format":"date-time","nullable":true},"rejectedReason":{"type":"string","nullable":true},"metadata":{"nullable":true},"createdAt":{"type":"string","format":"date-time"},"updatedAt":{"type":"string","format":"date-time"}},"required":["id","opportunityId","accountId","ownerId","organizationId","quoteNumber","name","status","subtotal","discount","tax","shippingHandling","taxMode","totalPrice","currency","createdAt","updatedAt"]},"QuoteList":{"type":"object","description":"A page of Quote records. See the pagination guide for page/limit/sortBy/sortOrder.","properties":{"data":{"type":"array","items":{"$ref":"#/components/schemas/Quote"}},"page":{"type":"integer","example":1},"limit":{"type":"integer","example":50},"total":{"type":"integer"},"totalPages":{"type":"integer"},"hasMore":{"type":"boolean"}},"required":["data","page","limit","total","totalPages","hasMore"]},"QuoteArray":{"type":"array","items":{"$ref":"#/components/schemas/Quote"}},"Order":{"type":"object","description":"A Order record. Responses may include related records and computed fields beyond these columns.","properties":{"id":{"type":"string"},"ownerId":{"type":"string"},"organizationId":{"type":"string"},"accountId":{"type":"string"},"quoteId":{"type":"string","nullable":true},"orderNumber":{"type":"string"},"name":{"type":"string"},"status":{"type":"string","enum":["DRAFT","PENDING","CONFIRMED","PROCESSING","SHIPPED","DELIVERED","CANCELLED","ON_HOLD"]},"subtotal":{"type":"number"},"discount":{"type":"number"},"tax":{"type":"number"},"shipping":{"type":"number"},"taxMode":{"type":"string"},"taxRate":{"type":"number","nullable":true},"taxDetails":{"nullable":true},"total":{"type":"number"},"currency":{"type":"string"},"paymentStatus":{"type":"string","enum":["UNPAID","PARTIAL","PAID","REFUNDED","CANCELLED"]},"paymentMethod":{"type":"string","nullable":true},"paymentTerms":{"type":"string","nullable":true},"paidAmount":{"type":"number"},"paidAt":{"type":"string","format":"date-time","nullable":true},"fulfillmentStatus":{"type":"string","enum":["UNFULFILLED","PARTIAL","FULFILLED","RETURNED"]},"shippingMethod":{"type":"string","nullable":true},"trackingNumber":{"type":"string","nullable":true},"trackingUrl":{"type":"string","nullable":true},"shippedAt":{"type":"string","format":"date-time","nullable":true},"deliveredAt":{"type":"string","format":"date-time","nullable":true},"orderDate":{"type":"string","format":"date-time"},"expectedDeliveryDate":{"type":"string","format":"date-time","nullable":true},"billingStreet":{"type":"string","nullable":true},"billingCity":{"type":"string","nullable":true},"billingState":{"type":"string","nullable":true},"billingPostalCode":{"type":"string","nullable":true},"billingCountry":{"type":"string","nullable":true},"shippingStreet":{"type":"string","nullable":true},"shippingCity":{"type":"string","nullable":true},"shippingState":{"type":"string","nullable":true},"shippingPostalCode":{"type":"string","nullable":true},"shippingCountry":{"type":"string","nullable":true},"notes":{"type":"string","nullable":true},"internalNotes":{"type":"string","nullable":true},"metadata":{"nullable":true},"createdAt":{"type":"string","format":"date-time"},"updatedAt":{"type":"string","format":"date-time"}},"required":["id","ownerId","organizationId","accountId","orderNumber","name","status","subtotal","discount","tax","shipping","taxMode","total","currency","paymentStatus","paidAmount","fulfillmentStatus","orderDate","createdAt","updatedAt"]},"OrderList":{"type":"object","description":"A page of Order records. See the pagination guide for page/limit/sortBy/sortOrder.","properties":{"data":{"type":"array","items":{"$ref":"#/components/schemas/Order"}},"page":{"type":"integer","example":1},"limit":{"type":"integer","example":50},"total":{"type":"integer"},"totalPages":{"type":"integer"},"hasMore":{"type":"boolean"}},"required":["data","page","limit","total","totalPages","hasMore"]},"OrderArray":{"type":"array","items":{"$ref":"#/components/schemas/Order"}},"Activity":{"type":"object","description":"A Activity record. Responses may include related records and computed fields beyond these columns.","properties":{"id":{"type":"string"},"userId":{"type":"string"},"organizationId":{"type":"string"},"leadId":{"type":"string","nullable":true},"accountId":{"type":"string","nullable":true},"contactId":{"type":"string","nullable":true},"opportunityId":{"type":"string","nullable":true},"conversationId":{"type":"string","nullable":true},"meetingSessionId":{"type":"string","nullable":true},"type":{"type":"string","enum":["CALL","EMAIL","MEETING","DEMO","PRESENTATION","PROPOSAL_SENT","CONTRACT_SENT","FOLLOW_UP","RESEARCH","INTERNAL_NOTE","LINKEDIN_MESSAGE","SITE_VISIT","WEBINAR","OTHER"]},"subject":{"type":"string"},"description":{"type":"string","nullable":true},"outcome":{"type":"string","nullable":true},"sentiment":{"type":"string","enum":["VERY_POSITIVE","POSITIVE","NEUTRAL","NEGATIVE","VERY_NEGATIVE"],"nullable":true},"activityDate":{"type":"string","format":"date-time"},"duration":{"type":"integer","nullable":true},"keyPoints":{"type":"array","items":{"type":"string"}},"actionItems":{"type":"array","items":{"type":"string"}},"concerns":{"type":"array","items":{"type":"string"}},"nextSteps":{"type":"array","items":{"type":"string"}},"metadata":{"nullable":true},"createdAt":{"type":"string","format":"date-time"},"updatedAt":{"type":"string","format":"date-time"},"emailThreadId":{"type":"string","nullable":true}},"required":["id","userId","organizationId","type","subject","activityDate","keyPoints","actionItems","concerns","nextSteps","createdAt","updatedAt"]},"ActivityList":{"type":"object","description":"A page of Activity records. See the pagination guide for page/limit/sortBy/sortOrder.","properties":{"data":{"type":"array","items":{"$ref":"#/components/schemas/Activity"}},"page":{"type":"integer","example":1},"limit":{"type":"integer","example":50},"total":{"type":"integer"},"totalPages":{"type":"integer"},"hasMore":{"type":"boolean"}},"required":["data","page","limit","total","totalPages","hasMore"]},"Case":{"type":"object","description":"A Case record. Responses may include related records and computed fields beyond these columns.","properties":{"id":{"type":"string"},"organizationId":{"type":"string"},"caseNumber":{"type":"integer"},"subject":{"type":"string"},"description":{"type":"string","nullable":true},"status":{"type":"string"},"priority":{"type":"string"},"type":{"type":"string","nullable":true},"origin":{"type":"string","nullable":true},"accountId":{"type":"string","nullable":true},"contactId":{"type":"string","nullable":true},"opportunityId":{"type":"string","nullable":true},"ownerId":{"type":"string"},"assignedToId":{"type":"string","nullable":true},"slaDueAt":{"type":"string","format":"date-time","nullable":true},"firstResponseAt":{"type":"string","format":"date-time","nullable":true},"resolvedAt":{"type":"string","format":"date-time","nullable":true},"closedAt":{"type":"string","format":"date-time","nullable":true},"tags":{"type":"array","items":{"type":"string"}},"aiSummary":{"nullable":true},"metadata":{"nullable":true},"createdAt":{"type":"string","format":"date-time"},"updatedAt":{"type":"string","format":"date-time"}},"required":["id","organizationId","caseNumber","subject","status","priority","ownerId","tags","createdAt","updatedAt"]},"CaseList":{"type":"object","description":"A page of Case records. See the pagination guide for page/limit/sortBy/sortOrder.","properties":{"data":{"type":"array","items":{"$ref":"#/components/schemas/Case"}},"page":{"type":"integer","example":1},"limit":{"type":"integer","example":50},"total":{"type":"integer"},"totalPages":{"type":"integer"},"hasMore":{"type":"boolean"}},"required":["data","page","limit","total","totalPages","hasMore"]},"Product":{"type":"object","description":"A Product record. Responses may include related records and computed fields beyond these columns.","properties":{"id":{"type":"string"},"ownerId":{"type":"string"},"organizationId":{"type":"string"},"name":{"type":"string"},"sku":{"type":"string"},"description":{"type":"string","nullable":true},"type":{"type":"string","enum":["PRODUCT","SERVICE","SUBSCRIPTION","LICENSE","BUNDLE"]},"category":{"type":"string","enum":["SOFTWARE","HARDWARE","CONSULTING","TRAINING","SUPPORT","OTHER"]},"listPrice":{"type":"number"},"unitPrice":{"type":"number","nullable":true},"costPrice":{"type":"number","nullable":true},"currency":{"type":"string"},"billingFrequency":{"type":"string","enum":["ONE_TIME","MONTHLY","QUARTERLY","ANNUAL","USAGE_BASED"]},"isActive":{"type":"boolean"},"features":{"type":"array","items":{"type":"string"}},"tags":{"type":"array","items":{"type":"string"}},"metadata":{"nullable":true},"createdAt":{"type":"string","format":"date-time"},"updatedAt":{"type":"string","format":"date-time"}},"required":["id","ownerId","organizationId","name","sku","type","category","listPrice","currency","billingFrequency","isActive","features","tags","createdAt","updatedAt"]},"ProductList":{"type":"object","description":"A page of Product records. See the pagination guide for page/limit/sortBy/sortOrder.","properties":{"data":{"type":"array","items":{"$ref":"#/components/schemas/Product"}},"page":{"type":"integer","example":1},"limit":{"type":"integer","example":50},"total":{"type":"integer"},"totalPages":{"type":"integer"},"hasMore":{"type":"boolean"}},"required":["data","page","limit","total","totalPages","hasMore"]},"CustomObjectDefinition":{"type":"object","description":"A CustomObjectDefinition record. Responses may include related records and computed fields beyond these columns.","properties":{"id":{"type":"string"},"name":{"type":"string"},"label":{"type":"string"},"pluralLabel":{"type":"string"},"description":{"type":"string","nullable":true},"fields":{},"nameField":{"type":"string","description":"Text field whose value labels a record in lookups and related lists.","nullable":true},"organizationId":{"type":"string"},"createdById":{"type":"string"},"createdAt":{"type":"string","format":"date-time"},"updatedAt":{"type":"string","format":"date-time"}},"required":["id","name","label","pluralLabel","fields","organizationId","createdById","createdAt","updatedAt"]},"CustomObjectRecord":{"type":"object","description":"A CustomObjectRecord record. Responses may include related records and computed fields beyond these columns.","properties":{"id":{"type":"string"},"objectId":{"type":"string"},"data":{"type":"object","additionalProperties":true,"description":"Field values keyed by the object definition’s field `name`."},"ownerId":{"type":"string"},"organizationId":{"type":"string"},"createdAt":{"type":"string","format":"date-time"},"updatedAt":{"type":"string","format":"date-time"}},"required":["id","objectId","data","ownerId","organizationId","createdAt","updatedAt"]},"CustomFieldDefinition":{"type":"object","description":"A CustomFieldDefinition record. Responses may include related records and computed fields beyond these columns.","properties":{"id":{"type":"string"},"organizationId":{"type":"string"},"name":{"type":"string"},"label":{"type":"string"},"description":{"type":"string","nullable":true},"entity":{"type":"string","enum":["LEAD","CONTACT","ACCOUNT","OPPORTUNITY","PRODUCT","QUOTE"]},"fieldType":{"type":"string","enum":["TEXT","TEXTAREA","NUMBER","CURRENCY","DATE","DATETIME","CHECKBOX","PICKLIST","MULTI_PICKLIST","EMAIL","PHONE","URL","LOOKUP","FORMULA","ROLLUP_SUMMARY"]},"isRequired":{"type":"boolean"},"isUnique":{"type":"boolean"},"defaultValue":{"type":"string","nullable":true},"picklistValues":{"nullable":true},"lookupEntity":{"type":"string","enum":["LEAD","CONTACT","ACCOUNT","OPPORTUNITY","PRODUCT","QUOTE"],"nullable":true},"lookupObject":{"type":"string","description":"`custom:<apiName>` when the lookup targets a custom object (lookupEntity is then null).","nullable":true},"lookupDeleteBehavior":{"type":"string","description":"What deleting the target does to this value: CLEAR (default) or RESTRICT.","nullable":true},"controllingField":{"type":"string","description":"Dependent picklist: the controlling field's name and value -> allowed values.","nullable":true},"dependentValues":{"nullable":true},"trackHistory":{"type":"boolean","description":"Opt-in field history (EntityFieldChange rows with fieldName `customFields.<name>`)."},"precision":{"type":"integer","nullable":true},"minValue":{"type":"number","nullable":true},"maxValue":{"type":"number","nullable":true},"maxLength":{"type":"integer","nullable":true},"pattern":{"type":"string","nullable":true},"formulaConfig":{"nullable":true},"rollupConfig":{"nullable":true},"sortOrder":{"type":"integer"},"isActive":{"type":"boolean"},"createdAt":{"type":"string","format":"date-time"},"updatedAt":{"type":"string","format":"date-time"},"createdBy":{"type":"string","nullable":true}},"required":["id","organizationId","name","label","entity","fieldType","isRequired","isUnique","trackHistory","sortOrder","isActive","createdAt","updatedAt"]},"CustomFieldValue":{"type":"object","description":"A CustomFieldValue record. Responses may include related records and computed fields beyond these columns.","properties":{"id":{"type":"string"},"fieldId":{"type":"string"},"entityType":{"type":"string","enum":["LEAD","CONTACT","ACCOUNT","OPPORTUNITY","PRODUCT","QUOTE"]},"entityId":{"type":"string"},"textValue":{"type":"string","nullable":true},"numberValue":{"type":"number","nullable":true},"booleanValue":{"type":"boolean","nullable":true},"dateValue":{"type":"string","format":"date-time","nullable":true},"jsonValue":{"nullable":true},"createdAt":{"type":"string","format":"date-time"},"updatedAt":{"type":"string","format":"date-time"}},"required":["id","fieldId","entityType","entityId","createdAt","updatedAt"]},"Webhook":{"type":"object","description":"A Webhook record. Responses may include related records and computed fields beyond these columns.","properties":{"id":{"type":"string"},"userId":{"type":"string"},"organizationId":{"type":"string","nullable":true},"name":{"type":"string"},"description":{"type":"string","nullable":true},"url":{"type":"string"},"events":{"type":"array","items":{"type":"string"}},"isActive":{"type":"boolean"},"retryEnabled":{"type":"boolean"},"maxRetries":{"type":"integer"},"retryDelaySeconds":{"type":"integer"},"customHeaders":{"nullable":true},"deliveryCount":{"type":"integer"},"successCount":{"type":"integer"},"failureCount":{"type":"integer"},"consecutiveFailures":{"type":"integer"},"lastDeliveryAt":{"type":"string","format":"date-time","nullable":true},"lastSuccessAt":{"type":"string","format":"date-time","nullable":true},"lastFailureAt":{"type":"string","format":"date-time","nullable":true},"autoDisableThreshold":{"type":"integer"},"disabledReason":{"type":"string","nullable":true},"disabledAt":{"type":"string","format":"date-time","nullable":true},"payloadVersion":{"type":"integer"},"namedCredentialId":{"type":"string","nullable":true},"createdAt":{"type":"string","format":"date-time"},"updatedAt":{"type":"string","format":"date-time"}},"required":["id","userId","name","url","events","isActive","retryEnabled","maxRetries","retryDelaySeconds","deliveryCount","successCount","failureCount","consecutiveFailures","autoDisableThreshold","payloadVersion","createdAt","updatedAt"]},"WebhookDeliveryLog":{"type":"object","description":"A WebhookDeliveryLog record. Responses may include related records and computed fields beyond these columns.","properties":{"id":{"type":"string"},"webhookId":{"type":"string"},"event":{"type":"string"},"eventId":{"type":"string"},"requestPayload":{},"requestHeaders":{"nullable":true},"statusCode":{"type":"integer","nullable":true},"responseBody":{"type":"string","nullable":true},"responseTimeMs":{"type":"integer","nullable":true},"success":{"type":"boolean"},"errorMessage":{"type":"string","nullable":true},"attemptNumber":{"type":"integer"},"nextRetryAt":{"type":"string","format":"date-time","nullable":true},"organizationId":{"type":"string","nullable":true},"eventVersion":{"type":"integer","nullable":true},"source":{"type":"string"},"replayOfId":{"type":"string","nullable":true},"createdAt":{"type":"string","format":"date-time"}},"required":["id","webhookId","event","eventId","requestPayload","success","attemptNumber","source","createdAt"]},"ApiKey":{"type":"object","description":"A ApiKey record. Responses may include related records and computed fields beyond these columns.","properties":{"id":{"type":"string"},"userId":{"type":"string"},"organizationId":{"type":"string","nullable":true},"name":{"type":"string"},"description":{"type":"string","nullable":true},"keyPrefix":{"type":"string"},"scopes":{"type":"array","items":{"type":"string"}},"ipWhitelist":{"type":"array","items":{"type":"string"}},"domainWhitelist":{"type":"array","items":{"type":"string"}},"rateLimit":{"type":"integer"},"rateLimitWindow":{"type":"integer"},"status":{"type":"string","enum":["ACTIVE","REVOKED","EXPIRED"]},"lastUsedAt":{"type":"string","format":"date-time","nullable":true},"usageCount":{"type":"integer"},"expiresAt":{"type":"string","format":"date-time","nullable":true},"rotatedFromId":{"type":"string","nullable":true},"rotatedAt":{"type":"string","format":"date-time","nullable":true},"revokedAt":{"type":"string","format":"date-time","nullable":true},"lastUsedIp":{"type":"string","nullable":true},"createdAt":{"type":"string","format":"date-time"},"updatedAt":{"type":"string","format":"date-time"}},"required":["id","userId","name","keyPrefix","scopes","ipWhitelist","domainWhitelist","rateLimit","rateLimitWindow","status","usageCount","createdAt","updatedAt"]},"ApiKeyArray":{"type":"array","items":{"$ref":"#/components/schemas/ApiKey"}},"ApiKeyUsageLog":{"type":"object","description":"A ApiKeyUsageLog record. Responses may include related records and computed fields beyond these columns.","properties":{"id":{"type":"string"},"apiKeyId":{"type":"string"},"endpoint":{"type":"string"},"method":{"type":"string"},"statusCode":{"type":"integer"},"responseTimeMs":{"type":"integer"},"ipAddress":{"type":"string","nullable":true},"userAgent":{"type":"string","nullable":true},"requestId":{"type":"string","nullable":true},"errorMessage":{"type":"string","nullable":true},"createdAt":{"type":"string","format":"date-time"}},"required":["id","apiKeyId","endpoint","method","statusCode","responseTimeMs","createdAt"]},"CustomAction":{"type":"object","description":"A CustomAction record. Responses may include related records and computed fields beyond these columns.","properties":{"id":{"type":"string"},"organizationId":{"type":"string"},"apiName":{"type":"string"},"label":{"type":"string"},"description":{"type":"string","nullable":true},"url":{"type":"string"},"inputSchema":{},"outputSchema":{},"kind":{"type":"string"},"idempotent":{"type":"boolean"},"maxRetries":{"type":"integer"},"timeoutMs":{"type":"integer"},"objectTypes":{"type":"array","items":{"type":"string"}},"allowManual":{"type":"boolean"},"exposeAsTool":{"type":"boolean"},"toolDescription":{"type":"string","nullable":true},"inputMapping":{"nullable":true},"outputMapping":{"nullable":true},"isActive":{"type":"boolean"},"functionId":{"type":"string","nullable":true},"namedCredentialId":{"type":"string","nullable":true},"calloutPath":{"type":"string","nullable":true},"createdById":{"type":"string"},"lastInvokedAt":{"type":"string","format":"date-time","nullable":true},"createdAt":{"type":"string","format":"date-time"},"updatedAt":{"type":"string","format":"date-time"}},"required":["id","organizationId","apiName","label","url","inputSchema","outputSchema","kind","idempotent","maxRetries","timeoutMs","objectTypes","allowManual","exposeAsTool","isActive","createdById","createdAt","updatedAt"]},"BeforeSaveHook":{"type":"object","description":"A BeforeSaveHook record. Responses may include related records and computed fields beyond these columns.","properties":{"id":{"type":"string"},"organizationId":{"type":"string"},"name":{"type":"string"},"description":{"type":"string","nullable":true},"objectType":{"type":"string"},"operations":{"type":"array","items":{"type":"string"}},"url":{"type":"string"},"functionId":{"type":"string","nullable":true},"timeoutMs":{"type":"integer"},"failureMode":{"type":"string"},"position":{"type":"integer"},"isActive":{"type":"boolean"},"createdById":{"type":"string"},"lastInvokedAt":{"type":"string","format":"date-time","nullable":true},"createdAt":{"type":"string","format":"date-time"},"updatedAt":{"type":"string","format":"date-time"}},"required":["id","organizationId","name","objectType","operations","url","timeoutMs","failureMode","position","isActive","createdById","createdAt","updatedAt"]},"AfterSaveTrigger":{"type":"object","description":"A AfterSaveTrigger record. Responses may include related records and computed fields beyond these columns.","properties":{"id":{"type":"string"},"organizationId":{"type":"string"},"name":{"type":"string"},"description":{"type":"string","nullable":true},"objectType":{"type":"string"},"operations":{"type":"array","items":{"type":"string"}},"functionId":{"type":"string"},"timeoutMs":{"type":"integer"},"position":{"type":"integer"},"isActive":{"type":"boolean"},"createdById":{"type":"string"},"lastInvokedAt":{"type":"string","format":"date-time","nullable":true},"createdAt":{"type":"string","format":"date-time"},"updatedAt":{"type":"string","format":"date-time"}},"required":["id","organizationId","name","objectType","operations","functionId","timeoutMs","position","isActive","createdById","createdAt","updatedAt"]},"AfterSaveTriggerArray":{"type":"array","items":{"$ref":"#/components/schemas/AfterSaveTrigger"}},"ExtensionInvocation":{"type":"object","description":"A ExtensionInvocation record. Responses may include related records and computed fields beyond these columns.","properties":{"id":{"type":"string"},"organizationId":{"type":"string"},"kind":{"type":"string"},"customActionId":{"type":"string","nullable":true},"beforeSaveHookId":{"type":"string","nullable":true},"source":{"type":"string"},"status":{"type":"string"},"objectType":{"type":"string","nullable":true},"recordId":{"type":"string","nullable":true},"userId":{"type":"string","nullable":true},"requestUrl":{"type":"string"},"requestHeaders":{"nullable":true},"requestBody":{"nullable":true},"statusCode":{"type":"integer","nullable":true},"responseBody":{"type":"string","nullable":true},"errorCode":{"type":"string","nullable":true},"errorMessage":{"type":"string","nullable":true},"latencyMs":{"type":"integer"},"attempts":{"type":"integer"},"outcome":{"nullable":true},"replayOfId":{"type":"string","nullable":true},"createdAt":{"type":"string","format":"date-time"}},"required":["id","organizationId","kind","source","status","requestUrl","latencyMs","attempts","createdAt"]},"ServerlessFunction":{"type":"object","description":"A ServerlessFunction record. Responses may include related records and computed fields beyond these columns.","properties":{"id":{"type":"string"},"organizationId":{"type":"string"},"apiName":{"type":"string"},"name":{"type":"string"},"description":{"type":"string","nullable":true},"activeVersionId":{"type":"string","nullable":true},"envVars":{},"timeoutMs":{"type":"integer"},"memoryMb":{"type":"integer"},"allowedHosts":{"type":"array","items":{"type":"string"}},"runAsUserId":{"type":"string"},"runAsAdmin":{"type":"boolean"},"scopes":{"type":"array","items":{"type":"string"}},"httpEnabled":{"type":"boolean"},"eventTypes":{"type":"array","items":{"type":"string"}},"schedule":{"type":"string","nullable":true},"lastScheduledAt":{"type":"string","format":"date-time","nullable":true},"isActive":{"type":"boolean"},"createdById":{"type":"string"},"lastInvokedAt":{"type":"string","format":"date-time","nullable":true},"createdAt":{"type":"string","format":"date-time"},"updatedAt":{"type":"string","format":"date-time"}},"required":["id","organizationId","apiName","name","envVars","timeoutMs","memoryMb","allowedHosts","runAsUserId","runAsAdmin","scopes","httpEnabled","eventTypes","isActive","createdById","createdAt","updatedAt"]},"ServerlessFunctionVersion":{"type":"object","description":"A ServerlessFunctionVersion record. Responses may include related records and computed fields beyond these columns.","properties":{"id":{"type":"string"},"functionId":{"type":"string"},"organizationId":{"type":"string"},"version":{"type":"integer"},"language":{"type":"string"},"source":{"type":"string"},"compiled":{"type":"string"},"sourceHash":{"type":"string"},"note":{"type":"string","nullable":true},"createdById":{"type":"string"},"createdAt":{"type":"string","format":"date-time"}},"required":["id","functionId","organizationId","version","language","source","compiled","sourceHash","createdById","createdAt"]},"ServerlessFunctionInvocation":{"type":"object","description":"A ServerlessFunctionInvocation record. Responses may include related records and computed fields beyond these columns.","properties":{"id":{"type":"string"},"organizationId":{"type":"string"},"functionId":{"type":"string"},"versionId":{"type":"string","nullable":true},"version":{"type":"integer","nullable":true},"trigger":{"type":"string"},"status":{"type":"string"},"durationMs":{"type":"integer"},"cpuMs":{"type":"integer"},"memoryBytes":{"type":"integer"},"input":{"nullable":true},"output":{"nullable":true},"stdout":{"type":"string"},"stderr":{"type":"string"},"logsTruncated":{"type":"boolean"},"errorCode":{"type":"string","nullable":true},"errorMessage":{"type":"string","nullable":true},"eventId":{"type":"string","nullable":true},"eventType":{"type":"string","nullable":true},"objectType":{"type":"string","nullable":true},"recordId":{"type":"string","nullable":true},"userId":{"type":"string","nullable":true},"depth":{"type":"integer"},"attempt":{"type":"integer"},"nextRetryAt":{"type":"string","format":"date-time","nullable":true},"createdAt":{"type":"string","format":"date-time"}},"required":["id","organizationId","functionId","trigger","status","durationMs","cpuMs","memoryBytes","stdout","stderr","logsTruncated","depth","attempt","createdAt"]},"OpportunityContactRole":{"type":"object","description":"A OpportunityContactRole record. Responses may include related records and computed fields beyond these columns.","properties":{"id":{"type":"string"},"opportunityId":{"type":"string"},"contactId":{"type":"string"},"role":{"type":"string","enum":["CHAMPION","ECONOMIC_BUYER","DECISION_MAKER","INFLUENCER","END_USER","GATEKEEPER","BLOCKER","TECHNICAL_BUYER"],"nullable":true},"isPrimary":{"type":"boolean"},"createdAt":{"type":"string","format":"date-time"}},"required":["id","opportunityId","contactId","isPrimary","createdAt"]},"OpportunityContactRoleArray":{"type":"array","items":{"$ref":"#/components/schemas/OpportunityContactRole"}},"OpportunityStageHistory":{"type":"object","description":"A OpportunityStageHistory record. Responses may include related records and computed fields beyond these columns.","properties":{"id":{"type":"string"},"opportunityId":{"type":"string"},"organizationId":{"type":"string"},"fromStage":{"type":"string","nullable":true},"toStage":{"type":"string"},"changedById":{"type":"string","nullable":true},"enteredAt":{"type":"string","format":"date-time"},"durationDays":{"type":"integer","nullable":true}},"required":["id","opportunityId","organizationId","toStage","enteredAt"]},"OpportunityStageHistoryArray":{"type":"array","items":{"$ref":"#/components/schemas/OpportunityStageHistory"}},"QuoteLineItem":{"type":"object","description":"A QuoteLineItem record. Responses may include related records and computed fields beyond these columns.","properties":{"id":{"type":"string"},"quoteId":{"type":"string"},"productName":{"type":"string"},"productCode":{"type":"string","nullable":true},"description":{"type":"string","nullable":true},"quantity":{"type":"number"},"listPrice":{"type":"number"},"unitPrice":{"type":"number"},"discount":{"type":"number"},"totalPrice":{"type":"number"},"sortOrder":{"type":"integer","nullable":true},"metadata":{"nullable":true},"createdAt":{"type":"string","format":"date-time"},"updatedAt":{"type":"string","format":"date-time"},"productId":{"type":"string","nullable":true}},"required":["id","quoteId","productName","quantity","listPrice","unitPrice","discount","totalPrice","createdAt","updatedAt"]},"OrderLineItem":{"type":"object","description":"A OrderLineItem record. Responses may include related records and computed fields beyond these columns.","properties":{"id":{"type":"string"},"orderId":{"type":"string"},"productId":{"type":"string","nullable":true},"productName":{"type":"string"},"productCode":{"type":"string","nullable":true},"description":{"type":"string","nullable":true},"quantity":{"type":"number"},"unitPrice":{"type":"number"},"discount":{"type":"number"},"discountPercent":{"type":"number","nullable":true},"tax":{"type":"number"},"totalPrice":{"type":"number"},"quantityShipped":{"type":"number"},"quantityDelivered":{"type":"number"},"quantityReturned":{"type":"number"},"sortOrder":{"type":"integer","nullable":true},"metadata":{"nullable":true},"createdAt":{"type":"string","format":"date-time"},"updatedAt":{"type":"string","format":"date-time"}},"required":["id","orderId","productName","quantity","unitPrice","discount","tax","totalPrice","quantityShipped","quantityDelivered","quantityReturned","createdAt","updatedAt"]},"Invoice":{"type":"object","description":"A Invoice record. Responses may include related records and computed fields beyond these columns.","properties":{"id":{"type":"string"},"invoiceNumber":{"type":"string"},"customerId":{"type":"string"},"subscriptionId":{"type":"string","nullable":true},"organizationId":{"type":"string"},"orderId":{"type":"string","nullable":true},"quoteId":{"type":"string","nullable":true},"accountId":{"type":"string","nullable":true},"stripeInvoiceId":{"type":"string","nullable":true},"razorpayInvoiceId":{"type":"string","nullable":true},"status":{"type":"string","enum":["DRAFT","OPEN","PAID","VOID","UNCOLLECTIBLE"]},"gateway":{"type":"string","enum":["STRIPE","RAZORPAY"],"nullable":true},"currency":{"type":"string"},"subtotal":{"type":"integer"},"discountAmount":{"type":"integer"},"taxAmount":{"type":"integer"},"total":{"type":"integer"},"amountPaid":{"type":"integer"},"amountDue":{"type":"integer"},"invoiceDate":{"type":"string","format":"date-time"},"dueDate":{"type":"string","format":"date-time","nullable":true},"paidAt":{"type":"string","format":"date-time","nullable":true},"billingReason":{"type":"string","nullable":true},"description":{"type":"string","nullable":true},"notes":{"type":"string","nullable":true},"footer":{"type":"string","nullable":true},"pdfUrl":{"type":"string","nullable":true},"hostedInvoiceUrl":{"type":"string","nullable":true},"metadata":{"nullable":true},"createdAt":{"type":"string","format":"date-time"},"updatedAt":{"type":"string","format":"date-time"}},"required":["id","invoiceNumber","customerId","organizationId","status","currency","subtotal","discountAmount","taxAmount","total","amountPaid","amountDue","invoiceDate","createdAt","updatedAt"]},"CustomObjectDefinitionView":{"allOf":[{"$ref":"#/components/schemas/CustomObjectDefinition"},{"type":"object","properties":{"fields":{"type":"array","items":{"$ref":"#/components/schemas/CustomObjectField"}},"recordCount":{"type":"integer"},"managedBy":{"allOf":[{"$ref":"#/components/schemas/ManagedBy"}],"nullable":true,"description":"Set when an installed app manages this component: change it through the app, or detach it first (409 COMPONENT_MANAGED_BY_APP otherwise)."},"relationships":{"type":"object","description":"Detail reads only: this object’s lookup/master-detail fields (outbound) and the fields elsewhere that point at it (inbound).","properties":{"outbound":{"type":"array","items":{"type":"object","additionalProperties":true}},"inbound":{"type":"array","items":{"type":"object","additionalProperties":true}}}}},"required":[]}]},"CustomLookup":{"type":"object","description":"A lookup value: the target id, its object (LEAD…CASE or custom:<apiName>) and its label (null when the caller cannot see the target).","properties":{"id":{"type":"string"},"object":{"type":"string","example":"ACCOUNT"},"label":{"type":"string","nullable":true}},"required":["id","object","label"]},"CustomObjectRecordView":{"allOf":[{"$ref":"#/components/schemas/CustomObjectRecord"},{"type":"object","properties":{"object":{"type":"string","description":"The object’s API name"},"owner":{"type":"object","nullable":true,"properties":{"id":{"type":"string"},"name":{"type":"string","nullable":true}}},"lookups":{"type":"object","description":"Lookup / master-detail fields → resolved target (null when empty). Fields the caller cannot read are omitted here and from `data`.","additionalProperties":{"allOf":[{"$ref":"#/components/schemas/CustomLookup"}],"nullable":true}}},"required":[]}]},"CustomObjectRecordPage":{"type":"object","properties":{"data":{"type":"array","items":{"$ref":"#/components/schemas/CustomObjectRecordView"}},"pagination":{"type":"object","properties":{"page":{"type":"integer"},"limit":{"type":"integer"},"total":{"type":"integer"},"totalPages":{"type":"integer"},"hasMore":{"type":"boolean"}},"required":["page","limit","total","totalPages","hasMore"]},"total":{"type":"integer","description":"Same as pagination.total"},"page":{"type":"integer"},"limit":{"type":"integer"},"totalPages":{"type":"integer"}},"required":["data","pagination"]},"CustomObjectRelatedLists":{"type":"object","properties":{"data":{"type":"array","items":{"type":"object","properties":{"object":{"type":"string","example":"custom:project_task"},"objectId":{"type":"string"},"objectLabel":{"type":"string"},"objectPluralLabel":{"type":"string"},"field":{"type":"string"},"fieldLabel":{"type":"string"},"relationship":{"type":"string","enum":["LOOKUP","MASTER_DETAIL"]},"total":{"type":"integer","description":"Records the caller can see"},"records":{"type":"array","items":{"$ref":"#/components/schemas/CustomObjectRecordView"}}}}}},"required":["data"]},"CustomObjectBulkUpdateResult":{"type":"object","properties":{"updated":{"type":"integer"},"failed":{"type":"integer"},"results":{"type":"array","items":{"type":"object","properties":{"id":{"type":"string"},"ok":{"type":"boolean"},"error":{"type":"string"},"code":{"type":"string"}},"required":["id","ok"]}}},"required":["updated","failed","results"]},"CustomObjectLookupTargets":{"type":"object","properties":{"standard":{"type":"array","items":{"type":"object","properties":{"target":{"type":"string"},"label":{"type":"string"}}}},"custom":{"type":"array","items":{"type":"object","properties":{"target":{"type":"string","example":"custom:project"},"label":{"type":"string"},"pluralLabel":{"type":"string"}}}}},"required":["standard","custom"]},"CustomObjectDefinitionViewList":{"type":"object","properties":{"data":{"type":"array","items":{"$ref":"#/components/schemas/CustomObjectDefinitionView"}},"total":{"type":"integer"},"page":{"type":"integer"},"limit":{"type":"integer"},"totalPages":{"type":"integer"},"dbCustomEntities":{"type":"array","items":{"type":"string"},"description":"Core objects with custom fields, listed as `db_<entity>` pseudo-objects"}},"required":["data","total","page","limit","totalPages"]},"CustomFieldDefinitionView":{"allOf":[{"$ref":"#/components/schemas/CustomFieldDefinition"},{"type":"object","properties":{"managedBy":{"allOf":[{"$ref":"#/components/schemas/ManagedBy"}],"nullable":true,"description":"Set when an installed app manages this component: change it through the app, or detach it first (409 COMPONENT_MANAGED_BY_APP otherwise)."}},"required":[]}]},"WebhookView":{"allOf":[{"$ref":"#/components/schemas/Webhook"},{"type":"object","properties":{"status":{"type":"string","enum":["ACTIVE","FAILING","INACTIVE","DISABLED"]},"totalDeliveries":{"type":"integer"},"successfulDeliveries":{"type":"integer"},"managedBy":{"allOf":[{"$ref":"#/components/schemas/ManagedBy"}],"nullable":true,"description":"Set when an installed app manages this component: change it through the app, or detach it first (409 COMPONENT_MANAGED_BY_APP otherwise)."}},"required":["status"]}]},"WebhookWithSecret":{"allOf":[{"$ref":"#/components/schemas/WebhookView"},{"type":"object","properties":{"secret":{"type":"string","description":"Signing secret for X-SalesOS-Signature"}},"required":["secret"]}]},"WebhookDelivery":{"allOf":[{"$ref":"#/components/schemas/WebhookDeliveryLog"},{"type":"object","properties":{"status":{"type":"string","enum":["SUCCEEDED","RETRYING","FAILED"]}},"required":["status"]}]},"WebhookDeliveryPage":{"type":"object","properties":{"data":{"type":"array","items":{"$ref":"#/components/schemas/WebhookDelivery"}},"total":{"type":"integer"},"page":{"type":"integer"},"limit":{"type":"integer"},"totalPages":{"type":"integer"},"logs":{"type":"array","items":{"$ref":"#/components/schemas/WebhookDelivery"},"deprecated":true,"description":"Same as `data`"},"pagination":{"$ref":"#/components/schemas/PaginationMeta","deprecated":true}},"required":["data","total","page","limit","totalPages"]},"ApiKeyRotated":{"allOf":[{"$ref":"#/components/schemas/ApiKey"},{"type":"object","properties":{"key":{"type":"string","description":"The new key. Shown once."},"previousKey":{"$ref":"#/components/schemas/PreviousApiKey"},"message":{"type":"string"}},"required":["key","previousKey"]}]},"ApiKeyUsagePage":{"type":"object","properties":{"logs":{"type":"array","items":{"$ref":"#/components/schemas/ApiKeyUsageLog"}},"pagination":{"$ref":"#/components/schemas/PaginationMeta"}},"required":["logs","pagination"]},"CustomActionView":{"allOf":[{"$ref":"#/components/schemas/CustomAction"},{"type":"object","properties":{"toolName":{"type":"string","description":"Copilot tool name"},"circuit":{"$ref":"#/components/schemas/CircuitStatus"},"managedBy":{"allOf":[{"$ref":"#/components/schemas/ManagedBy"}],"nullable":true,"description":"Set when an installed app manages this component: change it through the app, or detach it first (409 COMPONENT_MANAGED_BY_APP otherwise)."}},"required":[]}]},"CustomActionWithSecret":{"allOf":[{"$ref":"#/components/schemas/CustomAction"},{"type":"object","properties":{"toolName":{"type":"string"},"secret":{"type":"string","description":"Signing secret. Shown once."}},"required":["secret"]}]},"ExtensionInvocationPage":{"type":"object","properties":{"data":{"type":"array","items":{"$ref":"#/components/schemas/ExtensionInvocation"}},"total":{"type":"integer"},"page":{"type":"integer"},"limit":{"type":"integer"},"totalPages":{"type":"integer"},"retentionDays":{"type":"integer","description":"How long rows are kept before the daily purge"}},"required":["data","total","page","limit","totalPages"]},"BeforeSaveHookView":{"allOf":[{"$ref":"#/components/schemas/BeforeSaveHook"},{"type":"object","properties":{"circuit":{"$ref":"#/components/schemas/CircuitStatus"},"managedBy":{"allOf":[{"$ref":"#/components/schemas/ManagedBy"}],"nullable":true,"description":"Set when an installed app manages this component: change it through the app, or detach it first (409 COMPONENT_MANAGED_BY_APP otherwise)."}},"required":[]}]},"BeforeSaveHookWithSecret":{"allOf":[{"$ref":"#/components/schemas/BeforeSaveHook"},{"type":"object","properties":{"secret":{"type":"string","description":"Signing secret. Shown once."}},"required":["secret"]}]},"ServerlessFunctionView":{"allOf":[{"$ref":"#/components/schemas/ServerlessFunction"},{"type":"object","properties":{"activeVersion":{"type":"integer","nullable":true},"nextRunAt":{"type":"string","format":"date-time","nullable":true}},"required":[]}]},"ServerlessFunctionDetail":{"allOf":[{"$ref":"#/components/schemas/ServerlessFunctionView"},{"type":"object","properties":{"secrets":{"type":"array","items":{"$ref":"#/components/schemas/FunctionSecretName"}}},"required":["secrets"]}]},"ServerlessFunctionVersionSummary":{"type":"object","description":"A function version without its source and compiled code.","properties":{"id":{"type":"string"},"functionId":{"type":"string"},"organizationId":{"type":"string"},"version":{"type":"integer"},"language":{"type":"string"},"sourceHash":{"type":"string"},"note":{"type":"string","nullable":true},"createdById":{"type":"string"},"createdAt":{"type":"string","format":"date-time"}},"required":["id","functionId","organizationId","version","language","sourceHash","createdById","createdAt"]},"ServerlessFunctionVersionPage":{"type":"object","properties":{"data":{"type":"array","items":{"$ref":"#/components/schemas/ServerlessFunctionVersionSummary"}},"total":{"type":"integer"},"page":{"type":"integer"},"limit":{"type":"integer"},"totalPages":{"type":"integer"}},"required":["data","total","page","limit","totalPages"]},"ServerlessFunctionInvocationPage":{"type":"object","properties":{"data":{"type":"array","items":{"$ref":"#/components/schemas/ServerlessFunctionInvocation"}},"total":{"type":"integer"},"page":{"type":"integer"},"limit":{"type":"integer"},"totalPages":{"type":"integer"},"retentionDays":{"type":"integer","description":"How long rows are kept before the daily purge"}},"required":["data","total","page","limit","totalPages"]},"CustomFieldDefinitionViewArray":{"type":"array","items":{"$ref":"#/components/schemas/CustomFieldDefinitionView"}},"CustomFieldValueViewArray":{"type":"array","items":{"$ref":"#/components/schemas/CustomFieldValueView"}},"WebhookViewArray":{"type":"array","items":{"$ref":"#/components/schemas/WebhookView"}},"ManualCustomActionArray":{"type":"array","items":{"$ref":"#/components/schemas/ManualCustomAction"}},"CustomActionViewArray":{"type":"array","items":{"$ref":"#/components/schemas/CustomActionView"}},"BeforeSaveHookViewArray":{"type":"array","items":{"$ref":"#/components/schemas/BeforeSaveHookView"}},"ServerlessFunctionViewArray":{"type":"array","items":{"$ref":"#/components/schemas/ServerlessFunctionView"}},"FunctionSecretNameArray":{"type":"array","items":{"$ref":"#/components/schemas/FunctionSecretName"}},"MarketplaceCategoryArray":{"type":"array","items":{"$ref":"#/components/schemas/MarketplaceCategory"}},"Error":{"type":"object","properties":{"statusCode":{"type":"integer","example":400},"code":{"type":"string","description":"Stable machine-readable code, e.g. VALIDATION_RULE_FAILED. Branch on this, not on message.","example":"API_KEY_SCOPE_INSUFFICIENT"},"message":{"oneOf":[{"type":"string"},{"type":"array","items":{"type":"string"}}]},"timestamp":{"type":"string","format":"date-time"},"path":{"type":"string"},"requestId":{"type":"string"}},"required":["statusCode","message"]}},"parameters":{"IdempotencyKey":{"name":"Idempotency-Key","in":"header","required":false,"description":"Unique key (a UUID is ideal) that makes this write safe to retry for 24 hours: a retry with the same body replays the original response (`Idempotent-Replayed: true`); the same key with a different body is a 409.","schema":{"type":"string","maxLength":255}}},"responses":{"BadRequest":{"description":"The request was malformed or failed validation.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"Unauthorized":{"description":"Missing, invalid, expired or revoked credentials.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"Forbidden":{"description":"Authenticated, but the key scope, plan, profile or IP allow-list does not permit this.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"NotFound":{"description":"No such record, or it is not visible to the caller.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"Conflict":{"description":"Idempotency-Key reused with a different request, or the original request is still in progress.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"TooManyRequests":{"description":"Rate limit exceeded.","headers":{"RateLimit-Limit":{"description":"Requests allowed in the current window for this API key.","schema":{"type":"integer"}},"RateLimit-Remaining":{"description":"Requests left in the current window.","schema":{"type":"integer"}},"RateLimit-Reset":{"description":"Seconds until the window resets.","schema":{"type":"integer"}},"Retry-After":{"description":"Seconds to wait before retrying.","schema":{"type":"integer"}}},"content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"ServerError":{"description":"Unexpected server error. Safe reads may be retried.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}}}}}