{"openapi":"3.0.0","info":{"title":"1stLine API","version":"1.0.0","description":"API documentation"},"servers":[],"tags":[{"name":"Schemas","description":"API endpoints for Schemas handler"},{"name":"Routing-rules","description":"API endpoints for Routing-rules handler"},{"name":"Ai-escalation","description":"API endpoints for Ai-escalation handler"},{"name":"Escalation","description":"API endpoints for Escalation handler"},{"name":"Proxy","description":"API endpoints for Proxy handler"},{"name":"Teams","description":"API endpoints for Teams handler"},{"name":"Users","description":"API endpoints for Users handler"},{"name":"Api-token","description":"API endpoints for Api-token handler"},{"name":"Alert-actions","description":"API endpoints for Alert-actions handler"},{"name":"Communication","description":"API endpoints for Communication handler"},{"name":"Incidents","description":"API endpoints for Incidents handler"}],"paths":{"/api/schemas/new":{"post":{"responses":{"200":{"description":"Schema created successfully","content":{"application/json":{"schema":{"type":"object","properties":{"success":{"type":"boolean"},"data":{"$ref":"#/components/schemas/CreateSchemaResponseData"}}}}}},"400":{"description":"Invalid payload format","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}},"401":{"description":"Invalid or missing schema creation token","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}},"500":{"description":"Internal server error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}}},"operationId":"postApiSchemasNew","parameters":[{"name":"org_uid","in":"query","schema":{"type":"string"},"required":true},{"name":"token","in":"query","schema":{"type":"string"},"required":true}],"description":"Create new schema from alert payload using schema creation token\n\nAuthorization: requires a valid schema creation token for the target organization.","requestBody":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/IncomingAlertRequest"}}}},"x-authorization-type":"schema-creation-token","tags":["Schemas"],"x-badges":[{"name":"Auth: schema-creation-token","position":"after","color":"#13ec80"}]}},"/api/schemas/library/global":{"get":{"responses":{"200":{"description":"Library schemas retrieved successfully","content":{"application/json":{"schema":{"$ref":"#/components/schemas/LibrarySchemasListResponse"}}}},"500":{"description":"Failed to list library schemas","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}}},"operationId":"getApiSchemasLibraryGlobal","parameters":[{"name":"org_uid","in":"query","schema":{"type":"string"}},{"name":"limit","in":"query","schema":{"type":"string"}},{"name":"cursor","in":"query","schema":{"type":"string"}}],"description":"List global library schemas.\n\nAuthorization: requires permission `config:read` (allowed roles: reader, editor, admin).","x-authorization-scope":"config:read","x-rbac-permission":"config:read","x-rbac-roles":["reader","editor","admin"],"tags":["Schemas"],"x-badges":[{"name":"Permission: config:read","position":"after","color":"#13ec80"},{"name":"Roles: reader, editor, admin","position":"after","color":"#13ec80"}]}},"/api/schemas/library/global/{librarySchemaUid}":{"get":{"responses":{"200":{"description":"Library schema retrieved successfully","content":{"application/json":{"schema":{"type":"object","properties":{"success":{"type":"boolean"},"data":{"$ref":"#/components/schemas/LibrarySchema"}}}}}},"404":{"description":"Library schema not found","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}}},"operationId":"getApiSchemasLibraryGlobalByLibrarySchemaUid","parameters":[{"schema":{"type":"string"},"in":"path","name":"librarySchemaUid","required":true}],"description":"Get a single global library schema.\n\nAuthorization: requires permission `config:read` (allowed roles: reader, editor, admin).","x-authorization-scope":"config:read","x-rbac-permission":"config:read","x-rbac-roles":["reader","editor","admin"],"tags":["Schemas"],"x-badges":[{"name":"Permission: config:read","position":"after","color":"#13ec80"},{"name":"Roles: reader, editor, admin","position":"after","color":"#13ec80"}]}},"/api/schemas/library/org":{"get":{"responses":{"200":{"description":"Library schemas retrieved successfully","content":{"application/json":{"schema":{"$ref":"#/components/schemas/LibrarySchemasListResponse"}}}},"500":{"description":"Failed to list library schemas","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}}},"operationId":"getApiSchemasLibraryOrg","parameters":[{"name":"org_uid","in":"query","schema":{"type":"string"},"required":true},{"name":"limit","in":"query","schema":{"type":"string"}},{"name":"cursor","in":"query","schema":{"type":"string"}}],"description":"List organization library schemas.\n\nAuthorization: requires permission `config:read` (allowed roles: reader, editor, admin).","x-authorization-scope":"config:read","x-rbac-permission":"config:read","x-rbac-roles":["reader","editor","admin"],"tags":["Schemas"],"x-badges":[{"name":"Permission: config:read","position":"after","color":"#13ec80"},{"name":"Roles: reader, editor, admin","position":"after","color":"#13ec80"}]},"post":{"responses":{"200":{"description":"Library schema created successfully","content":{"application/json":{"schema":{"type":"object","properties":{"success":{"type":"boolean"},"data":{"$ref":"#/components/schemas/LibrarySchema"}}}}}}},"operationId":"postApiSchemasLibraryOrg","parameters":[{"name":"org_uid","in":"query","schema":{"type":"string"},"required":true}],"description":"Create a new organization-scoped library schema.\n\nAuthorization: requires permission `config:write` (allowed roles: editor, admin).","requestBody":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/CreateLibrarySchemaRequest"}}}},"x-authorization-scope":"config:write","x-rbac-permission":"config:write","x-rbac-roles":["editor","admin"],"tags":["Schemas"],"x-badges":[{"name":"Permission: config:write","position":"after","color":"#13ec80"},{"name":"Roles: editor, admin","position":"after","color":"#13ec80"}]}},"/api/schemas/library/org/{librarySchemaUid}":{"get":{"responses":{"200":{"description":"Library schema retrieved successfully","content":{"application/json":{"schema":{"type":"object","properties":{"success":{"type":"boolean"},"data":{"$ref":"#/components/schemas/LibrarySchema"}}}}}},"404":{"description":"Library schema not found","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}}},"operationId":"getApiSchemasLibraryOrgByLibrarySchemaUid","parameters":[{"name":"org_uid","in":"query","schema":{"type":"string"},"required":true},{"schema":{"type":"string"},"in":"path","name":"librarySchemaUid","required":true}],"description":"Get an organization library schema.\n\nAuthorization: requires permission `config:read` (allowed roles: reader, editor, admin).","x-authorization-scope":"config:read","x-rbac-permission":"config:read","x-rbac-roles":["reader","editor","admin"],"tags":["Schemas"],"x-badges":[{"name":"Permission: config:read","position":"after","color":"#13ec80"},{"name":"Roles: reader, editor, admin","position":"after","color":"#13ec80"}]},"put":{"responses":{"200":{"description":"Library schema updated successfully","content":{"application/json":{"schema":{"type":"object","properties":{"success":{"type":"boolean"},"data":{"$ref":"#/components/schemas/LibrarySchema"}}}}}}},"operationId":"putApiSchemasLibraryOrgByLibrarySchemaUid","parameters":[{"name":"org_uid","in":"query","schema":{"type":"string"},"required":true},{"schema":{"type":"string"},"in":"path","name":"librarySchemaUid","required":true}],"description":"Update an organization library schema.\n\nAuthorization: requires permission `config:write` (allowed roles: editor, admin).","requestBody":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/UpdateLibrarySchemaRequest"}}}},"x-authorization-scope":"config:write","x-rbac-permission":"config:write","x-rbac-roles":["editor","admin"],"tags":["Schemas"],"x-badges":[{"name":"Permission: config:write","position":"after","color":"#13ec80"},{"name":"Roles: editor, admin","position":"after","color":"#13ec80"}]},"delete":{"responses":{"200":{"description":"Library schema deleted successfully","content":{"application/json":{"schema":{"$ref":"#/components/schemas/SimpleSuccessResponse"}}}}},"operationId":"deleteApiSchemasLibraryOrgByLibrarySchemaUid","parameters":[{"name":"org_uid","in":"query","schema":{"type":"string"},"required":true},{"schema":{"type":"string"},"in":"path","name":"librarySchemaUid","required":true}],"description":"Delete an organization library schema.\n\nAuthorization: requires permission `config:write` (allowed roles: editor, admin).","x-authorization-scope":"config:write","x-rbac-permission":"config:write","x-rbac-roles":["editor","admin"],"tags":["Schemas"],"x-badges":[{"name":"Permission: config:write","position":"after","color":"#13ec80"},{"name":"Roles: editor, admin","position":"after","color":"#13ec80"}]}},"/api/schemas/library/{librarySchemaUid}":{"post":{"responses":{"200":{"description":"Schema created successfully from library definition","content":{"application/json":{"schema":{"$ref":"#/components/schemas/SchemaResponse"}}}}},"operationId":"postApiSchemasLibraryByLibrarySchemaUid","parameters":[{"name":"org_uid","in":"query","schema":{"type":"string"},"required":true},{"schema":{"type":"string"},"in":"path","name":"librarySchemaUid","required":true}],"description":"Create a schema from a library entry without requiring a creation token. Uses a temporary name; users can rename/edit afterward.\n\nAuthorization: requires permission `config:write` (allowed roles: editor, admin).","x-authorization-scope":"config:write","x-rbac-permission":"config:write","x-rbac-roles":["editor","admin"],"tags":["Schemas"],"x-badges":[{"name":"Permission: config:write","position":"after","color":"#13ec80"},{"name":"Roles: editor, admin","position":"after","color":"#13ec80"}]}},"/api/schemas/creation-status":{"get":{"responses":{"101":{"description":"WebSocket connection established. Server will send JSON messages with status updates.","headers":{"Upgrade":{"description":"websocket","schema":{"type":"string"}},"Connection":{"description":"Upgrade","schema":{"type":"string"}}}},"400":{"description":"Bad request - missing token, missing org context, or WebSocket upgrade not requested","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}},"401":{"description":"Unauthorized - invalid or expired schema creation token","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}},"500":{"description":"Internal server error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}}},"operationId":"getApiSchemasCreation-status","parameters":[{"name":"org_uid","in":"query","schema":{"type":"string"},"required":true},{"name":"token","in":"query","schema":{"type":"string"},"required":true}],"description":"WebSocket endpoint for real-time tracking of schema creation status. Requires WebSocket upgrade header. Polls status every second and sends updates when status changes. Connection closes automatically when terminal state is reached (schema_created, aborted, or expired).\n\nAuthorization: requires permission `config:read` (allowed roles: reader, editor, admin).","x-authorization-scope":"config:read","x-rbac-permission":"config:read","x-rbac-roles":["reader","editor","admin"],"tags":["Schemas"],"x-badges":[{"name":"Permission: config:read","position":"after","color":"#13ec80"},{"name":"Roles: reader, editor, admin","position":"after","color":"#13ec80"}]}},"/api/schemas/creation-token":{"post":{"responses":{"200":{"description":"Schema creation token created successfully","content":{"application/json":{"schema":{"type":"object","properties":{"success":{"type":"boolean"},"data":{"$ref":"#/components/schemas/SchemaCreationResponseData"}}}}}},"500":{"description":"Internal server error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}}},"operationId":"postApiSchemasCreation-token","parameters":[{"name":"org_uid","in":"query","schema":{"type":"string"},"required":true}],"description":"Create a new schema creation token for schema creation process\n\nAuthorization: requires permission `config:write` (allowed roles: editor, admin).","x-authorization-scope":"config:write","x-rbac-permission":"config:write","x-rbac-roles":["editor","admin"],"tags":["Schemas"],"x-badges":[{"name":"Permission: config:write","position":"after","color":"#13ec80"},{"name":"Roles: editor, admin","position":"after","color":"#13ec80"}]},"delete":{"responses":{"200":{"description":"Schema creation aborted successfully","content":{"application/json":{"schema":{"type":"object","properties":{"success":{"type":"boolean"},"data":{"$ref":"#/components/schemas/SchemaCreationResponseData"}}}}}},"400":{"description":"Missing token parameter","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}},"500":{"description":"Internal server error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}}},"operationId":"deleteApiSchemasCreation-token","parameters":[{"name":"org_uid","in":"query","schema":{"type":"string"},"required":true},{"name":"token","in":"query","schema":{"type":"string"},"required":true}],"description":"Abort schema creation by invalidating schema creation token\n\nAuthorization: requires permission `config:write` (allowed roles: editor, admin).","x-authorization-scope":"config:write","x-rbac-permission":"config:write","x-rbac-roles":["editor","admin"],"tags":["Schemas"],"x-badges":[{"name":"Permission: config:write","position":"after","color":"#13ec80"},{"name":"Roles: editor, admin","position":"after","color":"#13ec80"}]}},"/api/schemas":{"get":{"responses":{"200":{"description":"Schemas retrieved successfully","content":{"application/json":{"schema":{"type":"object","properties":{"success":{"type":"boolean"},"data":{"type":"array","items":{"$ref":"#/components/schemas/SchemaResponse"}},"count":{"type":"number"}}}}}},"500":{"description":"Internal server error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}}},"operationId":"getApiSchemas","parameters":[{"name":"org_uid","in":"query","schema":{"type":"string"},"required":true},{"name":"limit","in":"query","schema":{"type":"string"}},{"name":"offset","in":"query","schema":{"type":"string"}},{"name":"enabled","in":"query","schema":{"type":"string"}}],"description":"List all schemas for the organization\n\nAuthorization: requires permission `config:read` (allowed roles: reader, editor, admin).","x-authorization-scope":"config:read","x-rbac-permission":"config:read","x-rbac-roles":["reader","editor","admin"],"tags":["Schemas"],"x-badges":[{"name":"Permission: config:read","position":"after","color":"#13ec80"},{"name":"Roles: reader, editor, admin","position":"after","color":"#13ec80"}]}},"/api/schemas/{schemaUid}":{"get":{"responses":{"200":{"description":"Schema retrieved successfully","content":{"application/json":{"schema":{"type":"object","properties":{"success":{"type":"boolean"},"data":{"$ref":"#/components/schemas/SchemaResponse"}}}}}},"404":{"description":"Schema not found","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}},"500":{"description":"Internal server error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}}},"operationId":"getApiSchemasBySchemaUid","parameters":[{"name":"org_uid","in":"query","schema":{"type":"string"},"required":true},{"schema":{"type":"string"},"in":"path","name":"schemaUid","required":true}],"description":"Get a single schema by UID\n\nAuthorization: requires permission `config:read` (allowed roles: reader, editor, admin).","x-authorization-scope":"config:read","x-rbac-permission":"config:read","x-rbac-roles":["reader","editor","admin"],"tags":["Schemas"],"x-badges":[{"name":"Permission: config:read","position":"after","color":"#13ec80"},{"name":"Roles: reader, editor, admin","position":"after","color":"#13ec80"}]},"put":{"responses":{"200":{"description":"Schema updated successfully","content":{"application/json":{"schema":{"type":"object","properties":{"success":{"type":"boolean"},"data":{"$ref":"#/components/schemas/SchemaResponse"}}}}}},"400":{"description":"Invalid request body or pattern configurations","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}},"404":{"description":"Schema not found","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}},"500":{"description":"Internal server error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}}},"operationId":"putApiSchemasBySchemaUid","parameters":[{"name":"org_uid","in":"query","schema":{"type":"string"},"required":true},{"schema":{"type":"string"},"in":"path","name":"schemaUid","required":true}],"description":"Update an existing schema\n\nAuthorization: requires permission `config:write` (allowed roles: editor, admin).","requestBody":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/UpdateSchemaRequest"}}}},"x-authorization-scope":"config:write","x-rbac-permission":"config:write","x-rbac-roles":["editor","admin"],"tags":["Schemas"],"x-badges":[{"name":"Permission: config:write","position":"after","color":"#13ec80"},{"name":"Roles: editor, admin","position":"after","color":"#13ec80"}]},"delete":{"responses":{"200":{"description":"Schema deleted successfully","content":{"application/json":{"schema":{"$ref":"#/components/schemas/SimpleSuccessResponse"}}}},"404":{"description":"Schema not found","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}},"500":{"description":"Internal server error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}}},"operationId":"deleteApiSchemasBySchemaUid","parameters":[{"name":"org_uid","in":"query","schema":{"type":"string"},"required":true},{"schema":{"type":"string"},"in":"path","name":"schemaUid","required":true}],"description":"Delete a schema by UID\n\nAuthorization: requires permission `config:write` (allowed roles: editor, admin).","x-authorization-scope":"config:write","x-rbac-permission":"config:write","x-rbac-roles":["editor","admin"],"tags":["Schemas"],"x-badges":[{"name":"Permission: config:write","position":"after","color":"#13ec80"},{"name":"Roles: editor, admin","position":"after","color":"#13ec80"}]}},"/api/schemas/test-patterns":{"post":{"responses":{"200":{"description":"Patterns tested successfully","content":{"application/json":{"schema":{"type":"object","properties":{"success":{"type":"boolean"},"data":{"$ref":"#/components/schemas/TestPatternsResponseData"}}}}}},"400":{"description":"Invalid patterns or test payload","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}},"500":{"description":"Internal server error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}}},"operationId":"postApiSchemasTest-patterns","parameters":[{"name":"org_uid","in":"query","schema":{"type":"string"},"required":true}],"description":"Test field extraction patterns with step-by-step extraction details\n\nAuthorization: requires permission `config:read` (allowed roles: reader, editor, admin).","requestBody":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/TestPatternsRequest"}}}},"x-authorization-scope":"config:read","x-rbac-permission":"config:read","x-rbac-roles":["reader","editor","admin"],"tags":["Schemas"],"x-badges":[{"name":"Permission: config:read","position":"after","color":"#13ec80"},{"name":"Roles: reader, editor, admin","position":"after","color":"#13ec80"}]}},"/api/schemas/test-transformation-template":{"post":{"responses":{"200":{"description":"Transformation template tested successfully","content":{"application/json":{"schema":{"type":"object","properties":{"success":{"type":"boolean"},"data":{"$ref":"#/components/schemas/TestTransformationTemplateResponseData"}}}}}},"400":{"description":"Invalid transformation template, patterns, or payload","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}},"500":{"description":"Internal server error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}}},"operationId":"postApiSchemasTest-transformation-template","parameters":[{"name":"org_uid","in":"query","schema":{"type":"string"},"required":true}],"description":"Test transformation template rendering with payload extraction patterns\n\nAuthorization: requires permission `config:read` (allowed roles: reader, editor, admin).","requestBody":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/TestTransformationTemplateRequest"}}}},"x-authorization-scope":"config:read","x-rbac-permission":"config:read","x-rbac-roles":["reader","editor","admin"],"tags":["Schemas"],"x-badges":[{"name":"Permission: config:read","position":"after","color":"#13ec80"},{"name":"Roles: reader, editor, admin","position":"after","color":"#13ec80"}]}},"/api/routing-rules":{"get":{"responses":{"200":{"description":"Routing rules retrieved successfully","content":{"application/json":{"schema":{"type":"object","properties":{"success":{"type":"boolean"},"data":{"type":"array","items":{"$ref":"#/components/schemas/RoutingRuleWithConditions"}},"count":{"type":"number"}}}}}},"500":{"description":"Internal server error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}}},"operationId":"getApiRouting-rules","parameters":[{"name":"org_uid","in":"query","schema":{"type":"string"},"required":true},{"name":"limit","in":"query","schema":{"type":"string"}},{"name":"offset","in":"query","schema":{"type":"string"}}],"description":"Retrieves all routing rules for the organization with their conditions\n\nAuthorization: requires permission `config:read` (allowed roles: reader, editor, admin).","x-authorization-scope":"config:read","x-rbac-permission":"config:read","x-rbac-roles":["reader","editor","admin"],"tags":["Routing-rules"],"x-badges":[{"name":"Permission: config:read","position":"after","color":"#13ec80"},{"name":"Roles: reader, editor, admin","position":"after","color":"#13ec80"}]},"post":{"responses":{"200":{"description":"Routing rule created successfully","content":{"application/json":{"schema":{"type":"object","properties":{"success":{"type":"boolean"},"data":{"$ref":"#/components/schemas/RoutingRuleWithConditions"}}}}}},"400":{"description":"Invalid request body","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}},"500":{"description":"Internal server error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}}},"operationId":"postApiRouting-rules","parameters":[{"name":"org_uid","in":"query","schema":{"type":"string"},"required":true}],"description":"Creates a new routing rule with conditions and updates schema_routing_rules junction table\n\nAuthorization: requires permission `config:write` (allowed roles: editor, admin).","requestBody":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/CreateRoutingRuleRequest"}}}},"x-authorization-scope":"config:write","x-rbac-permission":"config:write","x-rbac-roles":["editor","admin"],"tags":["Routing-rules"],"x-badges":[{"name":"Permission: config:write","position":"after","color":"#13ec80"},{"name":"Roles: editor, admin","position":"after","color":"#13ec80"}]}},"/api/routing-rules/{ruleUid}":{"get":{"responses":{"200":{"description":"Routing rule retrieved successfully","content":{"application/json":{"schema":{"type":"object","properties":{"success":{"type":"boolean"},"data":{"$ref":"#/components/schemas/RoutingRuleWithConditions"}}}}}},"404":{"description":"Routing rule not found","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}},"500":{"description":"Internal server error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}}},"operationId":"getApiRouting-rulesByRuleUid","parameters":[{"name":"org_uid","in":"query","schema":{"type":"string"},"required":true},{"schema":{"type":"string"},"in":"path","name":"ruleUid","required":true}],"description":"Retrieves a single routing rule by UID with its conditions\n\nAuthorization: requires permission `config:read` (allowed roles: reader, editor, admin).","x-authorization-scope":"config:read","x-rbac-permission":"config:read","x-rbac-roles":["reader","editor","admin"],"tags":["Routing-rules"],"x-badges":[{"name":"Permission: config:read","position":"after","color":"#13ec80"},{"name":"Roles: reader, editor, admin","position":"after","color":"#13ec80"}]},"put":{"responses":{"200":{"description":"Routing rule updated successfully","content":{"application/json":{"schema":{"type":"object","properties":{"success":{"type":"boolean"},"data":{"$ref":"#/components/schemas/RoutingRuleWithConditions"}}}}}},"404":{"description":"Routing rule not found","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}},"500":{"description":"Internal server error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}}},"operationId":"putApiRouting-rulesByRuleUid","parameters":[{"name":"org_uid","in":"query","schema":{"type":"string"},"required":true},{"schema":{"type":"string"},"in":"path","name":"ruleUid","required":true}],"description":"Updates a routing rule and its conditions\n\nAuthorization: requires permission `config:write` (allowed roles: editor, admin).","requestBody":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/UpdateRoutingRuleRequest"}}}},"x-authorization-scope":"config:write","x-rbac-permission":"config:write","x-rbac-roles":["editor","admin"],"tags":["Routing-rules"],"x-badges":[{"name":"Permission: config:write","position":"after","color":"#13ec80"},{"name":"Roles: editor, admin","position":"after","color":"#13ec80"}]},"delete":{"responses":{"200":{"description":"Routing rule deleted successfully","content":{"application/json":{"schema":{"$ref":"#/components/schemas/SimpleSuccessResponse"}}}},"404":{"description":"Routing rule not found","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}},"500":{"description":"Internal server error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}}},"operationId":"deleteApiRouting-rulesByRuleUid","parameters":[{"name":"org_uid","in":"query","schema":{"type":"string"},"required":true},{"schema":{"type":"string"},"in":"path","name":"ruleUid","required":true}],"description":"Deletes a routing rule and its conditions\n\nAuthorization: requires permission `config:write` (allowed roles: editor, admin).","x-authorization-scope":"config:write","x-rbac-permission":"config:write","x-rbac-roles":["editor","admin"],"tags":["Routing-rules"],"x-badges":[{"name":"Permission: config:write","position":"after","color":"#13ec80"},{"name":"Roles: editor, admin","position":"after","color":"#13ec80"}]}},"/api/routing-rules/schemas/{schemaUid}/fields":{"get":{"responses":{"200":{"description":"Schema fields retrieved successfully","content":{"application/json":{"schema":{"type":"object","properties":{"success":{"type":"boolean"},"data":{"type":"array","items":{"type":"string"}}}}}}},"404":{"description":"Schema not found","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}},"500":{"description":"Internal server error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}}},"operationId":"getApiRouting-rulesSchemasBySchemaUidFields","parameters":[{"name":"org_uid","in":"query","schema":{"type":"string"},"required":true},{"schema":{"type":"string"},"in":"path","name":"schemaUid","required":true}],"description":"Gets available fields for a schema for dynamic field discovery\n\nAuthorization: requires permission `config:read` (allowed roles: reader, editor, admin).","x-authorization-scope":"config:read","x-rbac-permission":"config:read","x-rbac-roles":["reader","editor","admin"],"tags":["Routing-rules"],"x-badges":[{"name":"Permission: config:read","position":"after","color":"#13ec80"},{"name":"Roles: reader, editor, admin","position":"after","color":"#13ec80"}]}},"/api/ai-escalation/connections":{"get":{"responses":{"200":{"description":"Successful response","content":{"application/json":{"schema":{"type":"object","properties":{"success":{"type":"boolean"},"data":{"type":"array","items":{"$ref":"#/components/schemas/AiEscalationSafeConnection"}},"count":{"type":"number"}}}}}}},"operationId":"getApiAi-escalationConnections","parameters":[{"name":"org_uid","in":"query","schema":{"type":"string"},"required":true}],"description":"List AI escalation controller connections for the current organization\n\nAuthorization: requires permission `config:read` (allowed roles: reader, editor, admin).","x-authorization-scope":"config:read","x-rbac-permission":"config:read","x-rbac-roles":["reader","editor","admin"],"tags":["Ai-escalation"],"x-badges":[{"name":"Permission: config:read","position":"after","color":"#13ec80"},{"name":"Roles: reader, editor, admin","position":"after","color":"#13ec80"}]},"post":{"responses":{"201":{"description":"Connection created","content":{"application/json":{"schema":{"type":"object","properties":{"success":{"type":"boolean"},"data":{"$ref":"#/components/schemas/AiEscalationCreateConnectionResponse"}}}}}}},"operationId":"postApiAi-escalationConnections","parameters":[{"name":"org_uid","in":"query","schema":{"type":"string"},"required":true}],"description":"Create an AI escalation controller connection and return its one-time secret\n\nAuthorization: requires permission `ai-escalation-connections:manage` (allowed roles: admin).","requestBody":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/AiEscalationCreateConnectionRequest"}}}},"x-authorization-scope":"ai-escalation-connections:manage","x-rbac-permission":"ai-escalation-connections:manage","x-rbac-roles":["admin"],"tags":["Ai-escalation"],"x-badges":[{"name":"Permission: ai-escalation-connections:manage","position":"after","color":"#13ec80"},{"name":"Roles: admin","position":"after","color":"#13ec80"}]}},"/api/ai-escalation/connections/{connectionUid}":{"get":{"responses":{"200":{"description":"Successful response","content":{"application/json":{"schema":{"type":"object","properties":{"success":{"type":"boolean"},"data":{"$ref":"#/components/schemas/AiEscalationSafeConnection"}}}}}},"404":{"description":"Connection not found","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}}},"operationId":"getApiAi-escalationConnectionsByConnectionUid","parameters":[{"name":"org_uid","in":"query","schema":{"type":"string"},"required":true},{"schema":{"type":"string"},"in":"path","name":"connectionUid","required":true}],"description":"Get one AI escalation controller connection\n\nAuthorization: requires permission `config:read` (allowed roles: reader, editor, admin).","x-authorization-scope":"config:read","x-rbac-permission":"config:read","x-rbac-roles":["reader","editor","admin"],"tags":["Ai-escalation"],"x-badges":[{"name":"Permission: config:read","position":"after","color":"#13ec80"},{"name":"Roles: reader, editor, admin","position":"after","color":"#13ec80"}]},"put":{"responses":{"200":{"description":"Connection updated","content":{"application/json":{"schema":{"type":"object","properties":{"success":{"type":"boolean"},"data":{"$ref":"#/components/schemas/AiEscalationSafeConnection"}}}}}}},"operationId":"putApiAi-escalationConnectionsByConnectionUid","parameters":[{"name":"org_uid","in":"query","schema":{"type":"string"},"required":true},{"schema":{"type":"string"},"in":"path","name":"connectionUid","required":true}],"description":"Replace AI escalation controller connection metadata\n\nAuthorization: requires permission `ai-escalation-connections:manage` (allowed roles: admin).","requestBody":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/AiEscalationUpdateConnectionRequest"}}}},"x-authorization-scope":"ai-escalation-connections:manage","x-rbac-permission":"ai-escalation-connections:manage","x-rbac-roles":["admin"],"tags":["Ai-escalation"],"x-badges":[{"name":"Permission: ai-escalation-connections:manage","position":"after","color":"#13ec80"},{"name":"Roles: admin","position":"after","color":"#13ec80"}]},"delete":{"responses":{"200":{"description":"Connection deleted","content":{"application/json":{"schema":{"$ref":"#/components/schemas/SimpleSuccessResponse"}}}},"404":{"description":"Connection not found","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}}},"operationId":"deleteApiAi-escalationConnectionsByConnectionUid","parameters":[{"name":"org_uid","in":"query","schema":{"type":"string"},"required":true},{"schema":{"type":"string"},"in":"path","name":"connectionUid","required":true}],"description":"Delete an AI escalation controller connection\n\nAuthorization: requires permission `ai-escalation-connections:manage` (allowed roles: admin).","x-authorization-scope":"ai-escalation-connections:manage","x-rbac-permission":"ai-escalation-connections:manage","x-rbac-roles":["admin"],"tags":["Ai-escalation"],"x-badges":[{"name":"Permission: ai-escalation-connections:manage","position":"after","color":"#13ec80"},{"name":"Roles: admin","position":"after","color":"#13ec80"}]}},"/api/ai-escalation/connections/{connectionUid}/revoke":{"post":{"responses":{"200":{"description":"Connection revoked","content":{"application/json":{"schema":{"type":"object","properties":{"success":{"type":"boolean"},"data":{"$ref":"#/components/schemas/AiEscalationSafeConnection"}}}}}},"404":{"description":"Connection not found","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}}},"operationId":"postApiAi-escalationConnectionsByConnectionUidRevoke","parameters":[{"name":"org_uid","in":"query","schema":{"type":"string"},"required":true},{"schema":{"type":"string"},"in":"path","name":"connectionUid","required":true}],"description":"Revoke an AI escalation controller connection\n\nAuthorization: requires permission `ai-escalation-connections:manage` (allowed roles: admin).","x-authorization-scope":"ai-escalation-connections:manage","x-rbac-permission":"ai-escalation-connections:manage","x-rbac-roles":["admin"],"tags":["Ai-escalation"],"x-badges":[{"name":"Permission: ai-escalation-connections:manage","position":"after","color":"#13ec80"},{"name":"Roles: admin","position":"after","color":"#13ec80"}]}},"/api/ai-escalation/connections/{connectionUid}/rotate-secret":{"post":{"responses":{"200":{"description":"Connection secret rotated","content":{"application/json":{"schema":{"type":"object","properties":{"success":{"type":"boolean"},"data":{"$ref":"#/components/schemas/AiEscalationCreateConnectionResponse"}}}}}},"404":{"description":"Connection not found","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}}},"operationId":"postApiAi-escalationConnectionsByConnectionUidRotate-secret","parameters":[{"name":"org_uid","in":"query","schema":{"type":"string"},"required":true},{"schema":{"type":"string"},"in":"path","name":"connectionUid","required":true}],"description":"Rotate an AI escalation controller connection secret and return the one-time replacement secret\n\nAuthorization: requires permission `ai-escalation-connections:manage` (allowed roles: admin).","x-authorization-scope":"ai-escalation-connections:manage","x-rbac-permission":"ai-escalation-connections:manage","x-rbac-roles":["admin"],"tags":["Ai-escalation"],"x-badges":[{"name":"Permission: ai-escalation-connections:manage","position":"after","color":"#13ec80"},{"name":"Roles: admin","position":"after","color":"#13ec80"}]}},"/api/ai-escalation/rules":{"get":{"responses":{"200":{"description":"Successful response","content":{"application/json":{"schema":{"type":"object","properties":{"success":{"type":"boolean"},"data":{"type":"array","items":{"$ref":"#/components/schemas/AiEscalationSafeRule"}},"count":{"type":"number"}}}}}}},"operationId":"getApiAi-escalationRules","parameters":[{"name":"org_uid","in":"query","schema":{"type":"string"},"required":true}],"description":"List AI escalation assignment rules\n\nAuthorization: requires permission `config:read` (allowed roles: reader, editor, admin).","x-authorization-scope":"config:read","x-rbac-permission":"config:read","x-rbac-roles":["reader","editor","admin"],"tags":["Ai-escalation"],"x-badges":[{"name":"Permission: config:read","position":"after","color":"#13ec80"},{"name":"Roles: reader, editor, admin","position":"after","color":"#13ec80"}]},"post":{"responses":{"201":{"description":"Rule created","content":{"application/json":{"schema":{"type":"object","properties":{"success":{"type":"boolean"},"data":{"$ref":"#/components/schemas/AiEscalationSafeRule"}}}}}}},"operationId":"postApiAi-escalationRules","parameters":[{"name":"org_uid","in":"query","schema":{"type":"string"},"required":true}],"description":"Create an AI escalation assignment rule\n\nAuthorization: requires permission `config:write` (allowed roles: editor, admin).","requestBody":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/AiEscalationCreateRuleRequest"}}}},"x-authorization-scope":"config:write","x-rbac-permission":"config:write","x-rbac-roles":["editor","admin"],"tags":["Ai-escalation"],"x-badges":[{"name":"Permission: config:write","position":"after","color":"#13ec80"},{"name":"Roles: editor, admin","position":"after","color":"#13ec80"}]}},"/api/ai-escalation/rules/{ruleUid}":{"get":{"responses":{"200":{"description":"Successful response","content":{"application/json":{"schema":{"type":"object","properties":{"success":{"type":"boolean"},"data":{"$ref":"#/components/schemas/AiEscalationSafeRule"}}}}}},"404":{"description":"Rule not found","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}}},"operationId":"getApiAi-escalationRulesByRuleUid","parameters":[{"name":"org_uid","in":"query","schema":{"type":"string"},"required":true},{"schema":{"type":"string"},"in":"path","name":"ruleUid","required":true}],"description":"Get one AI escalation assignment rule\n\nAuthorization: requires permission `config:read` (allowed roles: reader, editor, admin).","x-authorization-scope":"config:read","x-rbac-permission":"config:read","x-rbac-roles":["reader","editor","admin"],"tags":["Ai-escalation"],"x-badges":[{"name":"Permission: config:read","position":"after","color":"#13ec80"},{"name":"Roles: reader, editor, admin","position":"after","color":"#13ec80"}]},"put":{"responses":{"200":{"description":"Rule updated","content":{"application/json":{"schema":{"type":"object","properties":{"success":{"type":"boolean"},"data":{"$ref":"#/components/schemas/AiEscalationSafeRule"}}}}}},"404":{"description":"Rule not found","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}}},"operationId":"putApiAi-escalationRulesByRuleUid","parameters":[{"name":"org_uid","in":"query","schema":{"type":"string"},"required":true},{"schema":{"type":"string"},"in":"path","name":"ruleUid","required":true}],"description":"Replace an AI escalation assignment rule\n\nAuthorization: requires permission `config:write` (allowed roles: editor, admin).","requestBody":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/AiEscalationUpdateRuleRequest"}}}},"x-authorization-scope":"config:write","x-rbac-permission":"config:write","x-rbac-roles":["editor","admin"],"tags":["Ai-escalation"],"x-badges":[{"name":"Permission: config:write","position":"after","color":"#13ec80"},{"name":"Roles: editor, admin","position":"after","color":"#13ec80"}]},"delete":{"responses":{"200":{"description":"Rule deleted","content":{"application/json":{"schema":{"$ref":"#/components/schemas/SimpleSuccessResponse"}}}},"404":{"description":"Rule not found","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}}},"operationId":"deleteApiAi-escalationRulesByRuleUid","parameters":[{"name":"org_uid","in":"query","schema":{"type":"string"},"required":true},{"schema":{"type":"string"},"in":"path","name":"ruleUid","required":true}],"description":"Delete an AI escalation assignment rule\n\nAuthorization: requires permission `config:write` (allowed roles: editor, admin).","x-authorization-scope":"config:write","x-rbac-permission":"config:write","x-rbac-roles":["editor","admin"],"tags":["Ai-escalation"],"x-badges":[{"name":"Permission: config:write","position":"after","color":"#13ec80"},{"name":"Roles: editor, admin","position":"after","color":"#13ec80"}]}},"/api/ai-escalation/assignments":{"get":{"responses":{"200":{"description":"Successful response","content":{"application/json":{"schema":{"type":"object","properties":{"success":{"type":"boolean"},"data":{"type":"array","items":{"$ref":"#/components/schemas/AiEscalationAssignment"}},"count":{"type":"number"}}}}}}},"operationId":"getApiAi-escalationAssignments","parameters":[{"name":"org_uid","in":"query","schema":{"type":"string"},"required":true},{"name":"limit","in":"query","schema":{"type":"string","pattern":"^\\d+$"}}],"description":"List AI escalation assignments for the current organization\n\nAuthorization: requires permission `config:read` (allowed roles: reader, editor, admin).","x-authorization-scope":"config:read","x-rbac-permission":"config:read","x-rbac-roles":["reader","editor","admin"],"tags":["Ai-escalation"],"x-badges":[{"name":"Permission: config:read","position":"after","color":"#13ec80"},{"name":"Roles: reader, editor, admin","position":"after","color":"#13ec80"}]}},"/api/ai-escalation/assignments/{assignmentUid}":{"get":{"responses":{"200":{"description":"Successful response","content":{"application/json":{"schema":{"type":"object","properties":{"success":{"type":"boolean"},"data":{"$ref":"#/components/schemas/AiEscalationAssignment"}}}}}},"404":{"description":"Assignment not found","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}}},"operationId":"getApiAi-escalationAssignmentsByAssignmentUid","parameters":[{"name":"org_uid","in":"query","schema":{"type":"string"},"required":true},{"schema":{"type":"string"},"in":"path","name":"assignmentUid","required":true}],"description":"Get one AI escalation assignment with rendered response details\n\nAuthorization: requires permission `config:read` (allowed roles: reader, editor, admin).","x-authorization-scope":"config:read","x-rbac-permission":"config:read","x-rbac-roles":["reader","editor","admin"],"tags":["Ai-escalation"],"x-badges":[{"name":"Permission: config:read","position":"after","color":"#13ec80"},{"name":"Roles: reader, editor, admin","position":"after","color":"#13ec80"}]},"delete":{"responses":{"200":{"description":"Assignment deleted","content":{"application/json":{"schema":{"$ref":"#/components/schemas/SimpleSuccessResponse"}}}},"404":{"description":"Assignment not found","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}}},"operationId":"deleteApiAi-escalationAssignmentsByAssignmentUid","parameters":[{"name":"org_uid","in":"query","schema":{"type":"string"},"required":true},{"schema":{"type":"string"},"in":"path","name":"assignmentUid","required":true}],"description":"Delete one AI escalation assignment and its generated content for the current organization\n\nAuthorization: requires permission `config:write` (allowed roles: editor, admin).","x-authorization-scope":"config:write","x-rbac-permission":"config:write","x-rbac-roles":["editor","admin"],"tags":["Ai-escalation"],"x-badges":[{"name":"Permission: config:write","position":"after","color":"#13ec80"},{"name":"Roles: editor, admin","position":"after","color":"#13ec80"}]}},"/api/ai-escalation/assignments/{assignmentUid}/abort":{"post":{"responses":{"200":{"description":"Assignment aborted or already terminal","content":{"application/json":{"schema":{"type":"object","properties":{"success":{"type":"boolean"},"data":{"$ref":"#/components/schemas/AiEscalationAssignment"}}}}}},"404":{"description":"Assignment not found","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}}},"operationId":"postApiAi-escalationAssignmentsByAssignmentUidAbort","parameters":[{"name":"org_uid","in":"query","schema":{"type":"string"},"required":true},{"schema":{"type":"string"},"in":"path","name":"assignmentUid","required":true}],"description":"Abort one active AI escalation assignment for the current organization\n\nAuthorization: requires permission `config:write` (allowed roles: editor, admin).","x-authorization-scope":"config:write","x-rbac-permission":"config:write","x-rbac-roles":["editor","admin"],"tags":["Ai-escalation"],"x-badges":[{"name":"Permission: config:write","position":"after","color":"#13ec80"},{"name":"Roles: editor, admin","position":"after","color":"#13ec80"}]}},"/api/ai-escalation/assignments/abort-all":{"post":{"responses":{"200":{"description":"Active assignments aborted","content":{"application/json":{"schema":{"type":"object","properties":{"success":{"type":"boolean"},"data":{"type":"array","items":{"$ref":"#/components/schemas/AiEscalationAssignment"}},"count":{"type":"number"}}}}}}},"operationId":"postApiAi-escalationAssignmentsAbort-all","parameters":[{"name":"org_uid","in":"query","schema":{"type":"string"},"required":true}],"description":"Abort all active AI escalation assignments for the current organization\n\nAuthorization: requires permission `config:write` (allowed roles: editor, admin).","x-authorization-scope":"config:write","x-rbac-permission":"config:write","x-rbac-roles":["editor","admin"],"tags":["Ai-escalation"],"x-badges":[{"name":"Permission: config:write","position":"after","color":"#13ec80"},{"name":"Roles: editor, admin","position":"after","color":"#13ec80"}]}},"/api/escalation/chains":{"get":{"responses":{"200":{"description":"Successful response","content":{"application/json":{"schema":{"type":"object","properties":{"success":{"type":"boolean"},"data":{"type":"array","items":{"$ref":"#/components/schemas/EscalationChain"}},"count":{"type":"number"}}}}}}},"operationId":"getApiEscalationChains","parameters":[{"name":"org_uid","in":"query","schema":{"type":"string"},"required":true}],"description":"List escalation chains for the current organization\n\nAuthorization: requires permission `config:read` (allowed roles: reader, editor, admin).","x-authorization-scope":"config:read","x-rbac-permission":"config:read","x-rbac-roles":["reader","editor","admin"],"tags":["Escalation"],"x-badges":[{"name":"Permission: config:read","position":"after","color":"#13ec80"},{"name":"Roles: reader, editor, admin","position":"after","color":"#13ec80"}]},"post":{"responses":{"200":{"description":"Escalation chain created","content":{"application/json":{"schema":{"type":"object","properties":{"success":{"type":"boolean"},"data":{"$ref":"#/components/schemas/EscalationChain"}}}}}},"400":{"description":"Invalid request body","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}}},"operationId":"postApiEscalationChains","parameters":[{"name":"org_uid","in":"query","schema":{"type":"string"},"required":true}],"description":"Create a new escalation chain\n\nAuthorization: requires permission `config:write` (allowed roles: editor, admin).","requestBody":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/CreateEscalationChainRequest"}}}},"x-authorization-scope":"config:write","x-rbac-permission":"config:write","x-rbac-roles":["editor","admin"],"tags":["Escalation"],"x-badges":[{"name":"Permission: config:write","position":"after","color":"#13ec80"},{"name":"Roles: editor, admin","position":"after","color":"#13ec80"}]}},"/api/escalation/chains/{chainUid}":{"get":{"responses":{"200":{"description":"Successful response","content":{"application/json":{"schema":{"type":"object","properties":{"success":{"type":"boolean"},"data":{"$ref":"#/components/schemas/EscalationChain"}}}}}},"404":{"description":"Escalation chain not found","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}}},"operationId":"getApiEscalationChainsByChainUid","parameters":[{"name":"org_uid","in":"query","schema":{"type":"string"},"required":true},{"schema":{"type":"string"},"in":"path","name":"chainUid","required":true}],"description":"Get a single escalation chain by UID\n\nAuthorization: requires permission `config:read` (allowed roles: reader, editor, admin).","x-authorization-scope":"config:read","x-rbac-permission":"config:read","x-rbac-roles":["reader","editor","admin"],"tags":["Escalation"],"x-badges":[{"name":"Permission: config:read","position":"after","color":"#13ec80"},{"name":"Roles: reader, editor, admin","position":"after","color":"#13ec80"}]},"put":{"responses":{"200":{"description":"Escalation chain updated","content":{"application/json":{"schema":{"type":"object","properties":{"success":{"type":"boolean"},"data":{"$ref":"#/components/schemas/EscalationChain"}}}}}},"400":{"description":"Invalid request body","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}},"404":{"description":"Escalation chain not found","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}}},"operationId":"putApiEscalationChainsByChainUid","parameters":[{"name":"org_uid","in":"query","schema":{"type":"string"},"required":true},{"schema":{"type":"string"},"in":"path","name":"chainUid","required":true}],"description":"Update an escalation chain by UID\n\nAuthorization: requires permission `config:write` (allowed roles: editor, admin).","requestBody":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/UpdateEscalationChainRequest"}}}},"x-authorization-scope":"config:write","x-rbac-permission":"config:write","x-rbac-roles":["editor","admin"],"tags":["Escalation"],"x-badges":[{"name":"Permission: config:write","position":"after","color":"#13ec80"},{"name":"Roles: editor, admin","position":"after","color":"#13ec80"}]},"delete":{"responses":{"200":{"description":"Escalation chain deleted","content":{"application/json":{"schema":{"$ref":"#/components/schemas/SimpleSuccessResponse"}}}},"404":{"description":"Escalation chain not found","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}},"409":{"description":"Escalation chain cannot be deleted due to references","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}}},"operationId":"deleteApiEscalationChainsByChainUid","parameters":[{"name":"org_uid","in":"query","schema":{"type":"string"},"required":true},{"schema":{"type":"string"},"in":"path","name":"chainUid","required":true}],"description":"Delete an escalation chain by UID\n\nAuthorization: requires permission `config:write` (allowed roles: editor, admin).","x-authorization-scope":"config:write","x-rbac-permission":"config:write","x-rbac-roles":["editor","admin"],"tags":["Escalation"],"x-badges":[{"name":"Permission: config:write","position":"after","color":"#13ec80"},{"name":"Roles: editor, admin","position":"after","color":"#13ec80"}]}},"/api/escalation/chains/{chainUid}/delete-impact":{"get":{"responses":{"200":{"description":"Escalation chain delete impact","content":{"application/json":{"schema":{"type":"object","properties":{"success":{"type":"boolean"},"data":{"$ref":"#/components/schemas/EscalationChainDeleteImpact"}}}}}},"404":{"description":"Escalation chain not found","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}}},"operationId":"getApiEscalationChainsByChainUidDelete-impact","parameters":[{"name":"org_uid","in":"query","schema":{"type":"string"},"required":true},{"schema":{"type":"string"},"in":"path","name":"chainUid","required":true}],"description":"Get deletion impact details for an escalation chain\n\nAuthorization: requires permission `config:read` (allowed roles: reader, editor, admin).","x-authorization-scope":"config:read","x-rbac-permission":"config:read","x-rbac-roles":["reader","editor","admin"],"tags":["Escalation"],"x-badges":[{"name":"Permission: config:read","position":"after","color":"#13ec80"},{"name":"Roles: reader, editor, admin","position":"after","color":"#13ec80"}]}},"/api/escalation/lines":{"get":{"responses":{"200":{"description":"Successful response","content":{"application/json":{"schema":{"type":"object","properties":{"success":{"type":"boolean"},"data":{"type":"array","items":{"$ref":"#/components/schemas/EscalationLine"}},"count":{"type":"number"}}}}}}},"operationId":"getApiEscalationLines","parameters":[{"name":"org_uid","in":"query","schema":{"type":"string"},"required":true}],"description":"List escalation lines for a chain or all lines for an organization\n\nAuthorization: requires permission `config:read` (allowed roles: reader, editor, admin).","x-authorization-scope":"config:read","x-rbac-permission":"config:read","x-rbac-roles":["reader","editor","admin"],"tags":["Escalation"],"x-badges":[{"name":"Permission: config:read","position":"after","color":"#13ec80"},{"name":"Roles: reader, editor, admin","position":"after","color":"#13ec80"}]},"post":{"responses":{"200":{"description":"Escalation line created","content":{"application/json":{"schema":{"type":"object","properties":{"success":{"type":"boolean"},"data":{"$ref":"#/components/schemas/EscalationLine"}}}}}},"400":{"description":"Invalid request body","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}}},"operationId":"postApiEscalationLines","parameters":[{"name":"org_uid","in":"query","schema":{"type":"string"},"required":true}],"description":"Create a new escalation line\n\nAuthorization: requires permission `config:write` (allowed roles: editor, admin).","requestBody":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/CreateEscalationLineRequest"}}}},"x-authorization-scope":"config:write","x-rbac-permission":"config:write","x-rbac-roles":["editor","admin"],"tags":["Escalation"],"x-badges":[{"name":"Permission: config:write","position":"after","color":"#13ec80"},{"name":"Roles: editor, admin","position":"after","color":"#13ec80"}]}},"/api/escalation/lines/{lineUid}":{"get":{"responses":{"200":{"description":"Successful response","content":{"application/json":{"schema":{"type":"object","properties":{"success":{"type":"boolean"},"data":{"$ref":"#/components/schemas/EscalationLine"}}}}}},"404":{"description":"Escalation line not found","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}}},"operationId":"getApiEscalationLinesByLineUid","parameters":[{"name":"org_uid","in":"query","schema":{"type":"string"},"required":true},{"schema":{"type":"string"},"in":"path","name":"lineUid","required":true}],"description":"Get a single escalation line by UID\n\nAuthorization: requires permission `config:read` (allowed roles: reader, editor, admin).","x-authorization-scope":"config:read","x-rbac-permission":"config:read","x-rbac-roles":["reader","editor","admin"],"tags":["Escalation"],"x-badges":[{"name":"Permission: config:read","position":"after","color":"#13ec80"},{"name":"Roles: reader, editor, admin","position":"after","color":"#13ec80"}]},"put":{"responses":{"200":{"description":"Escalation line updated","content":{"application/json":{"schema":{"type":"object","properties":{"success":{"type":"boolean"},"data":{"$ref":"#/components/schemas/EscalationLine"}}}}}},"400":{"description":"Invalid request body","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}},"404":{"description":"Escalation line not found","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}}},"operationId":"putApiEscalationLinesByLineUid","parameters":[{"name":"org_uid","in":"query","schema":{"type":"string"},"required":true},{"schema":{"type":"string"},"in":"path","name":"lineUid","required":true}],"description":"Update an escalation line by UID\n\nAuthorization: requires permission `config:write` (allowed roles: editor, admin).","requestBody":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/UpdateEscalationLineRequest"}}}},"x-authorization-scope":"config:write","x-rbac-permission":"config:write","x-rbac-roles":["editor","admin"],"tags":["Escalation"],"x-badges":[{"name":"Permission: config:write","position":"after","color":"#13ec80"},{"name":"Roles: editor, admin","position":"after","color":"#13ec80"}]},"delete":{"responses":{"200":{"description":"Escalation line deleted","content":{"application/json":{"schema":{"$ref":"#/components/schemas/SimpleSuccessResponse"}}}},"404":{"description":"Escalation line not found","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}}},"operationId":"deleteApiEscalationLinesByLineUid","parameters":[{"name":"org_uid","in":"query","schema":{"type":"string"},"required":true},{"schema":{"type":"string"},"in":"path","name":"lineUid","required":true}],"description":"Delete an escalation line by UID\n\nAuthorization: requires permission `config:write` (allowed roles: editor, admin).","x-authorization-scope":"config:write","x-rbac-permission":"config:write","x-rbac-roles":["editor","admin"],"tags":["Escalation"],"x-badges":[{"name":"Permission: config:write","position":"after","color":"#13ec80"},{"name":"Roles: editor, admin","position":"after","color":"#13ec80"}]}},"/api/escalation/lines/{lineUid}/delete-impact":{"get":{"responses":{"200":{"description":"Escalation line delete impact","content":{"application/json":{"schema":{"type":"object","properties":{"success":{"type":"boolean"},"data":{"$ref":"#/components/schemas/EscalationLineDeleteImpact"}}}}}},"404":{"description":"Escalation line not found","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}}},"operationId":"getApiEscalationLinesByLineUidDelete-impact","parameters":[{"name":"org_uid","in":"query","schema":{"type":"string"},"required":true},{"schema":{"type":"string"},"in":"path","name":"lineUid","required":true}],"description":"Get deletion impact details for an escalation line\n\nAuthorization: requires permission `config:read` (allowed roles: reader, editor, admin).","x-authorization-scope":"config:read","x-rbac-permission":"config:read","x-rbac-roles":["reader","editor","admin"],"tags":["Escalation"],"x-badges":[{"name":"Permission: config:read","position":"after","color":"#13ec80"},{"name":"Roles: reader, editor, admin","position":"after","color":"#13ec80"}]}},"/api/escalation/line-members":{"get":{"responses":{"200":{"description":"Successful response","content":{"application/json":{"schema":{"type":"object","properties":{"success":{"type":"boolean"},"data":{"type":"array","items":{"$ref":"#/components/schemas/EscalationLineMember"}},"count":{"type":"number"}}}}}},"400":{"description":"line_uid parameter is required","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}}},"operationId":"getApiEscalationLine-members","parameters":[{"name":"org_uid","in":"query","schema":{"type":"string"},"required":true}],"description":"List escalation line members for a line\n\nAuthorization: requires permission `config:read` (allowed roles: reader, editor, admin).","x-authorization-scope":"config:read","x-rbac-permission":"config:read","x-rbac-roles":["reader","editor","admin"],"tags":["Escalation"],"x-badges":[{"name":"Permission: config:read","position":"after","color":"#13ec80"},{"name":"Roles: reader, editor, admin","position":"after","color":"#13ec80"}]},"post":{"responses":{"200":{"description":"Escalation line member created","content":{"application/json":{"schema":{"type":"object","properties":{"success":{"type":"boolean"},"data":{"$ref":"#/components/schemas/EscalationLineMember"}}}}}},"400":{"description":"Invalid request body","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}}},"operationId":"postApiEscalationLine-members","parameters":[{"name":"org_uid","in":"query","schema":{"type":"string"},"required":true}],"description":"Create a new escalation line member\n\nAuthorization: requires permission `config:write` (allowed roles: editor, admin).","requestBody":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/CreateEscalationLineMemberRequest"}}}},"x-authorization-scope":"config:write","x-rbac-permission":"config:write","x-rbac-roles":["editor","admin"],"tags":["Escalation"],"x-badges":[{"name":"Permission: config:write","position":"after","color":"#13ec80"},{"name":"Roles: editor, admin","position":"after","color":"#13ec80"}]}},"/api/escalation/line-members/{memberUid}":{"get":{"responses":{"200":{"description":"Successful response","content":{"application/json":{"schema":{"type":"object","properties":{"success":{"type":"boolean"},"data":{"$ref":"#/components/schemas/EscalationLineMember"}}}}}},"404":{"description":"Escalation line member not found","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}}},"operationId":"getApiEscalationLine-membersByMemberUid","parameters":[{"name":"org_uid","in":"query","schema":{"type":"string"},"required":true},{"schema":{"type":"string"},"in":"path","name":"memberUid","required":true}],"description":"Get a single escalation line member by UID\n\nAuthorization: requires permission `config:read` (allowed roles: reader, editor, admin).","x-authorization-scope":"config:read","x-rbac-permission":"config:read","x-rbac-roles":["reader","editor","admin"],"tags":["Escalation"],"x-badges":[{"name":"Permission: config:read","position":"after","color":"#13ec80"},{"name":"Roles: reader, editor, admin","position":"after","color":"#13ec80"}]},"put":{"responses":{"200":{"description":"Escalation line member updated","content":{"application/json":{"schema":{"type":"object","properties":{"success":{"type":"boolean"},"data":{"$ref":"#/components/schemas/EscalationLineMember"}}}}}},"400":{"description":"Invalid request body","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}},"404":{"description":"Escalation line member not found","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}}},"operationId":"putApiEscalationLine-membersByMemberUid","parameters":[{"name":"org_uid","in":"query","schema":{"type":"string"},"required":true},{"schema":{"type":"string"},"in":"path","name":"memberUid","required":true}],"description":"Update an escalation line member by UID\n\nAuthorization: requires permission `config:write` (allowed roles: editor, admin).","requestBody":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/UpdateEscalationLineMemberRequest"}}}},"x-authorization-scope":"config:write","x-rbac-permission":"config:write","x-rbac-roles":["editor","admin"],"tags":["Escalation"],"x-badges":[{"name":"Permission: config:write","position":"after","color":"#13ec80"},{"name":"Roles: editor, admin","position":"after","color":"#13ec80"}]},"delete":{"responses":{"200":{"description":"Escalation line member deleted","content":{"application/json":{"schema":{"$ref":"#/components/schemas/SimpleSuccessResponse"}}}},"404":{"description":"Escalation line member not found","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}}},"operationId":"deleteApiEscalationLine-membersByMemberUid","parameters":[{"name":"org_uid","in":"query","schema":{"type":"string"},"required":true},{"schema":{"type":"string"},"in":"path","name":"memberUid","required":true}],"description":"Delete an escalation line member by UID\n\nAuthorization: requires permission `config:write` (allowed roles: editor, admin).","x-authorization-scope":"config:write","x-rbac-permission":"config:write","x-rbac-roles":["editor","admin"],"tags":["Escalation"],"x-badges":[{"name":"Permission: config:write","position":"after","color":"#13ec80"},{"name":"Roles: editor, admin","position":"after","color":"#13ec80"}]}},"/api/escalation/flow":{"post":{"responses":{"200":{"description":"Full escalation flow resolved","content":{"application/json":{"schema":{"$ref":"#/components/schemas/UnpackedResponders"}}}},"400":{"description":"Invalid request body","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}}},"operationId":"postApiEscalationFlow","parameters":[{"name":"org_uid","in":"query","schema":{"type":"string"},"required":true}],"description":"Resolve full escalation flow for given entities\n\nAuthorization: requires permission `operational:action` (allowed roles: reader, editor, admin).","requestBody":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/EscalationFlowRequest"}}}},"x-authorization-scope":"operational:action","x-rbac-permission":"operational:action","x-rbac-roles":["reader","editor","admin"],"tags":["Escalation"],"x-badges":[{"name":"Permission: operational:action","position":"after","color":"#13ec80"},{"name":"Roles: reader, editor, admin","position":"after","color":"#13ec80"}]}},"/api/escalation/schedules":{"get":{"responses":{"200":{"description":"Successful response","content":{"application/json":{"schema":{"type":"object","properties":{"success":{"type":"boolean"},"data":{"type":"array","items":{"$ref":"#/components/schemas/EscalationSchedule"}},"count":{"type":"number"}}}}}}},"operationId":"getApiEscalationSchedules","parameters":[{"name":"org_uid","in":"query","schema":{"type":"string"},"required":true}],"description":"List escalation schedules for the current organization\n\nAuthorization: requires permission `config:read` (allowed roles: reader, editor, admin).","x-authorization-scope":"config:read","x-rbac-permission":"config:read","x-rbac-roles":["reader","editor","admin"],"tags":["Escalation"],"x-badges":[{"name":"Permission: config:read","position":"after","color":"#13ec80"},{"name":"Roles: reader, editor, admin","position":"after","color":"#13ec80"}]},"post":{"responses":{"200":{"description":"Escalation schedule created","content":{"application/json":{"schema":{"type":"object","properties":{"success":{"type":"boolean"},"data":{"$ref":"#/components/schemas/EscalationSchedule"}}}}}},"400":{"description":"Invalid request body","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}}},"operationId":"postApiEscalationSchedules","parameters":[{"name":"org_uid","in":"query","schema":{"type":"string"},"required":true}],"description":"Create a new escalation schedule\n\nAuthorization: requires permission `config:write` (allowed roles: editor, admin).","requestBody":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/CreateEscalationScheduleRequest"}}}},"x-authorization-scope":"config:write","x-rbac-permission":"config:write","x-rbac-roles":["editor","admin"],"tags":["Escalation"],"x-badges":[{"name":"Permission: config:write","position":"after","color":"#13ec80"},{"name":"Roles: editor, admin","position":"after","color":"#13ec80"}]}},"/api/escalation/schedules/{scheduleUid}":{"get":{"responses":{"200":{"description":"Successful response","content":{"application/json":{"schema":{"type":"object","properties":{"success":{"type":"boolean"},"data":{"$ref":"#/components/schemas/EscalationSchedule"}}}}}},"404":{"description":"Escalation schedule not found","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}}},"operationId":"getApiEscalationSchedulesByScheduleUid","parameters":[{"name":"org_uid","in":"query","schema":{"type":"string"},"required":true},{"schema":{"type":"string"},"in":"path","name":"scheduleUid","required":true}],"description":"Get a single escalation schedule by UID\n\nAuthorization: requires permission `config:read` (allowed roles: reader, editor, admin).","x-authorization-scope":"config:read","x-rbac-permission":"config:read","x-rbac-roles":["reader","editor","admin"],"tags":["Escalation"],"x-badges":[{"name":"Permission: config:read","position":"after","color":"#13ec80"},{"name":"Roles: reader, editor, admin","position":"after","color":"#13ec80"}]},"put":{"responses":{"200":{"description":"Escalation schedule updated","content":{"application/json":{"schema":{"type":"object","properties":{"success":{"type":"boolean"},"data":{"$ref":"#/components/schemas/EscalationSchedule"}}}}}},"400":{"description":"Invalid request body","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}},"404":{"description":"Escalation schedule not found","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}}},"operationId":"putApiEscalationSchedulesByScheduleUid","parameters":[{"name":"org_uid","in":"query","schema":{"type":"string"},"required":true},{"schema":{"type":"string"},"in":"path","name":"scheduleUid","required":true}],"description":"Update an escalation schedule by UID\n\nAuthorization: requires permission `config:write` (allowed roles: editor, admin).","requestBody":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/UpdateEscalationScheduleRequest"}}}},"x-authorization-scope":"config:write","x-rbac-permission":"config:write","x-rbac-roles":["editor","admin"],"tags":["Escalation"],"x-badges":[{"name":"Permission: config:write","position":"after","color":"#13ec80"},{"name":"Roles: editor, admin","position":"after","color":"#13ec80"}]},"delete":{"responses":{"200":{"description":"Escalation schedule deleted","content":{"application/json":{"schema":{"$ref":"#/components/schemas/SimpleSuccessResponse"}}}},"404":{"description":"Escalation schedule not found","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}}},"operationId":"deleteApiEscalationSchedulesByScheduleUid","parameters":[{"name":"org_uid","in":"query","schema":{"type":"string"},"required":true},{"schema":{"type":"string"},"in":"path","name":"scheduleUid","required":true}],"description":"Delete an escalation schedule by UID\n\nAuthorization: requires permission `config:write` (allowed roles: editor, admin).","x-authorization-scope":"config:write","x-rbac-permission":"config:write","x-rbac-roles":["editor","admin"],"tags":["Escalation"],"x-badges":[{"name":"Permission: config:write","position":"after","color":"#13ec80"},{"name":"Roles: editor, admin","position":"after","color":"#13ec80"}]}},"/api/escalation/schedules/{scheduleUid}/overrides":{"post":{"responses":{"200":{"description":"Escalation schedule override created","content":{"application/json":{"schema":{"type":"object","properties":{"success":{"type":"boolean"},"data":{"$ref":"#/components/schemas/EscalationScheduleOverride"}}}}}},"400":{"description":"Invalid request body","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}}},"operationId":"postApiEscalationSchedulesByScheduleUidOverrides","parameters":[{"name":"org_uid","in":"query","schema":{"type":"string"},"required":true},{"schema":{"type":"string"},"in":"path","name":"scheduleUid","required":true}],"description":"Create a new escalation schedule override\n\nAuthorization: requires permission `operational:action` (allowed roles: reader, editor, admin).","requestBody":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/CreateEscalationScheduleOverrideRequest"}}}},"x-authorization-scope":"operational:action","x-rbac-permission":"operational:action","x-rbac-roles":["reader","editor","admin"],"tags":["Escalation"],"x-badges":[{"name":"Permission: operational:action","position":"after","color":"#13ec80"},{"name":"Roles: reader, editor, admin","position":"after","color":"#13ec80"}]}},"/api/escalation/schedules/{scheduleUid}/overrides/{overrideUid}":{"delete":{"responses":{"200":{"description":"Escalation schedule override deleted","content":{"application/json":{"schema":{"$ref":"#/components/schemas/SimpleSuccessResponse"}}}},"404":{"description":"Escalation schedule override not found","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}}},"operationId":"deleteApiEscalationSchedulesByScheduleUidOverridesByOverrideUid","parameters":[{"name":"org_uid","in":"query","schema":{"type":"string"},"required":true},{"schema":{"type":"string"},"in":"path","name":"scheduleUid","required":true},{"schema":{"type":"string"},"in":"path","name":"overrideUid","required":true}],"description":"Delete an escalation schedule override by UID\n\nAuthorization: requires permission `operational:action` (allowed roles: reader, editor, admin).","x-authorization-scope":"operational:action","x-rbac-permission":"operational:action","x-rbac-roles":["reader","editor","admin"],"tags":["Escalation"],"x-badges":[{"name":"Permission: operational:action","position":"after","color":"#13ec80"},{"name":"Roles: reader, editor, admin","position":"after","color":"#13ec80"}]}},"/api/proxy/{schemaTokenCandidate}":{"post":{"responses":{"200":{"description":"Alert proxied successfully","content":{"application/json":{"schema":{"$ref":"#/components/schemas/SimpleSuccessResponse"}}}},"400":{"description":"Invalid request or missing parameters","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}},"401":{"description":"Invalid or disabled schema token","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}},"500":{"description":"Internal server error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}}},"operationId":"postApiProxyBySchemaTokenCandidate","parameters":[{"name":"org_uid","in":"query","schema":{"type":"string"},"required":true},{"name":"forwardTo","in":"query","schema":{"type":"string"}},{"name":"skipCreation","in":"query","schema":{"type":"string"}},{"name":"lifecycleDispatch","in":"query","schema":{"type":"string"}},{"schema":{"type":"string"},"in":"path","name":"schemaTokenCandidate","required":true}],"description":"Proxies an alert to its destination with routing rules applied\n\nAuthorization: requires a valid enabled schema token in the URL path.","requestBody":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/IncomingAlertRequest"}}}},"x-authorization-type":"schema-token","tags":["Proxy"],"x-badges":[{"name":"Auth: schema-token","position":"after","color":"#13ec80"}]}},"/api/proxy/alert-instances/{alertInstanceUid}/history":{"get":{"responses":{"200":{"description":"Alert instance history retrieved successfully","content":{"application/json":{"schema":{"$ref":"#/components/schemas/AlertInstanceHistoryResponse"}}}},"404":{"description":"Alert instance not found","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}},"500":{"description":"Internal server error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}}},"operationId":"getApiProxyAlert-instancesByAlertInstanceUidHistory","parameters":[{"name":"org_uid","in":"query","schema":{"type":"string"},"required":true},{"name":"limit","in":"query","schema":{"type":"string","pattern":"^\\d+$"}},{"name":"cursor","in":"query","schema":{"type":"string"}},{"name":"order_by","in":"query","schema":{"type":"string","enum":["newest","oldest"]}},{"schema":{"type":"string"},"in":"path","name":"alertInstanceUid","required":true}],"description":"Retrieves audit history events for a single alert instance.\n\nAuthorization: requires permission `config:read` (allowed roles: reader, editor, admin).","x-authorization-scope":"config:read","x-rbac-permission":"config:read","x-rbac-roles":["reader","editor","admin"],"tags":["Proxy"],"x-badges":[{"name":"Permission: config:read","position":"after","color":"#13ec80"},{"name":"Roles: reader, editor, admin","position":"after","color":"#13ec80"}]}},"/api/proxy/alert-instances/{alertInstanceUid}":{"get":{"responses":{"200":{"description":"Alert instance retrieved successfully","content":{"application/json":{"schema":{"$ref":"#/components/schemas/EnhancedAlertInstance"}}}},"404":{"description":"Alert instance not found","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}},"500":{"description":"Internal server error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}}},"operationId":"getApiProxyAlert-instancesByAlertInstanceUid","parameters":[{"name":"org_uid","in":"query","schema":{"type":"string"},"required":true},{"schema":{"type":"string"},"in":"path","name":"alertInstanceUid","required":true}],"description":"Retrieves a single alert instance by UID with complete escalation data\n\nAuthorization: requires permission `config:read` (allowed roles: reader, editor, admin).","x-authorization-scope":"config:read","x-rbac-permission":"config:read","x-rbac-roles":["reader","editor","admin"],"tags":["Proxy"],"x-badges":[{"name":"Permission: config:read","position":"after","color":"#13ec80"},{"name":"Roles: reader, editor, admin","position":"after","color":"#13ec80"}]}},"/api/proxy/alert-instances":{"get":{"responses":{"200":{"description":"Alert instances retrieved successfully","content":{"application/json":{"schema":{"$ref":"#/components/schemas/EnhancedAlertInstancesResponse"}}}},"500":{"description":"Internal server error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}}},"operationId":"getApiProxyAlert-instances","parameters":[{"name":"org_uid","in":"query","schema":{"type":"string"},"required":true},{"name":"limit","in":"query","schema":{"type":"string","pattern":"^\\d+$","description":"Pagination limit as string"}},{"name":"offset","in":"query","schema":{"type":"string","pattern":"^\\d+$","description":"Pagination offset as string"}},{"name":"schema_uid","in":"query","schema":{"type":"string"}},{"name":"status","in":"query","schema":{"type":"string","enum":["firing","acknowledged","resolved"]}},{"name":"processing_status","in":"query","schema":{"type":"string","enum":["pending","orphan","completed","failed"]}},{"name":"start_date","in":"query","schema":{"type":"string"}},{"name":"end_date","in":"query","schema":{"type":"string"}},{"name":"order_by","in":"query","schema":{"type":"string","enum":["newest","oldest"]}},{"name":"q","in":"query","schema":{"type":"string"}}],"description":"Retrieves alert instances (alert history) for the organization with escalation data\n\nAuthorization: requires permission `config:read` (allowed roles: reader, editor, admin).","x-authorization-scope":"config:read","x-rbac-permission":"config:read","x-rbac-roles":["reader","editor","admin"],"tags":["Proxy"],"x-badges":[{"name":"Permission: config:read","position":"after","color":"#13ec80"},{"name":"Roles: reader, editor, admin","position":"after","color":"#13ec80"}]}},"/api/teams":{"get":{"responses":{"200":{"description":"Successful response","content":{"application/json":{"schema":{"type":"object","properties":{"success":{"type":"boolean"},"data":{"type":"array","items":{"$ref":"#/components/schemas/Team"}},"count":{"type":"number"}}}}}}},"operationId":"getApiTeams","parameters":[{"name":"org_uid","in":"query","schema":{"type":"string"},"required":true}],"description":"List all teams for the current organization with their memberships\n\nAuthorization: requires permission `config:read` (allowed roles: reader, editor, admin).","x-authorization-scope":"config:read","x-rbac-permission":"config:read","x-rbac-roles":["reader","editor","admin"],"tags":["Teams"],"x-badges":[{"name":"Permission: config:read","position":"after","color":"#13ec80"},{"name":"Roles: reader, editor, admin","position":"after","color":"#13ec80"}]},"post":{"responses":{"200":{"description":"Successful response","content":{"application/json":{"schema":{"type":"object","properties":{"success":{"type":"boolean"},"data":{"$ref":"#/components/schemas/Team"}}}}}}},"operationId":"postApiTeams","parameters":[{"name":"org_uid","in":"query","schema":{"type":"string"},"required":true}],"description":"Create a local team when team sync is disabled for the organization\n\nAuthorization: requires permission `config:write` (allowed roles: admin).","x-authorization-scope":"config:write","x-rbac-permission":"config:write","x-rbac-roles":["admin"],"tags":["Teams"],"x-badges":[{"name":"Permission: config:write","position":"after","color":"#13ec80"},{"name":"Roles: admin","position":"after","color":"#13ec80"}]}},"/api/teams/{uid}":{"get":{"responses":{"200":{"description":"Successful response","content":{"application/json":{"schema":{"type":"object","properties":{"success":{"type":"boolean"},"data":{"$ref":"#/components/schemas/Team"}}}}}},"404":{"description":"Team not found","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}}},"operationId":"getApiTeamsByUid","parameters":[{"name":"org_uid","in":"query","schema":{"type":"string"},"required":true},{"schema":{"type":"string"},"in":"path","name":"uid","required":true}],"description":"Get a single team by UID with its memberships\n\nAuthorization: requires permission `config:read` (allowed roles: reader, editor, admin).","x-authorization-scope":"config:read","x-rbac-permission":"config:read","x-rbac-roles":["reader","editor","admin"],"tags":["Teams"],"x-badges":[{"name":"Permission: config:read","position":"after","color":"#13ec80"},{"name":"Roles: reader, editor, admin","position":"after","color":"#13ec80"}]},"put":{"responses":{"200":{"description":"Successful response","content":{"application/json":{"schema":{"type":"object","properties":{"success":{"type":"boolean"},"data":{"$ref":"#/components/schemas/Team"}}}}}}},"operationId":"putApiTeamsByUid","parameters":[{"name":"org_uid","in":"query","schema":{"type":"string"},"required":true},{"schema":{"type":"string"},"in":"path","name":"uid","required":true}],"description":"Replace a local team when team sync is disabled for the organization\n\nAuthorization: requires permission `config:write` (allowed roles: editor, admin).","x-authorization-scope":"config:write","x-rbac-permission":"config:write","x-rbac-roles":["editor","admin"],"tags":["Teams"],"x-badges":[{"name":"Permission: config:write","position":"after","color":"#13ec80"},{"name":"Roles: editor, admin","position":"after","color":"#13ec80"}]}},"/api/users/me/memberships":{"get":{"responses":{"200":{"description":"Successful response","content":{"application/json":{"schema":{"type":"object","properties":{"success":{"type":"boolean"},"data":{"type":"array","items":{"$ref":"#/components/schemas/OrganizationMembershipResponse"}},"count":{"type":"number"}}}}}},"401":{"description":"Unauthorized","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}},"404":{"description":"User not found","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}}},"operationId":"getApiUsersMeMemberships","parameters":[],"description":"Get current user's organization memberships\n\nAuthorization: requires an authenticated SPA access token.","x-authorization-type":"spa-token","tags":["Users"],"x-badges":[{"name":"Auth: spa-token","position":"after","color":"#13ec80"}]}},"/api/users":{"get":{"responses":{"200":{"description":"Successful response","content":{"application/json":{"schema":{"type":"object","properties":{"success":{"type":"boolean"},"data":{"type":"array","items":{"$ref":"#/components/schemas/SafeUser"}},"count":{"type":"number"}}}}}},"400":{"description":"Invalid request or missing org_uid","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}},"401":{"description":"Unauthorized","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}},"404":{"description":"Organization not found","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}}},"operationId":"getApiUsers","parameters":[{"name":"org_uid","in":"query","schema":{"type":"string"},"required":true},{"name":"limit","in":"query","schema":{"type":"string","pattern":"^\\d+$","description":"Pagination limit as string"}},{"name":"offset","in":"query","schema":{"type":"string","pattern":"^\\d+$","description":"Pagination offset as string"}}],"description":"Get users in an organization\n\nAuthorization: requires permission `config:read` (allowed roles: reader, editor, admin).","x-authorization-scope":"config:read","x-rbac-permission":"config:read","x-rbac-roles":["reader","editor","admin"],"tags":["Users"],"x-badges":[{"name":"Permission: config:read","position":"after","color":"#13ec80"},{"name":"Roles: reader, editor, admin","position":"after","color":"#13ec80"}]}},"/api/users/search":{"get":{"responses":{"200":{"description":"Successful response","content":{"application/json":{"schema":{"type":"object","properties":{"success":{"type":"boolean"},"data":{"type":"array","items":{"$ref":"#/components/schemas/SafeUser"}},"count":{"type":"number"}}}}}},"400":{"description":"Invalid request","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}},"401":{"description":"Unauthorized","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}},"404":{"description":"Organization not found","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}}},"operationId":"getApiUsersSearch","parameters":[{"name":"q","in":"query","schema":{"type":"string"},"required":true},{"name":"org_uid","in":"query","schema":{"type":"string","maxLength":36},"required":true}],"description":"Search users in an organization\n\nAuthorization: requires permission `config:read` (allowed roles: reader, editor, admin).","x-authorization-scope":"config:read","x-rbac-permission":"config:read","x-rbac-roles":["reader","editor","admin"],"tags":["Users"],"x-badges":[{"name":"Permission: config:read","position":"after","color":"#13ec80"},{"name":"Roles: reader, editor, admin","position":"after","color":"#13ec80"}]}},"/api/users/{email}":{"get":{"responses":{"200":{"description":"Successful response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/SafeUser"}}}},"400":{"description":"Invalid request","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}},"401":{"description":"Unauthorized","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}},"404":{"description":"User not found in organization","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}}},"operationId":"getApiUsersByEmail","parameters":[{"name":"org_uid","in":"query","schema":{"type":"string"},"required":true},{"schema":{"type":"string"},"in":"path","name":"email","required":true}],"description":"Get user by email in an organization\n\nAuthorization: requires permission `config:read` (allowed roles: reader, editor, admin).","x-authorization-scope":"config:read","x-rbac-permission":"config:read","x-rbac-roles":["reader","editor","admin"],"tags":["Users"],"x-badges":[{"name":"Permission: config:read","position":"after","color":"#13ec80"},{"name":"Roles: reader, editor, admin","position":"after","color":"#13ec80"}]},"put":{"responses":{"200":{"description":"User updated successfully","content":{"application/json":{"schema":{"$ref":"#/components/schemas/SafeUser"}}}},"400":{"description":"Invalid request or missing org_uid","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}},"401":{"description":"Unauthorized","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}},"404":{"description":"User not found in organization","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}}},"operationId":"putApiUsersByEmail","parameters":[{"name":"org_uid","in":"query","schema":{"type":"string"},"required":true},{"schema":{"type":"string"},"in":"path","name":"email","required":true}],"description":"Update user data (1stLine-specific fields like phone_number)\n\nAuthorization: requires permission `config:write` (allowed roles: editor, admin).","requestBody":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/UpdateUserRequest"}}}},"x-authorization-scope":"config:write","x-rbac-permission":"config:write","x-rbac-roles":["editor","admin"],"tags":["Users"],"x-badges":[{"name":"Permission: config:write","position":"after","color":"#13ec80"},{"name":"Roles: editor, admin","position":"after","color":"#13ec80"}]}},"/api/users/{email}/role":{"patch":{"responses":{"200":{"description":"User role updated successfully","content":{"application/json":{"schema":{"$ref":"#/components/schemas/UserRoleUpdateResponse"}}}},"400":{"description":"Invalid request or last-admin protection","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}},"401":{"description":"Unauthorized","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}},"403":{"description":"Forbidden","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}},"404":{"description":"User not found in organization","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}}},"operationId":"patchApiUsersByEmailRole","parameters":[{"name":"org_uid","in":"query","schema":{"type":"string"},"required":true},{"schema":{"type":"string"},"in":"path","name":"email","required":true}],"description":"Update a user's local 1stLine organization role\n\nAuthorization: requires permission `org-users:manage` (allowed roles: admin).","requestBody":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/UpdateUserRoleRequest"}}}},"x-authorization-scope":"org-users:manage","x-rbac-permission":"org-users:manage","x-rbac-roles":["admin"],"tags":["Users"],"x-badges":[{"name":"Permission: org-users:manage","position":"after","color":"#13ec80"},{"name":"Roles: admin","position":"after","color":"#13ec80"}]}},"/api/users/me/phone-verification/send":{"post":{"responses":{"200":{"description":"Verification sent successfully","content":{"application/json":{"schema":{"$ref":"#/components/schemas/SafeUser"}}}},"400":{"description":"Invalid request","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}},"401":{"description":"Unauthorized","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}}},"operationId":"postApiUsersMePhone-verificationSend","parameters":[{"name":"org_uid","in":"query","schema":{"type":"string"},"required":true}],"description":"Send a phone verification SMS for the authenticated user\n\nAuthorization: requires an authenticated SPA access token and active organization membership.","x-authorization-type":"spa-token","tags":["Users"],"x-badges":[{"name":"Auth: spa-token","position":"after","color":"#13ec80"}]}},"/api/users/me/phone-verification/verify":{"post":{"responses":{"200":{"description":"Verified successfully","content":{"application/json":{"schema":{"$ref":"#/components/schemas/SafeUser"}}}},"400":{"description":"Invalid request or code","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}},"401":{"description":"Unauthorized","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}}},"operationId":"postApiUsersMePhone-verificationVerify","parameters":[{"name":"org_uid","in":"query","schema":{"type":"string"},"required":true}],"description":"Verify phone connection for the authenticated user\n\nAuthorization: requires an authenticated SPA access token and active organization membership.","requestBody":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/VerifyPhoneNumberRequest"}}}},"x-authorization-type":"spa-token","tags":["Users"],"x-badges":[{"name":"Auth: spa-token","position":"after","color":"#13ec80"}]}},"/api/api-token":{"get":{"responses":{"200":{"description":"Successful response","content":{"application/json":{"schema":{"type":"object","properties":{"success":{"type":"boolean"},"data":{"type":"array","items":{"$ref":"#/components/schemas/SafeAPITokenWithRole"}},"count":{"type":"number"}}}}}}},"operationId":"getApiApi-token","parameters":[{"name":"org_uid","in":"query","schema":{"type":"string"},"required":true}],"description":"List API tokens for the current organization\n\nAuthorization: requires permission `api-tokens:read` (allowed roles: reader, editor, admin).","x-authorization-scope":"api-tokens:read","x-rbac-permission":"api-tokens:read","x-rbac-roles":["reader","editor","admin"],"tags":["Api-token"],"x-badges":[{"name":"Permission: api-tokens:read","position":"after","color":"#13ec80"},{"name":"Roles: reader, editor, admin","position":"after","color":"#13ec80"}]},"post":{"responses":{"201":{"description":"Token created","content":{"application/json":{"schema":{"type":"object","properties":{"success":{"type":"boolean"},"data":{"$ref":"#/components/schemas/CreateTokenResponseData"}}}}}},"400":{"description":"Invalid request body","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}}},"operationId":"postApiApi-token","parameters":[{"name":"org_uid","in":"query","schema":{"type":"string"},"required":true}],"description":"Create a new API token\n\nAuthorization: requires permission `api-tokens:manage` (allowed roles: admin).","requestBody":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/CreateTokenRequest"}}}},"x-authorization-scope":"api-tokens:manage","x-rbac-permission":"api-tokens:manage","x-rbac-roles":["admin"],"tags":["Api-token"],"x-badges":[{"name":"Permission: api-tokens:manage","position":"after","color":"#13ec80"},{"name":"Roles: admin","position":"after","color":"#13ec80"}]}},"/api/api-token/{tokenUid}":{"get":{"responses":{"200":{"description":"Successful response","content":{"application/json":{"schema":{"type":"object","properties":{"success":{"type":"boolean"},"data":{"$ref":"#/components/schemas/SafeAPITokenWithRole"}}}}}},"404":{"description":"Token not found","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}}},"operationId":"getApiApi-tokenByTokenUid","parameters":[{"name":"org_uid","in":"query","schema":{"type":"string"},"required":true},{"schema":{"type":"string"},"in":"path","name":"tokenUid","required":true}],"description":"Get a single API token by UID\n\nAuthorization: requires permission `api-tokens:read` (allowed roles: reader, editor, admin).","x-authorization-scope":"api-tokens:read","x-rbac-permission":"api-tokens:read","x-rbac-roles":["reader","editor","admin"],"tags":["Api-token"],"x-badges":[{"name":"Permission: api-tokens:read","position":"after","color":"#13ec80"},{"name":"Roles: reader, editor, admin","position":"after","color":"#13ec80"}]},"put":{"responses":{"200":{"description":"Token updated","content":{"application/json":{"schema":{"type":"object","properties":{"success":{"type":"boolean"},"data":{"$ref":"#/components/schemas/SafeAPITokenWithRole"}}}}}},"400":{"description":"Invalid request body","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}},"404":{"description":"Token not found","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}}},"operationId":"putApiApi-tokenByTokenUid","parameters":[{"name":"org_uid","in":"query","schema":{"type":"string"},"required":true},{"schema":{"type":"string"},"in":"path","name":"tokenUid","required":true}],"description":"Update API token metadata\n\nAuthorization: requires permission `api-tokens:manage` (allowed roles: admin).","requestBody":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/UpdateTokenRequest"}}}},"x-authorization-scope":"api-tokens:manage","x-rbac-permission":"api-tokens:manage","x-rbac-roles":["admin"],"tags":["Api-token"],"x-badges":[{"name":"Permission: api-tokens:manage","position":"after","color":"#13ec80"},{"name":"Roles: admin","position":"after","color":"#13ec80"}]},"delete":{"responses":{"200":{"description":"Token deleted","content":{"application/json":{"schema":{"$ref":"#/components/schemas/SimpleSuccessResponse"}}}},"404":{"description":"Token not found","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}}},"operationId":"deleteApiApi-tokenByTokenUid","parameters":[{"name":"org_uid","in":"query","schema":{"type":"string"},"required":true},{"schema":{"type":"string"},"in":"path","name":"tokenUid","required":true}],"description":"Delete an API token by UID\n\nAuthorization: requires permission `api-tokens:manage` (allowed roles: admin).","x-authorization-scope":"api-tokens:manage","x-rbac-permission":"api-tokens:manage","x-rbac-roles":["admin"],"tags":["Api-token"],"x-badges":[{"name":"Permission: api-tokens:manage","position":"after","color":"#13ec80"},{"name":"Roles: admin","position":"after","color":"#13ec80"}]}},"/api/api-token/{tokenUid}/rotate":{"post":{"responses":{"200":{"description":"Token rotated","content":{"application/json":{"schema":{"type":"object","properties":{"success":{"type":"boolean"},"data":{"$ref":"#/components/schemas/RotateTokenResponseData"}}}}}},"404":{"description":"Token not found","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}}},"operationId":"postApiApi-tokenByTokenUidRotate","parameters":[{"name":"org_uid","in":"query","schema":{"type":"string"},"required":true},{"schema":{"type":"string"},"in":"path","name":"tokenUid","required":true}],"description":"Rotate an API token value\n\nAuthorization: requires permission `api-tokens:manage` (allowed roles: admin).","x-authorization-scope":"api-tokens:manage","x-rbac-permission":"api-tokens:manage","x-rbac-roles":["admin"],"tags":["Api-token"],"x-badges":[{"name":"Permission: api-tokens:manage","position":"after","color":"#13ec80"},{"name":"Roles: admin","position":"after","color":"#13ec80"}]}},"/api/alert-actions/{alertInstanceUid}/details":{"get":{"responses":{"200":{"description":"Alert details","content":{"application/json":{"schema":{"$ref":"#/components/schemas/AlertDetailsResponse"}}}},"404":{"description":"Alert not found","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}}},"operationId":"getApiAlert-actionsByAlertInstanceUidDetails","parameters":[{"schema":{"type":"string"},"in":"path","name":"alertInstanceUid","required":true}],"description":"Get alert details for frontend display\n\nAuthorization: accepts an authenticated SPA user with alert organization access, or an explicit allowed guest action according to the alert schema and action type.","x-authorization-type":"spa-token-or-identity","tags":["Alert-actions"],"x-badges":[{"name":"Auth: spa-token-or-identity","position":"after","color":"#13ec80"}]}},"/api/alert-actions/{alertInstanceUid}/ack":{"post":{"responses":{"200":{"description":"Alert acknowledged successfully","content":{"application/json":{"schema":{"type":"object","properties":{"success":{"type":"boolean"},"data":{"$ref":"#/components/schemas/ActionResult"}}}}}},"400":{"description":"Invalid request","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}},"404":{"description":"Alert instance not found","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}}},"operationId":"postApiAlert-actionsByAlertInstanceUidAck","parameters":[{"schema":{"type":"string"},"in":"path","name":"alertInstanceUid","required":true}],"description":"Acknowledge an alert instance\n\nAuthorization: accepts an authenticated SPA user with alert organization access, or an explicit allowed guest action according to the alert schema and action type.","requestBody":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ActionRequest"}}}},"x-authorization-type":"spa-token-or-identity","tags":["Alert-actions"],"x-badges":[{"name":"Auth: spa-token-or-identity","position":"after","color":"#13ec80"}]}},"/api/alert-actions/{alertInstanceUid}/unack":{"post":{"responses":{"200":{"description":"Alert un-acknowledged successfully","content":{"application/json":{"schema":{"type":"object","properties":{"success":{"type":"boolean"},"data":{"$ref":"#/components/schemas/ActionResult"}}}}}},"400":{"description":"Invalid request","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}},"404":{"description":"Alert instance not found","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}}},"operationId":"postApiAlert-actionsByAlertInstanceUidUnack","parameters":[{"schema":{"type":"string"},"in":"path","name":"alertInstanceUid","required":true}],"description":"Remove acknowledgement from an alert instance\n\nAuthorization: accepts an authenticated SPA user with alert organization access, or an explicit allowed guest action according to the alert schema and action type.","requestBody":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ActionRequest"}}}},"x-authorization-type":"spa-token-or-identity","tags":["Alert-actions"],"x-badges":[{"name":"Auth: spa-token-or-identity","position":"after","color":"#13ec80"}]}},"/api/alert-actions/{alertInstanceUid}/resolve":{"post":{"responses":{"200":{"description":"Alert resolved successfully","content":{"application/json":{"schema":{"type":"object","properties":{"success":{"type":"boolean"},"data":{"$ref":"#/components/schemas/ActionResult"}}}}}},"400":{"description":"Invalid request","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}},"404":{"description":"Alert instance not found","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}}},"operationId":"postApiAlert-actionsByAlertInstanceUidResolve","parameters":[{"schema":{"type":"string"},"in":"path","name":"alertInstanceUid","required":true}],"description":"Resolve an alert instance\n\nAuthorization: accepts an authenticated SPA user with alert organization access, or an explicit allowed guest action according to the alert schema and action type.","requestBody":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ActionRequest"}}}},"x-authorization-type":"spa-token-or-identity","tags":["Alert-actions"],"x-badges":[{"name":"Auth: spa-token-or-identity","position":"after","color":"#13ec80"}]}},"/api/alert-actions/{alertInstanceUid}/escalate-further":{"post":{"responses":{"200":{"description":"Escalate further queued successfully","content":{"application/json":{"schema":{"type":"object","properties":{"success":{"type":"boolean"},"data":{"$ref":"#/components/schemas/ActionResult"}}}}}},"400":{"description":"Invalid request","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}},"404":{"description":"Alert instance not found","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}}},"operationId":"postApiAlert-actionsByAlertInstanceUidEscalate-further","parameters":[{"schema":{"type":"string"},"in":"path","name":"alertInstanceUid","required":true}],"description":"Escalate the acting responder further in the escalation flow\n\nAuthorization: accepts an authenticated SPA user with alert organization access, or an explicit allowed guest action according to the alert schema and action type.","requestBody":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ActionRequest"}}}},"x-authorization-type":"spa-token-or-identity","tags":["Alert-actions"],"x-badges":[{"name":"Auth: spa-token-or-identity","position":"after","color":"#13ec80"}]}},"/api/alert-actions/{alertInstanceUid}/escalate-to":{"post":{"responses":{"200":{"description":"Escalate to queued successfully","content":{"application/json":{"schema":{"type":"object","properties":{"success":{"type":"boolean"},"data":{"$ref":"#/components/schemas/ActionResult"}}}}}},"400":{"description":"Invalid request","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}},"404":{"description":"Alert instance not found","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}}},"operationId":"postApiAlert-actionsByAlertInstanceUidEscalate-to","parameters":[{"schema":{"type":"string"},"in":"path","name":"alertInstanceUid","required":true}],"description":"Escalate directly to a selected responder from available responders\n\nAuthorization: accepts an authenticated SPA user with alert organization access, or an explicit allowed guest action according to the alert schema and action type.","requestBody":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/EscalateToActionRequest"}}}},"x-authorization-type":"spa-token-or-identity","tags":["Alert-actions"],"x-badges":[{"name":"Auth: spa-token-or-identity","position":"after","color":"#13ec80"}]}},"/api/alert-actions/{alertInstanceUid}/escalate-to-ai":{"post":{"responses":{"200":{"description":"AI escalation assignment created successfully","content":{"application/json":{"schema":{"type":"object","properties":{"success":{"type":"boolean"},"data":{"$ref":"#/components/schemas/AiEscalationActionResult"}}}}}},"400":{"description":"Invalid request","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}},"401":{"description":"Authentication required","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}},"403":{"description":"AI escalation is not enabled for this organization plan","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}},"404":{"description":"Alert instance not found","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}}},"operationId":"postApiAlert-actionsByAlertInstanceUidEscalate-to-ai","parameters":[{"schema":{"type":"string"},"in":"path","name":"alertInstanceUid","required":true}],"description":"Escalate an alert instance to the configured AI assistant controller\n\nAuthorization: accepts an authenticated SPA user with alert organization access, or an explicit allowed guest action according to the alert schema and action type.","requestBody":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ActionRequest"}}}},"x-authorization-type":"spa-token-or-identity","tags":["Alert-actions"],"x-badges":[{"name":"Auth: spa-token-or-identity","position":"after","color":"#13ec80"}]}},"/api/alert-actions/{alertInstanceUid}/join-incident":{"post":{"responses":{"200":{"description":"Incident joined successfully","content":{"application/json":{"schema":{"type":"object","properties":{"success":{"type":"boolean"},"data":{"$ref":"#/components/schemas/ActionResult"}}}}}},"400":{"description":"Invalid request","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}},"404":{"description":"Alert instance not found","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}}},"operationId":"postApiAlert-actionsByAlertInstanceUidJoin-incident","parameters":[{"schema":{"type":"string"},"in":"path","name":"alertInstanceUid","required":true}],"description":"Join the incident linked to an incident alert instance\n\nAuthorization: accepts an authenticated SPA user with alert organization access, or an explicit allowed guest action according to the alert schema and action type.","requestBody":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ActionRequest"}}}},"x-authorization-type":"spa-token-or-identity","tags":["Alert-actions"],"x-badges":[{"name":"Auth: spa-token-or-identity","position":"after","color":"#13ec80"}]}},"/api/alert-actions/{alertInstanceUid}/start-incident":{"post":{"responses":{"200":{"description":"Incident created successfully","content":{"application/json":{"schema":{"type":"object","properties":{"success":{"type":"boolean"},"data":{"$ref":"#/components/schemas/ActionResult"}}}}}},"400":{"description":"Invalid request","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}},"404":{"description":"Alert instance not found","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}}},"operationId":"postApiAlert-actionsByAlertInstanceUidStart-incident","parameters":[{"schema":{"type":"string"},"in":"path","name":"alertInstanceUid","required":true}],"description":"Start incident flow for an alert instance\n\nAuthorization: accepts an authenticated SPA user with alert organization access, or an explicit allowed guest action according to the alert schema and action type.","requestBody":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ActionRequest"}}}},"x-authorization-type":"spa-token-or-identity","tags":["Alert-actions"],"x-badges":[{"name":"Auth: spa-token-or-identity","position":"after","color":"#13ec80"}]}},"/api/alert-actions/identity/register":{"post":{"responses":{"200":{"description":"Identity registered successfully","content":{"application/json":{"schema":{"type":"object","properties":{"success":{"type":"boolean"},"data":{"$ref":"#/components/schemas/IdentityToken"}}}}}},"400":{"description":"Invalid request","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}}},"operationId":"postApiAlert-actionsIdentityRegister","parameters":[],"description":"Register a device identity token for future acknowledgements\n\nAuthorization: public identity-token endpoint used by the browser action flow.","requestBody":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/RegisterIdentityRequest"}}}},"x-authorization-type":"public","tags":["Alert-actions"],"x-badges":[{"name":"Auth: public","position":"after","color":"#13ec80"}]}},"/api/alert-actions/identity/check":{"get":{"responses":{"200":{"description":"Token validation result","content":{"application/json":{"schema":{"type":"object","properties":{"success":{"type":"boolean"},"data":{"$ref":"#/components/schemas/IdentityToken"}}}}}}},"operationId":"getApiAlert-actionsIdentityCheck","parameters":[],"description":"Validate a device identity token\n\nAuthorization: public identity-token endpoint used by the browser action flow.","x-authorization-type":"public","tags":["Alert-actions"],"x-badges":[{"name":"Auth: public","position":"after","color":"#13ec80"}]}},"/api/communication/webhooks/{pluginId}/{integrationUid}":{"post":{"responses":{"200":{"description":"Webhook acknowledged"},"400":{"description":"Unknown plugin or plugin does not support webhooks","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}}},"operationId":"postApiCommunicationWebhooksByPluginIdByIntegrationUid","parameters":[{"schema":{"type":"string"},"in":"path","name":"pluginId","required":true},{"schema":{"type":"string"},"in":"path","name":"integrationUid","required":true}],"description":"Receive webhook events from communication providers (e.g. Telnyx call.answered)\n\nAuthorization: public provider webhook endpoint identified and bounded by the integration UID.","x-authorization-type":"public","tags":["Communication"],"x-badges":[{"name":"Auth: public","position":"after","color":"#13ec80"}]}},"/api/communication/rules":{"post":{"responses":{"200":{"description":"Communication rule created successfully","content":{"application/json":{"schema":{"type":"object","properties":{"success":{"type":"boolean"},"data":{"$ref":"#/components/schemas/CommunicationRule"}}}}}}},"operationId":"postApiCommunicationRules","parameters":[{"name":"org_uid","in":"query","schema":{"type":"string"},"required":true}],"description":"Create a new communication rule\n\nAuthorization: requires permission `config:write` (allowed roles: editor, admin).","requestBody":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/CreateCommunicationRuleRequest"}}}},"x-authorization-scope":"config:write","x-rbac-permission":"config:write","x-rbac-roles":["editor","admin"],"tags":["Communication"],"x-badges":[{"name":"Permission: config:write","position":"after","color":"#13ec80"},{"name":"Roles: editor, admin","position":"after","color":"#13ec80"}]},"get":{"responses":{"200":{"description":"Communication rules retrieved successfully","content":{"application/json":{"schema":{"type":"object","properties":{"success":{"type":"boolean"},"data":{"type":"array","items":{"$ref":"#/components/schemas/CommunicationRule"}},"count":{"type":"number"}}}}}}},"operationId":"getApiCommunicationRules","parameters":[{"name":"org_uid","in":"query","schema":{"type":"string"},"required":true}],"description":"List communication rules for the organization\n\nAuthorization: requires permission `config:read` (allowed roles: reader, editor, admin).","x-authorization-scope":"config:read","x-rbac-permission":"config:read","x-rbac-roles":["reader","editor","admin"],"tags":["Communication"],"x-badges":[{"name":"Permission: config:read","position":"after","color":"#13ec80"},{"name":"Roles: reader, editor, admin","position":"after","color":"#13ec80"}]}},"/api/communication/rules/{ruleUid}":{"get":{"responses":{"200":{"description":"Communication rule retrieved successfully","content":{"application/json":{"schema":{"type":"object","properties":{"success":{"type":"boolean"},"data":{"$ref":"#/components/schemas/CommunicationRule"}}}}}},"404":{"description":"Rule not found","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}}},"operationId":"getApiCommunicationRulesByRuleUid","parameters":[{"name":"org_uid","in":"query","schema":{"type":"string"},"required":true},{"schema":{"type":"string"},"in":"path","name":"ruleUid","required":true}],"description":"Get communication rule by Uid\n\nAuthorization: requires permission `config:read` (allowed roles: reader, editor, admin).","x-authorization-scope":"config:read","x-rbac-permission":"config:read","x-rbac-roles":["reader","editor","admin"],"tags":["Communication"],"x-badges":[{"name":"Permission: config:read","position":"after","color":"#13ec80"},{"name":"Roles: reader, editor, admin","position":"after","color":"#13ec80"}]},"put":{"responses":{"200":{"description":"Communication rule updated successfully","content":{"application/json":{"schema":{"type":"object","properties":{"success":{"type":"boolean"},"data":{"$ref":"#/components/schemas/CommunicationRule"}}}}}},"404":{"description":"Rule not found","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}}},"operationId":"putApiCommunicationRulesByRuleUid","parameters":[{"name":"org_uid","in":"query","schema":{"type":"string"},"required":true},{"schema":{"type":"string"},"in":"path","name":"ruleUid","required":true}],"description":"Update communication rule\n\nAuthorization: requires permission `config:write` (allowed roles: editor, admin).","requestBody":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/UpdateCommunicationRuleRequest"}}}},"x-authorization-scope":"config:write","x-rbac-permission":"config:write","x-rbac-roles":["editor","admin"],"tags":["Communication"],"x-badges":[{"name":"Permission: config:write","position":"after","color":"#13ec80"},{"name":"Roles: editor, admin","position":"after","color":"#13ec80"}]},"delete":{"responses":{"200":{"description":"Communication rule deleted successfully","content":{"application/json":{"schema":{"$ref":"#/components/schemas/SimpleSuccessResponse"}}}},"404":{"description":"Rule not found","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}}},"operationId":"deleteApiCommunicationRulesByRuleUid","parameters":[{"name":"org_uid","in":"query","schema":{"type":"string"},"required":true},{"schema":{"type":"string"},"in":"path","name":"ruleUid","required":true}],"description":"Delete communication rule\n\nAuthorization: requires permission `config:write` (allowed roles: editor, admin).","x-authorization-scope":"config:write","x-rbac-permission":"config:write","x-rbac-roles":["editor","admin"],"tags":["Communication"],"x-badges":[{"name":"Permission: config:write","position":"after","color":"#13ec80"},{"name":"Roles: editor, admin","position":"after","color":"#13ec80"}]}},"/api/communication":{"post":{"responses":{"200":{"description":"Communication integration created successfully","content":{"application/json":{"schema":{"type":"object","properties":{"success":{"type":"boolean"},"data":{"$ref":"#/components/schemas/CommunicationIntegration"}}}}}}},"operationId":"postApiCommunication","parameters":[{"name":"org_uid","in":"query","schema":{"type":"string"},"required":true}],"description":"Create a new communication integration\n\nAuthorization: requires permission `communication-integrations:manage` (allowed roles: admin).","requestBody":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/CreateIntegrationRequest"}}}},"x-authorization-scope":"communication-integrations:manage","x-rbac-permission":"communication-integrations:manage","x-rbac-roles":["admin"],"tags":["Communication"],"x-badges":[{"name":"Permission: communication-integrations:manage","position":"after","color":"#13ec80"},{"name":"Roles: admin","position":"after","color":"#13ec80"}]},"get":{"responses":{"200":{"description":"Communication integrations retrieved successfully","content":{"application/json":{"schema":{"type":"object","properties":{"success":{"type":"boolean"},"data":{"type":"array","items":{"$ref":"#/components/schemas/CommunicationIntegration"}},"count":{"type":"number"}}}}}}},"operationId":"getApiCommunication","parameters":[{"name":"org_uid","in":"query","schema":{"type":"string"},"required":true}],"description":"List communication integrations for the organization\n\nAuthorization: requires permission `config:read` (allowed roles: reader, editor, admin).","x-authorization-scope":"config:read","x-rbac-permission":"config:read","x-rbac-roles":["reader","editor","admin"],"tags":["Communication"],"x-badges":[{"name":"Permission: config:read","position":"after","color":"#13ec80"},{"name":"Roles: reader, editor, admin","position":"after","color":"#13ec80"}]}},"/api/communication/default":{"get":{"responses":{"200":{"description":"Communication integration retrieved successfully","content":{"application/json":{"schema":{"type":"object","properties":{"success":{"type":"boolean"},"data":{"$ref":"#/components/schemas/DefaultIntegrationResponse"}}}}}},"403":{"description":"Default integration is not available for this organization plan","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}},"404":{"description":"Default integration is not set","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}}},"operationId":"getApiCommunicationDefault","parameters":[{"name":"org_uid","in":"query","schema":{"type":"string"},"required":true}],"description":"Get default communication integration details\n\nAuthorization: requires permission `config:read` (allowed roles: reader, editor, admin).","x-authorization-scope":"config:read","x-rbac-permission":"config:read","x-rbac-roles":["reader","editor","admin"],"tags":["Communication"],"x-badges":[{"name":"Permission: config:read","position":"after","color":"#13ec80"},{"name":"Roles: reader, editor, admin","position":"after","color":"#13ec80"}]}},"/api/communication/{integrationUid}":{"get":{"responses":{"200":{"description":"Communication integration retrieved successfully","content":{"application/json":{"schema":{"type":"object","properties":{"success":{"type":"boolean"},"data":{"$ref":"#/components/schemas/CommunicationIntegration"}}}}}},"404":{"description":"Integration not found","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}}},"operationId":"getApiCommunicationByIntegrationUid","parameters":[{"name":"org_uid","in":"query","schema":{"type":"string"},"required":true},{"schema":{"type":"string"},"in":"path","name":"integrationUid","required":true}],"description":"Get communication integration by Uid\n\nAuthorization: requires permission `config:read` (allowed roles: reader, editor, admin).","x-authorization-scope":"config:read","x-rbac-permission":"config:read","x-rbac-roles":["reader","editor","admin"],"tags":["Communication"],"x-badges":[{"name":"Permission: config:read","position":"after","color":"#13ec80"},{"name":"Roles: reader, editor, admin","position":"after","color":"#13ec80"}]},"put":{"responses":{"200":{"description":"Communication integration updated successfully","content":{"application/json":{"schema":{"type":"object","properties":{"success":{"type":"boolean"},"data":{"$ref":"#/components/schemas/CommunicationIntegration"}}}}}},"404":{"description":"Integration not found","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}}},"operationId":"putApiCommunicationByIntegrationUid","parameters":[{"name":"org_uid","in":"query","schema":{"type":"string"},"required":true},{"schema":{"type":"string"},"in":"path","name":"integrationUid","required":true}],"description":"Update communication integration\n\nAuthorization: requires permission `communication-integrations:manage` (allowed roles: admin).","requestBody":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/UpdateIntegrationRequest"}}}},"x-authorization-scope":"communication-integrations:manage","x-rbac-permission":"communication-integrations:manage","x-rbac-roles":["admin"],"tags":["Communication"],"x-badges":[{"name":"Permission: communication-integrations:manage","position":"after","color":"#13ec80"},{"name":"Roles: admin","position":"after","color":"#13ec80"}]},"delete":{"responses":{"200":{"description":"Communication integration deleted successfully","content":{"application/json":{"schema":{"$ref":"#/components/schemas/SimpleSuccessResponse"}}}},"404":{"description":"Integration not found","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}}},"operationId":"deleteApiCommunicationByIntegrationUid","parameters":[{"name":"org_uid","in":"query","schema":{"type":"string"},"required":true},{"schema":{"type":"string"},"in":"path","name":"integrationUid","required":true}],"description":"Delete communication integration\n\nAuthorization: requires permission `communication-integrations:manage` (allowed roles: admin).","x-authorization-scope":"communication-integrations:manage","x-rbac-permission":"communication-integrations:manage","x-rbac-roles":["admin"],"tags":["Communication"],"x-badges":[{"name":"Permission: communication-integrations:manage","position":"after","color":"#13ec80"},{"name":"Roles: admin","position":"after","color":"#13ec80"}]}},"/api/incidents/from-alert/{alertInstanceUid}":{"post":{"responses":{"200":{"description":"Incident created successfully","content":{"application/json":{"schema":{"type":"object","properties":{"success":{"type":"boolean"},"data":{"$ref":"#/components/schemas/IncidentDetails"}}}}}},"404":{"description":"Alert instance or organization not found","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}},"500":{"description":"Internal server error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}}},"operationId":"postApiIncidentsFrom-alertByAlertInstanceUid","parameters":[{"name":"org_uid","in":"query","schema":{"type":"string"},"required":true},{"schema":{"type":"string"},"in":"path","name":"alertInstanceUid","required":true}],"description":"Create a phase-1 incident from an alert instance and persist responder snapshot and creation event.\n\nAuthorization: requires permission `operational:action` (allowed roles: reader, editor, admin).","requestBody":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/CreateIncidentFromAlertRequest"}}}},"x-authorization-scope":"operational:action","x-rbac-permission":"operational:action","x-rbac-roles":["reader","editor","admin"],"tags":["Incidents"],"x-badges":[{"name":"Permission: operational:action","position":"after","color":"#13ec80"},{"name":"Roles: reader, editor, admin","position":"after","color":"#13ec80"}]}},"/api/incidents":{"post":{"responses":{"200":{"description":"Incident created successfully","content":{"application/json":{"schema":{"type":"object","properties":{"success":{"type":"boolean"},"data":{"$ref":"#/components/schemas/IncidentDetails"}}}}}},"400":{"description":"Invalid incident payload","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}},"404":{"description":"Organization not found","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}},"500":{"description":"Internal server error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}}},"operationId":"postApiIncidents","parameters":[{"name":"org_uid","in":"query","schema":{"type":"string"},"required":true}],"description":"Create an incident and its linked incident alert instance.\n\nAuthorization: requires permission `operational:action` (allowed roles: reader, editor, admin).","requestBody":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/CreateIncidentRequest"}}}},"x-authorization-scope":"operational:action","x-rbac-permission":"operational:action","x-rbac-roles":["reader","editor","admin"],"tags":["Incidents"],"x-badges":[{"name":"Permission: operational:action","position":"after","color":"#13ec80"},{"name":"Roles: reader, editor, admin","position":"after","color":"#13ec80"}]},"get":{"responses":{"200":{"description":"Incident list retrieved successfully","content":{"application/json":{"schema":{"type":"object","properties":{"success":{"type":"boolean"},"data":{"type":"array","items":{"$ref":"#/components/schemas/Incident"}},"count":{"type":"number"}}}}}},"404":{"description":"Organization not found","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}},"500":{"description":"Internal server error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}}},"operationId":"getApiIncidents","parameters":[{"name":"org_uid","in":"query","schema":{"type":"string"},"required":true},{"name":"limit","in":"query","schema":{"type":"string","pattern":"^\\d+$","description":"Pagination limit as string"}},{"name":"offset","in":"query","schema":{"type":"string","pattern":"^\\d+$","description":"Pagination offset as string"}},{"name":"status","in":"query","schema":{"type":"string","enum":["open","investigating","in_progress","resolved","closed"]}}],"description":"List incidents for the organization.\n\nAuthorization: requires permission `config:read` (allowed roles: reader, editor, admin).","x-authorization-scope":"config:read","x-rbac-permission":"config:read","x-rbac-roles":["reader","editor","admin"],"tags":["Incidents"],"x-badges":[{"name":"Permission: config:read","position":"after","color":"#13ec80"},{"name":"Roles: reader, editor, admin","position":"after","color":"#13ec80"}]}},"/api/incidents/actions":{"get":{"responses":{"200":{"description":"Incident action rules retrieved successfully","content":{"application/json":{"schema":{"type":"object","properties":{"success":{"type":"boolean"},"data":{"type":"array","items":{"$ref":"#/components/schemas/IncidentActionDefinition"}},"count":{"type":"number"}}}}}},"404":{"description":"Organization not found","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}},"500":{"description":"Internal server error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}}},"operationId":"getApiIncidentsActions","parameters":[{"name":"org_uid","in":"query","schema":{"type":"string"},"required":true}],"description":"List preconfigured incident action rules for the organization.\n\nAuthorization: requires permission `config:read` (allowed roles: reader, editor, admin).","x-authorization-scope":"config:read","x-rbac-permission":"config:read","x-rbac-roles":["reader","editor","admin"],"tags":["Incidents"],"x-badges":[{"name":"Permission: config:read","position":"after","color":"#13ec80"},{"name":"Roles: reader, editor, admin","position":"after","color":"#13ec80"}]},"post":{"responses":{"200":{"description":"Incident action rule created successfully","content":{"application/json":{"schema":{"type":"object","properties":{"success":{"type":"boolean"},"data":{"$ref":"#/components/schemas/IncidentActionDefinition"}}}}}},"404":{"description":"Organization not found","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}},"500":{"description":"Internal server error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}}},"operationId":"postApiIncidentsActions","parameters":[{"name":"org_uid","in":"query","schema":{"type":"string"},"required":true}],"description":"Create a preconfigured incident action rule for future incident events.\n\nAuthorization: requires permission `config:write` (allowed roles: editor, admin).","requestBody":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/CreateIncidentActionRequest"}}}},"x-authorization-scope":"config:write","x-rbac-permission":"config:write","x-rbac-roles":["editor","admin"],"tags":["Incidents"],"x-badges":[{"name":"Permission: config:write","position":"after","color":"#13ec80"},{"name":"Roles: editor, admin","position":"after","color":"#13ec80"}]}},"/api/incidents/actions/{actionUid}":{"put":{"responses":{"200":{"description":"Incident action rule updated successfully","content":{"application/json":{"schema":{"type":"object","properties":{"success":{"type":"boolean"},"data":{"$ref":"#/components/schemas/IncidentActionDefinition"}}}}}},"404":{"description":"Incident action rule not found","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}},"500":{"description":"Internal server error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}}},"operationId":"putApiIncidentsActionsByActionUid","parameters":[{"name":"org_uid","in":"query","schema":{"type":"string"},"required":true},{"schema":{"type":"string"},"in":"path","name":"actionUid","required":true}],"description":"Update a preconfigured incident action rule.\n\nAuthorization: requires permission `config:write` (allowed roles: editor, admin).","requestBody":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/UpdateIncidentActionRequest"}}}},"x-authorization-scope":"config:write","x-rbac-permission":"config:write","x-rbac-roles":["editor","admin"],"tags":["Incidents"],"x-badges":[{"name":"Permission: config:write","position":"after","color":"#13ec80"},{"name":"Roles: editor, admin","position":"after","color":"#13ec80"}]},"delete":{"responses":{"200":{"description":"Incident action rule deleted successfully"},"404":{"description":"Incident action rule not found","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}},"500":{"description":"Internal server error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}}},"operationId":"deleteApiIncidentsActionsByActionUid","parameters":[{"name":"org_uid","in":"query","schema":{"type":"string"},"required":true},{"schema":{"type":"string"},"in":"path","name":"actionUid","required":true}],"description":"Delete a preconfigured incident action rule.\n\nAuthorization: requires permission `config:write` (allowed roles: editor, admin).","x-authorization-scope":"config:write","x-rbac-permission":"config:write","x-rbac-roles":["editor","admin"],"tags":["Incidents"],"x-badges":[{"name":"Permission: config:write","position":"after","color":"#13ec80"},{"name":"Roles: editor, admin","position":"after","color":"#13ec80"}]}},"/api/incidents/{incidentUid}/action-executions":{"get":{"responses":{"200":{"description":"Incident action executions retrieved successfully","content":{"application/json":{"schema":{"type":"object","properties":{"success":{"type":"boolean"},"data":{"type":"array","items":{"$ref":"#/components/schemas/IncidentActionExecution"}},"count":{"type":"number"}}}}}},"404":{"description":"Incident not found","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}},"500":{"description":"Internal server error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}}},"operationId":"getApiIncidentsByIncidentUidAction-executions","parameters":[{"name":"org_uid","in":"query","schema":{"type":"string"},"required":true},{"schema":{"type":"string"},"in":"path","name":"incidentUid","required":true}],"description":"List execution history for saved event-based incident actions.\n\nAuthorization: requires permission `config:read` (allowed roles: reader, editor, admin).","x-authorization-scope":"config:read","x-rbac-permission":"config:read","x-rbac-roles":["reader","editor","admin"],"tags":["Incidents"],"x-badges":[{"name":"Permission: config:read","position":"after","color":"#13ec80"},{"name":"Roles: reader, editor, admin","position":"after","color":"#13ec80"}]}},"/api/incidents/{incidentUid}/postmortem":{"get":{"responses":{"200":{"description":"Incident postmortem retrieved successfully","content":{"application/json":{"schema":{"type":"object","properties":{"success":{"type":"boolean"},"data":{"$ref":"#/components/schemas/IncidentPostmortem"}}}}}},"404":{"description":"Incident not found","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}},"500":{"description":"Internal server error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}}},"operationId":"getApiIncidentsByIncidentUidPostmortem","parameters":[{"name":"org_uid","in":"query","schema":{"type":"string"},"required":true},{"schema":{"type":"string"},"in":"path","name":"incidentUid","required":true}],"description":"Get the incident postmortem document when one has been created.\n\nAuthorization: requires permission `config:read` (allowed roles: reader, editor, admin).","x-authorization-scope":"config:read","x-rbac-permission":"config:read","x-rbac-roles":["reader","editor","admin"],"tags":["Incidents"],"x-badges":[{"name":"Permission: config:read","position":"after","color":"#13ec80"},{"name":"Roles: reader, editor, admin","position":"after","color":"#13ec80"}]},"put":{"responses":{"200":{"description":"Incident postmortem saved successfully","content":{"application/json":{"schema":{"type":"object","properties":{"success":{"type":"boolean"},"data":{"$ref":"#/components/schemas/IncidentPostmortem"}}}}}},"404":{"description":"Incident not found","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}},"500":{"description":"Internal server error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}}},"operationId":"putApiIncidentsByIncidentUidPostmortem","parameters":[{"name":"org_uid","in":"query","schema":{"type":"string"},"required":true},{"schema":{"type":"string"},"in":"path","name":"incidentUid","required":true}],"description":"Create or update the one-to-one incident postmortem document.\n\nAuthorization: requires permission `operational:action` (allowed roles: reader, editor, admin).","requestBody":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/UpsertIncidentPostmortemRequest"}}}},"x-authorization-scope":"operational:action","x-rbac-permission":"operational:action","x-rbac-roles":["reader","editor","admin"],"tags":["Incidents"],"x-badges":[{"name":"Permission: operational:action","position":"after","color":"#13ec80"},{"name":"Roles: reader, editor, admin","position":"after","color":"#13ec80"}]}},"/api/incidents/{incidentUid}":{"get":{"responses":{"200":{"description":"Incident details retrieved successfully","content":{"application/json":{"schema":{"type":"object","properties":{"success":{"type":"boolean"},"data":{"$ref":"#/components/schemas/IncidentDetails"}}}}}},"404":{"description":"Incident not found","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}},"500":{"description":"Internal server error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}}},"operationId":"getApiIncidentsByIncidentUid","parameters":[{"name":"org_uid","in":"query","schema":{"type":"string"},"required":true},{"schema":{"type":"string"},"in":"path","name":"incidentUid","required":true}],"description":"Get incident details with responders and timeline events.\n\nAuthorization: requires permission `config:read` (allowed roles: reader, editor, admin).","x-authorization-scope":"config:read","x-rbac-permission":"config:read","x-rbac-roles":["reader","editor","admin"],"tags":["Incidents"],"x-badges":[{"name":"Permission: config:read","position":"after","color":"#13ec80"},{"name":"Roles: reader, editor, admin","position":"after","color":"#13ec80"}]},"delete":{"responses":{"200":{"description":"Incident deleted successfully"},"404":{"description":"Incident not found","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}},"500":{"description":"Internal server error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}}},"operationId":"deleteApiIncidentsByIncidentUid","parameters":[{"name":"org_uid","in":"query","schema":{"type":"string"},"required":true},{"schema":{"type":"string"},"in":"path","name":"incidentUid","required":true}],"description":"Delete an incident and its incident-local records.\n\nAuthorization: requires permission `config:write` (allowed roles: editor, admin).","x-authorization-scope":"config:write","x-rbac-permission":"config:write","x-rbac-roles":["editor","admin"],"tags":["Incidents"],"x-badges":[{"name":"Permission: config:write","position":"after","color":"#13ec80"},{"name":"Roles: editor, admin","position":"after","color":"#13ec80"}]},"put":{"responses":{"200":{"description":"Incident updated successfully","content":{"application/json":{"schema":{"type":"object","properties":{"success":{"type":"boolean"},"data":{"$ref":"#/components/schemas/IncidentDetails"}}}}}},"404":{"description":"Incident not found","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}},"500":{"description":"Internal server error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}}},"operationId":"putApiIncidentsByIncidentUid","parameters":[{"name":"org_uid","in":"query","schema":{"type":"string"},"required":true},{"schema":{"type":"string"},"in":"path","name":"incidentUid","required":true}],"description":"Update basic incident status and core editable fields.\n\nAuthorization: requires permission `operational:action` (allowed roles: reader, editor, admin).","requestBody":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/UpdateIncidentRequest"}}}},"x-authorization-scope":"operational:action","x-rbac-permission":"operational:action","x-rbac-roles":["reader","editor","admin"],"tags":["Incidents"],"x-badges":[{"name":"Permission: operational:action","position":"after","color":"#13ec80"},{"name":"Roles: reader, editor, admin","position":"after","color":"#13ec80"}]}},"/api/incidents/{incidentUid}/join":{"post":{"responses":{"200":{"description":"Incident joined successfully","content":{"application/json":{"schema":{"type":"object","properties":{"success":{"type":"boolean"},"data":{"$ref":"#/components/schemas/IncidentDetails"}}}}}},"400":{"description":"Invalid request","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}},"404":{"description":"Incident not found","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}},"500":{"description":"Internal server error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}}},"operationId":"postApiIncidentsByIncidentUidJoin","parameters":[{"name":"org_uid","in":"query","schema":{"type":"string"},"required":true},{"schema":{"type":"string"},"in":"path","name":"incidentUid","required":true}],"description":"Join an incident and append a history event.\n\nAuthorization: requires permission `operational:action` (allowed roles: reader, editor, admin).","x-authorization-scope":"operational:action","x-rbac-permission":"operational:action","x-rbac-roles":["reader","editor","admin"],"tags":["Incidents"],"x-badges":[{"name":"Permission: operational:action","position":"after","color":"#13ec80"},{"name":"Roles: reader, editor, admin","position":"after","color":"#13ec80"}]}}},"components":{"schemas":{"1":{"anyOf":[{"type":"string"},{"type":"number"},{"type":"boolean"},{"type":"null"},{"type":"array","items":{"$ref":"#/components/schemas/1"}},{"type":"object","additionalProperties":{"$ref":"#/components/schemas/1"}}]},"2":{"type":"object","properties":{"name":{"type":"string"},"order":{"enum":[1,2,3]},"type":{"anyOf":[{"const":"string"},{"const":"number"},{"const":"boolean"},{"const":"object"},{"const":"array"},{"const":"dictionary"}]},"description":{"type":"string"},"hasChildren":{"type":"boolean"},"sourcePattern":{},"children":{"type":"array","items":{"$ref":"#/components/schemas/2"}},"dictionary":{},"saveIntermediate":{"type":"boolean"},"sourceField":{"type":"string"},"fallbacks":{"type":"array","items":{"type":"object","properties":{"order":{"enum":[1,2,3]},"type":{"anyOf":[{"const":"string"},{"const":"number"},{"const":"boolean"},{"const":"object"},{"const":"array"},{"const":"dictionary"}]},"description":{"type":"string"},"hasChildren":{"type":"boolean"},"sourcePattern":{},"children":{"type":"array","items":{"$ref":"#/components/schemas/2"}},"dictionary":{},"saveIntermediate":{"type":"boolean"},"sourceField":{"type":"string"}},"required":["type"]}}},"required":["name","type"]},"TestTransformationTemplateRequest":{"type":"object","properties":{"transformation_template":{"type":"object","additionalProperties":{"$ref":"#/components/schemas/1"}},"patterns":{"type":"array","items":{"$ref":"#/components/schemas/2"}},"testPayload":{"type":"object","additionalProperties":{}},"ack_mapping":{"anyOf":[{"type":"object","properties":{"title":{"type":"string"},"fallback_title":{"type":"string"},"description":{"type":"string"},"status":{"type":"string"},"ack_link":{"type":"string"},"unack_link":{"type":"string"},"overrides":{"type":"object","additionalProperties":{"type":"string"}}},"required":[]},{"type":"null"}]},"resolution_mapping":{"anyOf":[{"type":"object","properties":{"title":{"type":"string"},"fallback_title":{"type":"string"},"description":{"type":"string"},"status":{"type":"string"},"resolve_link":{"type":"string"},"overrides":{"type":"object","additionalProperties":{"type":"string"}}},"required":[]},{"type":"null"}]}},"required":["transformation_template","patterns","testPayload"]},"TestTransformationTemplateResponseData":{"type":"object","properties":{"transformationContext":{"type":"object","additionalProperties":{}},"transformedPayload":{"type":"object","additionalProperties":{"$ref":"#/components/schemas/1"}},"finalPayload":{"type":"object","additionalProperties":{"$ref":"#/components/schemas/1"}},"simulationStages":{"type":"object","properties":{"extractedContext":{"type":"object","additionalProperties":{}},"transformedPayload":{"type":"object","additionalProperties":{"$ref":"#/components/schemas/1"}},"finalPayload":{"type":"object","additionalProperties":{"$ref":"#/components/schemas/1"}},"linkInjection":{"type":"object","properties":{"ackLink":{"type":"string"},"unackLink":{"type":"string"},"resolveLink":{"type":"string"}},"required":["ackLink","unackLink","resolveLink"]}},"required":["extractedContext","transformedPayload","finalPayload","linkInjection"]},"extractionSteps":{"type":"array","items":{"type":"object","properties":{"stepNumber":{"type":"number"},"fieldName":{"type":"string"},"patternType":{"type":"string"},"success":{"type":"boolean"},"sourceContent":{"type":"string"},"extractedContent":{},"errors":{"type":"array","items":{"type":"string"}}},"required":["stepNumber","fieldName","patternType","success","sourceContent","extractedContent"]}},"processedPatternCount":{"type":"number"},"successfulExtractions":{"type":"number"}},"required":["transformationContext","transformedPayload","finalPayload","simulationStages","extractionSteps","processedPatternCount","successfulExtractions"]},"TestPatternsRequest":{"type":"object","properties":{"patterns":{"type":"array","items":{"$ref":"#/components/schemas/2"}},"testPayload":{}},"required":["patterns","testPayload"]},"TestPatternsResponseData":{"type":"object","properties":{"finalExtractedData":{"type":"object"},"extractionSteps":{"type":"array","items":{"type":"object"}},"expectedSchemaFields":{"type":"array","items":{"type":"object"}},"processedPatternCount":{"type":"number"},"successfulExtractions":{"type":"number"}}},"UpdateSchemaRequest":{"allOf":[{"type":"object","properties":{"name":{"type":"string"},"enabled":{"type":"boolean"}},"required":["name","enabled"]},{"type":"object","properties":{"fields":{"type":"array","items":{"type":"object","properties":{"name":{"type":"string"},"type":{"type":"string"},"description":{"type":"string"},"defaultValue":{}},"required":["name","type"]}},"transformation_template":{"anyOf":[{"type":"object","additionalProperties":{"$ref":"#/components/schemas/1"}},{"type":"null"}]},"sample":{"anyOf":[{},{"type":"null"}]},"patterns":{"type":"array","items":{"type":"object","properties":{"name":{"type":"string"},"order":{"enum":[1,2,3]},"type":{"anyOf":[{"const":"string"},{"const":"number"},{"const":"boolean"},{"const":"object"},{"const":"array"},{"const":"dictionary"}]},"description":{"type":"string"},"hasChildren":{"type":"boolean"},"sourcePattern":{},"children":{"type":"array","items":{"$ref":"#/components/schemas/2"}},"dictionary":{},"saveIntermediate":{"type":"boolean"},"sourceField":{"type":"string"},"fallbacks":{"type":"array","items":{"type":"object","properties":{"order":{"enum":[1,2,3]},"type":{"anyOf":[{"const":"string"},{"const":"number"},{"const":"boolean"},{"const":"object"},{"const":"array"},{"const":"dictionary"}]},"description":{"type":"string"},"hasChildren":{"type":"boolean"},"sourcePattern":{},"children":{"type":"array","items":{"$ref":"#/components/schemas/2"}},"dictionary":{},"saveIntermediate":{"type":"boolean"},"sourceField":{"type":"string"}},"required":["type"]}}},"required":["name","type"]}},"ack_mapping":{"anyOf":[{"type":"object","properties":{"title":{"type":"string"},"fallback_title":{"type":"string"},"description":{"type":"string"},"status":{"type":"string"},"ack_link":{"type":"string"},"unack_link":{"type":"string"},"overrides":{"type":"object","additionalProperties":{"type":"string"}}},"required":[]},{"type":"null"}]},"allow_guest_ack":{"type":"boolean"},"resolution_patterns":{"type":"array","items":{"$ref":"#/components/schemas/2"}},"resolution_mapping":{"anyOf":[{"type":"object","properties":{"title":{"type":"string"},"fallback_title":{"type":"string"},"description":{"type":"string"},"status":{"type":"string"},"resolve_link":{"type":"string"},"overrides":{"type":"object","additionalProperties":{"type":"string"}}},"required":[]},{"type":"null"}]},"incident_lifecycle_mapping":{"anyOf":[{"type":"object","properties":{"created":{"type":"object","properties":{"title":{"type":"string"},"description":{"type":"string"},"status":{"type":"string"},"incident_link":{"type":"string"},"register_alert":{"anyOf":[{"type":"boolean"},{"type":"string"}]},"send_alert":{"anyOf":[{"type":"boolean"},{"type":"string"}]},"overrides":{"type":"object","additionalProperties":{"type":"string"}}},"required":[]},"reopened":{"type":"object","properties":{"title":{"type":"string"},"description":{"type":"string"},"status":{"type":"string"},"incident_link":{"type":"string"},"register_alert":{"anyOf":[{"type":"boolean"},{"type":"string"}]},"send_alert":{"anyOf":[{"type":"boolean"},{"type":"string"}]},"overrides":{"type":"object","additionalProperties":{"type":"string"}}},"required":[]},"resolved":{"type":"object","properties":{"title":{"type":"string"},"description":{"type":"string"},"status":{"type":"string"},"incident_link":{"type":"string"},"register_alert":{"anyOf":[{"type":"boolean"},{"type":"string"}]},"send_alert":{"anyOf":[{"type":"boolean"},{"type":"string"}]},"overrides":{"type":"object","additionalProperties":{"type":"string"}}},"required":[]},"closed":{"type":"object","properties":{"title":{"type":"string"},"description":{"type":"string"},"status":{"type":"string"},"incident_link":{"type":"string"},"register_alert":{"anyOf":[{"type":"boolean"},{"type":"string"}]},"send_alert":{"anyOf":[{"type":"boolean"},{"type":"string"}]},"overrides":{"type":"object","additionalProperties":{"type":"string"}}},"required":[]},"priority_changed":{"type":"object","properties":{"title":{"type":"string"},"description":{"type":"string"},"status":{"type":"string"},"incident_link":{"type":"string"},"register_alert":{"anyOf":[{"type":"boolean"},{"type":"string"}]},"send_alert":{"anyOf":[{"type":"boolean"},{"type":"string"}]},"overrides":{"type":"object","additionalProperties":{"type":"string"}}},"required":[]}},"required":[],"additionalProperties":false},{"type":"null"}]},"ai_escalation_mapping":{"anyOf":[{"type":"object","properties":{"enabled":{"type":"boolean"},"title":{"type":"string","minLength":1,"maxLength":255},"fallback_title":{"type":"string","minLength":1,"maxLength":255},"message":{"type":"string","minLength":1,"maxLength":255},"assignment_link":{"type":"string","minLength":1,"maxLength":255},"overrides":{"type":"object","additionalProperties":{"type":"string"}}},"required":[],"additionalProperties":false},{"type":"null"}]},"default_forward_to":{"anyOf":[{"type":"string"},{"type":"null"}]},"ai_override_forward_to":{"anyOf":[{"type":"string"},{"type":"null"}]},"resolution_proxy_config":{"enum":["all","initial","1stLine","none"]},"proxy_recurrent_alerts":{"anyOf":[{"type":"boolean"},{"type":"null"}]},"fingerprint_fields":{"type":"array","items":{"type":"string"}}},"required":["fields","sample","patterns","ack_mapping","allow_guest_ack","resolution_patterns","resolution_mapping","incident_lifecycle_mapping","ai_escalation_mapping","resolution_proxy_config","fingerprint_fields"]}]},"SchemaCreationResponseData":{"type":"object","properties":{"token":{"type":"string"},"expires_at":{"type":"number"}}},"SchemaResponse":{"allOf":[{"type":"object","properties":{"org_uid":{"type":"string","maxLength":36},"schema_token":{"type":"string","maxLength":64},"uid":{"type":"string","maxLength":36},"name":{"type":"string","maxLength":255},"fields":{"anyOf":[{"anyOf":[{"type":"string"},{"type":"number"},{"type":"boolean"},{"type":"null"}]},{"type":"array","items":{}},{"type":"object","additionalProperties":{}}]},"transformation_template":{"anyOf":[{"type":"object","additionalProperties":{"$ref":"#/components/schemas/1"}},{"type":"null"}]},"sample":{"anyOf":[{"anyOf":[{"anyOf":[{"type":"string"},{"type":"number"},{"type":"boolean"},{"type":"null"}]},{"type":"array","items":{}},{"type":"object","additionalProperties":{}}]},{"type":"null"}]},"patterns":{"anyOf":[{"anyOf":[{"anyOf":[{"type":"string"},{"type":"number"},{"type":"boolean"},{"type":"null"}]},{"type":"array","items":{}},{"type":"object","additionalProperties":{}}]},{"type":"null"}]},"resolution_patterns":{"anyOf":[{"anyOf":[{"anyOf":[{"type":"string"},{"type":"number"},{"type":"boolean"},{"type":"null"}]},{"type":"array","items":{}},{"type":"object","additionalProperties":{}}]},{"type":"null"}]},"resolution_mapping":{"type":"object","properties":{"title":{"type":"string"},"fallback_title":{"type":"string"},"description":{"type":"string"},"status":{"type":"string"},"resolve_link":{"type":"string"},"overrides":{"type":"object","additionalProperties":{"type":"string"}}},"required":[]},"incident_lifecycle_mapping":{"anyOf":[{"type":"object","properties":{"created":{"type":"object","properties":{"title":{"type":"string"},"description":{"type":"string"},"status":{"type":"string"},"incident_link":{"type":"string"},"register_alert":{"anyOf":[{"type":"boolean"},{"type":"string"}]},"send_alert":{"anyOf":[{"type":"boolean"},{"type":"string"}]},"overrides":{"type":"object","additionalProperties":{"type":"string"}}},"required":[]},"reopened":{"type":"object","properties":{"title":{"type":"string"},"description":{"type":"string"},"status":{"type":"string"},"incident_link":{"type":"string"},"register_alert":{"anyOf":[{"type":"boolean"},{"type":"string"}]},"send_alert":{"anyOf":[{"type":"boolean"},{"type":"string"}]},"overrides":{"type":"object","additionalProperties":{"type":"string"}}},"required":[]},"resolved":{"type":"object","properties":{"title":{"type":"string"},"description":{"type":"string"},"status":{"type":"string"},"incident_link":{"type":"string"},"register_alert":{"anyOf":[{"type":"boolean"},{"type":"string"}]},"send_alert":{"anyOf":[{"type":"boolean"},{"type":"string"}]},"overrides":{"type":"object","additionalProperties":{"type":"string"}}},"required":[]},"closed":{"type":"object","properties":{"title":{"type":"string"},"description":{"type":"string"},"status":{"type":"string"},"incident_link":{"type":"string"},"register_alert":{"anyOf":[{"type":"boolean"},{"type":"string"}]},"send_alert":{"anyOf":[{"type":"boolean"},{"type":"string"}]},"overrides":{"type":"object","additionalProperties":{"type":"string"}}},"required":[]},"priority_changed":{"type":"object","properties":{"title":{"type":"string"},"description":{"type":"string"},"status":{"type":"string"},"incident_link":{"type":"string"},"register_alert":{"anyOf":[{"type":"boolean"},{"type":"string"}]},"send_alert":{"anyOf":[{"type":"boolean"},{"type":"string"}]},"overrides":{"type":"object","additionalProperties":{"type":"string"}}},"required":[]}},"required":[],"additionalProperties":false},{"type":"null"}]},"ai_escalation_mapping":{"anyOf":[{"type":"object","properties":{"enabled":{"type":"boolean"},"title":{"type":"string","minLength":1,"maxLength":255},"fallback_title":{"type":"string","minLength":1,"maxLength":255},"message":{"type":"string","minLength":1,"maxLength":255},"assignment_link":{"type":"string","minLength":1,"maxLength":255},"overrides":{"type":"object","additionalProperties":{"type":"string"}}},"required":[],"additionalProperties":false},{"type":"null"}]},"fingerprint_fields":{"anyOf":[{"anyOf":[{"anyOf":[{"type":"string"},{"type":"number"},{"type":"boolean"},{"type":"null"}]},{"type":"array","items":{}},{"type":"object","additionalProperties":{}}]},{"type":"null"}]},"created_at":{"type":"string","format":"date-time"},"last_used_at":{"type":"string","format":"date-time"},"enabled":{"type":"boolean"},"resolution_proxy_config":{"anyOf":[{"type":"string","maxLength":20},{"type":"null"}]},"proxy_recurrent_alerts":{"type":"boolean"},"ack_mapping":{"type":"object","properties":{"title":{"type":"string"},"fallback_title":{"type":"string"},"description":{"type":"string"},"status":{"type":"string"},"ack_link":{"type":"string"},"unack_link":{"type":"string"},"overrides":{"type":"object","additionalProperties":{"type":"string"}}},"required":[]},"allow_guest_ack":{"type":"boolean"}},"required":["org_uid","schema_token","uid","name","fields","sample","patterns","resolution_patterns","fingerprint_fields","created_at","enabled","resolution_proxy_config"]},{"type":"object","properties":{"default_forward_to":{"type":"null"},"default_forward_to_configured":{"type":"boolean"},"ai_override_forward_to":{"type":"null"},"ai_override_forward_to_configured":{"type":"boolean"}},"required":[]}]},"SimpleSuccessResponse":{"type":"object","properties":{"success":{"const":true},"message":{"type":"string"}},"required":["success","message"]},"UpdateLibrarySchemaRequest":{"type":"object","properties":{"name":{"type":"string"},"description":{"anyOf":[{"type":"string"},{"type":"null"}]},"tags":{"type":"array","items":{"type":"string"}},"schema":{"type":"object","properties":{"fields":{"type":"array","items":{"type":"object","properties":{"name":{"type":"string"},"type":{"type":"string"},"description":{"type":"string"},"defaultValue":{}},"required":["name","type"]}},"transformation_template":{"anyOf":[{"type":"object","additionalProperties":{"$ref":"#/components/schemas/1"}},{"type":"null"}]},"sample":{"anyOf":[{},{"type":"null"}]},"patterns":{"type":"array","items":{"$ref":"#/components/schemas/2"}},"ack_mapping":{"anyOf":[{"type":"object","properties":{"title":{"type":"string"},"fallback_title":{"type":"string"},"description":{"type":"string"},"status":{"type":"string"},"ack_link":{"type":"string"},"unack_link":{"type":"string"},"overrides":{"type":"object","additionalProperties":{"type":"string"}}},"required":[]},{"type":"null"}]},"allow_guest_ack":{"type":"boolean"},"resolution_patterns":{"type":"array","items":{"$ref":"#/components/schemas/2"}},"resolution_mapping":{"anyOf":[{"type":"object","properties":{"title":{"type":"string"},"fallback_title":{"type":"string"},"description":{"type":"string"},"status":{"type":"string"},"resolve_link":{"type":"string"},"overrides":{"type":"object","additionalProperties":{"type":"string"}}},"required":[]},{"type":"null"}]},"incident_lifecycle_mapping":{"anyOf":[{"type":"object","properties":{"created":{"type":"object","properties":{"title":{"type":"string"},"description":{"type":"string"},"status":{"type":"string"},"incident_link":{"type":"string"},"register_alert":{"anyOf":[{"type":"boolean"},{"type":"string"}]},"send_alert":{"anyOf":[{"type":"boolean"},{"type":"string"}]},"overrides":{"type":"object","additionalProperties":{"type":"string"}}},"required":[]},"reopened":{"type":"object","properties":{"title":{"type":"string"},"description":{"type":"string"},"status":{"type":"string"},"incident_link":{"type":"string"},"register_alert":{"anyOf":[{"type":"boolean"},{"type":"string"}]},"send_alert":{"anyOf":[{"type":"boolean"},{"type":"string"}]},"overrides":{"type":"object","additionalProperties":{"type":"string"}}},"required":[]},"resolved":{"type":"object","properties":{"title":{"type":"string"},"description":{"type":"string"},"status":{"type":"string"},"incident_link":{"type":"string"},"register_alert":{"anyOf":[{"type":"boolean"},{"type":"string"}]},"send_alert":{"anyOf":[{"type":"boolean"},{"type":"string"}]},"overrides":{"type":"object","additionalProperties":{"type":"string"}}},"required":[]},"closed":{"type":"object","properties":{"title":{"type":"string"},"description":{"type":"string"},"status":{"type":"string"},"incident_link":{"type":"string"},"register_alert":{"anyOf":[{"type":"boolean"},{"type":"string"}]},"send_alert":{"anyOf":[{"type":"boolean"},{"type":"string"}]},"overrides":{"type":"object","additionalProperties":{"type":"string"}}},"required":[]},"priority_changed":{"type":"object","properties":{"title":{"type":"string"},"description":{"type":"string"},"status":{"type":"string"},"incident_link":{"type":"string"},"register_alert":{"anyOf":[{"type":"boolean"},{"type":"string"}]},"send_alert":{"anyOf":[{"type":"boolean"},{"type":"string"}]},"overrides":{"type":"object","additionalProperties":{"type":"string"}}},"required":[]}},"required":[],"additionalProperties":false},{"type":"null"}]},"ai_escalation_mapping":{"anyOf":[{"type":"object","properties":{"enabled":{"type":"boolean"},"title":{"type":"string","minLength":1,"maxLength":255},"fallback_title":{"type":"string","minLength":1,"maxLength":255},"message":{"type":"string","minLength":1,"maxLength":255},"assignment_link":{"type":"string","minLength":1,"maxLength":255},"overrides":{"type":"object","additionalProperties":{"type":"string"}}},"required":[],"additionalProperties":false},{"type":"null"}]},"default_forward_to":{"anyOf":[{"type":"string"},{"type":"null"}]},"ai_override_forward_to":{"anyOf":[{"type":"string"},{"type":"null"}]},"resolution_proxy_config":{"enum":["all","initial","1stLine","none"]},"proxy_recurrent_alerts":{"anyOf":[{"type":"boolean"},{"type":"null"}]},"fingerprint_fields":{"type":"array","items":{"type":"string"}}},"required":["fields","sample","patterns","ack_mapping","allow_guest_ack","resolution_patterns","resolution_mapping","incident_lifecycle_mapping","ai_escalation_mapping","default_forward_to","ai_override_forward_to","resolution_proxy_config","fingerprint_fields"]}},"required":["name","description","tags","schema"]},"CreateLibrarySchemaRequest":{"type":"object","properties":{"name":{"type":"string"},"description":{"type":"string"},"tags":{"type":"array","items":{"type":"string"}},"schema":{"type":"object","properties":{"fields":{"type":"array","items":{"type":"object","properties":{"name":{"type":"string"},"type":{"type":"string"},"description":{"type":"string"},"defaultValue":{}},"required":["name","type"]}},"transformation_template":{"anyOf":[{"type":"object","additionalProperties":{"$ref":"#/components/schemas/1"}},{"type":"null"}]},"sample":{},"patterns":{"type":"array","items":{"$ref":"#/components/schemas/2"}},"ack_mapping":{"type":"object","properties":{"title":{"type":"string"},"fallback_title":{"type":"string"},"description":{"type":"string"},"status":{"type":"string"},"ack_link":{"type":"string"},"unack_link":{"type":"string"},"overrides":{"type":"object","additionalProperties":{"type":"string"}}},"required":[]},"allow_guest_ack":{"type":"boolean"},"resolution_patterns":{"type":"array","items":{"$ref":"#/components/schemas/2"}},"resolution_mapping":{"anyOf":[{"type":"object","properties":{"title":{"type":"string"},"fallback_title":{"type":"string"},"description":{"type":"string"},"status":{"type":"string"},"resolve_link":{"type":"string"},"overrides":{"type":"object","additionalProperties":{"type":"string"}}},"required":[]},{"type":"null"}]},"incident_lifecycle_mapping":{"anyOf":[{"type":"object","properties":{"created":{"type":"object","properties":{"title":{"type":"string"},"description":{"type":"string"},"status":{"type":"string"},"incident_link":{"type":"string"},"register_alert":{"anyOf":[{"type":"boolean"},{"type":"string"}]},"send_alert":{"anyOf":[{"type":"boolean"},{"type":"string"}]},"overrides":{"type":"object","additionalProperties":{"type":"string"}}},"required":[]},"reopened":{"type":"object","properties":{"title":{"type":"string"},"description":{"type":"string"},"status":{"type":"string"},"incident_link":{"type":"string"},"register_alert":{"anyOf":[{"type":"boolean"},{"type":"string"}]},"send_alert":{"anyOf":[{"type":"boolean"},{"type":"string"}]},"overrides":{"type":"object","additionalProperties":{"type":"string"}}},"required":[]},"resolved":{"type":"object","properties":{"title":{"type":"string"},"description":{"type":"string"},"status":{"type":"string"},"incident_link":{"type":"string"},"register_alert":{"anyOf":[{"type":"boolean"},{"type":"string"}]},"send_alert":{"anyOf":[{"type":"boolean"},{"type":"string"}]},"overrides":{"type":"object","additionalProperties":{"type":"string"}}},"required":[]},"closed":{"type":"object","properties":{"title":{"type":"string"},"description":{"type":"string"},"status":{"type":"string"},"incident_link":{"type":"string"},"register_alert":{"anyOf":[{"type":"boolean"},{"type":"string"}]},"send_alert":{"anyOf":[{"type":"boolean"},{"type":"string"}]},"overrides":{"type":"object","additionalProperties":{"type":"string"}}},"required":[]},"priority_changed":{"type":"object","properties":{"title":{"type":"string"},"description":{"type":"string"},"status":{"type":"string"},"incident_link":{"type":"string"},"register_alert":{"anyOf":[{"type":"boolean"},{"type":"string"}]},"send_alert":{"anyOf":[{"type":"boolean"},{"type":"string"}]},"overrides":{"type":"object","additionalProperties":{"type":"string"}}},"required":[]}},"required":[],"additionalProperties":false},{"type":"null"}]},"ai_escalation_mapping":{"anyOf":[{"type":"object","properties":{"enabled":{"type":"boolean"},"title":{"type":"string","minLength":1,"maxLength":255},"fallback_title":{"type":"string","minLength":1,"maxLength":255},"message":{"type":"string","minLength":1,"maxLength":255},"assignment_link":{"type":"string","minLength":1,"maxLength":255},"overrides":{"type":"object","additionalProperties":{"type":"string"}}},"required":[],"additionalProperties":false},{"type":"null"}]},"default_forward_to":{"anyOf":[{"type":"string"},{"type":"null"}]},"ai_override_forward_to":{"anyOf":[{"type":"string"},{"type":"null"}]},"resolution_proxy_config":{"enum":["all","initial","1stLine","none"]},"proxy_recurrent_alerts":{"anyOf":[{"type":"boolean"},{"type":"null"}]},"fingerprint_fields":{"type":"array","items":{"type":"string"}}},"required":["fields"]}},"required":["name","schema"]},"LibrarySchema":{"type":"object","properties":{"uid":{"type":"string"},"name":{"type":"string"},"description":{"type":"string"},"tags":{"type":"array","items":{"type":"string"}},"scope":{"anyOf":[{"const":"global"},{"const":"org"}]},"orgUid":{"type":"string"},"source":{"type":"object","properties":{"packagePath":{"type":"string"},"sourceRepoRef":{"anyOf":[{"type":"string"},{"type":"null"}]},"visibility":{"type":"string"}},"required":[]},"schema":{"type":"object","properties":{"fields":{"type":"array","items":{"type":"object","properties":{"name":{"type":"string"},"type":{"type":"string"},"description":{"type":"string"},"defaultValue":{}},"required":["name","type"]}},"transformation_template":{"anyOf":[{"type":"object","additionalProperties":{"$ref":"#/components/schemas/1"}},{"type":"null"}]},"sample":{},"patterns":{"type":"array","items":{"$ref":"#/components/schemas/2"}},"ack_mapping":{"type":"object","properties":{"title":{"type":"string"},"fallback_title":{"type":"string"},"description":{"type":"string"},"status":{"type":"string"},"ack_link":{"type":"string"},"unack_link":{"type":"string"},"overrides":{"type":"object","additionalProperties":{"type":"string"}}},"required":[]},"allow_guest_ack":{"type":"boolean"},"resolution_patterns":{"type":"array","items":{"$ref":"#/components/schemas/2"}},"resolution_mapping":{"anyOf":[{"type":"object","properties":{"title":{"type":"string"},"fallback_title":{"type":"string"},"description":{"type":"string"},"status":{"type":"string"},"resolve_link":{"type":"string"},"overrides":{"type":"object","additionalProperties":{"type":"string"}}},"required":[]},{"type":"null"}]},"incident_lifecycle_mapping":{"anyOf":[{"type":"object","properties":{"created":{"type":"object","properties":{"title":{"type":"string"},"description":{"type":"string"},"status":{"type":"string"},"incident_link":{"type":"string"},"register_alert":{"anyOf":[{"type":"boolean"},{"type":"string"}]},"send_alert":{"anyOf":[{"type":"boolean"},{"type":"string"}]},"overrides":{"type":"object","additionalProperties":{"type":"string"}}},"required":[]},"reopened":{"type":"object","properties":{"title":{"type":"string"},"description":{"type":"string"},"status":{"type":"string"},"incident_link":{"type":"string"},"register_alert":{"anyOf":[{"type":"boolean"},{"type":"string"}]},"send_alert":{"anyOf":[{"type":"boolean"},{"type":"string"}]},"overrides":{"type":"object","additionalProperties":{"type":"string"}}},"required":[]},"resolved":{"type":"object","properties":{"title":{"type":"string"},"description":{"type":"string"},"status":{"type":"string"},"incident_link":{"type":"string"},"register_alert":{"anyOf":[{"type":"boolean"},{"type":"string"}]},"send_alert":{"anyOf":[{"type":"boolean"},{"type":"string"}]},"overrides":{"type":"object","additionalProperties":{"type":"string"}}},"required":[]},"closed":{"type":"object","properties":{"title":{"type":"string"},"description":{"type":"string"},"status":{"type":"string"},"incident_link":{"type":"string"},"register_alert":{"anyOf":[{"type":"boolean"},{"type":"string"}]},"send_alert":{"anyOf":[{"type":"boolean"},{"type":"string"}]},"overrides":{"type":"object","additionalProperties":{"type":"string"}}},"required":[]},"priority_changed":{"type":"object","properties":{"title":{"type":"string"},"description":{"type":"string"},"status":{"type":"string"},"incident_link":{"type":"string"},"register_alert":{"anyOf":[{"type":"boolean"},{"type":"string"}]},"send_alert":{"anyOf":[{"type":"boolean"},{"type":"string"}]},"overrides":{"type":"object","additionalProperties":{"type":"string"}}},"required":[]}},"required":[],"additionalProperties":false},{"type":"null"}]},"ai_escalation_mapping":{"anyOf":[{"type":"object","properties":{"enabled":{"type":"boolean"},"title":{"type":"string","minLength":1,"maxLength":255},"fallback_title":{"type":"string","minLength":1,"maxLength":255},"message":{"type":"string","minLength":1,"maxLength":255},"assignment_link":{"type":"string","minLength":1,"maxLength":255},"overrides":{"type":"object","additionalProperties":{"type":"string"}}},"required":[],"additionalProperties":false},{"type":"null"}]},"default_forward_to":{"anyOf":[{"type":"string"},{"type":"null"}]},"ai_override_forward_to":{"anyOf":[{"type":"string"},{"type":"null"}]},"resolution_proxy_config":{"enum":["all","initial","1stLine","none"]},"proxy_recurrent_alerts":{"anyOf":[{"type":"boolean"},{"type":"null"}]},"fingerprint_fields":{"type":"array","items":{"type":"string"}}},"required":["fields"]},"createdAt":{"type":"string"},"updatedAt":{"type":"string"}},"required":["uid","name","scope","schema","createdAt","updatedAt"]},"LibrarySchemasListResponse":{"type":"object","properties":{"success":{"type":"boolean"},"data":{"type":"array","items":{"$ref":"#/components/schemas/LibrarySchema"}},"cursor":{"anyOf":[{"type":"string"},{"type":"null"}]},"count":{"type":"number"}},"required":["success","data","count"]},"IncomingAlertRequest":{"type":"object","additionalProperties":{}},"ErrorResponse":{"type":"object","properties":{"success":{"const":false},"error":{"type":"string","description":"Error message"},"details":{"type":"object","additionalProperties":{}}},"required":["success","error"]},"CreateSchemaResponseData":{"type":"object","properties":{"uid":{"type":"string"},"name":{"type":"string"},"fields":{"type":"array","items":{"type":"object"}},"schemaToken":{"type":"string"}}},"UpdateRoutingRuleRequest":{"allOf":[{"type":"object","properties":{"name":{"type":"string","maxLength":255},"escalation_chain_uid":{"type":"string","maxLength":36},"respect_conditions":{"anyOf":[{"anyOf":[{"type":"string"},{"type":"number"},{"type":"boolean"},{"type":"null"}]},{"type":"array","items":{}},{"type":"object","additionalProperties":{}}]}},"required":["name","escalation_chain_uid","respect_conditions"]},{"type":"object","properties":{"conditions":{"type":"array","items":{"$ref":"#/components/schemas/RoutingRuleConditionRequest"}}},"required":["conditions"]}]},"RoutingRuleConditionRequest":{"type":"object","properties":{"schema_uid":{"type":"string"},"field":{"type":"string"},"operator":{"anyOf":[{"const":"equals"},{"const":"contains"},{"const":"startsWith"},{"const":"endsWith"},{"const":"matches"},{"const":"gt"},{"const":"lt"},{"const":"gte"},{"const":"lte"}]},"value":{"type":"string"},"is_not":{"type":"boolean"},"is_priority":{"type":"boolean"}},"required":["schema_uid","field","operator","value","is_not","is_priority"]},"CreateRoutingRuleRequest":{"allOf":[{"type":"object","properties":{"escalation_chain_uid":{"type":"string","maxLength":36},"name":{"type":"string","maxLength":255},"respect_conditions":{"anyOf":[{"anyOf":[{"type":"string"},{"type":"number"},{"type":"boolean"},{"type":"null"}]},{"type":"array","items":{}},{"type":"object","additionalProperties":{}}]}},"required":["escalation_chain_uid","name","respect_conditions"]},{"type":"object","properties":{"conditions":{"type":"array","items":{"$ref":"#/components/schemas/RoutingRuleConditionRequest"}}},"required":["conditions"]}]},"RoutingRuleWithConditions":{"allOf":[{"$ref":"#/components/schemas/RoutingRule"},{"type":"object","properties":{"conditions":{"type":"array","items":{"type":"object","properties":{"uid":{"type":"string","maxLength":36},"routing_rule_uid":{"anyOf":[{"type":"string","maxLength":36},{"type":"null"}]},"schema_uid":{"anyOf":[{"type":"string","maxLength":36},{"type":"null"}]},"field":{"type":"string","maxLength":255},"operator":{"type":"string","maxLength":50},"value":{"type":"string"},"is_not":{"anyOf":[{"type":"boolean"},{"type":"null"}]},"is_priority":{"anyOf":[{"type":"boolean"},{"type":"null"}]}},"required":["uid","routing_rule_uid","schema_uid","field","operator","value","is_not","is_priority"]}}},"required":["conditions"]}]},"RoutingRule":{"type":"object","properties":{"uid":{"type":"string","maxLength":36},"org_uid":{"type":"string","maxLength":36},"escalation_chain_uid":{"type":"string","maxLength":36},"name":{"type":"string","maxLength":255},"respect_conditions":{"anyOf":[{"anyOf":[{"type":"string"},{"type":"number"},{"type":"boolean"},{"type":"null"}]},{"type":"array","items":{}},{"type":"object","additionalProperties":{}}]},"created_at":{"type":"string","format":"date-time"}},"required":["uid","org_uid","escalation_chain_uid","name","respect_conditions","created_at"]},"AiEscalationAssignment":{"type":"object","properties":{"uid":{"type":"string","minLength":1,"maxLength":36},"org_uid":{"type":"string","minLength":1,"maxLength":36},"connection_uid":{"type":"string","minLength":1,"maxLength":36},"alert_instance_uid":{"type":"string","minLength":1,"maxLength":36},"status":{"type":"string"},"payload":{},"response_status":{"anyOf":[{"type":"string"},{"type":"null"}]},"response_text":{"anyOf":[{"type":"string"},{"type":"null"}]},"suggested_actions":{"anyOf":[{"type":"array","items":{}},{"type":"null"}]},"alert_title":{"anyOf":[{"type":"string"},{"type":"null"}]},"alert":{"type":"object","properties":{"uid":{"type":"string","minLength":1},"schema_uid":{"anyOf":[{"type":"string"},{"type":"null"}]},"fingerprint":{"anyOf":[{"type":"string"},{"type":"null"}]},"title":{"anyOf":[{"type":"string"},{"type":"null"}]},"description":{"anyOf":[{"type":"string"},{"type":"null"}]},"status":{"anyOf":[{"type":"string"},{"type":"null"}]},"created_at":{"type":"string","format":"date-time"},"parsed_fields":{"type":"object","additionalProperties":{}},"raw_body":{"type":"object","additionalProperties":{}}},"required":["uid"]},"same_pattern_alerts":{"type":"array","items":{"type":"object","properties":{"uid":{"type":"string","minLength":1},"schema_uid":{"anyOf":[{"type":"string"},{"type":"null"}]},"fingerprint":{"anyOf":[{"type":"string"},{"type":"null"}]},"title":{"anyOf":[{"type":"string"},{"type":"null"}]},"description":{"anyOf":[{"type":"string"},{"type":"null"}]},"status":{"anyOf":[{"type":"string"},{"type":"null"}]},"created_at":{"type":"string","format":"date-time"},"parsed_fields":{"type":"object","additionalProperties":{}},"raw_body":{"type":"object","additionalProperties":{}}},"required":["uid"]}},"rule_uids":{"type":"array","items":{"type":"string","minLength":1,"maxLength":36}},"rule_names":{"type":"array","items":{"type":"string","minLength":1,"maxLength":255}},"triggering_actor":{"type":"object","properties":{"kind":{"type":"string","minLength":1,"maxLength":64},"user_uid":{"type":"string","minLength":1,"maxLength":36},"token_uid":{"type":"string","minLength":1,"maxLength":36},"email":{"type":"string","minLength":1,"maxLength":255},"sub":{"type":"string","minLength":1,"maxLength":255},"name":{"type":"string","minLength":1,"maxLength":255}},"required":[]},"error_message":{"anyOf":[{"type":"string"},{"type":"null"}]},"fetched_at":{"anyOf":[{"type":"string"},{"type":"null"}]},"responded_at":{"anyOf":[{"type":"string"},{"type":"null"}]},"created_at":{"type":"string"},"updated_at":{"type":"string"}},"required":["uid","org_uid","connection_uid","alert_instance_uid","status","payload","created_at","updated_at"]},"AiEscalationUpdateRuleRequest":{"type":"object","required":["connection_uid","name","enabled","scope","response_character_limit","allowed_suggested_actions","conditions","enrichments"],"properties":{"connection_uid":{"type":"string"},"name":{"type":"string"},"enabled":{"type":"boolean"},"scope":{"type":"string","enum":["global","schema","chain"]},"scope_uid":{"type":["string","null"]},"response_character_limit":{"type":"integer","minimum":1,"maximum":200000},"timeout_seconds":{"type":"integer","minimum":30,"maximum":3600},"allowed_suggested_actions":{"type":"array","items":{"type":"string","enum":["resolve","escalate_further","escalate_to","start_incident","join_incident"]}},"conditions":{"type":"array","items":{"$ref":"#/components/schemas/AiEscalationCondition"}},"enrichments":{"type":"array","items":{"$ref":"#/components/schemas/AiEscalationEnrichment"}}}},"AiEscalationEnrichment":{"oneOf":[{"$ref":"#/components/schemas/AiEscalationContextEnrichment"},{"$ref":"#/components/schemas/AiEscalationSkillEnrichment"},{"$ref":"#/components/schemas/AiEscalationAgentEnrichment"},{"$ref":"#/components/schemas/AiEscalationMcpEnrichment"},{"$ref":"#/components/schemas/AiEscalationCliEnrichment"},{"$ref":"#/components/schemas/AiEscalationNoteEnrichment"}]},"AiEscalationNoteEnrichment":{"type":"object","required":["type","key"],"properties":{"type":{"type":"string"},"key":{"type":"string"},"label":{"type":"string"},"source":{"type":"string"},"body":{"type":"string"},"text":{"type":"string"}},"anyOf":[{"required":["body"]},{"required":["text"]}]},"AiEscalationCliEnrichment":{"type":"object","required":["type","key","name"],"properties":{"type":{"type":"string"},"key":{"type":"string"},"label":{"type":"string"},"source":{"type":"string"},"name":{"type":"string"},"auth_hint":{"type":"string"},"command":{"type":"string"},"args":{"type":"array","items":{"type":"string"}},"working_directory":{"type":"string"},"timeout_seconds":{"type":"integer","minimum":1,"maximum":3600},"required_env":{"type":"array","items":{"type":"string"}}}},"AiEscalationMcpEnrichment":{"type":"object","required":["type","key","name"],"properties":{"type":{"type":"string"},"key":{"type":"string"},"label":{"type":"string"},"source":{"type":"string"},"name":{"type":"string"},"tools":{"type":"array","items":{"type":"string"}},"required_env":{"type":"array","items":{"type":"string"}},"mode":{"type":"string","enum":["command","json"]},"json_payload":{"type":"object","additionalProperties":true},"command":{"type":"object","required":["command"],"properties":{"command":{"type":"string"},"args":{"type":"array","items":{"type":"string"}},"working_directory":{"type":"string"},"timeout_seconds":{"type":"integer","minimum":1,"maximum":3600},"env":{"type":"array","items":{"type":"string"}}}},"server":{"type":"string"},"tool":{"type":"string"},"arguments":{"type":"object","additionalProperties":true}}},"AiEscalationAgentEnrichment":{"type":"object","required":["type","key","instructions"],"properties":{"type":{"type":"string"},"key":{"type":"string"},"label":{"type":"string"},"source":{"type":"string"},"link":{"type":"string"},"file_path":{"type":"string"},"recommended_authorization":{"type":"string"},"fallback_authorization":{"type":"array","items":{"type":"string"}},"auth_hint":{"type":"string"},"instructions":{"type":"string"}},"anyOf":[{"required":["link"]},{"required":["file_path"]}]},"AiEscalationSkillEnrichment":{"type":"object","required":["type","key"],"properties":{"type":{"type":"string"},"key":{"type":"string"},"label":{"type":"string"},"source":{"type":"string"},"link":{"type":"string"},"file_path":{"type":"string"},"recommended_authorization":{"type":"string"},"fallback_authorization":{"type":"array","items":{"type":"string"}},"auth_hint":{"type":"string"},"name":{"type":"string"},"instructions":{"type":"string"}},"anyOf":[{"required":["link"]},{"required":["file_path"]},{"required":["instructions"]}]},"AiEscalationContextEnrichment":{"type":"object","required":["type","key"],"properties":{"type":{"type":"string"},"key":{"type":"string"},"label":{"type":"string"},"source":{"type":"string"},"link":{"type":"string"},"file_path":{"type":"string"},"recommended_authorization":{"type":"string"},"fallback_authorization":{"type":"array","items":{"type":"string"}},"auth_hint":{"type":"string"},"content":{"type":"string"}},"anyOf":[{"required":["link"]},{"required":["file_path"]},{"required":["content"]}]},"AiEscalationCondition":{"type":"object","properties":{"field":{"type":"string","minLength":1,"maxLength":255},"operator":{"anyOf":[{"const":"equals"},{"const":"contains"},{"const":"startsWith"},{"const":"endsWith"},{"const":"matches"},{"const":"gt"},{"const":"lt"},{"const":"gte"},{"const":"lte"}]},"value":{"type":"string","maxLength":4000},"is_not":{"type":"boolean"},"is_priority":{"type":"boolean"},"schema_uid":{"anyOf":[{"type":"string","minLength":1,"maxLength":36},{"type":"null"}]}},"required":["field","operator","value"]},"AiEscalationCreateRuleRequest":{"type":"object","required":["connection_uid","name","scope","response_character_limit","allowed_suggested_actions","conditions","enrichments"],"properties":{"connection_uid":{"type":"string"},"name":{"type":"string"},"enabled":{"type":"boolean"},"scope":{"type":"string","enum":["global","schema","chain"]},"scope_uid":{"type":["string","null"]},"response_character_limit":{"type":"integer","minimum":1,"maximum":200000},"timeout_seconds":{"type":"integer","minimum":30,"maximum":3600},"allowed_suggested_actions":{"type":"array","items":{"type":"string","enum":["resolve","escalate_further","escalate_to","start_incident","join_incident"]}},"conditions":{"type":"array","items":{"$ref":"#/components/schemas/AiEscalationCondition"}},"enrichments":{"type":"array","items":{"$ref":"#/components/schemas/AiEscalationEnrichment"}}}},"AiEscalationSafeRule":{"type":"object","required":["uid","org_uid","connection_uid","name","enabled","scope","response_character_limit","timeout_seconds","allowed_suggested_actions","conditions","enrichments","created_at","updated_at"],"properties":{"uid":{"type":"string"},"org_uid":{"type":"string"},"connection_uid":{"type":"string"},"name":{"type":"string"},"enabled":{"type":"boolean"},"scope":{"type":"string","enum":["global","schema","chain"]},"scope_uid":{"type":["string","null"]},"response_character_limit":{"type":"integer","minimum":1,"maximum":200000},"timeout_seconds":{"type":"integer","minimum":30,"maximum":3600},"allowed_suggested_actions":{"type":"array","items":{"type":"string","enum":["resolve","escalate_further","escalate_to","start_incident","join_incident"]}},"conditions":{"type":"array","items":{"$ref":"#/components/schemas/AiEscalationCondition"}},"enrichments":{"type":"array","items":{"$ref":"#/components/schemas/AiEscalationEnrichment"}},"created_at":{"type":"string"},"updated_at":{"type":"string"}}},"AiEscalationUpdateConnectionRequest":{"type":"object","properties":{"name":{"type":"string","minLength":1,"maxLength":255},"enabled":{"type":"boolean"}},"required":["name","enabled"]},"AiEscalationCreateConnectionRequest":{"type":"object","properties":{"name":{"type":"string","minLength":1,"maxLength":255},"enabled":{"type":"boolean"}},"required":["name"]},"AiEscalationCreateConnectionResponse":{"type":"object","properties":{"connection":{"$ref":"#/components/schemas/AiEscalationSafeConnection"},"secret":{"type":"string","minLength":1}},"required":["connection","secret"]},"AiEscalationSafeConnection":{"type":"object","properties":{"uid":{"type":"string","minLength":1,"maxLength":36},"org_uid":{"type":"string","minLength":1,"maxLength":36},"name":{"type":"string","minLength":1,"maxLength":255},"enabled":{"type":"boolean"},"status":{"anyOf":[{"const":"connected"},{"const":"disconnected"},{"const":"revoked"}]},"last_heartbeat_at":{"anyOf":[{"type":"string"},{"type":"null"}]},"last_seen_at":{"anyOf":[{"type":"string"},{"type":"null"}]},"last_connected_at":{"anyOf":[{"type":"string"},{"type":"null"}]},"last_disconnected_at":{"anyOf":[{"type":"string"},{"type":"null"}]},"created_at":{"type":"string"},"updated_at":{"type":"string"}},"required":["uid","org_uid","name","enabled","status","created_at","updated_at"]},"escalation_1":{"anyOf":[{"type":"string"},{"type":"number"},{"type":"boolean"},{"type":"null"},{"type":"array","items":{"$ref":"#/components/schemas/1"}},{"type":"object","additionalProperties":{"$ref":"#/components/schemas/1"}}]},"CreateEscalationScheduleOverrideRequest":{"type":"object","properties":{"user_uid":{"type":"string"},"start_at":{"type":"string"},"end_at":{"type":"string"}},"required":["user_uid","start_at","end_at"]},"EscalationScheduleOverride":{"type":"object","properties":{"uid":{"type":"string","maxLength":36},"schedule_uid":{"type":"string","maxLength":36},"user_uid":{"type":"string","maxLength":36},"start_at":{"type":"string","format":"date-time"},"end_at":{"type":"string","format":"date-time"},"created_at":{"type":"string","format":"date-time"}},"required":["uid","schedule_uid","user_uid","start_at","end_at","created_at"]},"UpdateEscalationScheduleRequest":{"type":"object","properties":{"name":{"type":"string"},"description":{"anyOf":[{"type":"string"},{"type":"null"}]},"timezone":{"type":"string"},"layers":{"type":"array","items":{"type":"object","properties":{"name":{"type":"string"},"rotation_type":{"type":"string"},"rotation_interval":{"type":"number"},"shift_start":{"type":"string"},"shift_length_seconds":{"type":"number"},"users":{"type":"array","items":{"type":"string"}},"layer_order":{"type":"number","minimum":1}},"required":["name","rotation_type","shift_start","shift_length_seconds","users"]}}},"required":["name","description","timezone","layers"]},"CreateEscalationScheduleRequest":{"type":"object","properties":{"name":{"type":"string"},"description":{"type":"string"},"timezone":{"type":"string"},"layers":{"type":"array","items":{"type":"object","properties":{"name":{"type":"string"},"rotation_type":{"type":"string"},"rotation_interval":{"type":"number"},"shift_start":{"type":"string"},"shift_length_seconds":{"type":"number"},"users":{"type":"array","items":{"type":"string"}},"layer_order":{"type":"number","minimum":1}},"required":["name","rotation_type","shift_start","shift_length_seconds","users"]}}},"required":["name"]},"EscalationSchedule":{"type":"object","properties":{"uid":{"type":"string","maxLength":36},"org_uid":{"type":"string","maxLength":36},"name":{"type":"string","maxLength":255},"description":{"anyOf":[{"type":"string"},{"type":"null"}]},"timezone":{"anyOf":[{"type":"string","maxLength":100},{"type":"null"}]},"created_at":{"type":"string","format":"date-time"},"updated_at":{"type":"string","format":"date-time"}},"required":["uid","org_uid","name","description","timezone","created_at","updated_at"]},"EscalationFlowRequest":{"type":"object","properties":{"chains":{"type":"array","items":{"type":"string"}},"lines":{"type":"array","items":{"type":"string"}},"routing_rules":{"type":"array","items":{"type":"string"}},"users":{"type":"array","items":{"type":"string"}},"teams":{"type":"array","items":{"type":"string"}},"schedules":{"type":"array","items":{"type":"string"}}},"required":[]},"UnpackedResponders":{"type":"object","properties":{"responders":{"type":"array","items":{"type":"object","properties":{"user_email":{"type":"string"},"user_uid":{"type":"string"},"user_first_name":{"type":"string"},"user_last_name":{"type":"string"},"user_phone_number":{"type":"string"},"member_types":{"type":"array","items":{"anyOf":[{"const":"user"},{"const":"team"},{"const":"schedule"}]}},"original_members":{"type":"array","items":{"type":"string"}},"explanation":{"type":"object","properties":{"routing_rules":{"type":"array","items":{"type":"object","properties":{"uid":{"type":"string"},"name":{"type":"string"},"conditions_matched":{"type":"array","items":{"type":"object","properties":{"schema_uid":{"type":"string"},"field":{"type":"string"},"operator":{"type":"string"},"value":{"type":"string"},"actual_value":{"$ref":"#/components/schemas/1"},"matched":{"type":"boolean"}},"required":["field","operator","value","actual_value","matched"]}}},"required":["uid","name","conditions_matched"]}},"escalation_chains":{"type":"array","items":{"type":"object","properties":{"uid":{"type":"string"},"name":{"type":"string"},"routing_rule_uid":{"type":"string"},"conditions_applied":{"type":"array","items":{"type":"object","properties":{"field":{"type":"string"},"operator":{"type":"string"},"value":{"type":"string"},"actual_value":{"$ref":"#/components/schemas/1"},"matched":{"type":"boolean"},"actions":{"type":"array","items":{"type":"object","properties":{"type":{"type":"string"},"line_uid":{"type":"string"},"new_order":{"anyOf":[{"const":-1},{"type":"number","minimum":1}]}},"required":["type"]}}},"required":["field","operator","value","actual_value","matched"]}}},"required":["uid","name","conditions_applied"]}},"escalation_lines":{"type":"array","items":{"type":"object","properties":{"uid":{"type":"string"},"name":{"type":"string"},"description":{"type":"string"},"escalation_chain_uid":{"type":"string"},"line_order":{"type":"number"},"line_timeout_seconds":{"type":"number"}},"required":["uid","name","line_order"]}},"line_memberships":{"type":"array","items":{"type":"object","properties":{"uid":{"type":"string"},"escalation_line_uid":{"type":"string"},"team_member_uid":{"type":"string"},"email":{"type":"string"},"schedule_uid":{"type":"string"},"communication_rule_uid":{"type":"string"},"member_order":{"type":"number"},"delay_seconds":{"type":"number"},"repeat_interval_seconds":{"type":"number"}},"required":["uid"]}},"team_memberships":{"type":"array","items":{"type":"object","properties":{"team_uid":{"type":"string"},"team_name":{"type":"string"},"team_description":{"type":"string"},"user_uid":{"type":"string"}},"required":["team_uid","user_uid"]}},"escalation_schedules":{"type":"array","items":{"$ref":"#/components/schemas/EscalationSchedule"}},"escalation_schedule_overrides":{"type":"array","items":{"$ref":"#/components/schemas/EscalationScheduleOverride"}}},"required":[]}},"required":["user_email","explanation"]}}},"required":["responders"]},"UpdateEscalationLineMemberRequest":{"type":"object","properties":{"team_member_uid":{"anyOf":[{"type":"string"},{"type":"null"}]},"email":{"anyOf":[{"type":"string"},{"type":"null"}]},"schedule_uid":{"anyOf":[{"type":"string"},{"type":"null"}]},"communication_rule_uid":{"anyOf":[{"type":"string"},{"type":"null"}]},"member_order":{"type":"number","minimum":1},"delay_seconds":{"type":"number"},"repeat_interval_seconds":{"type":"number"}},"required":["team_member_uid","email","schedule_uid","communication_rule_uid","member_order","delay_seconds","repeat_interval_seconds"]},"CreateEscalationLineMemberRequest":{"type":"object","properties":{"escalation_line_uid":{"type":"string"},"team_member_uid":{"type":"string"},"email":{"type":"string"},"schedule_uid":{"type":"string"},"communication_rule_uid":{"type":"string"},"member_order":{"type":"number","minimum":1},"delay_seconds":{"type":"number"},"repeat_interval_seconds":{"type":"number"}},"required":["escalation_line_uid"]},"EscalationLineMember":{"type":"object","properties":{"uid":{"type":"string","maxLength":36},"escalation_line_uid":{"anyOf":[{"type":"string","maxLength":36},{"type":"null"}]},"team_member_uid":{"anyOf":[{"type":"string","maxLength":36},{"type":"null"}]},"email":{"anyOf":[{"type":"string","maxLength":255},{"type":"null"}]},"schedule_uid":{"anyOf":[{"type":"string"},{"type":"null"}]},"communication_rule_uid":{"anyOf":[{"type":"string","maxLength":36},{"type":"null"}]},"member_order":{"anyOf":[{"type":"integer","minimum":-2147483648,"maximum":2147483647},{"type":"null"}]},"delay_seconds":{"anyOf":[{"type":"integer","minimum":-2147483648,"maximum":2147483647},{"type":"null"}]},"repeat_interval_seconds":{"anyOf":[{"type":"integer","minimum":-2147483648,"maximum":2147483647},{"type":"null"}]}},"required":["uid","escalation_line_uid","team_member_uid","email","communication_rule_uid","member_order","delay_seconds","repeat_interval_seconds"]},"EscalationLineDeleteImpact":{"type":"object","properties":{"line_uid":{"type":"string"},"deleted_line_members":{"type":"number"},"detached_escalation_states_line_refs":{"type":"number"},"detached_alert_assignments_line_refs":{"type":"number"}},"required":["line_uid","deleted_line_members","detached_escalation_states_line_refs","detached_alert_assignments_line_refs"]},"UpdateEscalationLineRequest":{"type":"object","properties":{"escalation_chain_uid":{"anyOf":[{"type":"string"},{"type":"null"}]},"name":{"type":"string"},"description":{"anyOf":[{"type":"string"},{"type":"null"}]},"line_order":{"type":"number","minimum":1},"timeout_seconds":{"anyOf":[{"type":"number"},{"type":"null"}]}},"required":["escalation_chain_uid","name","description","line_order","timeout_seconds"]},"CreateEscalationLineRequest":{"type":"object","properties":{"escalation_chain_uid":{"type":"string"},"name":{"type":"string"},"description":{"type":"string"},"line_order":{"type":"number","minimum":1},"timeout_seconds":{"type":"number"}},"required":["escalation_chain_uid","name","line_order"]},"EscalationLine":{"type":"object","properties":{"uid":{"type":"string","maxLength":36},"org_uid":{"type":"string","maxLength":36},"escalation_chain_uid":{"anyOf":[{"type":"string","maxLength":36},{"type":"null"}]},"name":{"type":"string","maxLength":255},"description":{"anyOf":[{"type":"string"},{"type":"null"}]},"line_order":{"type":"integer","minimum":-2147483648,"maximum":2147483647},"timeout_seconds":{"anyOf":[{"type":"integer","minimum":-2147483648,"maximum":2147483647},{"type":"null"}]},"created_at":{"type":"string","format":"date-time"},"updated_at":{"type":"string","format":"date-time"}},"required":["uid","org_uid","escalation_chain_uid","name","description","line_order","timeout_seconds","created_at","updated_at"]},"EscalationChainDeleteImpact":{"type":"object","properties":{"chain_uid":{"type":"string"},"deleted_lines":{"type":"number"},"deleted_line_members":{"type":"number"},"deleted_chain_conditions":{"type":"number"},"detached_escalation_states_chain_refs":{"type":"number"},"detached_escalation_states_line_refs":{"type":"number"},"detached_alert_assignments_chain_refs":{"type":"number"},"detached_alert_assignments_line_refs":{"type":"number"},"blocking_routing_rules":{"type":"number"},"can_delete":{"type":"boolean"}},"required":["chain_uid","deleted_lines","deleted_line_members","deleted_chain_conditions","detached_escalation_states_chain_refs","detached_escalation_states_line_refs","detached_alert_assignments_chain_refs","detached_alert_assignments_line_refs","blocking_routing_rules","can_delete"]},"UpdateEscalationChainRequest":{"allOf":[{"type":"object","properties":{"name":{"type":"string"},"description":{"anyOf":[{"type":"string"},{"type":"null"}]}},"required":["name","description"]},{"type":"object","properties":{"respect_conditions":{"anyOf":[{"anyOf":[{"anyOf":[{"type":"string"},{"type":"number"},{"type":"boolean"},{"type":"null"}]},{"type":"array","items":{}},{"type":"object","additionalProperties":{}}]},{"type":"null"}]}},"required":["respect_conditions"]},{"type":"object","properties":{"conditions":{"type":"array","items":{"$ref":"#/components/schemas/EscalationChainConditionRequest"}}},"required":["conditions"]}]},"EscalationChainConditionRequest":{"type":"object","properties":{"field":{"type":"string"},"operator":{"anyOf":[{"const":"equals"},{"const":"contains"},{"const":"startsWith"},{"const":"endsWith"},{"const":"matches"},{"const":"gt"},{"const":"lt"},{"const":"gte"},{"const":"lte"}]},"value":{},"is_not":{"type":"boolean"},"is_priority":{"type":"boolean"},"is_time":{"type":"boolean"},"actions":{"type":"array","items":{"$ref":"#/components/schemas/EscalationChainAction"}}},"required":["field","operator","value"]},"EscalationChainAction":{"type":"object","properties":{"type":{"const":"override_line_order"},"line_uid":{"type":"string"},"new_order":{"anyOf":[{"const":-1},{"type":"number","minimum":1}]}},"required":["type"]},"CreateEscalationChainRequest":{"allOf":[{"type":"object","properties":{"name":{"type":"string","maxLength":255},"description":{"anyOf":[{"type":"string"},{"type":"null"}]},"respect_conditions":{"anyOf":[{"anyOf":[{"anyOf":[{"type":"string"},{"type":"number"},{"type":"boolean"},{"type":"null"}]},{"type":"array","items":{}},{"type":"object","additionalProperties":{}}]},{"type":"null"}]}},"required":["name","description","respect_conditions"]},{"type":"object","properties":{"conditions":{"type":"array","items":{"$ref":"#/components/schemas/EscalationChainConditionRequest"}}},"required":[]}]},"EscalationChain":{"type":"object","properties":{"uid":{"type":"string","maxLength":36},"org_uid":{"type":"string","maxLength":36},"name":{"type":"string","maxLength":255},"description":{"anyOf":[{"type":"string"},{"type":"null"}]},"respect_conditions":{"anyOf":[{"anyOf":[{"anyOf":[{"type":"string"},{"type":"number"},{"type":"boolean"},{"type":"null"}]},{"type":"array","items":{}},{"type":"object","additionalProperties":{}}]},{"type":"null"}]},"created_at":{"type":"string","format":"date-time"},"updated_at":{"type":"string","format":"date-time"}},"required":["uid","org_uid","name","description","respect_conditions","created_at","updated_at"]},"proxy_1":{"anyOf":[{"type":"string"},{"type":"number"},{"type":"boolean"},{"type":"null"},{"type":"array","items":{"$ref":"#/components/schemas/1"}},{"type":"object","additionalProperties":{"$ref":"#/components/schemas/1"}}]},"EnhancedAlertInstancesResponse":{"allOf":[{"type":"object","properties":{"limit":{"type":"string","pattern":"^\\d+$","description":"Pagination limit as string"},"offset":{"type":"string","pattern":"^\\d+$","description":"Pagination offset as string"}},"required":[]},{"type":"object","properties":{"total":{"type":"number"},"filters":{"type":"object","properties":{"schema_uid":{"type":"string"},"status":{"anyOf":[{"const":"firing"},{"const":"acknowledged"},{"const":"resolved"}]},"processing_status":{"anyOf":[{"const":"pending"},{"const":"orphan"},{"const":"completed"},{"const":"failed"}]},"start_date":{"type":"string"},"end_date":{"type":"string"},"order_by":{"anyOf":[{"const":"newest"},{"const":"oldest"}]},"q":{"type":"string"}},"required":[]},"data":{"type":"array","items":{"allOf":[{"type":"object","properties":{"uid":{"type":"string","maxLength":36},"org_uid":{"type":"string","maxLength":36},"schema_uid":{"anyOf":[{"type":"string","maxLength":36},{"type":"null"}]},"alert_body":{"anyOf":[{"anyOf":[{"type":"string"},{"type":"number"},{"type":"boolean"},{"type":"null"}]},{"type":"array","items":{}},{"type":"object","additionalProperties":{}}]},"status":{"anyOf":[{"type":"string","maxLength":20},{"type":"null"}]},"processing_status":{"anyOf":[{"type":"string","maxLength":20},{"type":"null"}]},"acknowledged_by":{"anyOf":[{"type":"string","maxLength":36},{"type":"null"}]},"acknowledged_at":{"anyOf":[{"type":"string","format":"date-time"},{"type":"null"}]},"first_acknowledged_at":{"anyOf":[{"type":"string","format":"date-time"},{"type":"null"}]},"resolved_at":{"anyOf":[{"type":"string","format":"date-time"},{"type":"null"}]},"mtta_seconds":{"anyOf":[{"type":"integer","minimum":-2147483648,"maximum":2147483647},{"type":"null"}]},"mttr_seconds":{"anyOf":[{"type":"integer","minimum":-2147483648,"maximum":2147483647},{"type":"null"}]},"created_at":{"anyOf":[{"type":"string","format":"date-time"},{"type":"null"}]}},"required":[]},{"type":"object","properties":{"unpacked_responders":{"type":"object","properties":{"responders":{"type":"array","items":{"type":"object","properties":{"user_email":{"type":"string"},"user_uid":{"type":"string"},"user_first_name":{"type":"string"},"user_last_name":{"type":"string"},"user_phone_number":{"type":"string"},"member_types":{"type":"array","items":{"anyOf":[{"const":"user"},{"const":"team"},{"const":"schedule"}]}},"original_members":{"type":"array","items":{"type":"string"}},"explanation":{"type":"object","properties":{"routing_rules":{"type":"array","items":{"type":"object","properties":{"uid":{"type":"string"},"name":{"type":"string"},"conditions_matched":{"type":"array","items":{"type":"object","properties":{"schema_uid":{"type":"string"},"field":{"type":"string"},"operator":{"type":"string"},"value":{"type":"string"},"actual_value":{"$ref":"#/components/schemas/1"},"matched":{"type":"boolean"}},"required":["field","operator","value","actual_value","matched"]}}},"required":["uid","name","conditions_matched"]}},"escalation_chains":{"type":"array","items":{"type":"object","properties":{"uid":{"type":"string"},"name":{"type":"string"},"routing_rule_uid":{"type":"string"},"conditions_applied":{"type":"array","items":{"type":"object","properties":{"field":{"type":"string"},"operator":{"type":"string"},"value":{"type":"string"},"actual_value":{"$ref":"#/components/schemas/1"},"matched":{"type":"boolean"},"actions":{"type":"array","items":{"type":"object","properties":{"type":{"type":"string"},"line_uid":{"type":"string"},"new_order":{"anyOf":[{"const":-1},{"type":"number","minimum":1}]}},"required":["type"]}}},"required":["field","operator","value","actual_value","matched"]}}},"required":["uid","name","conditions_applied"]}},"escalation_lines":{"type":"array","items":{"type":"object","properties":{"uid":{"type":"string"},"name":{"type":"string"},"description":{"type":"string"},"escalation_chain_uid":{"type":"string"},"line_order":{"type":"number"},"line_timeout_seconds":{"type":"number"}},"required":["uid","name","line_order"]}},"line_memberships":{"type":"array","items":{"type":"object","properties":{"uid":{"type":"string"},"escalation_line_uid":{"type":"string"},"team_member_uid":{"type":"string"},"email":{"type":"string"},"schedule_uid":{"type":"string"},"communication_rule_uid":{"type":"string"},"member_order":{"type":"number"},"delay_seconds":{"type":"number"},"repeat_interval_seconds":{"type":"number"}},"required":["uid"]}},"team_memberships":{"type":"array","items":{"type":"object","properties":{"team_uid":{"type":"string"},"team_name":{"type":"string"},"team_description":{"type":"string"},"user_uid":{"type":"string"}},"required":["team_uid","user_uid"]}},"escalation_schedules":{"type":"array","items":{"type":"object","properties":{"uid":{"type":"string","maxLength":36},"org_uid":{"type":"string","maxLength":36},"name":{"type":"string","maxLength":255},"description":{"anyOf":[{"type":"string"},{"type":"null"}]},"timezone":{"anyOf":[{"type":"string","maxLength":100},{"type":"null"}]},"created_at":{"type":"string","format":"date-time"},"updated_at":{"type":"string","format":"date-time"}},"required":["uid","org_uid","name","description","timezone","created_at","updated_at"]}},"escalation_schedule_overrides":{"type":"array","items":{"type":"object","properties":{"uid":{"type":"string","maxLength":36},"schedule_uid":{"type":"string","maxLength":36},"user_uid":{"type":"string","maxLength":36},"start_at":{"type":"string","format":"date-time"},"end_at":{"type":"string","format":"date-time"},"created_at":{"type":"string","format":"date-time"}},"required":["uid","schedule_uid","user_uid","start_at","end_at","created_at"]}}},"required":[]}},"required":["user_email","explanation"]}}},"required":["responders"]},"ai_escalation_assignments":{"type":"array","items":{"type":"object","properties":{"uid":{"type":"string"},"status":{"anyOf":[{"type":"string"},{"type":"null"}]},"created_at":{"anyOf":[{"type":"string"},{"type":"null"}]}},"required":["uid","status","created_at"]}},"parsed_fields":{"type":"object","additionalProperties":{}},"fingerprint":{"type":"string"},"repeats":{"type":"number"}},"required":["unpacked_responders","fingerprint","repeats"]}]}}},"required":["total","filters","data"]}]},"EnhancedAlertInstance":{"allOf":[{"allOf":[{"type":"object","properties":{"uid":{"type":"string","maxLength":36},"org_uid":{"type":"string","maxLength":36},"schema_uid":{"anyOf":[{"type":"string","maxLength":36},{"type":"null"}]},"alert_body":{"anyOf":[{"anyOf":[{"type":"string"},{"type":"number"},{"type":"boolean"},{"type":"null"}]},{"type":"array","items":{}},{"type":"object","additionalProperties":{}}]},"status":{"anyOf":[{"type":"string","maxLength":20},{"type":"null"}]},"processing_status":{"anyOf":[{"type":"string","maxLength":20},{"type":"null"}]},"acknowledged_by":{"anyOf":[{"type":"string","maxLength":36},{"type":"null"}]},"acknowledged_at":{"anyOf":[{"type":"string","format":"date-time"},{"type":"null"}]},"first_acknowledged_at":{"anyOf":[{"type":"string","format":"date-time"},{"type":"null"}]},"resolved_at":{"anyOf":[{"type":"string","format":"date-time"},{"type":"null"}]},"mtta_seconds":{"anyOf":[{"type":"integer","minimum":-2147483648,"maximum":2147483647},{"type":"null"}]},"mttr_seconds":{"anyOf":[{"type":"integer","minimum":-2147483648,"maximum":2147483647},{"type":"null"}]},"created_at":{"anyOf":[{"type":"string","format":"date-time"},{"type":"null"}]}},"required":[]},{"type":"object","properties":{"unpacked_responders":{"type":"object","properties":{"responders":{"type":"array","items":{"type":"object","properties":{"user_email":{"type":"string"},"user_uid":{"type":"string"},"user_first_name":{"type":"string"},"user_last_name":{"type":"string"},"user_phone_number":{"type":"string"},"member_types":{"type":"array","items":{"anyOf":[{"const":"user"},{"const":"team"},{"const":"schedule"}]}},"original_members":{"type":"array","items":{"type":"string"}},"explanation":{"type":"object","properties":{"routing_rules":{"type":"array","items":{"type":"object","properties":{"uid":{"type":"string"},"name":{"type":"string"},"conditions_matched":{"type":"array","items":{"type":"object","properties":{"schema_uid":{"type":"string"},"field":{"type":"string"},"operator":{"type":"string"},"value":{"type":"string"},"actual_value":{"$ref":"#/components/schemas/1"},"matched":{"type":"boolean"}},"required":["field","operator","value","actual_value","matched"]}}},"required":["uid","name","conditions_matched"]}},"escalation_chains":{"type":"array","items":{"type":"object","properties":{"uid":{"type":"string"},"name":{"type":"string"},"routing_rule_uid":{"type":"string"},"conditions_applied":{"type":"array","items":{"type":"object","properties":{"field":{"type":"string"},"operator":{"type":"string"},"value":{"type":"string"},"actual_value":{"$ref":"#/components/schemas/1"},"matched":{"type":"boolean"},"actions":{"type":"array","items":{"type":"object","properties":{"type":{"type":"string"},"line_uid":{"type":"string"},"new_order":{"anyOf":[{"const":-1},{"type":"number","minimum":1}]}},"required":["type"]}}},"required":["field","operator","value","actual_value","matched"]}}},"required":["uid","name","conditions_applied"]}},"escalation_lines":{"type":"array","items":{"type":"object","properties":{"uid":{"type":"string"},"name":{"type":"string"},"description":{"type":"string"},"escalation_chain_uid":{"type":"string"},"line_order":{"type":"number"},"line_timeout_seconds":{"type":"number"}},"required":["uid","name","line_order"]}},"line_memberships":{"type":"array","items":{"type":"object","properties":{"uid":{"type":"string"},"escalation_line_uid":{"type":"string"},"team_member_uid":{"type":"string"},"email":{"type":"string"},"schedule_uid":{"type":"string"},"communication_rule_uid":{"type":"string"},"member_order":{"type":"number"},"delay_seconds":{"type":"number"},"repeat_interval_seconds":{"type":"number"}},"required":["uid"]}},"team_memberships":{"type":"array","items":{"type":"object","properties":{"team_uid":{"type":"string"},"team_name":{"type":"string"},"team_description":{"type":"string"},"user_uid":{"type":"string"}},"required":["team_uid","user_uid"]}},"escalation_schedules":{"type":"array","items":{"type":"object","properties":{"uid":{"type":"string","maxLength":36},"org_uid":{"type":"string","maxLength":36},"name":{"type":"string","maxLength":255},"description":{"anyOf":[{"type":"string"},{"type":"null"}]},"timezone":{"anyOf":[{"type":"string","maxLength":100},{"type":"null"}]},"created_at":{"type":"string","format":"date-time"},"updated_at":{"type":"string","format":"date-time"}},"required":["uid","org_uid","name","description","timezone","created_at","updated_at"]}},"escalation_schedule_overrides":{"type":"array","items":{"type":"object","properties":{"uid":{"type":"string","maxLength":36},"schedule_uid":{"type":"string","maxLength":36},"user_uid":{"type":"string","maxLength":36},"start_at":{"type":"string","format":"date-time"},"end_at":{"type":"string","format":"date-time"},"created_at":{"type":"string","format":"date-time"}},"required":["uid","schedule_uid","user_uid","start_at","end_at","created_at"]}}},"required":[]}},"required":["user_email","explanation"]}}},"required":["responders"]},"ai_escalation_assignments":{"type":"array","items":{"type":"object","properties":{"uid":{"type":"string"},"status":{"anyOf":[{"type":"string"},{"type":"null"}]},"created_at":{"anyOf":[{"type":"string"},{"type":"null"}]}},"required":["uid","status","created_at"]}},"parsed_fields":{"type":"object","additionalProperties":{}},"fingerprint":{"type":"string"},"repeats":{"type":"number"}},"required":["unpacked_responders","fingerprint","repeats"]}]},{"type":"object","properties":{"escalation_assignments":{"type":"array","items":{"allOf":[{"type":"object","properties":{"uid":{"type":"string","maxLength":36},"alert_instance_uid":{"anyOf":[{"type":"string","maxLength":36},{"type":"null"}]},"escalation_chain_uid":{"anyOf":[{"type":"string","maxLength":36},{"type":"null"}]},"escalation_line_uid":{"anyOf":[{"type":"string","maxLength":36},{"type":"null"}]},"team_member_uid":{"anyOf":[{"type":"string","maxLength":36},{"type":"null"}]},"email":{"anyOf":[{"type":"string","maxLength":255},{"type":"null"}]},"schedule_uid":{"anyOf":[{"type":"string","maxLength":36},{"type":"null"}]},"communication_rule_uid":{"anyOf":[{"type":"string","maxLength":36},{"type":"null"}]},"assigned_at":{"anyOf":[{"type":"string","format":"date-time"},{"type":"null"}]},"terminal_at":{"anyOf":[{"type":"string","format":"date-time"},{"type":"null"}]},"terminal_reason":{"anyOf":[{"type":"string","maxLength":32},{"type":"null"}]},"duration_seconds":{"anyOf":[{"type":"integer","minimum":-2147483648,"maximum":2147483647},{"type":"null"}]},"status":{"anyOf":[{"type":"string","maxLength":20},{"type":"null"}]}},"required":["uid","alert_instance_uid","escalation_chain_uid","escalation_line_uid","team_member_uid","email","schedule_uid","communication_rule_uid","terminal_reason","duration_seconds","status"]},{"type":"object","properties":{"escalation_line_name":{"type":"string"}},"required":[]}]}},"escalation_line_timings":{"type":"array","items":{"allOf":[{"type":"object","properties":{"uid":{"type":"string","maxLength":36},"alert_instance_uid":{"type":"string","maxLength":36},"escalation_chain_uid":{"type":"string","maxLength":36},"escalation_line_uid":{"type":"string","maxLength":36},"entered_at":{"anyOf":[{"type":"string","format":"date-time"},{"type":"null"}]},"exited_at":{"anyOf":[{"type":"string","format":"date-time"},{"type":"null"}]},"exit_reason":{"anyOf":[{"type":"string","maxLength":32},{"type":"null"}]},"duration_seconds":{"anyOf":[{"type":"integer","minimum":-2147483648,"maximum":2147483647},{"type":"null"}]}},"required":["uid","alert_instance_uid","escalation_chain_uid","escalation_line_uid","exit_reason","duration_seconds"]},{"type":"object","properties":{"escalation_line_name":{"type":"string"}},"required":[]}]}},"escalation_state":{"type":"object","properties":{"uid":{"type":"string","maxLength":36},"alert_instance_uid":{"anyOf":[{"type":"string","maxLength":36},{"type":"null"}]},"escalation_chain_uid":{"anyOf":[{"type":"string","maxLength":36},{"type":"null"}]},"current_line_uid":{"anyOf":[{"type":"string","maxLength":36},{"type":"null"}]},"status":{"anyOf":[{"type":"string","maxLength":20},{"type":"null"}]},"started_at":{"anyOf":[{"type":"string","format":"date-time"},{"type":"null"}]},"timeout_at":{"anyOf":[{"type":"string","format":"date-time"},{"type":"null"}]}},"required":["uid","alert_instance_uid","escalation_chain_uid","current_line_uid","status"]}},"required":["escalation_assignments","escalation_line_timings"]}]},"AlertInstanceHistoryResponse":{"type":"object","properties":{"data":{"type":"array","items":{"$ref":"#/components/schemas/AlertInstanceAuditEvent"}},"limit":{"type":"string"},"order_by":{"anyOf":[{"const":"newest"},{"const":"oldest"}]},"next_cursor":{"anyOf":[{"type":"string"},{"type":"null"}]}},"required":["data","limit","order_by","next_cursor"]},"AlertInstanceAuditEvent":{"allOf":[{"type":"object","properties":{"uid":{"type":"string"},"alert_instance_uid":{"type":"string"},"event_type":{"anyOf":[{"const":"proxy.ingested"},{"const":"proxy.pattern_extraction_completed"},{"const":"escalation.routing_rule_matched"},{"const":"escalation.chain_matched"},{"const":"escalation.state_changed"},{"const":"escalation.assignment_created"},{"const":"escalation.assignment_terminal"},{"const":"alert_action.acknowledged"},{"const":"alert_action.unacknowledged"},{"const":"alert_action.resolved"},{"const":"alert_action.escalate_further"},{"const":"alert_action.escalate_to"},{"const":"alert_action.escalate_to_ai"}]},"actor_email":{"anyOf":[{"type":"string"},{"type":"null"}]},"actor_name":{"anyOf":[{"type":"string"},{"type":"null"}]},"payload":{"anyOf":[{},{"type":"null"}]},"created_at":{"type":"string","format":"date-time"}},"required":["uid","alert_instance_uid","event_type","actor_email","actor_name","payload","created_at"]},{"type":"object","properties":{"status":{"anyOf":[{"type":"string"},{"type":"null"}]},"result":{"anyOf":[{"type":"string"},{"type":"null"}]},"summary":{"anyOf":[{"type":"string"},{"type":"null"}]}},"required":[]}]},"Team":{"type":"object","properties":{"uid":{"type":"string","maxLength":36},"org_uid":{"type":"string","maxLength":36},"name":{"type":"string","maxLength":255},"description":{"anyOf":[{"type":"string"},{"type":"null"}]},"is_active":{"anyOf":[{"type":"boolean"},{"type":"null"}]},"last_synced_at":{"type":"string","format":"date-time"},"created_at":{"type":"string","format":"date-time"},"updated_at":{"type":"string","format":"date-time"}},"required":["uid","org_uid","name","description","is_active","created_at","updated_at"]},"VerifyPhoneNumberRequest":{"type":"object","properties":{"code":{"type":"string","minLength":6,"maxLength":6,"pattern":"^\\d{6}$"}},"required":["code"]},"UpdateUserRoleRequest":{"type":"object","properties":{"role":{"anyOf":[{"const":"admin"},{"const":"editor"},{"const":"reader"}]}},"required":["role"]},"UserRoleUpdateResponse":{"type":"object","properties":{"user_uid":{"type":"string"},"org_uid":{"type":"string"},"org_name":{"type":"string"},"org_slug":{"type":"string"},"role":{"anyOf":[{"const":"admin"},{"const":"editor"},{"const":"reader"}]},"is_active":{"type":"boolean"},"team_sync_enabled":{"type":"boolean"},"joined_at":{"anyOf":[{"type":"string","format":"date-time"},{"type":"null"}]},"last_synced_at":{"anyOf":[{"type":"string","format":"date-time"},{"type":"null"}]}},"required":["user_uid","org_uid","org_name","org_slug","role","is_active","team_sync_enabled","joined_at","last_synced_at"]},"UpdateUserRequest":{"type":"object","properties":{"phone_number":{"anyOf":[{"type":"string","pattern":"^[0-9+\\-]+$"},{"type":"null"}]}},"required":["phone_number"]},"SafeUser":{"type":"object","properties":{"uid":{"type":"string","maxLength":36},"email":{"type":"string","maxLength":255},"first_name":{"anyOf":[{"type":"string","maxLength":100},{"type":"null"}]},"last_name":{"anyOf":[{"type":"string","maxLength":100},{"type":"null"}]},"phone_number":{"type":"string","pattern":"^[0-9+\\-]+$"},"phone_number_verified":{"anyOf":[{"type":"boolean"},{"type":"null"}]},"is_active":{"anyOf":[{"type":"boolean"},{"type":"null"}]},"melody_auth_auth_id":{"type":"string","maxLength":36},"last_synced_at":{"type":"string","format":"date-time"},"created_at":{"type":"string","format":"date-time"},"updated_at":{"type":"string","format":"date-time"}},"required":["uid","email","first_name","last_name","phone_number_verified","is_active","melody_auth_auth_id","created_at","updated_at"]},"OrganizationMembershipResponse":{"allOf":[{"type":"object","properties":{"user_uid":{"type":"string","maxLength":36},"org_uid":{"type":"string","maxLength":36},"role":{"anyOf":[{"type":"string","maxLength":50},{"type":"null"}]},"is_active":{"anyOf":[{"type":"boolean"},{"type":"null"}]},"joined_at":{"anyOf":[{"type":"string","format":"date-time"},{"type":"null"}]},"last_synced_at":{"anyOf":[{"type":"string","format":"date-time"},{"type":"null"}]}},"required":["user_uid","org_uid","role","is_active"]},{"type":"object","properties":{"org_name":{"type":"string"},"org_slug":{"type":"string"},"team_sync_enabled":{"type":"boolean"}},"required":["org_name","org_slug","team_sync_enabled"]}]},"RotateTokenResponseData":{"type":"object","properties":{"token":{"type":"string"}},"required":["token"]},"UpdateTokenRequest":{"type":"object","properties":{"name":{"anyOf":[{"type":"string","maxLength":255},{"type":"null"}]},"role":{"enum":["admin","editor","reader"]}},"required":["name","role"],"additionalProperties":false},"CreateTokenRequest":{"type":"object","properties":{"name":{"anyOf":[{"type":"string","maxLength":255},{"type":"null"}]},"expiresAt":{"type":"string","format":"date-time"},"role":{"enum":["admin","editor","reader"],"default":"editor"}},"required":[],"additionalProperties":false},"CreateTokenResponseData":{"allOf":[{"type":"object","properties":{"uid":{"type":"string","maxLength":36},"name":{"anyOf":[{"type":"string","maxLength":255},{"type":"null"}]},"createdAt":{"type":"string","format":"date-time"},"lastUsedAt":{"type":"string","format":"date-time"},"expiresAt":{"type":"string","format":"date-time"}},"required":[]},{"type":"object","properties":{"token":{"type":"string"},"role":{"enum":["admin","editor","reader"]}},"required":["token","role"]}]},"SafeAPITokenWithRole":{"allOf":[{"type":"object","properties":{"uid":{"type":"string","maxLength":36},"name":{"anyOf":[{"type":"string","maxLength":255},{"type":"null"}]},"expiresAt":{"type":"string","format":"date-time"},"createdAt":{"type":"string","format":"date-time"},"lastUsedAt":{"type":"string","format":"date-time"}},"required":["uid","name","expiresAt","createdAt"]},{"type":"object","properties":{"role":{"enum":["admin","editor","reader"]}},"required":["role"]}]},"RegisterIdentityRequest":{"type":"object","properties":{"email":{"type":"string"},"guest_name":{"type":"string"},"device_fingerprint":{"type":"string"},"org_uid":{"type":"string"}},"required":[]},"IdentityToken":{"type":"object","properties":{"token":{"type":"string"},"email":{"type":"string"},"guest_name":{"type":"string"},"org_uid":{"type":"string"},"expires_at":{"type":"string"}},"required":["token"]},"AiEscalationActionResult":{"type":"object","properties":{"assignment_uid":{"type":"string"},"status":{"type":"string"},"actor":{"type":"object","properties":{"email":{"type":"string"},"sub":{"type":"string"},"name":{"type":"string"}},"required":[]}},"required":["assignment_uid","status"]},"EscalateToActionRequest":{"type":"object","properties":{"identity_token":{"type":"string"},"guest_name":{"type":"string"},"resolution_payload":{},"target_user_email":{"type":"string","format":"email"}},"required":["target_user_email"]},"ActionRequest":{"type":"object","properties":{"identity_token":{"type":"string"},"guest_name":{"type":"string"},"resolution_payload":{}},"required":[]},"ActionResult":{"type":"object","properties":{"success":{"type":"boolean"},"message":{"type":"string"},"error":{"type":"string"},"alert_instance_uid":{"type":"string"},"incident_uid":{"type":"string"},"acknowledged_by":{"type":"string"},"acknowledged_at":{"type":"string"}},"required":["success"]},"AlertDetailsResponse":{"type":"object","properties":{"success":{"const":true},"alert":{"$ref":"#/components/schemas/AlertDetails"}},"required":["success","alert"]},"AlertDetails":{"anyOf":[{"type":"object","properties":{"uid":{"type":"string"},"status":{"type":"string"},"title":{"type":"string"},"priority":{"anyOf":[{"type":"string"},{"type":"null"}]}},"required":["uid","status","title"]},{"type":"object","properties":{"uid":{"type":"string"},"status":{"type":"string"},"acknowledgedBy":{"anyOf":[{"type":"string"},{"type":"null"}]},"acknowledgedAt":{"anyOf":[{"type":"string"},{"type":"null"}]},"createdAt":{"type":"string"},"title":{"type":"string"},"description":{"type":"string"},"priority":{"anyOf":[{"type":"string"},{"type":"null"}]},"schemaUid":{"anyOf":[{"type":"string"},{"type":"null"}]},"available_responders":{"type":"array","items":{"type":"object","properties":{"email":{"type":"string","format":"email"},"user_uid":{"type":"string"},"member_types":{"type":"array","items":{"type":"string"}}},"required":["email"]}},"incident_prefill":{"type":"object","properties":{"alert_instance_uid":{"type":"string"},"org_uid":{"type":"string"},"schema_uid":{"type":"string"},"fingerprint":{"type":"string"},"title":{"type":"string"},"description":{"type":"string"},"created_at":{"type":"string"},"status":{"type":"string"},"parsed_fields":{"type":"object","additionalProperties":{}},"alert_body":{"type":"object","additionalProperties":{}}},"required":["alert_instance_uid","org_uid","title","created_at","status"]}},"required":["uid","status","createdAt","title","description"]}]},"UpdateIntegrationRequest":{"allOf":[{"type":"object","properties":{"name":{"type":"string","maxLength":255},"is_default":{"anyOf":[{"type":"boolean"},{"type":"null"}]}},"required":["name","is_default"]},{"type":"object","properties":{"config":{"type":"object","additionalProperties":{}}},"required":["config"]}]},"DefaultIntegrationResponse":{"type":"object","properties":{"uid":{"type":"string","maxLength":36},"name":{"type":"string","maxLength":255},"plugin_id":{"type":"string","maxLength":50},"is_default":{"anyOf":[{"type":"boolean"},{"type":"null"}]}},"required":["uid","name","plugin_id","is_default"]},"CreateIntegrationRequest":{"allOf":[{"type":"object","properties":{"name":{"type":"string","maxLength":255},"plugin_id":{"type":"string","maxLength":50}},"required":["name","plugin_id"]},{"type":"object","properties":{"config":{"type":"object","additionalProperties":{}},"is_default":{"type":"boolean"}},"required":["config"]}]},"CommunicationIntegration":{"type":"object","properties":{"uid":{"type":"string","maxLength":36},"org_uid":{"anyOf":[{"type":"string","maxLength":36},{"type":"null"}]},"name":{"type":"string","maxLength":255},"plugin_id":{"type":"string","maxLength":50},"config":{"anyOf":[{"anyOf":[{"type":"string"},{"type":"number"},{"type":"boolean"},{"type":"null"}]},{"type":"array","items":{}},{"type":"object","additionalProperties":{}}]},"is_default":{"anyOf":[{"type":"boolean"},{"type":"null"}]},"created_at":{"type":"string","format":"date-time"},"updated_at":{"type":"string","format":"date-time"}},"required":["uid","org_uid","name","plugin_id","config","is_default","created_at","updated_at"]},"UpdateCommunicationRuleRequest":{"type":"object","properties":{"name":{"type":"string"},"is_default":{"type":"boolean"},"routines":{"type":"array","items":{"allOf":[{"type":"object","properties":{"integration_uid":{"type":"string","maxLength":36},"action":{"type":"string","maxLength":50}},"required":["integration_uid","action"]},{"type":"object","properties":{"enabled":{"type":"boolean"},"call_actions":{"anyOf":[{"type":"array","items":{"anyOf":[{"const":"repeat"},{"const":"resolve"},{"const":"acknowledge"},{"const":"unacknowledge"},{"const":"escalate_further"},{"const":"escalate_to_ai"},{"const":"start_incident"}]}},{"type":"null"}]},"delay_seconds":{"anyOf":[{"type":"integer","minimum":-2147483648,"maximum":2147483647},{"type":"null"}]},"respect_conditions":{"anyOf":[{"type":"object","properties":{"options":{"anyOf":[{"const":"all"},{"const":"any"}]},"not":{"type":"boolean"}},"required":["options","not"]},{"type":"null"}]},"conditions":{"anyOf":[{"type":"array","items":{"type":"object","properties":{"schema_uid":{"anyOf":[{"type":"string","maxLength":36},{"type":"null"}]},"field":{"type":"string","maxLength":255},"operator":{"type":"string","maxLength":50},"value":{"type":"string"},"is_not":{"anyOf":[{"type":"boolean"},{"type":"null"}]},"is_priority":{"anyOf":[{"type":"boolean"},{"type":"null"}]}},"required":[]}},{"type":"null"}]}},"required":[]}]}}},"required":["name","is_default","routines"]},"CreateCommunicationRuleRequest":{"type":"object","properties":{"name":{"type":"string"},"is_default":{"type":"boolean"},"routines":{"type":"array","items":{"allOf":[{"type":"object","properties":{"integration_uid":{"type":"string","maxLength":36},"action":{"type":"string","maxLength":50}},"required":["integration_uid","action"]},{"type":"object","properties":{"enabled":{"type":"boolean"},"call_actions":{"anyOf":[{"type":"array","items":{"anyOf":[{"const":"repeat"},{"const":"resolve"},{"const":"acknowledge"},{"const":"unacknowledge"},{"const":"escalate_further"},{"const":"escalate_to_ai"},{"const":"start_incident"}]}},{"type":"null"}]},"delay_seconds":{"anyOf":[{"type":"integer","minimum":-2147483648,"maximum":2147483647},{"type":"null"}]},"respect_conditions":{"anyOf":[{"type":"object","properties":{"options":{"anyOf":[{"const":"all"},{"const":"any"}]},"not":{"type":"boolean"}},"required":["options","not"]},{"type":"null"}]},"conditions":{"anyOf":[{"type":"array","items":{"type":"object","properties":{"schema_uid":{"anyOf":[{"type":"string","maxLength":36},{"type":"null"}]},"field":{"type":"string","maxLength":255},"operator":{"type":"string","maxLength":50},"value":{"type":"string"},"is_not":{"anyOf":[{"type":"boolean"},{"type":"null"}]},"is_priority":{"anyOf":[{"type":"boolean"},{"type":"null"}]}},"required":[]}},{"type":"null"}]}},"required":[]}]}}},"required":["name"]},"CommunicationRule":{"type":"object","properties":{"uid":{"type":"string","maxLength":36},"org_uid":{"type":"string","maxLength":36},"name":{"type":"string","maxLength":255},"is_default":{"anyOf":[{"type":"boolean"},{"type":"null"}]},"created_at":{"type":"string","format":"date-time"},"updated_at":{"type":"string","format":"date-time"}},"required":["uid","org_uid","name","is_default","created_at","updated_at"]},"UpdateIncidentRequest":{"type":"object","properties":{"title":{"type":"string","minLength":1,"maxLength":255},"description":{"anyOf":[{"type":"string","maxLength":4000},{"type":"null"}]},"status":{"anyOf":[{"const":"open"},{"const":"investigating"},{"const":"in_progress"},{"const":"resolved"},{"const":"closed"}]},"priority":{"type":"string","pattern":"^P[1-5]$"},"detected_at":{"anyOf":[{"type":"string","minLength":1},{"type":"null"}]},"started_at":{"anyOf":[{"type":"string","minLength":1},{"type":"null"}]},"acknowledged_at":{"anyOf":[{"type":"string","minLength":1},{"type":"null"}]},"mitigated_at":{"anyOf":[{"type":"string","minLength":1},{"type":"null"}]},"resolved_at":{"anyOf":[{"type":"string","minLength":1},{"type":"null"}]},"closed_at":{"anyOf":[{"type":"string","minLength":1},{"type":"null"}]},"mttr_override_note":{"anyOf":[{"type":"string","maxLength":4000},{"type":"null"}]}},"required":["title","description","status","priority","detected_at","started_at","acknowledged_at","mitigated_at","resolved_at","closed_at","mttr_override_note"]},"UpsertIncidentPostmortemRequest":{"type":"object","properties":{"markdown":{"type":"string","maxLength":200000}},"required":["markdown"]},"IncidentPostmortem":{"allOf":[{"type":"object","properties":{"uid":{"type":"string","maxLength":36},"incident_uid":{"type":"string","maxLength":36},"org_uid":{"type":"string","maxLength":36},"created_by_email":{"anyOf":[{"type":"string","maxLength":255},{"type":"null"}]},"updated_by_email":{"anyOf":[{"type":"string","maxLength":255},{"type":"null"}]},"created_at":{"type":"string","format":"date-time"},"updated_at":{"type":"string","format":"date-time"}},"required":["uid","incident_uid","org_uid","created_by_email","updated_by_email","created_at","updated_at"]},{"type":"object","properties":{"markdown":{"anyOf":[{"type":"string"},{"type":"null"}]}},"required":["markdown"]}]},"IncidentActionExecution":{"allOf":[{"type":"object","properties":{"uid":{"type":"string","maxLength":36},"incident_uid":{"type":"string","maxLength":36},"action_uid":{"type":"string","maxLength":36},"triggering_event_uid":{"type":"string","maxLength":36},"trigger_event_type":{"anyOf":[{"const":"created"},{"const":"reopened"},{"const":"resolved"},{"const":"closed"},{"const":"priority_changed"},{"const":"postmortem_updated"}]},"status":{"anyOf":[{"const":"success"},{"const":"failure"},{"const":"skipped"}]},"result_message":{"anyOf":[{"type":"string"},{"type":"null"}]},"error_message":{"anyOf":[{"type":"string"},{"type":"null"}]},"created_at":{"type":"string","format":"date-time"}},"required":["uid","incident_uid","action_uid","triggering_event_uid","trigger_event_type","status","result_message","error_message","created_at"]},{"type":"object","properties":{"request_payload":{"anyOf":[{},{"type":"null"}]},"response_payload":{"anyOf":[{},{"type":"null"}]}},"required":["request_payload","response_payload"]}]},"UpdateIncidentActionRequest":{"anyOf":[{"allOf":[{"type":"object","properties":{"schema_uid":{"anyOf":[{"type":"string"},{"type":"null"}]},"respect_conditions":{"type":"object","properties":{"options":{"anyOf":[{"const":"all"},{"const":"any"}]},"not":{"type":"boolean"}},"required":["options","not"]},"conditions":{"type":"array","items":{"type":"object","properties":{"schema_uid":{"anyOf":[{"type":"string"},{"type":"null"}]},"field":{"type":"string","minLength":1},"operator":{"anyOf":[{"const":"equals"},{"const":"contains"},{"const":"startsWith"},{"const":"endsWith"},{"const":"matches"},{"const":"gt"},{"const":"lt"},{"const":"gte"},{"const":"lte"}]},"value":{"type":"string"},"is_not":{"type":"boolean"},"is_priority":{"type":"boolean"}},"required":["field","operator","value"]}}},"required":[]},{"type":"object","properties":{"name":{"type":"string","minLength":1,"maxLength":255},"enabled":{"type":"boolean"},"trigger_event_type":{"anyOf":[{"const":"created"},{"const":"reopened"},{"const":"resolved"},{"const":"closed"},{"const":"priority_changed"},{"const":"postmortem_updated"}]},"action_type":{"const":"webhook"},"target_config":{"anyOf":[{"type":"object","properties":{"url":{"type":"string","pattern":"^https?:\\/\\/.+"},"method":{"anyOf":[{"const":"POST"},{"const":"PUT"},{"const":"PATCH"}]},"headers":{"type":"object","additionalProperties":{"type":"string"}}},"required":["url"]},{"type":"object","properties":{"configured":{"const":true}},"required":["configured"]}]},"message_template":{"anyOf":[{"type":"string","maxLength":4000},{"type":"null"}]},"respect_conditions":{"type":"object","properties":{"options":{"anyOf":[{"const":"all"},{"const":"any"}]},"not":{"type":"boolean"}},"required":["options","not"]},"conditions":{"type":"array","items":{"type":"object","properties":{"schema_uid":{"anyOf":[{"type":"string"},{"type":"null"}]},"field":{"type":"string","minLength":1},"operator":{"anyOf":[{"const":"equals"},{"const":"contains"},{"const":"startsWith"},{"const":"endsWith"},{"const":"matches"},{"const":"gt"},{"const":"lt"},{"const":"gte"},{"const":"lte"}]},"value":{"type":"string"},"is_not":{"type":"boolean"},"is_priority":{"type":"boolean"}},"required":["field","operator","value"]}}},"required":["name","enabled","trigger_event_type","action_type","target_config","message_template","respect_conditions","conditions"]}]},{"allOf":[{"type":"object","properties":{"schema_uid":{"anyOf":[{"type":"string"},{"type":"null"}]},"respect_conditions":{"type":"object","properties":{"options":{"anyOf":[{"const":"all"},{"const":"any"}]},"not":{"type":"boolean"}},"required":["options","not"]},"conditions":{"type":"array","items":{"type":"object","properties":{"schema_uid":{"anyOf":[{"type":"string"},{"type":"null"}]},"field":{"type":"string","minLength":1},"operator":{"anyOf":[{"const":"equals"},{"const":"contains"},{"const":"startsWith"},{"const":"endsWith"},{"const":"matches"},{"const":"gt"},{"const":"lt"},{"const":"gte"},{"const":"lte"}]},"value":{"type":"string"},"is_not":{"type":"boolean"},"is_priority":{"type":"boolean"}},"required":["field","operator","value"]}}},"required":[]},{"type":"object","properties":{"name":{"type":"string","minLength":1,"maxLength":255},"enabled":{"type":"boolean"},"trigger_event_type":{"anyOf":[{"const":"created"},{"const":"reopened"},{"const":"resolved"},{"const":"closed"},{"const":"priority_changed"},{"const":"postmortem_updated"}]},"action_type":{"const":"note"},"target_config":{"type":"object","additionalProperties":{}},"message_template":{"anyOf":[{"type":"string","maxLength":4000},{"type":"null"}]},"respect_conditions":{"type":"object","properties":{"options":{"anyOf":[{"const":"all"},{"const":"any"}]},"not":{"type":"boolean"}},"required":["options","not"]},"conditions":{"type":"array","items":{"type":"object","properties":{"schema_uid":{"anyOf":[{"type":"string"},{"type":"null"}]},"field":{"type":"string","minLength":1},"operator":{"anyOf":[{"const":"equals"},{"const":"contains"},{"const":"startsWith"},{"const":"endsWith"},{"const":"matches"},{"const":"gt"},{"const":"lt"},{"const":"gte"},{"const":"lte"}]},"value":{"type":"string"},"is_not":{"type":"boolean"},"is_priority":{"type":"boolean"}},"required":["field","operator","value"]}}},"required":["name","enabled","trigger_event_type","action_type","target_config","message_template","respect_conditions","conditions"]}]}]},"CreateIncidentActionRequest":{"anyOf":[{"allOf":[{"type":"object","properties":{"schema_uid":{"anyOf":[{"type":"string"},{"type":"null"}]},"respect_conditions":{"type":"object","properties":{"options":{"anyOf":[{"const":"all"},{"const":"any"}]},"not":{"type":"boolean"}},"required":["options","not"]},"conditions":{"type":"array","items":{"type":"object","properties":{"schema_uid":{"anyOf":[{"type":"string"},{"type":"null"}]},"field":{"type":"string","minLength":1},"operator":{"anyOf":[{"const":"equals"},{"const":"contains"},{"const":"startsWith"},{"const":"endsWith"},{"const":"matches"},{"const":"gt"},{"const":"lt"},{"const":"gte"},{"const":"lte"}]},"value":{"type":"string"},"is_not":{"type":"boolean"},"is_priority":{"type":"boolean"}},"required":["field","operator","value"]}}},"required":[]},{"type":"object","properties":{"name":{"type":"string","minLength":1,"maxLength":255},"enabled":{"type":"boolean"},"trigger_event_type":{"anyOf":[{"const":"created"},{"const":"reopened"},{"const":"resolved"},{"const":"closed"},{"const":"priority_changed"},{"const":"postmortem_updated"}]},"action_type":{"const":"webhook"},"target_config":{"type":"object","properties":{"url":{"type":"string","pattern":"^https?:\\/\\/.+"},"method":{"anyOf":[{"const":"POST"},{"const":"PUT"},{"const":"PATCH"}]},"headers":{"type":"object","additionalProperties":{"type":"string"}}},"required":["url"]},"message_template":{"anyOf":[{"type":"string","maxLength":4000},{"type":"null"}]}},"required":["name","trigger_event_type","action_type","target_config"]}]},{"allOf":[{"type":"object","properties":{"schema_uid":{"anyOf":[{"type":"string"},{"type":"null"}]},"respect_conditions":{"type":"object","properties":{"options":{"anyOf":[{"const":"all"},{"const":"any"}]},"not":{"type":"boolean"}},"required":["options","not"]},"conditions":{"type":"array","items":{"type":"object","properties":{"schema_uid":{"anyOf":[{"type":"string"},{"type":"null"}]},"field":{"type":"string","minLength":1},"operator":{"anyOf":[{"const":"equals"},{"const":"contains"},{"const":"startsWith"},{"const":"endsWith"},{"const":"matches"},{"const":"gt"},{"const":"lt"},{"const":"gte"},{"const":"lte"}]},"value":{"type":"string"},"is_not":{"type":"boolean"},"is_priority":{"type":"boolean"}},"required":["field","operator","value"]}}},"required":[]},{"type":"object","properties":{"name":{"type":"string","minLength":1,"maxLength":255},"enabled":{"type":"boolean"},"trigger_event_type":{"anyOf":[{"const":"created"},{"const":"reopened"},{"const":"resolved"},{"const":"closed"},{"const":"priority_changed"},{"const":"postmortem_updated"}]},"action_type":{"const":"note"},"target_config":{"type":"object","additionalProperties":{}},"message_template":{"anyOf":[{"type":"string","maxLength":4000},{"type":"null"}]}},"required":["name","trigger_event_type","action_type","message_template"]}]}]},"IncidentActionDefinition":{"allOf":[{"type":"object","properties":{"uid":{"type":"string","maxLength":36},"org_uid":{"type":"string","maxLength":36},"schema_uid":{"anyOf":[{"type":"string","maxLength":36},{"type":"null"}]},"name":{"type":"string","maxLength":255},"enabled":{"type":"boolean"},"trigger_event_type":{"anyOf":[{"const":"created"},{"const":"reopened"},{"const":"resolved"},{"const":"closed"},{"const":"priority_changed"},{"const":"postmortem_updated"}]},"action_type":{"anyOf":[{"const":"webhook"},{"const":"note"}]},"target_config":{"type":"object","additionalProperties":{}},"message_template":{"anyOf":[{"type":"string"},{"type":"null"}]},"created_at":{"type":"string","format":"date-time"},"updated_at":{"type":"string","format":"date-time"}},"required":["uid","org_uid","schema_uid","name","enabled","trigger_event_type","action_type","target_config","message_template","created_at","updated_at"]},{"type":"object","properties":{"respect_conditions":{"type":"object","properties":{"options":{"anyOf":[{"const":"all"},{"const":"any"}]},"not":{"type":"boolean"}},"required":["options","not"]},"conditions":{"type":"array","items":{"type":"object","properties":{"schema_uid":{"anyOf":[{"type":"string"},{"type":"null"}]},"field":{"type":"string","minLength":1},"operator":{"anyOf":[{"const":"equals"},{"const":"contains"},{"const":"startsWith"},{"const":"endsWith"},{"const":"matches"},{"const":"gt"},{"const":"lt"},{"const":"gte"},{"const":"lte"}]},"value":{"type":"string"},"is_not":{"type":"boolean"},"is_priority":{"type":"boolean"}},"required":["field","operator","value"]}}},"required":["respect_conditions","conditions"]}]},"Incident":{"allOf":[{"type":"object","properties":{"uid":{"type":"string","maxLength":36},"org_uid":{"type":"string","maxLength":36},"alert_instance_uid":{"type":"string","maxLength":36},"title":{"type":"string","maxLength":255},"description":{"anyOf":[{"type":"string"},{"type":"null"}]},"status":{"anyOf":[{"const":"open"},{"const":"investigating"},{"const":"in_progress"},{"const":"resolved"},{"const":"closed"}]},"priority":{"type":"string","pattern":"^P[1-5]$"},"detected_at":{"anyOf":[{"type":"string","format":"date-time"},{"type":"null"}]},"started_at":{"anyOf":[{"type":"string","format":"date-time"},{"type":"null"}]},"acknowledged_at":{"anyOf":[{"type":"string","format":"date-time"},{"type":"null"}]},"mitigated_at":{"anyOf":[{"type":"string","format":"date-time"},{"type":"null"}]},"resolved_at":{"anyOf":[{"type":"string","format":"date-time"},{"type":"null"}]},"closed_at":{"anyOf":[{"type":"string","format":"date-time"},{"type":"null"}]},"status_changed_at":{"anyOf":[{"type":"string","format":"date-time"},{"type":"null"}]},"priority_changed_at":{"anyOf":[{"type":"string","format":"date-time"},{"type":"null"}]},"created_by_email":{"anyOf":[{"type":"string","maxLength":255},{"type":"null"}]},"created_by_name":{"anyOf":[{"type":"string","maxLength":255},{"type":"null"}]},"created_at":{"type":"string","format":"date-time"},"updated_at":{"type":"string","format":"date-time"}},"required":["uid","org_uid","alert_instance_uid","title","description","status","priority","created_by_email","created_by_name","created_at","updated_at"]},{"type":"object","properties":{"metrics":{"$ref":"#/components/schemas/IncidentMetrics"}},"required":["metrics"]}]},"IncidentMetrics":{"type":"object","properties":{"mtta_seconds":{"anyOf":[{"type":"number"},{"type":"null"}]},"mttd_seconds":{"anyOf":[{"type":"number"},{"type":"null"}]},"mttr_seconds":{"anyOf":[{"type":"number"},{"type":"null"}]},"mttr_is_overridden":{"type":"boolean"},"mttr_override_note":{"anyOf":[{"type":"string"},{"type":"null"}]},"mttr_override_updated_at":{"anyOf":[{"type":"string"},{"type":"null"}]},"mttr_source":{"anyOf":[{"const":"computed"},{"const":"override"},{"const":"unavailable"}]},"computed_mttr_seconds":{"anyOf":[{"type":"number"},{"type":"null"}]},"mttm_seconds":{"anyOf":[{"type":"number"},{"type":"null"}]}},"required":["mtta_seconds","mttd_seconds","mttr_seconds","mttr_is_overridden","mttr_override_note","mttr_override_updated_at","mttr_source"]},"CreateIncidentRequest":{"type":"object","properties":{"title":{"type":"string","minLength":1,"maxLength":255},"description":{"anyOf":[{"type":"string","maxLength":4000},{"type":"null"}]},"status":{"anyOf":[{"const":"open"},{"const":"investigating"},{"const":"in_progress"},{"const":"resolved"},{"const":"closed"}]},"priority":{"type":"string","pattern":"^P[1-5]$"},"labels":{"type":"object","additionalProperties":{"type":"string"}},"incident_alert_schema_token":{"type":"string","minLength":1},"incident_alert_schema_uid":{"type":"string","minLength":1}},"required":[]},"CreateIncidentFromAlertRequest":{"type":"object","properties":{"title":{"type":"string","minLength":1,"maxLength":255},"description":{"anyOf":[{"type":"string","maxLength":4000},{"type":"null"}]},"status":{"anyOf":[{"const":"open"},{"const":"investigating"},{"const":"in_progress"},{"const":"resolved"},{"const":"closed"}]},"priority":{"type":"string","pattern":"^P[1-5]$"},"labels":{"type":"object","additionalProperties":{"type":"string"}},"incident_alert_schema_token":{"type":"string","minLength":1}},"required":[]},"IncidentDetails":{"allOf":[{"$ref":"#/components/schemas/Incident"},{"type":"object","properties":{"responders":{"type":"array","items":{"$ref":"#/components/schemas/IncidentResponder"}},"events":{"type":"array","items":{"$ref":"#/components/schemas/IncidentEvent"}},"postmortem":{"anyOf":[{"$ref":"#/components/schemas/IncidentPostmortem"},{"type":"null"}]}},"required":["responders","events","postmortem"]}]},"IncidentEvent":{"allOf":[{"type":"object","properties":{"uid":{"type":"string","maxLength":36},"incident_uid":{"type":"string","maxLength":36},"event_type":{"type":"string","maxLength":64},"actor_email":{"anyOf":[{"type":"string","maxLength":255},{"type":"null"}]},"actor_name":{"anyOf":[{"type":"string","maxLength":255},{"type":"null"}]},"from_status":{"anyOf":[{"type":"string","maxLength":32},{"type":"null"}]},"to_status":{"anyOf":[{"type":"string","maxLength":32},{"type":"null"}]},"created_at":{"type":"string","format":"date-time"}},"required":["uid","incident_uid","event_type","actor_email","actor_name","from_status","to_status","created_at"]},{"type":"object","properties":{"payload":{"anyOf":[{},{"type":"null"}]}},"required":["payload"]}]},"IncidentResponder":{"allOf":[{"type":"object","properties":{"uid":{"type":"string","maxLength":36},"incident_uid":{"type":"string","maxLength":36},"responder_email":{"type":"string","maxLength":255},"responder_uid":{"anyOf":[{"type":"string","maxLength":36},{"type":"null"}]},"responder_first_name":{"anyOf":[{"type":"string","maxLength":255},{"type":"null"}]},"responder_last_name":{"anyOf":[{"type":"string","maxLength":255},{"type":"null"}]},"responder_phone_number":{"anyOf":[{"type":"string","maxLength":50},{"type":"null"}]},"created_at":{"type":"string","format":"date-time"}},"required":["uid","incident_uid","responder_email","responder_uid","responder_first_name","responder_last_name","responder_phone_number","created_at"]},{"type":"object","properties":{"member_types":{"anyOf":[{"type":"array","items":{"type":"string"}},{"type":"null"}]},"snapshot":{"anyOf":[{},{"type":"null"}]}},"required":["member_types","snapshot"]}]}},"securitySchemes":{"BearerAuth":{"type":"http","scheme":"bearer","bearerFormat":"JWT"}}},"security":[{"BearerAuth":[]}]}